0010eb20 : #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 10eb20: 55 push %ebp 10eb21: 89 e5 mov %esp,%ebp 10eb23: 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; 10eb26: 8b 50 10 mov 0x10(%eax),%edx 10eb29: 8b 4a 34 mov 0x34(%edx),%ecx switch( node->type ) { 10eb2c: 8b 10 mov (%eax),%edx 10eb2e: 83 7a 4c 07 cmpl $0x7,0x4c(%edx) 10eb32: 77 12 ja 10eb46 10eb34: 8b 52 4c mov 0x4c(%edx),%edx 10eb37: ff 24 95 a8 11 12 00 jmp *0x1211a8(,%edx,4) 10eb3e: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 10eb40: 8b 51 08 mov 0x8(%ecx),%edx 10eb43: 89 50 08 mov %edx,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10eb46: 31 c0 xor %eax,%eax 10eb48: c9 leave 10eb49: c3 ret 10eb4a: 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; 10eb4c: 8b 51 04 mov 0x4(%ecx),%edx 10eb4f: 89 50 08 mov %edx,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10eb52: 31 c0 xor %eax,%eax 10eb54: c9 leave 10eb55: c3 ret 10eb56: 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; 10eb58: c7 40 08 e0 12 12 00 movl $0x1212e0,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10eb5f: 31 c0 xor %eax,%eax 10eb61: c9 leave 10eb62: c3 ret 10eb63: 90 nop <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 10eb64: c7 40 08 e0 11 12 00 movl $0x1211e0,0x8(%eax) break; } return 0; } 10eb6b: 31 c0 xor %eax,%eax 10eb6d: c9 leave 10eb6e: c3 ret 10eb6f: 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; 10eb70: c7 40 08 a0 12 12 00 movl $0x1212a0,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10eb77: 31 c0 xor %eax,%eax 10eb79: c9 leave 10eb7a: c3 ret 001135f0 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 1135f0: 55 push %ebp 1135f1: 89 e5 mov %esp,%ebp 1135f3: 57 push %edi 1135f4: 56 push %esi 1135f5: 53 push %ebx 1135f6: 83 ec 1c sub $0x1c,%esp 1135f9: 8b 7d 0c mov 0xc(%ebp),%edi 1135fc: 8b 75 10 mov 0x10(%ebp),%esi IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 1135ff: 8b 45 08 mov 0x8(%ebp),%eax 113602: 8b 18 mov (%eax),%ebx /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 113604: e8 53 10 00 00 call 11465c if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 113609: 66 3b 43 3c cmp 0x3c(%ebx),%ax 11360d: 74 05 je 113614 11360f: 66 85 c0 test %ax,%ax <== NOT EXECUTED 113612: 75 2c jne 113640 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 113614: 66 89 7b 3c mov %di,0x3c(%ebx) jnode->st_gid = group; 113618: 66 89 73 3e mov %si,0x3e(%ebx) IMFS_update_ctime( jnode ); 11361c: 83 ec 08 sub $0x8,%esp 11361f: 6a 00 push $0x0 113621: 8d 45 e0 lea -0x20(%ebp),%eax 113624: 50 push %eax 113625: e8 f2 5d ff ff call 10941c 11362a: 8b 45 e0 mov -0x20(%ebp),%eax 11362d: 89 43 48 mov %eax,0x48(%ebx) 113630: 31 c0 xor %eax,%eax return 0; 113632: 83 c4 10 add $0x10,%esp } 113635: 8d 65 f4 lea -0xc(%ebp),%esp 113638: 5b pop %ebx 113639: 5e pop %esi 11363a: 5f pop %edi 11363b: c9 leave 11363c: c3 ret 11363d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 113640: e8 b7 53 00 00 call 1189fc <__errno> <== NOT EXECUTED 113645: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED 11364b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 113650: eb e3 jmp 113635 <== NOT EXECUTED 00112164 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 112164: 55 push %ebp 112165: 89 e5 mov %esp,%ebp 112167: 57 push %edi 112168: 56 push %esi 112169: 53 push %ebx 11216a: 83 ec 1c sub $0x1c,%esp 11216d: 8b 5d 08 mov 0x8(%ebp),%ebx 112170: 8b 75 0c mov 0xc(%ebp),%esi 112173: 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 ) 112176: 85 db test %ebx,%ebx 112178: 75 0a jne 112184 11217a: 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; } 11217c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11217f: 5b pop %ebx <== NOT EXECUTED 112180: 5e pop %esi <== NOT EXECUTED 112181: 5f pop %edi <== NOT EXECUTED 112182: c9 leave <== NOT EXECUTED 112183: c3 ret <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 112184: 50 push %eax 112185: a1 38 53 12 00 mov 0x125338,%eax 11218a: 8b 40 2c mov 0x2c(%eax),%eax 11218d: f7 d0 not %eax 11218f: 23 45 14 and 0x14(%ebp),%eax 112192: 50 push %eax 112193: ff 75 10 pushl 0x10(%ebp) 112196: 56 push %esi 112197: e8 24 ff ff ff call 1120c0 if ( !node ) 11219c: 83 c4 10 add $0x10,%esp 11219f: 85 c0 test %eax,%eax 1121a1: 74 d9 je 11217c return NULL; /* * Set the type specific information */ switch (type) { 1121a3: 83 fe 07 cmp $0x7,%esi 1121a6: 76 18 jbe 1121c0 case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 1121a8: 68 fd 0b 12 00 push $0x120bfd <== NOT EXECUTED 1121ad: 68 9c 16 12 00 push $0x12169c <== NOT EXECUTED 1121b2: 6a 5c push $0x5c <== NOT EXECUTED 1121b4: 68 30 16 12 00 push $0x121630 <== NOT EXECUTED 1121b9: e8 0a 5b ff ff call 107cc8 <__assert_func> <== NOT EXECUTED 1121be: 66 90 xchg %ax,%ax <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { 1121c0: ff 24 b5 7c 16 12 00 jmp *0x12167c(,%esi,4) 1121c7: 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; 1121c8: 8b 17 mov (%edi),%edx 1121ca: 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; 1121cd: 8b 13 mov (%ebx),%edx fs_info = parent_loc->mt_entry->fs_info; 1121cf: 8b 4b 10 mov 0x10(%ebx),%ecx 1121d2: 8b 59 34 mov 0x34(%ecx),%ebx node->Parent = parent; 1121d5: 89 50 08 mov %edx,0x8(%eax) node->st_ino = ++fs_info->ino_count; 1121d8: 8b 0b mov (%ebx),%ecx 1121da: 41 inc %ecx 1121db: 89 0b mov %ecx,(%ebx) 1121dd: 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 ); 1121e0: 83 ec 08 sub $0x8,%esp 1121e3: 50 push %eax 1121e4: 83 c2 50 add $0x50,%edx 1121e7: 52 push %edx 1121e8: 89 45 e4 mov %eax,-0x1c(%ebp) 1121eb: e8 c8 9c ff ff call 10beb8 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 1121f0: 83 c4 10 add $0x10,%esp 1121f3: 8b 45 e4 mov -0x1c(%ebp),%eax } 1121f6: 8d 65 f4 lea -0xc(%ebp),%esp 1121f9: 5b pop %ebx 1121fa: 5e pop %esi 1121fb: 5f pop %edi 1121fc: c9 leave 1121fd: c3 ret 1121fe: 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; 112200: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) <== NOT EXECUTED 112207: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) <== NOT EXECUTED node->info.linearfile.direct = 0; 11220e: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 112215: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) 11221c: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) node->info.file.indirect = 0; 112223: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) node->info.file.doubly_indirect = 0; 11222a: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) node->info.file.triply_indirect = 0; 112231: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax) break; 112238: eb 93 jmp 1121cd 11223a: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_FIFO: node->info.fifo.pipe = NULL; 11223c: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) break; 112243: eb 88 jmp 1121cd 112245: 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; 112248: 8b 17 mov (%edi),%edx 11224a: 89 50 50 mov %edx,0x50(%eax) node->info.device.minor = info->device.minor; 11224d: 8b 57 04 mov 0x4(%edi),%edx 112250: 89 50 54 mov %edx,0x54(%eax) break; 112253: e9 75 ff ff ff jmp 1121cd */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 112258: 8d 50 54 lea 0x54(%eax),%edx 11225b: 89 50 50 mov %edx,0x50(%eax) the_chain->permanent_null = NULL; 11225e: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) the_chain->last = _Chain_Head(the_chain); 112265: 8d 50 50 lea 0x50(%eax),%edx 112268: 89 50 58 mov %edx,0x58(%eax) 11226b: e9 5d ff ff ff jmp 1121cd 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 b1 12 00 mov 0x12b160,%eax 1094b5: ff 70 08 pushl 0x8(%eax) 1094b8: 6a 04 push $0x4 1094ba: 6a 01 push $0x1 1094bc: 68 55 68 12 00 push $0x126855 1094c1: e8 4e f4 00 00 call 118914 !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 3c 68 12 00 push $0x12683c <== NOT EXECUTED 109506: 68 80 69 12 00 push $0x126980 <== NOT EXECUTED 10950b: 68 84 00 00 00 push $0x84 <== NOT EXECUTED 109510: 68 78 68 12 00 push $0x126878 <== 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 c4 68 12 00 push $0x1268c4 <== NOT EXECUTED 10951f: 68 80 69 12 00 push $0x126980 <== NOT EXECUTED 109524: 68 88 00 00 00 push $0x88 <== NOT EXECUTED 109529: 68 78 68 12 00 push $0x126878 <== 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 4a 68 12 00 push $0x12684a <== NOT EXECUTED 109538: 68 80 69 12 00 push $0x126980 <== NOT EXECUTED 10953d: 68 86 00 00 00 push $0x86 <== NOT EXECUTED 109542: 68 78 68 12 00 push $0x126878 <== NOT EXECUTED 109547: e8 98 06 00 00 call 109be4 <__assert_func> <== NOT EXECUTED 0010ecec : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 10ecec: 55 push %ebp 10eced: 89 e5 mov %esp,%ebp 10ecef: 57 push %edi 10ecf0: 56 push %esi 10ecf1: 53 push %ebx 10ecf2: 83 ec 5c sub $0x5c,%esp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 10ecf5: 8b 45 14 mov 0x14(%ebp),%eax 10ecf8: 8b 38 mov (%eax),%edi 10ecfa: c7 45 a4 00 00 00 00 movl $0x0,-0x5c(%ebp) 10ed01: 8d 75 af lea -0x51(%ebp),%esi * 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 ); 10ed04: 8d 55 e4 lea -0x1c(%ebp),%edx 10ed07: 52 push %edx 10ed08: 56 push %esi 10ed09: ff 75 0c pushl 0xc(%ebp) 10ed0c: 8b 45 08 mov 0x8(%ebp),%eax 10ed0f: 03 45 a4 add -0x5c(%ebp),%eax 10ed12: 50 push %eax 10ed13: e8 48 08 00 00 call 10f560 10ed18: 89 c3 mov %eax,%ebx pathnamelen -= len; 10ed1a: 8b 55 e4 mov -0x1c(%ebp),%edx i += len; if ( !pathloc->node_access ) 10ed1d: 8b 4d 14 mov 0x14(%ebp),%ecx 10ed20: 8b 01 mov (%ecx),%eax 10ed22: 83 c4 10 add $0x10,%esp 10ed25: 85 c0 test %eax,%eax 10ed27: 0f 84 e7 00 00 00 je 10ee14 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 10ed2d: 29 55 0c sub %edx,0xc(%ebp) i += len; 10ed30: 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 ) 10ed33: 85 db test %ebx,%ebx 10ed35: 75 45 jne 10ed7c * 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 ) { 10ed37: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 10ed3b: 0f 84 27 01 00 00 je 10ee68 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 10ed41: 83 ec 0c sub $0xc,%esp 10ed44: ff 75 14 pushl 0x14(%ebp) 10ed47: e8 d4 fd ff ff call 10eb20 10ed4c: 89 c3 mov %eax,%ebx 10ed4e: 58 pop %eax 10ed4f: 5a pop %edx /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 10ed50: ff 75 10 pushl 0x10(%ebp) 10ed53: ff 75 14 pushl 0x14(%ebp) 10ed56: e8 21 fe ff ff call 10eb7c 10ed5b: 83 c4 10 add $0x10,%esp 10ed5e: 85 c0 test %eax,%eax 10ed60: 0f 85 d2 00 00 00 jne 10ee38 rtems_set_errno_and_return_minus_one( EACCES ); 10ed66: e8 29 4b 00 00 call 113894 <__errno> 10ed6b: c7 00 0d 00 00 00 movl $0xd,(%eax) 10ed71: bb ff ff ff ff mov $0xffffffff,%ebx 10ed76: e9 bd 00 00 00 jmp 10ee38 10ed7b: 90 nop <== NOT EXECUTED /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 10ed7c: 83 7f 4c 01 cmpl $0x1,0x4c(%edi) 10ed80: 0f 84 be 00 00 00 je 10ee44 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 10ed86: 89 c7 mov %eax,%edi switch( type ) { 10ed88: 83 fb 03 cmp $0x3,%ebx 10ed8b: 74 1b je 10eda8 10ed8d: 83 fb 04 cmp $0x4,%ebx 10ed90: 0f 84 92 00 00 00 je 10ee28 10ed96: 83 fb 02 cmp $0x2,%ebx 10ed99: 74 51 je 10edec /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 10ed9b: 83 fb 04 cmp $0x4,%ebx 10ed9e: 0f 85 60 ff ff ff jne 10ed04 10eda4: eb 91 jmp 10ed37 <== NOT EXECUTED 10eda6: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 10eda8: 8b 40 4c mov 0x4c(%eax),%eax 10edab: 83 f8 03 cmp $0x3,%eax 10edae: 0f 84 00 01 00 00 je 10eeb4 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 10edb4: 83 f8 04 cmp $0x4,%eax 10edb7: 0f 84 6e 01 00 00 je 10ef2b /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 10edbd: 48 dec %eax 10edbe: 0f 85 11 01 00 00 jne 10eed5 /* * 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 ) { 10edc4: 8b 47 5c mov 0x5c(%edi),%eax 10edc7: 85 c0 test %eax,%eax 10edc9: 0f 85 1b 01 00 00 jne 10eeea /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 10edcf: 83 ec 08 sub $0x8,%esp 10edd2: 56 push %esi 10edd3: 57 push %edi 10edd4: e8 f7 06 00 00 call 10f4d0 10edd9: 89 c7 mov %eax,%edi if ( !node ) 10eddb: 83 c4 10 add $0x10,%esp 10edde: 85 c0 test %eax,%eax 10ede0: 74 32 je 10ee14 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 10ede2: 8b 45 14 mov 0x14(%ebp),%eax 10ede5: 89 38 mov %edi,(%eax) break; 10ede7: e9 18 ff ff ff jmp 10ed04 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 10edec: 8b 15 38 53 12 00 mov 0x125338,%edx 10edf2: 39 42 18 cmp %eax,0x18(%edx) 10edf5: 0f 84 09 ff ff ff je 10ed04 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 10edfb: 8b 4d 14 mov 0x14(%ebp),%ecx 10edfe: 8b 51 10 mov 0x10(%ecx),%edx /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 10ee01: 39 42 1c cmp %eax,0x1c(%edx) 10ee04: 0f 84 42 01 00 00 je 10ef4c pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 10ee0a: 8b 78 08 mov 0x8(%eax),%edi 10ee0d: 85 ff test %edi,%edi 10ee0f: 75 d1 jne 10ede2 10ee11: 8d 76 00 lea 0x0(%esi),%esi * 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 ); 10ee14: e8 7b 4a 00 00 call 113894 <__errno> 10ee19: c7 00 02 00 00 00 movl $0x2,(%eax) 10ee1f: bb ff ff ff ff mov $0xffffffff,%ebx 10ee24: eb 12 jmp 10ee38 10ee26: 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 ); 10ee28: e8 67 4a 00 00 call 113894 <__errno> 10ee2d: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10ee33: bb ff ff ff ff mov $0xffffffff,%ebx if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10ee38: 89 d8 mov %ebx,%eax 10ee3a: 8d 65 f4 lea -0xc(%ebp),%esp 10ee3d: 5b pop %ebx 10ee3e: 5e pop %esi 10ee3f: 5f pop %edi 10ee40: c9 leave 10ee41: c3 ret 10ee42: 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 ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 10ee44: 83 ec 08 sub $0x8,%esp 10ee47: 6a 01 push $0x1 10ee49: ff 75 14 pushl 0x14(%ebp) 10ee4c: e8 2b fd ff ff call 10eb7c 10ee51: 83 c4 10 add $0x10,%esp 10ee54: 85 c0 test %eax,%eax 10ee56: 0f 84 0a ff ff ff je 10ed66 10ee5c: 8b 55 14 mov 0x14(%ebp),%edx 10ee5f: 8b 02 mov (%edx),%eax 10ee61: e9 20 ff ff ff jmp 10ed86 10ee66: 66 90 xchg %ax,%ax <== NOT EXECUTED * * 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 ) { 10ee68: 8b 70 5c mov 0x5c(%eax),%esi 10ee6b: 85 f6 test %esi,%esi 10ee6d: 0f 84 ce fe ff ff je 10ed41 newloc = node->info.directory.mt_fs->mt_fs_root; 10ee73: 8d 7d d0 lea -0x30(%ebp),%edi 10ee76: 83 c6 1c add $0x1c,%esi 10ee79: b9 05 00 00 00 mov $0x5,%ecx 10ee7e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10ee80: 8d 75 d0 lea -0x30(%ebp),%esi 10ee83: b1 05 mov $0x5,%cl 10ee85: 8b 7d 14 mov 0x14(%ebp),%edi 10ee88: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)( &pathname[i-len], 10ee8a: 8b 45 e4 mov -0x1c(%ebp),%eax 10ee8d: 8b 4d 14 mov 0x14(%ebp),%ecx 10ee90: 8b 51 0c mov 0xc(%ecx),%edx 10ee93: 51 push %ecx 10ee94: ff 75 10 pushl 0x10(%ebp) 10ee97: 8b 4d 0c mov 0xc(%ebp),%ecx 10ee9a: 01 c1 add %eax,%ecx 10ee9c: 51 push %ecx 10ee9d: 8b 4d a4 mov -0x5c(%ebp),%ecx 10eea0: 29 c1 sub %eax,%ecx 10eea2: 8b 45 08 mov 0x8(%ebp),%eax 10eea5: 01 c8 add %ecx,%eax 10eea7: 50 push %eax 10eea8: ff 12 call *(%edx) 10eeaa: 89 c3 mov %eax,%ebx 10eeac: 83 c4 10 add $0x10,%esp 10eeaf: eb 87 jmp 10ee38 10eeb1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 10eeb4: 83 ec 08 sub $0x8,%esp 10eeb7: 6a 00 push $0x0 10eeb9: ff 75 14 pushl 0x14(%ebp) 10eebc: e8 0b fd ff ff call 10ebcc node = pathloc->node_access; 10eec1: 8b 55 14 mov 0x14(%ebp),%edx 10eec4: 8b 3a mov (%edx),%edi if ( !node ) 10eec6: 83 c4 10 add $0x10,%esp 10eec9: 85 ff test %edi,%edi 10eecb: 74 08 je 10eed5 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 10eecd: 8b 47 4c mov 0x4c(%edi),%eax 10eed0: e9 e8 fe ff ff jmp 10edbd /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 10eed5: e8 ba 49 00 00 call 113894 <__errno> 10eeda: c7 00 14 00 00 00 movl $0x14,(%eax) 10eee0: bb ff ff ff ff mov $0xffffffff,%ebx 10eee5: e9 4e ff ff ff jmp 10ee38 * 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; 10eeea: 8d 7d d0 lea -0x30(%ebp),%edi 10eeed: 8d 70 1c lea 0x1c(%eax),%esi 10eef0: b9 05 00 00 00 mov $0x5,%ecx 10eef5: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10eef7: 8d 75 d0 lea -0x30(%ebp),%esi 10eefa: b1 05 mov $0x5,%cl 10eefc: 8b 7d 14 mov 0x14(%ebp),%edi 10eeff: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)( &pathname[i-len], 10ef01: 8b 55 e4 mov -0x1c(%ebp),%edx 10ef04: 8b 4d 14 mov 0x14(%ebp),%ecx 10ef07: 8b 41 0c mov 0xc(%ecx),%eax 10ef0a: 51 push %ecx 10ef0b: ff 75 10 pushl 0x10(%ebp) 10ef0e: 8b 4d 0c mov 0xc(%ebp),%ecx 10ef11: 01 d1 add %edx,%ecx 10ef13: 51 push %ecx 10ef14: 8b 4d a4 mov -0x5c(%ebp),%ecx 10ef17: 29 d1 sub %edx,%ecx 10ef19: 8b 55 08 mov 0x8(%ebp),%edx 10ef1c: 01 ca add %ecx,%edx 10ef1e: 52 push %edx 10ef1f: ff 10 call *(%eax) 10ef21: 89 c3 mov %eax,%ebx 10ef23: 83 c4 10 add $0x10,%esp 10ef26: e9 0d ff ff ff jmp 10ee38 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 10ef2b: 83 ec 08 sub $0x8,%esp 10ef2e: 6a 00 push $0x0 10ef30: ff 75 14 pushl 0x14(%ebp) 10ef33: e8 f0 fc ff ff call 10ec28 10ef38: 89 c3 mov %eax,%ebx node = pathloc->node_access; 10ef3a: 8b 4d 14 mov 0x14(%ebp),%ecx 10ef3d: 8b 39 mov (%ecx),%edi if ( result == -1 ) 10ef3f: 83 c4 10 add $0x10,%esp 10ef42: 83 f8 ff cmp $0xffffffff,%eax 10ef45: 75 86 jne 10eecd 10ef47: e9 ec fe ff ff jmp 10ee38 <== 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; 10ef4c: 8d 7d d0 lea -0x30(%ebp),%edi 10ef4f: 8d 72 08 lea 0x8(%edx),%esi 10ef52: eb 9c jmp 10eef0 0010f000 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 10f000: 55 push %ebp 10f001: 89 e5 mov %esp,%ebp 10f003: 57 push %edi 10f004: 56 push %esi 10f005: 53 push %ebx 10f006: 83 ec 5c sub $0x5c,%esp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 10f009: 8b 45 0c mov 0xc(%ebp),%eax 10f00c: 8b 18 mov (%eax),%ebx /* * Get the path length. */ pathlen = strlen( path ); 10f00e: 31 c0 xor %eax,%eax 10f010: b9 ff ff ff ff mov $0xffffffff,%ecx 10f015: 8b 7d 08 mov 0x8(%ebp),%edi 10f018: f2 ae repnz scas %es:(%edi),%al 10f01a: f7 d1 not %ecx 10f01c: 8d 71 ff lea -0x1(%ecx),%esi 10f01f: 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 ); 10f026: 8d 55 e4 lea -0x1c(%ebp),%edx 10f029: 52 push %edx 10f02a: 8d 4d af lea -0x51(%ebp),%ecx 10f02d: 51 push %ecx 10f02e: 56 push %esi 10f02f: 8b 45 08 mov 0x8(%ebp),%eax 10f032: 03 45 a4 add -0x5c(%ebp),%eax 10f035: 50 push %eax 10f036: e8 25 05 00 00 call 10f560 10f03b: 89 c7 mov %eax,%edi pathlen -= len; 10f03d: 8b 55 e4 mov -0x1c(%ebp),%edx 10f040: 29 d6 sub %edx,%esi i += len; if ( !pathloc->node_access ) 10f042: 8b 4d 0c mov 0xc(%ebp),%ecx 10f045: 8b 01 mov (%ecx),%eax 10f047: 83 c4 10 add $0x10,%esp 10f04a: 85 c0 test %eax,%eax 10f04c: 0f 84 2a 01 00 00 je 10f17c /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 10f052: 85 ff test %edi,%edi 10f054: 75 1a jne 10f070 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 10f056: e8 39 48 00 00 call 113894 <__errno> 10f05b: c7 00 11 00 00 00 movl $0x11,(%eax) 10f061: bb ff ff ff ff mov $0xffffffff,%ebx if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10f066: 89 d8 mov %ebx,%eax 10f068: 8d 65 f4 lea -0xc(%ebp),%esp 10f06b: 5b pop %ebx 10f06c: 5e pop %esi 10f06d: 5f pop %edi 10f06e: c9 leave 10f06f: c3 ret /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 10f070: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 10f074: 0f 84 ca 00 00 00 je 10f144 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 10f07a: 01 55 a4 add %edx,-0x5c(%ebp) if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 10f07d: 89 c3 mov %eax,%ebx switch( type ) { 10f07f: 83 ff 02 cmp $0x2,%edi 10f082: 0f 84 8c 00 00 00 je 10f114 10f088: 76 26 jbe 10f0b0 10f08a: 83 ff 03 cmp $0x3,%edi 10f08d: 74 2d je 10f0bc 10f08f: 83 ff 04 cmp $0x4,%edi 10f092: 75 92 jne 10f026 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 ); 10f094: e8 fb 47 00 00 call 113894 <__errno> 10f099: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10f09f: bb ff ff ff ff mov $0xffffffff,%ebx if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10f0a4: 89 d8 mov %ebx,%eax 10f0a6: 8d 65 f4 lea -0xc(%ebp),%esp 10f0a9: 5b pop %ebx 10f0aa: 5e pop %esi 10f0ab: 5f pop %edi 10f0ac: c9 leave 10f0ad: c3 ret 10f0ae: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 10f0b0: 85 ff test %edi,%edi 10f0b2: 74 a2 je 10f056 10f0b4: e9 6d ff ff ff jmp 10f026 10f0b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 10f0bc: 8b 40 4c mov 0x4c(%eax),%eax 10f0bf: 83 f8 03 cmp $0x3,%eax 10f0c2: 0f 84 86 01 00 00 je 10f24e result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 10f0c8: 83 f8 04 cmp $0x4,%eax 10f0cb: 0f 84 9c 01 00 00 je 10f26d if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 10f0d1: 85 db test %ebx,%ebx 10f0d3: 0f 84 27 01 00 00 je 10f200 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 10f0d9: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 10f0dd: 0f 85 1d 01 00 00 jne 10f200 /* * 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 ) { 10f0e3: 8b 43 5c mov 0x5c(%ebx),%eax 10f0e6: 85 c0 test %eax,%eax 10f0e8: 0f 85 27 01 00 00 jne 10f215 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 10f0ee: 83 ec 08 sub $0x8,%esp 10f0f1: 8d 45 af lea -0x51(%ebp),%eax 10f0f4: 50 push %eax 10f0f5: 53 push %ebx 10f0f6: e8 d5 03 00 00 call 10f4d0 10f0fb: 89 c3 mov %eax,%ebx /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 10f0fd: 83 c4 10 add $0x10,%esp 10f100: 85 c0 test %eax,%eax 10f102: 0f 84 8c 00 00 00 je 10f194 done = true; else pathloc->node_access = node; 10f108: 8b 55 0c mov 0xc(%ebp),%edx 10f10b: 89 02 mov %eax,(%edx) 10f10d: e9 14 ff ff ff jmp 10f026 10f112: 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 ) 10f114: 8b 15 38 53 12 00 mov 0x125338,%edx 10f11a: 39 42 18 cmp %eax,0x18(%edx) 10f11d: 0f 84 03 ff ff ff je 10f026 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 10f123: 8b 4d 0c mov 0xc(%ebp),%ecx 10f126: 8b 51 10 mov 0x10(%ecx),%edx 10f129: 39 42 1c cmp %eax,0x1c(%edx) 10f12c: 0f 84 5a 01 00 00 je 10f28c *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 10f132: 8b 58 08 mov 0x8(%eax),%ebx 10f135: 85 db test %ebx,%ebx 10f137: 74 43 je 10f17c rtems_set_errno_and_return_minus_one( ENOENT ); node = node->Parent; } pathloc->node_access = node; 10f139: 8b 4d 0c mov 0xc(%ebp),%ecx 10f13c: 89 19 mov %ebx,(%ecx) break; 10f13e: e9 e3 fe ff ff jmp 10f026 10f143: 90 nop <== NOT EXECUTED * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 10f144: 83 ec 08 sub $0x8,%esp 10f147: 6a 01 push $0x1 10f149: ff 75 0c pushl 0xc(%ebp) 10f14c: 89 55 a0 mov %edx,-0x60(%ebp) 10f14f: e8 28 fa ff ff call 10eb7c 10f154: 83 c4 10 add $0x10,%esp 10f157: 85 c0 test %eax,%eax 10f159: 8b 55 a0 mov -0x60(%ebp),%edx 10f15c: 0f 84 89 00 00 00 je 10f1eb 10f162: 8b 4d 0c mov 0xc(%ebp),%ecx 10f165: 8b 01 mov (%ecx),%eax 10f167: e9 0e ff ff ff jmp 10f07a /* * 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++) { 10f16c: 8a 42 01 mov 0x1(%edx),%al 10f16f: 42 inc %edx 10f170: 84 c0 test %al,%al 10f172: 74 44 je 10f1b8 if ( !IMFS_is_separator( path[ i ] ) ) 10f174: 3c 2f cmp $0x2f,%al 10f176: 74 f4 je 10f16c 10f178: 3c 5c cmp $0x5c,%al 10f17a: 74 f0 je 10f16c rtems_set_errno_and_return_minus_one( ENOENT ); 10f17c: e8 13 47 00 00 call 113894 <__errno> 10f181: c7 00 02 00 00 00 movl $0x2,(%eax) 10f187: bb ff ff ff ff mov $0xffffffff,%ebx 10f18c: e9 d5 fe ff ff jmp 10f066 10f191: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 10f194: 8b 45 a4 mov -0x5c(%ebp),%eax 10f197: 2b 45 e4 sub -0x1c(%ebp),%eax 10f19a: 03 45 08 add 0x8(%ebp),%eax 10f19d: 8b 4d 10 mov 0x10(%ebp),%ecx 10f1a0: 89 01 mov %eax,(%ecx) /* * 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++) { 10f1a2: 8b 4d 08 mov 0x8(%ebp),%ecx 10f1a5: 8b 55 a4 mov -0x5c(%ebp),%edx 10f1a8: 8a 04 11 mov (%ecx,%edx,1),%al 10f1ab: 84 c0 test %al,%al 10f1ad: 74 09 je 10f1b8 10f1af: 8b 55 a4 mov -0x5c(%ebp),%edx 10f1b2: 01 ca add %ecx,%edx 10f1b4: eb be jmp 10f174 10f1b6: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 10f1b8: 83 ec 0c sub $0xc,%esp 10f1bb: ff 75 0c pushl 0xc(%ebp) 10f1be: e8 5d f9 ff ff call 10eb20 10f1c3: 89 c3 mov %eax,%ebx /* * The returned node must be a directory */ node = pathloc->node_access; 10f1c5: 8b 55 0c mov 0xc(%ebp),%edx 10f1c8: 8b 02 mov (%edx),%eax 10f1ca: 83 c4 10 add $0x10,%esp 10f1cd: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 10f1d1: 75 2d jne 10f200 /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 10f1d3: 83 ec 08 sub $0x8,%esp 10f1d6: 6a 03 push $0x3 10f1d8: ff 75 0c pushl 0xc(%ebp) 10f1db: e8 9c f9 ff ff call 10eb7c 10f1e0: 83 c4 10 add $0x10,%esp 10f1e3: 85 c0 test %eax,%eax 10f1e5: 0f 85 7b fe ff ff jne 10f066 rtems_set_errno_and_return_minus_one( EACCES ); 10f1eb: e8 a4 46 00 00 call 113894 <__errno> 10f1f0: c7 00 0d 00 00 00 movl $0xd,(%eax) 10f1f6: bb ff ff ff ff mov $0xffffffff,%ebx 10f1fb: e9 66 fe ff ff jmp 10f066 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 10f200: e8 8f 46 00 00 call 113894 <__errno> 10f205: c7 00 14 00 00 00 movl $0x14,(%eax) 10f20b: bb ff ff ff ff mov $0xffffffff,%ebx 10f210: e9 51 fe ff ff jmp 10f066 * 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; 10f215: 8d 7d d0 lea -0x30(%ebp),%edi 10f218: 8d 70 1c lea 0x1c(%eax),%esi 10f21b: b9 05 00 00 00 mov $0x5,%ecx 10f220: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10f222: 8d 75 d0 lea -0x30(%ebp),%esi 10f225: b1 05 mov $0x5,%cl 10f227: 8b 7d 0c mov 0xc(%ebp),%edi 10f22a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 10f22c: 51 push %ecx 10f22d: 8b 4d 0c mov 0xc(%ebp),%ecx 10f230: 8b 41 0c mov 0xc(%ecx),%eax 10f233: ff 75 10 pushl 0x10(%ebp) 10f236: 51 push %ecx 10f237: 8b 55 a4 mov -0x5c(%ebp),%edx 10f23a: 2b 55 e4 sub -0x1c(%ebp),%edx 10f23d: 03 55 08 add 0x8(%ebp),%edx 10f240: 52 push %edx 10f241: ff 50 04 call *0x4(%eax) 10f244: 89 c3 mov %eax,%ebx 10f246: 83 c4 10 add $0x10,%esp 10f249: e9 18 fe ff ff jmp 10f066 case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 10f24e: 83 ec 08 sub $0x8,%esp 10f251: 6a 00 push $0x0 10f253: ff 75 0c pushl 0xc(%ebp) 10f256: e8 f9 fc ff ff call 10ef54 if ( result == -1 ) 10f25b: 83 c4 10 add $0x10,%esp 10f25e: 83 f8 ff cmp $0xffffffff,%eax 10f261: 74 4d je 10f2b0 10f263: 8b 45 0c mov 0xc(%ebp),%eax 10f266: 8b 18 mov (%eax),%ebx 10f268: e9 64 fe ff ff jmp 10f0d1 return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 10f26d: 83 ec 08 sub $0x8,%esp 10f270: 6a 00 push $0x0 10f272: ff 75 0c pushl 0xc(%ebp) 10f275: e8 da fc ff ff call 10ef54 if ( result == -1 ) 10f27a: 83 c4 10 add $0x10,%esp 10f27d: 83 f8 ff cmp $0xffffffff,%eax 10f280: 74 2e je 10f2b0 10f282: 8b 55 0c mov 0xc(%ebp),%edx 10f285: 8b 1a mov (%edx),%ebx 10f287: e9 45 fe ff ff jmp 10f0d1 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 10f28c: 8d 7d d0 lea -0x30(%ebp),%edi 10f28f: 8d 72 08 lea 0x8(%edx),%esi 10f292: b9 05 00 00 00 mov $0x5,%ecx 10f297: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10f299: 8d 75 d0 lea -0x30(%ebp),%esi 10f29c: b1 05 mov $0x5,%cl 10f29e: 8b 7d 0c mov 0xc(%ebp),%edi 10f2a1: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 10f2a3: 53 push %ebx 10f2a4: 8b 55 0c mov 0xc(%ebp),%edx 10f2a7: 8b 42 0c mov 0xc(%edx),%eax 10f2aa: ff 75 10 pushl 0x10(%ebp) 10f2ad: 52 push %edx 10f2ae: eb 87 jmp 10f237 10f2b0: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f2b2: e9 af fd ff ff jmp 10f066 <== NOT EXECUTED 0010ebcc : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10ebcc: 55 push %ebp 10ebcd: 89 e5 mov %esp,%ebp 10ebcf: 53 push %ebx 10ebd0: 83 ec 04 sub $0x4,%esp 10ebd3: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *jnode = node->node_access; 10ebd6: 8b 03 mov (%ebx),%eax /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 10ebd8: 83 78 4c 03 cmpl $0x3,0x4c(%eax) 10ebdc: 75 3c jne 10ec1a /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 10ebde: 8b 40 50 mov 0x50(%eax),%eax 10ebe1: 89 03 mov %eax,(%ebx) IMFS_Set_handlers( node ); 10ebe3: 83 ec 0c sub $0xc,%esp 10ebe6: 53 push %ebx 10ebe7: e8 34 ff ff ff call 10eb20 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 10ebec: 58 pop %eax 10ebed: 5a pop %edx 10ebee: ff 75 0c pushl 0xc(%ebp) 10ebf1: 53 push %ebx 10ebf2: e8 85 ff ff ff call 10eb7c 10ebf7: 83 c4 10 add $0x10,%esp 10ebfa: 85 c0 test %eax,%eax 10ebfc: 74 0a je 10ec08 10ebfe: 31 c0 xor %eax,%eax rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10ec00: 8b 5d fc mov -0x4(%ebp),%ebx 10ec03: c9 leave 10ec04: c3 ret 10ec05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 10ec08: e8 87 4c 00 00 call 113894 <__errno> <== NOT EXECUTED 10ec0d: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10ec13: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10ec18: eb e6 jmp 10ec00 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 10ec1a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ec1d: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10ec22: e8 b5 cf ff ff call 10bbdc <== NOT EXECUTED 0010ef54 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10ef54: 55 push %ebp 10ef55: 89 e5 mov %esp,%ebp 10ef57: 57 push %edi 10ef58: 56 push %esi 10ef59: 53 push %ebx 10ef5a: 83 ec 0c sub $0xc,%esp 10ef5d: 8b 75 08 mov 0x8(%ebp),%esi 10ef60: 8b 7d 0c mov 0xc(%ebp),%edi 10ef63: 8b 15 38 53 12 00 mov 0x125338,%edx 10ef69: eb 0e jmp 10ef79 10ef6b: 90 nop <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 10ef6c: 83 f8 04 cmp $0x4,%eax 10ef6f: 74 53 je 10efc4 result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 10ef71: 83 e8 03 sub $0x3,%eax 10ef74: 83 f8 01 cmp $0x1,%eax 10ef77: 77 3a ja 10efb3 { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 10ef79: 8b 1e mov (%esi),%ebx /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 10ef7b: 8b 42 30 mov 0x30(%edx),%eax 10ef7e: 40 inc %eax 10ef7f: 66 89 42 30 mov %ax,0x30(%edx) if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 10ef83: 66 83 f8 05 cmp $0x5,%ax 10ef87: 77 57 ja 10efe0 /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 10ef89: 8b 43 4c mov 0x4c(%ebx),%eax 10ef8c: 83 f8 03 cmp $0x3,%eax 10ef8f: 75 db jne 10ef6c result = IMFS_evaluate_hard_link( node, flags ); 10ef91: 83 ec 08 sub $0x8,%esp 10ef94: 57 push %edi 10ef95: 56 push %esi 10ef96: e8 31 fc ff ff call 10ebcc 10ef9b: 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 ) ) ); 10ef9e: 85 c0 test %eax,%eax 10efa0: 75 33 jne 10efd5 10efa2: 8b 43 4c mov 0x4c(%ebx),%eax 10efa5: 8b 15 38 53 12 00 mov 0x125338,%edx 10efab: 83 e8 03 sub $0x3,%eax 10efae: 83 f8 01 cmp $0x1,%eax 10efb1: 76 c6 jbe 10ef79 10efb3: 31 c0 xor %eax,%eax /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 10efb5: 66 c7 42 30 00 00 movw $0x0,0x30(%edx) return result; } 10efbb: 8d 65 f4 lea -0xc(%ebp),%esp 10efbe: 5b pop %ebx 10efbf: 5e pop %esi 10efc0: 5f pop %edi 10efc1: c9 leave 10efc2: c3 ret 10efc3: 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 ); 10efc4: 83 ec 08 sub $0x8,%esp 10efc7: 57 push %edi 10efc8: 56 push %esi 10efc9: e8 5a fc ff ff call 10ec28 10efce: 83 c4 10 add $0x10,%esp } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 10efd1: 85 c0 test %eax,%eax 10efd3: 74 cd je 10efa2 10efd5: 8b 15 38 53 12 00 mov 0x125338,%edx 10efdb: eb d8 jmp 10efb5 10efdd: 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; 10efe0: 66 c7 42 30 00 00 movw $0x0,0x30(%edx) rtems_set_errno_and_return_minus_one( ELOOP ); 10efe6: e8 a9 48 00 00 call 113894 <__errno> 10efeb: c7 00 5c 00 00 00 movl $0x5c,(%eax) 10eff1: b8 ff ff ff ff mov $0xffffffff,%eax */ rtems_filesystem_link_counts = 0; return result; } 10eff6: 8d 65 f4 lea -0xc(%ebp),%esp 10eff9: 5b pop %ebx 10effa: 5e pop %esi 10effb: 5f pop %edi 10effc: c9 leave 10effd: c3 ret 0010eb7c : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 10eb7c: 55 push %ebp 10eb7d: 89 e5 mov %esp,%ebp 10eb7f: 57 push %edi 10eb80: 56 push %esi 10eb81: 53 push %ebx 10eb82: 83 ec 0c sub $0xc,%esp 10eb85: 8b 7d 0c mov 0xc(%ebp),%edi if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 10eb88: 8b 45 08 mov 0x8(%ebp),%eax 10eb8b: 8b 18 mov (%eax),%ebx #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 10eb8d: e8 1e 0f 00 00 call 10fab0 10eb92: 89 c6 mov %eax,%esi st_gid = getegid(); 10eb94: e8 07 0f 00 00 call 10faa0 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) 10eb99: 66 3b 73 3c cmp 0x3c(%ebx),%si 10eb9d: 74 1d je 10ebbc flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 10eb9f: 66 3b 43 3e cmp 0x3e(%ebx),%ax 10eba3: 74 1f je 10ebc4 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 10eba5: 8b 43 30 mov 0x30(%ebx),%eax 10eba8: 21 f8 and %edi,%eax 10ebaa: 39 c7 cmp %eax,%edi 10ebac: 0f 94 c0 sete %al 10ebaf: 0f b6 c0 movzbl %al,%eax return 1; return 0; } 10ebb2: 83 c4 0c add $0xc,%esp 10ebb5: 5b pop %ebx 10ebb6: 5e pop %esi 10ebb7: 5f pop %edi 10ebb8: c9 leave 10ebb9: c3 ret 10ebba: 66 90 xchg %ax,%ax <== NOT EXECUTED */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; 10ebbc: c1 e7 06 shl $0x6,%edi 10ebbf: eb e4 jmp 10eba5 10ebc1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED else if ( st_gid == jnode->st_gid ) flags_to_test <<= 3; 10ebc4: c1 e7 03 shl $0x3,%edi 10ebc7: eb dc jmp 10eba5 0010ec28 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10ec28: 55 push %ebp 10ec29: 89 e5 mov %esp,%ebp 10ec2b: 57 push %edi 10ec2c: 56 push %esi 10ec2d: 53 push %ebx 10ec2e: 83 ec 0c sub $0xc,%esp 10ec31: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *jnode = node->node_access; 10ec34: 8b 03 mov (%ebx),%eax /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 10ec36: 83 78 4c 04 cmpl $0x4,0x4c(%eax) 10ec3a: 0f 85 9f 00 00 00 jne 10ecdf rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 10ec40: 8b 50 08 mov 0x8(%eax),%edx 10ec43: 85 d2 test %edx,%edx 10ec45: 0f 84 87 00 00 00 je 10ecd2 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 10ec4b: 89 13 mov %edx,(%ebx) rtems_filesystem_get_sym_start_loc( 10ec4d: 8b 50 50 mov 0x50(%eax),%edx 10ec50: 8a 0a mov (%edx),%cl 10ec52: 80 f9 2f cmp $0x2f,%cl 10ec55: 74 09 je 10ec60 10ec57: 80 f9 5c cmp $0x5c,%cl 10ec5a: 74 04 je 10ec60 10ec5c: 84 c9 test %cl,%cl 10ec5e: 75 5c jne 10ecbc 10ec60: 8b 35 38 53 12 00 mov 0x125338,%esi 10ec66: 83 c6 18 add $0x18,%esi 10ec69: b9 05 00 00 00 mov $0x5,%ecx 10ec6e: 89 df mov %ebx,%edi 10ec70: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10ec72: 8b 50 50 mov 0x50(%eax),%edx 10ec75: 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] ), 10ec7a: 01 c2 add %eax,%edx 10ec7c: 31 c0 xor %eax,%eax 10ec7e: b9 ff ff ff ff mov $0xffffffff,%ecx 10ec83: 89 d7 mov %edx,%edi 10ec85: f2 ae repnz scas %es:(%edi),%al 10ec87: f7 d1 not %ecx 10ec89: 49 dec %ecx /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 10ec8a: 53 push %ebx 10ec8b: ff 75 0c pushl 0xc(%ebp) 10ec8e: 51 push %ecx 10ec8f: 52 push %edx 10ec90: e8 57 00 00 00 call 10ecec 10ec95: 89 c6 mov %eax,%esi strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 10ec97: 89 1c 24 mov %ebx,(%esp) 10ec9a: e8 81 fe ff ff call 10eb20 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 10ec9f: 59 pop %ecx 10eca0: 5f pop %edi 10eca1: ff 75 0c pushl 0xc(%ebp) 10eca4: 53 push %ebx 10eca5: e8 d2 fe ff ff call 10eb7c 10ecaa: 83 c4 10 add $0x10,%esp 10ecad: 85 c0 test %eax,%eax 10ecaf: 74 0f je 10ecc0 rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10ecb1: 89 f0 mov %esi,%eax 10ecb3: 8d 65 f4 lea -0xc(%ebp),%esp 10ecb6: 5b pop %ebx 10ecb7: 5e pop %esi 10ecb8: 5f pop %edi 10ecb9: c9 leave 10ecba: c3 ret 10ecbb: 90 nop <== NOT EXECUTED * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 10ecbc: 31 c0 xor %eax,%eax 10ecbe: eb ba jmp 10ec7a /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 10ecc0: e8 cf 4b 00 00 call 113894 <__errno> <== NOT EXECUTED 10ecc5: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10eccb: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10ecd0: eb df jmp 10ecb1 <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 10ecd2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ecd5: 68 00 00 d0 ba push $0xbad00000 <== NOT EXECUTED 10ecda: e8 fd ce ff ff call 10bbdc <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 10ecdf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ece2: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10ece7: e8 f0 ce ff ff call 10bbdc <== NOT EXECUTED 00112270 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 112270: 55 push %ebp 112271: 89 e5 mov %esp,%ebp 112273: 53 push %ebx 112274: 83 ec 14 sub $0x14,%esp IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 112277: 8b 45 08 mov 0x8(%ebp),%eax 11227a: 8b 18 mov (%eax),%ebx /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 11227c: e8 2f d8 ff ff call 10fab0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 112281: 66 3b 43 3c cmp 0x3c(%ebx),%ax 112285: 74 05 je 11228c 112287: 66 85 c0 test %ax,%ax <== NOT EXECUTED 11228a: 75 34 jne 1122c0 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 11228c: 8b 45 0c mov 0xc(%ebp),%eax 11228f: 25 ff 0f 00 00 and $0xfff,%eax 112294: 8b 53 30 mov 0x30(%ebx),%edx 112297: 81 e2 00 f0 ff ff and $0xfffff000,%edx 11229d: 09 d0 or %edx,%eax 11229f: 89 43 30 mov %eax,0x30(%ebx) IMFS_update_ctime( jnode ); 1122a2: 83 ec 08 sub $0x8,%esp 1122a5: 6a 00 push $0x0 1122a7: 8d 45 f0 lea -0x10(%ebp),%eax 1122aa: 50 push %eax 1122ab: e8 10 d8 ff ff call 10fac0 1122b0: 8b 45 f0 mov -0x10(%ebp),%eax 1122b3: 89 43 48 mov %eax,0x48(%ebx) 1122b6: 31 c0 xor %eax,%eax return 0; 1122b8: 83 c4 10 add $0x10,%esp } 1122bb: 8b 5d fc mov -0x4(%ebp),%ebx 1122be: c9 leave 1122bf: c3 ret */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 1122c0: e8 cf 15 00 00 call 113894 <__errno> <== NOT EXECUTED 1122c5: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED 1122cb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1122d0: eb e9 jmp 1122bb <== NOT EXECUTED 0010f42c : } int IMFS_fifo_close( rtems_libio_t *iop ) { 10f42c: 55 push %ebp <== NOT EXECUTED 10f42d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f42f: 57 push %edi <== NOT EXECUTED 10f430: 56 push %esi <== NOT EXECUTED 10f431: 53 push %ebx <== NOT EXECUTED 10f432: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED 10f435: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f438: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 10f43b: 53 push %ebx <== NOT EXECUTED 10f43c: 8d 47 50 lea 0x50(%edi),%eax <== NOT EXECUTED 10f43f: 50 push %eax <== NOT EXECUTED 10f440: e8 3f 27 00 00 call 111b84 <== NOT EXECUTED 10f445: 89 c6 mov %eax,%esi <== NOT EXECUTED if (! err) { 10f447: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f44a: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f44d: 74 0d je 10f45c <== 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); 10f44f: 7c 37 jl 10f488 <== NOT EXECUTED } 10f451: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f453: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10f456: 5b pop %ebx <== NOT EXECUTED 10f457: 5e pop %esi <== NOT EXECUTED 10f458: 5f pop %edi <== NOT EXECUTED 10f459: c9 leave <== NOT EXECUTED 10f45a: c3 ret <== NOT EXECUTED 10f45b: 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; 10f45c: 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) 10f463: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f466: 57 push %edi <== NOT EXECUTED 10f467: e8 1c 07 00 00 call 10fb88 <== NOT EXECUTED 10f46c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f46f: 85 c0 test %eax,%eax <== NOT EXECUTED 10f471: 75 de jne 10f451 <== NOT EXECUTED 10f473: 66 83 7f 34 00 cmpw $0x0,0x34(%edi) <== NOT EXECUTED 10f478: 75 d7 jne 10f451 <== NOT EXECUTED free(jnode); 10f47a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f47d: 57 push %edi <== NOT EXECUTED 10f47e: e8 99 8b ff ff call 10801c <== NOT EXECUTED 10f483: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f486: eb c9 jmp 10f451 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 10f488: e8 07 44 00 00 call 113894 <__errno> <== NOT EXECUTED 10f48d: f7 de neg %esi <== NOT EXECUTED 10f48f: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f491: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f496: eb b9 jmp 10f451 <== NOT EXECUTED 0010f2fc : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 10f2fc: 55 push %ebp <== NOT EXECUTED 10f2fd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f2ff: 53 push %ebx <== NOT EXECUTED 10f300: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 10f303: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 10f306: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 10f309: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED int err; if (command == FIONBIO) { 10f30c: 81 fa 7e 66 04 80 cmp $0x8004667e,%edx <== NOT EXECUTED 10f312: 74 1c je 10f330 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 10f314: 50 push %eax <== NOT EXECUTED 10f315: 51 push %ecx <== NOT EXECUTED 10f316: 52 push %edx <== NOT EXECUTED 10f317: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f31a: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f31d: e8 42 24 00 00 call 111764 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 10f322: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f325: 85 c0 test %eax,%eax <== NOT EXECUTED 10f327: 78 3e js 10f367 <== NOT EXECUTED } 10f329: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f32c: c9 leave <== NOT EXECUTED 10f32d: c3 ret <== NOT EXECUTED 10f32e: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 10f330: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10f332: 74 20 je 10f354 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 10f334: 8b 11 mov (%ecx),%edx <== NOT EXECUTED 10f336: 85 d2 test %edx,%edx <== NOT EXECUTED 10f338: 74 0e je 10f348 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 10f33a: 83 48 14 01 orl $0x1,0x14(%eax) <== NOT EXECUTED 10f33e: 31 c0 xor %eax,%eax <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 10f340: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f343: c9 leave <== NOT EXECUTED 10f344: c3 ret <== NOT EXECUTED 10f345: 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; 10f348: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED 10f34c: 31 c0 xor %eax,%eax <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 10f34e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f351: c9 leave <== NOT EXECUTED 10f352: c3 ret <== NOT EXECUTED 10f353: 90 nop <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 10f354: bb 0e 00 00 00 mov $0xe,%ebx <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 10f359: e8 36 45 00 00 call 113894 <__errno> <== NOT EXECUTED 10f35e: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f360: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f365: eb c2 jmp 10f329 <== NOT EXECUTED 10f367: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f369: f7 db neg %ebx <== NOT EXECUTED 10f36b: eb ec jmp 10f359 <== NOT EXECUTED 0010f2b8 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 10f2b8: 55 push %ebp <== NOT EXECUTED 10f2b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f2bb: 53 push %ebx <== NOT EXECUTED 10f2bc: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f2bf: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 10f2c2: 50 push %eax <== NOT EXECUTED 10f2c3: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED 10f2c6: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f2c9: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f2cc: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f2cf: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f2d2: e8 2d 24 00 00 call 111704 <== NOT EXECUTED 10f2d7: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f2d9: 99 cltd <== NOT EXECUTED IMFS_FIFO_RETURN(err); 10f2da: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10f2dd: 85 d2 test %edx,%edx <== NOT EXECUTED 10f2df: 78 05 js 10f2e6 <== NOT EXECUTED } 10f2e1: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f2e4: c9 leave <== NOT EXECUTED 10f2e5: c3 ret <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 10f2e6: e8 a9 45 00 00 call 113894 <__errno> <== NOT EXECUTED 10f2eb: f7 db neg %ebx <== NOT EXECUTED 10f2ed: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f2ef: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f2f4: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 10f2f9: eb e6 jmp 10f2e1 <== NOT EXECUTED 0010f3d0 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 10f3d0: 55 push %ebp <== NOT EXECUTED 10f3d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f3d3: 56 push %esi <== NOT EXECUTED 10f3d4: 53 push %ebx <== NOT EXECUTED 10f3d5: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f3d8: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f3db: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 10f3de: 50 push %eax <== NOT EXECUTED 10f3df: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f3e2: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f3e5: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED 10f3e8: e8 d7 23 00 00 call 1117c4 <== NOT EXECUTED 10f3ed: 89 c3 mov %eax,%ebx <== NOT EXECUTED if (err > 0) 10f3ef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f3f2: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f3f5: 7e 21 jle 10f418 <== NOT EXECUTED IMFS_update_atime(jnode); 10f3f7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f3fa: 6a 00 push $0x0 <== NOT EXECUTED 10f3fc: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f3ff: 50 push %eax <== NOT EXECUTED 10f400: e8 bb 06 00 00 call 10fac0 <== NOT EXECUTED 10f405: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f408: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED 10f40b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED IMFS_FIFO_RETURN(err); } 10f40e: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10f410: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f413: 5b pop %ebx <== NOT EXECUTED 10f414: 5e pop %esi <== NOT EXECUTED 10f415: c9 leave <== NOT EXECUTED 10f416: c3 ret <== NOT EXECUTED 10f417: 90 nop <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 10f418: 74 f4 je 10f40e <== NOT EXECUTED 10f41a: e8 75 44 00 00 call 113894 <__errno> <== NOT EXECUTED 10f41f: f7 db neg %ebx <== NOT EXECUTED 10f421: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f423: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 10f428: eb e4 jmp 10f40e <== NOT EXECUTED 0010f370 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 10f370: 55 push %ebp <== NOT EXECUTED 10f371: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f373: 56 push %esi <== NOT EXECUTED 10f374: 53 push %ebx <== NOT EXECUTED 10f375: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f378: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f37b: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 10f37e: 50 push %eax <== NOT EXECUTED 10f37f: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f382: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f385: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED 10f388: e8 f7 25 00 00 call 111984 <== NOT EXECUTED 10f38d: 89 c6 mov %eax,%esi <== NOT EXECUTED if (err > 0) { 10f38f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f392: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f395: 7e 25 jle 10f3bc <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 10f397: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f39a: 6a 00 push $0x0 <== NOT EXECUTED 10f39c: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f39f: 50 push %eax <== NOT EXECUTED 10f3a0: e8 1b 07 00 00 call 10fac0 <== NOT EXECUTED 10f3a5: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f3a8: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED 10f3ab: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED 10f3ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } 10f3b1: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f3b3: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f3b6: 5b pop %ebx <== NOT EXECUTED 10f3b7: 5e pop %esi <== NOT EXECUTED 10f3b8: c9 leave <== NOT EXECUTED 10f3b9: c3 ret <== NOT EXECUTED 10f3ba: 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); 10f3bc: 74 f3 je 10f3b1 <== NOT EXECUTED 10f3be: e8 d1 44 00 00 call 113894 <__errno> <== NOT EXECUTED 10f3c3: f7 de neg %esi <== NOT EXECUTED 10f3c5: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f3c7: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f3cc: eb e3 jmp 10f3b1 <== NOT EXECUTED 0010f4d0 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 10f4d0: 55 push %ebp 10f4d1: 89 e5 mov %esp,%ebp 10f4d3: 57 push %edi 10f4d4: 56 push %esi 10f4d5: 53 push %ebx 10f4d6: 83 ec 0c sub $0xc,%esp 10f4d9: 8b 45 08 mov 0x8(%ebp),%eax 10f4dc: 8b 5d 0c mov 0xc(%ebp),%ebx /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 10f4df: 85 c0 test %eax,%eax 10f4e1: 74 67 je 10f54a if ( !name ) 10f4e3: 85 db test %ebx,%ebx 10f4e5: 74 2d je 10f514 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 10f4e7: bf 70 12 12 00 mov $0x121270,%edi 10f4ec: b9 02 00 00 00 mov $0x2,%ecx 10f4f1: 89 de mov %ebx,%esi 10f4f3: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f4f5: 74 13 je 10f50a return directory; if ( !strcmp( name, dotdotname ) ) 10f4f7: bf 72 12 12 00 mov $0x121272,%edi 10f4fc: b9 03 00 00 00 mov $0x3,%ecx 10f501: 89 de mov %ebx,%esi 10f503: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f505: 75 19 jne 10f520 return directory->Parent; 10f507: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 10f50a: 8d 65 f4 lea -0xc(%ebp),%esp 10f50d: 5b pop %ebx 10f50e: 5e pop %esi 10f50f: 5f pop %edi 10f510: c9 leave 10f511: c3 ret 10f512: 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; 10f514: 31 c0 xor %eax,%eax if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 10f516: 8d 65 f4 lea -0xc(%ebp),%esp 10f519: 5b pop %ebx 10f51a: 5e pop %esi 10f51b: 5f pop %edi 10f51c: c9 leave 10f51d: c3 ret 10f51e: 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; 10f520: 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; 10f523: 8d 78 54 lea 0x54(%eax),%edi 10f526: 39 fe cmp %edi,%esi 10f528: 75 08 jne 10f532 10f52a: eb e8 jmp 10f514 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 10f52c: 8b 36 mov (%esi),%esi if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 10f52e: 39 fe cmp %edi,%esi 10f530: 74 e2 je 10f514 !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 ) ) 10f532: 8d 46 0c lea 0xc(%esi),%eax 10f535: 83 ec 08 sub $0x8,%esp 10f538: 50 push %eax 10f539: 53 push %ebx 10f53a: e8 1d 4e 00 00 call 11435c 10f53f: 83 c4 10 add $0x10,%esp 10f542: 85 c0 test %eax,%eax 10f544: 75 e6 jne 10f52c 10f546: 89 f0 mov %esi,%eax 10f548: eb c0 jmp 10f50a /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 10f54a: 68 18 12 12 00 push $0x121218 <== NOT EXECUTED 10f54f: 68 75 12 12 00 push $0x121275 <== NOT EXECUTED 10f554: 6a 2a push $0x2a <== NOT EXECUTED 10f556: 68 24 12 12 00 push $0x121224 <== NOT EXECUTED 10f55b: e8 68 87 ff ff call 107cc8 <__assert_func> <== NOT EXECUTED 001141bc : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 1141bc: 55 push %ebp 1141bd: 89 e5 mov %esp,%ebp 1141bf: 57 push %edi 1141c0: 56 push %esi 1141c1: 53 push %ebx 1141c2: 83 ec 3c sub $0x3c,%esp 1141c5: 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; 1141c8: 8b 58 1c mov 0x1c(%eax),%ebx loc = temp_mt_entry->mt_fs_root; 1141cb: 8d 55 d4 lea -0x2c(%ebp),%edx 1141ce: 89 55 c4 mov %edx,-0x3c(%ebp) 1141d1: 8d 70 1c lea 0x1c(%eax),%esi 1141d4: b9 05 00 00 00 mov $0x5,%ecx 1141d9: 89 d7 mov %edx,%edi 1141db: 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; 1141dd: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) do { next = jnode->Parent; 1141e4: 8b 73 08 mov 0x8(%ebx),%esi loc.node_access = (void *)jnode; 1141e7: 89 5d d4 mov %ebx,-0x2c(%ebp) IMFS_Set_handlers( &loc ); 1141ea: 83 ec 0c sub $0xc,%esp 1141ed: 8d 45 d4 lea -0x2c(%ebp),%eax 1141f0: 50 push %eax 1141f1: e8 0e f6 ff ff call 113804 if ( jnode->type != IMFS_DIRECTORY ) { 1141f6: 83 c4 10 add $0x10,%esp 1141f9: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 1141fd: 75 2d jne 11422c */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 1141ff: 8d 43 54 lea 0x54(%ebx),%eax 114202: 39 43 50 cmp %eax,0x50(%ebx) 114205: 74 3e je 114245 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 114207: 85 db test %ebx,%ebx 114209: 74 15 je 114220 if ( jnode->type == IMFS_DIRECTORY ) { 11420b: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 11420f: 75 d3 jne 1141e4 114211: 8d 43 54 lea 0x54(%ebx),%eax 114214: 39 43 50 cmp %eax,0x50(%ebx) 114217: 74 cb je 1141e4 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); 114219: 8b 5b 50 mov 0x50(%ebx),%ebx } } } while (jnode != NULL); 11421c: 85 db test %ebx,%ebx 11421e: 75 c4 jne 1141e4 114220: 31 c0 xor %eax,%eax return 0; } 114222: 8d 65 f4 lea -0xc(%ebp),%esp 114225: 5b pop %ebx 114226: 5e pop %esi 114227: 5f pop %edi 114228: c9 leave 114229: c3 ret 11422a: 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 ); 11422c: 83 ec 08 sub $0x8,%esp 11422f: 8d 55 d4 lea -0x2c(%ebp),%edx 114232: 52 push %edx if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 114233: 6a 00 push $0x0 114235: e8 86 4b ff ff call 108dc0 if (result != 0) 11423a: 83 c4 10 add $0x10,%esp 11423d: 85 c0 test %eax,%eax 11423f: 75 0d jne 11424e 114241: 89 f3 mov %esi,%ebx 114243: eb c2 jmp 114207 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 114245: 83 ec 08 sub $0x8,%esp 114248: 8d 45 d4 lea -0x2c(%ebp),%eax 11424b: 50 push %eax 11424c: eb e5 jmp 114233 if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 11424e: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 114251: eb cf jmp 114222 <== NOT EXECUTED 0010f560 : const char *path, int pathlen, char *token, int *token_len ) { 10f560: 55 push %ebp 10f561: 89 e5 mov %esp,%ebp 10f563: 57 push %edi 10f564: 56 push %esi 10f565: 53 push %ebx 10f566: 8b 75 08 mov 0x8(%ebp),%esi 10f569: 8b 7d 0c mov 0xc(%ebp),%edi 10f56c: 8b 45 10 mov 0x10(%ebp),%eax 10f56f: 8b 5d 14 mov 0x14(%ebp),%ebx register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 10f572: 8a 16 mov (%esi),%dl while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 10f574: 80 fa 2f cmp $0x2f,%dl 10f577: 0f 84 94 00 00 00 je 10f611 10f57d: 80 fa 5c cmp $0x5c,%dl 10f580: 0f 84 8b 00 00 00 je 10f611 10f586: 84 d2 test %dl,%dl 10f588: 0f 84 94 00 00 00 je 10f622 10f58e: 85 ff test %edi,%edi 10f590: 7e 7f jle 10f611 token[i] = c; 10f592: 88 10 mov %dl,(%eax) 10f594: 31 d2 xor %edx,%edx 10f596: 66 90 xchg %ax,%ax return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 10f598: 42 inc %edx 10f599: 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) ) { 10f59c: 80 f9 2f cmp $0x2f,%cl 10f59f: 74 1f je 10f5c0 10f5a1: 80 f9 5c cmp $0x5c,%cl 10f5a4: 74 1a je 10f5c0 10f5a6: 84 c9 test %cl,%cl 10f5a8: 74 16 je 10f5c0 10f5aa: 39 d7 cmp %edx,%edi 10f5ac: 7e 12 jle 10f5c0 token[i] = c; 10f5ae: 88 0c 10 mov %cl,(%eax,%edx,1) if ( i == IMFS_NAME_MAX ) 10f5b1: 83 fa 20 cmp $0x20,%edx 10f5b4: 75 e2 jne 10f598 10f5b6: b8 04 00 00 00 mov $0x4,%eax else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f5bb: 5b pop %ebx 10f5bc: 5e pop %esi 10f5bd: 5f pop %edi 10f5be: c9 leave 10f5bf: c3 ret i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 10f5c0: 80 7c 10 ff 00 cmpb $0x0,-0x1(%eax,%edx,1) 10f5c5: 74 04 je 10f5cb token[i] = '\0'; 10f5c7: c6 04 10 00 movb $0x0,(%eax,%edx,1) /* * Set token_len to the number of characters copied. */ *token_len = i; 10f5cb: 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 ) 10f5cd: bf 8c 12 12 00 mov $0x12128c,%edi 10f5d2: b9 03 00 00 00 mov $0x3,%ecx 10f5d7: 89 c6 mov %eax,%esi 10f5d9: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f5db: 75 0b jne 10f5e8 10f5dd: b8 02 00 00 00 mov $0x2,%eax else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f5e2: 5b pop %ebx 10f5e3: 5e pop %esi 10f5e4: 5f pop %edi 10f5e5: c9 leave 10f5e6: c3 ret 10f5e7: 90 nop <== NOT EXECUTED */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 10f5e8: bf 8d 12 12 00 mov $0x12128d,%edi 10f5ed: b9 02 00 00 00 mov $0x2,%ecx 10f5f2: 89 c6 mov %eax,%esi 10f5f4: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f5f6: 0f 97 c0 seta %al 10f5f9: 0f 92 c2 setb %dl 10f5fc: 28 d0 sub %dl,%al 10f5fe: 0f be c0 movsbl %al,%eax 10f601: 83 f8 01 cmp $0x1,%eax 10f604: 19 c0 sbb %eax,%eax 10f606: 83 e0 fe and $0xfffffffe,%eax 10f609: 83 c0 03 add $0x3,%eax type = IMFS_CURRENT_DIR; } return type; } 10f60c: 5b pop %ebx 10f60d: 5e pop %esi 10f60e: 5f pop %edi 10f60f: c9 leave 10f610: c3 ret /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 10f611: 88 10 mov %dl,(%eax) i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 10f613: 83 ff 01 cmp $0x1,%edi 10f616: 19 c0 sbb %eax,%eax 10f618: 40 inc %eax 10f619: 89 c2 mov %eax,%edx /* * Set token_len to the number of characters copied. */ *token_len = i; 10f61b: 89 13 mov %edx,(%ebx) else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f61d: 5b pop %ebx 10f61e: 5e pop %esi 10f61f: 5f pop %edi 10f620: c9 leave 10f621: c3 ret /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 10f622: c6 00 00 movb $0x0,(%eax) 10f625: 31 c0 xor %eax,%eax 10f627: 31 d2 xor %edx,%edx /* * Set token_len to the number of characters copied. */ *token_len = i; 10f629: 89 13 mov %edx,(%ebx) 10f62b: eb f0 jmp 10f61d 0010f630 : 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 ) { 10f630: 55 push %ebp 10f631: 89 e5 mov %esp,%ebp 10f633: 57 push %edi 10f634: 56 push %esi 10f635: 53 push %ebx 10f636: 83 ec 0c sub $0xc,%esp 10f639: 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, 10f63c: 8b 0d 70 34 12 00 mov 0x123470,%ecx int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 10f642: 83 f9 10 cmp $0x10,%ecx 10f645: 74 18 je 10f65f 10f647: 31 d2 xor %edx,%edx 10f649: b8 20 00 00 00 mov $0x20,%eax 10f64e: 39 c1 cmp %eax,%ecx 10f650: 74 0d je 10f65f 10f652: d1 e0 shl %eax 10f654: 42 inc %edx 10f655: 83 fa 05 cmp $0x5,%edx 10f658: 75 f4 jne 10f64e 10f65a: 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) 10f65f: 89 0d 48 73 12 00 mov %ecx,0x127348 /* * 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(); 10f665: e8 c6 2a 00 00 call 112130 10f66a: 89 43 1c mov %eax,0x1c(%ebx) temp_mt_entry->mt_fs_root.handlers = directory_handlers; 10f66d: 8b 45 14 mov 0x14(%ebp),%eax 10f670: 89 43 24 mov %eax,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = op_table; 10f673: 8b 45 0c mov 0xc(%ebp),%eax 10f676: 89 43 28 mov %eax,0x28(%ebx) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 10f679: 8d 7b 38 lea 0x38(%ebx),%edi 10f67c: be 00 16 12 00 mov $0x121600,%esi 10f681: b9 0c 00 00 00 mov $0xc,%ecx 10f686: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 10f688: 83 ec 08 sub $0x8,%esp 10f68b: 6a 0c push $0xc 10f68d: 6a 01 push $0x1 10f68f: e8 78 02 00 00 call 10f90c if ( !fs_info ) { 10f694: 83 c4 10 add $0x10,%esp 10f697: 85 c0 test %eax,%eax 10f699: 74 2e je 10f6c9 free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); } temp_mt_entry->fs_info = fs_info; 10f69b: 89 43 34 mov %eax,0x34(%ebx) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 10f69e: c7 00 01 00 00 00 movl $0x1,(%eax) fs_info->memfile_handlers = memfile_handlers; 10f6a4: 8b 55 10 mov 0x10(%ebp),%edx 10f6a7: 89 50 04 mov %edx,0x4(%eax) fs_info->directory_handlers = directory_handlers; 10f6aa: 8b 55 14 mov 0x14(%ebp),%edx 10f6ad: 89 50 08 mov %edx,0x8(%eax) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 10f6b0: 8b 43 1c mov 0x1c(%ebx),%eax 10f6b3: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax) /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 10f6ba: e8 51 20 00 00 call 111710 10f6bf: 31 c0 xor %eax,%eax return 0; } 10f6c1: 8d 65 f4 lea -0xc(%ebp),%esp 10f6c4: 5b pop %ebx 10f6c5: 5e pop %esi 10f6c6: 5f pop %edi 10f6c7: c9 leave 10f6c8: 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); 10f6c9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f6cc: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED 10f6cf: e8 48 89 ff ff call 10801c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 10f6d4: e8 bb 41 00 00 call 113894 <__errno> <== NOT EXECUTED 10f6d9: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f6df: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f6e4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f6e7: eb d8 jmp 10f6c1 <== 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 f9 b7 00 00 call 1142e4 * 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 f7 ab 00 00 call 1136f8 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 c3 fe 00 00 call 1189fc <__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 b1 fe 00 00 call 1189fc <__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 00116c70 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 116c70: 55 push %ebp 116c71: 89 e5 mov %esp,%ebp 116c73: 53 push %ebx 116c74: 83 ec 04 sub $0x4,%esp 116c77: 8b 45 08 mov 0x8(%ebp),%eax block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 116c7a: 85 c0 test %eax,%eax 116c7c: 74 50 je 116cce if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116c7e: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 116c82: 75 31 jne 116cb5 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 ); 116c84: 52 push %edx 116c85: 6a 01 push $0x1 116c87: ff 75 0c pushl 0xc(%ebp) 116c8a: 50 push %eax 116c8b: e8 b8 fa ff ff call 116748 116c90: 89 c3 mov %eax,%ebx if ( *block_entry_ptr ) 116c92: 83 c4 10 add $0x10,%esp 116c95: 8b 00 mov (%eax),%eax 116c97: 85 c0 test %eax,%eax 116c99: 74 09 je 116ca4 #endif memory = memfile_alloc_block(); if ( !memory ) return 1; *block_entry_ptr = memory; 116c9b: 31 c0 xor %eax,%eax return 0; } 116c9d: 8b 5d fc mov -0x4(%ebp),%ebx 116ca0: c9 leave 116ca1: c3 ret 116ca2: 66 90 xchg %ax,%ax <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 116ca4: e8 7b fa ff ff call 116724 if ( !memory ) 116ca9: 85 c0 test %eax,%eax 116cab: 74 04 je 116cb1 return 1; *block_entry_ptr = memory; 116cad: 89 03 mov %eax,(%ebx) 116caf: eb ea jmp 116c9b fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 116cb1: b0 01 mov $0x1,%al <== NOT EXECUTED 116cb3: eb e8 jmp 116c9d <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116cb5: 68 20 6a 12 00 push $0x126a20 <== NOT EXECUTED 116cba: 68 1f 6b 12 00 push $0x126b1f <== NOT EXECUTED 116cbf: 68 6d 01 00 00 push $0x16d <== NOT EXECUTED 116cc4: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 116cc9: e8 42 23 ff ff call 109010 <__assert_func> <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 116cce: 68 ac 69 12 00 push $0x1269ac <== NOT EXECUTED 116cd3: 68 1f 6b 12 00 push $0x126b1f <== NOT EXECUTED 116cd8: 68 69 01 00 00 push $0x169 <== NOT EXECUTED 116cdd: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 116ce2: e8 29 23 ff ff call 109010 <__assert_func> <== NOT EXECUTED 00116ce8 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 116ce8: 55 push %ebp 116ce9: 89 e5 mov %esp,%ebp 116ceb: 57 push %edi 116cec: 56 push %esi 116ced: 53 push %ebx 116cee: 83 ec 2c sub $0x2c,%esp 116cf1: 8b 5d 08 mov 0x8(%ebp),%ebx 116cf4: 8b 45 0c mov 0xc(%ebp),%eax 116cf7: 8b 55 10 mov 0x10(%ebp),%edx 116cfa: 89 45 d8 mov %eax,-0x28(%ebp) 116cfd: 89 55 dc mov %edx,-0x24(%ebp) /* * Perform internal consistency checks */ assert( the_jnode ); 116d00: 85 db test %ebx,%ebx 116d02: 0f 84 29 01 00 00 je 116e31 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116d08: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx) 116d0c: 0f 85 06 01 00 00 jne 116e18 if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 116d12: a1 70 c7 12 00 mov 0x12c770,%eax 116d17: 89 c1 mov %eax,%ecx 116d19: c1 e9 02 shr $0x2,%ecx 116d1c: 8d 51 01 lea 0x1(%ecx),%edx 116d1f: 0f af d1 imul %ecx,%edx 116d22: 42 inc %edx 116d23: 0f af d1 imul %ecx,%edx 116d26: 4a dec %edx 116d27: 0f af d0 imul %eax,%edx 116d2a: 31 c9 xor %ecx,%ecx 116d2c: 3b 4d dc cmp -0x24(%ebp),%ecx 116d2f: 7f 1c jg 116d4d 116d31: 7d 15 jge 116d48 rtems_set_errno_and_return_minus_one( EINVAL ); 116d33: e8 c4 1c 00 00 call 1189fc <__errno> <== NOT EXECUTED 116d38: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 116d3e: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 116d43: e9 9e 00 00 00 jmp 116de6 <== 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 ) 116d48: 3b 55 d8 cmp -0x28(%ebp),%edx 116d4b: 76 e6 jbe 116d33 rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 116d4d: 8b 53 50 mov 0x50(%ebx),%edx 116d50: 8b 4b 54 mov 0x54(%ebx),%ecx 116d53: 89 55 e0 mov %edx,-0x20(%ebp) 116d56: 89 4d e4 mov %ecx,-0x1c(%ebp) 116d59: 39 4d dc cmp %ecx,-0x24(%ebp) 116d5c: 0f 8e 8e 00 00 00 jle 116df0 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 116d62: 89 45 d0 mov %eax,-0x30(%ebp) 116d65: 89 c1 mov %eax,%ecx 116d67: c1 f9 1f sar $0x1f,%ecx 116d6a: 89 4d d4 mov %ecx,-0x2c(%ebp) 116d6d: ff 75 d4 pushl -0x2c(%ebp) 116d70: ff 75 d0 pushl -0x30(%ebp) 116d73: ff 75 dc pushl -0x24(%ebp) 116d76: ff 75 d8 pushl -0x28(%ebp) 116d79: e8 3e cc 00 00 call 1239bc <__divdi3> 116d7e: 83 c4 10 add $0x10,%esp 116d81: 89 c6 mov %eax,%esi old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 116d83: ff 75 d4 pushl -0x2c(%ebp) 116d86: ff 75 d0 pushl -0x30(%ebp) 116d89: ff 75 e4 pushl -0x1c(%ebp) 116d8c: ff 75 e0 pushl -0x20(%ebp) 116d8f: e8 28 cc 00 00 call 1239bc <__divdi3> 116d94: 83 c4 10 add $0x10,%esp 116d97: 89 45 e0 mov %eax,-0x20(%ebp) /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 116d9a: 39 c6 cmp %eax,%esi 116d9c: 72 6a jb 116e08 116d9e: 89 c7 mov %eax,%edi 116da0: eb 07 jmp 116da9 116da2: 66 90 xchg %ax,%ax <== NOT EXECUTED 116da4: 47 inc %edi 116da5: 39 fe cmp %edi,%esi 116da7: 72 5f jb 116e08 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 116da9: 83 ec 08 sub $0x8,%esp 116dac: 57 push %edi 116dad: 53 push %ebx 116dae: e8 bd fe ff ff call 116c70 116db3: 83 c4 10 add $0x10,%esp 116db6: 85 c0 test %eax,%eax 116db8: 74 ea je 116da4 for ( ; block>=old_blocks ; block-- ) { 116dba: 39 7d e0 cmp %edi,-0x20(%ebp) <== NOT EXECUTED 116dbd: 77 17 ja 116dd6 <== NOT EXECUTED 116dbf: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED 116dc2: 66 90 xchg %ax,%ax <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 116dc4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116dc7: 57 push %edi <== NOT EXECUTED 116dc8: 53 push %ebx <== NOT EXECUTED 116dc9: e8 d6 fb ff ff call 1169a4 <== 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-- ) { 116dce: 4f dec %edi <== NOT EXECUTED 116dcf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 116dd2: 39 fe cmp %edi,%esi <== NOT EXECUTED 116dd4: 76 ee jbe 116dc4 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 116dd6: e8 21 1c 00 00 call 1189fc <__errno> <== NOT EXECUTED 116ddb: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 116de1: 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; } 116de6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116de9: 5b pop %ebx <== NOT EXECUTED 116dea: 5e pop %esi <== NOT EXECUTED 116deb: 5f pop %edi <== NOT EXECUTED 116dec: c9 leave <== NOT EXECUTED 116ded: c3 ret <== NOT EXECUTED 116dee: 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 ) 116df0: 7c 09 jl 116dfb 116df2: 39 55 d8 cmp %edx,-0x28(%ebp) 116df5: 0f 87 67 ff ff ff ja 116d62 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 116dfb: 31 c0 xor %eax,%eax return 0; } 116dfd: 8d 65 f4 lea -0xc(%ebp),%esp 116e00: 5b pop %ebx 116e01: 5e pop %esi 116e02: 5f pop %edi 116e03: c9 leave 116e04: c3 ret 116e05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 116e08: 8b 45 d8 mov -0x28(%ebp),%eax 116e0b: 8b 55 dc mov -0x24(%ebp),%edx 116e0e: 89 43 50 mov %eax,0x50(%ebx) 116e11: 89 53 54 mov %edx,0x54(%ebx) 116e14: 31 c0 xor %eax,%eax 116e16: eb e5 jmp 116dfd assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116e18: 68 20 6a 12 00 push $0x126a20 <== NOT EXECUTED 116e1d: 68 35 6b 12 00 push $0x126b35 <== NOT EXECUTED 116e22: 68 35 01 00 00 push $0x135 <== NOT EXECUTED 116e27: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 116e2c: e8 df 21 ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 116e31: 68 ac 69 12 00 push $0x1269ac <== NOT EXECUTED 116e36: 68 35 6b 12 00 push $0x126b35 <== NOT EXECUTED 116e3b: 68 31 01 00 00 push $0x131 <== NOT EXECUTED 116e40: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 116e45: e8 c6 21 ff ff call 109010 <__assert_func> <== NOT EXECUTED 00116748 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 116748: 55 push %ebp 116749: 89 e5 mov %esp,%ebp 11674b: 57 push %edi 11674c: 56 push %esi 11674d: 53 push %ebx 11674e: 83 ec 1c sub $0x1c,%esp 116751: 8b 5d 08 mov 0x8(%ebp),%ebx 116754: 8b 7d 0c mov 0xc(%ebp),%edi 116757: 8b 75 10 mov 0x10(%ebp),%esi /* * Perform internal consistency checks */ assert( the_jnode ); 11675a: 85 db test %ebx,%ebx 11675c: 0f 84 58 01 00 00 je 1168ba if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 116762: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx) 116766: 0f 85 67 01 00 00 jne 1168d3 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 11676c: 8b 0d 70 c7 12 00 mov 0x12c770,%ecx 116772: c1 e9 02 shr $0x2,%ecx 116775: 8d 41 ff lea -0x1(%ecx),%eax 116778: 39 c7 cmp %eax,%edi 11677a: 76 44 jbe 1167c0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 11677c: 8d 41 01 lea 0x1(%ecx),%eax <== NOT EXECUTED 11677f: 0f af c1 imul %ecx,%eax <== NOT EXECUTED 116782: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED 116785: 39 d7 cmp %edx,%edi <== NOT EXECUTED 116787: 77 57 ja 1167e0 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 116789: 89 f8 mov %edi,%eax <== NOT EXECUTED 11678b: 29 c8 sub %ecx,%eax <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 11678d: 31 d2 xor %edx,%edx <== NOT EXECUTED 11678f: f7 f1 div %ecx <== NOT EXECUTED 116791: 89 c1 mov %eax,%ecx <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 116793: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED if ( malloc_it ) { 116796: 85 f6 test %esi,%esi <== NOT EXECUTED 116798: 0f 84 96 00 00 00 je 116834 <== NOT EXECUTED if ( !p ) { 11679e: 85 c0 test %eax,%eax <== NOT EXECUTED 1167a0: 0f 84 dd 00 00 00 je 116883 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 1167a6: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 1167a9: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p1 ) { 1167ab: 85 c0 test %eax,%eax <== NOT EXECUTED 1167ad: 0f 84 ba 00 00 00 je 11686d <== 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 ]; 1167b3: 8d 04 90 lea (%eax,%edx,4),%eax <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 1167b6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1167b9: 5b pop %ebx <== NOT EXECUTED 1167ba: 5e pop %esi <== NOT EXECUTED 1167bb: 5f pop %edi <== NOT EXECUTED 1167bc: c9 leave <== NOT EXECUTED 1167bd: c3 ret <== NOT EXECUTED 1167be: 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; 1167c0: 8b 43 58 mov 0x58(%ebx),%eax if ( malloc_it ) { 1167c3: 85 f6 test %esi,%esi 1167c5: 0f 84 85 00 00 00 je 116850 if ( !p ) { 1167cb: 85 c0 test %eax,%eax 1167cd: 0f 84 89 00 00 00 je 11685c p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 1167d3: 8d 04 b8 lea (%eax,%edi,4),%eax /* * This means the requested block number is out of range. */ return 0; } 1167d6: 8d 65 f4 lea -0xc(%ebp),%esp 1167d9: 5b pop %ebx 1167da: 5e pop %esi 1167db: 5f pop %edi 1167dc: c9 leave 1167dd: c3 ret 1167de: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 1167e0: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1167e3: 0f af d1 imul %ecx,%edx <== NOT EXECUTED 1167e6: 4a dec %edx <== NOT EXECUTED 1167e7: 39 d7 cmp %edx,%edi <== NOT EXECUTED 1167e9: 77 59 ja 116844 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 1167eb: 29 c7 sub %eax,%edi <== NOT EXECUTED 1167ed: 89 f8 mov %edi,%eax <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 1167ef: 31 d2 xor %edx,%edx <== NOT EXECUTED 1167f1: f7 f1 div %ecx <== NOT EXECUTED 1167f3: 89 d7 mov %edx,%edi <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 1167f5: 31 d2 xor %edx,%edx <== NOT EXECUTED 1167f7: f7 f1 div %ecx <== NOT EXECUTED 1167f9: 89 c1 mov %eax,%ecx <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; 1167fb: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED if ( malloc_it ) { 1167fe: 85 f6 test %esi,%esi <== NOT EXECUTED 116800: 0f 84 9a 00 00 00 je 1168a0 <== NOT EXECUTED if ( !p ) { 116806: 85 c0 test %eax,%eax <== NOT EXECUTED 116808: 0f 84 de 00 00 00 je 1168ec <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 11680e: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 116811: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p1 ) { 116813: 85 c0 test %eax,%eax <== NOT EXECUTED 116815: 0f 84 f2 00 00 00 je 11690d <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 11681b: 8d 1c 90 lea (%eax,%edx,4),%ebx <== NOT EXECUTED 11681e: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p2 ) { 116820: 85 c0 test %eax,%eax <== NOT EXECUTED 116822: 75 af jne 1167d3 <== NOT EXECUTED p2 = memfile_alloc_block(); 116824: e8 fb fe ff ff call 116724 <== NOT EXECUTED if ( !p2 ) 116829: 85 c0 test %eax,%eax <== NOT EXECUTED 11682b: 74 17 je 116844 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 11682d: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 11682f: eb a2 jmp 1167d3 <== NOT EXECUTED 116831: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 116834: 85 c0 test %eax,%eax <== NOT EXECUTED 116836: 74 0c je 116844 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 116838: 8b 04 88 mov (%eax,%ecx,4),%eax <== NOT EXECUTED if ( !p ) 11683b: 85 c0 test %eax,%eax <== NOT EXECUTED 11683d: 0f 85 70 ff ff ff jne 1167b3 <== NOT EXECUTED 116843: 90 nop <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 116844: 31 c0 xor %eax,%eax <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 116846: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116849: 5b pop %ebx <== NOT EXECUTED 11684a: 5e pop %esi <== NOT EXECUTED 11684b: 5f pop %edi <== NOT EXECUTED 11684c: c9 leave <== NOT EXECUTED 11684d: c3 ret <== NOT EXECUTED 11684e: 66 90 xchg %ax,%ax <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 116850: 85 c0 test %eax,%eax 116852: 0f 85 7b ff ff ff jne 1167d3 p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 116858: 31 c0 xor %eax,%eax <== NOT EXECUTED 11685a: eb ea jmp 116846 <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 11685c: e8 c3 fe ff ff call 116724 if ( !p ) 116861: 85 c0 test %eax,%eax 116863: 74 df je 116844 return 0; info->indirect = p; 116865: 89 43 58 mov %eax,0x58(%ebx) 116868: e9 66 ff ff ff jmp 1167d3 info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 11686d: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 116870: e8 af fe ff ff call 116724 <== NOT EXECUTED if ( !p1 ) 116875: 85 c0 test %eax,%eax <== NOT EXECUTED 116877: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 11687a: 74 c8 je 116844 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 11687c: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 11687e: e9 30 ff ff ff jmp 1167b3 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 116883: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 116886: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 116889: e8 96 fe ff ff call 116724 <== NOT EXECUTED if ( !p ) 11688e: 85 c0 test %eax,%eax <== NOT EXECUTED 116890: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 116893: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 116896: 74 ac je 116844 <== NOT EXECUTED return 0; info->doubly_indirect = p; 116898: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED 11689b: e9 06 ff ff ff jmp 1167a6 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 1168a0: 85 c0 test %eax,%eax <== NOT EXECUTED 1168a2: 74 a0 je 116844 <== 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 ]; 1168a4: 8b 0c 88 mov (%eax,%ecx,4),%ecx <== NOT EXECUTED if ( !p1 ) 1168a7: 85 c9 test %ecx,%ecx <== NOT EXECUTED 1168a9: 74 99 je 116844 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 1168ab: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED 1168b2: 03 04 91 add (%ecx,%edx,4),%eax <== NOT EXECUTED 1168b5: e9 fc fe ff ff jmp 1167b6 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 1168ba: 68 ac 69 12 00 push $0x1269ac <== NOT EXECUTED 1168bf: 68 90 6a 12 00 push $0x126a90 <== NOT EXECUTED 1168c4: 68 88 03 00 00 push $0x388 <== NOT EXECUTED 1168c9: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 1168ce: e8 3d 27 ff ff call 109010 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 1168d3: 68 20 6a 12 00 push $0x126a20 <== NOT EXECUTED 1168d8: 68 90 6a 12 00 push $0x126a90 <== NOT EXECUTED 1168dd: 68 8c 03 00 00 push $0x38c <== NOT EXECUTED 1168e2: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 1168e7: e8 24 27 ff ff call 109010 <__assert_func> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 1168ec: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 1168ef: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 1168f2: e8 2d fe ff ff call 116724 <== NOT EXECUTED if ( !p ) 1168f7: 85 c0 test %eax,%eax <== NOT EXECUTED 1168f9: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 1168fc: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 1168ff: 0f 84 3f ff ff ff je 116844 <== NOT EXECUTED return 0; info->triply_indirect = p; 116905: 89 43 60 mov %eax,0x60(%ebx) <== NOT EXECUTED 116908: e9 01 ff ff ff jmp 11680e <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 11690d: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 116910: e8 0f fe ff ff call 116724 <== NOT EXECUTED if ( !p1 ) 116915: 85 c0 test %eax,%eax <== NOT EXECUTED 116917: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 11691a: 0f 84 24 ff ff ff je 116844 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 116920: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 116922: e9 f4 fe ff ff jmp 11681b <== NOT EXECUTED 00117268 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 117268: 55 push %ebp 117269: 89 e5 mov %esp,%ebp 11726b: 57 push %edi 11726c: 56 push %esi 11726d: 53 push %ebx 11726e: 83 ec 4c sub $0x4c,%esp 117271: 8b 75 0c mov 0xc(%ebp),%esi 117274: 8b 7d 10 mov 0x10(%ebp),%edi 117277: 8b 45 18 mov 0x18(%ebp),%eax /* * Perform internal consistency checks */ assert( the_jnode ); 11727a: 8b 55 08 mov 0x8(%ebp),%edx 11727d: 85 d2 test %edx,%edx 11727f: 0f 84 8e 02 00 00 je 117513 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 117285: 8b 4d 08 mov 0x8(%ebp),%ecx 117288: 8b 51 4c mov 0x4c(%ecx),%edx 11728b: 8d 4a fb lea -0x5(%edx),%ecx 11728e: 83 f9 01 cmp $0x1,%ecx 117291: 0f 87 63 02 00 00 ja 1174fa /* * Error checks on arguments */ assert( dest ); 117297: 8b 5d 14 mov 0x14(%ebp),%ebx 11729a: 85 db test %ebx,%ebx 11729c: 0f 84 26 02 00 00 je 1174c8 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 1172a2: 85 c0 test %eax,%eax 1172a4: 0f 84 f0 01 00 00 je 11749a /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 1172aa: 83 fa 06 cmp $0x6,%edx 1172ad: 0f 84 5d 01 00 00 je 117410 /* * 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; 1172b3: 89 f2 mov %esi,%edx if ( last_byte > the_jnode->info.file.size ) 1172b5: 8b 4d 08 mov 0x8(%ebp),%ecx 1172b8: 8b 49 50 mov 0x50(%ecx),%ecx 1172bb: 89 4d cc mov %ecx,-0x34(%ebp) 1172be: 8d 1c 30 lea (%eax,%esi,1),%ebx 1172c1: 89 5d d0 mov %ebx,-0x30(%ebp) 1172c4: 31 c9 xor %ecx,%ecx 1172c6: 8b 5d 08 mov 0x8(%ebp),%ebx 1172c9: 3b 4b 54 cmp 0x54(%ebx),%ecx 1172cc: 0f 8e e2 00 00 00 jle 1173b4 my_length = the_jnode->info.file.size - start; 1172d2: 8b 5d cc mov -0x34(%ebp),%ebx 1172d5: 29 d3 sub %edx,%ebx 1172d7: 89 5d cc mov %ebx,-0x34(%ebp) /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 1172da: a1 70 c7 12 00 mov 0x12c770,%eax 1172df: 89 45 d0 mov %eax,-0x30(%ebp) 1172e2: 99 cltd 1172e3: 89 d3 mov %edx,%ebx 1172e5: 52 push %edx 1172e6: 50 push %eax 1172e7: 57 push %edi 1172e8: 56 push %esi 1172e9: 89 45 c0 mov %eax,-0x40(%ebp) 1172ec: e8 1b c8 00 00 call 123b0c <__moddi3> 1172f1: 83 c4 10 add $0x10,%esp 1172f4: 89 45 c8 mov %eax,-0x38(%ebp) block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 1172f7: 8b 4d c0 mov -0x40(%ebp),%ecx 1172fa: 53 push %ebx 1172fb: 51 push %ecx 1172fc: 57 push %edi 1172fd: 56 push %esi 1172fe: e8 b9 c6 00 00 call 1239bc <__divdi3> 117303: 83 c4 10 add $0x10,%esp 117306: 89 c3 mov %eax,%ebx if ( start_offset ) { 117308: 8b 4d c8 mov -0x38(%ebp),%ecx 11730b: 85 c9 test %ecx,%ecx 11730d: 0f 85 b1 00 00 00 jne 1173c4 117313: 8b 55 14 mov 0x14(%ebp),%edx 117316: 89 55 c8 mov %edx,-0x38(%ebp) 117319: 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 ) { 117320: 8b 55 d0 mov -0x30(%ebp),%edx 117323: 39 55 cc cmp %edx,-0x34(%ebp) 117326: 72 39 jb 117361 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 117328: 50 push %eax 117329: 6a 00 push $0x0 11732b: 53 push %ebx 11732c: ff 75 08 pushl 0x8(%ebp) 11732f: e8 14 f4 ff ff call 116748 assert( block_ptr ); 117334: 83 c4 10 add $0x10,%esp 117337: 85 c0 test %eax,%eax 117339: 0f 84 70 01 00 00 je 1174af if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 11733f: 8b 30 mov (%eax),%esi 117341: 8b 7d c8 mov -0x38(%ebp),%edi 117344: 8b 4d d0 mov -0x30(%ebp),%ecx 117347: f3 a4 rep movsb %ds:(%esi),%es:(%edi) dest += to_copy; 117349: 89 7d c8 mov %edi,-0x38(%ebp) block++; 11734c: 43 inc %ebx my_length -= to_copy; 11734d: 8b 4d d0 mov -0x30(%ebp),%ecx 117350: 29 4d cc sub %ecx,-0x34(%ebp) copied += to_copy; 117353: 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 ) { 117356: 8b 7d cc mov -0x34(%ebp),%edi 117359: 39 3d 70 c7 12 00 cmp %edi,0x12c770 11735f: 76 c7 jbe 117328 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 117361: 8b 7d cc mov -0x34(%ebp),%edi 117364: 85 ff test %edi,%edi 117366: 74 27 je 11738f block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 117368: 56 push %esi 117369: 6a 00 push $0x0 11736b: 53 push %ebx 11736c: ff 75 08 pushl 0x8(%ebp) 11736f: e8 d4 f3 ff ff call 116748 assert( block_ptr ); 117374: 83 c4 10 add $0x10,%esp 117377: 85 c0 test %eax,%eax 117379: 0f 84 62 01 00 00 je 1174e1 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 11737f: 8b 30 mov (%eax),%esi 117381: 8b 7d c8 mov -0x38(%ebp),%edi 117384: 8b 4d cc mov -0x34(%ebp),%ecx 117387: f3 a4 rep movsb %ds:(%esi),%es:(%edi) copied += my_length; 117389: 8b 45 cc mov -0x34(%ebp),%eax 11738c: 01 45 c4 add %eax,-0x3c(%ebp) } IMFS_update_atime( the_jnode ); 11738f: 83 ec 08 sub $0x8,%esp 117392: 6a 00 push $0x0 117394: 8d 45 e0 lea -0x20(%ebp),%eax 117397: 50 push %eax 117398: e8 7f 20 ff ff call 10941c 11739d: 8b 45 e0 mov -0x20(%ebp),%eax 1173a0: 8b 55 08 mov 0x8(%ebp),%edx 1173a3: 89 42 40 mov %eax,0x40(%edx) return copied; 1173a6: 8b 45 c4 mov -0x3c(%ebp),%eax 1173a9: 83 c4 10 add $0x10,%esp } 1173ac: 8d 65 f4 lea -0xc(%ebp),%esp 1173af: 5b pop %ebx 1173b0: 5e pop %esi 1173b1: 5f pop %edi 1173b2: c9 leave 1173b3: 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 ) 1173b4: 0f 8d ba 00 00 00 jge 117474 1173ba: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED 1173bd: e9 18 ff ff ff jmp 1172da <== NOT EXECUTED 1173c2: 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 ); 1173c4: 52 push %edx 1173c5: 6a 00 push $0x0 1173c7: 53 push %ebx 1173c8: ff 75 08 pushl 0x8(%ebp) 1173cb: e8 78 f3 ff ff call 116748 assert( block_ptr ); 1173d0: 83 c4 10 add $0x10,%esp 1173d3: 85 c0 test %eax,%eax 1173d5: 0f 84 51 01 00 00 je 11752c */ 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; 1173db: 8b 4d d0 mov -0x30(%ebp),%ecx 1173de: 2b 4d c8 sub -0x38(%ebp),%ecx 1173e1: 8b 55 cc mov -0x34(%ebp),%edx 1173e4: 39 ca cmp %ecx,%edx 1173e6: 0f 87 9c 00 00 00 ja 117488 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 ); 1173ec: 8b 75 c8 mov -0x38(%ebp),%esi 1173ef: 03 30 add (%eax),%esi dest += to_copy; 1173f1: 8b 7d 14 mov 0x14(%ebp),%edi 1173f4: 89 d1 mov %edx,%ecx 1173f6: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 1173f8: 89 7d c8 mov %edi,-0x38(%ebp) block++; 1173fb: 43 inc %ebx my_length -= to_copy; 1173fc: 29 55 cc sub %edx,-0x34(%ebp) 1173ff: a1 70 c7 12 00 mov 0x12c770,%eax 117404: 89 45 d0 mov %eax,-0x30(%ebp) 117407: 89 55 c4 mov %edx,-0x3c(%ebp) 11740a: e9 11 ff ff ff jmp 117320 11740f: 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; 117410: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 117413: 8b 5b 58 mov 0x58(%ebx),%ebx <== NOT EXECUTED 117416: 89 5d cc mov %ebx,-0x34(%ebp) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 117419: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 11741c: 8b 51 50 mov 0x50(%ecx),%edx <== NOT EXECUTED 11741f: 8b 49 54 mov 0x54(%ecx),%ecx <== NOT EXECUTED 117422: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED 117425: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED 117428: 29 f2 sub %esi,%edx <== NOT EXECUTED 11742a: 19 f9 sbb %edi,%ecx <== NOT EXECUTED 11742c: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED 11742f: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED 117432: 31 db xor %ebx,%ebx <== NOT EXECUTED 117434: 39 cb cmp %ecx,%ebx <== NOT EXECUTED 117436: 7e 58 jle 117490 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 117438: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED 11743b: 29 f2 sub %esi,%edx <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 11743d: 03 75 cc add -0x34(%ebp),%esi <== NOT EXECUTED 117440: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED 117443: 89 d1 mov %edx,%ecx <== NOT EXECUTED 117445: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED IMFS_update_atime( the_jnode ); 117447: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11744a: 6a 00 push $0x0 <== NOT EXECUTED 11744c: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED 11744f: 50 push %eax <== NOT EXECUTED 117450: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED 117453: e8 c4 1f ff ff call 10941c <== NOT EXECUTED 117458: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 11745b: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 11745e: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED return my_length; 117461: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED 117464: 89 d0 mov %edx,%eax <== NOT EXECUTED 117466: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 117469: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11746c: 5b pop %ebx <== NOT EXECUTED 11746d: 5e pop %esi <== NOT EXECUTED 11746e: 5f pop %edi <== NOT EXECUTED 11746f: c9 leave <== NOT EXECUTED 117470: c3 ret <== NOT EXECUTED 117471: 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 ) 117474: 8b 4d cc mov -0x34(%ebp),%ecx 117477: 39 4d d0 cmp %ecx,-0x30(%ebp) 11747a: 0f 87 52 fe ff ff ja 1172d2 117480: e9 35 ff ff ff jmp 1173ba <== NOT EXECUTED 117485: 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; 117488: 89 ca mov %ecx,%edx 11748a: e9 5d ff ff ff jmp 1173ec 11748f: 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)) 117490: 7c 04 jl 117496 <== NOT EXECUTED 117492: 39 d0 cmp %edx,%eax <== NOT EXECUTED 117494: 77 a2 ja 117438 <== NOT EXECUTED 117496: 89 c2 mov %eax,%edx <== NOT EXECUTED 117498: eb a3 jmp 11743d <== 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 ); 11749a: e8 5d 15 00 00 call 1189fc <__errno> <== NOT EXECUTED 11749f: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 1174a5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1174aa: e9 fd fe ff ff jmp 1173ac <== 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 ); 1174af: 68 c2 69 12 00 push $0x1269c2 <== NOT EXECUTED 1174b4: 68 c2 6a 12 00 push $0x126ac2 <== NOT EXECUTED 1174b9: 68 a7 02 00 00 push $0x2a7 <== NOT EXECUTED 1174be: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 1174c3: e8 48 1b ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 1174c8: 68 d3 69 12 00 push $0x1269d3 <== NOT EXECUTED 1174cd: 68 c2 6a 12 00 push $0x126ac2 <== NOT EXECUTED 1174d2: 68 5a 02 00 00 push $0x25a <== NOT EXECUTED 1174d7: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 1174dc: e8 2f 1b 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 ); 1174e1: 68 c2 69 12 00 push $0x1269c2 <== NOT EXECUTED 1174e6: 68 c2 6a 12 00 push $0x126ac2 <== NOT EXECUTED 1174eb: 68 b9 02 00 00 push $0x2b9 <== NOT EXECUTED 1174f0: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 1174f5: e8 16 1b 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 || 1174fa: 68 44 6a 12 00 push $0x126a44 <== NOT EXECUTED 1174ff: 68 c2 6a 12 00 push $0x126ac2 <== NOT EXECUTED 117504: 68 51 02 00 00 push $0x251 <== NOT EXECUTED 117509: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 11750e: e8 fd 1a ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 117513: 68 ac 69 12 00 push $0x1269ac <== NOT EXECUTED 117518: 68 c2 6a 12 00 push $0x126ac2 <== NOT EXECUTED 11751d: 68 4c 02 00 00 push $0x24c <== NOT EXECUTED 117522: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 117527: e8 e4 1a 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 ); 11752c: 68 c2 69 12 00 push $0x1269c2 <== NOT EXECUTED 117531: 68 c2 6a 12 00 push $0x126ac2 <== NOT EXECUTED 117536: 68 96 02 00 00 push $0x296 <== NOT EXECUTED 11753b: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 117540: e8 cb 1a ff ff call 109010 <__assert_func> <== NOT EXECUTED 001169f0 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 1169f0: 55 push %ebp 1169f1: 89 e5 mov %esp,%ebp 1169f3: 57 push %edi 1169f4: 56 push %esi 1169f5: 53 push %ebx 1169f6: 83 ec 1c sub $0x1c,%esp /* * Perform internal consistency checks */ assert( the_jnode ); 1169f9: 8b 55 08 mov 0x8(%ebp),%edx 1169fc: 85 d2 test %edx,%edx 1169fe: 0f 84 61 01 00 00 je 116b65 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116a04: 8b 45 08 mov 0x8(%ebp),%eax 116a07: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 116a0b: 0f 85 6d 01 00 00 jne 116b7e /* * 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; 116a11: 8b 3d 70 c7 12 00 mov 0x12c770,%edi 116a17: c1 ef 02 shr $0x2,%edi * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 116a1a: 8b 55 08 mov 0x8(%ebp),%edx 116a1d: 8b 42 58 mov 0x58(%edx),%eax 116a20: 85 c0 test %eax,%eax 116a22: 74 12 je 116a36 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 116a24: 83 ec 08 sub $0x8,%esp 116a27: 57 push %edi 116a28: 89 d0 mov %edx,%eax 116a2a: 83 c0 58 add $0x58,%eax 116a2d: 50 push %eax 116a2e: e8 f5 fe ff ff call 116928 116a33: 83 c4 10 add $0x10,%esp } if ( info->doubly_indirect ) { 116a36: 8b 4d 08 mov 0x8(%ebp),%ecx 116a39: 8b 51 5c mov 0x5c(%ecx),%edx 116a3c: 85 d2 test %edx,%edx 116a3e: 74 57 je 116a97 for ( i=0 ; i <== NOT EXECUTED 116a4c: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 116a4e: 31 db xor %ebx,%ebx <== NOT EXECUTED 116a50: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 116a53: eb 06 jmp 116a5b <== NOT EXECUTED 116a55: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 116a58: 8b 56 5c mov 0x5c(%esi),%edx <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 116a5b: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED 116a5e: 83 3c 0a 00 cmpl $0x0,(%edx,%ecx,1) <== NOT EXECUTED 116a62: 74 14 je 116a78 <== NOT EXECUTED memfile_free_blocks_in_table( 116a64: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116a67: 57 push %edi <== NOT EXECUTED 116a68: 01 ca add %ecx,%edx <== NOT EXECUTED 116a6a: 52 push %edx <== NOT EXECUTED 116a6b: e8 b8 fe ff ff call 116928 <== NOT EXECUTED 116a70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 116a73: a1 70 c7 12 00 mov 0x12c770,%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 ); 116a84: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116a87: 57 push %edi <== NOT EXECUTED 116a88: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 116a8b: 83 c0 5c add $0x5c,%eax <== NOT EXECUTED 116a8e: 50 push %eax <== NOT EXECUTED 116a8f: e8 94 fe ff ff call 116928 <== NOT EXECUTED 116a94: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } if ( info->triply_indirect ) { 116a97: 8b 45 08 mov 0x8(%ebp),%eax 116a9a: 8b 50 60 mov 0x60(%eax),%edx 116a9d: 85 d2 test %edx,%edx 116a9f: 0f 84 b6 00 00 00 je 116b5b for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 116ab5: 8b 32 mov (%edx),%esi <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 116ab7: 85 f6 test %esi,%esi <== NOT EXECUTED 116ab9: 0f 84 89 00 00 00 je 116b48 <== NOT EXECUTED 116abf: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED 116ac6: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 116acd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 116ad7: 31 d2 xor %edx,%edx <== NOT EXECUTED 116ad9: 31 db xor %ebx,%ebx <== NOT EXECUTED 116adb: 90 nop <== NOT EXECUTED if ( p[j] ) { 116adc: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 116adf: 8b 0c 16 mov (%esi,%edx,1),%ecx <== NOT EXECUTED 116ae2: 85 c9 test %ecx,%ecx <== NOT EXECUTED 116ae4: 74 15 je 116afb <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 116ae6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116ae9: 57 push %edi <== NOT EXECUTED 116aea: 8d 14 16 lea (%esi,%edx,1),%edx <== NOT EXECUTED 116aed: 52 push %edx <== NOT EXECUTED 116aee: e8 35 fe ff ff call 116928 <== NOT EXECUTED 116af3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 116af6: a1 70 c7 12 00 mov 0x12c770,%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( 116b07: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116b0a: 57 push %edi <== NOT EXECUTED 116b0b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 116b0e: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 116b11: 03 41 60 add 0x60(%ecx),%eax <== NOT EXECUTED 116b14: 50 push %eax <== NOT EXECUTED 116b15: e8 0e fe ff ff call 116928 <== 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 */ 116b2f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 116b32: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 116b35: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 116b38: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 116b3b: 8b 51 60 mov 0x60(%ecx),%edx <== NOT EXECUTED 116b3e: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 116b41: 8b 34 0a mov (%edx,%ecx,1),%esi <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 116b44: 85 f6 test %esi,%esi <== NOT EXECUTED 116b46: 75 88 jne 116ad0 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 116b48: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116b4b: 57 push %edi <== NOT EXECUTED 116b4c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 116b4f: 83 c0 60 add $0x60,%eax <== NOT EXECUTED 116b52: 50 push %eax <== NOT EXECUTED 116b53: e8 d0 fd ff ff call 116928 <== NOT EXECUTED 116b58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 116b5b: 31 c0 xor %eax,%eax 116b5d: 8d 65 f4 lea -0xc(%ebp),%esp 116b60: 5b pop %ebx 116b61: 5e pop %esi 116b62: 5f pop %edi 116b63: c9 leave 116b64: c3 ret /* * Perform internal consistency checks */ assert( the_jnode ); 116b65: 68 ac 69 12 00 push $0x1269ac <== NOT EXECUTED 116b6a: 68 d4 6a 12 00 push $0x126ad4 <== NOT EXECUTED 116b6f: 68 ee 01 00 00 push $0x1ee <== NOT EXECUTED 116b74: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 116b79: e8 92 24 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 ); 116b7e: 68 20 6a 12 00 push $0x126a20 <== NOT EXECUTED 116b83: 68 d4 6a 12 00 push $0x126ad4 <== NOT EXECUTED 116b88: 68 f2 01 00 00 push $0x1f2 <== NOT EXECUTED 116b8d: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 116b92: e8 79 24 ff ff call 109010 <__assert_func> <== NOT EXECUTED 001169a4 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 1169a4: 55 push %ebp <== NOT EXECUTED 1169a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1169a7: 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 ); 1169aa: 6a 00 push $0x0 <== NOT EXECUTED 1169ac: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 1169af: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 1169b2: e8 91 fd ff ff call 116748 <== NOT EXECUTED assert( block_ptr ); 1169b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1169ba: 85 c0 test %eax,%eax <== NOT EXECUTED 1169bc: 74 18 je 1169d6 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 1169be: 8b 10 mov (%eax),%edx <== NOT EXECUTED *block_ptr = 0; 1169c0: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED memfile_free_block( ptr ); 1169c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1169c9: 52 push %edx <== NOT EXECUTED 1169ca: e8 39 fd ff ff call 116708 <== NOT EXECUTED } return 1; } 1169cf: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 1169d4: c9 leave <== NOT EXECUTED 1169d5: 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 ); 1169d6: 68 c2 69 12 00 push $0x1269c2 <== NOT EXECUTED 1169db: 68 05 6b 12 00 push $0x126b05 <== NOT EXECUTED 1169e0: 68 96 01 00 00 push $0x196 <== NOT EXECUTED 1169e5: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 1169ea: e8 21 26 ff ff call 109010 <__assert_func> <== NOT EXECUTED 00116f38 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 116f38: 55 push %ebp 116f39: 89 e5 mov %esp,%ebp 116f3b: 57 push %edi 116f3c: 56 push %esi 116f3d: 53 push %ebx 116f3e: 83 ec 3c sub $0x3c,%esp 116f41: 8b 5d 0c mov 0xc(%ebp),%ebx 116f44: 8b 75 10 mov 0x10(%ebp),%esi /* * Perform internal consistency checks */ assert( the_jnode ); 116f47: 8b 4d 08 mov 0x8(%ebp),%ecx 116f4a: 85 c9 test %ecx,%ecx 116f4c: 0f 84 d8 01 00 00 je 11712a if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116f52: 8b 45 08 mov 0x8(%ebp),%eax 116f55: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 116f59: 0f 85 b2 01 00 00 jne 117111 /* * Error check arguments */ assert( source ); 116f5f: 8b 55 14 mov 0x14(%ebp),%edx 116f62: 85 d2 test %edx,%edx 116f64: 0f 84 d9 01 00 00 je 117143 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 116f6a: 8b 45 18 mov 0x18(%ebp),%eax 116f6d: 85 c0 test %eax,%eax 116f6f: 0f 84 6c 01 00 00 je 1170e1 * 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 ) { 116f75: 8b 45 18 mov 0x18(%ebp),%eax 116f78: 01 d8 add %ebx,%eax 116f7a: 31 d2 xor %edx,%edx 116f7c: 8b 4d 08 mov 0x8(%ebp),%ecx 116f7f: 3b 51 54 cmp 0x54(%ecx),%edx 116f82: 7c 10 jl 116f94 116f84: 0f 8f 26 01 00 00 jg 1170b0 116f8a: 3b 41 50 cmp 0x50(%ecx),%eax 116f8d: 0f 87 1d 01 00 00 ja 1170b0 116f93: 90 nop <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 116f94: a1 70 c7 12 00 mov 0x12c770,%eax 116f99: 89 45 d4 mov %eax,-0x2c(%ebp) 116f9c: 99 cltd 116f9d: 89 45 c8 mov %eax,-0x38(%ebp) 116fa0: 89 55 cc mov %edx,-0x34(%ebp) 116fa3: 52 push %edx 116fa4: 50 push %eax 116fa5: 56 push %esi 116fa6: 53 push %ebx 116fa7: e8 60 cb 00 00 call 123b0c <__moddi3> 116fac: 83 c4 10 add $0x10,%esp 116faf: 89 c7 mov %eax,%edi block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 116fb1: ff 75 cc pushl -0x34(%ebp) 116fb4: ff 75 c8 pushl -0x38(%ebp) 116fb7: 56 push %esi 116fb8: 53 push %ebx 116fb9: e8 fe c9 00 00 call 1239bc <__divdi3> 116fbe: 83 c4 10 add $0x10,%esp 116fc1: 89 c3 mov %eax,%ebx if ( start_offset ) { 116fc3: 85 ff test %edi,%edi 116fc5: 0f 85 a1 00 00 00 jne 11706c 116fcb: 8b 55 18 mov 0x18(%ebp),%edx 116fce: 8b 75 14 mov 0x14(%ebp),%esi 116fd1: 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 ) { 116fd8: 3b 55 d4 cmp -0x2c(%ebp),%edx 116fdb: 72 3b jb 117018 116fdd: 8d 76 00 lea 0x0(%esi),%esi block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 116fe0: 51 push %ecx 116fe1: 6a 00 push $0x0 116fe3: 53 push %ebx 116fe4: ff 75 08 pushl 0x8(%ebp) 116fe7: 89 55 c4 mov %edx,-0x3c(%ebp) 116fea: e8 59 f7 ff ff call 116748 assert( block_ptr ); 116fef: 83 c4 10 add $0x10,%esp 116ff2: 85 c0 test %eax,%eax 116ff4: 8b 55 c4 mov -0x3c(%ebp),%edx 116ff7: 0f 84 fb 00 00 00 je 1170f8 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 ); 116ffd: 8b 00 mov (%eax),%eax src += to_copy; 116fff: 89 c7 mov %eax,%edi 117001: 8b 4d d4 mov -0x2c(%ebp),%ecx 117004: f3 a4 rep movsb %ds:(%esi),%es:(%edi) block++; 117006: 43 inc %ebx my_length -= to_copy; 117007: 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( 11700a: 8b 4d d4 mov -0x2c(%ebp),%ecx 11700d: 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 ) { 117010: 39 15 70 c7 12 00 cmp %edx,0x12c770 117016: 76 c8 jbe 116fe0 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 117018: 85 d2 test %edx,%edx 11701a: 74 28 je 117044 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 11701c: 50 push %eax 11701d: 6a 00 push $0x0 11701f: 53 push %ebx 117020: ff 75 08 pushl 0x8(%ebp) 117023: 89 55 c4 mov %edx,-0x3c(%ebp) 117026: e8 1d f7 ff ff call 116748 assert( block_ptr ); 11702b: 83 c4 10 add $0x10,%esp 11702e: 85 c0 test %eax,%eax 117030: 8b 55 c4 mov -0x3c(%ebp),%edx 117033: 0f 84 23 01 00 00 je 11715c 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 ); 117039: 8b 00 mov (%eax),%eax 11703b: 89 c7 mov %eax,%edi 11703d: 89 d1 mov %edx,%ecx 11703f: f3 a4 rep movsb %ds:(%esi),%es:(%edi) my_length = 0; copied += to_copy; 117041: 01 55 c8 add %edx,-0x38(%ebp) } IMFS_mtime_ctime_update( the_jnode ); 117044: 83 ec 08 sub $0x8,%esp 117047: 6a 00 push $0x0 117049: 8d 45 e0 lea -0x20(%ebp),%eax 11704c: 50 push %eax 11704d: e8 ca 23 ff ff call 10941c 117052: 8b 45 e0 mov -0x20(%ebp),%eax 117055: 8b 55 08 mov 0x8(%ebp),%edx 117058: 89 42 44 mov %eax,0x44(%edx) 11705b: 89 42 48 mov %eax,0x48(%edx) return copied; 11705e: 83 c4 10 add $0x10,%esp } 117061: 8b 45 c8 mov -0x38(%ebp),%eax 117064: 8d 65 f4 lea -0xc(%ebp),%esp 117067: 5b pop %ebx 117068: 5e pop %esi 117069: 5f pop %edi 11706a: c9 leave 11706b: 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 ); 11706c: 56 push %esi 11706d: 6a 00 push $0x0 11706f: 50 push %eax 117070: ff 75 08 pushl 0x8(%ebp) 117073: e8 d0 f6 ff ff call 116748 assert( block_ptr ); 117078: 83 c4 10 add $0x10,%esp 11707b: 85 c0 test %eax,%eax 11707d: 0f 84 f2 00 00 00 je 117175 */ 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; 117083: 8b 55 d4 mov -0x2c(%ebp),%edx 117086: 29 fa sub %edi,%edx 117088: 89 55 c8 mov %edx,-0x38(%ebp) 11708b: 8b 4d 18 mov 0x18(%ebp),%ecx 11708e: 39 ca cmp %ecx,%edx 117090: 77 4a ja 1170dc 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 ); 117092: 03 38 add (%eax),%edi src += to_copy; 117094: 8b 75 14 mov 0x14(%ebp),%esi 117097: 8b 4d c8 mov -0x38(%ebp),%ecx 11709a: f3 a4 rep movsb %ds:(%esi),%es:(%edi) block++; 11709c: 43 inc %ebx my_length -= to_copy; 11709d: 8b 55 18 mov 0x18(%ebp),%edx 1170a0: 2b 55 c8 sub -0x38(%ebp),%edx copied += to_copy; 1170a3: a1 70 c7 12 00 mov 0x12c770,%eax 1170a8: 89 45 d4 mov %eax,-0x2c(%ebp) 1170ab: e9 28 ff ff ff jmp 116fd8 * 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 ); 1170b0: 57 push %edi 1170b1: 52 push %edx 1170b2: 50 push %eax 1170b3: ff 75 08 pushl 0x8(%ebp) 1170b6: e8 2d fc ff ff call 116ce8 if ( status ) 1170bb: 83 c4 10 add $0x10,%esp 1170be: 85 c0 test %eax,%eax 1170c0: 0f 84 ce fe ff ff je 116f94 rtems_set_errno_and_return_minus_one( ENOSPC ); 1170c6: e8 31 19 00 00 call 1189fc <__errno> <== NOT EXECUTED 1170cb: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 1170d1: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED 1170d8: eb 87 jmp 117061 <== NOT EXECUTED 1170da: 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; 1170dc: 89 4d c8 mov %ecx,-0x38(%ebp) 1170df: eb b1 jmp 117092 * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 1170e1: e8 16 19 00 00 call 1189fc <__errno> <== NOT EXECUTED 1170e6: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 1170ec: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED 1170f3: e9 69 ff ff ff jmp 117061 <== 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 ); 1170f8: 68 c2 69 12 00 push $0x1269c2 <== NOT EXECUTED 1170fd: 68 af 6a 12 00 push $0x126aaf <== NOT EXECUTED 117102: 68 30 03 00 00 push $0x330 <== NOT EXECUTED 117107: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 11710c: e8 ff 1e 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 ); 117111: 68 20 6a 12 00 push $0x126a20 <== NOT EXECUTED 117116: 68 af 6a 12 00 push $0x126aaf <== NOT EXECUTED 11711b: 68 e7 02 00 00 push $0x2e7 <== NOT EXECUTED 117120: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 117125: e8 e6 1e ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 11712a: 68 ac 69 12 00 push $0x1269ac <== NOT EXECUTED 11712f: 68 af 6a 12 00 push $0x126aaf <== NOT EXECUTED 117134: 68 e3 02 00 00 push $0x2e3 <== NOT EXECUTED 117139: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 11713e: e8 cd 1e ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 117143: 68 cc 69 12 00 push $0x1269cc <== NOT EXECUTED 117148: 68 af 6a 12 00 push $0x126aaf <== NOT EXECUTED 11714d: 68 ef 02 00 00 push $0x2ef <== NOT EXECUTED 117152: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 117157: e8 b4 1e 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 ); 11715c: 68 c2 69 12 00 push $0x1269c2 <== NOT EXECUTED 117161: 68 af 6a 12 00 push $0x126aaf <== NOT EXECUTED 117166: 68 46 03 00 00 push $0x346 <== NOT EXECUTED 11716b: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 117170: e8 9b 1e 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 ); 117175: 68 c2 69 12 00 push $0x1269c2 <== NOT EXECUTED 11717a: 68 af 6a 12 00 push $0x126aaf <== NOT EXECUTED 11717f: 68 1c 03 00 00 push $0x31c <== NOT EXECUTED 117184: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 117189: e8 82 1e ff ff call 109010 <__assert_func> <== NOT EXECUTED 0010f6ec : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 10f6ec: 55 push %ebp 10f6ed: 89 e5 mov %esp,%ebp 10f6ef: 57 push %edi 10f6f0: 56 push %esi 10f6f1: 53 push %ebx 10f6f2: 83 ec 5c sub $0x5c,%esp 10f6f5: 8b 55 08 mov 0x8(%ebp),%edx 10f6f8: 8b 5d 0c mov 0xc(%ebp),%ebx 10f6fb: 8b 75 10 mov 0x10(%ebp),%esi 10f6fe: 8b 45 14 mov 0x14(%ebp),%eax 10f701: 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 ); 10f704: 31 c0 xor %eax,%eax 10f706: b9 ff ff ff ff mov $0xffffffff,%ecx 10f70b: 89 d7 mov %edx,%edi 10f70d: f2 ae repnz scas %es:(%edi),%al 10f70f: f7 d1 not %ecx 10f711: 49 dec %ecx 10f712: 8d 45 e4 lea -0x1c(%ebp),%eax 10f715: 50 push %eax 10f716: 8d 7d af lea -0x51(%ebp),%edi 10f719: 57 push %edi 10f71a: 51 push %ecx 10f71b: 52 push %edx 10f71c: e8 3f fe ff ff call 10f560 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 10f721: 89 d8 mov %ebx,%eax 10f723: 25 00 f0 00 00 and $0xf000,%eax 10f728: 83 c4 10 add $0x10,%esp 10f72b: 3d 00 40 00 00 cmp $0x4000,%eax 10f730: 74 5e je 10f790 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 10f732: 3d 00 80 00 00 cmp $0x8000,%eax 10f737: 74 4f je 10f788 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 10f739: 3d 00 60 00 00 cmp $0x6000,%eax 10f73e: 74 38 je 10f778 10f740: 3d 00 20 00 00 cmp $0x2000,%eax 10f745: 74 31 je 10f778 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 10f747: 3d 00 10 00 00 cmp $0x1000,%eax 10f74c: 75 4a jne 10f798 10f74e: 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( 10f753: 83 ec 0c sub $0xc,%esp 10f756: 8d 45 d0 lea -0x30(%ebp),%eax 10f759: 50 push %eax 10f75a: 53 push %ebx 10f75b: 57 push %edi 10f75c: 52 push %edx 10f75d: ff 75 18 pushl 0x18(%ebp) 10f760: e8 ff 29 00 00 call 112164 new_name, mode, &info ); if ( !new_node ) 10f765: 83 c4 20 add $0x20,%esp 10f768: 85 c0 test %eax,%eax 10f76a: 74 3e je 10f7aa 10f76c: 31 c0 xor %eax,%eax rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 10f76e: 8d 65 f4 lea -0xc(%ebp),%esp 10f771: 5b pop %ebx 10f772: 5e pop %esi 10f773: 5f pop %edi 10f774: c9 leave 10f775: c3 ret 10f776: 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 ); 10f778: 89 75 d0 mov %esi,-0x30(%ebp) dev_t device ) { union __rtems_dev_t temp; temp.device = device; 10f77b: 8b 45 a4 mov -0x5c(%ebp),%eax 10f77e: 89 45 d4 mov %eax,-0x2c(%ebp) 10f781: 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) ) { 10f786: eb cb jmp 10f753 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 10f788: ba 05 00 00 00 mov $0x5,%edx 10f78d: eb c4 jmp 10f753 10f78f: 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 ); 10f790: ba 01 00 00 00 mov $0x1,%edx 10f795: eb bc jmp 10f753 10f797: 90 nop <== NOT EXECUTED 10f798: e8 f7 40 00 00 call 113894 <__errno> <== NOT EXECUTED 10f79d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10f7a3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f7a8: eb c4 jmp 10f76e <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 10f7aa: e8 e5 40 00 00 call 113894 <__errno> <== NOT EXECUTED 10f7af: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f7b5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f7ba: eb b2 jmp 10f76e <== 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 b3 fd 00 00 call 1189fc <__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 b1 12 00 mov 0x12b160,%eax 1092e6: ff 70 08 pushl 0x8(%eax) 1092e9: 8d 43 0c lea 0xc(%ebx),%eax 1092ec: 50 push %eax 1092ed: e8 ea e9 00 00 call 117cdc 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 2e 68 12 00 push $0x12682e <== NOT EXECUTED 109304: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 109309: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10930c: e8 a3 e8 00 00 call 117bb4 <== NOT EXECUTED assert(0); 109311: 68 0e 49 12 00 push $0x12490e <== NOT EXECUTED 109316: 68 94 69 12 00 push $0x126994 <== NOT EXECUTED 10931b: 6a 6c push $0x6c <== NOT EXECUTED 10931d: 68 78 68 12 00 push $0x126878 <== 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 60 69 12 00 jmp *0x126960(,%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 b1 12 00 mov 0x12b160,%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 1b 68 12 00 push $0x12681b <== NOT EXECUTED 109341: e8 ce f5 00 00 call 118914 <== NOT EXECUTED assert(0); 109346: 68 0e 49 12 00 push $0x12490e <== NOT EXECUTED 10934b: 68 94 69 12 00 push $0x126994 <== NOT EXECUTED 109350: 6a 67 push $0x67 <== NOT EXECUTED 109352: 68 78 68 12 00 push $0x126878 <== 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 ec 67 12 00 push $0x1267ec <== NOT EXECUTED 109367: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10936c: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10936f: e8 40 e8 00 00 call 117bb4 <== 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 35 6b 12 00 movl $0x126b35,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 e9 01 01 00 jmp 119570 <== 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 fb 67 12 00 push $0x1267fb 109391: a1 60 b1 12 00 mov 0x12b160,%eax 109396: ff 70 08 pushl 0x8(%eax) 109399: e8 16 e8 00 00 call 117bb4 (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 35 6b 12 00 movl $0x126b35,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 bf 01 01 00 jmp 119570 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 b1 12 00 mov 0x12b160,%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 07 68 12 00 push $0x126807 <== NOT EXECUTED 1093c5: e8 4a f5 00 00 call 118914 <== NOT EXECUTED assert(0); 1093ca: 68 0e 49 12 00 push $0x12490e <== NOT EXECUTED 1093cf: 68 94 69 12 00 push $0x126994 <== NOT EXECUTED 1093d4: 6a 62 push $0x62 <== NOT EXECUTED 1093d6: 68 78 68 12 00 push $0x126878 <== 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 b1 12 00 mov 0x12b160,%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 07 68 12 00 push $0x126807 <== NOT EXECUTED 1093f1: e8 1e f5 00 00 call 118914 <== NOT EXECUTED assert(0); 1093f6: 68 0e 49 12 00 push $0x12490e <== NOT EXECUTED 1093fb: 68 94 69 12 00 push $0x126994 <== NOT EXECUTED 109400: 6a 5d push $0x5d <== NOT EXECUTED 109402: 68 78 68 12 00 push $0x126878 <== 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 d9 67 12 00 push $0x1267d9 109417: a1 60 b1 12 00 mov 0x12b160,%eax 10941c: ff 70 08 pushl 0x8(%eax) 10941f: e8 90 e7 00 00 call 117bb4 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 35 6b 12 00 movl $0x126b35,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 39 01 01 00 jmp 119570 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 b1 12 00 mov 0x12b160,%eax 109440: ff 70 08 pushl 0x8(%eax) 109443: 6a 2f push $0x2f 109445: e8 a6 e7 00 00 call 117bf0 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 35 6b 12 00 movl $0x126b35,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 13 01 01 00 jmp 119570 void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 10945d: 68 cf 67 12 00 push $0x1267cf <== NOT EXECUTED 109462: 68 94 69 12 00 push $0x126994 <== NOT EXECUTED 109467: 6a 38 push $0x38 <== NOT EXECUTED 109469: 68 78 68 12 00 push $0x126878 <== 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 3f fd 00 00 call 1189fc <__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 c6 08 01 00 call 1195ac <== 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 93 4a 00 00 call 10d78c <_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 57 4a 00 00 call 10d768 <_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 0010f7cc : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 10f7cc: 55 push %ebp 10f7cd: 89 e5 mov %esp,%ebp 10f7cf: 56 push %esi 10f7d0: 53 push %ebx 10f7d1: 83 ec 10 sub $0x10,%esp 10f7d4: 8b 75 0c mov 0xc(%ebp),%esi IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 10f7d7: 8b 1e mov (%esi),%ebx /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 10f7d9: 8b 43 08 mov 0x8(%ebx),%eax 10f7dc: 85 c0 test %eax,%eax 10f7de: 74 13 je 10f7f3 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 10f7e0: 83 ec 0c sub $0xc,%esp 10f7e3: 53 push %ebx 10f7e4: e8 2b 12 00 00 call 110a14 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 10f7e9: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 10f7f0: 83 c4 10 add $0x10,%esp /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 10f7f3: 66 ff 4b 34 decw 0x34(%ebx) IMFS_update_ctime( the_jnode ); 10f7f7: 83 ec 08 sub $0x8,%esp 10f7fa: 6a 00 push $0x0 10f7fc: 8d 45 f0 lea -0x10(%ebp),%eax 10f7ff: 50 push %eax 10f800: e8 bb 02 00 00 call 10fac0 10f805: 8b 45 f0 mov -0x10(%ebp),%eax 10f808: 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) ) { 10f80b: 89 1c 24 mov %ebx,(%esp) 10f80e: e8 75 03 00 00 call 10fb88 10f813: 83 c4 10 add $0x10,%esp 10f816: 85 c0 test %eax,%eax 10f818: 75 25 jne 10f83f 10f81a: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 10f81f: 75 1e jne 10f83f /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 10f821: a1 38 53 12 00 mov 0x125338,%eax 10f826: 8b 50 04 mov 0x4(%eax),%edx 10f829: 3b 16 cmp (%esi),%edx 10f82b: 74 33 je 10f860 /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 10f82d: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx) 10f831: 74 15 je 10f848 if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 10f833: 83 ec 0c sub $0xc,%esp 10f836: 53 push %ebx 10f837: e8 e0 87 ff ff call 10801c 10f83c: 83 c4 10 add $0x10,%esp } return 0; } 10f83f: 31 c0 xor %eax,%eax 10f841: 8d 65 f8 lea -0x8(%ebp),%esp 10f844: 5b pop %ebx 10f845: 5e pop %esi 10f846: c9 leave 10f847: c3 ret /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 10f848: 8b 43 50 mov 0x50(%ebx),%eax 10f84b: 85 c0 test %eax,%eax 10f84d: 74 e4 je 10f833 free( (void*) the_jnode->info.sym_link.name ); 10f84f: 83 ec 0c sub $0xc,%esp 10f852: 50 push %eax 10f853: e8 c4 87 ff ff call 10801c 10f858: 83 c4 10 add $0x10,%esp 10f85b: eb d6 jmp 10f833 10f85d: 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; 10f860: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 10f867: eb c4 jmp 10f82d <== NOT EXECUTED 0010f86c : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 10f86c: 55 push %ebp 10f86d: 89 e5 mov %esp,%ebp 10f86f: 53 push %ebx 10f870: 83 ec 04 sub $0x4,%esp 10f873: 8b 55 0c mov 0xc(%ebp),%edx IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 10f876: 8b 45 08 mov 0x8(%ebp),%eax 10f879: 8b 00 mov (%eax),%eax switch ( the_jnode->type ) { 10f87b: 83 78 4c 07 cmpl $0x7,0x4c(%eax) 10f87f: 76 17 jbe 10f898 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 10f881: e8 0e 40 00 00 call 113894 <__errno> <== NOT EXECUTED 10f886: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10f88c: 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; } 10f891: 5a pop %edx <== NOT EXECUTED 10f892: 5b pop %ebx <== NOT EXECUTED 10f893: c9 leave <== NOT EXECUTED 10f894: c3 ret <== NOT EXECUTED 10f895: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 10f898: 8b 48 4c mov 0x4c(%eax),%ecx 10f89b: ff 24 8d 18 13 12 00 jmp *0x121318(,%ecx,4) 10f8a2: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 10f8a4: c7 42 20 00 00 00 00 movl $0x0,0x20(%edx) <== NOT EXECUTED 10f8ab: 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; 10f8b2: 8b 48 30 mov 0x30(%eax),%ecx 10f8b5: 89 4a 0c mov %ecx,0xc(%edx) buf->st_nlink = the_jnode->st_nlink; 10f8b8: 8b 48 34 mov 0x34(%eax),%ecx 10f8bb: 66 89 4a 10 mov %cx,0x10(%edx) buf->st_ino = the_jnode->st_ino; 10f8bf: 8b 48 38 mov 0x38(%eax),%ecx 10f8c2: 89 4a 08 mov %ecx,0x8(%edx) buf->st_uid = the_jnode->st_uid; 10f8c5: 8b 48 3c mov 0x3c(%eax),%ecx 10f8c8: 66 89 4a 12 mov %cx,0x12(%edx) buf->st_gid = the_jnode->st_gid; 10f8cc: 66 8b 48 3e mov 0x3e(%eax),%cx 10f8d0: 66 89 4a 14 mov %cx,0x14(%edx) buf->st_atime = the_jnode->stat_atime; 10f8d4: 8b 48 40 mov 0x40(%eax),%ecx 10f8d7: 89 4a 28 mov %ecx,0x28(%edx) buf->st_mtime = the_jnode->stat_mtime; 10f8da: 8b 48 44 mov 0x44(%eax),%ecx 10f8dd: 89 4a 30 mov %ecx,0x30(%edx) buf->st_ctime = the_jnode->stat_ctime; 10f8e0: 8b 40 48 mov 0x48(%eax),%eax 10f8e3: 89 42 38 mov %eax,0x38(%edx) 10f8e6: 31 c0 xor %eax,%eax return 0; } 10f8e8: 5a pop %edx 10f8e9: 5b pop %ebx 10f8ea: c9 leave 10f8eb: 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 ); 10f8ec: 8b 48 54 mov 0x54(%eax),%ecx rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 10f8ef: 8b 58 50 mov 0x50(%eax),%ebx 10f8f2: 89 5a 18 mov %ebx,0x18(%edx) 10f8f5: 89 4a 1c mov %ecx,0x1c(%edx) break; 10f8f8: eb b8 jmp 10f8b2 10f8fa: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 10f8fc: 8b 48 50 mov 0x50(%eax),%ecx 10f8ff: 8b 58 54 mov 0x54(%eax),%ebx 10f902: 89 4a 20 mov %ecx,0x20(%edx) 10f905: 89 5a 24 mov %ebx,0x24(%edx) break; 10f908: eb a8 jmp 10f8b2 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 90 b5 00 00 call 1142e4 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 108d54: 58 pop %eax 108d55: ff 75 0c pushl 0xc(%ebp) 108d58: e8 77 07 01 00 call 1194d4 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 7a a9 00 00 call 1136f8 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 69 fc 00 00 call 1189fc <__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 4c fc 00 00 call 1189fc <__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 f3 a9 00 00 call 113804 /* * 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 8b fb 00 00 call 1189fc <__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 4f fb 00 00 call 1189fc <__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 3d fb 00 00 call 1189fc <__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 48 59 12 00 mov 0x125948,%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 4c 59 12 00 mov 0x12594c,%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 45 59 12 00 00 cmpb $0x0,0x125945 108202: 75 1f jne 108223 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 108204: 80 3d 68 35 12 00 00 cmpb $0x0,0x123568 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 78 34 12 00 pushl 0x123478 108217: e8 f8 41 00 00 call 10c414 <_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 a0 75 12 00 mov 0x1275a0,%ebx 108229: 83 ec 0c sub $0xc,%esp 10822c: ff 35 78 34 12 00 pushl 0x123478 108232: e8 7d 4d 00 00 call 10cfb4 <_Protected_heap_Get_size> 108237: 8d 1c 18 lea (%eax,%ebx,1),%ebx 10823a: 89 1d a0 75 12 00 mov %ebx,0x1275a0 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 45 59 12 00 00 cmpb $0x0,0x125945 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 73 39 00 00 call 10bbdc <== 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 bf 16 00 mov 0x16bfe0,%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 c4 00 00 00 lea 0xc4(%ebx),%esi <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 10b447: 8b 93 d8 00 00 00 mov 0xd8(%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 64 b2 15 00 push $0x15b264 <== NOT EXECUTED 10b499: ff 35 dc bf 16 00 pushl 0x16bfdc <== 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 7f b2 15 00 push $0x15b27f <== NOT EXECUTED 10b4bc: ff 35 dc bf 16 00 pushl 0x16bfdc <== NOT EXECUTED 10b4c2: ff 15 e0 bf 16 00 call *0x16bfe0 <== 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 bf 16 00 mov 0x16bfd8,%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 aa b2 15 00 push $0x15b2aa <== NOT EXECUTED 10b4de: ff 35 dc bf 16 00 pushl 0x16bfdc <== NOT EXECUTED 10b4e4: ff 15 e0 bf 16 00 call *0x16bfe0 <== 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 9d b2 15 00 push $0x15b29d <== NOT EXECUTED 10b500: ff 35 dc bf 16 00 pushl 0x16bfdc <== NOT EXECUTED 10b506: ff 15 e0 bf 16 00 call *0x16bfe0 <== 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 ed 16 00 mov 0x16ed54,%ecx <== NOT EXECUTED 10b51e: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10b520: 74 cb je 10b4ed <== NOT EXECUTED 10b522: 31 db xor %ebx,%ebx <== NOT EXECUTED 10b524: be 50 ed 16 00 mov $0x16ed50,%esi <== NOT EXECUTED 10b529: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== 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 71 b2 15 00 push $0x15b271 <== NOT EXECUTED 10b550: ff 35 dc bf 16 00 pushl 0x16bfdc <== 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 c8 00 00 00 mov 0xc8(%ebx),%esi <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 10b5f4: 68 c7 b2 15 00 push $0x15b2c7 <== 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 d7 b2 15 00 push $0x15b2d7 <== 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 f4 b2 15 00 push $0x15b2f4 <== 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 06 b3 15 00 push $0x15b306 <== 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 1a b3 15 00 push $0x15b31a <== 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 c8 00 00 00 mov 0xc8(%ebx),%ecx <== NOT EXECUTED 10b650: 8b 83 c4 00 00 00 mov 0xc4(%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 7c b3 15 00 push $0x15b37c <== 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 a7 64 00 00 call 111b24 <== 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 b0 b3 15 00 push $0x15b3b0 <== 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 0010e040 <_CORE_RWLock_Obtain_for_reading>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { 10e040: 55 push %ebp 10e041: 89 e5 mov %esp,%ebp 10e043: 57 push %edi 10e044: 56 push %esi 10e045: 53 push %ebx 10e046: 83 ec 1c sub $0x1c,%esp 10e049: 8b 5d 08 mov 0x8(%ebp),%ebx 10e04c: 8b 7d 0c mov 0xc(%ebp),%edi 10e04f: 8b 4d 14 mov 0x14(%ebp),%ecx 10e052: 8a 55 10 mov 0x10(%ebp),%dl ISR_Level level; Thread_Control *executing = _Thread_Executing; 10e055: 8b 35 98 a3 12 00 mov 0x12a398,%esi * If unlocked, then OK to read. * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); 10e05b: 9c pushf 10e05c: fa cli 10e05d: 8f 45 e4 popl -0x1c(%ebp) switch ( the_rwlock->current_state ) { 10e060: 8b 43 44 mov 0x44(%ebx),%eax 10e063: 85 c0 test %eax,%eax 10e065: 75 1d jne 10e084 <_CORE_RWLock_Obtain_for_reading+0x44> case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; 10e067: c7 43 44 01 00 00 00 movl $0x1,0x44(%ebx) the_rwlock->number_of_readers += 1; 10e06e: ff 43 48 incl 0x48(%ebx) _ISR_Enable( level ); 10e071: ff 75 e4 pushl -0x1c(%ebp) 10e074: 9d popf executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 10e075: c7 46 34 00 00 00 00 movl $0x0,0x34(%esi) timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } 10e07c: 8d 65 f4 lea -0xc(%ebp),%esp 10e07f: 5b pop %ebx 10e080: 5e pop %esi 10e081: 5f pop %edi 10e082: c9 leave 10e083: c3 ret * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); switch ( the_rwlock->current_state ) { 10e084: 48 dec %eax 10e085: 74 51 je 10e0d8 <_CORE_RWLock_Obtain_for_reading+0x98> /* * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { 10e087: 84 d2 test %dl,%dl 10e089: 75 15 jne 10e0a0 <_CORE_RWLock_Obtain_for_reading+0x60> _ISR_Enable( level ); 10e08b: ff 75 e4 pushl -0x1c(%ebp) 10e08e: 9d popf executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; 10e08f: c7 46 34 02 00 00 00 movl $0x2,0x34(%esi) timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } 10e096: 8d 65 f4 lea -0xc(%ebp),%esp 10e099: 5b pop %ebx 10e09a: 5e pop %esi 10e09b: 5f pop %edi 10e09c: c9 leave 10e09d: c3 ret 10e09e: 66 90 xchg %ax,%ax <== NOT EXECUTED 10e0a0: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx) /* * We need to wait to enter this critical section */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; 10e0a7: 89 5e 44 mov %ebx,0x44(%esi) executing->Wait.id = id; 10e0aa: 89 7e 20 mov %edi,0x20(%esi) executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; 10e0ad: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi) executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 10e0b4: c7 46 34 00 00 00 00 movl $0x0,0x34(%esi) _ISR_Enable( level ); 10e0bb: ff 75 e4 pushl -0x1c(%ebp) 10e0be: 9d popf _Thread_queue_Enqueue_with_handler( 10e0bf: c7 45 10 44 e2 10 00 movl $0x10e244,0x10(%ebp) 10e0c6: 89 4d 0c mov %ecx,0xc(%ebp) 10e0c9: 89 5d 08 mov %ebx,0x8(%ebp) timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } 10e0cc: 8d 65 f4 lea -0xc(%ebp),%esp 10e0cf: 5b pop %ebx 10e0d0: 5e pop %esi 10e0d1: 5f pop %edi 10e0d2: c9 leave executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; _ISR_Enable( level ); _Thread_queue_Enqueue_with_handler( 10e0d3: e9 4c 19 00 00 jmp 10fa24 <_Thread_queue_Enqueue_with_handler> executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; return; case CORE_RWLOCK_LOCKED_FOR_READING: { Thread_Control *waiter; waiter = _Thread_queue_First( &the_rwlock->Wait_queue ); 10e0d8: 83 ec 0c sub $0xc,%esp 10e0db: 53 push %ebx 10e0dc: 88 55 e0 mov %dl,-0x20(%ebp) 10e0df: 89 4d dc mov %ecx,-0x24(%ebp) 10e0e2: e8 5d 1c 00 00 call 10fd44 <_Thread_queue_First> if ( !waiter ) { 10e0e7: 83 c4 10 add $0x10,%esp 10e0ea: 85 c0 test %eax,%eax 10e0ec: 8a 55 e0 mov -0x20(%ebp),%dl 10e0ef: 8b 4d dc mov -0x24(%ebp),%ecx 10e0f2: 75 93 jne 10e087 <_CORE_RWLock_Obtain_for_reading+0x47> the_rwlock->number_of_readers += 1; 10e0f4: ff 43 48 incl 0x48(%ebx) _ISR_Enable( level ); 10e0f7: ff 75 e4 pushl -0x1c(%ebp) 10e0fa: 9d popf executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 10e0fb: c7 46 34 00 00 00 00 movl $0x0,0x34(%esi) return; 10e102: e9 75 ff ff ff jmp 10e07c <_CORE_RWLock_Obtain_for_reading+0x3c> 0010e108 <_CORE_RWLock_Obtain_for_writing>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { 10e108: 55 push %ebp 10e109: 89 e5 mov %esp,%ebp 10e10b: 57 push %edi 10e10c: 56 push %esi 10e10d: 53 push %ebx 10e10e: 83 ec 0c sub $0xc,%esp 10e111: 8b 45 08 mov 0x8(%ebp),%eax 10e114: 8b 7d 0c mov 0xc(%ebp),%edi 10e117: 8b 75 14 mov 0x14(%ebp),%esi 10e11a: 8a 5d 10 mov 0x10(%ebp),%bl ISR_Level level; Thread_Control *executing = _Thread_Executing; 10e11d: 8b 15 98 a3 12 00 mov 0x12a398,%edx * Otherwise, we have to block. * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); 10e123: 9c pushf 10e124: fa cli 10e125: 59 pop %ecx switch ( the_rwlock->current_state ) { 10e126: 83 78 44 00 cmpl $0x0,0x44(%eax) 10e12a: 75 18 jne 10e144 <_CORE_RWLock_Obtain_for_writing+0x3c> case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; 10e12c: c7 40 44 02 00 00 00 movl $0x2,0x44(%eax) _ISR_Enable( level ); 10e133: 51 push %ecx 10e134: 9d popf executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 10e135: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } 10e13c: 83 c4 0c add $0xc,%esp 10e13f: 5b pop %ebx 10e140: 5e pop %esi 10e141: 5f pop %edi 10e142: c9 leave 10e143: c3 ret /* * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { 10e144: 84 db test %bl,%bl 10e146: 75 14 jne 10e15c <_CORE_RWLock_Obtain_for_writing+0x54> _ISR_Enable( level ); 10e148: 51 push %ecx 10e149: 9d popf executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; 10e14a: c7 42 34 02 00 00 00 movl $0x2,0x34(%edx) _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } 10e151: 83 c4 0c add $0xc,%esp 10e154: 5b pop %ebx 10e155: 5e pop %esi 10e156: 5f pop %edi 10e157: c9 leave 10e158: c3 ret 10e159: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10e15c: c7 40 30 01 00 00 00 movl $0x1,0x30(%eax) /* * We need to wait to enter this critical section */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; 10e163: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 10e166: 89 7a 20 mov %edi,0x20(%edx) executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE; 10e169: c7 42 30 01 00 00 00 movl $0x1,0x30(%edx) executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 10e170: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) _ISR_Enable( level ); 10e177: 51 push %ecx 10e178: 9d popf _Thread_queue_Enqueue_with_handler( 10e179: c7 45 10 44 e2 10 00 movl $0x10e244,0x10(%ebp) 10e180: 89 75 0c mov %esi,0xc(%ebp) 10e183: 89 45 08 mov %eax,0x8(%ebp) _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } 10e186: 83 c4 0c add $0xc,%esp 10e189: 5b pop %ebx 10e18a: 5e pop %esi 10e18b: 5f pop %edi 10e18c: c9 leave executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; _ISR_Enable( level ); _Thread_queue_Enqueue_with_handler( 10e18d: e9 92 18 00 00 jmp 10fa24 <_Thread_queue_Enqueue_with_handler> 0010e194 <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) { 10e194: 55 push %ebp 10e195: 89 e5 mov %esp,%ebp 10e197: 53 push %ebx 10e198: 83 ec 04 sub $0x4,%esp 10e19b: 8b 5d 08 mov 0x8(%ebp),%ebx ISR_Level level; Thread_Control *executing = _Thread_Executing; 10e19e: 8b 0d 98 a3 12 00 mov 0x12a398,%ecx * Otherwise, we have to block. * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); 10e1a4: 9c pushf 10e1a5: fa cli 10e1a6: 5a pop %edx if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){ 10e1a7: 8b 43 44 mov 0x44(%ebx),%eax 10e1aa: 85 c0 test %eax,%eax 10e1ac: 74 7a je 10e228 <_CORE_RWLock_Release+0x94> _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; return CORE_RWLOCK_SUCCESSFUL; } if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) { 10e1ae: 48 dec %eax 10e1af: 74 63 je 10e214 <_CORE_RWLock_Release+0x80> return CORE_RWLOCK_SUCCESSFUL; } } /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */ executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; 10e1b1: c7 41 34 00 00 00 00 movl $0x0,0x34(%ecx) /* * Implicitly transition to "unlocked" and find another thread interested * in obtaining this rwlock. */ the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; 10e1b8: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) _ISR_Enable( level ); 10e1bf: 52 push %edx 10e1c0: 9d popf next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue ); 10e1c1: 83 ec 0c sub $0xc,%esp 10e1c4: 53 push %ebx 10e1c5: e8 3e 17 00 00 call 10f908 <_Thread_queue_Dequeue> if ( next ) { 10e1ca: 83 c4 10 add $0x10,%esp 10e1cd: 85 c0 test %eax,%eax 10e1cf: 74 39 je 10e20a <_CORE_RWLock_Release+0x76> if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) { 10e1d1: 83 78 30 01 cmpl $0x1,0x30(%eax) 10e1d5: 74 61 je 10e238 <_CORE_RWLock_Release+0xa4> } /* * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING */ the_rwlock->number_of_readers += 1; 10e1d7: ff 43 48 incl 0x48(%ebx) the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; 10e1da: c7 43 44 01 00 00 00 movl $0x1,0x44(%ebx) 10e1e1: eb 17 jmp 10e1fa <_CORE_RWLock_Release+0x66> 10e1e3: 90 nop <== NOT EXECUTED * Now see if more readers can be let go. */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); if ( !next || next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) 10e1e4: 83 78 30 01 cmpl $0x1,0x30(%eax) 10e1e8: 74 20 je 10e20a <_CORE_RWLock_Release+0x76> return CORE_RWLOCK_SUCCESSFUL; the_rwlock->number_of_readers += 1; 10e1ea: ff 43 48 incl 0x48(%ebx) _Thread_queue_Extract( &the_rwlock->Wait_queue, next ); 10e1ed: 83 ec 08 sub $0x8,%esp 10e1f0: 50 push %eax 10e1f1: 53 push %ebx 10e1f2: e8 35 1a 00 00 call 10fc2c <_Thread_queue_Extract> } 10e1f7: 83 c4 10 add $0x10,%esp /* * Now see if more readers can be let go. */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); 10e1fa: 83 ec 0c sub $0xc,%esp 10e1fd: 53 push %ebx 10e1fe: e8 41 1b 00 00 call 10fd44 <_Thread_queue_First> if ( !next || 10e203: 83 c4 10 add $0x10,%esp 10e206: 85 c0 test %eax,%eax 10e208: 75 da jne 10e1e4 <_CORE_RWLock_Release+0x50> } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } 10e20a: 31 c0 xor %eax,%eax 10e20c: 8b 5d fc mov -0x4(%ebp),%ebx 10e20f: c9 leave 10e210: c3 ret 10e211: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; return CORE_RWLOCK_SUCCESSFUL; } if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) { the_rwlock->number_of_readers -= 1; 10e214: 8b 43 48 mov 0x48(%ebx),%eax 10e217: 48 dec %eax 10e218: 89 43 48 mov %eax,0x48(%ebx) if ( the_rwlock->number_of_readers != 0 ) { 10e21b: 85 c0 test %eax,%eax 10e21d: 74 92 je 10e1b1 <_CORE_RWLock_Release+0x1d> /* must be unlocked again */ _ISR_Enable( level ); 10e21f: 52 push %edx 10e220: 9d popf } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } 10e221: 31 c0 xor %eax,%eax 10e223: 8b 5d fc mov -0x4(%ebp),%ebx 10e226: c9 leave 10e227: c3 ret * If any thread is waiting, then we wait. */ _ISR_Disable( level ); if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){ _ISR_Enable( level ); 10e228: 52 push %edx 10e229: 9d popf executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; 10e22a: c7 41 34 02 00 00 00 movl $0x2,0x34(%ecx) } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } 10e231: 31 c0 xor %eax,%eax 10e233: 8b 5d fc mov -0x4(%ebp),%ebx 10e236: c9 leave 10e237: c3 ret next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue ); if ( next ) { if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) { the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; 10e238: c7 43 44 02 00 00 00 movl $0x2,0x44(%ebx) return CORE_RWLOCK_SUCCESSFUL; 10e23f: eb c9 jmp 10e20a <_CORE_RWLock_Release+0x76> 00112ce8 <_CORE_barrier_Wait>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 112ce8: 55 push %ebp 112ce9: 89 e5 mov %esp,%ebp 112ceb: 57 push %edi 112cec: 56 push %esi 112ced: 53 push %ebx 112cee: 83 ec 1c sub $0x1c,%esp 112cf1: 8b 45 08 mov 0x8(%ebp),%eax 112cf4: 8b 5d 0c mov 0xc(%ebp),%ebx 112cf7: 8b 75 14 mov 0x14(%ebp),%esi 112cfa: 8b 7d 18 mov 0x18(%ebp),%edi Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 112cfd: 8b 15 d8 77 12 00 mov 0x1277d8,%edx executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; 112d03: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) _ISR_Disable( level ); 112d0a: 9c pushf 112d0b: fa cli 112d0c: 8f 45 e4 popl -0x1c(%ebp) the_barrier->number_of_waiting_threads++; 112d0f: 8b 48 48 mov 0x48(%eax),%ecx 112d12: 41 inc %ecx 112d13: 89 48 48 mov %ecx,0x48(%eax) if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { 112d16: 83 78 40 00 cmpl $0x0,0x40(%eax) 112d1a: 75 05 jne 112d21 <_CORE_barrier_Wait+0x39> if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { 112d1c: 3b 48 44 cmp 0x44(%eax),%ecx 112d1f: 74 2b je 112d4c <_CORE_barrier_Wait+0x64> 112d21: 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; 112d28: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 112d2b: 89 5a 20 mov %ebx,0x20(%edx) _ISR_Enable( level ); 112d2e: ff 75 e4 pushl -0x1c(%ebp) 112d31: 9d popf _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 112d32: c7 45 10 14 dd 10 00 movl $0x10dd14,0x10(%ebp) 112d39: 89 75 0c mov %esi,0xc(%ebp) 112d3c: 89 45 08 mov %eax,0x8(%ebp) } 112d3f: 83 c4 1c add $0x1c,%esp 112d42: 5b pop %ebx 112d43: 5e pop %esi 112d44: 5f pop %edi 112d45: 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 ); 112d46: e9 b9 ac ff ff jmp 10da04 <_Thread_queue_Enqueue_with_handler> 112d4b: 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; 112d4c: c7 42 34 01 00 00 00 movl $0x1,0x34(%edx) _ISR_Enable( level ); 112d53: ff 75 e4 pushl -0x1c(%ebp) 112d56: 9d popf _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 112d57: 89 7d 10 mov %edi,0x10(%ebp) 112d5a: 89 5d 0c mov %ebx,0xc(%ebp) 112d5d: 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 ); } 112d60: 83 c4 1c add $0x1c,%esp 112d63: 5b pop %ebx 112d64: 5e pop %esi 112d65: 5f pop %edi 112d66: 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 ); 112d67: e9 4c ff ff ff jmp 112cb8 <_CORE_barrier_Release> 0011947c <_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 ) { 11947c: 55 push %ebp 11947d: 89 e5 mov %esp,%ebp 11947f: 57 push %edi 119480: 56 push %esi 119481: 53 push %ebx 119482: 83 ec 1c sub $0x1c,%esp 119485: 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 ) { 119488: 8b 45 10 mov 0x10(%ebp),%eax 11948b: 39 43 4c cmp %eax,0x4c(%ebx) 11948e: 72 60 jb 1194f0 <_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 ) { 119490: 8b 43 48 mov 0x48(%ebx),%eax 119493: 85 c0 test %eax,%eax 119495: 75 45 jne 1194dc <_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))) { 119497: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 11949e: eb 18 jmp 1194b8 <_CORE_message_queue_Broadcast+0x3c> waitp = &the_thread->Wait; number_broadcasted += 1; 1194a0: ff 45 e4 incl -0x1c(%ebp) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 1194a3: 8b 42 2c mov 0x2c(%edx),%eax 1194a6: 89 c7 mov %eax,%edi 1194a8: 8b 75 0c mov 0xc(%ebp),%esi 1194ab: 8b 4d 10 mov 0x10(%ebp),%ecx 1194ae: f3 a4 rep movsb %ds:(%esi),%es:(%edi) buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 1194b0: 8b 42 28 mov 0x28(%edx),%eax 1194b3: 8b 55 10 mov 0x10(%ebp),%edx 1194b6: 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))) { 1194b8: 83 ec 0c sub $0xc,%esp 1194bb: 53 push %ebx 1194bc: e8 db 24 00 00 call 11b99c <_Thread_queue_Dequeue> 1194c1: 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 = 1194c3: 83 c4 10 add $0x10,%esp 1194c6: 85 c0 test %eax,%eax 1194c8: 75 d6 jne 1194a0 <_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; 1194ca: 8b 55 e4 mov -0x1c(%ebp),%edx 1194cd: 8b 45 1c mov 0x1c(%ebp),%eax 1194d0: 89 10 mov %edx,(%eax) 1194d2: 31 c0 xor %eax,%eax return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 1194d4: 8d 65 f4 lea -0xc(%ebp),%esp 1194d7: 5b pop %ebx 1194d8: 5e pop %esi 1194d9: 5f pop %edi 1194da: c9 leave 1194db: 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; 1194dc: 8b 55 1c mov 0x1c(%ebp),%edx 1194df: c7 02 00 00 00 00 movl $0x0,(%edx) 1194e5: 31 c0 xor %eax,%eax #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 1194e7: 8d 65 f4 lea -0xc(%ebp),%esp 1194ea: 5b pop %ebx 1194eb: 5e pop %esi 1194ec: 5f pop %edi 1194ed: c9 leave 1194ee: c3 ret 1194ef: 90 nop <== NOT EXECUTED { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 1194f0: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 1194f5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1194f8: 5b pop %ebx <== NOT EXECUTED 1194f9: 5e pop %esi <== NOT EXECUTED 1194fa: 5f pop %edi <== NOT EXECUTED 1194fb: c9 leave <== NOT EXECUTED 1194fc: c3 ret <== NOT EXECUTED 00114bac <_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 ) { 114bac: 55 push %ebp 114bad: 89 e5 mov %esp,%ebp 114baf: 57 push %edi 114bb0: 56 push %esi 114bb1: 53 push %ebx 114bb2: 83 ec 0c sub $0xc,%esp 114bb5: 8b 5d 08 mov 0x8(%ebp),%ebx 114bb8: 8b 75 10 mov 0x10(%ebp),%esi 114bbb: 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; 114bbe: 89 73 44 mov %esi,0x44(%ebx) the_message_queue->number_of_pending_messages = 0; 114bc1: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) the_message_queue->maximum_message_size = maximum_message_size; 114bc8: 89 43 4c mov %eax,0x4c(%ebx) CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; 114bcb: c7 43 60 00 00 00 00 movl $0x0,0x60(%ebx) the_message_queue->notify_argument = the_argument; 114bd2: c7 43 64 00 00 00 00 movl $0x0,0x64(%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)) { 114bd9: a8 03 test $0x3,%al 114bdb: 75 1b jne 114bf8 <_CORE_message_queue_Initialize+0x4c> 114bdd: 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)); 114bdf: 8d 7a 14 lea 0x14(%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 * 114be2: 89 f8 mov %edi,%eax 114be4: 0f af c6 imul %esi,%eax (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 114be7: 39 d0 cmp %edx,%eax 114be9: 73 25 jae 114c10 <_CORE_message_queue_Initialize+0x64> THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 114beb: 31 c0 xor %eax,%eax } 114bed: 8d 65 f4 lea -0xc(%ebp),%esp 114bf0: 5b pop %ebx 114bf1: 5e pop %esi 114bf2: 5f pop %edi 114bf3: c9 leave 114bf4: c3 ret 114bf5: 8d 76 00 lea 0x0(%esi),%esi <== 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); 114bf8: 8d 50 04 lea 0x4(%eax),%edx allocated_message_size &= ~(sizeof(uint32_t) - 1); 114bfb: 83 e2 fc and $0xfffffffc,%edx } if (allocated_message_size < maximum_message_size) 114bfe: 39 d0 cmp %edx,%eax 114c00: 77 e9 ja 114beb <_CORE_message_queue_Initialize+0x3f> /* * 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)); 114c02: 8d 7a 14 lea 0x14(%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 * 114c05: 89 f8 mov %edi,%eax 114c07: 0f af c6 imul %esi,%eax (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 114c0a: 39 d0 cmp %edx,%eax 114c0c: 72 dd jb 114beb <_CORE_message_queue_Initialize+0x3f> 114c0e: 66 90 xchg %ax,%ax return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 114c10: 83 ec 0c sub $0xc,%esp 114c13: 50 push %eax 114c14: e8 a7 29 00 00 call 1175c0 <_Workspace_Allocate> 114c19: 89 43 5c mov %eax,0x5c(%ebx) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 114c1c: 83 c4 10 add $0x10,%esp 114c1f: 85 c0 test %eax,%eax 114c21: 74 c8 je 114beb <_CORE_message_queue_Initialize+0x3f> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 114c23: 57 push %edi 114c24: 56 push %esi 114c25: 50 push %eax 114c26: 8d 43 68 lea 0x68(%ebx),%eax 114c29: 50 push %eax 114c2a: e8 0d 4d 00 00 call 11993c <_Chain_Initialize> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 114c2f: 8d 43 54 lea 0x54(%ebx),%eax 114c32: 89 43 50 mov %eax,0x50(%ebx) the_chain->permanent_null = NULL; 114c35: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) the_chain->last = _Chain_Head(the_chain); 114c3c: 8d 43 50 lea 0x50(%ebx),%eax 114c3f: 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( 114c42: 6a 06 push $0x6 114c44: 68 80 00 00 00 push $0x80 114c49: 8b 45 0c mov 0xc(%ebp),%eax 114c4c: 83 38 01 cmpl $0x1,(%eax) 114c4f: 0f 94 c0 sete %al 114c52: 0f b6 c0 movzbl %al,%eax 114c55: 50 push %eax 114c56: 53 push %ebx 114c57: e8 4c 1f 00 00 call 116ba8 <_Thread_queue_Initialize> 114c5c: b0 01 mov $0x1,%al THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 114c5e: 83 c4 20 add $0x20,%esp } 114c61: 8d 65 f4 lea -0xc(%ebp),%esp 114c64: 5b pop %ebx 114c65: 5e pop %esi 114c66: 5f pop %edi 114c67: c9 leave 114c68: c3 ret 00110a6c <_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 ) { 110a6c: 55 push %ebp 110a6d: 89 e5 mov %esp,%ebp 110a6f: 56 push %esi 110a70: 53 push %ebx 110a71: 8b 45 08 mov 0x8(%ebp),%eax 110a74: 8b 55 0c mov 0xc(%ebp),%edx 110a77: 8b 4d 10 mov 0x10(%ebp),%ecx 110a7a: 89 4a 08 mov %ecx,0x8(%edx) _CORE_message_queue_Append_unprotected(the_message_queue, the_message); else _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); #else if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) { 110a7d: 81 f9 ff ff ff 7f cmp $0x7fffffff,%ecx 110a83: 74 53 je 110ad8 <_CORE_message_queue_Insert_message+0x6c> _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); } else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) { 110a85: 81 f9 00 00 00 80 cmp $0x80000000,%ecx 110a8b: 74 6f je 110afc <_CORE_message_queue_Insert_message+0x90> Chain_Control *the_header; int the_priority; the_priority = _CORE_message_queue_Get_message_priority(the_message); the_header = &the_message_queue->Pending_messages; the_node = the_header->first; 110a8d: 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; 110a90: 8d 70 54 lea 0x54(%eax),%esi while ( !_Chain_Is_tail( the_header, the_node ) ) { 110a93: 39 f3 cmp %esi,%ebx 110a95: 74 05 je 110a9c <_CORE_message_queue_Insert_message+0x30> this_message = (CORE_message_queue_Buffer_control *) the_node; this_priority = _CORE_message_queue_Get_message_priority(this_message); if ( this_priority <= the_priority ) { 110a97: 3b 4b 08 cmp 0x8(%ebx),%ecx 110a9a: 7d 2c jge 110ac8 <_CORE_message_queue_Insert_message+0x5c> the_node = the_node->next; continue; } break; } _ISR_Disable( level ); 110a9c: 9c pushf 110a9d: fa cli 110a9e: 5e pop %esi SET_NOTIFY(); the_message_queue->number_of_pending_messages++; 110a9f: ff 40 48 incl 0x48(%eax) _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); 110aa2: 8b 4b 04 mov 0x4(%ebx),%ecx Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 110aa5: 89 4a 04 mov %ecx,0x4(%edx) before_node = after_node->next; 110aa8: 8b 19 mov (%ecx),%ebx after_node->next = the_node; 110aaa: 89 11 mov %edx,(%ecx) the_node->next = before_node; 110aac: 89 1a mov %ebx,(%edx) before_node->previous = the_node; 110aae: 89 53 04 mov %edx,0x4(%ebx) _ISR_Enable( level ); 110ab1: 56 push %esi 110ab2: 9d popf /* * According to POSIX, does this happen before or after the message * is actually enqueued. It is logical to think afterwards, because * the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) 110ab3: 8b 50 60 mov 0x60(%eax),%edx 110ab6: 85 d2 test %edx,%edx 110ab8: 74 3d je 110af7 <_CORE_message_queue_Insert_message+0x8b> (*the_message_queue->notify_handler)(the_message_queue->notify_argument); 110aba: 8b 40 64 mov 0x64(%eax),%eax 110abd: 89 45 08 mov %eax,0x8(%ebp) #endif } 110ac0: 5b pop %ebx 110ac1: 5e pop %esi 110ac2: c9 leave * According to POSIX, does this happen before or after the message * is actually enqueued. It is logical to think afterwards, because * 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); 110ac3: ff e2 jmp *%edx 110ac5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED this_message = (CORE_message_queue_Buffer_control *) the_node; this_priority = _CORE_message_queue_Get_message_priority(this_message); if ( this_priority <= the_priority ) { the_node = the_node->next; 110ac8: 8b 1b mov (%ebx),%ebx int the_priority; the_priority = _CORE_message_queue_Get_message_priority(the_message); the_header = &the_message_queue->Pending_messages; the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { 110aca: 39 f3 cmp %esi,%ebx 110acc: 74 ce je 110a9c <_CORE_message_queue_Insert_message+0x30> this_message = (CORE_message_queue_Buffer_control *) the_node; this_priority = _CORE_message_queue_Get_message_priority(this_message); if ( this_priority <= the_priority ) { 110ace: 3b 4b 08 cmp 0x8(%ebx),%ecx 110ad1: 7c c9 jl 110a9c <_CORE_message_queue_Insert_message+0x30> 110ad3: eb f3 jmp 110ac8 <_CORE_message_queue_Insert_message+0x5c> 110ad5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED else _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); #else if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) { _ISR_Disable( level ); 110ad8: 9c pushf 110ad9: fa cli 110ada: 5b pop %ebx SET_NOTIFY(); the_message_queue->number_of_pending_messages++; 110adb: ff 40 48 incl 0x48(%eax) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 110ade: 8d 48 54 lea 0x54(%eax),%ecx 110ae1: 89 0a mov %ecx,(%edx) old_last_node = the_chain->last; 110ae3: 8b 48 58 mov 0x58(%eax),%ecx the_chain->last = the_node; 110ae6: 89 50 58 mov %edx,0x58(%eax) old_last_node->next = the_node; 110ae9: 89 11 mov %edx,(%ecx) the_node->previous = old_last_node; 110aeb: 89 4a 04 mov %ecx,0x4(%edx) _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 110aee: 53 push %ebx 110aef: 9d popf /* * According to POSIX, does this happen before or after the message * is actually enqueued. It is logical to think afterwards, because * the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) 110af0: 8b 50 60 mov 0x60(%eax),%edx 110af3: 85 d2 test %edx,%edx 110af5: 75 c3 jne 110aba <_CORE_message_queue_Insert_message+0x4e> (*the_message_queue->notify_handler)(the_message_queue->notify_argument); #endif } 110af7: 5b pop %ebx 110af8: 5e pop %esi 110af9: c9 leave 110afa: c3 ret 110afb: 90 nop <== NOT EXECUTED SET_NOTIFY(); the_message_queue->number_of_pending_messages++; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); } else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) { _ISR_Disable( level ); 110afc: 9c pushf 110afd: fa cli 110afe: 5b pop %ebx SET_NOTIFY(); the_message_queue->number_of_pending_messages++; 110aff: ff 40 48 incl 0x48(%eax) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 110b02: 8d 48 50 lea 0x50(%eax),%ecx Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 110b05: 89 4a 04 mov %ecx,0x4(%edx) before_node = after_node->next; 110b08: 8b 48 50 mov 0x50(%eax),%ecx after_node->next = the_node; 110b0b: 89 50 50 mov %edx,0x50(%eax) the_node->next = before_node; 110b0e: 89 0a mov %ecx,(%edx) before_node->previous = the_node; 110b10: 89 51 04 mov %edx,0x4(%ecx) _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 110b13: 53 push %ebx 110b14: 9d popf 110b15: eb 9c jmp 110ab3 <_CORE_message_queue_Insert_message+0x47> 00114c6c <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 114c6c: 55 push %ebp 114c6d: 89 e5 mov %esp,%ebp 114c6f: 57 push %edi 114c70: 56 push %esi 114c71: 53 push %ebx 114c72: 83 ec 2c sub $0x2c,%esp 114c75: 8b 55 08 mov 0x8(%ebp),%edx 114c78: 8b 45 0c mov 0xc(%ebp),%eax 114c7b: 89 45 dc mov %eax,-0x24(%ebp) 114c7e: 8b 4d 10 mov 0x10(%ebp),%ecx 114c81: 89 4d e0 mov %ecx,-0x20(%ebp) 114c84: 8b 45 14 mov 0x14(%ebp),%eax 114c87: 8b 5d 1c mov 0x1c(%ebp),%ebx 114c8a: 89 5d d8 mov %ebx,-0x28(%ebp) 114c8d: 0f b6 7d 18 movzbl 0x18(%ebp),%edi ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 114c91: 8b 0d 38 12 13 00 mov 0x131238,%ecx executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 114c97: c7 41 34 00 00 00 00 movl $0x0,0x34(%ecx) _ISR_Disable( level ); 114c9e: 9c pushf 114c9f: fa cli 114ca0: 8f 45 e4 popl -0x1c(%ebp) */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 114ca3: 8b 5a 50 mov 0x50(%edx),%ebx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 114ca6: 8d 72 54 lea 0x54(%edx),%esi 114ca9: 39 f3 cmp %esi,%ebx 114cab: 74 7b je 114d28 <_CORE_message_queue_Seize+0xbc> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 114cad: 8b 0b mov (%ebx),%ecx the_chain->first = new_first; 114caf: 89 4a 50 mov %ecx,0x50(%edx) new_first->previous = _Chain_Head(the_chain); 114cb2: 8d 72 50 lea 0x50(%edx),%esi 114cb5: 89 71 04 mov %esi,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; 114cb8: ff 4a 48 decl 0x48(%edx) _ISR_Enable( level ); 114cbb: ff 75 e4 pushl -0x1c(%ebp) 114cbe: 9d popf *size_p = the_message->Contents.size; 114cbf: 8b 4b 0c mov 0xc(%ebx),%ecx 114cc2: 89 08 mov %ecx,(%eax) _Thread_Executing->Wait.count = 114cc4: 8b 73 08 mov 0x8(%ebx),%esi 114cc7: 8b 0d 38 12 13 00 mov 0x131238,%ecx 114ccd: 89 71 24 mov %esi,0x24(%ecx) _CORE_message_queue_Get_message_priority( the_message ); _CORE_message_queue_Copy_buffer( the_message->Contents.buffer, 114cd0: 8d 4b 10 lea 0x10(%ebx),%ecx 114cd3: 89 4d e4 mov %ecx,-0x1c(%ebp) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 114cd6: 8b 08 mov (%eax),%ecx 114cd8: 8b 7d e0 mov -0x20(%ebp),%edi 114cdb: 8b 75 e4 mov -0x1c(%ebp),%esi 114cde: f3 a4 rep movsb %ds:(%esi),%es:(%edi) * is not, then we can go ahead and free the buffer. * * NOTE: If we note that the queue was not full before this receive, * then we can avoid this dequeue. */ the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 114ce0: 83 ec 0c sub $0xc,%esp 114ce3: 52 push %edx 114ce4: 89 55 d4 mov %edx,-0x2c(%ebp) 114ce7: e8 40 1b 00 00 call 11682c <_Thread_queue_Dequeue> if ( !the_thread ) { 114cec: 83 c4 10 add $0x10,%esp 114cef: 85 c0 test %eax,%eax 114cf1: 8b 55 d4 mov -0x2c(%ebp),%edx 114cf4: 0f 84 86 00 00 00 je 114d80 <_CORE_message_queue_Seize+0x114> CORE_message_queue_Buffer_control *the_message, int priority ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) the_message->priority = priority; 114cfa: 8b 48 24 mov 0x24(%eax),%ecx 114cfd: 89 4b 08 mov %ecx,0x8(%ebx) */ _CORE_message_queue_Set_message_priority( the_message, the_thread->Wait.count ); the_message->Contents.size = (size_t) the_thread->Wait.option; 114d00: 8b 48 30 mov 0x30(%eax),%ecx 114d03: 89 4b 0c mov %ecx,0xc(%ebx) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 114d06: 8b 70 2c mov 0x2c(%eax),%esi 114d09: 8b 7d e4 mov -0x1c(%ebp),%edi 114d0c: f3 a4 rep movsb %ds:(%esi),%es:(%edi) the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 114d0e: 8b 43 08 mov 0x8(%ebx),%eax 114d11: 89 45 10 mov %eax,0x10(%ebp) 114d14: 89 5d 0c mov %ebx,0xc(%ebp) 114d17: 89 55 08 mov %edx,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 ); } 114d1a: 8d 65 f4 lea -0xc(%ebp),%esp 114d1d: 5b pop %ebx 114d1e: 5e pop %esi 114d1f: 5f pop %edi 114d20: c9 leave the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 114d21: e9 56 4c 00 00 jmp 11997c <_CORE_message_queue_Insert_message> 114d26: 66 90 xchg %ax,%ax <== NOT EXECUTED return; } #endif } if ( !wait ) { 114d28: 89 fb mov %edi,%ebx 114d2a: 84 db test %bl,%bl 114d2c: 75 16 jne 114d44 <_CORE_message_queue_Seize+0xd8> _ISR_Enable( level ); 114d2e: ff 75 e4 pushl -0x1c(%ebp) 114d31: 9d popf executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 114d32: 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 ); } 114d39: 8d 65 f4 lea -0xc(%ebp),%esp 114d3c: 5b pop %ebx 114d3d: 5e pop %esi 114d3e: 5f pop %edi 114d3f: c9 leave 114d40: c3 ret 114d41: 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; 114d44: c7 42 30 01 00 00 00 movl $0x1,0x30(%edx) 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; 114d4b: 89 51 44 mov %edx,0x44(%ecx) executing->Wait.id = id; 114d4e: 8b 5d dc mov -0x24(%ebp),%ebx 114d51: 89 59 20 mov %ebx,0x20(%ecx) executing->Wait.return_argument_second.mutable_object = buffer; 114d54: 8b 5d e0 mov -0x20(%ebp),%ebx 114d57: 89 59 2c mov %ebx,0x2c(%ecx) executing->Wait.return_argument = size_p; 114d5a: 89 41 28 mov %eax,0x28(%ecx) /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 114d5d: ff 75 e4 pushl -0x1c(%ebp) 114d60: 9d popf _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 114d61: c7 45 10 58 6c 11 00 movl $0x116c58,0x10(%ebp) 114d68: 8b 45 d8 mov -0x28(%ebp),%eax 114d6b: 89 45 0c mov %eax,0xc(%ebp) 114d6e: 89 55 08 mov %edx,0x8(%ebp) } 114d71: 8d 65 f4 lea -0xc(%ebp),%esp 114d74: 5b pop %ebx 114d75: 5e pop %esi 114d76: 5f pop %edi 114d77: 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 ); 114d78: e9 cb 1b 00 00 jmp 116948 <_Thread_queue_Enqueue_with_handler> 114d7d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 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 ); 114d80: 89 5d 0c mov %ebx,0xc(%ebp) 114d83: 83 c2 68 add $0x68,%edx 114d86: 89 55 08 mov %edx,0x8(%ebp) } 114d89: 8d 65 f4 lea -0xc(%ebp),%esp 114d8c: 5b pop %ebx 114d8d: 5e pop %esi 114d8e: 5f pop %edi 114d8f: c9 leave 114d90: e9 97 fd ff ff jmp 114b2c <_Chain_Append> 0010bf00 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 10bf00: 55 push %ebp 10bf01: 89 e5 mov %esp,%ebp 10bf03: 57 push %edi 10bf04: 56 push %esi 10bf05: 53 push %ebx 10bf06: 83 ec 1c sub $0x1c,%esp 10bf09: 8b 5d 08 mov 0x8(%ebp),%ebx 10bf0c: 8b 75 0c mov 0xc(%ebp),%esi 10bf0f: 8a 4d 20 mov 0x20(%ebp),%cl CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 10bf12: 8b 45 10 mov 0x10(%ebp),%eax 10bf15: 39 43 4c cmp %eax,0x4c(%ebx) 10bf18: 72 2e jb 10bf48 <_CORE_message_queue_Submit+0x48> } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 10bf1a: 8b 43 48 mov 0x48(%ebx),%eax 10bf1d: 85 c0 test %eax,%eax 10bf1f: 74 37 je 10bf58 <_CORE_message_queue_Submit+0x58> /* * 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 ) { 10bf21: 39 43 44 cmp %eax,0x44(%ebx) 10bf24: 0f 87 b6 00 00 00 ja 10bfe0 <_CORE_message_queue_Submit+0xe0> /* * No message buffers were available so we may need to return an * overflow error or block the sender until the message is placed * on the queue. */ if ( !wait ) { 10bf2a: 84 c9 test %cl,%cl 10bf2c: 0f 84 ea 00 00 00 je 10c01c <_CORE_message_queue_Submit+0x11c> /* * Do NOT block on a send if the caller is in an ISR. It is * deadly to block in an ISR. */ if ( _ISR_Is_in_progress() ) { 10bf32: a1 b4 77 12 00 mov 0x1277b4,%eax 10bf37: 85 c0 test %eax,%eax 10bf39: 74 5d je 10bf98 <_CORE_message_queue_Submit+0x98> 10bf3b: b8 03 00 00 00 mov $0x3,%eax _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 10bf40: 8d 65 f4 lea -0xc(%ebp),%esp 10bf43: 5b pop %ebx 10bf44: 5e pop %esi 10bf45: 5f pop %edi 10bf46: c9 leave 10bf47: c3 ret ) { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 10bf48: 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 } 10bf4d: 8d 65 f4 lea -0xc(%ebp),%esp 10bf50: 5b pop %ebx 10bf51: 5e pop %esi 10bf52: 5f pop %edi 10bf53: c9 leave 10bf54: c3 ret 10bf55: 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 ); 10bf58: 83 ec 0c sub $0xc,%esp 10bf5b: 53 push %ebx 10bf5c: 88 4d e4 mov %cl,-0x1c(%ebp) 10bf5f: e8 84 19 00 00 call 10d8e8 <_Thread_queue_Dequeue> 10bf64: 89 c2 mov %eax,%edx if ( the_thread ) { 10bf66: 83 c4 10 add $0x10,%esp 10bf69: 85 c0 test %eax,%eax 10bf6b: 8a 4d e4 mov -0x1c(%ebp),%cl 10bf6e: 0f 84 b8 00 00 00 je 10c02c <_CORE_message_queue_Submit+0x12c> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 10bf74: 8b 40 2c mov 0x2c(%eax),%eax 10bf77: 89 c7 mov %eax,%edi 10bf79: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf7c: 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; 10bf7e: 8b 42 28 mov 0x28(%edx),%eax 10bf81: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf84: 89 08 mov %ecx,(%eax) the_thread->Wait.count = (uint32_t) submit_type; 10bf86: 8b 45 1c mov 0x1c(%ebp),%eax 10bf89: 89 42 24 mov %eax,0x24(%edx) 10bf8c: 31 c0 xor %eax,%eax _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 10bf8e: 8d 65 f4 lea -0xc(%ebp),%esp 10bf91: 5b pop %ebx 10bf92: 5e pop %esi 10bf93: 5f pop %edi 10bf94: c9 leave 10bf95: c3 ret 10bf96: 66 90 xchg %ax,%ax <== NOT EXECUTED * Thus the unusual choice to open a new scope and declare * it as a variable. Doing this emphasizes how dangerous it * would be to use this variable prior to here. */ { Thread_Control *executing = _Thread_Executing; 10bf98: a1 d8 77 12 00 mov 0x1277d8,%eax ISR_Level level; _ISR_Disable( level ); 10bf9d: 9c pushf 10bf9e: fa cli 10bf9f: 59 pop %ecx 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; 10bfa0: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx) _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; 10bfa7: 89 58 44 mov %ebx,0x44(%eax) executing->Wait.id = id; 10bfaa: 8b 55 14 mov 0x14(%ebp),%edx 10bfad: 89 50 20 mov %edx,0x20(%eax) executing->Wait.return_argument_second.immutable_object = buffer; 10bfb0: 89 70 2c mov %esi,0x2c(%eax) executing->Wait.option = (uint32_t) size; 10bfb3: 8b 55 10 mov 0x10(%ebp),%edx 10bfb6: 89 50 30 mov %edx,0x30(%eax) executing->Wait.count = submit_type; 10bfb9: 8b 55 1c mov 0x1c(%ebp),%edx 10bfbc: 89 50 24 mov %edx,0x24(%eax) _ISR_Enable( level ); 10bfbf: 51 push %ecx 10bfc0: 9d popf _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 10bfc1: 50 push %eax 10bfc2: 68 14 dd 10 00 push $0x10dd14 10bfc7: ff 75 24 pushl 0x24(%ebp) 10bfca: 53 push %ebx 10bfcb: e8 34 1a 00 00 call 10da04 <_Thread_queue_Enqueue_with_handler> 10bfd0: b8 07 00 00 00 mov $0x7,%eax } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; 10bfd5: 83 c4 10 add $0x10,%esp #endif } 10bfd8: 8d 65 f4 lea -0xc(%ebp),%esp 10bfdb: 5b pop %ebx 10bfdc: 5e pop %esi 10bfdd: 5f pop %edi 10bfde: c9 leave 10bfdf: 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 *) 10bfe0: 83 ec 0c sub $0xc,%esp 10bfe3: 8d 43 68 lea 0x68(%ebx),%eax 10bfe6: 50 push %eax 10bfe7: e8 f0 fe ff ff call 10bedc <_Chain_Get> 10bfec: 89 c2 mov %eax,%edx const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 10bfee: 8d 40 10 lea 0x10(%eax),%eax 10bff1: 89 c7 mov %eax,%edi 10bff3: 8b 4d 10 mov 0x10(%ebp),%ecx 10bff6: f3 a4 rep movsb %ds:(%esi),%es:(%edi) _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 10bff8: 8b 4d 10 mov 0x10(%ebp),%ecx 10bffb: 89 4a 0c mov %ecx,0xc(%edx) CORE_message_queue_Buffer_control *the_message, int priority ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) the_message->priority = priority; 10bffe: 8b 45 1c mov 0x1c(%ebp),%eax 10c001: 89 42 08 mov %eax,0x8(%edx) _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( 10c004: 83 c4 0c add $0xc,%esp 10c007: 50 push %eax 10c008: 52 push %edx 10c009: 53 push %ebx 10c00a: e8 5d 4a 00 00 call 110a6c <_CORE_message_queue_Insert_message> 10c00f: 31 c0 xor %eax,%eax the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 10c011: 83 c4 10 add $0x10,%esp 10c014: e9 34 ff ff ff jmp 10bf4d <_CORE_message_queue_Submit+0x4d> 10c019: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * No message buffers were available so we may need to return an * overflow error or block the sender until the message is placed * on the queue. */ if ( !wait ) { 10c01c: 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 } 10c021: 8d 65 f4 lea -0xc(%ebp),%esp 10c024: 5b pop %ebx 10c025: 5e pop %esi 10c026: 5f pop %edi 10c027: c9 leave 10c028: c3 ret 10c029: 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 ); if ( the_thread ) { 10c02c: 8b 43 48 mov 0x48(%ebx),%eax 10c02f: e9 ed fe ff ff jmp 10bf21 <_CORE_message_queue_Submit+0x21> 0010c040 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 10c040: 55 push %ebp 10c041: 89 e5 mov %esp,%ebp 10c043: 57 push %edi 10c044: 56 push %esi 10c045: 53 push %ebx 10c046: 83 ec 0c sub $0xc,%esp 10c049: 8b 45 08 mov 0x8(%ebp),%eax 10c04c: 8b 5d 0c mov 0xc(%ebp),%ebx 10c04f: 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; 10c052: 8d 78 40 lea 0x40(%eax),%edi 10c055: b9 04 00 00 00 mov $0x4,%ecx 10c05a: 89 de mov %ebx,%esi 10c05c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) the_mutex->lock = initial_lock; 10c05e: 89 50 50 mov %edx,0x50(%eax) the_mutex->blocked_count = 0; 10c061: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) if ( initial_lock == CORE_MUTEX_LOCKED ) { 10c068: 85 d2 test %edx,%edx 10c06a: 75 30 jne 10c09c <_CORE_mutex_Initialize+0x5c> the_mutex->nest_count = 1; 10c06c: c7 40 54 01 00 00 00 movl $0x1,0x54(%eax) the_mutex->holder = _Thread_Executing; 10c073: 8b 15 d8 77 12 00 mov 0x1277d8,%edx 10c079: 89 50 5c mov %edx,0x5c(%eax) the_mutex->holder_id = _Thread_Executing->Object.id; 10c07c: 8b 4a 08 mov 0x8(%edx),%ecx 10c07f: 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; 10c082: 8b 48 48 mov 0x48(%eax),%ecx if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 10c085: 83 f9 02 cmp $0x2,%ecx 10c088: 74 05 je 10c08f <_CORE_mutex_Initialize+0x4f> 10c08a: 83 f9 03 cmp $0x3,%ecx 10c08d: 75 22 jne 10c0b1 <_CORE_mutex_Initialize+0x71> _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling ) 10c08f: 8b 4a 14 mov 0x14(%edx),%ecx 10c092: 3b 48 4c cmp 0x4c(%eax),%ecx 10c095: 72 41 jb 10c0d8 <_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++; 10c097: ff 42 1c incl 0x1c(%edx) 10c09a: eb 15 jmp 10c0b1 <_CORE_mutex_Initialize+0x71> } } else { the_mutex->nest_count = 0; 10c09c: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) the_mutex->holder = NULL; 10c0a3: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) the_mutex->holder_id = 0; 10c0aa: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax) } _Thread_queue_Initialize( 10c0b1: 6a 05 push $0x5 10c0b3: 68 00 04 00 00 push $0x400 10c0b8: 31 d2 xor %edx,%edx 10c0ba: 83 7b 08 00 cmpl $0x0,0x8(%ebx) 10c0be: 0f 95 c2 setne %dl 10c0c1: 52 push %edx 10c0c2: 50 push %eax 10c0c3: e8 9c 1b 00 00 call 10dc64 <_Thread_queue_Initialize> 10c0c8: 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; 10c0ca: 83 c4 10 add $0x10,%esp } 10c0cd: 8d 65 f4 lea -0xc(%ebp),%esp 10c0d0: 5b pop %ebx 10c0d1: 5e pop %esi 10c0d2: 5f pop %edi 10c0d3: c9 leave 10c0d4: c3 ret 10c0d5: 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 ) 10c0d8: b8 06 00 00 00 mov $0x6,%eax STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c0dd: 8d 65 f4 lea -0xc(%ebp),%esp 10c0e0: 5b pop %ebx 10c0e1: 5e pop %esi 10c0e2: 5f pop %edi 10c0e3: c9 leave 10c0e4: c3 ret 0010c138 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 10c138: 55 push %ebp 10c139: 89 e5 mov %esp,%ebp 10c13b: 53 push %ebx 10c13c: 83 ec 14 sub $0x14,%esp 10c13f: 8b 5d 08 mov 0x8(%ebp),%ebx 10c142: 8a 55 10 mov 0x10(%ebp),%dl _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 10c145: a1 18 77 12 00 mov 0x127718,%eax 10c14a: 85 c0 test %eax,%eax 10c14c: 74 04 je 10c152 <_CORE_mutex_Seize+0x1a> 10c14e: 84 d2 test %dl,%dl 10c150: 75 36 jne 10c188 <_CORE_mutex_Seize+0x50> 10c152: 83 ec 08 sub $0x8,%esp 10c155: 8d 45 18 lea 0x18(%ebp),%eax 10c158: 50 push %eax 10c159: 53 push %ebx 10c15a: 88 55 f4 mov %dl,-0xc(%ebp) 10c15d: e8 b6 49 00 00 call 110b18 <_CORE_mutex_Seize_interrupt_trylock> 10c162: 83 c4 10 add $0x10,%esp 10c165: 85 c0 test %eax,%eax 10c167: 8a 55 f4 mov -0xc(%ebp),%dl 10c16a: 74 14 je 10c180 <_CORE_mutex_Seize+0x48> 10c16c: 84 d2 test %dl,%dl 10c16e: 75 30 jne 10c1a0 <_CORE_mutex_Seize+0x68> 10c170: ff 75 18 pushl 0x18(%ebp) 10c173: 9d popf 10c174: a1 d8 77 12 00 mov 0x1277d8,%eax 10c179: c7 40 34 01 00 00 00 movl $0x1,0x34(%eax) } 10c180: 8b 5d fc mov -0x4(%ebp),%ebx 10c183: c9 leave 10c184: c3 ret 10c185: 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 ); 10c188: 83 3d e0 78 12 00 01 cmpl $0x1,0x1278e0 10c18f: 76 c1 jbe 10c152 <_CORE_mutex_Seize+0x1a> 10c191: 53 push %ebx 10c192: 6a 13 push $0x13 10c194: 6a 00 push $0x0 10c196: 6a 00 push $0x0 10c198: e8 9b 05 00 00 call 10c738 <_Internal_error_Occurred> 10c19d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c1a0: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx) 10c1a7: a1 d8 77 12 00 mov 0x1277d8,%eax 10c1ac: 89 58 44 mov %ebx,0x44(%eax) 10c1af: 8b 55 0c mov 0xc(%ebp),%edx 10c1b2: 89 50 20 mov %edx,0x20(%eax) 10c1b5: a1 18 77 12 00 mov 0x127718,%eax 10c1ba: 40 inc %eax 10c1bb: a3 18 77 12 00 mov %eax,0x127718 10c1c0: ff 75 18 pushl 0x18(%ebp) 10c1c3: 9d popf 10c1c4: 83 ec 08 sub $0x8,%esp 10c1c7: ff 75 14 pushl 0x14(%ebp) 10c1ca: 53 push %ebx 10c1cb: e8 18 ff ff ff call 10c0e8 <_CORE_mutex_Seize_interrupt_blocking> 10c1d0: 83 c4 10 add $0x10,%esp } 10c1d3: 8b 5d fc mov -0x4(%ebp),%ebx 10c1d6: c9 leave 10c1d7: c3 ret 00110b18 <_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 ) { 110b18: 55 push %ebp 110b19: 89 e5 mov %esp,%ebp 110b1b: 56 push %esi 110b1c: 53 push %ebx 110b1d: 8b 45 08 mov 0x8(%ebp),%eax 110b20: 8b 4d 0c mov 0xc(%ebp),%ecx { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 110b23: 8b 15 d8 77 12 00 mov 0x1277d8,%edx executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 110b29: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 110b30: 8b 58 50 mov 0x50(%eax),%ebx 110b33: 85 db test %ebx,%ebx 110b35: 74 31 je 110b68 <_CORE_mutex_Seize_interrupt_trylock+0x50> the_mutex->lock = CORE_MUTEX_LOCKED; 110b37: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) the_mutex->holder = executing; 110b3e: 89 50 5c mov %edx,0x5c(%eax) the_mutex->holder_id = executing->Object.id; 110b41: 8b 5a 08 mov 0x8(%edx),%ebx 110b44: 89 58 60 mov %ebx,0x60(%eax) the_mutex->nest_count = 1; 110b47: 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; 110b4e: 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 ) || 110b51: 83 fb 02 cmp $0x2,%ebx 110b54: 74 26 je 110b7c <_CORE_mutex_Seize_interrupt_trylock+0x64> 110b56: 83 fb 03 cmp $0x3,%ebx 110b59: 74 3d je 110b98 <_CORE_mutex_Seize_interrupt_trylock+0x80> executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); 110b5b: ff 31 pushl (%ecx) 110b5d: 9d popf 110b5e: 31 c0 xor %eax,%eax return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 110b60: 8d 65 f8 lea -0x8(%ebp),%esp 110b63: 5b pop %ebx 110b64: 5e pop %esi 110b65: c9 leave 110b66: c3 ret 110b67: 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 ) ) { 110b68: 3b 50 5c cmp 0x5c(%eax),%edx 110b6b: 74 17 je 110b84 <_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 ); 110b6d: b8 01 00 00 00 mov $0x1,%eax 110b72: 8d 65 f8 lea -0x8(%ebp),%esp 110b75: 5b pop %ebx 110b76: 5e pop %esi 110b77: c9 leave 110b78: c3 ret 110b79: 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++; 110b7c: ff 42 1c incl 0x1c(%edx) 110b7f: eb da jmp 110b5b <_CORE_mutex_Seize_interrupt_trylock+0x43> 110b81: 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 ) { 110b84: 8b 58 40 mov 0x40(%eax),%ebx 110b87: 85 db test %ebx,%ebx 110b89: 75 45 jne 110bd0 <_CORE_mutex_Seize_interrupt_trylock+0xb8> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 110b8b: ff 40 54 incl 0x54(%eax) _ISR_Enable( *level_p ); 110b8e: ff 31 pushl (%ecx) 110b90: 9d popf 110b91: 31 c0 xor %eax,%eax 110b93: eb dd jmp 110b72 <_CORE_mutex_Seize_interrupt_trylock+0x5a> 110b95: 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++; 110b98: 8b 5a 1c mov 0x1c(%edx),%ebx 110b9b: 8d 73 01 lea 0x1(%ebx),%esi 110b9e: 89 72 1c mov %esi,0x1c(%edx) { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 110ba1: 8b 72 14 mov 0x14(%edx),%esi if ( current == ceiling ) { 110ba4: 39 70 4c cmp %esi,0x4c(%eax) 110ba7: 74 6b je 110c14 <_CORE_mutex_Seize_interrupt_trylock+0xfc> _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 110ba9: 72 39 jb 110be4 <_CORE_mutex_Seize_interrupt_trylock+0xcc> ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 110bab: c7 42 34 06 00 00 00 movl $0x6,0x34(%edx) the_mutex->lock = CORE_MUTEX_UNLOCKED; 110bb2: c7 40 50 01 00 00 00 movl $0x1,0x50(%eax) the_mutex->nest_count = 0; /* undo locking above */ 110bb9: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) executing->resource_count--; /* undo locking above */ 110bc0: 89 5a 1c mov %ebx,0x1c(%edx) _ISR_Enable( *level_p ); 110bc3: ff 31 pushl (%ecx) 110bc5: 9d popf 110bc6: 31 c0 xor %eax,%eax 110bc8: 8d 65 f8 lea -0x8(%ebp),%esp 110bcb: 5b pop %ebx 110bcc: 5e pop %esi 110bcd: c9 leave 110bce: c3 ret 110bcf: 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 ) { 110bd0: 4b dec %ebx 110bd1: 75 9a jne 110b6d <_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; 110bd3: c7 42 34 02 00 00 00 movl $0x2,0x34(%edx) _ISR_Enable( *level_p ); 110bda: ff 31 pushl (%ecx) 110bdc: 9d popf 110bdd: 31 c0 xor %eax,%eax 110bdf: eb 91 jmp 110b72 <_CORE_mutex_Seize_interrupt_trylock+0x5a> 110be1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 110be4: 8b 15 18 77 12 00 mov 0x127718,%edx 110bea: 42 inc %edx 110beb: 89 15 18 77 12 00 mov %edx,0x127718 return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 110bf1: ff 31 pushl (%ecx) 110bf3: 9d popf _Thread_Change_priority( 110bf4: 52 push %edx 110bf5: 6a 00 push $0x0 110bf7: ff 70 4c pushl 0x4c(%eax) 110bfa: ff 70 5c pushl 0x5c(%eax) 110bfd: e8 0a c4 ff ff call 10d00c <_Thread_Change_priority> the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 110c02: e8 ed c8 ff ff call 10d4f4 <_Thread_Enable_dispatch> 110c07: 31 c0 xor %eax,%eax 110c09: 83 c4 10 add $0x10,%esp 110c0c: e9 61 ff ff ff jmp 110b72 <_CORE_mutex_Seize_interrupt_trylock+0x5a> 110c11: 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 ); 110c14: ff 31 pushl (%ecx) 110c16: 9d popf 110c17: 31 c0 xor %eax,%eax 110c19: e9 54 ff ff ff jmp 110b72 <_CORE_mutex_Seize_interrupt_trylock+0x5a> 0010c1d8 <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { 10c1d8: 55 push %ebp 10c1d9: 89 e5 mov %esp,%ebp 10c1db: 53 push %ebx 10c1dc: 83 ec 04 sub $0x4,%esp 10c1df: 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; 10c1e2: 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 ) { 10c1e5: 80 7b 44 00 cmpb $0x0,0x44(%ebx) 10c1e9: 74 15 je 10c200 <_CORE_mutex_Surrender+0x28> if ( !_Thread_Is_executing( holder ) ) 10c1eb: 3b 05 d8 77 12 00 cmp 0x1277d8,%eax 10c1f1: 74 0d je 10c200 <_CORE_mutex_Surrender+0x28> 10c1f3: b8 03 00 00 00 mov $0x3,%eax } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c1f8: 8b 5d fc mov -0x4(%ebp),%ebx 10c1fb: c9 leave 10c1fc: c3 ret 10c1fd: 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 ) 10c200: 8b 53 54 mov 0x54(%ebx),%edx 10c203: 85 d2 test %edx,%edx 10c205: 74 65 je 10c26c <_CORE_mutex_Surrender+0x94> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 10c207: 4a dec %edx 10c208: 89 53 54 mov %edx,0x54(%ebx) if ( the_mutex->nest_count != 0 ) { 10c20b: 85 d2 test %edx,%edx 10c20d: 75 5d jne 10c26c <_CORE_mutex_Surrender+0x94> 10c20f: 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 ) || 10c212: 83 fa 02 cmp $0x2,%edx 10c215: 0f 84 99 00 00 00 je 10c2b4 <_CORE_mutex_Surrender+0xdc> 10c21b: 83 fa 03 cmp $0x3,%edx 10c21e: 0f 84 90 00 00 00 je 10c2b4 <_CORE_mutex_Surrender+0xdc> } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 10c224: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx) the_mutex->holder_id = 0; 10c22b: 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 ) || 10c232: 83 fa 02 cmp $0x2,%edx 10c235: 74 5d je 10c294 <_CORE_mutex_Surrender+0xbc> 10c237: 83 fa 03 cmp $0x3,%edx 10c23a: 74 58 je 10c294 <_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 ) ) ) { 10c23c: 83 ec 0c sub $0xc,%esp 10c23f: 53 push %ebx 10c240: e8 a3 16 00 00 call 10d8e8 <_Thread_queue_Dequeue> 10c245: 83 c4 10 add $0x10,%esp 10c248: 85 c0 test %eax,%eax 10c24a: 74 7c je 10c2c8 <_CORE_mutex_Surrender+0xf0> } else #endif { the_mutex->holder = the_thread; 10c24c: 89 43 5c mov %eax,0x5c(%ebx) the_mutex->holder_id = the_thread->Object.id; 10c24f: 8b 50 08 mov 0x8(%eax),%edx 10c252: 89 53 60 mov %edx,0x60(%ebx) the_mutex->nest_count = 1; 10c255: c7 43 54 01 00 00 00 movl $0x1,0x54(%ebx) switch ( the_mutex->Attributes.discipline ) { 10c25c: 8b 53 48 mov 0x48(%ebx),%edx 10c25f: 83 fa 02 cmp $0x2,%edx 10c262: 74 58 je 10c2bc <_CORE_mutex_Surrender+0xe4> 10c264: 83 fa 03 cmp $0x3,%edx 10c267: 74 0b je 10c274 <_CORE_mutex_Surrender+0x9c> 10c269: 8d 76 00 lea 0x0(%esi),%esi } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 10c26c: 31 c0 xor %eax,%eax return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c26e: 8b 5d fc mov -0x4(%ebp),%ebx 10c271: c9 leave 10c272: c3 ret 10c273: 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++; 10c274: ff 40 1c incl 0x1c(%eax) if (the_mutex->Attributes.priority_ceiling < 10c277: 8b 53 4c mov 0x4c(%ebx),%edx the_thread->current_priority){ 10c27a: 3b 50 14 cmp 0x14(%eax),%edx 10c27d: 73 ed jae 10c26c <_CORE_mutex_Surrender+0x94> _Thread_Change_priority( 10c27f: 51 push %ecx 10c280: 6a 00 push $0x0 10c282: 52 push %edx 10c283: 50 push %eax 10c284: e8 83 0d 00 00 call 10d00c <_Thread_Change_priority> 10c289: 31 c0 xor %eax,%eax 10c28b: 83 c4 10 add $0x10,%esp 10c28e: e9 65 ff ff ff jmp 10c1f8 <_CORE_mutex_Surrender+0x20> 10c293: 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 && 10c294: 8b 50 1c mov 0x1c(%eax),%edx 10c297: 85 d2 test %edx,%edx 10c299: 75 a1 jne 10c23c <_CORE_mutex_Surrender+0x64> holder->real_priority != holder->current_priority ) { 10c29b: 8b 50 18 mov 0x18(%eax),%edx 10c29e: 3b 50 14 cmp 0x14(%eax),%edx 10c2a1: 74 99 je 10c23c <_CORE_mutex_Surrender+0x64> _Thread_Change_priority( holder, holder->real_priority, true ); 10c2a3: 51 push %ecx 10c2a4: 6a 01 push $0x1 10c2a6: 52 push %edx 10c2a7: 50 push %eax 10c2a8: e8 5f 0d 00 00 call 10d00c <_Thread_Change_priority> 10c2ad: 83 c4 10 add $0x10,%esp 10c2b0: eb 8a jmp 10c23c <_CORE_mutex_Surrender+0x64> 10c2b2: 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--; 10c2b4: ff 48 1c decl 0x1c(%eax) 10c2b7: e9 68 ff ff ff jmp 10c224 <_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++; 10c2bc: ff 40 1c incl 0x1c(%eax) 10c2bf: 31 c0 xor %eax,%eax break; 10c2c1: e9 32 ff ff ff jmp 10c1f8 <_CORE_mutex_Surrender+0x20> 10c2c6: 66 90 xchg %ax,%ax <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 10c2c8: c7 43 50 01 00 00 00 movl $0x1,0x50(%ebx) 10c2cf: 31 c0 xor %eax,%eax 10c2d1: e9 22 ff ff ff jmp 10c1f8 <_CORE_mutex_Surrender+0x20> 001148fc <_CORE_semaphore_Seize>: CORE_semaphore_Control *the_semaphore, Objects_Id id, bool wait, Watchdog_Interval timeout ) { 1148fc: 55 push %ebp 1148fd: 89 e5 mov %esp,%ebp 1148ff: 57 push %edi 114900: 56 push %esi 114901: 53 push %ebx 114902: 83 ec 1c sub $0x1c,%esp 114905: 8b 45 08 mov 0x8(%ebp),%eax 114908: 8b 7d 0c mov 0xc(%ebp),%edi 11490b: 8b 75 14 mov 0x14(%ebp),%esi 11490e: 8a 5d 10 mov 0x10(%ebp),%bl Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 114911: 8b 15 38 d2 12 00 mov 0x12d238,%edx executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 114917: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) _ISR_Disable( level ); 11491e: 9c pushf 11491f: fa cli 114920: 8f 45 e4 popl -0x1c(%ebp) if ( the_semaphore->count != 0 ) { 114923: 8b 48 48 mov 0x48(%eax),%ecx 114926: 85 c9 test %ecx,%ecx 114928: 75 46 jne 114970 <_CORE_semaphore_Seize+0x74> /* * If the semaphore was not available and the caller was not willing * to block, then return immediately with a status indicating that * the semaphore was not available and the caller never blocked. */ if ( !wait ) { 11492a: 84 db test %bl,%bl 11492c: 75 16 jne 114944 <_CORE_semaphore_Seize+0x48> _ISR_Enable( level ); 11492e: ff 75 e4 pushl -0x1c(%ebp) 114931: 9d popf executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; 114932: c7 42 34 01 00 00 00 movl $0x1,0x34(%edx) _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); } 114939: 83 c4 1c add $0x1c,%esp 11493c: 5b pop %ebx 11493d: 5e pop %esi 11493e: 5f pop %edi 11493f: c9 leave 114940: c3 ret 114941: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 114944: c7 40 30 01 00 00 00 movl $0x1,0x30(%eax) /* * If the semaphore is not available and the caller is willing to * block, then we now block the caller with optional timeout. */ _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; 11494b: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 11494e: 89 7a 20 mov %edi,0x20(%edx) _ISR_Enable( level ); 114951: ff 75 e4 pushl -0x1c(%ebp) 114954: 9d popf _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 114955: c7 45 10 1c 14 11 00 movl $0x11141c,0x10(%ebp) 11495c: 89 75 0c mov %esi,0xc(%ebp) 11495f: 89 45 08 mov %eax,0x8(%ebp) } 114962: 83 c4 1c add $0x1c,%esp 114965: 5b pop %ebx 114966: 5e pop %esi 114967: 5f pop %edi 114968: c9 leave */ _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 114969: e9 9e c7 ff ff jmp 11110c <_Thread_queue_Enqueue_with_handler> 11496e: 66 90 xchg %ax,%ax <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; _ISR_Disable( level ); if ( the_semaphore->count != 0 ) { the_semaphore->count -= 1; 114970: 49 dec %ecx 114971: 89 48 48 mov %ecx,0x48(%eax) _ISR_Enable( level ); 114974: ff 75 e4 pushl -0x1c(%ebp) 114977: 9d popf _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); } 114978: 83 c4 1c add $0x1c,%esp 11497b: 5b pop %ebx 11497c: 5e pop %esi 11497d: 5f pop %edi 11497e: c9 leave 11497f: c3 ret 0010c324 <_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 ) { 10c324: 55 push %ebp 10c325: 89 e5 mov %esp,%ebp 10c327: 53 push %ebx 10c328: 83 ec 10 sub $0x10,%esp 10c32b: 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)) ) { 10c32e: 53 push %ebx 10c32f: e8 b4 15 00 00 call 10d8e8 <_Thread_queue_Dequeue> 10c334: 83 c4 10 add $0x10,%esp 10c337: 85 c0 test %eax,%eax 10c339: 74 09 je 10c344 <_CORE_semaphore_Surrender+0x20> 10c33b: 31 c0 xor %eax,%eax status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 10c33d: 8b 5d fc mov -0x4(%ebp),%ebx 10c340: c9 leave 10c341: c3 ret 10c342: 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 ); 10c344: 9c pushf 10c345: fa cli 10c346: 5a pop %edx if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 10c347: 8b 43 48 mov 0x48(%ebx),%eax 10c34a: 3b 43 40 cmp 0x40(%ebx),%eax 10c34d: 72 0d jb 10c35c <_CORE_semaphore_Surrender+0x38> 10c34f: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 10c354: 52 push %edx 10c355: 9d popf } return status; } 10c356: 8b 5d fc mov -0x4(%ebp),%ebx 10c359: c9 leave 10c35a: c3 ret 10c35b: 90 nop <== NOT EXECUTED #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; 10c35c: 40 inc %eax 10c35d: 89 43 48 mov %eax,0x48(%ebx) 10c360: 31 c0 xor %eax,%eax 10c362: eb f0 jmp 10c354 <_CORE_semaphore_Surrender+0x30> 0010ccd4 <_CORE_spinlock_Release>: */ CORE_spinlock_Status _CORE_spinlock_Release( CORE_spinlock_Control *the_spinlock ) { 10ccd4: 55 push %ebp 10ccd5: 89 e5 mov %esp,%ebp 10ccd7: 53 push %ebx 10ccd8: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; _ISR_Disable( level ); 10ccdb: 9c pushf 10ccdc: fa cli 10ccdd: 59 pop %ecx /* * It must locked before it can be unlocked. */ if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { 10ccde: 8b 50 04 mov 0x4(%eax),%edx 10cce1: 85 d2 test %edx,%edx 10cce3: 75 0b jne 10ccf0 <_CORE_spinlock_Release+0x1c> _ISR_Enable( level ); 10cce5: 51 push %ecx 10cce6: 9d popf 10cce7: b8 06 00 00 00 mov $0x6,%eax the_spinlock->lock = CORE_SPINLOCK_UNLOCKED; the_spinlock->holder = 0; _ISR_Enable( level ); return CORE_SPINLOCK_SUCCESSFUL; } 10ccec: 5b pop %ebx 10cced: c9 leave 10ccee: c3 ret 10ccef: 90 nop <== NOT EXECUTED } /* * It must locked by the current thread before it can be unlocked. */ if ( the_spinlock->holder != _Thread_Executing->Object.id ) { 10ccf0: 8b 58 0c mov 0xc(%eax),%ebx 10ccf3: 8b 15 98 88 12 00 mov 0x128898,%edx 10ccf9: 3b 5a 08 cmp 0x8(%edx),%ebx 10ccfc: 74 0a je 10cd08 <_CORE_spinlock_Release+0x34> _ISR_Enable( level ); 10ccfe: 51 push %ecx 10ccff: 9d popf 10cd00: b8 02 00 00 00 mov $0x2,%eax the_spinlock->lock = CORE_SPINLOCK_UNLOCKED; the_spinlock->holder = 0; _ISR_Enable( level ); return CORE_SPINLOCK_SUCCESSFUL; } 10cd05: 5b pop %ebx 10cd06: c9 leave 10cd07: c3 ret } /* * Let it be unlocked. */ the_spinlock->users -= 1; 10cd08: 8b 50 08 mov 0x8(%eax),%edx 10cd0b: 4a dec %edx 10cd0c: 89 50 08 mov %edx,0x8(%eax) the_spinlock->lock = CORE_SPINLOCK_UNLOCKED; 10cd0f: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_spinlock->holder = 0; 10cd16: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) _ISR_Enable( level ); 10cd1d: 51 push %ecx 10cd1e: 9d popf 10cd1f: 31 c0 xor %eax,%eax return CORE_SPINLOCK_SUCCESSFUL; 10cd21: eb c9 jmp 10ccec <_CORE_spinlock_Release+0x18> 0010cd24 <_CORE_spinlock_Wait>: CORE_spinlock_Status _CORE_spinlock_Wait( CORE_spinlock_Control *the_spinlock, bool wait, Watchdog_Interval timeout ) { 10cd24: 55 push %ebp 10cd25: 89 e5 mov %esp,%ebp 10cd27: 56 push %esi 10cd28: 53 push %ebx 10cd29: 8b 5d 08 mov 0x8(%ebp),%ebx 10cd2c: 8a 4d 0c mov 0xc(%ebp),%cl ISR_Level level; #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout; #endif _ISR_Disable( level ); 10cd2f: 9c pushf 10cd30: fa cli 10cd31: 58 pop %eax if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) && 10cd32: 8b 53 04 mov 0x4(%ebx),%edx 10cd35: 4a dec %edx 10cd36: 74 60 je 10cd98 <_CORE_spinlock_Wait+0x74> (the_spinlock->holder == _Thread_Executing->Object.id) ) { _ISR_Enable( level ); return CORE_SPINLOCK_HOLDER_RELOCKING; } the_spinlock->users += 1; 10cd38: 8b 53 08 mov 0x8(%ebx),%edx 10cd3b: 42 inc %edx 10cd3c: 89 53 08 mov %edx,0x8(%ebx) for ( ;; ) { if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { 10cd3f: 8b 53 04 mov 0x4(%ebx),%edx 10cd42: 85 d2 test %edx,%edx 10cd44: 74 22 je 10cd68 <_CORE_spinlock_Wait+0x44> } /* * Spinlock is unavailable. If not willing to wait, return. */ if ( !wait ) { 10cd46: 84 c9 test %cl,%cl 10cd48: 74 39 je 10cd83 <_CORE_spinlock_Wait+0x5f> 10cd4a: 66 90 xchg %ax,%ax * * A spinlock cannot be deleted while it is being used so we are * safe from deletion. */ _ISR_Enable( level ); 10cd4c: 50 push %eax 10cd4d: 9d popf /* An ISR could occur here */ _Thread_Enable_dispatch(); 10cd4e: e8 ed 11 00 00 call 10df40 <_Thread_Enable_dispatch> 10cd53: a1 d8 87 12 00 mov 0x1287d8,%eax 10cd58: 40 inc %eax 10cd59: a3 d8 87 12 00 mov %eax,0x1287d8 /* Another thread could get dispatched here */ /* Reenter the critical sections so we can attempt the lock again. */ _Thread_Disable_dispatch(); _ISR_Disable( level ); 10cd5e: 9c pushf 10cd5f: fa cli 10cd60: 58 pop %eax _ISR_Enable( level ); return CORE_SPINLOCK_HOLDER_RELOCKING; } the_spinlock->users += 1; for ( ;; ) { if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { 10cd61: 8b 53 04 mov 0x4(%ebx),%edx 10cd64: 85 d2 test %edx,%edx 10cd66: 75 e4 jne 10cd4c <_CORE_spinlock_Wait+0x28> the_spinlock->lock = CORE_SPINLOCK_LOCKED; 10cd68: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx) the_spinlock->holder = _Thread_Executing->Object.id; 10cd6f: 8b 15 98 88 12 00 mov 0x128898,%edx 10cd75: 8b 52 08 mov 0x8(%edx),%edx 10cd78: 89 53 0c mov %edx,0xc(%ebx) _ISR_Enable( level ); 10cd7b: 50 push %eax 10cd7c: 9d popf 10cd7d: 31 c0 xor %eax,%eax _Thread_Disable_dispatch(); _ISR_Disable( level ); } } 10cd7f: 5b pop %ebx 10cd80: 5e pop %esi 10cd81: c9 leave 10cd82: c3 ret /* * Spinlock is unavailable. If not willing to wait, return. */ if ( !wait ) { the_spinlock->users -= 1; 10cd83: 8b 53 08 mov 0x8(%ebx),%edx 10cd86: 4a dec %edx 10cd87: 89 53 08 mov %edx,0x8(%ebx) _ISR_Enable( level ); 10cd8a: 50 push %eax 10cd8b: 9d popf 10cd8c: b8 05 00 00 00 mov $0x5,%eax _Thread_Disable_dispatch(); _ISR_Disable( level ); } } 10cd91: 5b pop %ebx 10cd92: 5e pop %esi 10cd93: c9 leave 10cd94: c3 ret 10cd95: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout; #endif _ISR_Disable( level ); if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) && (the_spinlock->holder == _Thread_Executing->Object.id) ) { 10cd98: 8b 73 0c mov 0xc(%ebx),%esi 10cd9b: 8b 15 98 88 12 00 mov 0x128898,%edx 10cda1: 3b 72 08 cmp 0x8(%edx),%esi 10cda4: 75 92 jne 10cd38 <_CORE_spinlock_Wait+0x14> _ISR_Enable( level ); 10cda6: 50 push %eax 10cda7: 9d popf 10cda8: b8 01 00 00 00 mov $0x1,%eax return CORE_SPINLOCK_HOLDER_RELOCKING; 10cdad: eb d0 jmp 10cd7f <_CORE_spinlock_Wait+0x5b> 0010bedc <_Chain_Get>: */ Chain_Node *_Chain_Get( Chain_Control *the_chain ) { 10bedc: 55 push %ebp 10bedd: 89 e5 mov %esp,%ebp 10bedf: 53 push %ebx 10bee0: 8b 55 08 mov 0x8(%ebp),%edx ISR_Level level; Chain_Node *return_node; return_node = NULL; _ISR_Disable( level ); 10bee3: 9c pushf 10bee4: fa cli 10bee5: 5b pop %ebx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10bee6: 8b 02 mov (%edx),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10bee8: 8d 4a 04 lea 0x4(%edx),%ecx 10beeb: 39 c8 cmp %ecx,%eax 10beed: 74 0d je 10befc <_Chain_Get+0x20> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 10beef: 8b 08 mov (%eax),%ecx the_chain->first = new_first; 10bef1: 89 0a mov %ecx,(%edx) new_first->previous = _Chain_Head(the_chain); 10bef3: 89 51 04 mov %edx,0x4(%ecx) if ( !_Chain_Is_empty( the_chain ) ) return_node = _Chain_Get_first_unprotected( the_chain ); _ISR_Enable( level ); 10bef6: 53 push %ebx 10bef7: 9d popf return return_node; } 10bef8: 5b pop %ebx 10bef9: c9 leave 10befa: c3 ret 10befb: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10befc: 31 c0 xor %eax,%eax 10befe: eb f6 jmp 10bef6 <_Chain_Get+0x1a> 00110a2c <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 110a2c: 55 push %ebp 110a2d: 89 e5 mov %esp,%ebp 110a2f: 57 push %edi 110a30: 56 push %esi 110a31: 53 push %ebx 110a32: 8b 7d 08 mov 0x8(%ebp),%edi 110a35: 8b 4d 10 mov 0x10(%ebp),%ecx 110a38: 8b 75 14 mov 0x14(%ebp),%esi */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 110a3b: 89 fa mov %edi,%edx Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; 110a3d: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi) next = starting_address; while ( count-- ) { 110a44: 85 c9 test %ecx,%ecx 110a46: 74 17 je 110a5f <_Chain_Initialize+0x33> Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; 110a48: 8b 45 0c mov 0xc(%ebp),%eax 110a4b: eb 05 jmp 110a52 <_Chain_Initialize+0x26> 110a4d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED while ( count-- ) { 110a50: 89 d8 mov %ebx,%eax current->next = next; 110a52: 89 02 mov %eax,(%edx) next->previous = current; 110a54: 89 50 04 mov %edx,0x4(%eax) 110a57: 8d 1c 30 lea (%eax,%esi,1),%ebx current = next; next = (Chain_Node *) 110a5a: 89 c2 mov %eax,%edx count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 110a5c: 49 dec %ecx 110a5d: 75 f1 jne 110a50 <_Chain_Initialize+0x24> next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); 110a5f: 8d 47 04 lea 0x4(%edi),%eax 110a62: 89 02 mov %eax,(%edx) the_chain->last = current; 110a64: 89 57 08 mov %edx,0x8(%edi) } 110a67: 5b pop %ebx 110a68: 5e pop %esi 110a69: 5f pop %edi 110a6a: c9 leave 110a6b: 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 d8 77 12 00 mov 0x1277d8,%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 f4 00 00 00 mov 0xf4(%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 a8 80 12 00 01 movl $0x1,0x1280a8 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 d6 2d 00 00 call 10ddb8 <_Thread_Set_state> _ISR_Disable( level ); 10afe2: 9c pushf 10afe3: fa cli 10afe4: 5a pop %edx sync_state = _Event_Sync_state; 10afe5: a1 a8 80 12 00 mov 0x1280a8,%eax _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10afea: c7 05 a8 80 12 00 00 movl $0x0,0x1280a8 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 af 1f 00 00 jmp 10cfc0 <_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 f8 77 12 00 push $0x1277f8 10b081: e8 ba 33 00 00 call 10e440 <_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 f4 00 00 00 mov 0xf4(%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 b4 77 12 00 mov 0x1277b4,%edi 10b112: 85 ff test %edi,%edi 10b114: 74 0c je 10b122 <_Event_Surrender+0x3e> 10b116: 3b 1d d8 77 12 00 cmp 0x1277d8,%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 e5 1f 00 00 call 10d14c <_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 d5 33 00 00 call 10e578 <_Watchdog_Remove> 10b1a3: 58 pop %eax 10b1a4: 5a pop %edx 10b1a5: 68 f8 ff 03 10 push $0x1003fff8 10b1aa: 53 push %ebx 10b1ab: e8 9c 1f 00 00 call 10d14c <_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 a8 80 12 00 mov 0x1280a8,%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 a8 80 12 00 mov 0x1280a8,%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 a8 80 12 00 03 movl $0x3,0x1280a8 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 fe 22 00 00 call 10d518 <_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 d8 77 12 00 cmp 0x1277d8,%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 ff 1e 00 00 call 10d14c <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 10b24d: a1 18 77 12 00 mov 0x127718,%eax 10b252: 48 dec %eax 10b253: a3 18 77 12 00 mov %eax,0x127718 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 a8 80 12 00 mov 0x1280a8,%ecx 10b266: 49 dec %ecx 10b267: 75 cd jne 10b236 <_Event_Timeout+0x2e> _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 10b269: c7 05 a8 80 12 00 02 movl $0x2,0x1280a8 10b270: 00 00 00 10b273: eb c1 jmp 10b236 <_Event_Timeout+0x2e> 00110cd0 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 110cd0: 55 push %ebp 110cd1: 89 e5 mov %esp,%ebp 110cd3: 57 push %edi 110cd4: 56 push %esi 110cd5: 53 push %ebx 110cd6: 83 ec 2c sub $0x2c,%esp 110cd9: 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; 110cdc: 8b 45 08 mov 0x8(%ebp),%eax 110cdf: 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; 110ce2: 8b 50 10 mov 0x10(%eax),%edx 110ce5: 89 55 d4 mov %edx,-0x2c(%ebp) uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 110ce8: 89 f8 mov %edi,%eax 110cea: 83 c0 04 add $0x4,%eax 110ced: 89 45 e0 mov %eax,-0x20(%ebp) 110cf0: 0f 82 5a 01 00 00 jb 110e50 <_Heap_Allocate_aligned_with_boundary+0x180> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 110cf6: 8b 75 14 mov 0x14(%ebp),%esi 110cf9: 85 f6 test %esi,%esi 110cfb: 0f 85 48 01 00 00 jne 110e49 <_Heap_Allocate_aligned_with_boundary+0x179> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 110d01: 39 4d 08 cmp %ecx,0x8(%ebp) 110d04: 0f 84 50 01 00 00 je 110e5a <_Heap_Allocate_aligned_with_boundary+0x18a> 110d0a: 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; 110d11: 8b 55 d4 mov -0x2c(%ebp),%edx 110d14: 83 c2 07 add $0x7,%edx 110d17: 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; 110d1a: c7 45 d8 04 00 00 00 movl $0x4,-0x28(%ebp) 110d21: 29 7d d8 sub %edi,-0x28(%ebp) 110d24: eb 19 jmp 110d3f <_Heap_Allocate_aligned_with_boundary+0x6f> 110d26: 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; 110d28: 8d 59 08 lea 0x8(%ecx),%ebx boundary ); } } if ( alloc_begin != 0 ) { 110d2b: 85 db test %ebx,%ebx 110d2d: 0f 85 e9 00 00 00 jne 110e1c <_Heap_Allocate_aligned_with_boundary+0x14c> break; } block = block->next; 110d33: 8b 49 08 mov 0x8(%ecx),%ecx if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 110d36: 39 4d 08 cmp %ecx,0x8(%ebp) 110d39: 0f 84 25 01 00 00 je 110e64 <_Heap_Allocate_aligned_with_boundary+0x194> _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; 110d3f: 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 ) { 110d42: 8b 59 04 mov 0x4(%ecx),%ebx 110d45: 39 5d e0 cmp %ebx,-0x20(%ebp) 110d48: 73 e9 jae 110d33 <_Heap_Allocate_aligned_with_boundary+0x63> if ( alignment == 0 ) { 110d4a: 8b 55 10 mov 0x10(%ebp),%edx 110d4d: 85 d2 test %edx,%edx 110d4f: 74 d7 je 110d28 <_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; 110d51: 8b 45 08 mov 0x8(%ebp),%eax 110d54: 8b 40 14 mov 0x14(%eax),%eax 110d57: 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; 110d5a: 83 e3 fe and $0xfffffffe,%ebx 110d5d: 8d 1c 19 lea (%ecx,%ebx,1),%ebx 110d60: 8d 51 08 lea 0x8(%ecx),%edx 110d63: 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; 110d66: 8b 75 c8 mov -0x38(%ebp),%esi 110d69: 29 c6 sub %eax,%esi 110d6b: 01 de add %ebx,%esi uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 110d6d: 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); 110d70: 89 d8 mov %ebx,%eax 110d72: 31 d2 xor %edx,%edx 110d74: f7 75 10 divl 0x10(%ebp) 110d77: 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 ) { 110d79: 39 de cmp %ebx,%esi 110d7b: 73 0b jae 110d88 <_Heap_Allocate_aligned_with_boundary+0xb8> 110d7d: 89 f0 mov %esi,%eax 110d7f: 31 d2 xor %edx,%edx 110d81: f7 75 10 divl 0x10(%ebp) 110d84: 89 f3 mov %esi,%ebx 110d86: 29 d3 sub %edx,%ebx } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 110d88: 8b 45 14 mov 0x14(%ebp),%eax 110d8b: 85 c0 test %eax,%eax 110d8d: 74 59 je 110de8 <_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; 110d8f: 8d 34 3b lea (%ebx,%edi,1),%esi 110d92: 89 f0 mov %esi,%eax 110d94: 31 d2 xor %edx,%edx 110d96: f7 75 14 divl 0x14(%ebp) 110d99: 89 f0 mov %esi,%eax 110d9b: 29 d0 sub %edx,%eax 110d9d: 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 ) { 110d9f: 39 c3 cmp %eax,%ebx 110da1: 73 45 jae 110de8 <_Heap_Allocate_aligned_with_boundary+0x118> 110da3: 39 c6 cmp %eax,%esi 110da5: 76 41 jbe 110de8 <_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; 110da7: 8b 45 cc mov -0x34(%ebp),%eax 110daa: 01 f8 add %edi,%eax 110dac: 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 ) { 110daf: 39 d0 cmp %edx,%eax 110db1: 77 80 ja 110d33 <_Heap_Allocate_aligned_with_boundary+0x63> 110db3: 89 ce mov %ecx,%esi 110db5: eb 0e jmp 110dc5 <_Heap_Allocate_aligned_with_boundary+0xf5> 110db7: 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 ) { 110db8: 39 c1 cmp %eax,%ecx 110dba: 76 2a jbe 110de6 <_Heap_Allocate_aligned_with_boundary+0x116> if ( boundary_line < boundary_floor ) { 110dbc: 39 55 dc cmp %edx,-0x24(%ebp) 110dbf: 0f 87 a3 00 00 00 ja 110e68 <_Heap_Allocate_aligned_with_boundary+0x198> return 0; } alloc_begin = boundary_line - alloc_size; 110dc5: 89 d3 mov %edx,%ebx 110dc7: 29 fb sub %edi,%ebx 110dc9: 89 d8 mov %ebx,%eax 110dcb: 31 d2 xor %edx,%edx 110dcd: f7 75 10 divl 0x10(%ebp) 110dd0: 29 d3 sub %edx,%ebx alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 110dd2: 8d 0c 3b lea (%ebx,%edi,1),%ecx 110dd5: 89 c8 mov %ecx,%eax 110dd7: 31 d2 xor %edx,%edx 110dd9: f7 75 14 divl 0x14(%ebp) 110ddc: 89 c8 mov %ecx,%eax 110dde: 29 d0 sub %edx,%eax 110de0: 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 ) { 110de2: 39 c3 cmp %eax,%ebx 110de4: 72 d2 jb 110db8 <_Heap_Allocate_aligned_with_boundary+0xe8> 110de6: 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 ) { 110de8: 39 5d cc cmp %ebx,-0x34(%ebp) 110deb: 0f 87 42 ff ff ff ja 110d33 <_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; 110df1: be f8 ff ff ff mov $0xfffffff8,%esi 110df6: 29 ce sub %ecx,%esi 110df8: 01 de add %ebx,%esi 110dfa: 89 d8 mov %ebx,%eax 110dfc: 31 d2 xor %edx,%edx 110dfe: f7 75 d4 divl -0x2c(%ebp) 110e01: 29 d6 sub %edx,%esi if ( free_size >= min_block_size || free_size == 0 ) { 110e03: 39 75 d0 cmp %esi,-0x30(%ebp) 110e06: 0f 86 1f ff ff ff jbe 110d2b <_Heap_Allocate_aligned_with_boundary+0x5b> 110e0c: 85 f6 test %esi,%esi 110e0e: 0f 85 1f ff ff ff jne 110d33 <_Heap_Allocate_aligned_with_boundary+0x63> boundary ); } } if ( alloc_begin != 0 ) { 110e14: 85 db test %ebx,%ebx 110e16: 0f 84 17 ff ff ff je 110d33 <_Heap_Allocate_aligned_with_boundary+0x63> block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 110e1c: 8b 55 e4 mov -0x1c(%ebp),%edx 110e1f: 8b 45 08 mov 0x8(%ebp),%eax 110e22: 01 50 4c add %edx,0x4c(%eax) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 110e25: 57 push %edi 110e26: 53 push %ebx 110e27: 51 push %ecx 110e28: 50 push %eax 110e29: e8 1a b8 ff ff call 10c648 <_Heap_Block_allocate> 110e2e: 89 d8 mov %ebx,%eax 110e30: 83 c4 10 add $0x10,%esp uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 110e33: 8b 4d e4 mov -0x1c(%ebp),%ecx 110e36: 8b 55 08 mov 0x8(%ebp),%edx 110e39: 39 4a 44 cmp %ecx,0x44(%edx) 110e3c: 73 14 jae 110e52 <_Heap_Allocate_aligned_with_boundary+0x182> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 110e3e: 89 4a 44 mov %ecx,0x44(%edx) } return (void *) alloc_begin; } 110e41: 8d 65 f4 lea -0xc(%ebp),%esp 110e44: 5b pop %ebx 110e45: 5e pop %esi 110e46: 5f pop %edi 110e47: c9 leave 110e48: c3 ret /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 110e49: 3b 7d 14 cmp 0x14(%ebp),%edi 110e4c: 76 21 jbe 110e6f <_Heap_Allocate_aligned_with_boundary+0x19f> 110e4e: 66 90 xchg %ax,%ax ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 110e50: 31 c0 xor %eax,%eax } return (void *) alloc_begin; } 110e52: 8d 65 f4 lea -0xc(%ebp),%esp 110e55: 5b pop %ebx 110e56: 5e pop %esi 110e57: 5f pop %edi 110e58: c9 leave 110e59: c3 ret if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 110e5a: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 110e61: 8d 76 00 lea 0x0(%esi),%esi 110e64: 31 c0 xor %eax,%eax 110e66: eb cb jmp 110e33 <_Heap_Allocate_aligned_with_boundary+0x163> 110e68: 89 f1 mov %esi,%ecx <== NOT EXECUTED 110e6a: e9 c4 fe ff ff jmp 110d33 <_Heap_Allocate_aligned_with_boundary+0x63> <== NOT EXECUTED if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 110e6f: 8b 5d 10 mov 0x10(%ebp),%ebx 110e72: 85 db test %ebx,%ebx 110e74: 0f 85 87 fe ff ff jne 110d01 <_Heap_Allocate_aligned_with_boundary+0x31> 110e7a: 89 55 10 mov %edx,0x10(%ebp) 110e7d: e9 7f fe ff ff jmp 110d01 <_Heap_Allocate_aligned_with_boundary+0x31> 0010c648 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 10c648: 55 push %ebp 10c649: 89 e5 mov %esp,%ebp 10c64b: 57 push %edi 10c64c: 56 push %esi 10c64d: 53 push %ebx 10c64e: 83 ec 10 sub $0x10,%esp 10c651: 8b 75 08 mov 0x8(%ebp),%esi 10c654: 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; 10c657: 89 5d ec mov %ebx,-0x14(%ebp) 10c65a: 8b 7d 10 mov 0x10(%ebp),%edi 10c65d: 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; 10c660: 89 f8 mov %edi,%eax 10c662: 29 d8 sub %ebx,%eax Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { 10c664: 8b 53 04 mov 0x4(%ebx),%edx 10c667: 83 e2 fe and $0xfffffffe,%edx 10c66a: f6 44 13 04 01 testb $0x1,0x4(%ebx,%edx,1) 10c66f: 0f 85 8b 00 00 00 jne 10c700 <_Heap_Block_allocate+0xb8> free_list_anchor = block->prev; 10c675: 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; 10c678: 8b 53 08 mov 0x8(%ebx),%edx Heap_Block *prev = block->prev; prev->next = next; 10c67b: 89 51 08 mov %edx,0x8(%ecx) next->prev = prev; 10c67e: 89 4a 0c mov %ecx,0xc(%edx) _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; 10c681: ff 4e 38 decl 0x38(%esi) ++stats->used_blocks; 10c684: ff 46 40 incl 0x40(%esi) stats->free_size -= _Heap_Block_size( block ); 10c687: 8b 53 04 mov 0x4(%ebx),%edx 10c68a: 83 e2 fe and $0xfffffffe,%edx 10c68d: 29 56 30 sub %edx,0x30(%esi) } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { 10c690: 8b 56 10 mov 0x10(%esi),%edx 10c693: 89 55 e4 mov %edx,-0x1c(%ebp) 10c696: 39 d0 cmp %edx,%eax 10c698: 72 72 jb 10c70c <_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; 10c69a: 8b 43 04 mov 0x4(%ebx),%eax 10c69d: 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 ) 10c6a0: 8b 45 10 mov 0x10(%ebp),%eax 10c6a3: 31 d2 xor %edx,%edx 10c6a5: f7 75 e4 divl -0x1c(%ebp) 10c6a8: 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; 10c6aa: 89 f8 mov %edi,%eax 10c6ac: 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; 10c6ae: 01 46 30 add %eax,0x30(%esi) if ( _Heap_Is_prev_used( block ) ) { 10c6b1: f6 43 04 01 testb $0x1,0x4(%ebx) 10c6b5: 75 69 jne 10c720 <_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); 10c6b7: 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; 10c6b9: 8b 53 04 mov 0x4(%ebx),%edx 10c6bc: 83 e2 fe and $0xfffffffe,%edx 10c6bf: 01 d0 add %edx,%eax } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 10c6c1: 89 c2 mov %eax,%edx 10c6c3: 83 ca 01 or $0x1,%edx 10c6c6: 89 53 04 mov %edx,0x4(%ebx) new_block->prev_size = block_size; 10c6c9: 89 07 mov %eax,(%edi) new_block->size_and_flag = new_block_size; 10c6cb: 8b 45 f0 mov -0x10(%ebp),%eax 10c6ce: 83 e0 fe and $0xfffffffe,%eax 10c6d1: 03 45 ec add -0x14(%ebp),%eax 10c6d4: 29 f8 sub %edi,%eax 10c6d6: 89 47 04 mov %eax,0x4(%edi) _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); 10c6d9: ff 75 14 pushl 0x14(%ebp) 10c6dc: 51 push %ecx 10c6dd: 57 push %edi 10c6de: 56 push %esi 10c6df: e8 80 fe ff ff call 10c564 <_Heap_Block_split> 10c6e4: 89 fb mov %edi,%ebx 10c6e6: 83 c4 10 add $0x10,%esp alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { 10c6e9: 8b 46 30 mov 0x30(%esi),%eax Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; 10c6ec: 39 46 34 cmp %eax,0x34(%esi) 10c6ef: 76 03 jbe 10c6f4 <_Heap_Block_allocate+0xac> ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { stats->min_free_size = stats->free_size; 10c6f1: 89 46 34 mov %eax,0x34(%esi) } return block; } 10c6f4: 89 d8 mov %ebx,%eax 10c6f6: 8d 65 f4 lea -0xc(%ebp),%esp 10c6f9: 5b pop %ebx 10c6fa: 5e pop %esi 10c6fb: 5f pop %edi 10c6fc: c9 leave 10c6fd: c3 ret 10c6fe: 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 ); 10c700: 89 f1 mov %esi,%ecx } if ( alloc_area_offset < heap->page_size ) { 10c702: 8b 56 10 mov 0x10(%esi),%edx 10c705: 89 55 e4 mov %edx,-0x1c(%ebp) 10c708: 39 d0 cmp %edx,%eax 10c70a: 73 8e jae 10c69a <_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 ); 10c70c: 03 45 14 add 0x14(%ebp),%eax 10c70f: 50 push %eax 10c710: 51 push %ecx 10c711: 53 push %ebx 10c712: 56 push %esi 10c713: e8 4c fe ff ff call 10c564 <_Heap_Block_split> 10c718: 83 c4 10 add $0x10,%esp 10c71b: eb cc jmp 10c6e9 <_Heap_Block_allocate+0xa1> 10c71d: 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; 10c720: 8b 51 08 mov 0x8(%ecx),%edx new_block->next = next; 10c723: 89 53 08 mov %edx,0x8(%ebx) new_block->prev = block_before; 10c726: 89 4b 0c mov %ecx,0xc(%ebx) block_before->next = new_block; 10c729: 89 59 08 mov %ebx,0x8(%ecx) next->prev = new_block; 10c72c: 89 5a 0c mov %ebx,0xc(%edx) _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; 10c72f: ff 46 38 incl 0x38(%esi) 10c732: 89 d9 mov %ebx,%ecx 10c734: eb 8b jmp 10c6c1 <_Heap_Block_allocate+0x79> 0010c564 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { 10c564: 55 push %ebp 10c565: 89 e5 mov %esp,%ebp 10c567: 57 push %edi 10c568: 56 push %esi 10c569: 53 push %ebx 10c56a: 83 ec 14 sub $0x14,%esp 10c56d: 8b 4d 08 mov 0x8(%ebp),%ecx 10c570: 8b 5d 0c mov 0xc(%ebp),%ebx Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; 10c573: 8b 79 10 mov 0x10(%ecx),%edi uintptr_t const min_block_size = heap->min_block_size; 10c576: 8b 41 14 mov 0x14(%ecx),%eax 10c579: 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; 10c57c: 8b 43 04 mov 0x4(%ebx),%eax 10c57f: 89 45 e4 mov %eax,-0x1c(%ebp) 10c582: 89 c6 mov %eax,%esi 10c584: 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; 10c587: 8b 55 e8 mov -0x18(%ebp),%edx 10c58a: 83 ea 08 sub $0x8,%edx 10c58d: 8b 45 14 mov 0x14(%ebp),%eax 10c590: 39 d0 cmp %edx,%eax 10c592: 73 02 jae 10c596 <_Heap_Block_split+0x32> 10c594: 89 d0 mov %edx,%eax 10c596: 83 c0 08 add $0x8,%eax 10c599: 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; 10c59c: 31 d2 xor %edx,%edx 10c59e: f7 f7 div %edi if ( remainder != 0 ) { 10c5a0: 85 d2 test %edx,%edx 10c5a2: 75 70 jne 10c614 <_Heap_Block_split+0xb0> 10c5a4: 8b 7d f0 mov -0x10(%ebp),%edi 10c5a7: 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); 10c5aa: 8d 04 33 lea (%ebx,%esi,1),%eax 10c5ad: 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 ) { 10c5b0: 8d 56 04 lea 0x4(%esi),%edx 10c5b3: 2b 55 f0 sub -0x10(%ebp),%edx 10c5b6: 8b 7d e8 mov -0x18(%ebp),%edi 10c5b9: 83 c7 04 add $0x4,%edi 10c5bc: 39 fa cmp %edi,%edx 10c5be: 72 60 jb 10c620 <_Heap_Block_split+0xbc> 10c5c0: 8b 55 ec mov -0x14(%ebp),%edx 10c5c3: 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; 10c5c5: 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; 10c5c8: 8b 7d e4 mov -0x1c(%ebp),%edi 10c5cb: 83 e7 01 and $0x1,%edi 10c5ce: 0b 7d ec or -0x14(%ebp),%edi 10c5d1: 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; 10c5d4: 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; 10c5d7: 8b 58 04 mov 0x4(%eax),%ebx 10c5da: 83 e3 fe and $0xfffffffe,%ebx if ( _Heap_Is_used( next_block ) ) { 10c5dd: f6 44 18 04 01 testb $0x1,0x4(%eax,%ebx,1) 10c5e2: 75 4c jne 10c630 <_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; 10c5e4: 8b 48 08 mov 0x8(%eax),%ecx Heap_Block *prev = old_block->prev; 10c5e7: 8b 40 0c mov 0xc(%eax),%eax new_block->next = next; 10c5ea: 89 4a 08 mov %ecx,0x8(%edx) new_block->prev = prev; 10c5ed: 89 42 0c mov %eax,0xc(%edx) next->prev = new_block; 10c5f0: 89 51 0c mov %edx,0xc(%ecx) prev->next = new_block; 10c5f3: 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; 10c5f6: 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); 10c5f8: 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; 10c5fb: 89 f1 mov %esi,%ecx 10c5fd: 83 c9 01 or $0x1,%ecx 10c600: 89 4a 04 mov %ecx,0x4(%edx) next_block->prev_size = free_block_size; 10c603: 89 30 mov %esi,(%eax) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 10c605: 83 60 04 fe andl $0xfffffffe,0x4(%eax) } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; } } 10c609: 83 c4 14 add $0x14,%esp 10c60c: 5b pop %ebx 10c60d: 5e pop %esi 10c60e: 5f pop %edi 10c60f: c9 leave 10c610: c3 ret 10c611: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; 10c614: 03 7d f0 add -0x10(%ebp),%edi 10c617: 29 d7 sub %edx,%edi 10c619: 89 7d ec mov %edi,-0x14(%ebp) 10c61c: eb 8c jmp 10c5aa <_Heap_Block_split+0x46> 10c61e: 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; 10c620: 8b 45 e0 mov -0x20(%ebp),%eax 10c623: 83 48 04 01 orl $0x1,0x4(%eax) } } 10c627: 83 c4 14 add $0x14,%esp 10c62a: 5b pop %ebx 10c62b: 5e pop %esi 10c62c: 5f pop %edi 10c62d: c9 leave 10c62e: c3 ret 10c62f: 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; 10c630: 8b 7d 10 mov 0x10(%ebp),%edi 10c633: 8b 5f 08 mov 0x8(%edi),%ebx new_block->next = next; 10c636: 89 5a 08 mov %ebx,0x8(%edx) new_block->prev = block_before; 10c639: 89 7a 0c mov %edi,0xc(%edx) block_before->next = new_block; 10c63c: 89 57 08 mov %edx,0x8(%edi) next->prev = new_block; 10c63f: 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; 10c642: ff 41 38 incl 0x38(%ecx) 10c645: eb b4 jmp 10c5fb <_Heap_Block_split+0x97> 001145d0 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 1145d0: 55 push %ebp 1145d1: 89 e5 mov %esp,%ebp 1145d3: 56 push %esi 1145d4: 53 push %ebx 1145d5: 8b 4d 08 mov 0x8(%ebp),%ecx 1145d8: 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; 1145db: 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; 1145de: 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; 1145e1: 3b 41 18 cmp 0x18(%ecx),%eax 1145e4: 73 3a jae 114620 <_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 ) { 1145e6: 39 d0 cmp %edx,%eax 1145e8: 74 0e je 1145f8 <_Heap_Extend+0x28> 1145ea: b8 02 00 00 00 mov $0x2,%eax _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 1145ef: 8d 65 f8 lea -0x8(%ebp),%esp 1145f2: 5b pop %ebx 1145f3: 5e pop %esi 1145f4: c9 leave 1145f5: c3 ret 1145f6: 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; 1145f8: 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; 1145fb: 89 41 1c mov %eax,0x1c(%ecx) extend_size = new_heap_area_end 1145fe: 29 d8 sub %ebx,%eax 114600: 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); 114603: 89 f0 mov %esi,%eax 114605: 31 d2 xor %edx,%edx 114607: f7 71 10 divl 0x10(%ecx) 11460a: 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; 11460c: 8b 45 14 mov 0x14(%ebp),%eax 11460f: 89 30 mov %esi,(%eax) if( extend_size >= heap->min_block_size ) { 114611: 39 71 14 cmp %esi,0x14(%ecx) 114614: 76 1a jbe 114630 <_Heap_Extend+0x60> 114616: 31 c0 xor %eax,%eax <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 114618: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 11461b: 5b pop %ebx <== NOT EXECUTED 11461c: 5e pop %esi <== NOT EXECUTED 11461d: c9 leave <== NOT EXECUTED 11461e: c3 ret <== NOT EXECUTED 11461f: 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 ) { 114620: 39 d0 cmp %edx,%eax 114622: 73 c2 jae 1145e6 <_Heap_Extend+0x16> 114624: b8 01 00 00 00 mov $0x1,%eax _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 114629: 8d 65 f8 lea -0x8(%ebp),%esp 11462c: 5b pop %ebx 11462d: 5e pop %esi 11462e: c9 leave 11462f: c3 ret RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 114630: 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; 114633: 8b 43 04 mov 0x4(%ebx),%eax 114636: 83 e0 01 and $0x1,%eax 114639: 09 f0 or %esi,%eax 11463b: 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 = 11463e: 8b 41 20 mov 0x20(%ecx),%eax 114641: 29 d0 sub %edx,%eax 114643: 83 c8 01 or $0x1,%eax 114646: 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; 114649: 89 51 24 mov %edx,0x24(%ecx) /* Statistics */ stats->size += extend_size; 11464c: 01 71 2c add %esi,0x2c(%ecx) ++stats->used_blocks; 11464f: ff 41 40 incl 0x40(%ecx) --stats->frees; /* Do not count subsequent call as actual free() */ 114652: ff 49 50 decl 0x50(%ecx) _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 114655: 83 ec 08 sub $0x8,%esp 114658: 83 c3 08 add $0x8,%ebx 11465b: 53 push %ebx 11465c: 51 push %ecx 11465d: e8 b2 ad ff ff call 10f414 <_Heap_Free> 114662: 31 c0 xor %eax,%eax 114664: 83 c4 10 add $0x10,%esp } return HEAP_EXTEND_SUCCESSFUL; } 114667: 8d 65 f8 lea -0x8(%ebp),%esp 11466a: 5b pop %ebx 11466b: 5e pop %esi 11466c: c9 leave 11466d: c3 ret 00110e84 <_Heap_Free>: #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 110e84: 55 push %ebp 110e85: 89 e5 mov %esp,%ebp 110e87: 57 push %edi 110e88: 56 push %esi 110e89: 53 push %ebx 110e8a: 83 ec 18 sub $0x18,%esp 110e8d: 8b 5d 08 mov 0x8(%ebp),%ebx 110e90: 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 ) 110e93: 8d 48 f8 lea -0x8(%eax),%ecx 110e96: 31 d2 xor %edx,%edx 110e98: f7 73 10 divl 0x10(%ebx) 110e9b: 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; 110e9d: 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 110ea0: 39 c1 cmp %eax,%ecx 110ea2: 72 07 jb 110eab <_Heap_Free+0x27> && (uintptr_t) block <= (uintptr_t) heap->last_block; 110ea4: 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 110ea7: 39 f1 cmp %esi,%ecx 110ea9: 76 0d jbe 110eb8 <_Heap_Free+0x34> /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 110eab: 31 c0 xor %eax,%eax } 110ead: 83 c4 18 add $0x18,%esp 110eb0: 5b pop %ebx 110eb1: 5e pop %esi 110eb2: 5f pop %edi 110eb3: c9 leave 110eb4: c3 ret 110eb5: 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; 110eb8: 8b 51 04 mov 0x4(%ecx),%edx 110ebb: 89 55 f0 mov %edx,-0x10(%ebp) 110ebe: 83 e2 fe and $0xfffffffe,%edx 110ec1: 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); 110ec4: 01 ca add %ecx,%edx 110ec6: 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 110ec9: 39 d0 cmp %edx,%eax 110ecb: 77 de ja 110eab <_Heap_Free+0x27> 110ecd: 39 d6 cmp %edx,%esi 110ecf: 72 da jb 110eab <_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; 110ed1: 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 ) ) { 110ed4: f7 c7 01 00 00 00 test $0x1,%edi 110eda: 74 cf je 110eab <_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; 110edc: 83 e7 fe and $0xfffffffe,%edi 110edf: 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 110ee2: 39 d6 cmp %edx,%esi 110ee4: 0f 84 e2 00 00 00 je 110fcc <_Heap_Free+0x148> #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) 110eea: 8b 55 dc mov -0x24(%ebp),%edx 110eed: 8b 7d e8 mov -0x18(%ebp),%edi 110ef0: 8b 7c 3a 04 mov 0x4(%edx,%edi,1),%edi 110ef4: 89 7d e0 mov %edi,-0x20(%ebp) 110ef7: 8a 55 e0 mov -0x20(%ebp),%dl 110efa: 83 e2 01 and $0x1,%edx 110efd: 88 55 e7 mov %dl,-0x19(%ebp) 110f00: 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 ) ) { 110f04: f6 45 f0 01 testb $0x1,-0x10(%ebp) 110f08: 75 46 jne 110f50 <_Heap_Free+0xcc> uintptr_t const prev_size = block->prev_size; 110f0a: 8b 39 mov (%ecx),%edi 110f0c: 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); 110f0f: 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 110f11: 39 c8 cmp %ecx,%eax 110f13: 77 96 ja 110eab <_Heap_Free+0x27> 110f15: 39 ce cmp %ecx,%esi 110f17: 72 92 jb 110eab <_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) ) { 110f19: f6 41 04 01 testb $0x1,0x4(%ecx) 110f1d: 74 8c je 110eab <_Heap_Free+0x27> _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 110f1f: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 110f23: 0f 84 af 00 00 00 je 110fd8 <_Heap_Free+0x154> uintptr_t const size = block_size + prev_size + next_block_size; 110f29: 8b 45 ec mov -0x14(%ebp),%eax 110f2c: 03 45 e8 add -0x18(%ebp),%eax 110f2f: 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; 110f31: 8b 55 dc mov -0x24(%ebp),%edx 110f34: 8b 72 08 mov 0x8(%edx),%esi Heap_Block *prev = block->prev; 110f37: 8b 52 0c mov 0xc(%edx),%edx prev->next = next; 110f3a: 89 72 08 mov %esi,0x8(%edx) next->prev = prev; 110f3d: 89 56 0c mov %edx,0xc(%esi) _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; 110f40: ff 4b 38 decl 0x38(%ebx) prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 110f43: 89 c2 mov %eax,%edx 110f45: 83 ca 01 or $0x1,%edx 110f48: 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; 110f4b: 89 04 01 mov %eax,(%ecx,%eax,1) 110f4e: eb 2c jmp 110f7c <_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 */ 110f50: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 110f54: 74 3e je 110f94 <_Heap_Free+0x110> uintptr_t const size = block_size + next_block_size; 110f56: 8b 7d e8 mov -0x18(%ebp),%edi 110f59: 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; 110f5c: 8b 75 dc mov -0x24(%ebp),%esi 110f5f: 8b 46 08 mov 0x8(%esi),%eax Heap_Block *prev = old_block->prev; 110f62: 8b 56 0c mov 0xc(%esi),%edx new_block->next = next; 110f65: 89 41 08 mov %eax,0x8(%ecx) new_block->prev = prev; 110f68: 89 51 0c mov %edx,0xc(%ecx) next->prev = new_block; 110f6b: 89 48 0c mov %ecx,0xc(%eax) prev->next = new_block; 110f6e: 89 4a 08 mov %ecx,0x8(%edx) _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 110f71: 89 f8 mov %edi,%eax 110f73: 83 c8 01 or $0x1,%eax 110f76: 89 41 04 mov %eax,0x4(%ecx) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; 110f79: 89 3c 39 mov %edi,(%ecx,%edi,1) stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 110f7c: ff 4b 40 decl 0x40(%ebx) ++stats->frees; 110f7f: ff 43 50 incl 0x50(%ebx) stats->free_size += block_size; 110f82: 8b 55 ec mov -0x14(%ebp),%edx 110f85: 01 53 30 add %edx,0x30(%ebx) 110f88: b0 01 mov $0x1,%al return( true ); } 110f8a: 83 c4 18 add $0x18,%esp 110f8d: 5b pop %ebx 110f8e: 5e pop %esi 110f8f: 5f pop %edi 110f90: c9 leave 110f91: c3 ret 110f92: 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; 110f94: 8b 43 08 mov 0x8(%ebx),%eax new_block->next = next; 110f97: 89 41 08 mov %eax,0x8(%ecx) new_block->prev = block_before; 110f9a: 89 59 0c mov %ebx,0xc(%ecx) block_before->next = new_block; 110f9d: 89 4b 08 mov %ecx,0x8(%ebx) next->prev = new_block; 110fa0: 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; 110fa3: 8b 45 ec mov -0x14(%ebp),%eax 110fa6: 83 c8 01 or $0x1,%eax 110fa9: 89 41 04 mov %eax,0x4(%ecx) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 110fac: 8b 7d dc mov -0x24(%ebp),%edi 110faf: 83 67 04 fe andl $0xfffffffe,0x4(%edi) next_block->prev_size = block_size; 110fb3: 8b 45 ec mov -0x14(%ebp),%eax 110fb6: 89 07 mov %eax,(%edi) /* Statistics */ ++stats->free_blocks; 110fb8: 8b 43 38 mov 0x38(%ebx),%eax 110fbb: 40 inc %eax 110fbc: 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; 110fbf: 3b 43 3c cmp 0x3c(%ebx),%eax 110fc2: 76 b8 jbe 110f7c <_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; 110fc4: 89 43 3c mov %eax,0x3c(%ebx) 110fc7: eb b3 jmp 110f7c <_Heap_Free+0xf8> 110fc9: 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 110fcc: c6 45 e7 00 movb $0x0,-0x19(%ebp) 110fd0: e9 2f ff ff ff jmp 110f04 <_Heap_Free+0x80> 110fd5: 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; 110fd8: 8b 45 ec mov -0x14(%ebp),%eax 110fdb: 03 45 f0 add -0x10(%ebp),%eax prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 110fde: 89 c6 mov %eax,%esi 110fe0: 83 ce 01 or $0x1,%esi 110fe3: 89 71 04 mov %esi,0x4(%ecx) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 110fe6: 8b 55 dc mov -0x24(%ebp),%edx 110fe9: 83 62 04 fe andl $0xfffffffe,0x4(%edx) next_block->prev_size = size; 110fed: 89 02 mov %eax,(%edx) 110fef: eb 8b jmp 110f7c <_Heap_Free+0xf8> 0013dec8 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 13dec8: 55 push %ebp 13dec9: 89 e5 mov %esp,%ebp 13decb: 57 push %edi 13decc: 56 push %esi 13decd: 53 push %ebx 13dece: 83 ec 04 sub $0x4,%esp 13ded1: 8b 45 08 mov 0x8(%ebp),%eax 13ded4: 8b 75 0c mov 0xc(%ebp),%esi Heap_Block *the_block = the_heap->first_block; 13ded7: 8b 58 20 mov 0x20(%eax),%ebx Heap_Block *const end = the_heap->last_block; 13deda: 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; 13dedd: c7 06 00 00 00 00 movl $0x0,(%esi) the_info->Free.total = 0; 13dee3: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) the_info->Free.largest = 0; 13deea: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi) the_info->Used.number = 0; 13def1: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) the_info->Used.total = 0; 13def8: c7 46 14 00 00 00 00 movl $0x0,0x14(%esi) the_info->Used.largest = 0; 13deff: c7 46 10 00 00 00 00 movl $0x0,0x10(%esi) while ( the_block != end ) { 13df06: 39 fb cmp %edi,%ebx 13df08: 74 45 je 13df4f <_Heap_Get_information+0x87> 13df0a: 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; 13df0d: 8d 46 0c lea 0xc(%esi),%eax 13df10: 89 45 f0 mov %eax,-0x10(%ebp) 13df13: eb 16 jmp 13df2b <_Heap_Get_information+0x63> 13df15: 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) ) 13df18: 89 f0 mov %esi,%eax info = &the_info->Used; else info = &the_info->Free; info->number++; 13df1a: ff 00 incl (%eax) info->total += the_size; 13df1c: 01 50 08 add %edx,0x8(%eax) if ( info->largest < the_size ) 13df1f: 39 50 04 cmp %edx,0x4(%eax) 13df22: 73 03 jae 13df27 <_Heap_Get_information+0x5f> info->largest = the_size; 13df24: 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 ) { 13df27: 39 df cmp %ebx,%edi 13df29: 74 15 je 13df40 <_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; 13df2b: 89 ca mov %ecx,%edx 13df2d: 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); 13df30: 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; 13df32: 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) ) 13df35: f6 c1 01 test $0x1,%cl 13df38: 74 de je 13df18 <_Heap_Get_information+0x50> 13df3a: 8b 45 f0 mov -0x10(%ebp),%eax 13df3d: eb db jmp 13df1a <_Heap_Get_information+0x52> 13df3f: 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 ) { 13df40: 8b 46 14 mov 0x14(%esi),%eax 13df43: 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; 13df46: 89 46 14 mov %eax,0x14(%esi) } 13df49: 58 pop %eax 13df4a: 5b pop %ebx 13df4b: 5e pop %esi 13df4c: 5f pop %edi 13df4d: c9 leave 13df4e: 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 ) { 13df4f: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED 13df54: eb f0 jmp 13df46 <_Heap_Get_information+0x7e> <== NOT EXECUTED 0010c414 <_Heap_Initialize>: Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { 10c414: 55 push %ebp 10c415: 89 e5 mov %esp,%ebp 10c417: 57 push %edi 10c418: 56 push %esi 10c419: 53 push %ebx 10c41a: 83 ec 10 sub $0x10,%esp 10c41d: 8b 5d 08 mov 0x8(%ebp),%ebx 10c420: 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 ) { 10c423: 85 c9 test %ecx,%ecx 10c425: 0f 85 f5 00 00 00 jne 10c520 <_Heap_Initialize+0x10c> 10c42b: b1 04 mov $0x4,%cl 10c42d: 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; 10c434: 8b 75 0c mov 0xc(%ebp),%esi 10c437: 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; 10c43a: 89 f0 mov %esi,%eax 10c43c: 31 d2 xor %edx,%edx 10c43e: f7 f1 div %ecx if ( remainder != 0 ) { 10c440: 85 d2 test %edx,%edx 10c442: 74 05 je 10c449 <_Heap_Initialize+0x35> return value - remainder + alignment; 10c444: 8d 34 31 lea (%ecx,%esi,1),%esi 10c447: 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 ( 10c449: 8b 55 0c mov 0xc(%ebp),%edx 10c44c: 03 55 10 add 0x10(%ebp),%edx 10c44f: 89 55 ec mov %edx,-0x14(%ebp) 10c452: 0f 82 d9 00 00 00 jb 10c531 <_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); 10c458: 8d 7e f8 lea -0x8(%esi),%edi 10c45b: 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 ( 10c45e: 39 75 10 cmp %esi,0x10(%ebp) 10c461: 0f 86 ca 00 00 00 jbe 10c531 <_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; 10c467: 8b 45 10 mov 0x10(%ebp),%eax 10c46a: 29 f0 sub %esi,%eax 10c46c: 89 c6 mov %eax,%esi RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 10c46e: 31 d2 xor %edx,%edx 10c470: f7 f1 div %ecx 10c472: 29 d6 sub %edx,%esi 10c474: 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 ( 10c477: 39 75 f0 cmp %esi,-0x10(%ebp) 10c47a: 0f 87 b1 00 00 00 ja 10c531 <_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; 10c480: 89 f0 mov %esi,%eax 10c482: 83 e8 08 sub $0x8,%eax return 0; } /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; 10c485: 89 0f mov %ecx,(%edi) first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; 10c487: 89 f2 mov %esi,%edx 10c489: 83 ca 01 or $0x1,%edx 10c48c: 89 57 04 mov %edx,0x4(%edi) first_block->next = _Heap_Free_list_tail( heap ); 10c48f: 89 5f 08 mov %ebx,0x8(%edi) first_block->prev = _Heap_Free_list_head( heap ); 10c492: 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); 10c495: 01 fe add %edi,%esi 10c497: 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; 10c49a: 8b 55 e4 mov -0x1c(%ebp),%edx 10c49d: 89 16 mov %edx,(%esi) last_block->size_and_flag = first_block_begin - (uintptr_t) last_block; 10c49f: 89 fa mov %edi,%edx 10c4a1: 29 f2 sub %esi,%edx 10c4a3: 89 56 04 mov %edx,0x4(%esi) /* Heap control */ heap->page_size = page_size; 10c4a6: 89 4b 10 mov %ecx,0x10(%ebx) heap->min_block_size = min_block_size; 10c4a9: 8b 75 f0 mov -0x10(%ebp),%esi 10c4ac: 89 73 14 mov %esi,0x14(%ebx) heap->area_begin = heap_area_begin; 10c4af: 8b 55 0c mov 0xc(%ebp),%edx 10c4b2: 89 53 18 mov %edx,0x18(%ebx) heap->area_end = heap_area_end; 10c4b5: 8b 75 ec mov -0x14(%ebp),%esi 10c4b8: 89 73 1c mov %esi,0x1c(%ebx) heap->first_block = first_block; 10c4bb: 89 7b 20 mov %edi,0x20(%ebx) heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; 10c4be: 89 7b 08 mov %edi,0x8(%ebx) _Heap_Free_list_tail( heap )->prev = first_block; 10c4c1: 89 7b 0c mov %edi,0xc(%ebx) /* Statistics */ stats->size = first_block_size; 10c4c4: 8b 55 e4 mov -0x1c(%ebp),%edx 10c4c7: 89 53 2c mov %edx,0x2c(%ebx) stats->free_size = first_block_size; 10c4ca: 89 53 30 mov %edx,0x30(%ebx) stats->min_free_size = first_block_size; 10c4cd: 89 53 34 mov %edx,0x34(%ebx) stats->free_blocks = 1; 10c4d0: c7 43 38 01 00 00 00 movl $0x1,0x38(%ebx) stats->max_free_blocks = 1; 10c4d7: c7 43 3c 01 00 00 00 movl $0x1,0x3c(%ebx) stats->used_blocks = 0; 10c4de: c7 43 40 00 00 00 00 movl $0x0,0x40(%ebx) stats->max_search = 0; 10c4e5: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) stats->allocs = 0; 10c4ec: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) stats->searches = 0; 10c4f3: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) stats->frees = 0; 10c4fa: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) stats->resizes = 0; 10c501: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) stats->instance = instance++; 10c508: 8b 15 40 73 12 00 mov 0x127340,%edx 10c50e: 89 53 28 mov %edx,0x28(%ebx) 10c511: 42 inc %edx 10c512: 89 15 40 73 12 00 mov %edx,0x127340 _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; } 10c518: 83 c4 10 add $0x10,%esp 10c51b: 5b pop %ebx 10c51c: 5e pop %esi 10c51d: 5f pop %edi 10c51e: c9 leave 10c51f: c3 ret uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { 10c520: 89 c8 mov %ecx,%eax 10c522: 83 e0 03 and $0x3,%eax 10c525: 74 05 je 10c52c <_Heap_Initialize+0x118> return value - remainder + alignment; 10c527: 83 c1 04 add $0x4,%ecx 10c52a: 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 ) { 10c52c: 83 f9 03 cmp $0x3,%ecx 10c52f: 77 0b ja 10c53c <_Heap_Initialize+0x128> ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; 10c531: 31 c0 xor %eax,%eax } 10c533: 83 c4 10 add $0x10,%esp 10c536: 5b pop %ebx 10c537: 5e pop %esi 10c538: 5f pop %edi 10c539: c9 leave 10c53a: c3 ret 10c53b: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 10c53c: b8 10 00 00 00 mov $0x10,%eax 10c541: 31 d2 xor %edx,%edx 10c543: f7 f1 div %ecx if ( remainder != 0 ) { 10c545: 85 d2 test %edx,%edx 10c547: 74 0d je 10c556 <_Heap_Initialize+0x142> return value - remainder + alignment; 10c549: 8d 41 10 lea 0x10(%ecx),%eax 10c54c: 29 d0 sub %edx,%eax 10c54e: 89 45 f0 mov %eax,-0x10(%ebp) 10c551: e9 de fe ff ff jmp 10c434 <_Heap_Initialize+0x20> uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { 10c556: c7 45 f0 10 00 00 00 movl $0x10,-0x10(%ebp) 10c55d: e9 d2 fe ff ff jmp 10c434 <_Heap_Initialize+0x20> 0011f090 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { 11f090: 55 push %ebp 11f091: 89 e5 mov %esp,%ebp 11f093: 57 push %edi 11f094: 56 push %esi 11f095: 53 push %ebx 11f096: 83 ec 2c sub $0x2c,%esp 11f099: 8b 5d 08 mov 0x8(%ebp),%ebx 11f09c: 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 ) 11f09f: 8d 4e f8 lea -0x8(%esi),%ecx 11f0a2: 89 f0 mov %esi,%eax 11f0a4: 31 d2 xor %edx,%edx 11f0a6: f7 73 10 divl 0x10(%ebx) 11f0a9: 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; 11f0ab: 8b 45 14 mov 0x14(%ebp),%eax 11f0ae: c7 00 00 00 00 00 movl $0x0,(%eax) *new_size = 0; 11f0b4: 8b 55 18 mov 0x18(%ebp),%edx 11f0b7: 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 11f0bd: 39 4b 20 cmp %ecx,0x20(%ebx) 11f0c0: 76 0e jbe 11f0d0 <_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; 11f0c2: b8 02 00 00 00 mov $0x2,%eax new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11f0c7: 8d 65 f4 lea -0xc(%ebp),%esp 11f0ca: 5b pop %ebx 11f0cb: 5e pop %esi 11f0cc: 5f pop %edi 11f0cd: c9 leave 11f0ce: c3 ret 11f0cf: 90 nop <== NOT EXECUTED 11f0d0: 39 4b 24 cmp %ecx,0x24(%ebx) 11f0d3: 72 ed jb 11f0c2 <_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; 11f0d5: 8b 41 04 mov 0x4(%ecx),%eax 11f0d8: 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; 11f0db: 8d 3c 01 lea (%ecx,%eax,1),%edi 11f0de: 89 7d d4 mov %edi,-0x2c(%ebp) uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; 11f0e1: 89 fa mov %edi,%edx 11f0e3: 29 f2 sub %esi,%edx 11f0e5: 83 c2 04 add $0x4,%edx 11f0e8: 89 55 dc mov %edx,-0x24(%ebp) 11f0eb: 8b 57 04 mov 0x4(%edi),%edx 11f0ee: 83 e2 fe and $0xfffffffe,%edx 11f0f1: 89 55 d0 mov %edx,-0x30(%ebp) RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); 11f0f4: 8b 54 17 04 mov 0x4(%edi,%edx,1),%edx 11f0f8: 83 e2 01 and $0x1,%edx 11f0fb: 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; 11f0fe: 8b 55 dc mov -0x24(%ebp),%edx 11f101: 8b 7d 14 mov 0x14(%ebp),%edi 11f104: 89 17 mov %edx,(%edi) if ( next_block_is_free ) { 11f106: 8a 55 e0 mov -0x20(%ebp),%dl 11f109: 80 f2 01 xor $0x1,%dl 11f10c: 88 55 e0 mov %dl,-0x20(%ebp) 11f10f: 75 17 jne 11f128 <_Heap_Resize_block+0x98> block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { 11f111: 8b 55 dc mov -0x24(%ebp),%edx 11f114: 39 55 10 cmp %edx,0x10(%ebp) 11f117: 76 20 jbe 11f139 <_Heap_Resize_block+0xa9> 11f119: b8 01 00 00 00 mov $0x1,%eax new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11f11e: 8d 65 f4 lea -0xc(%ebp),%esp 11f121: 5b pop %ebx 11f122: 5e pop %esi 11f123: 5f pop %edi 11f124: c9 leave 11f125: c3 ret 11f126: 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; 11f128: 03 45 d0 add -0x30(%ebp),%eax alloc_size += next_block_size; 11f12b: 8b 7d d0 mov -0x30(%ebp),%edi 11f12e: 01 7d dc add %edi,-0x24(%ebp) } if ( new_alloc_size > alloc_size ) { 11f131: 8b 55 dc mov -0x24(%ebp),%edx 11f134: 39 55 10 cmp %edx,0x10(%ebp) 11f137: 77 e0 ja 11f119 <_Heap_Resize_block+0x89> return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { 11f139: 80 7d e0 00 cmpb $0x0,-0x20(%ebp) 11f13d: 74 31 je 11f170 <_Heap_Resize_block+0xe0> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 11f13f: 8b 79 04 mov 0x4(%ecx),%edi 11f142: 83 e7 01 and $0x1,%edi 11f145: 09 c7 or %eax,%edi 11f147: 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; 11f14a: 8b 7d d4 mov -0x2c(%ebp),%edi 11f14d: 8b 7f 08 mov 0x8(%edi),%edi 11f150: 89 7d e4 mov %edi,-0x1c(%ebp) Heap_Block *prev = block->prev; 11f153: 8b 55 d4 mov -0x2c(%ebp),%edx 11f156: 8b 7a 0c mov 0xc(%edx),%edi prev->next = next; 11f159: 8b 55 e4 mov -0x1c(%ebp),%edx 11f15c: 89 57 08 mov %edx,0x8(%edi) next->prev = prev; 11f15f: 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; 11f162: 83 4c 08 04 01 orl $0x1,0x4(%eax,%ecx,1) /* Statistics */ --stats->free_blocks; 11f167: ff 4b 38 decl 0x38(%ebx) stats->free_size -= next_block_size; 11f16a: 8b 7d d0 mov -0x30(%ebp),%edi 11f16d: 29 7b 30 sub %edi,0x30(%ebx) } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); 11f170: ff 75 10 pushl 0x10(%ebp) 11f173: 56 push %esi 11f174: 51 push %ecx 11f175: 53 push %ebx 11f176: e8 cd d4 fe ff call 10c648 <_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; 11f17b: 8b 50 04 mov 0x4(%eax),%edx 11f17e: 83 e2 fe and $0xfffffffe,%edx 11f181: 29 f0 sub %esi,%eax 11f183: 8d 44 10 04 lea 0x4(%eax,%edx,1),%eax 11f187: 8b 55 18 mov 0x18(%ebp),%edx 11f18a: 89 02 mov %eax,(%edx) /* Statistics */ ++stats->resizes; 11f18c: ff 43 54 incl 0x54(%ebx) 11f18f: 31 c0 xor %eax,%eax 11f191: 83 c4 10 add $0x10,%esp new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11f194: 8d 65 f4 lea -0xc(%ebp),%esp 11f197: 5b pop %ebx 11f198: 5e pop %esi 11f199: 5f pop %edi 11f19a: c9 leave 11f19b: c3 ret 0011f19c <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 11f19c: 55 push %ebp 11f19d: 89 e5 mov %esp,%ebp 11f19f: 56 push %esi 11f1a0: 53 push %ebx 11f1a1: 8b 5d 08 mov 0x8(%ebp),%ebx 11f1a4: 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 ) 11f1a7: 8d 4e f8 lea -0x8(%esi),%ecx 11f1aa: 89 f0 mov %esi,%eax 11f1ac: 31 d2 xor %edx,%edx 11f1ae: f7 73 10 divl 0x10(%ebx) 11f1b1: 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; 11f1b3: 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 11f1b6: 39 c1 cmp %eax,%ecx 11f1b8: 72 07 jb 11f1c1 <_Heap_Size_of_alloc_area+0x25> && (uintptr_t) block <= (uintptr_t) heap->last_block; 11f1ba: 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 11f1bd: 39 d1 cmp %edx,%ecx 11f1bf: 76 07 jbe 11f1c8 <_Heap_Size_of_alloc_area+0x2c> return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; return true; 11f1c1: 31 c0 xor %eax,%eax } 11f1c3: 5b pop %ebx 11f1c4: 5e pop %esi 11f1c5: c9 leave 11f1c6: c3 ret 11f1c7: 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); 11f1c8: 8b 59 04 mov 0x4(%ecx),%ebx 11f1cb: 83 e3 fe and $0xfffffffe,%ebx 11f1ce: 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 11f1d0: 39 c8 cmp %ecx,%eax 11f1d2: 77 ed ja 11f1c1 <_Heap_Size_of_alloc_area+0x25> 11f1d4: 39 ca cmp %ecx,%edx 11f1d6: 72 e9 jb 11f1c1 <_Heap_Size_of_alloc_area+0x25> } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( 11f1d8: f6 41 04 01 testb $0x1,0x4(%ecx) 11f1dc: 74 e3 je 11f1c1 <_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; 11f1de: 29 f1 sub %esi,%ecx 11f1e0: 8d 51 04 lea 0x4(%ecx),%edx 11f1e3: 8b 45 10 mov 0x10(%ebp),%eax 11f1e6: 89 10 mov %edx,(%eax) 11f1e8: b0 01 mov $0x1,%al return true; } 11f1ea: 5b pop %ebx 11f1eb: 5e pop %esi 11f1ec: c9 leave 11f1ed: c3 ret 0010d1b0 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 10d1b0: 55 push %ebp 10d1b1: 89 e5 mov %esp,%ebp 10d1b3: 57 push %edi 10d1b4: 56 push %esi 10d1b5: 53 push %ebx 10d1b6: 83 ec 3c sub $0x3c,%esp 10d1b9: 8b 5d 08 mov 0x8(%ebp),%ebx uintptr_t const page_size = heap->page_size; 10d1bc: 8b 43 10 mov 0x10(%ebx),%eax 10d1bf: 89 45 e0 mov %eax,-0x20(%ebp) uintptr_t const min_block_size = heap->min_block_size; 10d1c2: 8b 53 14 mov 0x14(%ebx),%edx 10d1c5: 89 55 dc mov %edx,-0x24(%ebp) Heap_Block *const last_block = heap->last_block; 10d1c8: 8b 43 24 mov 0x24(%ebx),%eax 10d1cb: 89 45 d8 mov %eax,-0x28(%ebp) Heap_Block *block = heap->first_block; 10d1ce: 8b 73 20 mov 0x20(%ebx),%esi Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 10d1d1: 80 7d 10 00 cmpb $0x0,0x10(%ebp) 10d1d5: 75 1d jne 10d1f4 <_Heap_Walk+0x44> 10d1d7: c7 45 e4 a8 d1 10 00 movl $0x10d1a8,-0x1c(%ebp) if ( !_System_state_Is_up( _System_state_Get() ) ) { 10d1de: 83 3d 40 9e 12 00 03 cmpl $0x3,0x129e40 10d1e5: 74 1d je 10d204 <_Heap_Walk+0x54> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d1e7: b0 01 mov $0x1,%al 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 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; 10d1f4: c7 45 e4 78 d5 10 00 movl $0x10d578,-0x1c(%ebp) if ( !_System_state_Is_up( _System_state_Get() ) ) { 10d1fb: 83 3d 40 9e 12 00 03 cmpl $0x3,0x129e40 10d202: 75 e3 jne 10d1e7 <_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)( 10d204: 52 push %edx 10d205: ff 73 0c pushl 0xc(%ebx) 10d208: ff 73 08 pushl 0x8(%ebx) 10d20b: ff 75 d8 pushl -0x28(%ebp) 10d20e: 56 push %esi 10d20f: ff 73 1c pushl 0x1c(%ebx) 10d212: ff 73 18 pushl 0x18(%ebx) 10d215: ff 75 dc pushl -0x24(%ebp) 10d218: ff 75 e0 pushl -0x20(%ebp) 10d21b: 68 50 1f 12 00 push $0x121f50 10d220: 6a 00 push $0x0 10d222: ff 75 0c pushl 0xc(%ebp) 10d225: 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 ) { 10d228: 83 c4 30 add $0x30,%esp 10d22b: 8b 45 e0 mov -0x20(%ebp),%eax 10d22e: 85 c0 test %eax,%eax 10d230: 0f 84 b2 00 00 00 je 10d2e8 <_Heap_Walk+0x138> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 10d236: f6 45 e0 03 testb $0x3,-0x20(%ebp) 10d23a: 0f 85 b0 00 00 00 jne 10d2f0 <_Heap_Walk+0x140> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 10d240: 8b 45 dc mov -0x24(%ebp),%eax 10d243: 31 d2 xor %edx,%edx 10d245: f7 75 e0 divl -0x20(%ebp) 10d248: 85 d2 test %edx,%edx 10d24a: 0f 85 ac 00 00 00 jne 10d2fc <_Heap_Walk+0x14c> ); return false; } if ( 10d250: 8d 46 08 lea 0x8(%esi),%eax 10d253: 31 d2 xor %edx,%edx 10d255: f7 75 e0 divl -0x20(%ebp) 10d258: 85 d2 test %edx,%edx 10d25a: 0f 85 a8 00 00 00 jne 10d308 <_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; 10d260: 8b 56 04 mov 0x4(%esi),%edx 10d263: 89 55 cc mov %edx,-0x34(%ebp) ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 10d266: 83 e2 01 and $0x1,%edx 10d269: 0f 84 a1 00 00 00 je 10d310 <_Heap_Walk+0x160> ); return false; } if ( first_block->prev_size != page_size ) { 10d26f: 8b 06 mov (%esi),%eax 10d271: 39 45 e0 cmp %eax,-0x20(%ebp) 10d274: 75 4e jne 10d2c4 <_Heap_Walk+0x114> ); return false; } if ( _Heap_Is_free( last_block ) ) { 10d276: 8b 55 d8 mov -0x28(%ebp),%edx 10d279: 8b 42 04 mov 0x4(%edx),%eax 10d27c: 83 e0 fe and $0xfffffffe,%eax 10d27f: f6 44 02 04 01 testb $0x1,0x4(%edx,%eax,1) 10d284: 0f 84 bd 02 00 00 je 10d547 <_Heap_Walk+0x397> int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 10d28a: 8b 43 10 mov 0x10(%ebx),%eax 10d28d: 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; 10d290: 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 ) { 10d293: 39 cb cmp %ecx,%ebx 10d295: 0f 84 08 01 00 00 je 10d3a3 <_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; 10d29b: 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 10d29e: 39 cf cmp %ecx,%edi 10d2a0: 76 76 jbe 10d318 <_Heap_Walk+0x168> 10d2a2: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 10d2a4: 51 push %ecx 10d2a5: 68 98 20 12 00 push $0x122098 10d2aa: 66 90 xchg %ax,%ax return false; } if ( !prev_used ) { (*printer)( 10d2ac: 6a 01 push $0x1 10d2ae: ff 75 0c pushl 0xc(%ebp) 10d2b1: ff 55 e4 call *-0x1c(%ebp) 10d2b4: 31 c0 xor %eax,%eax 10d2b6: 83 c4 10 add $0x10,%esp block = next_block; } return true; } 10d2b9: 8d 65 f4 lea -0xc(%ebp),%esp 10d2bc: 5b pop %ebx 10d2bd: 5e pop %esi 10d2be: 5f pop %edi 10d2bf: c9 leave 10d2c0: c3 ret 10d2c1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return false; } if ( first_block->prev_size != page_size ) { (*printer)( 10d2c4: 83 ec 0c sub $0xc,%esp 10d2c7: ff 75 e0 pushl -0x20(%ebp) 10d2ca: 50 push %eax 10d2cb: 68 6c 20 12 00 push $0x12206c return false; } if ( free_block->prev != prev_block ) { (*printer)( 10d2d0: 6a 01 push $0x1 10d2d2: ff 75 0c pushl 0xc(%ebp) 10d2d5: ff 55 e4 call *-0x1c(%ebp) 10d2d8: 31 c0 xor %eax,%eax 10d2da: 83 c4 20 add $0x20,%esp block = next_block; } return true; } 10d2dd: 8d 65 f4 lea -0xc(%ebp),%esp 10d2e0: 5b pop %ebx 10d2e1: 5e pop %esi 10d2e2: 5f pop %edi 10d2e3: c9 leave 10d2e4: c3 ret 10d2e5: 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" ); 10d2e8: 57 push %edi 10d2e9: 68 c7 22 12 00 push $0x1222c7 10d2ee: eb bc jmp 10d2ac <_Heap_Walk+0xfc> return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 10d2f0: ff 75 e0 pushl -0x20(%ebp) 10d2f3: 68 da 22 12 00 push $0x1222da 10d2f8: eb b2 jmp 10d2ac <_Heap_Walk+0xfc> 10d2fa: 66 90 xchg %ax,%ax <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 10d2fc: ff 75 dc pushl -0x24(%ebp) 10d2ff: 68 e4 1f 12 00 push $0x121fe4 10d304: eb a6 jmp 10d2ac <_Heap_Walk+0xfc> 10d306: 66 90 xchg %ax,%ax <== NOT EXECUTED } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 10d308: 56 push %esi 10d309: 68 08 20 12 00 push $0x122008 10d30e: eb 9c jmp 10d2ac <_Heap_Walk+0xfc> return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 10d310: 56 push %esi 10d311: 68 3c 20 12 00 push $0x12203c 10d316: eb 94 jmp 10d2ac <_Heap_Walk+0xfc> && (uintptr_t) block <= (uintptr_t) heap->last_block; 10d318: 8b 53 24 mov 0x24(%ebx),%edx 10d31b: 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 10d31e: 39 ca cmp %ecx,%edx 10d320: 72 82 jb 10d2a4 <_Heap_Walk+0xf4> ); return false; } if ( 10d322: 8d 41 08 lea 0x8(%ecx),%eax 10d325: 31 d2 xor %edx,%edx 10d327: f7 75 d4 divl -0x2c(%ebp) 10d32a: 85 d2 test %edx,%edx 10d32c: 0f 85 20 02 00 00 jne 10d552 <_Heap_Walk+0x3a2> ); return false; } if ( _Heap_Is_used( free_block ) ) { 10d332: 8b 41 04 mov 0x4(%ecx),%eax 10d335: 83 e0 fe and $0xfffffffe,%eax 10d338: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1) 10d33d: 0f 85 29 02 00 00 jne 10d56c <_Heap_Walk+0x3bc> ); return false; } if ( free_block->prev != prev_block ) { 10d343: 8b 41 0c mov 0xc(%ecx),%eax 10d346: 39 c3 cmp %eax,%ebx 10d348: 0f 85 0f 02 00 00 jne 10d55d <_Heap_Walk+0x3ad> 10d34e: 89 75 c8 mov %esi,-0x38(%ebp) 10d351: 89 de mov %ebx,%esi 10d353: eb 40 jmp 10d395 <_Heap_Walk+0x1e5> 10d355: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d358: 39 f9 cmp %edi,%ecx 10d35a: 0f 82 44 ff ff ff jb 10d2a4 <_Heap_Walk+0xf4> 10d360: 39 4d d0 cmp %ecx,-0x30(%ebp) 10d363: 0f 82 3b ff ff ff jb 10d2a4 <_Heap_Walk+0xf4> ); return false; } if ( 10d369: 8d 41 08 lea 0x8(%ecx),%eax 10d36c: 31 d2 xor %edx,%edx 10d36e: f7 75 d4 divl -0x2c(%ebp) 10d371: 85 d2 test %edx,%edx 10d373: 0f 85 d9 01 00 00 jne 10d552 <_Heap_Walk+0x3a2> ); return false; } if ( _Heap_Is_used( free_block ) ) { 10d379: 8b 41 04 mov 0x4(%ecx),%eax 10d37c: 83 e0 fe and $0xfffffffe,%eax 10d37f: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1) 10d384: 0f 85 e2 01 00 00 jne 10d56c <_Heap_Walk+0x3bc> ); return false; } if ( free_block->prev != prev_block ) { 10d38a: 8b 41 0c mov 0xc(%ecx),%eax 10d38d: 39 d8 cmp %ebx,%eax 10d38f: 0f 85 c8 01 00 00 jne 10d55d <_Heap_Walk+0x3ad> (*printer)( 10d395: 89 cb mov %ecx,%ebx return false; } prev_block = free_block; free_block = free_block->next; 10d397: 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 ) { 10d39a: 39 ce cmp %ecx,%esi 10d39c: 75 ba jne 10d358 <_Heap_Walk+0x1a8> 10d39e: 89 f3 mov %esi,%ebx 10d3a0: 8b 75 c8 mov -0x38(%ebp),%esi if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d3a3: 39 75 d8 cmp %esi,-0x28(%ebp) 10d3a6: 0f 84 3b fe ff ff je 10d1e7 <_Heap_Walk+0x37> 10d3ac: 8b 45 cc mov -0x34(%ebp),%eax 10d3af: 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; 10d3b0: 89 c1 mov %eax,%ecx 10d3b2: 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); 10d3b5: 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 ) { 10d3b8: a8 01 test $0x1,%al 10d3ba: 74 30 je 10d3ec <_Heap_Walk+0x23c> (*printer)( 10d3bc: 83 ec 0c sub $0xc,%esp 10d3bf: 51 push %ecx 10d3c0: 56 push %esi 10d3c1: 68 29 23 12 00 push $0x122329 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 10d3c6: 6a 00 push $0x0 10d3c8: ff 75 0c pushl 0xc(%ebp) 10d3cb: 89 4d c4 mov %ecx,-0x3c(%ebp) 10d3ce: ff 55 e4 call *-0x1c(%ebp) 10d3d1: 83 c4 20 add $0x20,%esp 10d3d4: 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 10d3d7: 39 7b 20 cmp %edi,0x20(%ebx) 10d3da: 76 20 jbe 10d3fc <_Heap_Walk+0x24c> block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 10d3dc: 83 ec 0c sub $0xc,%esp 10d3df: 57 push %edi 10d3e0: 56 push %esi 10d3e1: 68 44 21 12 00 push $0x122144 10d3e6: e9 e5 fe ff ff jmp 10d2d0 <_Heap_Walk+0x120> 10d3eb: 90 nop <== NOT EXECUTED "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 10d3ec: 83 ec 08 sub $0x8,%esp 10d3ef: ff 36 pushl (%esi) 10d3f1: 51 push %ecx 10d3f2: 56 push %esi 10d3f3: 68 1c 21 12 00 push $0x12211c 10d3f8: eb cc jmp 10d3c6 <_Heap_Walk+0x216> 10d3fa: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d3fc: 39 7b 24 cmp %edi,0x24(%ebx) 10d3ff: 72 db jb 10d3dc <_Heap_Walk+0x22c> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 10d401: 89 c8 mov %ecx,%eax 10d403: 31 d2 xor %edx,%edx 10d405: f7 75 e0 divl -0x20(%ebp) 10d408: 85 d2 test %edx,%edx 10d40a: 0f 85 02 01 00 00 jne 10d512 <_Heap_Walk+0x362> ); return false; } if ( block_size < min_block_size ) { 10d410: 39 4d dc cmp %ecx,-0x24(%ebp) 10d413: 0f 87 0b 01 00 00 ja 10d524 <_Heap_Walk+0x374> ); return false; } if ( next_block_begin <= block_begin ) { 10d419: 39 fe cmp %edi,%esi 10d41b: 0f 83 17 01 00 00 jae 10d538 <_Heap_Walk+0x388> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 10d421: f6 47 04 01 testb $0x1,0x4(%edi) 10d425: 0f 85 91 00 00 00 jne 10d4bc <_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; 10d42b: 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; 10d42e: 8b 46 04 mov 0x4(%esi),%eax 10d431: 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; 10d434: 83 e0 fe and $0xfffffffe,%eax 10d437: 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); 10d43a: 01 f0 add %esi,%eax 10d43c: 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)( 10d43f: 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; 10d442: 39 53 0c cmp %edx,0xc(%ebx) 10d445: 0f 84 99 00 00 00 je 10d4e4 <_Heap_Walk+0x334> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 10d44b: 39 da cmp %ebx,%edx 10d44d: 0f 84 a9 00 00 00 je 10d4fc <_Heap_Walk+0x34c> 10d453: c7 45 c8 99 1e 12 00 movl $0x121e99,-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)( 10d45a: 8b 46 0c mov 0xc(%esi),%eax 10d45d: 39 c1 cmp %eax,%ecx 10d45f: 74 7b je 10d4dc <_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)" : ""), 10d461: 39 d8 cmp %ebx,%eax 10d463: 0f 84 9f 00 00 00 je 10d508 <_Heap_Walk+0x358> 10d469: b9 99 1e 12 00 mov $0x121e99,%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)( 10d46e: ff 75 c8 pushl -0x38(%ebp) 10d471: 52 push %edx 10d472: 51 push %ecx 10d473: 50 push %eax 10d474: 56 push %esi 10d475: 68 04 22 12 00 push $0x122204 10d47a: 6a 00 push $0x0 10d47c: ff 75 0c pushl 0xc(%ebp) 10d47f: 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 ) { 10d482: 8b 55 d0 mov -0x30(%ebp),%edx 10d485: 8b 02 mov (%edx),%eax 10d487: 83 c4 20 add $0x20,%esp 10d48a: 39 45 d4 cmp %eax,-0x2c(%ebp) 10d48d: 74 11 je 10d4a0 <_Heap_Walk+0x2f0> (*printer)( 10d48f: 51 push %ecx 10d490: 52 push %edx 10d491: 50 push %eax 10d492: ff 75 d4 pushl -0x2c(%ebp) 10d495: 56 push %esi 10d496: 68 30 22 12 00 push $0x122230 10d49b: e9 30 fe ff ff jmp 10d2d0 <_Heap_Walk+0x120> ); return false; } if ( !prev_used ) { 10d4a0: f6 45 cc 01 testb $0x1,-0x34(%ebp) 10d4a4: 74 4a je 10d4f0 <_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; 10d4a6: 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 ) { 10d4a9: 39 d8 cmp %ebx,%eax 10d4ab: 75 0a jne 10d4b7 <_Heap_Walk+0x307> 10d4ad: eb 21 jmp 10d4d0 <_Heap_Walk+0x320> <== NOT EXECUTED 10d4af: 90 nop <== NOT EXECUTED if ( free_block == block ) { return true; } free_block = free_block->next; 10d4b0: 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 ) { 10d4b3: 39 d8 cmp %ebx,%eax 10d4b5: 74 19 je 10d4d0 <_Heap_Walk+0x320> if ( free_block == block ) { 10d4b7: 39 f0 cmp %esi,%eax 10d4b9: 75 f5 jne 10d4b0 <_Heap_Walk+0x300> 10d4bb: 90 nop if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d4bc: 39 7d d8 cmp %edi,-0x28(%ebp) 10d4bf: 0f 84 22 fd ff ff je 10d1e7 <_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 ) { 10d4c5: 8b 47 04 mov 0x4(%edi),%eax 10d4c8: 89 fe mov %edi,%esi 10d4ca: e9 e1 fe ff ff jmp 10d3b0 <_Heap_Walk+0x200> 10d4cf: 90 nop <== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 10d4d0: 56 push %esi 10d4d1: 68 9c 22 12 00 push $0x12229c 10d4d6: e9 d1 fd ff ff jmp 10d2ac <_Heap_Walk+0xfc> 10d4db: 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)( 10d4dc: b9 54 23 12 00 mov $0x122354,%ecx 10d4e1: eb 8b jmp 10d46e <_Heap_Walk+0x2be> 10d4e3: 90 nop <== NOT EXECUTED } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 10d4e4: c7 45 c8 40 23 12 00 movl $0x122340,-0x38(%ebp) 10d4eb: e9 6a ff ff ff jmp 10d45a <_Heap_Walk+0x2aa> return false; } if ( !prev_used ) { (*printer)( 10d4f0: 56 push %esi 10d4f1: 68 6c 22 12 00 push $0x12226c 10d4f6: e9 b1 fd ff ff jmp 10d2ac <_Heap_Walk+0xfc> 10d4fb: 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)" : "") 10d4fc: c7 45 c8 4a 23 12 00 movl $0x12234a,-0x38(%ebp) 10d503: e9 52 ff ff ff jmp 10d45a <_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)" : ""), 10d508: b9 5f 23 12 00 mov $0x12235f,%ecx 10d50d: e9 5c ff ff ff jmp 10d46e <_Heap_Walk+0x2be> return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 10d512: 83 ec 0c sub $0xc,%esp 10d515: 51 push %ecx 10d516: 56 push %esi 10d517: 68 74 21 12 00 push $0x122174 10d51c: e9 af fd ff ff jmp 10d2d0 <_Heap_Walk+0x120> 10d521: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return false; } if ( block_size < min_block_size ) { (*printer)( 10d524: 83 ec 08 sub $0x8,%esp 10d527: ff 75 dc pushl -0x24(%ebp) 10d52a: 51 push %ecx 10d52b: 56 push %esi 10d52c: 68 a4 21 12 00 push $0x1221a4 10d531: e9 9a fd ff ff jmp 10d2d0 <_Heap_Walk+0x120> 10d536: 66 90 xchg %ax,%ax <== NOT EXECUTED return false; } if ( next_block_begin <= block_begin ) { (*printer)( 10d538: 83 ec 0c sub $0xc,%esp 10d53b: 57 push %edi 10d53c: 56 push %esi 10d53d: 68 d0 21 12 00 push $0x1221d0 10d542: e9 89 fd ff ff jmp 10d2d0 <_Heap_Walk+0x120> return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 10d547: 53 push %ebx 10d548: 68 f8 22 12 00 push $0x1222f8 10d54d: e9 5a fd ff ff jmp 10d2ac <_Heap_Walk+0xfc> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 10d552: 51 push %ecx 10d553: 68 b8 20 12 00 push $0x1220b8 10d558: e9 4f fd ff ff jmp 10d2ac <_Heap_Walk+0xfc> return false; } if ( free_block->prev != prev_block ) { (*printer)( 10d55d: 83 ec 0c sub $0xc,%esp 10d560: 50 push %eax 10d561: 51 push %ecx 10d562: 68 e8 20 12 00 push $0x1220e8 10d567: e9 64 fd ff ff jmp 10d2d0 <_Heap_Walk+0x120> return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 10d56c: 51 push %ecx 10d56d: 68 0d 23 12 00 push $0x12230d 10d572: e9 35 fd ff ff jmp 10d2ac <_Heap_Walk+0xfc> 0010bc20 <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { 10bc20: 55 push %ebp 10bc21: 89 e5 mov %esp,%ebp 10bc23: 57 push %edi 10bc24: 56 push %esi 10bc25: 53 push %ebx 10bc26: 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; 10bc29: 8b 1d 74 35 12 00 mov 0x123574,%ebx drivers_in_table = Configuration.number_of_device_drivers; 10bc2f: a1 70 35 12 00 mov 0x123570,%eax 10bc34: 89 45 e4 mov %eax,-0x1c(%ebp) number_of_drivers = Configuration.maximum_drivers; 10bc37: 8b 35 6c 35 12 00 mov 0x12356c,%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 ) 10bc3d: 39 f0 cmp %esi,%eax 10bc3f: 72 17 jb 10bc58 <_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; 10bc41: 89 1d 44 81 12 00 mov %ebx,0x128144 _IO_Number_of_drivers = number_of_drivers; 10bc47: 8b 45 e4 mov -0x1c(%ebp),%eax 10bc4a: a3 40 81 12 00 mov %eax,0x128140 ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 10bc4f: 8d 65 f4 lea -0xc(%ebp),%esp 10bc52: 5b pop %ebx 10bc53: 5e pop %esi 10bc54: 5f pop %edi 10bc55: c9 leave 10bc56: c3 ret 10bc57: 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 *) 10bc58: 8d 0c 76 lea (%esi,%esi,2),%ecx 10bc5b: c1 e1 03 shl $0x3,%ecx 10bc5e: 83 ec 0c sub $0xc,%esp 10bc61: 51 push %ecx 10bc62: 89 4d dc mov %ecx,-0x24(%ebp) 10bc65: e8 e6 29 00 00 call 10e650 <_Workspace_Allocate_or_fatal_error> 10bc6a: 89 c2 mov %eax,%edx 10bc6c: a3 44 81 12 00 mov %eax,0x128144 _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; 10bc71: 89 35 40 81 12 00 mov %esi,0x128140 memset( 10bc77: 31 c0 xor %eax,%eax 10bc79: 8b 4d dc mov -0x24(%ebp),%ecx 10bc7c: 89 d7 mov %edx,%edi 10bc7e: 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++ ) 10bc80: 83 c4 10 add $0x10,%esp 10bc83: 8b 4d e4 mov -0x1c(%ebp),%ecx 10bc86: 85 c9 test %ecx,%ecx 10bc88: 74 c5 je 10bc4f <_IO_Manager_initialization+0x2f> 10bc8a: a1 44 81 12 00 mov 0x128144,%eax 10bc8f: 89 45 e0 mov %eax,-0x20(%ebp) 10bc92: 31 c0 xor %eax,%eax 10bc94: 31 d2 xor %edx,%edx 10bc96: 66 90 xchg %ax,%ax _IO_Driver_address_table[index] = driver_table[index]; 10bc98: 8b 7d e0 mov -0x20(%ebp),%edi 10bc9b: 01 c7 add %eax,%edi 10bc9d: 8d 34 03 lea (%ebx,%eax,1),%esi 10bca0: b9 06 00 00 00 mov $0x6,%ecx 10bca5: 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++ ) 10bca7: 42 inc %edx 10bca8: 83 c0 18 add $0x18,%eax 10bcab: 39 55 e4 cmp %edx,-0x1c(%ebp) 10bcae: 77 e8 ja 10bc98 <_IO_Manager_initialization+0x78> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 10bcb0: 8d 65 f4 lea -0xc(%ebp),%esp 10bcb3: 5b pop %ebx 10bcb4: 5e pop %esi 10bcb5: 5f pop %edi 10bcb6: c9 leave 10bcb7: c3 ret 0010c738 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 10c738: 55 push %ebp 10c739: 89 e5 mov %esp,%ebp 10c73b: 53 push %ebx 10c73c: 83 ec 08 sub $0x8,%esp 10c73f: 8b 45 08 mov 0x8(%ebp),%eax 10c742: 8b 55 0c mov 0xc(%ebp),%edx 10c745: 8b 5d 10 mov 0x10(%ebp),%ebx _Internal_errors_What_happened.the_source = the_source; 10c748: a3 c0 77 12 00 mov %eax,0x1277c0 _Internal_errors_What_happened.is_internal = is_internal; 10c74d: 88 15 c4 77 12 00 mov %dl,0x1277c4 _Internal_errors_What_happened.the_error = the_error; 10c753: 89 1d c8 77 12 00 mov %ebx,0x1277c8 _User_extensions_Fatal( the_source, is_internal, the_error ); 10c759: 53 push %ebx 10c75a: 0f b6 d2 movzbl %dl,%edx 10c75d: 52 push %edx 10c75e: 50 push %eax 10c75f: e8 84 1b 00 00 call 10e2e8 <_User_extensions_Fatal> RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 10c764: c7 05 e0 78 12 00 05 movl $0x5,0x1278e0 <== NOT EXECUTED 10c76b: 00 00 00 <== NOT EXECUTED _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 10c76e: fa cli <== NOT EXECUTED 10c76f: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10c771: f4 hlt <== NOT EXECUTED 10c772: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c775: eb fe jmp 10c775 <_Internal_error_Occurred+0x3d> <== NOT EXECUTED 00110ff4 <_Objects_API_maximum_class>: #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 110ff4: 55 push %ebp 110ff5: 89 e5 mov %esp,%ebp case OBJECTS_NO_API: default: break; } return 0; } 110ff7: 8b 45 08 mov 0x8(%ebp),%eax 110ffa: 48 dec %eax 110ffb: 83 f8 03 cmp $0x3,%eax 110ffe: 77 0c ja 11100c <_Objects_API_maximum_class+0x18> 111000: 8b 04 85 dc 15 12 00 mov 0x1215dc(,%eax,4),%eax 111007: c9 leave 111008: c3 ret 111009: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 11100c: 31 c0 xor %eax,%eax 11100e: c9 leave 11100f: c3 ret 0010c7d0 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 10c7d0: 55 push %ebp 10c7d1: 89 e5 mov %esp,%ebp 10c7d3: 56 push %esi 10c7d4: 53 push %ebx 10c7d5: 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 ) 10c7d8: 8b 43 18 mov 0x18(%ebx),%eax 10c7db: 85 c0 test %eax,%eax 10c7dd: 75 0d jne 10c7ec <_Objects_Allocate+0x1c> 10c7df: 31 c9 xor %ecx,%ecx <== NOT EXECUTED information->inactive--; } } return the_object; } 10c7e1: 89 c8 mov %ecx,%eax 10c7e3: 8d 65 f8 lea -0x8(%ebp),%esp 10c7e6: 5b pop %ebx 10c7e7: 5e pop %esi 10c7e8: c9 leave 10c7e9: c3 ret 10c7ea: 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 ); 10c7ec: 8d 73 20 lea 0x20(%ebx),%esi 10c7ef: 83 ec 0c sub $0xc,%esp 10c7f2: 56 push %esi 10c7f3: e8 e4 f6 ff ff call 10bedc <_Chain_Get> 10c7f8: 89 c1 mov %eax,%ecx if ( information->auto_extend ) { 10c7fa: 83 c4 10 add $0x10,%esp 10c7fd: 80 7b 12 00 cmpb $0x0,0x12(%ebx) 10c801: 74 de je 10c7e1 <_Objects_Allocate+0x11> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 10c803: 85 c0 test %eax,%eax 10c805: 74 29 je 10c830 <_Objects_Allocate+0x60> } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 10c807: 0f b7 41 08 movzwl 0x8(%ecx),%eax 10c80b: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10c80f: 29 d0 sub %edx,%eax _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 10c811: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c815: 31 d2 xor %edx,%edx 10c817: f7 f6 div %esi 10c819: c1 e0 02 shl $0x2,%eax 10c81c: 03 43 30 add 0x30(%ebx),%eax 10c81f: ff 08 decl (%eax) information->inactive--; 10c821: 66 ff 4b 2c decw 0x2c(%ebx) } } return the_object; } 10c825: 89 c8 mov %ecx,%eax 10c827: 8d 65 f8 lea -0x8(%ebp),%esp 10c82a: 5b pop %ebx 10c82b: 5e pop %esi 10c82c: c9 leave 10c82d: c3 ret 10c82e: 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 ); 10c830: 83 ec 0c sub $0xc,%esp 10c833: 53 push %ebx 10c834: e8 3b 00 00 00 call 10c874 <_Objects_Extend_information> the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 10c839: 89 34 24 mov %esi,(%esp) 10c83c: e8 9b f6 ff ff call 10bedc <_Chain_Get> 10c841: 89 c1 mov %eax,%ecx } if ( the_object ) { 10c843: 83 c4 10 add $0x10,%esp 10c846: 85 c0 test %eax,%eax 10c848: 74 97 je 10c7e1 <_Objects_Allocate+0x11> 10c84a: eb bb jmp 10c807 <_Objects_Allocate+0x37> 0010c874 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 10c874: 55 push %ebp 10c875: 89 e5 mov %esp,%ebp 10c877: 57 push %edi 10c878: 56 push %esi 10c879: 53 push %ebx 10c87a: 83 ec 4c sub $0x4c,%esp 10c87d: 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 ); 10c880: 0f b7 43 08 movzwl 0x8(%ebx),%eax 10c884: 89 45 d0 mov %eax,-0x30(%ebp) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 10c887: 8b 4b 34 mov 0x34(%ebx),%ecx 10c88a: 85 c9 test %ecx,%ecx 10c88c: 0f 84 72 02 00 00 je 10cb04 <_Objects_Extend_information+0x290> block_count = 0; else { block_count = information->maximum / information->allocation_size; 10c892: 8b 7b 10 mov 0x10(%ebx),%edi 10c895: 66 89 7d d4 mov %di,-0x2c(%ebp) 10c899: 8b 7b 14 mov 0x14(%ebx),%edi 10c89c: 31 d2 xor %edx,%edx 10c89e: 8b 45 d4 mov -0x2c(%ebp),%eax 10c8a1: 66 f7 f7 div %di 10c8a4: 0f b7 f0 movzwl %ax,%esi for ( ; block < block_count; block++ ) { 10c8a7: 85 f6 test %esi,%esi 10c8a9: 0f 84 6c 02 00 00 je 10cb1b <_Objects_Extend_information+0x2a7> if ( information->object_blocks[ block ] == NULL ) 10c8af: 8b 01 mov (%ecx),%eax 10c8b1: 85 c0 test %eax,%eax 10c8b3: 0f 84 72 02 00 00 je 10cb2b <_Objects_Extend_information+0x2b7> 10c8b9: 0f b7 ff movzwl %di,%edi 10c8bc: 8b 55 d0 mov -0x30(%ebp),%edx 10c8bf: 89 55 cc mov %edx,-0x34(%ebp) 10c8c2: 31 d2 xor %edx,%edx 10c8c4: 8b 45 cc mov -0x34(%ebp),%eax 10c8c7: eb 09 jmp 10c8d2 <_Objects_Extend_information+0x5e> 10c8c9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c8cc: 83 3c 91 00 cmpl $0x0,(%ecx,%edx,4) 10c8d0: 74 07 je 10c8d9 <_Objects_Extend_information+0x65> break; else index_base += information->allocation_size; 10c8d2: 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++ ) { 10c8d4: 42 inc %edx 10c8d5: 39 d6 cmp %edx,%esi 10c8d7: 77 f3 ja 10c8cc <_Objects_Extend_information+0x58> 10c8d9: 89 45 cc mov %eax,-0x34(%ebp) else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 10c8dc: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10c8e0: 01 f8 add %edi,%eax 10c8e2: 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 ) { 10c8e5: 3d ff ff 00 00 cmp $0xffff,%eax 10c8ea: 0f 87 b1 01 00 00 ja 10caa1 <_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; 10c8f0: 0f af 7b 18 imul 0x18(%ebx),%edi if ( information->auto_extend ) { 10c8f4: 80 7b 12 00 cmpb $0x0,0x12(%ebx) 10c8f8: 0f 85 ae 01 00 00 jne 10caac <_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 ); 10c8fe: 83 ec 0c sub $0xc,%esp 10c901: 57 push %edi 10c902: 89 55 b4 mov %edx,-0x4c(%ebp) 10c905: e8 46 1d 00 00 call 10e650 <_Workspace_Allocate_or_fatal_error> 10c90a: 89 45 c4 mov %eax,-0x3c(%ebp) 10c90d: 83 c4 10 add $0x10,%esp 10c910: 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 ) { 10c913: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c917: 39 45 cc cmp %eax,-0x34(%ebp) 10c91a: 0f 82 fe 00 00 00 jb 10ca1e <_Objects_Extend_information+0x1aa> */ /* * Up the block count and maximum */ block_count++; 10c920: 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 ); 10c923: 83 ec 0c sub $0xc,%esp 10c926: 8d 04 7f lea (%edi,%edi,2),%eax 10c929: 03 45 d4 add -0x2c(%ebp),%eax 10c92c: 03 45 d0 add -0x30(%ebp),%eax 10c92f: c1 e0 02 shl $0x2,%eax 10c932: 50 push %eax 10c933: 89 55 b4 mov %edx,-0x4c(%ebp) 10c936: e8 41 1d 00 00 call 10e67c <_Workspace_Allocate> 10c93b: 89 45 c8 mov %eax,-0x38(%ebp) if ( !object_blocks ) { 10c93e: 83 c4 10 add $0x10,%esp 10c941: 85 c0 test %eax,%eax 10c943: 8b 55 b4 mov -0x4c(%ebp),%edx 10c946: 0f 84 ef 01 00 00 je 10cb3b <_Objects_Extend_information+0x2c7> RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 10c94c: 8b 45 c8 mov -0x38(%ebp),%eax 10c94f: 8d 04 b8 lea (%eax,%edi,4),%eax 10c952: 89 45 b8 mov %eax,-0x48(%ebp) 10c955: 8b 4d c8 mov -0x38(%ebp),%ecx 10c958: 8d 3c f9 lea (%ecx,%edi,8),%edi 10c95b: 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 ) { 10c95e: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c962: 39 45 d0 cmp %eax,-0x30(%ebp) 10c965: 0f 82 60 01 00 00 jb 10cacb <_Objects_Extend_information+0x257> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 10c96b: 8b 45 d0 mov -0x30(%ebp),%eax 10c96e: 85 c0 test %eax,%eax 10c970: 74 16 je 10c988 <_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, 10c972: 31 c0 xor %eax,%eax 10c974: 8b 4d bc mov -0x44(%ebp),%ecx 10c977: 8b 7d d0 mov -0x30(%ebp),%edi 10c97a: 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; 10c97c: 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++ ) { 10c983: 40 inc %eax 10c984: 39 c7 cmp %eax,%edi 10c986: 77 f4 ja 10c97c <_Objects_Extend_information+0x108> 10c988: c1 e6 02 shl $0x2,%esi 10c98b: 89 75 c0 mov %esi,-0x40(%ebp) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 10c98e: 8b 45 c8 mov -0x38(%ebp),%eax 10c991: 8b 7d c0 mov -0x40(%ebp),%edi 10c994: c7 04 38 00 00 00 00 movl $0x0,(%eax,%edi,1) inactive_per_block[block_count] = 0; 10c99b: 8b 4d b8 mov -0x48(%ebp),%ecx 10c99e: c7 04 39 00 00 00 00 movl $0x0,(%ecx,%edi,1) for ( index=index_base ; index < ( information->allocation_size + index_base ); 10c9a5: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c9a9: 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 ; 10c9ac: 39 75 cc cmp %esi,-0x34(%ebp) 10c9af: 73 19 jae 10c9ca <_Objects_Extend_information+0x156> 10c9b1: 8b 7d cc mov -0x34(%ebp),%edi 10c9b4: 8b 45 bc mov -0x44(%ebp),%eax 10c9b7: 8d 0c b8 lea (%eax,%edi,4),%ecx 10c9ba: 89 f8 mov %edi,%eax index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 10c9bc: 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++ ) { 10c9c2: 40 inc %eax 10c9c3: 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 ; 10c9c6: 39 f0 cmp %esi,%eax 10c9c8: 72 f2 jb 10c9bc <_Objects_Extend_information+0x148> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 10c9ca: 9c pushf 10c9cb: fa cli 10c9cc: 5f pop %edi old_tables = information->object_blocks; 10c9cd: 8b 4b 34 mov 0x34(%ebx),%ecx information->object_blocks = object_blocks; 10c9d0: 8b 45 c8 mov -0x38(%ebp),%eax 10c9d3: 89 43 34 mov %eax,0x34(%ebx) information->inactive_per_block = inactive_per_block; 10c9d6: 8b 45 b8 mov -0x48(%ebp),%eax 10c9d9: 89 43 30 mov %eax,0x30(%ebx) information->local_table = local_table; 10c9dc: 8b 45 bc mov -0x44(%ebp),%eax 10c9df: 89 43 1c mov %eax,0x1c(%ebx) information->maximum = (Objects_Maximum) maximum; 10c9e2: 8b 45 d4 mov -0x2c(%ebp),%eax 10c9e5: 66 89 43 10 mov %ax,0x10(%ebx) information->maximum_id = _Objects_Build_id( 10c9e9: 8b 33 mov (%ebx),%esi 10c9eb: c1 e6 18 shl $0x18,%esi 10c9ee: 81 ce 00 00 01 00 or $0x10000,%esi 10c9f4: 0f b7 43 04 movzwl 0x4(%ebx),%eax 10c9f8: c1 e0 1b shl $0x1b,%eax 10c9fb: 09 c6 or %eax,%esi 10c9fd: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10ca01: 09 c6 or %eax,%esi 10ca03: 89 73 0c mov %esi,0xc(%ebx) information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 10ca06: 57 push %edi 10ca07: 9d popf if ( old_tables ) 10ca08: 85 c9 test %ecx,%ecx 10ca0a: 74 12 je 10ca1e <_Objects_Extend_information+0x1aa> _Workspace_Free( old_tables ); 10ca0c: 83 ec 0c sub $0xc,%esp 10ca0f: 51 push %ecx 10ca10: 89 55 b4 mov %edx,-0x4c(%ebp) 10ca13: e8 80 1c 00 00 call 10e698 <_Workspace_Free> 10ca18: 83 c4 10 add $0x10,%esp 10ca1b: 8b 55 b4 mov -0x4c(%ebp),%edx } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 10ca1e: c1 e2 02 shl $0x2,%edx 10ca21: 89 55 d0 mov %edx,-0x30(%ebp) 10ca24: 8b 43 34 mov 0x34(%ebx),%eax 10ca27: 8b 4d c4 mov -0x3c(%ebp),%ecx 10ca2a: 89 0c 10 mov %ecx,(%eax,%edx,1) /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 10ca2d: ff 73 18 pushl 0x18(%ebx) 10ca30: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10ca34: 52 push %edx 10ca35: 8b 7d d0 mov -0x30(%ebp),%edi 10ca38: ff 34 38 pushl (%eax,%edi,1) 10ca3b: 8d 7d dc lea -0x24(%ebp),%edi 10ca3e: 57 push %edi 10ca3f: e8 e8 3f 00 00 call 110a2c <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 10ca44: 8d 43 20 lea 0x20(%ebx),%eax 10ca47: 89 45 d4 mov %eax,-0x2c(%ebp) 10ca4a: 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 ) { 10ca4d: 83 c4 10 add $0x10,%esp 10ca50: eb 2b jmp 10ca7d <_Objects_Extend_information+0x209> 10ca52: 66 90 xchg %ax,%ax <== NOT EXECUTED the_object->id = _Objects_Build_id( 10ca54: 8b 13 mov (%ebx),%edx 10ca56: c1 e2 18 shl $0x18,%edx 10ca59: 81 ca 00 00 01 00 or $0x10000,%edx 10ca5f: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx 10ca63: c1 e1 1b shl $0x1b,%ecx 10ca66: 09 ca or %ecx,%edx 10ca68: 09 f2 or %esi,%edx 10ca6a: 89 50 08 mov %edx,0x8(%eax) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 10ca6d: 83 ec 08 sub $0x8,%esp 10ca70: 50 push %eax 10ca71: ff 75 d4 pushl -0x2c(%ebp) 10ca74: e8 3f f4 ff ff call 10beb8 <_Chain_Append> index++; 10ca79: 46 inc %esi 10ca7a: 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 ) { 10ca7d: 83 ec 0c sub $0xc,%esp 10ca80: 57 push %edi 10ca81: e8 56 f4 ff ff call 10bedc <_Chain_Get> 10ca86: 83 c4 10 add $0x10,%esp 10ca89: 85 c0 test %eax,%eax 10ca8b: 75 c7 jne 10ca54 <_Objects_Extend_information+0x1e0> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 10ca8d: 8b 43 30 mov 0x30(%ebx),%eax 10ca90: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10ca94: 8b 4d d0 mov -0x30(%ebp),%ecx 10ca97: 89 14 08 mov %edx,(%eax,%ecx,1) information->inactive = 10ca9a: 8b 43 14 mov 0x14(%ebx),%eax 10ca9d: 66 01 43 2c add %ax,0x2c(%ebx) (Objects_Maximum)(information->inactive + information->allocation_size); } 10caa1: 8d 65 f4 lea -0xc(%ebp),%esp 10caa4: 5b pop %ebx 10caa5: 5e pop %esi 10caa6: 5f pop %edi 10caa7: c9 leave 10caa8: c3 ret 10caa9: 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 ); 10caac: 83 ec 0c sub $0xc,%esp 10caaf: 57 push %edi 10cab0: 89 55 b4 mov %edx,-0x4c(%ebp) 10cab3: e8 c4 1b 00 00 call 10e67c <_Workspace_Allocate> 10cab8: 89 45 c4 mov %eax,-0x3c(%ebp) if ( !new_object_block ) 10cabb: 83 c4 10 add $0x10,%esp 10cabe: 85 c0 test %eax,%eax 10cac0: 8b 55 b4 mov -0x4c(%ebp),%edx 10cac3: 0f 85 4a fe ff ff jne 10c913 <_Objects_Extend_information+0x9f> 10cac9: eb d6 jmp 10caa1 <_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, 10cacb: c1 e6 02 shl $0x2,%esi 10cace: 89 75 c0 mov %esi,-0x40(%ebp) 10cad1: 8b 73 34 mov 0x34(%ebx),%esi 10cad4: 8b 7d c8 mov -0x38(%ebp),%edi 10cad7: 8b 4d c0 mov -0x40(%ebp),%ecx 10cada: f3 a4 rep movsb %ds:(%esi),%es:(%edi) information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 10cadc: 8b 73 30 mov 0x30(%ebx),%esi 10cadf: 8b 7d b8 mov -0x48(%ebp),%edi 10cae2: 8b 4d c0 mov -0x40(%ebp),%ecx 10cae5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 10cae7: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10caeb: 03 45 d0 add -0x30(%ebp),%eax 10caee: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx 10caf5: 8b 73 1c mov 0x1c(%ebx),%esi 10caf8: 8b 7d bc mov -0x44(%ebp),%edi 10cafb: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 10cafd: e9 8c fe ff ff jmp 10c98e <_Objects_Extend_information+0x11a> 10cb02: 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 ) 10cb04: 8b 53 10 mov 0x10(%ebx),%edx 10cb07: 66 89 55 d4 mov %dx,-0x2c(%ebp) 10cb0b: 0f b7 7b 14 movzwl 0x14(%ebx),%edi 10cb0f: 89 45 cc mov %eax,-0x34(%ebp) 10cb12: 31 d2 xor %edx,%edx 10cb14: 31 f6 xor %esi,%esi 10cb16: e9 c1 fd ff ff jmp 10c8dc <_Objects_Extend_information+0x68> block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 10cb1b: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10cb1e: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 10cb21: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED 10cb24: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cb26: e9 b1 fd ff ff jmp 10c8dc <_Objects_Extend_information+0x68> <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) 10cb2b: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10cb2e: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED 10cb31: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED 10cb34: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cb36: e9 a1 fd ff ff jmp 10c8dc <_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 ); 10cb3b: 83 ec 0c sub $0xc,%esp 10cb3e: ff 75 c4 pushl -0x3c(%ebp) 10cb41: e8 52 1b 00 00 call 10e698 <_Workspace_Free> return; 10cb46: 83 c4 10 add $0x10,%esp 10cb49: e9 53 ff ff ff jmp 10caa1 <_Objects_Extend_information+0x22d> 0010cc80 <_Objects_Get>: Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 10cc80: 55 push %ebp 10cc81: 89 e5 mov %esp,%ebp 10cc83: 53 push %ebx 10cc84: 83 ec 14 sub $0x14,%esp 10cc87: 8b 55 08 mov 0x8(%ebp),%edx 10cc8a: 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; 10cc8d: b8 01 00 00 00 mov $0x1,%eax 10cc92: 2b 42 08 sub 0x8(%edx),%eax 10cc95: 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 ) { 10cc98: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cc9c: 39 c8 cmp %ecx,%eax 10cc9e: 77 24 ja 10ccc4 <_Objects_Get+0x44> 10cca0: 8b 0d 18 77 12 00 mov 0x127718,%ecx 10cca6: 41 inc %ecx 10cca7: 89 0d 18 77 12 00 mov %ecx,0x127718 _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { 10ccad: 8b 52 1c mov 0x1c(%edx),%edx 10ccb0: 8b 04 82 mov (%edx,%eax,4),%eax 10ccb3: 85 c0 test %eax,%eax 10ccb5: 74 1b je 10ccd2 <_Objects_Get+0x52> *location = OBJECTS_LOCAL; 10ccb7: 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 } 10ccbd: 83 c4 14 add $0x14,%esp 10ccc0: 5b pop %ebx 10ccc1: c9 leave 10ccc2: c3 ret 10ccc3: 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; 10ccc4: c7 03 01 00 00 00 movl $0x1,(%ebx) 10ccca: 31 c0 xor %eax,%eax _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cccc: 83 c4 14 add $0x14,%esp 10cccf: 5b pop %ebx 10ccd0: c9 leave 10ccd1: c3 ret /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); 10ccd2: 89 45 f4 mov %eax,-0xc(%ebp) 10ccd5: e8 1a 08 00 00 call 10d4f4 <_Thread_Enable_dispatch> *location = OBJECTS_ERROR; 10ccda: c7 03 01 00 00 00 movl $0x1,(%ebx) return NULL; 10cce0: 8b 45 f4 mov -0xc(%ebp),%eax 10cce3: eb d8 jmp 10ccbd <_Objects_Get+0x3d> 0010cc28 <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 10cc28: 55 push %ebp 10cc29: 89 e5 mov %esp,%ebp 10cc2b: 56 push %esi 10cc2c: 53 push %ebx 10cc2d: 8b 55 08 mov 0x8(%ebp),%edx 10cc30: 8b 5d 10 mov 0x10(%ebp),%ebx Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 10cc33: b8 01 00 00 00 mov $0x1,%eax 10cc38: 2b 42 08 sub 0x8(%edx),%eax 10cc3b: 03 45 0c add 0xc(%ebp),%eax _ISR_Disable( level ); 10cc3e: 9c pushf 10cc3f: fa cli 10cc40: 5e pop %esi if ( information->maximum >= index ) { 10cc41: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cc45: 39 c8 cmp %ecx,%eax 10cc47: 77 1b ja 10cc64 <_Objects_Get_isr_disable+0x3c> if ( (the_object = information->local_table[ index ]) != NULL ) { 10cc49: 8b 52 1c mov 0x1c(%edx),%edx 10cc4c: 8b 04 82 mov (%edx,%eax,4),%eax 10cc4f: 85 c0 test %eax,%eax 10cc51: 74 21 je 10cc74 <_Objects_Get_isr_disable+0x4c> *location = OBJECTS_LOCAL; 10cc53: c7 03 00 00 00 00 movl $0x0,(%ebx) *level_p = level; 10cc59: 8b 55 14 mov 0x14(%ebp),%edx 10cc5c: 89 32 mov %esi,(%edx) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cc5e: 5b pop %ebx 10cc5f: 5e pop %esi 10cc60: c9 leave 10cc61: c3 ret 10cc62: 66 90 xchg %ax,%ax <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 10cc64: 56 push %esi 10cc65: 9d popf *location = OBJECTS_ERROR; 10cc66: c7 03 01 00 00 00 movl $0x1,(%ebx) 10cc6c: 31 c0 xor %eax,%eax _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cc6e: 5b pop %ebx 10cc6f: 5e pop %esi 10cc70: c9 leave 10cc71: c3 ret 10cc72: 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 ); 10cc74: 56 push %esi 10cc75: 9d popf *location = OBJECTS_ERROR; 10cc76: c7 03 01 00 00 00 movl $0x1,(%ebx) return NULL; 10cc7c: eb e0 jmp 10cc5e <_Objects_Get_isr_disable+0x36> 00118800 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 118800: 55 push %ebp 118801: 89 e5 mov %esp,%ebp 118803: 57 push %edi 118804: 56 push %esi 118805: 53 push %ebx 118806: 83 ec 2c sub $0x2c,%esp 118809: 8b 55 08 mov 0x8(%ebp),%edx 11880c: 8b 75 0c mov 0xc(%ebp),%esi 11880f: 8b 5d 10 mov 0x10(%ebp),%ebx char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 118812: 85 f6 test %esi,%esi 118814: 75 0e jne 118824 <_Objects_Get_name_as_string+0x24> } } *d = '\0'; _Thread_Enable_dispatch(); return name; 118816: 31 db xor %ebx,%ebx } return NULL; /* unreachable path */ } 118818: 89 d8 mov %ebx,%eax 11881a: 8d 65 f4 lea -0xc(%ebp),%esp 11881d: 5b pop %ebx 11881e: 5e pop %esi 11881f: 5f pop %edi 118820: c9 leave 118821: c3 ret 118822: 66 90 xchg %ax,%ax <== NOT EXECUTED Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) 118824: 85 db test %ebx,%ebx 118826: 74 f0 je 118818 <_Objects_Get_name_as_string+0x18> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 118828: 85 d2 test %edx,%edx 11882a: 75 08 jne 118834 <_Objects_Get_name_as_string+0x34> 11882c: a1 d8 53 13 00 mov 0x1353d8,%eax 118831: 8b 50 08 mov 0x8(%eax),%edx information = _Objects_Get_information_id( tmpId ); 118834: 83 ec 0c sub $0xc,%esp 118837: 52 push %edx 118838: 89 55 cc mov %edx,-0x34(%ebp) 11883b: e8 50 90 ff ff call 111890 <_Objects_Get_information_id> 118840: 89 c7 mov %eax,%edi if ( !information ) 118842: 83 c4 10 add $0x10,%esp 118845: 85 c0 test %eax,%eax 118847: 8b 55 cc mov -0x34(%ebp),%edx 11884a: 74 ca je 118816 <_Objects_Get_name_as_string+0x16> return NULL; the_object = _Objects_Get( information, tmpId, &location ); 11884c: 51 push %ecx 11884d: 8d 45 e4 lea -0x1c(%ebp),%eax 118850: 50 push %eax 118851: 52 push %edx 118852: 57 push %edi 118853: e8 f8 90 ff ff call 111950 <_Objects_Get> switch ( location ) { 118858: 83 c4 10 add $0x10,%esp 11885b: 8b 55 e4 mov -0x1c(%ebp),%edx 11885e: 85 d2 test %edx,%edx 118860: 75 b4 jne 118816 <_Objects_Get_name_as_string+0x16> return NULL; case OBJECTS_LOCAL: #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 118862: 80 7f 38 00 cmpb $0x0,0x38(%edi) 118866: 74 4e je 1188b6 <_Objects_Get_name_as_string+0xb6> s = the_object->name.name_p; 118868: 8b 78 0c mov 0xc(%eax),%edi lname[ 4 ] = '\0'; s = lname; } d = name; if ( s ) { 11886b: 85 ff test %edi,%edi 11886d: 74 6e je 1188dd <_Objects_Get_name_as_string+0xdd> for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 11886f: 4e dec %esi 118870: 89 75 d4 mov %esi,-0x2c(%ebp) 118873: 74 68 je 1188dd <_Objects_Get_name_as_string+0xdd> 118875: 8a 07 mov (%edi),%al 118877: 84 c0 test %al,%al 118879: 74 62 je 1188dd <_Objects_Get_name_as_string+0xdd> 11887b: 89 d9 mov %ebx,%ecx 11887d: 31 d2 xor %edx,%edx 11887f: 89 5d d0 mov %ebx,-0x30(%ebp) 118882: eb 07 jmp 11888b <_Objects_Get_name_as_string+0x8b> 118884: 8a 04 17 mov (%edi,%edx,1),%al 118887: 84 c0 test %al,%al 118889: 74 1b je 1188a6 <_Objects_Get_name_as_string+0xa6> *d = (isprint((unsigned char)*s)) ? *s : '*'; 11888b: 0f b6 d8 movzbl %al,%ebx 11888e: 8b 35 18 29 13 00 mov 0x132918,%esi 118894: f6 44 1e 01 97 testb $0x97,0x1(%esi,%ebx,1) 118899: 75 02 jne 11889d <_Objects_Get_name_as_string+0x9d> 11889b: b0 2a mov $0x2a,%al 11889d: 88 01 mov %al,(%ecx) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 11889f: 42 inc %edx 1188a0: 41 inc %ecx 1188a1: 3b 55 d4 cmp -0x2c(%ebp),%edx 1188a4: 72 de jb 118884 <_Objects_Get_name_as_string+0x84> 1188a6: 8b 5d d0 mov -0x30(%ebp),%ebx *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; 1188a9: c6 01 00 movb $0x0,(%ecx) _Thread_Enable_dispatch(); 1188ac: e8 83 99 ff ff call 112234 <_Thread_Enable_dispatch> return name; 1188b1: e9 62 ff ff ff jmp 118818 <_Objects_Get_name_as_string+0x18> if ( information->is_string ) { s = the_object->name.name_p; } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; 1188b6: 8b 40 0c mov 0xc(%eax),%eax lname[ 0 ] = (u32_name >> 24) & 0xff; 1188b9: 89 c2 mov %eax,%edx 1188bb: c1 ea 18 shr $0x18,%edx 1188be: 88 55 df mov %dl,-0x21(%ebp) lname[ 1 ] = (u32_name >> 16) & 0xff; 1188c1: 89 c2 mov %eax,%edx 1188c3: c1 ea 10 shr $0x10,%edx 1188c6: 88 55 e0 mov %dl,-0x20(%ebp) lname[ 2 ] = (u32_name >> 8) & 0xff; 1188c9: 89 c2 mov %eax,%edx 1188cb: c1 ea 08 shr $0x8,%edx 1188ce: 88 55 e1 mov %dl,-0x1f(%ebp) lname[ 3 ] = (u32_name >> 0) & 0xff; 1188d1: 88 45 e2 mov %al,-0x1e(%ebp) lname[ 4 ] = '\0'; 1188d4: c6 45 e3 00 movb $0x0,-0x1d(%ebp) 1188d8: 8d 7d df lea -0x21(%ebp),%edi 1188db: eb 92 jmp 11886f <_Objects_Get_name_as_string+0x6f> s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 1188dd: 89 d9 mov %ebx,%ecx 1188df: eb c8 jmp 1188a9 <_Objects_Get_name_as_string+0xa9> 0011b388 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 11b388: 55 push %ebp 11b389: 89 e5 mov %esp,%ebp 11b38b: 57 push %edi 11b38c: 56 push %esi 11b38d: 53 push %ebx 11b38e: 83 ec 0c sub $0xc,%esp 11b391: 8b 5d 08 mov 0x8(%ebp),%ebx 11b394: 8b 75 0c mov 0xc(%ebp),%esi 11b397: 8b 7d 10 mov 0x10(%ebp),%edi Objects_Control *object; Objects_Id next_id; if ( !information ) 11b39a: 85 db test %ebx,%ebx 11b39c: 75 0a jne 11b3a8 <_Objects_Get_next+0x20> *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; 11b39e: 31 c0 xor %eax,%eax } 11b3a0: 8d 65 f4 lea -0xc(%ebp),%esp 11b3a3: 5b pop %ebx 11b3a4: 5e pop %esi 11b3a5: 5f pop %edi 11b3a6: c9 leave 11b3a7: c3 ret Objects_Id next_id; if ( !information ) return NULL; if ( !location_p ) 11b3a8: 85 ff test %edi,%edi 11b3aa: 74 f2 je 11b39e <_Objects_Get_next+0x16> return NULL; if ( !next_id_p ) 11b3ac: 8b 45 14 mov 0x14(%ebp),%eax 11b3af: 85 c0 test %eax,%eax 11b3b1: 74 eb je 11b39e <_Objects_Get_next+0x16> return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 11b3b3: 66 85 f6 test %si,%si 11b3b6: 75 04 jne 11b3bc <_Objects_Get_next+0x34> next_id = information->minimum_id; 11b3b8: 8b 73 08 mov 0x8(%ebx),%esi 11b3bb: 90 nop else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 11b3bc: 66 39 73 10 cmp %si,0x10(%ebx) 11b3c0: 72 22 jb 11b3e4 <_Objects_Get_next+0x5c> *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 11b3c2: 51 push %ecx 11b3c3: 57 push %edi 11b3c4: 56 push %esi 11b3c5: 53 push %ebx 11b3c6: e8 85 65 ff ff call 111950 <_Objects_Get> next_id++; 11b3cb: 46 inc %esi } while (*location_p != OBJECTS_LOCAL); 11b3cc: 83 c4 10 add $0x10,%esp 11b3cf: 8b 17 mov (%edi),%edx 11b3d1: 85 d2 test %edx,%edx 11b3d3: 75 e7 jne 11b3bc <_Objects_Get_next+0x34> *next_id_p = next_id; 11b3d5: 8b 55 14 mov 0x14(%ebp),%edx 11b3d8: 89 32 mov %esi,(%edx) return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 11b3da: 8d 65 f4 lea -0xc(%ebp),%esp 11b3dd: 5b pop %ebx 11b3de: 5e pop %esi 11b3df: 5f pop %edi 11b3e0: c9 leave 11b3e1: c3 ret 11b3e2: 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; 11b3e4: c7 07 01 00 00 00 movl $0x1,(%edi) *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 11b3ea: 8b 45 14 mov 0x14(%ebp),%eax 11b3ed: c7 00 ff ff ff ff movl $0xffffffff,(%eax) 11b3f3: 31 c0 xor %eax,%eax return 0; 11b3f5: eb a9 jmp 11b3a0 <_Objects_Get_next+0x18> 001119b8 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 1119b8: 55 push %ebp 1119b9: 89 e5 mov %esp,%ebp 1119bb: 83 ec 18 sub $0x18,%esp 1119be: 8b 55 08 mov 0x8(%ebp),%edx /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 1119c1: 85 d2 test %edx,%edx 1119c3: 75 08 jne 1119cd <_Objects_Id_to_name+0x15> 1119c5: a1 d8 53 13 00 mov 0x1353d8,%eax 1119ca: 8b 50 08 mov 0x8(%eax),%edx */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 1119cd: 89 d0 mov %edx,%eax 1119cf: c1 e8 18 shr $0x18,%eax 1119d2: 83 e0 07 and $0x7,%eax */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 1119d5: 8d 48 ff lea -0x1(%eax),%ecx 1119d8: 83 f9 03 cmp $0x3,%ecx 1119db: 77 1d ja 1119fa <_Objects_Id_to_name+0x42> the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 1119dd: 8b 04 85 ec 52 13 00 mov 0x1352ec(,%eax,4),%eax 1119e4: 85 c0 test %eax,%eax 1119e6: 74 12 je 1119fa <_Objects_Id_to_name+0x42> return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 1119e8: 89 d1 mov %edx,%ecx 1119ea: c1 e9 1b shr $0x1b,%ecx 1119ed: 8b 04 88 mov (%eax,%ecx,4),%eax if ( !information ) 1119f0: 85 c0 test %eax,%eax 1119f2: 74 06 je 1119fa <_Objects_Id_to_name+0x42> return OBJECTS_INVALID_ID; #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) 1119f4: 80 78 38 00 cmpb $0x0,0x38(%eax) 1119f8: 74 0a je 111a04 <_Objects_Id_to_name+0x4c> if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 1119fa: b8 03 00 00 00 mov $0x3,%eax } 1119ff: c9 leave 111a00: c3 ret 111a01: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); 111a04: 51 push %ecx 111a05: 8d 4d f4 lea -0xc(%ebp),%ecx 111a08: 51 push %ecx 111a09: 52 push %edx 111a0a: 50 push %eax 111a0b: e8 40 ff ff ff call 111950 <_Objects_Get> if ( !the_object ) 111a10: 83 c4 10 add $0x10,%esp 111a13: 85 c0 test %eax,%eax 111a15: 74 e3 je 1119fa <_Objects_Id_to_name+0x42> return OBJECTS_INVALID_ID; *name = the_object->name; 111a17: 8b 50 0c mov 0xc(%eax),%edx 111a1a: 8b 45 0c mov 0xc(%ebp),%eax 111a1d: 89 10 mov %edx,(%eax) _Thread_Enable_dispatch(); 111a1f: e8 10 08 00 00 call 112234 <_Thread_Enable_dispatch> 111a24: 31 c0 xor %eax,%eax return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 111a26: c9 leave 111a27: c3 ret 0010cce8 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 10cce8: 55 push %ebp 10cce9: 89 e5 mov %esp,%ebp 10cceb: 57 push %edi 10ccec: 56 push %esi 10cced: 53 push %ebx 10ccee: 83 ec 0c sub $0xc,%esp 10ccf1: 8b 45 08 mov 0x8(%ebp),%eax 10ccf4: 8b 55 0c mov 0xc(%ebp),%edx 10ccf7: 8b 5d 10 mov 0x10(%ebp),%ebx 10ccfa: 8b 75 20 mov 0x20(%ebp),%esi 10ccfd: 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; 10cd01: 89 10 mov %edx,(%eax) information->the_class = the_class; 10cd03: 66 89 58 04 mov %bx,0x4(%eax) information->size = size; 10cd07: 89 78 18 mov %edi,0x18(%eax) information->local_table = 0; 10cd0a: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) information->inactive_per_block = 0; 10cd11: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) information->object_blocks = 0; 10cd18: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) information->inactive = 0; 10cd1f: 66 c7 40 2c 00 00 movw $0x0,0x2c(%eax) #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) information->is_string = is_string; 10cd25: 8b 7d 1c mov 0x1c(%ebp),%edi 10cd28: 89 f9 mov %edi,%ecx 10cd2a: 88 48 38 mov %cl,0x38(%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; 10cd2d: 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; 10cd33: 8b 3c 95 ec 76 12 00 mov 0x1276ec(,%edx,4),%edi 10cd3a: 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; 10cd3d: 8b 7d 14 mov 0x14(%ebp),%edi 10cd40: 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 = 10cd43: 89 f9 mov %edi,%ecx 10cd45: 88 48 12 mov %cl,0x12(%eax) (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 10cd48: 8b 4d 14 mov 0x14(%ebp),%ecx 10cd4b: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { 10cd51: 85 ff test %edi,%edi 10cd53: 74 04 je 10cd59 <_Objects_Initialize_information+0x71> 10cd55: 85 c9 test %ecx,%ecx 10cd57: 74 6a je 10cdc3 <_Objects_Initialize_information+0xdb> } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; 10cd59: 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; 10cd5d: c7 40 1c 44 73 12 00 movl $0x127344,0x1c(%eax) /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = 10cd64: c1 e2 18 shl $0x18,%edx 10cd67: 81 ca 00 00 01 00 or $0x10000,%edx 10cd6d: c1 e3 1b shl $0x1b,%ebx 10cd70: 09 da or %ebx,%edx 10cd72: 31 db xor %ebx,%ebx 10cd74: 85 c9 test %ecx,%ecx 10cd76: 0f 95 c3 setne %bl 10cd79: 09 da or %ebx,%edx 10cd7b: 89 50 08 mov %edx,0x8(%eax) /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 10cd7e: f7 c6 03 00 00 00 test $0x3,%esi 10cd84: 75 26 jne 10cdac <_Objects_Initialize_information+0xc4> name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 10cd86: 66 89 70 3a mov %si,0x3a(%eax) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10cd8a: 8d 50 24 lea 0x24(%eax),%edx 10cd8d: 89 50 20 mov %edx,0x20(%eax) the_chain->permanent_null = NULL; 10cd90: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) the_chain->last = _Chain_Head(the_chain); 10cd97: 8d 50 20 lea 0x20(%eax),%edx 10cd9a: 89 50 28 mov %edx,0x28(%eax) _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 10cd9d: 85 c9 test %ecx,%ecx 10cd9f: 75 13 jne 10cdb4 <_Objects_Initialize_information+0xcc> _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 10cda1: 8d 65 f4 lea -0xc(%ebp),%esp 10cda4: 5b pop %ebx 10cda5: 5e pop %esi 10cda6: 5f pop %edi 10cda7: c9 leave 10cda8: c3 ret 10cda9: 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) & 10cdac: 83 c6 04 add $0x4,%esi 10cdaf: 83 e6 fc and $0xfffffffc,%esi 10cdb2: eb d2 jmp 10cd86 <_Objects_Initialize_information+0x9e> /* * 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 ); 10cdb4: 89 45 08 mov %eax,0x8(%ebp) _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 10cdb7: 8d 65 f4 lea -0xc(%ebp),%esp 10cdba: 5b pop %ebx 10cdbb: 5e pop %esi 10cdbc: 5f pop %edi 10cdbd: 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 ); 10cdbe: e9 b1 fa ff ff jmp 10c874 <_Objects_Extend_information> /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred( 10cdc3: 50 push %eax 10cdc4: 6a 14 push $0x14 10cdc6: 6a 01 push $0x1 10cdc8: 6a 00 push $0x0 10cdca: e8 69 f9 ff ff call 10c738 <_Internal_error_Occurred> 00117130 <_Objects_Name_to_id_string>: Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( Objects_Information *information, const char *name, Objects_Id *id ) { 117130: 55 push %ebp 117131: 89 e5 mov %esp,%ebp 117133: 57 push %edi 117134: 56 push %esi 117135: 53 push %ebx 117136: 83 ec 1c sub $0x1c,%esp 117139: 8b 7d 08 mov 0x8(%ebp),%edi uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) 11713c: 8b 5d 10 mov 0x10(%ebp),%ebx 11713f: 85 db test %ebx,%ebx 117141: 74 75 je 1171b8 <_Objects_Name_to_id_string+0x88> return OBJECTS_INVALID_ADDRESS; if ( !name ) 117143: 8b 4d 0c mov 0xc(%ebp),%ecx 117146: 85 c9 test %ecx,%ecx 117148: 74 4b je 117195 <_Objects_Name_to_id_string+0x65> return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { 11714a: 8b 47 10 mov 0x10(%edi),%eax 11714d: 66 85 c0 test %ax,%ax 117150: 74 43 je 117195 <_Objects_Name_to_id_string+0x65> name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 117152: 0f b7 c0 movzwl %ax,%eax 117155: 89 45 e4 mov %eax,-0x1c(%ebp) 117158: 8b 47 1c mov 0x1c(%edi),%eax 11715b: bb 01 00 00 00 mov $0x1,%ebx 117160: 89 7d e0 mov %edi,-0x20(%ebp) 117163: 89 c7 mov %eax,%edi 117165: 8d 76 00 lea 0x0(%esi),%esi the_object = information->local_table[ index ]; 117168: 8b 34 9f mov (%edi,%ebx,4),%esi if ( !the_object ) 11716b: 85 f6 test %esi,%esi 11716d: 74 20 je 11718f <_Objects_Name_to_id_string+0x5f> continue; if ( !the_object->name.name_p ) 11716f: 8b 46 0c mov 0xc(%esi),%eax 117172: 85 c0 test %eax,%eax 117174: 74 19 je 11718f <_Objects_Name_to_id_string+0x5f> continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { 117176: 52 push %edx 117177: 8b 4d e0 mov -0x20(%ebp),%ecx 11717a: 0f b7 51 3a movzwl 0x3a(%ecx),%edx 11717e: 52 push %edx 11717f: 50 push %eax 117180: ff 75 0c pushl 0xc(%ebp) 117183: e8 d0 39 00 00 call 11ab58 117188: 83 c4 10 add $0x10,%esp 11718b: 85 c0 test %eax,%eax 11718d: 74 15 je 1171a4 <_Objects_Name_to_id_string+0x74> return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 11718f: 43 inc %ebx 117190: 3b 5d e4 cmp -0x1c(%ebp),%ebx 117193: 76 d3 jbe 117168 <_Objects_Name_to_id_string+0x38> 117195: b8 01 00 00 00 mov $0x1,%eax } } } return OBJECTS_INVALID_NAME; } 11719a: 8d 65 f4 lea -0xc(%ebp),%esp 11719d: 5b pop %ebx 11719e: 5e pop %esi 11719f: 5f pop %edi 1171a0: c9 leave 1171a1: c3 ret 1171a2: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !the_object->name.name_p ) continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { *id = the_object->id; 1171a4: 8b 46 08 mov 0x8(%esi),%eax 1171a7: 8b 55 10 mov 0x10(%ebp),%edx 1171aa: 89 02 mov %eax,(%edx) 1171ac: 31 c0 xor %eax,%eax } } } return OBJECTS_INVALID_NAME; } 1171ae: 8d 65 f4 lea -0xc(%ebp),%esp 1171b1: 5b pop %ebx 1171b2: 5e pop %esi 1171b3: 5f pop %edi 1171b4: c9 leave 1171b5: c3 ret 1171b6: 66 90 xchg %ax,%ax <== NOT EXECUTED uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) 1171b8: b8 02 00 00 00 mov $0x2,%eax } } } return OBJECTS_INVALID_NAME; } 1171bd: 8d 65 f4 lea -0xc(%ebp),%esp 1171c0: 5b pop %ebx 1171c1: 5e pop %esi 1171c2: 5f pop %edi 1171c3: c9 leave 1171c4: c3 ret 0010ce04 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 10ce04: 55 push %ebp 10ce05: 89 e5 mov %esp,%ebp 10ce07: 57 push %edi 10ce08: 56 push %esi 10ce09: 53 push %ebx 10ce0a: 8b 45 08 mov 0x8(%ebp),%eax 10ce0d: 8b 4d 0c mov 0xc(%ebp),%ecx 10ce10: 8b 55 10 mov 0x10(%ebp),%edx 10ce13: 8b 7d 14 mov 0x14(%ebp),%edi Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 10ce16: 85 ff test %edi,%edi 10ce18: 74 56 je 10ce70 <_Objects_Name_to_id_u32+0x6c> return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 10ce1a: 85 c9 test %ecx,%ecx 10ce1c: 74 08 je 10ce26 <_Objects_Name_to_id_u32+0x22> return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10ce1e: 8b 70 10 mov 0x10(%eax),%esi 10ce21: 66 85 f6 test %si,%si 10ce24: 75 0a jne 10ce30 <_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++ ) { 10ce26: 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 } 10ce2b: 5b pop %ebx 10ce2c: 5e pop %esi 10ce2d: 5f pop %edi 10ce2e: c9 leave 10ce2f: c3 ret if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10ce30: 85 d2 test %edx,%edx 10ce32: 75 20 jne 10ce54 <_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++ ) { 10ce34: 0f b7 f6 movzwl %si,%esi 10ce37: 8b 58 1c mov 0x1c(%eax),%ebx 10ce3a: b8 01 00 00 00 mov $0x1,%eax 10ce3f: 90 nop the_object = information->local_table[ index ]; 10ce40: 8b 14 83 mov (%ebx,%eax,4),%edx if ( !the_object ) 10ce43: 85 d2 test %edx,%edx 10ce45: 74 05 je 10ce4c <_Objects_Name_to_id_u32+0x48> continue; if ( name == the_object->name.name_u32 ) { 10ce47: 39 4a 0c cmp %ecx,0xc(%edx) 10ce4a: 74 18 je 10ce64 <_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++ ) { 10ce4c: 40 inc %eax 10ce4d: 39 c6 cmp %eax,%esi 10ce4f: 73 ef jae 10ce40 <_Objects_Name_to_id_u32+0x3c> 10ce51: eb d3 jmp 10ce26 <_Objects_Name_to_id_u32+0x22> 10ce53: 90 nop <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10ce54: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx 10ce5a: 74 d8 je 10ce34 <_Objects_Name_to_id_u32+0x30> 10ce5c: 4a dec %edx 10ce5d: 75 c7 jne 10ce26 <_Objects_Name_to_id_u32+0x22> 10ce5f: eb d3 jmp 10ce34 <_Objects_Name_to_id_u32+0x30> 10ce61: 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; 10ce64: 8b 42 08 mov 0x8(%edx),%eax 10ce67: 89 07 mov %eax,(%edi) 10ce69: 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 } 10ce6b: 5b pop %ebx 10ce6c: 5e pop %esi 10ce6d: 5f pop %edi 10ce6e: c9 leave 10ce6f: c3 ret Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 10ce70: 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 } 10ce75: 5b pop %ebx 10ce76: 5e pop %esi 10ce77: 5f pop %edi 10ce78: c9 leave 10ce79: c3 ret 0010d4c4 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 10d4c4: 55 push %ebp 10d4c5: 89 e5 mov %esp,%ebp 10d4c7: 57 push %edi 10d4c8: 56 push %esi 10d4c9: 53 push %ebx 10d4ca: 83 ec 14 sub $0x14,%esp 10d4cd: 8b 7d 08 mov 0x8(%ebp),%edi 10d4d0: 8b 5d 10 mov 0x10(%ebp),%ebx size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 10d4d3: 0f b7 47 3a movzwl 0x3a(%edi),%eax 10d4d7: 50 push %eax 10d4d8: 53 push %ebx 10d4d9: e8 62 7e 00 00 call 115340 10d4de: 89 c6 mov %eax,%esi #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { 10d4e0: 83 c4 10 add $0x10,%esp 10d4e3: 80 7f 38 00 cmpb $0x0,0x38(%edi) 10d4e7: 75 53 jne 10d53c <_Objects_Set_name+0x78> d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 10d4e9: 0f be 13 movsbl (%ebx),%edx 10d4ec: c1 e2 18 shl $0x18,%edx 10d4ef: 83 f8 01 cmp $0x1,%eax 10d4f2: 76 34 jbe 10d528 <_Objects_Set_name+0x64> 10d4f4: 0f be 43 01 movsbl 0x1(%ebx),%eax 10d4f8: c1 e0 10 shl $0x10,%eax 10d4fb: 09 d0 or %edx,%eax 10d4fd: 83 fe 02 cmp $0x2,%esi 10d500: 74 2d je 10d52f <_Objects_Set_name+0x6b> 10d502: 0f be 53 02 movsbl 0x2(%ebx),%edx 10d506: c1 e2 08 shl $0x8,%edx 10d509: 09 c2 or %eax,%edx 10d50b: 83 fe 03 cmp $0x3,%esi 10d50e: 74 24 je 10d534 <_Objects_Set_name+0x70> 10d510: 0f be 43 03 movsbl 0x3(%ebx),%eax 10d514: 09 c2 or %eax,%edx 10d516: 8b 45 0c mov 0xc(%ebp),%eax 10d519: 89 50 0c mov %edx,0xc(%eax) 10d51c: b0 01 mov $0x1,%al ); } return true; } 10d51e: 8d 65 f4 lea -0xc(%ebp),%esp 10d521: 5b pop %ebx 10d522: 5e pop %esi 10d523: 5f pop %edi 10d524: c9 leave 10d525: c3 ret 10d526: 66 90 xchg %ax,%ax <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 10d528: 89 d0 mov %edx,%eax 10d52a: 0d 00 00 20 00 or $0x200000,%eax 10d52f: 89 c2 mov %eax,%edx 10d531: 80 ce 20 or $0x20,%dh 10d534: b8 20 00 00 00 mov $0x20,%eax 10d539: eb d9 jmp 10d514 <_Objects_Set_name+0x50> 10d53b: 90 nop <== NOT EXECUTED #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); 10d53c: 83 ec 0c sub $0xc,%esp 10d53f: 8d 40 01 lea 0x1(%eax),%eax 10d542: 50 push %eax 10d543: e8 50 18 00 00 call 10ed98 <_Workspace_Allocate> 10d548: 89 c7 mov %eax,%edi if ( !d ) 10d54a: 83 c4 10 add $0x10,%esp 10d54d: 85 c0 test %eax,%eax 10d54f: 74 43 je 10d594 <_Objects_Set_name+0xd0> return false; if ( the_object->name.name_p ) { 10d551: 8b 55 0c mov 0xc(%ebp),%edx 10d554: 8b 42 0c mov 0xc(%edx),%eax 10d557: 85 c0 test %eax,%eax 10d559: 74 16 je 10d571 <_Objects_Set_name+0xad> _Workspace_Free( (void *)the_object->name.name_p ); 10d55b: 83 ec 0c sub $0xc,%esp 10d55e: 50 push %eax 10d55f: e8 50 18 00 00 call 10edb4 <_Workspace_Free> the_object->name.name_p = NULL; 10d564: 8b 45 0c mov 0xc(%ebp),%eax 10d567: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) 10d56e: 83 c4 10 add $0x10,%esp } strncpy( d, name, length ); 10d571: 50 push %eax 10d572: 56 push %esi 10d573: 53 push %ebx 10d574: 57 push %edi 10d575: e8 4a 7d 00 00 call 1152c4 d[length] = '\0'; 10d57a: c6 04 37 00 movb $0x0,(%edi,%esi,1) the_object->name.name_p = d; 10d57e: 8b 55 0c mov 0xc(%ebp),%edx 10d581: 89 7a 0c mov %edi,0xc(%edx) 10d584: b0 01 mov $0x1,%al 10d586: 83 c4 10 add $0x10,%esp ); } return true; } 10d589: 8d 65 f4 lea -0xc(%ebp),%esp 10d58c: 5b pop %ebx 10d58d: 5e pop %esi 10d58e: 5f pop %edi 10d58f: c9 leave 10d590: c3 ret 10d591: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); if ( !d ) 10d594: 31 c0 xor %eax,%eax <== NOT EXECUTED 10d596: eb 86 jmp 10d51e <_Objects_Set_name+0x5a> <== NOT EXECUTED 0010ce7c <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 10ce7c: 55 push %ebp 10ce7d: 89 e5 mov %esp,%ebp 10ce7f: 57 push %edi 10ce80: 56 push %esi 10ce81: 53 push %ebx 10ce82: 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 ); 10ce85: 8b 45 08 mov 0x8(%ebp),%eax 10ce88: 0f b7 58 08 movzwl 0x8(%eax),%ebx block_count = (information->maximum - index_base) / 10ce8c: 0f b7 48 14 movzwl 0x14(%eax),%ecx 10ce90: 0f b7 40 10 movzwl 0x10(%eax),%eax 10ce94: 29 d8 sub %ebx,%eax 10ce96: 31 d2 xor %edx,%edx 10ce98: f7 f1 div %ecx information->allocation_size; for ( block = 0; block < block_count; block++ ) { 10ce9a: 85 c0 test %eax,%eax 10ce9c: 74 21 je 10cebf <_Objects_Shrink_information+0x43> if ( information->inactive_per_block[ block ] == 10ce9e: 8b 55 08 mov 0x8(%ebp),%edx 10cea1: 8b 7a 30 mov 0x30(%edx),%edi 10cea4: 3b 0f cmp (%edi),%ecx 10cea6: 74 1f je 10cec7 <_Objects_Shrink_information+0x4b> information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 10cea8: 31 d2 xor %edx,%edx 10ceaa: eb 0e jmp 10ceba <_Objects_Shrink_information+0x3e> } index_base += information->allocation_size; 10ceac: 01 cb add %ecx,%ebx 10ceae: 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 ] == 10ceb5: 3b 0c 97 cmp (%edi,%edx,4),%ecx 10ceb8: 74 12 je 10cecc <_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++ ) { 10ceba: 42 inc %edx 10cebb: 39 d0 cmp %edx,%eax 10cebd: 77 ed ja 10ceac <_Objects_Shrink_information+0x30> return; } index_base += information->allocation_size; } } 10cebf: 8d 65 f4 lea -0xc(%ebp),%esp 10cec2: 5b pop %ebx 10cec3: 5e pop %esi 10cec4: 5f pop %edi 10cec5: c9 leave 10cec6: 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 ] == 10cec7: 31 f6 xor %esi,%esi <== NOT EXECUTED 10cec9: 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; 10cecc: 8b 55 08 mov 0x8(%ebp),%edx 10cecf: 8b 42 20 mov 0x20(%edx),%eax 10ced2: 89 75 e4 mov %esi,-0x1c(%ebp) 10ced5: eb 07 jmp 10cede <_Objects_Shrink_information+0x62> 10ced7: 90 nop <== NOT EXECUTED if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 10ced8: 85 ff test %edi,%edi 10ceda: 74 2c je 10cf08 <_Objects_Shrink_information+0x8c> 10cedc: 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 ); 10cede: 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; 10cee2: 8b 38 mov (%eax),%edi if ((index >= index_base) && 10cee4: 39 da cmp %ebx,%edx 10cee6: 72 f0 jb 10ced8 <_Objects_Shrink_information+0x5c> (index < (index_base + information->allocation_size))) { 10cee8: 8b 75 08 mov 0x8(%ebp),%esi 10ceeb: 0f b7 4e 14 movzwl 0x14(%esi),%ecx 10ceef: 8d 0c 0b lea (%ebx,%ecx,1),%ecx 10cef2: 39 ca cmp %ecx,%edx 10cef4: 73 e2 jae 10ced8 <_Objects_Shrink_information+0x5c> _Chain_Extract( &extract_me->Node ); 10cef6: 83 ec 0c sub $0xc,%esp 10cef9: 50 push %eax 10cefa: e8 15 3b 00 00 call 110a14 <_Chain_Extract> 10ceff: 83 c4 10 add $0x10,%esp } } while ( the_object ); 10cf02: 85 ff test %edi,%edi 10cf04: 75 d6 jne 10cedc <_Objects_Shrink_information+0x60> 10cf06: 66 90 xchg %ax,%ax 10cf08: 8b 75 e4 mov -0x1c(%ebp),%esi /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 10cf0b: 83 ec 0c sub $0xc,%esp 10cf0e: 8b 55 08 mov 0x8(%ebp),%edx 10cf11: 8b 42 34 mov 0x34(%edx),%eax 10cf14: ff 34 30 pushl (%eax,%esi,1) 10cf17: e8 7c 17 00 00 call 10e698 <_Workspace_Free> information->object_blocks[ block ] = NULL; 10cf1c: 8b 55 08 mov 0x8(%ebp),%edx 10cf1f: 8b 42 34 mov 0x34(%edx),%eax 10cf22: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1) information->inactive_per_block[ block ] = 0; 10cf29: 8b 42 30 mov 0x30(%edx),%eax 10cf2c: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1) information->inactive -= information->allocation_size; 10cf33: 8b 42 14 mov 0x14(%edx),%eax 10cf36: 66 29 42 2c sub %ax,0x2c(%edx) return; 10cf3a: 83 c4 10 add $0x10,%esp } index_base += information->allocation_size; } } 10cf3d: 8d 65 f4 lea -0xc(%ebp),%esp 10cf40: 5b pop %ebx 10cf41: 5e pop %esi 10cf42: 5f pop %edi 10cf43: c9 leave 10cf44: c3 ret 0010d468 <_POSIX_Absolute_timeout_to_ticks>: */ POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks( const struct timespec *abstime, Watchdog_Interval *ticks_out ) { 10d468: 55 push %ebp 10d469: 89 e5 mov %esp,%ebp 10d46b: 57 push %edi 10d46c: 56 push %esi 10d46d: 53 push %ebx 10d46e: 83 ec 38 sub $0x38,%esp 10d471: 8b 5d 08 mov 0x8(%ebp),%ebx 10d474: 8b 75 0c mov 0xc(%ebp),%esi /* * Make sure there is always a value returned. */ *ticks_out = 0; 10d477: c7 06 00 00 00 00 movl $0x0,(%esi) /* * Is the absolute time even valid? */ if ( !_Timespec_Is_valid(abstime) ) 10d47d: 53 push %ebx 10d47e: e8 45 3c 00 00 call 1110c8 <_Timespec_Is_valid> 10d483: 83 c4 10 add $0x10,%esp 10d486: 84 c0 test %al,%al 10d488: 75 0a jne 10d494 <_POSIX_Absolute_timeout_to_ticks+0x2c> 10d48a: 31 c0 xor %eax,%eax /* * This is the case we were expecting and it took this long to * get here. */ return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE; } 10d48c: 8d 65 f4 lea -0xc(%ebp),%esp 10d48f: 5b pop %ebx 10d490: 5e pop %esi 10d491: 5f pop %edi 10d492: c9 leave 10d493: c3 ret return POSIX_ABSOLUTE_TIMEOUT_INVALID; /* * Is the absolute time in the past? */ _TOD_Get( ¤t_time ); 10d494: 83 ec 0c sub $0xc,%esp 10d497: 8d 7d e0 lea -0x20(%ebp),%edi 10d49a: 57 push %edi 10d49b: e8 58 1d 00 00 call 10f1f8 <_TOD_Get> if ( _Timespec_Less_than( abstime, ¤t_time ) ) 10d4a0: 5a pop %edx 10d4a1: 59 pop %ecx 10d4a2: 57 push %edi 10d4a3: 53 push %ebx 10d4a4: e8 47 3c 00 00 call 1110f0 <_Timespec_Less_than> 10d4a9: 83 c4 10 add $0x10,%esp 10d4ac: 84 c0 test %al,%al 10d4ae: 74 10 je 10d4c0 <_POSIX_Absolute_timeout_to_ticks+0x58> 10d4b0: b8 01 00 00 00 mov $0x1,%eax /* * This is the case we were expecting and it took this long to * get here. */ return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE; } 10d4b5: 8d 65 f4 lea -0xc(%ebp),%esp 10d4b8: 5b pop %ebx 10d4b9: 5e pop %esi 10d4ba: 5f pop %edi 10d4bb: c9 leave 10d4bc: c3 ret 10d4bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST; /* * How long until the requested absolute time? */ _Timespec_Subtract( ¤t_time, abstime, &difference ); 10d4c0: 50 push %eax 10d4c1: 8d 45 d8 lea -0x28(%ebp),%eax 10d4c4: 50 push %eax 10d4c5: 53 push %ebx 10d4c6: 57 push %edi 10d4c7: 89 45 d4 mov %eax,-0x2c(%ebp) 10d4ca: e8 45 3c 00 00 call 111114 <_Timespec_Subtract> /* * Internally the SuperCore uses ticks, so convert to them. */ *ticks_out = _Timespec_To_ticks( &difference ); 10d4cf: 8b 45 d4 mov -0x2c(%ebp),%eax 10d4d2: 89 04 24 mov %eax,(%esp) 10d4d5: e8 76 3c 00 00 call 111150 <_Timespec_To_ticks> 10d4da: 89 06 mov %eax,(%esi) /* * If the difference was 0, then the future is now. It is so bright * we better wear shades. */ if ( !*ticks_out ) 10d4dc: 83 c4 10 add $0x10,%esp 10d4df: 83 f8 01 cmp $0x1,%eax 10d4e2: 19 c0 sbb %eax,%eax 10d4e4: 83 c0 03 add $0x3,%eax /* * This is the case we were expecting and it took this long to * get here. */ return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE; } 10d4e7: 8d 65 f4 lea -0xc(%ebp),%esp 10d4ea: 5b pop %ebx 10d4eb: 5e pop %esi 10d4ec: 5f pop %edi 10d4ed: c9 leave 10d4ee: c3 ret 0010bfc0 <_POSIX_Condition_variables_Get>: POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( pthread_cond_t *cond, Objects_Locations *location ) { 10bfc0: 55 push %ebp 10bfc1: 89 e5 mov %esp,%ebp 10bfc3: 56 push %esi 10bfc4: 53 push %ebx 10bfc5: 8b 5d 08 mov 0x8(%ebp),%ebx 10bfc8: 8b 75 0c mov 0xc(%ebp),%esi int status; if ( !cond ) { 10bfcb: 85 db test %ebx,%ebx 10bfcd: 74 39 je 10c008 <_POSIX_Condition_variables_Get+0x48> *location = OBJECTS_ERROR; return (POSIX_Condition_variables_Control *) 0; } if ( *cond == PTHREAD_COND_INITIALIZER ) { 10bfcf: 8b 03 mov (%ebx),%eax 10bfd1: 83 f8 ff cmp $0xffffffff,%eax 10bfd4: 74 1a je 10bff0 <_POSIX_Condition_variables_Get+0x30> } /* * Now call Objects_Get() */ return (POSIX_Condition_variables_Control *)_Objects_Get( 10bfd6: 52 push %edx 10bfd7: 56 push %esi 10bfd8: 50 push %eax 10bfd9: 68 20 a3 12 00 push $0x12a320 10bfde: e8 15 2b 00 00 call 10eaf8 <_Objects_Get> 10bfe3: 83 c4 10 add $0x10,%esp &_POSIX_Condition_variables_Information, (Objects_Id) *cond, location ); } 10bfe6: 8d 65 f8 lea -0x8(%ebp),%esp 10bfe9: 5b pop %ebx 10bfea: 5e pop %esi 10bfeb: c9 leave 10bfec: c3 ret 10bfed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( *cond == PTHREAD_COND_INITIALIZER ) { /* * Do an "auto-create" here. */ status = pthread_cond_init( cond, 0 ); 10bff0: 83 ec 08 sub $0x8,%esp 10bff3: 6a 00 push $0x0 10bff5: 53 push %ebx 10bff6: e8 19 00 00 00 call 10c014 if ( status ) { 10bffb: 83 c4 10 add $0x10,%esp 10bffe: 85 c0 test %eax,%eax 10c000: 75 06 jne 10c008 <_POSIX_Condition_variables_Get+0x48> 10c002: 8b 03 mov (%ebx),%eax 10c004: eb d0 jmp 10bfd6 <_POSIX_Condition_variables_Get+0x16> 10c006: 66 90 xchg %ax,%ax <== NOT EXECUTED *location = OBJECTS_ERROR; 10c008: c7 06 01 00 00 00 movl $0x1,(%esi) 10c00e: 31 c0 xor %eax,%eax return (POSIX_Condition_variables_Control *) 0; 10c010: eb d4 jmp 10bfe6 <_POSIX_Condition_variables_Get+0x26> 0010c0dc <_POSIX_Condition_variables_Signal_support>: int _POSIX_Condition_variables_Signal_support( pthread_cond_t *cond, bool is_broadcast ) { 10c0dc: 55 push %ebp 10c0dd: 89 e5 mov %esp,%ebp 10c0df: 57 push %edi 10c0e0: 56 push %esi 10c0e1: 53 push %ebx 10c0e2: 83 ec 24 sub $0x24,%esp 10c0e5: 8a 5d 0c mov 0xc(%ebp),%bl register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; Thread_Control *the_thread; the_cond = _POSIX_Condition_variables_Get( cond, &location ); 10c0e8: 8d 45 e4 lea -0x1c(%ebp),%eax 10c0eb: 50 push %eax 10c0ec: ff 75 08 pushl 0x8(%ebp) 10c0ef: e8 cc fe ff ff call 10bfc0 <_POSIX_Condition_variables_Get> 10c0f4: 89 c7 mov %eax,%edi switch ( location ) { 10c0f6: 83 c4 10 add $0x10,%esp 10c0f9: 8b 45 e4 mov -0x1c(%ebp),%eax 10c0fc: 85 c0 test %eax,%eax 10c0fe: 74 10 je 10c110 <_POSIX_Condition_variables_Signal_support+0x34> 10c100: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c105: 8d 65 f4 lea -0xc(%ebp),%esp 10c108: 5b pop %ebx 10c109: 5e pop %esi 10c10a: 5f pop %edi 10c10b: c9 leave 10c10c: c3 ret 10c10d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); 10c110: 8d 77 18 lea 0x18(%edi),%esi 10c113: eb 0b jmp 10c120 <_POSIX_Condition_variables_Signal_support+0x44> 10c115: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !the_thread ) the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; } while ( is_broadcast && the_thread ); 10c118: 84 db test %bl,%bl 10c11a: 74 20 je 10c13c <_POSIX_Condition_variables_Signal_support+0x60> 10c11c: 85 c0 test %eax,%eax 10c11e: 74 1c je 10c13c <_POSIX_Condition_variables_Signal_support+0x60> the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); 10c120: 83 ec 0c sub $0xc,%esp 10c123: 56 push %esi 10c124: e8 37 36 00 00 call 10f760 <_Thread_queue_Dequeue> if ( !the_thread ) 10c129: 83 c4 10 add $0x10,%esp 10c12c: 85 c0 test %eax,%eax 10c12e: 75 e8 jne 10c118 <_POSIX_Condition_variables_Signal_support+0x3c> the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; 10c130: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi) } while ( is_broadcast && the_thread ); 10c137: 84 db test %bl,%bl 10c139: 75 e1 jne 10c11c <_POSIX_Condition_variables_Signal_support+0x40> 10c13b: 90 nop _Thread_Enable_dispatch(); 10c13c: e8 2b 32 00 00 call 10f36c <_Thread_Enable_dispatch> 10c141: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c143: 8d 65 f4 lea -0xc(%ebp),%esp 10c146: 5b pop %ebx 10c147: 5e pop %esi 10c148: 5f pop %edi 10c149: c9 leave 10c14a: c3 ret 0010c1a4 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 10c1a4: 55 push %ebp 10c1a5: 89 e5 mov %esp,%ebp 10c1a7: 57 push %edi 10c1a8: 56 push %esi 10c1a9: 53 push %ebx 10c1aa: 83 ec 34 sub $0x34,%esp 10c1ad: 8b 7d 08 mov 0x8(%ebp),%edi 10c1b0: 8b 5d 0c mov 0xc(%ebp),%ebx 10c1b3: 8a 45 14 mov 0x14(%ebp),%al 10c1b6: 88 45 d7 mov %al,-0x29(%ebp) register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { 10c1b9: 8d 75 e4 lea -0x1c(%ebp),%esi 10c1bc: 56 push %esi 10c1bd: 53 push %ebx 10c1be: e8 b1 01 00 00 call 10c374 <_POSIX_Mutex_Get> 10c1c3: 83 c4 10 add $0x10,%esp 10c1c6: 85 c0 test %eax,%eax 10c1c8: 74 21 je 10c1eb <_POSIX_Condition_variables_Wait_support+0x47> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 10c1ca: a1 38 9e 12 00 mov 0x129e38,%eax 10c1cf: 48 dec %eax 10c1d0: a3 38 9e 12 00 mov %eax,0x129e38 return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 10c1d5: 83 ec 08 sub $0x8,%esp 10c1d8: 56 push %esi 10c1d9: 57 push %edi 10c1da: e8 e1 fd ff ff call 10bfc0 <_POSIX_Condition_variables_Get> 10c1df: 89 c6 mov %eax,%esi switch ( location ) { 10c1e1: 83 c4 10 add $0x10,%esp 10c1e4: 8b 55 e4 mov -0x1c(%ebp),%edx 10c1e7: 85 d2 test %edx,%edx 10c1e9: 74 11 je 10c1fc <_POSIX_Condition_variables_Wait_support+0x58> /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); if ( mutex_status ) 10c1eb: be 16 00 00 00 mov $0x16,%esi case OBJECTS_ERROR: break; } return EINVAL; } 10c1f0: 89 f0 mov %esi,%eax 10c1f2: 8d 65 f4 lea -0xc(%ebp),%esp 10c1f5: 5b pop %ebx 10c1f6: 5e pop %esi 10c1f7: 5f pop %edi 10c1f8: c9 leave 10c1f9: c3 ret 10c1fa: 66 90 xchg %ax,%ax <== NOT EXECUTED the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { 10c1fc: 8b 40 14 mov 0x14(%eax),%eax 10c1ff: 85 c0 test %eax,%eax 10c201: 74 19 je 10c21c <_POSIX_Condition_variables_Wait_support+0x78> 10c203: 3b 03 cmp (%ebx),%eax 10c205: 74 15 je 10c21c <_POSIX_Condition_variables_Wait_support+0x78> _Thread_Enable_dispatch(); 10c207: e8 60 31 00 00 call 10f36c <_Thread_Enable_dispatch> 10c20c: be 16 00 00 00 mov $0x16,%esi case OBJECTS_ERROR: break; } return EINVAL; } 10c211: 89 f0 mov %esi,%eax 10c213: 8d 65 f4 lea -0xc(%ebp),%esp 10c216: 5b pop %ebx 10c217: 5e pop %esi 10c218: 5f pop %edi 10c219: c9 leave 10c21a: c3 ret 10c21b: 90 nop <== NOT EXECUTED if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { _Thread_Enable_dispatch(); return EINVAL; } (void) pthread_mutex_unlock( mutex ); 10c21c: 83 ec 0c sub $0xc,%esp 10c21f: 53 push %ebx 10c220: e8 73 03 00 00 call 10c598 _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { 10c225: 83 c4 10 add $0x10,%esp 10c228: 80 7d d7 00 cmpb $0x0,-0x29(%ebp) 10c22c: 74 26 je 10c254 <_POSIX_Condition_variables_Wait_support+0xb0> status = _Thread_Executing->Wait.return_code; if ( status && status != ETIMEDOUT ) return status; } else { _Thread_Enable_dispatch(); 10c22e: e8 39 31 00 00 call 10f36c <_Thread_Enable_dispatch> 10c233: be 74 00 00 00 mov $0x74,%esi /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); 10c238: 83 ec 0c sub $0xc,%esp 10c23b: 53 push %ebx 10c23c: e8 cf 02 00 00 call 10c510 if ( mutex_status ) 10c241: 83 c4 10 add $0x10,%esp 10c244: 85 c0 test %eax,%eax 10c246: 75 a3 jne 10c1eb <_POSIX_Condition_variables_Wait_support+0x47> case OBJECTS_ERROR: break; } return EINVAL; } 10c248: 89 f0 mov %esi,%eax 10c24a: 8d 65 f4 lea -0xc(%ebp),%esp 10c24d: 5b pop %ebx 10c24e: 5e pop %esi 10c24f: 5f pop %edi 10c250: c9 leave 10c251: c3 ret 10c252: 66 90 xchg %ax,%ax <== NOT EXECUTED return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 10c254: 8b 03 mov (%ebx),%eax 10c256: 89 46 14 mov %eax,0x14(%esi) RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 10c259: c7 46 48 01 00 00 00 movl $0x1,0x48(%esi) _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 10c260: a1 f8 9e 12 00 mov 0x129ef8,%eax 10c265: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) _Thread_Executing->Wait.queue = &the_cond->Wait_queue; 10c26c: 83 c6 18 add $0x18,%esi 10c26f: 89 70 44 mov %esi,0x44(%eax) _Thread_Executing->Wait.id = *cond; 10c272: 8b 17 mov (%edi),%edx 10c274: 89 50 20 mov %edx,0x20(%eax) _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); 10c277: 50 push %eax 10c278: 68 e0 fb 10 00 push $0x10fbe0 10c27d: ff 75 10 pushl 0x10(%ebp) 10c280: 56 push %esi 10c281: e8 f6 35 00 00 call 10f87c <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 10c286: e8 e1 30 00 00 call 10f36c <_Thread_Enable_dispatch> /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; 10c28b: a1 f8 9e 12 00 mov 0x129ef8,%eax 10c290: 8b 70 34 mov 0x34(%eax),%esi if ( status && status != ETIMEDOUT ) 10c293: 83 c4 10 add $0x10,%esp 10c296: 85 f6 test %esi,%esi 10c298: 74 9e je 10c238 <_POSIX_Condition_variables_Wait_support+0x94> 10c29a: 83 fe 74 cmp $0x74,%esi 10c29d: 0f 85 4d ff ff ff jne 10c1f0 <_POSIX_Condition_variables_Wait_support+0x4c> 10c2a3: eb 93 jmp 10c238 <_POSIX_Condition_variables_Wait_support+0x94> 00115c88 <_POSIX_Message_queue_Create_support>: const char *name_arg, int pshared, struct mq_attr *attr_ptr, POSIX_Message_queue_Control **message_queue ) { 115c88: 55 push %ebp 115c89: 89 e5 mov %esp,%ebp 115c8b: 57 push %edi 115c8c: 56 push %esi 115c8d: 53 push %ebx 115c8e: 83 ec 34 sub $0x34,%esp 115c91: 8b 75 10 mov 0x10(%ebp),%esi CORE_message_queue_Attributes *the_mq_attr; struct mq_attr attr; char *name; size_t n; n = strnlen( name_arg, NAME_MAX ); 115c94: 68 ff 00 00 00 push $0xff 115c99: ff 75 08 pushl 0x8(%ebp) 115c9c: e8 af 4f 00 00 call 11ac50 115ca1: 89 c3 mov %eax,%ebx 115ca3: a1 78 01 13 00 mov 0x130178,%eax 115ca8: 40 inc %eax 115ca9: a3 78 01 13 00 mov %eax,0x130178 * There is no real basis for the default values. They will work * but were not compared against any existing implementation for * compatibility. See README.mqueue for an example program we * think will print out the defaults. Report anything you find with it. */ if ( attr_ptr == NULL ) { 115cae: 83 c4 10 add $0x10,%esp 115cb1: 85 f6 test %esi,%esi 115cb3: 0f 84 c3 00 00 00 je 115d7c <_POSIX_Message_queue_Create_support+0xf4> attr.mq_maxmsg = 10; attr.mq_msgsize = 16; } else { if ( attr_ptr->mq_maxmsg <= 0 ){ 115cb9: 8b 4e 04 mov 0x4(%esi),%ecx 115cbc: 85 c9 test %ecx,%ecx 115cbe: 0f 8e fc 00 00 00 jle 115dc0 <_POSIX_Message_queue_Create_support+0x138> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( attr_ptr->mq_msgsize <= 0 ){ 115cc4: 8b 56 08 mov 0x8(%esi),%edx 115cc7: 85 d2 test %edx,%edx 115cc9: 0f 8e f1 00 00 00 jle 115dc0 <_POSIX_Message_queue_Create_support+0x138> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } attr = *attr_ptr; 115ccf: 8d 7d d8 lea -0x28(%ebp),%edi 115cd2: b9 04 00 00 00 mov $0x4,%ecx 115cd7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 115cd9: 8b 45 dc mov -0x24(%ebp),%eax 115cdc: 89 45 d4 mov %eax,-0x2c(%ebp) 115cdf: 8b 45 e0 mov -0x20(%ebp),%eax 115ce2: 89 45 d0 mov %eax,-0x30(%ebp) */ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void ) { return (POSIX_Message_queue_Control *) 115ce5: 83 ec 0c sub $0xc,%esp 115ce8: 68 40 05 13 00 push $0x130540 115ced: e8 c6 c7 ff ff call 1124b8 <_Objects_Allocate> 115cf2: 89 c6 mov %eax,%esi } the_mq = _POSIX_Message_queue_Allocate(); if ( !the_mq ) { 115cf4: 83 c4 10 add $0x10,%esp 115cf7: 85 c0 test %eax,%eax 115cf9: 0f 84 03 01 00 00 je 115e02 <_POSIX_Message_queue_Create_support+0x17a> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENFILE ); } the_mq->process_shared = pshared; 115cff: 8b 45 0c mov 0xc(%ebp),%eax 115d02: 89 46 10 mov %eax,0x10(%esi) the_mq->named = true; 115d05: c6 46 14 01 movb $0x1,0x14(%esi) the_mq->open_count = 1; 115d09: c7 46 18 01 00 00 00 movl $0x1,0x18(%esi) the_mq->linked = true; 115d10: c6 46 15 01 movb $0x1,0x15(%esi) /* * Make a copy of the user's string for name just in case it was * dynamically constructed. */ name = _Workspace_Allocate(n+1); 115d14: 43 inc %ebx 115d15: 83 ec 0c sub $0xc,%esp 115d18: 53 push %ebx 115d19: e8 72 e7 ff ff call 114490 <_Workspace_Allocate> 115d1e: 89 c7 mov %eax,%edi if (!name) { 115d20: 83 c4 10 add $0x10,%esp 115d23: 85 c0 test %eax,%eax 115d25: 0f 84 ac 00 00 00 je 115dd7 <_POSIX_Message_queue_Create_support+0x14f> _POSIX_Message_queue_Free( the_mq ); _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENOMEM ); } strncpy( name, name_arg, n+1 ); 115d2b: 50 push %eax 115d2c: 53 push %ebx 115d2d: ff 75 08 pushl 0x8(%ebp) 115d30: 57 push %edi 115d31: e8 9e 4e 00 00 call 11abd4 * * Joel: Cite POSIX or OpenGroup on above statement so we can determine * if it is a real requirement. */ the_mq_attr = &the_mq->Message_queue.Attributes; the_mq_attr->discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; 115d36: c7 46 5c 00 00 00 00 movl $0x0,0x5c(%esi) if ( !_CORE_message_queue_Initialize( 115d3d: ff 75 d0 pushl -0x30(%ebp) 115d40: ff 75 d4 pushl -0x2c(%ebp) 115d43: 8d 46 5c lea 0x5c(%esi),%eax 115d46: 50 push %eax 115d47: 8d 46 1c lea 0x1c(%esi),%eax 115d4a: 50 push %eax 115d4b: e8 dc 0d 00 00 call 116b2c <_CORE_message_queue_Initialize> 115d50: 83 c4 20 add $0x20,%esp 115d53: 84 c0 test %al,%al 115d55: 74 39 je 115d90 <_POSIX_Message_queue_Create_support+0x108> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 115d57: 0f b7 56 08 movzwl 0x8(%esi),%edx 115d5b: a1 5c 05 13 00 mov 0x13055c,%eax 115d60: 89 34 90 mov %esi,(%eax,%edx,4) the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; 115d63: 89 7e 0c mov %edi,0xc(%esi) &_POSIX_Message_queue_Information, &the_mq->Object, name ); *message_queue = the_mq; 115d66: 8b 45 14 mov 0x14(%ebp),%eax 115d69: 89 30 mov %esi,(%eax) _Thread_Enable_dispatch(); 115d6b: e8 bc d4 ff ff call 11322c <_Thread_Enable_dispatch> 115d70: 31 c0 xor %eax,%eax return 0; } 115d72: 8d 65 f4 lea -0xc(%ebp),%esp 115d75: 5b pop %ebx 115d76: 5e pop %esi 115d77: 5f pop %edi 115d78: c9 leave 115d79: c3 ret 115d7a: 66 90 xchg %ax,%ax <== NOT EXECUTED * There is no real basis for the default values. They will work * but were not compared against any existing implementation for * compatibility. See README.mqueue for an example program we * think will print out the defaults. Report anything you find with it. */ if ( attr_ptr == NULL ) { 115d7c: c7 45 d4 0a 00 00 00 movl $0xa,-0x2c(%ebp) 115d83: c7 45 d0 10 00 00 00 movl $0x10,-0x30(%ebp) 115d8a: e9 56 ff ff ff jmp 115ce5 <_POSIX_Message_queue_Create_support+0x5d> 115d8f: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free ( POSIX_Message_queue_Control *the_mq ) { _Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object ); 115d90: 83 ec 08 sub $0x8,%esp 115d93: 56 push %esi 115d94: 68 40 05 13 00 push $0x130540 115d99: e8 9a ca ff ff call 112838 <_Objects_Free> attr.mq_maxmsg, attr.mq_msgsize ) ) { _POSIX_Message_queue_Free( the_mq ); _Workspace_Free(name); 115d9e: 89 3c 24 mov %edi,(%esp) 115da1: e8 06 e7 ff ff call 1144ac <_Workspace_Free> _Thread_Enable_dispatch(); 115da6: e8 81 d4 ff ff call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( ENOSPC ); 115dab: e8 5c 39 00 00 call 11970c <__errno> 115db0: c7 00 1c 00 00 00 movl $0x1c,(%eax) 115db6: b8 ff ff ff ff mov $0xffffffff,%eax 115dbb: 83 c4 10 add $0x10,%esp 115dbe: eb b2 jmp 115d72 <_POSIX_Message_queue_Create_support+0xea> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( attr_ptr->mq_msgsize <= 0 ){ _Thread_Enable_dispatch(); 115dc0: e8 67 d4 ff ff call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EINVAL ); 115dc5: e8 42 39 00 00 call 11970c <__errno> 115dca: c7 00 16 00 00 00 movl $0x16,(%eax) 115dd0: b8 ff ff ff ff mov $0xffffffff,%eax 115dd5: eb 9b jmp 115d72 <_POSIX_Message_queue_Create_support+0xea> 115dd7: 83 ec 08 sub $0x8,%esp 115dda: 56 push %esi 115ddb: 68 40 05 13 00 push $0x130540 115de0: e8 53 ca ff ff call 112838 <_Objects_Free> * dynamically constructed. */ name = _Workspace_Allocate(n+1); if (!name) { _POSIX_Message_queue_Free( the_mq ); _Thread_Enable_dispatch(); 115de5: e8 42 d4 ff ff call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( ENOMEM ); 115dea: e8 1d 39 00 00 call 11970c <__errno> 115def: c7 00 0c 00 00 00 movl $0xc,(%eax) 115df5: b8 ff ff ff ff mov $0xffffffff,%eax 115dfa: 83 c4 10 add $0x10,%esp 115dfd: e9 70 ff ff ff jmp 115d72 <_POSIX_Message_queue_Create_support+0xea> attr = *attr_ptr; } the_mq = _POSIX_Message_queue_Allocate(); if ( !the_mq ) { _Thread_Enable_dispatch(); 115e02: e8 25 d4 ff ff call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( ENFILE ); 115e07: e8 00 39 00 00 call 11970c <__errno> 115e0c: c7 00 17 00 00 00 movl $0x17,(%eax) 115e12: b8 ff ff ff ff mov $0xffffffff,%eax 115e17: e9 56 ff ff ff jmp 115d72 <_POSIX_Message_queue_Create_support+0xea> 00115e1c <_POSIX_Message_queue_Name_to_id>: */ int _POSIX_Message_queue_Name_to_id( const char *name, Objects_Id *id ) { 115e1c: 55 push %ebp 115e1d: 89 e5 mov %esp,%ebp 115e1f: 53 push %ebx 115e20: 83 ec 14 sub $0x14,%esp 115e23: 8b 5d 08 mov 0x8(%ebp),%ebx Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) 115e26: 85 db test %ebx,%ebx 115e28: 74 05 je 115e2f <_POSIX_Message_queue_Name_to_id+0x13> return EINVAL; if ( !name[0] ) 115e2a: 80 3b 00 cmpb $0x0,(%ebx) 115e2d: 75 0d jne 115e3c <_POSIX_Message_queue_Name_to_id+0x20> name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) 115e2f: b8 16 00 00 00 mov $0x16,%eax return 0; return ENOENT; } 115e34: 8b 5d fc mov -0x4(%ebp),%ebx 115e37: c9 leave 115e38: c3 ret 115e39: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return EINVAL; if ( !name[0] ) return EINVAL; if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) 115e3c: 83 ec 08 sub $0x8,%esp 115e3f: 68 ff 00 00 00 push $0xff 115e44: 53 push %ebx 115e45: e8 06 4e 00 00 call 11ac50 115e4a: 83 c4 10 add $0x10,%esp 115e4d: 3d fe 00 00 00 cmp $0xfe,%eax 115e52: 76 0c jbe 115e60 <_POSIX_Message_queue_Name_to_id+0x44> 115e54: b8 5b 00 00 00 mov $0x5b,%eax if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) return 0; return ENOENT; } 115e59: 8b 5d fc mov -0x4(%ebp),%ebx 115e5c: c9 leave 115e5d: c3 ret 115e5e: 66 90 xchg %ax,%ax <== NOT EXECUTED return EINVAL; if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) return ENAMETOOLONG; status = _Objects_Name_to_id_string( 115e60: 50 push %eax 115e61: 8d 45 f4 lea -0xc(%ebp),%eax 115e64: 50 push %eax 115e65: 53 push %ebx 115e66: 68 40 05 13 00 push $0x130540 115e6b: e8 c0 12 00 00 call 117130 <_Objects_Name_to_id_string> &_POSIX_Message_queue_Information, name, &the_id ); *id = the_id; 115e70: 8b 4d f4 mov -0xc(%ebp),%ecx 115e73: 8b 55 0c mov 0xc(%ebp),%edx 115e76: 89 0a mov %ecx,(%edx) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) 115e78: 83 c4 10 add $0x10,%esp 115e7b: 83 f8 01 cmp $0x1,%eax 115e7e: 19 c0 sbb %eax,%eax 115e80: f7 d0 not %eax 115e82: 83 e0 02 and $0x2,%eax return 0; return ENOENT; } 115e85: 8b 5d fc mov -0x4(%ebp),%ebx 115e88: c9 leave 115e89: c3 ret 0010fa70 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { 10fa70: 55 push %ebp 10fa71: 89 e5 mov %esp,%ebp 10fa73: 56 push %esi 10fa74: 53 push %ebx 10fa75: 83 ec 24 sub $0x24,%esp 10fa78: 8b 5d 08 mov 0x8(%ebp),%ebx 10fa7b: 8b 75 14 mov 0x14(%ebp),%esi 10fa7e: 8a 45 18 mov 0x18(%ebp),%al 10fa81: 88 45 e7 mov %al,-0x19(%ebp) RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd ( mqd_t id, Objects_Locations *location ) { return (POSIX_Message_queue_Control_fd *) _Objects_Get( 10fa84: 8d 45 f4 lea -0xc(%ebp),%eax 10fa87: 50 push %eax 10fa88: 53 push %ebx 10fa89: 68 e0 06 13 00 push $0x1306e0 10fa8e: e8 d5 2e 00 00 call 112968 <_Objects_Get> Objects_Locations location; size_t length_out; bool do_wait; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 10fa93: 83 c4 10 add $0x10,%esp 10fa96: 8b 55 f4 mov -0xc(%ebp),%edx 10fa99: 85 d2 test %edx,%edx 10fa9b: 74 17 je 10fab4 <_POSIX_Message_queue_Receive_support+0x44> #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 10fa9d: e8 6a 9c 00 00 call 11970c <__errno> 10faa2: c7 00 09 00 00 00 movl $0x9,(%eax) 10faa8: b8 ff ff ff ff mov $0xffffffff,%eax } 10faad: 8d 65 f8 lea -0x8(%ebp),%esp 10fab0: 5b pop %ebx 10fab1: 5e pop %esi 10fab2: c9 leave 10fab3: c3 ret the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { 10fab4: 8b 48 14 mov 0x14(%eax),%ecx 10fab7: 89 ca mov %ecx,%edx 10fab9: 83 e2 03 and $0x3,%edx 10fabc: 4a dec %edx 10fabd: 0f 84 af 00 00 00 je 10fb72 <_POSIX_Message_queue_Receive_support+0x102> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; 10fac3: 8b 50 10 mov 0x10(%eax),%edx if ( msg_len < the_mq->Message_queue.maximum_message_size ) { 10fac6: 8b 45 10 mov 0x10(%ebp),%eax 10fac9: 39 42 68 cmp %eax,0x68(%edx) 10facc: 77 62 ja 10fb30 <_POSIX_Message_queue_Receive_support+0xc0> length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 10face: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 10fad2: 75 48 jne 10fb1c <_POSIX_Message_queue_Receive_support+0xac> 10fad4: 31 c0 xor %eax,%eax <== NOT EXECUTED /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; 10fad6: c7 45 f0 ff ff ff ff movl $0xffffffff,-0x10(%ebp) do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( 10fadd: 83 ec 08 sub $0x8,%esp 10fae0: ff 75 1c pushl 0x1c(%ebp) 10fae3: 50 push %eax 10fae4: 8d 45 f0 lea -0x10(%ebp),%eax 10fae7: 50 push %eax 10fae8: ff 75 0c pushl 0xc(%ebp) 10faeb: 53 push %ebx 10faec: 83 c2 1c add $0x1c,%edx 10faef: 52 push %edx 10faf0: e8 4b 1f 00 00 call 111a40 <_CORE_message_queue_Seize> &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); 10faf5: 83 c4 20 add $0x20,%esp 10faf8: e8 2f 37 00 00 call 11322c <_Thread_Enable_dispatch> *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); 10fafd: a1 38 02 13 00 mov 0x130238,%eax do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = 10fb02: 8b 50 24 mov 0x24(%eax),%edx 10fb05: 89 16 mov %edx,(%esi) 10fb07: 85 d2 test %edx,%edx 10fb09: 78 21 js 10fb2c <_POSIX_Message_queue_Receive_support+0xbc> _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) 10fb0b: 8b 40 34 mov 0x34(%eax),%eax 10fb0e: 85 c0 test %eax,%eax 10fb10: 75 3a jne 10fb4c <_POSIX_Message_queue_Receive_support+0xdc> return length_out; 10fb12: 8b 45 f0 mov -0x10(%ebp),%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 10fb15: 8d 65 f8 lea -0x8(%ebp),%esp 10fb18: 5b pop %ebx 10fb19: 5e pop %esi 10fb1a: c9 leave 10fb1b: c3 ret length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 10fb1c: 89 c8 mov %ecx,%eax 10fb1e: c1 e8 0e shr $0xe,%eax 10fb21: 83 f0 01 xor $0x1,%eax 10fb24: 83 e0 01 and $0x1,%eax 10fb27: eb ad jmp 10fad6 <_POSIX_Message_queue_Receive_support+0x66> 10fb29: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = 10fb2c: f7 1e negl (%esi) 10fb2e: eb db jmp 10fb0b <_POSIX_Message_queue_Receive_support+0x9b> } the_mq = the_mq_fd->Queue; if ( msg_len < the_mq->Message_queue.maximum_message_size ) { _Thread_Enable_dispatch(); 10fb30: e8 f7 36 00 00 call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EMSGSIZE ); 10fb35: e8 d2 9b 00 00 call 11970c <__errno> 10fb3a: c7 00 7a 00 00 00 movl $0x7a,(%eax) 10fb40: b8 ff ff ff ff mov $0xffffffff,%eax 10fb45: e9 63 ff ff ff jmp 10faad <_POSIX_Message_queue_Receive_support+0x3d> 10fb4a: 66 90 xchg %ax,%ax <== NOT EXECUTED _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) return length_out; rtems_set_errno_and_return_minus_one( 10fb4c: e8 bb 9b 00 00 call 11970c <__errno> 10fb51: 89 c3 mov %eax,%ebx 10fb53: 83 ec 0c sub $0xc,%esp 10fb56: a1 38 02 13 00 mov 0x130238,%eax 10fb5b: ff 70 34 pushl 0x34(%eax) 10fb5e: e8 39 02 00 00 call 10fd9c <_POSIX_Message_queue_Translate_core_message_queue_return_code> 10fb63: 89 03 mov %eax,(%ebx) 10fb65: b8 ff ff ff ff mov $0xffffffff,%eax 10fb6a: 83 c4 10 add $0x10,%esp 10fb6d: e9 3b ff ff ff jmp 10faad <_POSIX_Message_queue_Receive_support+0x3d> the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { _Thread_Enable_dispatch(); 10fb72: e8 b5 36 00 00 call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EBADF ); 10fb77: e8 90 9b 00 00 call 11970c <__errno> 10fb7c: c7 00 09 00 00 00 movl $0x9,(%eax) 10fb82: b8 ff ff ff ff mov $0xffffffff,%eax 10fb87: e9 21 ff ff ff jmp 10faad <_POSIX_Message_queue_Receive_support+0x3d> 0010fbac <_POSIX_Message_queue_Send_support>: size_t msg_len, uint32_t msg_prio, bool wait, Watchdog_Interval timeout ) { 10fbac: 55 push %ebp 10fbad: 89 e5 mov %esp,%ebp 10fbaf: 57 push %edi 10fbb0: 56 push %esi 10fbb1: 53 push %ebx 10fbb2: 83 ec 2c sub $0x2c,%esp 10fbb5: 8b 75 08 mov 0x8(%ebp),%esi 10fbb8: 8b 5d 14 mov 0x14(%ebp),%ebx 10fbbb: 8a 55 18 mov 0x18(%ebp),%dl /* * Validate the priority. * XXX - Do not validate msg_prio is not less than 0. */ if ( msg_prio > MQ_PRIO_MAX ) 10fbbe: 83 fb 20 cmp $0x20,%ebx 10fbc1: 0f 87 9d 00 00 00 ja 10fc64 <_POSIX_Message_queue_Send_support+0xb8> 10fbc7: 51 push %ecx 10fbc8: 8d 45 e4 lea -0x1c(%ebp),%eax 10fbcb: 50 push %eax 10fbcc: 56 push %esi 10fbcd: 68 e0 06 13 00 push $0x1306e0 10fbd2: 88 55 d4 mov %dl,-0x2c(%ebp) 10fbd5: e8 8e 2d 00 00 call 112968 <_Objects_Get> rtems_set_errno_and_return_minus_one( EINVAL ); the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 10fbda: 83 c4 10 add $0x10,%esp 10fbdd: 8b 55 e4 mov -0x1c(%ebp),%edx 10fbe0: 85 d2 test %edx,%edx 10fbe2: 8a 55 d4 mov -0x2c(%ebp),%dl 10fbe5: 75 69 jne 10fc50 <_POSIX_Message_queue_Send_support+0xa4> case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) { 10fbe7: 8b 48 14 mov 0x14(%eax),%ecx 10fbea: f6 c1 03 test $0x3,%cl 10fbed: 0f 84 85 00 00 00 je 10fc78 <_POSIX_Message_queue_Send_support+0xcc> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; 10fbf3: 8b 78 10 mov 0x10(%eax),%edi /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 10fbf6: 84 d2 test %dl,%dl 10fbf8: 75 3a jne 10fc34 <_POSIX_Message_queue_Send_support+0x88> 10fbfa: 31 c0 xor %eax,%eax do_wait = wait; /* * Now perform the actual message receive */ msg_status = _CORE_message_queue_Submit( 10fbfc: ff 75 1c pushl 0x1c(%ebp) 10fbff: 50 push %eax 10fc00: f7 db neg %ebx 10fc02: 53 push %ebx 10fc03: 6a 00 push $0x0 10fc05: 56 push %esi 10fc06: ff 75 10 pushl 0x10(%ebp) 10fc09: ff 75 0c pushl 0xc(%ebp) 10fc0c: 8d 47 1c lea 0x1c(%edi),%eax 10fc0f: 50 push %eax 10fc10: e8 57 1f 00 00 call 111b6c <_CORE_message_queue_Submit> 10fc15: 89 c3 mov %eax,%ebx _POSIX_Message_queue_Priority_to_core( msg_prio ), do_wait, timeout /* no timeout */ ); _Thread_Enable_dispatch(); 10fc17: 83 c4 20 add $0x20,%esp 10fc1a: e8 0d 36 00 00 call 11322c <_Thread_Enable_dispatch> * after it wakes up. The returned status is correct for * non-blocking operations but if we blocked, then we need * to look at the status in our TCB. */ if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT ) 10fc1f: 83 fb 07 cmp $0x7,%ebx 10fc22: 74 20 je 10fc44 <_POSIX_Message_queue_Send_support+0x98> msg_status = _Thread_Executing->Wait.return_code; if ( !msg_status ) 10fc24: 85 db test %ebx,%ebx 10fc26: 75 68 jne 10fc90 <_POSIX_Message_queue_Send_support+0xe4> 10fc28: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 10fc2a: 8d 65 f4 lea -0xc(%ebp),%esp 10fc2d: 5b pop %ebx 10fc2e: 5e pop %esi 10fc2f: 5f pop %edi 10fc30: c9 leave 10fc31: c3 ret 10fc32: 66 90 xchg %ax,%ax <== NOT EXECUTED the_mq = the_mq_fd->Queue; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) 10fc34: 89 c8 mov %ecx,%eax 10fc36: c1 e8 0e shr $0xe,%eax 10fc39: 83 f0 01 xor $0x1,%eax 10fc3c: 83 e0 01 and $0x1,%eax 10fc3f: eb bb jmp 10fbfc <_POSIX_Message_queue_Send_support+0x50> 10fc41: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED * non-blocking operations but if we blocked, then we need * to look at the status in our TCB. */ if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT ) msg_status = _Thread_Executing->Wait.return_code; 10fc44: a1 38 02 13 00 mov 0x130238,%eax 10fc49: 8b 58 34 mov 0x34(%eax),%ebx 10fc4c: eb d6 jmp 10fc24 <_POSIX_Message_queue_Send_support+0x78> 10fc4e: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 10fc50: e8 b7 9a 00 00 call 11970c <__errno> 10fc55: c7 00 09 00 00 00 movl $0x9,(%eax) 10fc5b: b8 ff ff ff ff mov $0xffffffff,%eax 10fc60: eb c8 jmp 10fc2a <_POSIX_Message_queue_Send_support+0x7e> 10fc62: 66 90 xchg %ax,%ax <== NOT EXECUTED * Validate the priority. * XXX - Do not validate msg_prio is not less than 0. */ if ( msg_prio > MQ_PRIO_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); 10fc64: e8 a3 9a 00 00 call 11970c <__errno> 10fc69: c7 00 16 00 00 00 movl $0x16,(%eax) 10fc6f: b8 ff ff ff ff mov $0xffffffff,%eax 10fc74: eb b4 jmp 10fc2a <_POSIX_Message_queue_Send_support+0x7e> 10fc76: 66 90 xchg %ax,%ax <== NOT EXECUTED the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) { _Thread_Enable_dispatch(); 10fc78: e8 af 35 00 00 call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EBADF ); 10fc7d: e8 8a 9a 00 00 call 11970c <__errno> 10fc82: c7 00 09 00 00 00 movl $0x9,(%eax) 10fc88: b8 ff ff ff ff mov $0xffffffff,%eax 10fc8d: eb 9b jmp 10fc2a <_POSIX_Message_queue_Send_support+0x7e> 10fc8f: 90 nop <== NOT EXECUTED msg_status = _Thread_Executing->Wait.return_code; if ( !msg_status ) return msg_status; rtems_set_errno_and_return_minus_one( 10fc90: e8 77 9a 00 00 call 11970c <__errno> 10fc95: 89 c6 mov %eax,%esi 10fc97: 83 ec 0c sub $0xc,%esp 10fc9a: 53 push %ebx 10fc9b: e8 fc 00 00 00 call 10fd9c <_POSIX_Message_queue_Translate_core_message_queue_return_code> 10fca0: 89 06 mov %eax,(%esi) 10fca2: b8 ff ff ff ff mov $0xffffffff,%eax 10fca7: 83 c4 10 add $0x10,%esp 10fcaa: e9 7b ff ff ff jmp 10fc2a <_POSIX_Message_queue_Send_support+0x7e> 0010d0b8 <_POSIX_Mutex_Get>: POSIX_Mutex_Control *_POSIX_Mutex_Get ( pthread_mutex_t *mutex, Objects_Locations *location ) { 10d0b8: 55 push %ebp 10d0b9: 89 e5 mov %esp,%ebp 10d0bb: 56 push %esi 10d0bc: 53 push %ebx 10d0bd: 8b 5d 08 mov 0x8(%ebp),%ebx 10d0c0: 8b 75 0c mov 0xc(%ebp),%esi ___POSIX_Mutex_Get_support_error_check( mutex, location ); 10d0c3: 85 db test %ebx,%ebx 10d0c5: 74 39 je 10d100 <_POSIX_Mutex_Get+0x48> ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); 10d0c7: 8b 03 mov (%ebx),%eax 10d0c9: 83 f8 ff cmp $0xffffffff,%eax 10d0cc: 74 1a je 10d0e8 <_POSIX_Mutex_Get+0x30> return (POSIX_Mutex_Control *) 10d0ce: 52 push %edx 10d0cf: 56 push %esi 10d0d0: 50 push %eax 10d0d1: 68 e0 c9 12 00 push $0x12c9e0 10d0d6: e8 fd 2a 00 00 call 10fbd8 <_Objects_Get> 10d0db: 83 c4 10 add $0x10,%esp _Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location ); } 10d0de: 8d 65 f8 lea -0x8(%ebp),%esp 10d0e1: 5b pop %ebx 10d0e2: 5e pop %esi 10d0e3: c9 leave 10d0e4: c3 ret 10d0e5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED Objects_Locations *location ) { ___POSIX_Mutex_Get_support_error_check( mutex, location ); ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); 10d0e8: 83 ec 08 sub $0x8,%esp 10d0eb: 6a 00 push $0x0 10d0ed: 53 push %ebx 10d0ee: e8 65 00 00 00 call 10d158 10d0f3: 83 c4 10 add $0x10,%esp 10d0f6: 85 c0 test %eax,%eax 10d0f8: 75 06 jne 10d100 <_POSIX_Mutex_Get+0x48> 10d0fa: 8b 03 mov (%ebx),%eax 10d0fc: eb d0 jmp 10d0ce <_POSIX_Mutex_Get+0x16> 10d0fe: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d100: c7 06 01 00 00 00 movl $0x1,(%esi) 10d106: 31 c0 xor %eax,%eax 10d108: eb d4 jmp 10d0de <_POSIX_Mutex_Get+0x26> 0010d064 <_POSIX_Mutex_Get_interrupt_disable>: POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( pthread_mutex_t *mutex, Objects_Locations *location, ISR_Level *level ) { 10d064: 55 push %ebp 10d065: 89 e5 mov %esp,%ebp 10d067: 56 push %esi 10d068: 53 push %ebx 10d069: 8b 5d 08 mov 0x8(%ebp),%ebx 10d06c: 8b 75 0c mov 0xc(%ebp),%esi ___POSIX_Mutex_Get_support_error_check( mutex, location ); 10d06f: 85 db test %ebx,%ebx 10d071: 74 39 je 10d0ac <_POSIX_Mutex_Get_interrupt_disable+0x48> ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); 10d073: 8b 03 mov (%ebx),%eax 10d075: 83 f8 ff cmp $0xffffffff,%eax 10d078: 74 1a je 10d094 <_POSIX_Mutex_Get_interrupt_disable+0x30> return (POSIX_Mutex_Control *) _Objects_Get_isr_disable( 10d07a: ff 75 10 pushl 0x10(%ebp) 10d07d: 56 push %esi 10d07e: 50 push %eax 10d07f: 68 e0 c9 12 00 push $0x12c9e0 10d084: e8 f7 2a 00 00 call 10fb80 <_Objects_Get_isr_disable> 10d089: 83 c4 10 add $0x10,%esp &_POSIX_Mutex_Information, (Objects_Id) *mutex, location, level ); } 10d08c: 8d 65 f8 lea -0x8(%ebp),%esp 10d08f: 5b pop %ebx 10d090: 5e pop %esi 10d091: c9 leave 10d092: c3 ret 10d093: 90 nop <== NOT EXECUTED ISR_Level *level ) { ___POSIX_Mutex_Get_support_error_check( mutex, location ); ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); 10d094: 83 ec 08 sub $0x8,%esp 10d097: 6a 00 push $0x0 10d099: 53 push %ebx 10d09a: e8 b9 00 00 00 call 10d158 10d09f: 83 c4 10 add $0x10,%esp 10d0a2: 85 c0 test %eax,%eax 10d0a4: 75 06 jne 10d0ac <_POSIX_Mutex_Get_interrupt_disable+0x48> 10d0a6: 8b 03 mov (%ebx),%eax 10d0a8: eb d0 jmp 10d07a <_POSIX_Mutex_Get_interrupt_disable+0x16> 10d0aa: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d0ac: c7 06 01 00 00 00 movl $0x1,(%esi) 10d0b2: 31 c0 xor %eax,%eax 10d0b4: eb d6 jmp 10d08c <_POSIX_Mutex_Get_interrupt_disable+0x28> 0010d2b4 <_POSIX_Mutex_Lock_support>: int _POSIX_Mutex_Lock_support( pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout ) { 10d2b4: 55 push %ebp 10d2b5: 89 e5 mov %esp,%ebp 10d2b7: 53 push %ebx 10d2b8: 83 ec 18 sub $0x18,%esp 10d2bb: 8a 5d 0c mov 0xc(%ebp),%bl register POSIX_Mutex_Control *the_mutex; Objects_Locations location; ISR_Level level; the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level ); 10d2be: 8d 45 f0 lea -0x10(%ebp),%eax 10d2c1: 50 push %eax 10d2c2: 8d 45 f4 lea -0xc(%ebp),%eax 10d2c5: 50 push %eax 10d2c6: ff 75 08 pushl 0x8(%ebp) 10d2c9: e8 96 fd ff ff call 10d064 <_POSIX_Mutex_Get_interrupt_disable> switch ( location ) { 10d2ce: 83 c4 10 add $0x10,%esp 10d2d1: 8b 55 f4 mov -0xc(%ebp),%edx 10d2d4: 85 d2 test %edx,%edx 10d2d6: 75 34 jne 10d30c <_POSIX_Mutex_Lock_support+0x58> case OBJECTS_LOCAL: _CORE_mutex_Seize( 10d2d8: 83 ec 0c sub $0xc,%esp 10d2db: ff 75 f0 pushl -0x10(%ebp) 10d2de: ff 75 10 pushl 0x10(%ebp) 10d2e1: 0f b6 db movzbl %bl,%ebx 10d2e4: 53 push %ebx 10d2e5: ff 70 08 pushl 0x8(%eax) 10d2e8: 83 c0 14 add $0x14,%eax 10d2eb: 50 push %eax 10d2ec: e8 db 1c 00 00 call 10efcc <_CORE_mutex_Seize> the_mutex->Object.id, blocking, timeout, level ); return _POSIX_Mutex_Translate_core_mutex_return_code( 10d2f1: 83 c4 14 add $0x14,%esp 10d2f4: a1 98 c6 12 00 mov 0x12c698,%eax 10d2f9: ff 70 34 pushl 0x34(%eax) 10d2fc: e8 f3 00 00 00 call 10d3f4 <_POSIX_Mutex_Translate_core_mutex_return_code> 10d301: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10d304: 8b 5d fc mov -0x4(%ebp),%ebx 10d307: c9 leave 10d308: c3 ret 10d309: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED register POSIX_Mutex_Control *the_mutex; Objects_Locations location; ISR_Level level; the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level ); switch ( location ) { 10d30c: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10d311: 8b 5d fc mov -0x4(%ebp),%ebx 10d314: c9 leave 10d315: c3 ret 00113e80 <_POSIX_Semaphore_Create_support>: const char *name, int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem ) { 113e80: 55 push %ebp 113e81: 89 e5 mov %esp,%ebp 113e83: 56 push %esi 113e84: 53 push %ebx 113e85: 8b 5d 08 mov 0x8(%ebp),%ebx POSIX_Semaphore_Control *the_semaphore; CORE_semaphore_Attributes *the_sem_attr; char *name_p = (char *)name; /* Sharing semaphores among processes is not currently supported */ if (pshared != 0) 113e88: 8b 55 0c mov 0xc(%ebp),%edx 113e8b: 85 d2 test %edx,%edx 113e8d: 0f 85 b9 00 00 00 jne 113f4c <_POSIX_Semaphore_Create_support+0xcc> rtems_set_errno_and_return_minus_one( ENOSYS ); if ( name ) { 113e93: 85 db test %ebx,%ebx 113e95: 74 1c je 113eb3 <_POSIX_Semaphore_Create_support+0x33> if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) 113e97: 83 ec 08 sub $0x8,%esp 113e9a: 68 ff 00 00 00 push $0xff 113e9f: 53 push %ebx 113ea0: e8 6b 48 00 00 call 118710 113ea5: 83 c4 10 add $0x10,%esp 113ea8: 3d fe 00 00 00 cmp $0xfe,%eax 113ead: 0f 87 ad 00 00 00 ja 113f60 <_POSIX_Semaphore_Create_support+0xe0> 113eb3: a1 78 d1 12 00 mov 0x12d178,%eax 113eb8: 40 inc %eax 113eb9: a3 78 d1 12 00 mov %eax,0x12d178 * _POSIX_Semaphore_Allocate */ RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Allocate( void ) { return (POSIX_Semaphore_Control *) 113ebe: 83 ec 0c sub $0xc,%esp 113ec1: 68 c0 d4 12 00 push $0x12d4c0 113ec6: e8 bd bf ff ff call 10fe88 <_Objects_Allocate> 113ecb: 89 c6 mov %eax,%esi _Thread_Disable_dispatch(); the_semaphore = _POSIX_Semaphore_Allocate(); if ( !the_semaphore ) { 113ecd: 83 c4 10 add $0x10,%esp 113ed0: 85 c0 test %eax,%eax 113ed2: 0f 84 9a 00 00 00 je 113f72 <_POSIX_Semaphore_Create_support+0xf2> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENOSPC ); } the_semaphore->process_shared = pshared; 113ed8: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) if ( name ) { 113edf: 85 db test %ebx,%ebx 113ee1: 74 55 je 113f38 <_POSIX_Semaphore_Create_support+0xb8> the_semaphore->named = true; 113ee3: c6 40 14 01 movb $0x1,0x14(%eax) the_semaphore->open_count = 1; 113ee7: c7 40 18 01 00 00 00 movl $0x1,0x18(%eax) the_semaphore->linked = true; 113eee: c6 40 15 01 movb $0x1,0x15(%eax) * blocking tasks on this semaphore should be. It could somehow * be derived from the current scheduling policy. One * thing is certain, no matter what we decide, it won't be * the same as all other POSIX implementations. :) */ the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; 113ef2: c7 46 60 00 00 00 00 movl $0x0,0x60(%esi) /* * This effectively disables limit checking. */ the_sem_attr->maximum_count = 0xFFFFFFFF; 113ef9: c7 46 5c ff ff ff ff movl $0xffffffff,0x5c(%esi) _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value ); 113f00: 50 push %eax 113f01: ff 75 10 pushl 0x10(%ebp) 113f04: 8d 46 5c lea 0x5c(%esi),%eax 113f07: 50 push %eax 113f08: 8d 46 1c lea 0x1c(%esi),%eax 113f0b: 50 push %eax 113f0c: e8 8b ba ff ff call 10f99c <_CORE_semaphore_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 113f11: 0f b7 56 08 movzwl 0x8(%esi),%edx 113f15: a1 dc d4 12 00 mov 0x12d4dc,%eax 113f1a: 89 34 90 mov %esi,(%eax,%edx,4) the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; 113f1d: 89 5e 0c mov %ebx,0xc(%esi) &_POSIX_Semaphore_Information, &the_semaphore->Object, name_p ); *the_sem = the_semaphore; 113f20: 8b 45 14 mov 0x14(%ebp),%eax 113f23: 89 30 mov %esi,(%eax) _Thread_Enable_dispatch(); 113f25: e8 d2 cc ff ff call 110bfc <_Thread_Enable_dispatch> 113f2a: 31 c0 xor %eax,%eax return 0; 113f2c: 83 c4 10 add $0x10,%esp } 113f2f: 8d 65 f8 lea -0x8(%ebp),%esp 113f32: 5b pop %ebx 113f33: 5e pop %esi 113f34: c9 leave 113f35: c3 ret 113f36: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( name ) { the_semaphore->named = true; the_semaphore->open_count = 1; the_semaphore->linked = true; } else { the_semaphore->named = false; 113f38: c6 40 14 00 movb $0x0,0x14(%eax) the_semaphore->open_count = 0; 113f3c: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_semaphore->linked = false; 113f43: c6 40 15 00 movb $0x0,0x15(%eax) 113f47: eb a9 jmp 113ef2 <_POSIX_Semaphore_Create_support+0x72> 113f49: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED CORE_semaphore_Attributes *the_sem_attr; char *name_p = (char *)name; /* Sharing semaphores among processes is not currently supported */ if (pshared != 0) rtems_set_errno_and_return_minus_one( ENOSYS ); 113f4c: e8 2f 39 00 00 call 117880 <__errno> 113f51: c7 00 58 00 00 00 movl $0x58,(%eax) 113f57: b8 ff ff ff ff mov $0xffffffff,%eax 113f5c: eb d1 jmp 113f2f <_POSIX_Semaphore_Create_support+0xaf> 113f5e: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( name ) { if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 113f60: e8 1b 39 00 00 call 117880 <__errno> 113f65: c7 00 5b 00 00 00 movl $0x5b,(%eax) 113f6b: b8 ff ff ff ff mov $0xffffffff,%eax 113f70: eb bd jmp 113f2f <_POSIX_Semaphore_Create_support+0xaf> _Thread_Disable_dispatch(); the_semaphore = _POSIX_Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 113f72: e8 85 cc ff ff call 110bfc <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( ENOSPC ); 113f77: e8 04 39 00 00 call 117880 <__errno> 113f7c: c7 00 1c 00 00 00 movl $0x1c,(%eax) 113f82: b8 ff ff ff ff mov $0xffffffff,%eax 113f87: eb a6 jmp 113f2f <_POSIX_Semaphore_Create_support+0xaf> 00113fdc <_POSIX_Semaphore_Name_to_id>: int _POSIX_Semaphore_Name_to_id( const char *name, sem_t *id ) { 113fdc: 55 push %ebp 113fdd: 89 e5 mov %esp,%ebp 113fdf: 83 ec 18 sub $0x18,%esp 113fe2: 8b 45 08 mov 0x8(%ebp),%eax Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) 113fe5: 85 c0 test %eax,%eax 113fe7: 74 05 je 113fee <_POSIX_Semaphore_Name_to_id+0x12> return EINVAL; if ( !name[0] ) 113fe9: 80 38 00 cmpb $0x0,(%eax) 113fec: 75 0a jne 113ff8 <_POSIX_Semaphore_Name_to_id+0x1c> name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) 113fee: b8 16 00 00 00 mov $0x16,%eax return 0; return ENOENT; } 113ff3: c9 leave 113ff4: c3 ret 113ff5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return EINVAL; if ( !name[0] ) return EINVAL; status = _Objects_Name_to_id_string( 113ff8: 52 push %edx 113ff9: 8d 55 f4 lea -0xc(%ebp),%edx 113ffc: 52 push %edx 113ffd: 50 push %eax 113ffe: 68 c0 d4 12 00 push $0x12d4c0 114003: e8 f8 0d 00 00 call 114e00 <_Objects_Name_to_id_string> &_POSIX_Semaphore_Information, name, &the_id ); *id = the_id; 114008: 8b 4d f4 mov -0xc(%ebp),%ecx 11400b: 8b 55 0c mov 0xc(%ebp),%edx 11400e: 89 0a mov %ecx,(%edx) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) 114010: 83 c4 10 add $0x10,%esp 114013: 83 f8 01 cmp $0x1,%eax 114016: 19 c0 sbb %eax,%eax 114018: f7 d0 not %eax 11401a: 83 e0 02 and $0x2,%eax return 0; return ENOENT; } 11401d: c9 leave 11401e: c3 ret 00114048 <_POSIX_Semaphore_Wait_support>: int _POSIX_Semaphore_Wait_support( sem_t *sem, bool blocking, Watchdog_Interval timeout ) { 114048: 55 push %ebp 114049: 89 e5 mov %esp,%ebp 11404b: 53 push %ebx 11404c: 83 ec 18 sub $0x18,%esp 11404f: 8a 5d 0c mov 0xc(%ebp),%bl RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( sem_t *id, Objects_Locations *location ) { return (POSIX_Semaphore_Control *) 114052: 8d 45 f4 lea -0xc(%ebp),%eax 114055: 50 push %eax 114056: 8b 45 08 mov 0x8(%ebp),%eax 114059: ff 30 pushl (%eax) 11405b: 68 c0 d4 12 00 push $0x12d4c0 114060: e8 d3 c2 ff ff call 110338 <_Objects_Get> POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { 114065: 83 c4 10 add $0x10,%esp 114068: 8b 55 f4 mov -0xc(%ebp),%edx 11406b: 85 d2 test %edx,%edx 11406d: 74 15 je 114084 <_POSIX_Semaphore_Wait_support+0x3c> #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 11406f: e8 0c 38 00 00 call 117880 <__errno> 114074: c7 00 16 00 00 00 movl $0x16,(%eax) 11407a: b8 ff ff ff ff mov $0xffffffff,%eax } 11407f: 8b 5d fc mov -0x4(%ebp),%ebx 114082: c9 leave 114083: c3 ret the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_semaphore_Seize( 114084: ff 75 10 pushl 0x10(%ebp) 114087: 0f b6 db movzbl %bl,%ebx 11408a: 53 push %ebx 11408b: ff 70 08 pushl 0x8(%eax) 11408e: 83 c0 1c add $0x1c,%eax 114091: 50 push %eax 114092: e8 65 08 00 00 call 1148fc <_CORE_semaphore_Seize> &the_semaphore->Semaphore, the_semaphore->Object.id, blocking, timeout ); _Thread_Enable_dispatch(); 114097: e8 60 cb ff ff call 110bfc <_Thread_Enable_dispatch> if ( !_Thread_Executing->Wait.return_code ) 11409c: 83 c4 10 add $0x10,%esp 11409f: a1 38 d2 12 00 mov 0x12d238,%eax 1140a4: 8b 40 34 mov 0x34(%eax),%eax 1140a7: 85 c0 test %eax,%eax 1140a9: 75 09 jne 1140b4 <_POSIX_Semaphore_Wait_support+0x6c> 1140ab: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 1140ad: 8b 5d fc mov -0x4(%ebp),%ebx 1140b0: c9 leave 1140b1: c3 ret 1140b2: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Enable_dispatch(); if ( !_Thread_Executing->Wait.return_code ) return 0; rtems_set_errno_and_return_minus_one( 1140b4: e8 c7 37 00 00 call 117880 <__errno> 1140b9: 89 c3 mov %eax,%ebx 1140bb: 83 ec 0c sub $0xc,%esp 1140be: a1 38 d2 12 00 mov 0x12d238,%eax 1140c3: ff 70 34 pushl 0x34(%eax) 1140c6: e8 c1 26 00 00 call 11678c <_POSIX_Semaphore_Translate_core_semaphore_return_code> 1140cb: 89 03 mov %eax,(%ebx) 1140cd: b8 ff ff ff ff mov $0xffffffff,%eax 1140d2: 83 c4 10 add $0x10,%esp 1140d5: eb a8 jmp 11407f <_POSIX_Semaphore_Wait_support+0x37> 00111298 <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) { 111298: 55 push %ebp 111299: 89 e5 mov %esp,%ebp 11129b: 57 push %edi 11129c: 56 push %esi 11129d: 53 push %ebx 11129e: 83 ec 18 sub $0x18,%esp 1112a1: 8b 5d 08 mov 0x8(%ebp),%ebx 1112a4: 8b 75 0c mov 0xc(%ebp),%esi 1112a7: 8b 7d 10 mov 0x10(%ebp),%edi if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) 1112aa: ff 36 pushl (%esi) 1112ac: e8 cb ff ff ff call 11127c <_POSIX_Priority_Is_valid> 1112b1: 83 c4 10 add $0x10,%esp 1112b4: 84 c0 test %al,%al 1112b6: 74 2a je 1112e2 <_POSIX_Thread_Translate_sched_param+0x4a> return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 1112b8: c7 07 00 00 00 00 movl $0x0,(%edi) *budget_callout = NULL; 1112be: 8b 45 14 mov 0x14(%ebp),%eax 1112c1: c7 00 00 00 00 00 movl $0x0,(%eax) if ( policy == SCHED_OTHER ) { 1112c7: 85 db test %ebx,%ebx 1112c9: 74 25 je 1112f0 <_POSIX_Thread_Translate_sched_param+0x58> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; return 0; } if ( policy == SCHED_FIFO ) { 1112cb: 83 fb 01 cmp $0x1,%ebx 1112ce: 0f 84 90 00 00 00 je 111364 <_POSIX_Thread_Translate_sched_param+0xcc> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; return 0; } if ( policy == SCHED_RR ) { 1112d4: 83 fb 02 cmp $0x2,%ebx 1112d7: 0f 84 97 00 00 00 je 111374 <_POSIX_Thread_Translate_sched_param+0xdc> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; return 0; } if ( policy == SCHED_SPORADIC ) { 1112dd: 83 fb 04 cmp $0x4,%ebx 1112e0: 74 1e je 111300 <_POSIX_Thread_Translate_sched_param+0x68> if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) ) return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT; *budget_callout = _POSIX_Threads_Sporadic_budget_callout; return 0; 1112e2: b8 16 00 00 00 mov $0x16,%eax } return EINVAL; } 1112e7: 8d 65 f4 lea -0xc(%ebp),%esp 1112ea: 5b pop %ebx 1112eb: 5e pop %esi 1112ec: 5f pop %edi 1112ed: c9 leave 1112ee: c3 ret 1112ef: 90 nop <== NOT EXECUTED *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; *budget_callout = NULL; if ( policy == SCHED_OTHER ) { *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 1112f0: c7 07 01 00 00 00 movl $0x1,(%edi) 1112f6: 31 c0 xor %eax,%eax *budget_callout = _POSIX_Threads_Sporadic_budget_callout; return 0; } return EINVAL; } 1112f8: 8d 65 f4 lea -0xc(%ebp),%esp 1112fb: 5b pop %ebx 1112fc: 5e pop %esi 1112fd: 5f pop %edi 1112fe: c9 leave 1112ff: c3 ret *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; return 0; } if ( policy == SCHED_SPORADIC ) { if ( (param->sched_ss_repl_period.tv_sec == 0) && 111300: 8b 5e 08 mov 0x8(%esi),%ebx 111303: 85 db test %ebx,%ebx 111305: 75 07 jne 11130e <_POSIX_Thread_Translate_sched_param+0x76> (param->sched_ss_repl_period.tv_nsec == 0) ) 111307: 8b 4e 0c mov 0xc(%esi),%ecx 11130a: 85 c9 test %ecx,%ecx 11130c: 74 d4 je 1112e2 <_POSIX_Thread_Translate_sched_param+0x4a> return EINVAL; if ( (param->sched_ss_init_budget.tv_sec == 0) && 11130e: 8b 56 10 mov 0x10(%esi),%edx 111311: 85 d2 test %edx,%edx 111313: 75 07 jne 11131c <_POSIX_Thread_Translate_sched_param+0x84> (param->sched_ss_init_budget.tv_nsec == 0) ) 111315: 8b 46 14 mov 0x14(%esi),%eax 111318: 85 c0 test %eax,%eax 11131a: 74 c6 je 1112e2 <_POSIX_Thread_Translate_sched_param+0x4a> return EINVAL; if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) < 11131c: 83 ec 0c sub $0xc,%esp 11131f: 8d 46 08 lea 0x8(%esi),%eax 111322: 50 push %eax 111323: e8 f4 de ff ff call 10f21c <_Timespec_To_ticks> 111328: 89 c3 mov %eax,%ebx 11132a: 8d 46 10 lea 0x10(%esi),%eax 11132d: 89 04 24 mov %eax,(%esp) 111330: e8 e7 de ff ff call 10f21c <_Timespec_To_ticks> 111335: 83 c4 10 add $0x10,%esp 111338: 39 c3 cmp %eax,%ebx 11133a: 72 a6 jb 1112e2 <_POSIX_Thread_Translate_sched_param+0x4a> _Timespec_To_ticks( ¶m->sched_ss_init_budget ) ) return EINVAL; if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) ) 11133c: 83 ec 0c sub $0xc,%esp 11133f: ff 76 04 pushl 0x4(%esi) 111342: e8 35 ff ff ff call 11127c <_POSIX_Priority_Is_valid> 111347: 83 c4 10 add $0x10,%esp 11134a: 84 c0 test %al,%al 11134c: 74 94 je 1112e2 <_POSIX_Thread_Translate_sched_param+0x4a> return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT; 11134e: c7 07 03 00 00 00 movl $0x3,(%edi) *budget_callout = _POSIX_Threads_Sporadic_budget_callout; 111354: 8b 45 14 mov 0x14(%ebp),%eax 111357: c7 00 b8 bb 10 00 movl $0x10bbb8,(%eax) 11135d: 31 c0 xor %eax,%eax return 0; 11135f: eb 86 jmp 1112e7 <_POSIX_Thread_Translate_sched_param+0x4f> 111361: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; return 0; } if ( policy == SCHED_FIFO ) { *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 111364: c7 07 00 00 00 00 movl $0x0,(%edi) 11136a: 31 c0 xor %eax,%eax return 0; 11136c: e9 76 ff ff ff jmp 1112e7 <_POSIX_Thread_Translate_sched_param+0x4f> 111371: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } if ( policy == SCHED_RR ) { *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; 111374: c7 07 02 00 00 00 movl $0x2,(%edi) 11137a: 31 c0 xor %eax,%eax return 0; 11137c: e9 66 ff ff ff jmp 1112e7 <_POSIX_Thread_Translate_sched_param+0x4f> 00110180 <_POSIX_Threads_Create_extension>: bool _POSIX_Threads_Create_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *created ) { 110180: 55 push %ebp 110181: 89 e5 mov %esp,%ebp 110183: 57 push %edi 110184: 56 push %esi 110185: 53 push %ebx 110186: 83 ec 28 sub $0x28,%esp 110189: 8b 55 0c mov 0xc(%ebp),%edx POSIX_API_Control *api; POSIX_API_Control *executing_api; api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); 11018c: 68 ec 00 00 00 push $0xec 110191: 89 55 e4 mov %edx,-0x1c(%ebp) 110194: e8 e3 e4 ff ff call 10e67c <_Workspace_Allocate> 110199: 89 c3 mov %eax,%ebx if ( !api ) 11019b: 83 c4 10 add $0x10,%esp 11019e: 85 c0 test %eax,%eax 1101a0: 8b 55 e4 mov -0x1c(%ebp),%edx 1101a3: 0f 84 2f 01 00 00 je 1102d8 <_POSIX_Threads_Create_extension+0x158> return false; created->API_Extensions[ THREAD_API_POSIX ] = api; 1101a9: 89 82 f8 00 00 00 mov %eax,0xf8(%edx) /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; 1101af: b9 3c 00 00 00 mov $0x3c,%ecx 1101b4: 31 c0 xor %eax,%eax 1101b6: 89 df mov %ebx,%edi 1101b8: f3 aa rep stos %al,%es:(%edi) 1101ba: c7 03 01 00 00 00 movl $0x1,(%ebx) 1101c0: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx) 1101c7: c7 43 14 01 00 00 00 movl $0x1,0x14(%ebx) 1101ce: c7 43 18 02 00 00 00 movl $0x2,0x18(%ebx) 1101d5: c7 43 34 01 00 00 00 movl $0x1,0x34(%ebx) 1101dc: c7 43 38 01 00 00 00 movl $0x1,0x38(%ebx) api->detachstate = _POSIX_Threads_Default_attributes.detachstate; 1101e3: c7 43 3c 01 00 00 00 movl $0x1,0x3c(%ebx) api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; 1101ea: c7 83 80 00 00 00 01 movl $0x1,0x80(%ebx) 1101f1: 00 00 00 api->schedparam = _POSIX_Threads_Default_attributes.schedparam; 1101f4: be b8 15 12 00 mov $0x1215b8,%esi 1101f9: 8d bb 84 00 00 00 lea 0x84(%ebx),%edi 1101ff: b1 07 mov $0x7,%cl 110201: f3 a5 rep movsl %ds:(%esi),%es:(%edi) api->schedparam.sched_priority = 110203: 0f b6 05 34 35 12 00 movzbl 0x123534,%eax 11020a: 2b 42 14 sub 0x14(%edx),%eax 11020d: 89 83 84 00 00 00 mov %eax,0x84(%ebx) _POSIX_Priority_From_core( created->current_priority ); /* * POSIX 1003.1 1996, 18.2.2.2 */ api->cancelation_requested = 0; 110213: c7 83 dc 00 00 00 00 movl $0x0,0xdc(%ebx) 11021a: 00 00 00 api->cancelability_state = PTHREAD_CANCEL_ENABLE; 11021d: c7 83 d4 00 00 00 00 movl $0x0,0xd4(%ebx) 110224: 00 00 00 api->cancelability_type = PTHREAD_CANCEL_DEFERRED; 110227: c7 83 d8 00 00 00 00 movl $0x0,0xd8(%ebx) 11022e: 00 00 00 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 110231: 8d 83 e4 00 00 00 lea 0xe4(%ebx),%eax 110237: 89 83 e0 00 00 00 mov %eax,0xe0(%ebx) the_chain->permanent_null = NULL; 11023d: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) 110244: 00 00 00 the_chain->last = _Chain_Head(the_chain); 110247: 8d 83 e0 00 00 00 lea 0xe0(%ebx),%eax 11024d: 89 83 e8 00 00 00 mov %eax,0xe8(%ebx) * * The check for class == 1 is debug. Should never really happen. */ /* XXX use signal constants */ api->signals_pending = 0; 110253: c7 83 d0 00 00 00 00 movl $0x0,0xd0(%ebx) 11025a: 00 00 00 if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API 11025d: 0f b6 42 0b movzbl 0xb(%edx),%eax 110261: 83 e0 07 and $0x7,%eax 110264: 83 f8 03 cmp $0x3,%eax 110267: 74 53 je 1102bc <_POSIX_Threads_Create_extension+0x13c> #endif ) { executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; api->signals_blocked = executing_api->signals_blocked; } else { api->signals_blocked = 0xffffffff; 110269: c7 83 cc 00 00 00 ff movl $0xffffffff,0xcc(%ebx) 110270: ff ff ff } _Thread_queue_Initialize( 110273: 6a 00 push $0x0 110275: 68 00 10 00 00 push $0x1000 11027a: 6a 00 push $0x0 11027c: 8d 43 40 lea 0x40(%ebx),%eax 11027f: 50 push %eax 110280: 89 55 e4 mov %edx,-0x1c(%ebp) 110283: e8 dc d9 ff ff call 10dc64 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_JOIN_AT_EXIT, 0 ); _Watchdog_Initialize( 110288: 8b 55 e4 mov -0x1c(%ebp),%edx 11028b: 8b 42 08 mov 0x8(%edx),%eax Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 11028e: c7 83 ac 00 00 00 00 movl $0x0,0xac(%ebx) 110295: 00 00 00 the_watchdog->routine = routine; 110298: c7 83 c0 00 00 00 28 movl $0x110328,0xc0(%ebx) 11029f: 03 11 00 the_watchdog->id = id; 1102a2: 89 83 c4 00 00 00 mov %eax,0xc4(%ebx) the_watchdog->user_data = user_data; 1102a8: 89 93 c8 00 00 00 mov %edx,0xc8(%ebx) 1102ae: b0 01 mov $0x1,%al _POSIX_Threads_Sporadic_budget_TSR, created->Object.id, created ); return true; 1102b0: 83 c4 10 add $0x10,%esp } 1102b3: 8d 65 f4 lea -0xc(%ebp),%esp 1102b6: 5b pop %ebx 1102b7: 5e pop %esi 1102b8: 5f pop %edi 1102b9: c9 leave 1102ba: c3 ret 1102bb: 90 nop <== NOT EXECUTED #if defined(RTEMS_DEBUG) && _Objects_Get_class( created->Object.id ) == 1 #endif ) { executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; api->signals_blocked = executing_api->signals_blocked; 1102bc: a1 d8 77 12 00 mov 0x1277d8,%eax 1102c1: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax 1102c7: 8b 80 cc 00 00 00 mov 0xcc(%eax),%eax 1102cd: 89 83 cc 00 00 00 mov %eax,0xcc(%ebx) 1102d3: eb 9e jmp 110273 <_POSIX_Threads_Create_extension+0xf3> 1102d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED POSIX_API_Control *api; POSIX_API_Control *executing_api; api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); if ( !api ) 1102d8: 31 c0 xor %eax,%eax created->Object.id, created ); return true; } 1102da: 8d 65 f4 lea -0xc(%ebp),%esp 1102dd: 5b pop %ebx 1102de: 5e pop %esi 1102df: 5f pop %edi 1102e0: c9 leave 1102e1: c3 ret 001100f8 <_POSIX_Threads_Delete_extension>: */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { 1100f8: 55 push %ebp 1100f9: 89 e5 mov %esp,%ebp 1100fb: 57 push %edi 1100fc: 56 push %esi 1100fd: 53 push %ebx 1100fe: 83 ec 28 sub $0x28,%esp 110101: 8b 7d 0c mov 0xc(%ebp),%edi Thread_Control *the_thread; POSIX_API_Control *api; void **value_ptr; api = deleted->API_Extensions[ THREAD_API_POSIX ]; 110104: 8b 87 f8 00 00 00 mov 0xf8(%edi),%eax 11010a: 89 45 e4 mov %eax,-0x1c(%ebp) /* * Run the POSIX cancellation handlers */ _POSIX_Threads_cancel_run( deleted ); 11010d: 57 push %edi 11010e: e8 6d 23 00 00 call 112480 <_POSIX_Threads_cancel_run> /* * Run all the key destructors */ _POSIX_Keys_Run_destructors( deleted ); 110113: 89 3c 24 mov %edi,(%esp) 110116: e8 c9 23 00 00 call 1124e4 <_POSIX_Keys_Run_destructors> /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; 11011b: 8b 77 28 mov 0x28(%edi),%esi while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) 11011e: 8b 5d e4 mov -0x1c(%ebp),%ebx 110121: 83 c3 40 add $0x40,%ebx 110124: 83 c4 10 add $0x10,%esp 110127: eb 08 jmp 110131 <_POSIX_Threads_Delete_extension+0x39> 110129: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED *(void **)the_thread->Wait.return_argument = value_ptr; 11012c: 8b 40 28 mov 0x28(%eax),%eax 11012f: 89 30 mov %esi,(%eax) /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) 110131: 83 ec 0c sub $0xc,%esp 110134: 53 push %ebx 110135: e8 ae d7 ff ff call 10d8e8 <_Thread_queue_Dequeue> 11013a: 83 c4 10 add $0x10,%esp 11013d: 85 c0 test %eax,%eax 11013f: 75 eb jne 11012c <_POSIX_Threads_Delete_extension+0x34> *(void **)the_thread->Wait.return_argument = value_ptr; if ( api->schedpolicy == SCHED_SPORADIC ) 110141: 8b 45 e4 mov -0x1c(%ebp),%eax 110144: 83 b8 80 00 00 00 04 cmpl $0x4,0x80(%eax) 11014b: 74 1f je 11016c <_POSIX_Threads_Delete_extension+0x74> (void) _Watchdog_Remove( &api->Sporadic_timer ); deleted->API_Extensions[ THREAD_API_POSIX ] = NULL; 11014d: c7 87 f8 00 00 00 00 movl $0x0,0xf8(%edi) 110154: 00 00 00 (void) _Workspace_Free( api ); 110157: 8b 45 e4 mov -0x1c(%ebp),%eax 11015a: 89 45 08 mov %eax,0x8(%ebp) } 11015d: 8d 65 f4 lea -0xc(%ebp),%esp 110160: 5b pop %ebx 110161: 5e pop %esi 110162: 5f pop %edi 110163: c9 leave if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); deleted->API_Extensions[ THREAD_API_POSIX ] = NULL; (void) _Workspace_Free( api ); 110164: e9 2f e5 ff ff jmp 10e698 <_Workspace_Free> 110169: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) *(void **)the_thread->Wait.return_argument = value_ptr; if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); 11016c: 83 ec 0c sub $0xc,%esp 11016f: 05 a4 00 00 00 add $0xa4,%eax 110174: 50 push %eax 110175: e8 fe e3 ff ff call 10e578 <_Watchdog_Remove> 11017a: 83 c4 10 add $0x10,%esp 11017d: eb ce jmp 11014d <_POSIX_Threads_Delete_extension+0x55> 001100d4 <_POSIX_Threads_Exitted_extension>: * This method is invoked each time a thread exits. */ void _POSIX_Threads_Exitted_extension( Thread_Control *executing ) { 1100d4: 55 push %ebp 1100d5: 89 e5 mov %esp,%ebp 1100d7: 83 ec 08 sub $0x8,%esp 1100da: 8b 55 08 mov 0x8(%ebp),%edx /* * If the executing thread was not created with the POSIX API, then this * API do not get to define its exit behavior. */ if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API ) 1100dd: 0f b6 42 0b movzbl 0xb(%edx),%eax 1100e1: 83 e0 07 and $0x7,%eax 1100e4: 83 f8 03 cmp $0x3,%eax 1100e7: 74 03 je 1100ec <_POSIX_Threads_Exitted_extension+0x18> pthread_exit( executing->Wait.return_argument ); } 1100e9: c9 leave 1100ea: c3 ret 1100eb: 90 nop <== NOT EXECUTED /* * If the executing thread was not created with the POSIX API, then this * API do not get to define its exit behavior. */ if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API ) pthread_exit( executing->Wait.return_argument ); 1100ec: 8b 42 28 mov 0x28(%edx),%eax 1100ef: 89 45 08 mov %eax,0x8(%ebp) } 1100f2: c9 leave /* * If the executing thread was not created with the POSIX API, then this * API do not get to define its exit behavior. */ if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API ) pthread_exit( executing->Wait.return_argument ); 1100f3: e9 9c 26 00 00 jmp 112794 00110078 <_POSIX_Threads_Initialize_user_threads>: * * This routine creates and starts all configured user * initialzation threads. */ void _POSIX_Threads_Initialize_user_threads( void ) { 110078: 55 push %ebp 110079: 89 e5 mov %esp,%ebp 11007b: 83 ec 08 sub $0x8,%esp if ( _POSIX_Threads_Initialize_user_threads_p ) 11007e: a1 98 59 12 00 mov 0x125998,%eax 110083: 85 c0 test %eax,%eax 110085: 74 05 je 11008c <_POSIX_Threads_Initialize_user_threads+0x14> (*_POSIX_Threads_Initialize_user_threads_p)(); } 110087: c9 leave * initialzation threads. */ void _POSIX_Threads_Initialize_user_threads( void ) { if ( _POSIX_Threads_Initialize_user_threads_p ) (*_POSIX_Threads_Initialize_user_threads_p)(); 110088: ff e0 jmp *%eax 11008a: 66 90 xchg %ax,%ax <== NOT EXECUTED } 11008c: c9 leave 11008d: c3 ret 00110328 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) { 110328: 55 push %ebp 110329: 89 e5 mov %esp,%ebp 11032b: 56 push %esi 11032c: 53 push %ebx 11032d: 8b 75 0c mov 0xc(%ebp),%esi Thread_Control *the_thread; POSIX_API_Control *api; the_thread = argument; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 110330: 8b 9e f8 00 00 00 mov 0xf8(%esi),%ebx /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget ); 110336: 83 ec 0c sub $0xc,%esp 110339: 8d 83 94 00 00 00 lea 0x94(%ebx),%eax 11033f: 50 push %eax 110340: e8 77 11 00 00 call 1114bc <_Timespec_To_ticks> the_thread->cpu_time_budget = ticks; 110345: 89 46 78 mov %eax,0x78(%esi) 110348: 0f b6 05 34 35 12 00 movzbl 0x123534,%eax 11034f: 2b 83 84 00 00 00 sub 0x84(%ebx),%eax new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); the_thread->real_priority = new_priority; 110355: 89 46 18 mov %eax,0x18(%esi) */ #if 0 printk( "TSR %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 110358: 83 c4 10 add $0x10,%esp 11035b: 8b 4e 1c mov 0x1c(%esi),%ecx 11035e: 85 c9 test %ecx,%ecx 110360: 75 05 jne 110367 <_POSIX_Threads_Sporadic_budget_TSR+0x3f> /* * If this would make them less important, then do not change it. */ if ( the_thread->current_priority > new_priority ) { 110362: 39 46 14 cmp %eax,0x14(%esi) 110365: 77 35 ja 11039c <_POSIX_Threads_Sporadic_budget_TSR+0x74> #endif } } /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period ); 110367: 83 ec 0c sub $0xc,%esp 11036a: 8d 83 8c 00 00 00 lea 0x8c(%ebx),%eax 110370: 50 push %eax 110371: e8 46 11 00 00 call 1114bc <_Timespec_To_ticks> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 110376: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 11037c: 83 c4 10 add $0x10,%esp 11037f: 81 c3 a4 00 00 00 add $0xa4,%ebx 110385: 89 5d 0c mov %ebx,0xc(%ebp) 110388: c7 45 08 f8 77 12 00 movl $0x1277f8,0x8(%ebp) _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks ); } 11038f: 8d 65 f8 lea -0x8(%ebp),%esp 110392: 5b pop %ebx 110393: 5e pop %esi 110394: c9 leave 110395: e9 a6 e0 ff ff jmp 10e440 <_Watchdog_Insert> 11039a: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( the_thread->resource_count == 0 ) { /* * If this would make them less important, then do not change it. */ if ( the_thread->current_priority > new_priority ) { _Thread_Change_priority( the_thread, new_priority, true ); 11039c: 52 push %edx 11039d: 6a 01 push $0x1 11039f: 50 push %eax 1103a0: 56 push %esi 1103a1: e8 66 cc ff ff call 10d00c <_Thread_Change_priority> 1103a6: 83 c4 10 add $0x10,%esp 1103a9: eb bc jmp 110367 <_POSIX_Threads_Sporadic_budget_TSR+0x3f> 001102e4 <_POSIX_Threads_Sporadic_budget_callout>: * _POSIX_Threads_Sporadic_budget_callout */ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ) { 1102e4: 55 push %ebp 1102e5: 89 e5 mov %esp,%ebp 1102e7: 83 ec 08 sub $0x8,%esp 1102ea: 8b 45 08 mov 0x8(%ebp),%eax POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 1102ed: 8b 88 f8 00 00 00 mov 0xf8(%eax),%ecx /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ 1102f3: c7 40 78 ff ff ff ff movl $0xffffffff,0x78(%eax) RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 1102fa: 0f b6 15 34 35 12 00 movzbl 0x123534,%edx 110301: 2b 91 88 00 00 00 sub 0x88(%ecx),%edx new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority); the_thread->real_priority = new_priority; 110307: 89 50 18 mov %edx,0x18(%eax) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { 11030a: 8b 48 1c mov 0x1c(%eax),%ecx 11030d: 85 c9 test %ecx,%ecx 11030f: 75 05 jne 110316 <_POSIX_Threads_Sporadic_budget_callout+0x32> /* * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { 110311: 39 50 14 cmp %edx,0x14(%eax) 110314: 72 02 jb 110318 <_POSIX_Threads_Sporadic_budget_callout+0x34> #if 0 printk( "lower priority\n" ); #endif } } } 110316: c9 leave <== NOT EXECUTED 110317: c3 ret <== NOT EXECUTED * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { _Thread_Change_priority( the_thread, new_priority, true ); 110318: 51 push %ecx 110319: 6a 01 push $0x1 11031b: 52 push %edx 11031c: 50 push %eax 11031d: e8 ea cc ff ff call 10d00c <_Thread_Change_priority> 110322: 83 c4 10 add $0x10,%esp #if 0 printk( "lower priority\n" ); #endif } } } 110325: c9 leave 110326: c3 ret 00111088 <_POSIX_Timer_Insert_helper>: Watchdog_Interval ticks, Objects_Id id, Watchdog_Service_routine_entry TSR, void *arg ) { 111088: 55 push %ebp 111089: 89 e5 mov %esp,%ebp 11108b: 56 push %esi 11108c: 53 push %ebx 11108d: 8b 5d 08 mov 0x8(%ebp),%ebx ISR_Level level; (void) _Watchdog_Remove( timer ); 111090: 83 ec 0c sub $0xc,%esp 111093: 53 push %ebx 111094: e8 eb df ff ff call 10f084 <_Watchdog_Remove> _ISR_Disable( level ); 111099: 9c pushf 11109a: fa cli 11109b: 5e pop %esi /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( timer->state != WATCHDOG_INACTIVE ) { 11109c: 83 c4 10 add $0x10,%esp 11109f: 8b 43 08 mov 0x8(%ebx),%eax 1110a2: 85 c0 test %eax,%eax 1110a4: 74 0e je 1110b4 <_POSIX_Timer_Insert_helper+0x2c> _ISR_Enable( level ); 1110a6: 56 push %esi 1110a7: 9d popf 1110a8: 31 c0 xor %eax,%eax */ _Watchdog_Initialize( timer, TSR, id, arg ); _Watchdog_Insert_ticks( timer, ticks ); _ISR_Enable( level ); return true; } 1110aa: 8d 65 f8 lea -0x8(%ebp),%esp 1110ad: 5b pop %ebx 1110ae: 5e pop %esi 1110af: c9 leave 1110b0: c3 ret 1110b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 1110b4: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) the_watchdog->routine = routine; 1110bb: 8b 45 14 mov 0x14(%ebp),%eax 1110be: 89 43 1c mov %eax,0x1c(%ebx) the_watchdog->id = id; 1110c1: 8b 45 10 mov 0x10(%ebp),%eax 1110c4: 89 43 20 mov %eax,0x20(%ebx) the_watchdog->user_data = user_data; 1110c7: 8b 45 18 mov 0x18(%ebp),%eax 1110ca: 89 43 24 mov %eax,0x24(%ebx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 1110cd: 8b 45 0c mov 0xc(%ebp),%eax 1110d0: 89 43 0c mov %eax,0xc(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 1110d3: 83 ec 08 sub $0x8,%esp 1110d6: 53 push %ebx 1110d7: 68 f8 95 12 00 push $0x1295f8 1110dc: e8 6b de ff ff call 10ef4c <_Watchdog_Insert> * OK. Now we now the timer was not rescheduled by an interrupt * so we can atomically initialize it as in use. */ _Watchdog_Initialize( timer, TSR, id, arg ); _Watchdog_Insert_ticks( timer, ticks ); _ISR_Enable( level ); 1110e1: 56 push %esi 1110e2: 9d popf 1110e3: b0 01 mov $0x1,%al return true; 1110e5: 83 c4 10 add $0x10,%esp } 1110e8: 8d 65 f8 lea -0x8(%ebp),%esp 1110eb: 5b pop %ebx 1110ec: 5e pop %esi 1110ed: c9 leave 1110ee: c3 ret 0010b6d4 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { 10b6d4: 55 push %ebp 10b6d5: 89 e5 mov %esp,%ebp 10b6d7: 53 push %ebx 10b6d8: 83 ec 04 sub $0x4,%esp 10b6db: 8b 5d 0c mov 0xc(%ebp),%ebx bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; 10b6de: ff 43 68 incl 0x68(%ebx) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 10b6e1: 8b 53 54 mov 0x54(%ebx),%edx 10b6e4: 85 d2 test %edx,%edx 10b6e6: 75 28 jne 10b710 <_POSIX_Timer_TSR+0x3c> ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { 10b6e8: 8b 43 58 mov 0x58(%ebx),%eax 10b6eb: 85 c0 test %eax,%eax 10b6ed: 75 21 jne 10b710 <_POSIX_Timer_TSR+0x3c> /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; 10b6ef: c6 43 3c 04 movb $0x4,0x3c(%ebx) <== NOT EXECUTED /* * The sending of the signal to the process running the handling function * specified for that signal is simulated */ if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) { 10b6f3: 83 ec 08 sub $0x8,%esp 10b6f6: ff 73 44 pushl 0x44(%ebx) 10b6f9: ff 73 38 pushl 0x38(%ebx) 10b6fc: e8 0f 55 00 00 call 110c10 } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; 10b701: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx) 10b708: 83 c4 10 add $0x10,%esp } 10b70b: 8b 5d fc mov -0x4(%ebp),%ebx 10b70e: c9 leave 10b70f: c3 ret ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { activated = _POSIX_Timer_Insert_helper( 10b710: 83 ec 0c sub $0xc,%esp 10b713: 53 push %ebx 10b714: 68 d4 b6 10 00 push $0x10b6d4 10b719: ff 73 08 pushl 0x8(%ebx) 10b71c: ff 73 64 pushl 0x64(%ebx) 10b71f: 8d 43 10 lea 0x10(%ebx),%eax 10b722: 50 push %eax 10b723: e8 60 59 00 00 call 111088 <_POSIX_Timer_Insert_helper> ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) 10b728: 83 c4 20 add $0x20,%esp 10b72b: 84 c0 test %al,%al 10b72d: 74 dc je 10b70b <_POSIX_Timer_TSR+0x37> return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); 10b72f: 83 ec 0c sub $0xc,%esp 10b732: 8d 43 6c lea 0x6c(%ebx),%eax 10b735: 50 push %eax 10b736: e8 65 16 00 00 call 10cda0 <_TOD_Get> /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; 10b73b: c6 43 3c 03 movb $0x3,0x3c(%ebx) /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || 10b73f: 83 c4 10 add $0x10,%esp 10b742: eb af jmp 10b6f3 <_POSIX_Timer_TSR+0x1f> 0011259c <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) { 11259c: 55 push %ebp 11259d: 89 e5 mov %esp,%ebp 11259f: 57 push %edi 1125a0: 56 push %esi 1125a1: 53 push %ebx 1125a2: 83 ec 48 sub $0x48,%esp 1125a5: 8b 75 08 mov 0x8(%ebp),%esi 1125a8: 8b 5d 0c mov 0xc(%ebp),%ebx siginfo_t siginfo_struct; sigset_t saved_signals_blocked; if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct, 1125ab: 6a 01 push $0x1 1125ad: 0f b6 45 10 movzbl 0x10(%ebp),%eax 1125b1: 50 push %eax 1125b2: 8d 7d dc lea -0x24(%ebp),%edi 1125b5: 57 push %edi 1125b6: 53 push %ebx 1125b7: 56 push %esi 1125b8: e8 6b 00 00 00 call 112628 <_POSIX_signals_Clear_signals> 1125bd: 83 c4 20 add $0x20,%esp 1125c0: 84 c0 test %al,%al 1125c2: 74 58 je 11261c <_POSIX_signals_Check_signal+0x80> #endif /* * Just to prevent sending a signal which is currently being ignored. */ if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN ) 1125c4: 8d 04 5b lea (%ebx,%ebx,2),%eax 1125c7: c1 e0 02 shl $0x2,%eax 1125ca: 8b 90 08 7d 12 00 mov 0x127d08(%eax),%edx 1125d0: 89 55 c4 mov %edx,-0x3c(%ebp) 1125d3: 4a dec %edx 1125d4: 74 46 je 11261c <_POSIX_signals_Check_signal+0x80> return false; /* * Block the signals requested in sa_mask */ saved_signals_blocked = api->signals_blocked; 1125d6: 8b 8e cc 00 00 00 mov 0xcc(%esi),%ecx api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; 1125dc: 8b 90 04 7d 12 00 mov 0x127d04(%eax),%edx 1125e2: 09 ca or %ecx,%edx 1125e4: 89 96 cc 00 00 00 mov %edx,0xcc(%esi) /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { 1125ea: 83 b8 00 7d 12 00 02 cmpl $0x2,0x127d00(%eax) 1125f1: 74 21 je 112614 <_POSIX_signals_Check_signal+0x78> &siginfo_struct, NULL /* context is undefined per 1003.1b-1993, p. 66 */ ); break; default: (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo ); 1125f3: 83 ec 0c sub $0xc,%esp 1125f6: 53 push %ebx 1125f7: 89 4d d4 mov %ecx,-0x2c(%ebp) 1125fa: ff 55 c4 call *-0x3c(%ebp) 1125fd: 83 c4 10 add $0x10,%esp 112600: 8b 4d d4 mov -0x2c(%ebp),%ecx } /* * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; 112603: 89 8e cc 00 00 00 mov %ecx,0xcc(%esi) 112609: b0 01 mov $0x1,%al return true; } 11260b: 8d 65 f4 lea -0xc(%ebp),%esp 11260e: 5b pop %ebx 11260f: 5e pop %esi 112610: 5f pop %edi 112611: c9 leave 112612: c3 ret 112613: 90 nop <== NOT EXECUTED /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { case SA_SIGINFO: (*_POSIX_signals_Vectors[ signo ].sa_sigaction)( 112614: 50 push %eax 112615: 6a 00 push $0x0 112617: 57 push %edi 112618: eb dc jmp 1125f6 <_POSIX_signals_Check_signal+0x5a> 11261a: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; return true; 11261c: 31 c0 xor %eax,%eax } 11261e: 8d 65 f4 lea -0xc(%ebp),%esp 112621: 5b pop %ebx 112622: 5e pop %esi 112623: 5f pop %edi 112624: c9 leave 112625: c3 ret 001135b0 <_POSIX_signals_Clear_process_signals>: */ void _POSIX_signals_Clear_process_signals( int signo ) { 1135b0: 55 push %ebp 1135b1: 89 e5 mov %esp,%ebp 1135b3: 53 push %ebx 1135b4: 8b 4d 08 mov 0x8(%ebp),%ecx clear_signal = true; mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); 1135b7: 9c pushf 1135b8: fa cli 1135b9: 5a pop %edx if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { 1135ba: 8d 04 49 lea (%ecx,%ecx,2),%eax 1135bd: c1 e0 02 shl $0x2,%eax 1135c0: 83 b8 00 7d 12 00 02 cmpl $0x2,0x127d00(%eax) 1135c7: 74 23 je 1135ec <_POSIX_signals_Clear_process_signals+0x3c> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; 1135c9: 49 dec %ecx 1135ca: b8 fe ff ff ff mov $0xfffffffe,%eax 1135cf: d3 c0 rol %cl,%eax 1135d1: 23 05 e0 7e 12 00 and 0x127ee0,%eax 1135d7: a3 e0 7e 12 00 mov %eax,0x127ee0 if ( !_POSIX_signals_Pending ) 1135dc: 85 c0 test %eax,%eax 1135de: 75 06 jne 1135e6 <_POSIX_signals_Clear_process_signals+0x36> _Thread_Do_post_task_switch_extension--; 1135e0: ff 0d bc 77 12 00 decl 0x1277bc } _ISR_Enable( level ); 1135e6: 52 push %edx 1135e7: 9d popf } 1135e8: 5b pop %ebx 1135e9: c9 leave 1135ea: c3 ret 1135eb: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 1135ec: 8d 98 04 7f 12 00 lea 0x127f04(%eax),%ebx 1135f2: 39 98 00 7f 12 00 cmp %ebx,0x127f00(%eax) 1135f8: 75 ec jne 1135e6 <_POSIX_signals_Clear_process_signals+0x36> 1135fa: eb cd jmp 1135c9 <_POSIX_signals_Clear_process_signals+0x19> 00112628 <_POSIX_signals_Clear_signals>: int signo, siginfo_t *info, bool is_global, bool check_blocked ) { 112628: 55 push %ebp 112629: 89 e5 mov %esp,%ebp 11262b: 57 push %edi 11262c: 56 push %esi 11262d: 53 push %ebx 11262e: 83 ec 1c sub $0x1c,%esp 112631: 8b 5d 0c mov 0xc(%ebp),%ebx 112634: 0f b6 7d 14 movzbl 0x14(%ebp),%edi static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); 112638: 8d 4b ff lea -0x1(%ebx),%ecx 11263b: b8 01 00 00 00 mov $0x1,%eax 112640: d3 e0 shl %cl,%eax /* set blocked signals based on if checking for them, SIGNAL_ALL_MASK * insures that no signals are blocked and all are checked. */ if ( check_blocked ) 112642: 80 7d 18 00 cmpb $0x0,0x18(%ebp) 112646: 75 3c jne 112684 <_POSIX_signals_Clear_signals+0x5c> 112648: b9 ff ff ff ff mov $0xffffffff,%ecx signals_blocked = SIGNAL_ALL_MASK; /* XXX is this right for siginfo type signals? */ /* XXX are we sure they can be cleared the same way? */ _ISR_Disable( level ); 11264d: 9c pushf 11264e: fa cli 11264f: 8f 45 e4 popl -0x1c(%ebp) if ( is_global ) { 112652: 89 fa mov %edi,%edx 112654: 84 d2 test %dl,%dl 112656: 74 3c je 112694 <_POSIX_signals_Clear_signals+0x6c> if ( mask & (_POSIX_signals_Pending & signals_blocked) ) { 112658: 23 05 e0 7e 12 00 and 0x127ee0,%eax 11265e: 85 c8 test %ecx,%eax 112660: 74 5e je 1126c0 <_POSIX_signals_Clear_signals+0x98> if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { 112662: 8d 14 5b lea (%ebx,%ebx,2),%edx 112665: c1 e2 02 shl $0x2,%edx 112668: 83 ba 00 7d 12 00 02 cmpl $0x2,0x127d00(%edx) 11266f: 74 53 je 1126c4 <_POSIX_signals_Clear_signals+0x9c> &psiginfo->Node ); } else do_callout = false; } _POSIX_signals_Clear_process_signals( signo ); 112671: 83 ec 0c sub $0xc,%esp 112674: 53 push %ebx 112675: e8 36 0f 00 00 call 1135b0 <_POSIX_signals_Clear_process_signals> 11267a: b0 01 mov $0x1,%al 11267c: 83 c4 10 add $0x10,%esp 11267f: eb 30 jmp 1126b1 <_POSIX_signals_Clear_signals+0x89> 112681: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* set blocked signals based on if checking for them, SIGNAL_ALL_MASK * insures that no signals are blocked and all are checked. */ if ( check_blocked ) signals_blocked = ~api->signals_blocked; 112684: 8b 55 08 mov 0x8(%ebp),%edx 112687: 8b 8a cc 00 00 00 mov 0xcc(%edx),%ecx 11268d: f7 d1 not %ecx 11268f: eb bc jmp 11264d <_POSIX_signals_Clear_signals+0x25> 112691: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } _POSIX_signals_Clear_process_signals( signo ); do_callout = true; } } else { if ( mask & (api->signals_pending & signals_blocked) ) { 112694: 8b 55 08 mov 0x8(%ebp),%edx 112697: 8b 9a d0 00 00 00 mov 0xd0(%edx),%ebx 11269d: 89 c6 mov %eax,%esi 11269f: 21 de and %ebx,%esi 1126a1: 85 ce test %ecx,%esi 1126a3: 74 1b je 1126c0 <_POSIX_signals_Clear_signals+0x98> api->signals_pending &= ~mask; 1126a5: f7 d0 not %eax 1126a7: 21 d8 and %ebx,%eax 1126a9: 89 82 d0 00 00 00 mov %eax,0xd0(%edx) 1126af: b0 01 mov $0x1,%al do_callout = true; } } _ISR_Enable( level ); 1126b1: ff 75 e4 pushl -0x1c(%ebp) 1126b4: 9d popf return do_callout; } 1126b5: 8d 65 f4 lea -0xc(%ebp),%esp 1126b8: 5b pop %ebx 1126b9: 5e pop %esi 1126ba: 5f pop %edi 1126bb: c9 leave 1126bc: c3 ret 1126bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _POSIX_signals_Clear_process_signals( signo ); do_callout = true; } } else { if ( mask & (api->signals_pending & signals_blocked) ) { api->signals_pending &= ~mask; 1126c0: 31 c0 xor %eax,%eax 1126c2: eb ed jmp 1126b1 <_POSIX_signals_Clear_signals+0x89> _ISR_Disable( level ); if ( is_global ) { if ( mask & (_POSIX_signals_Pending & signals_blocked) ) { if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) 1126c4: 8d 8a 00 7f 12 00 lea 0x127f00(%edx),%ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 1126ca: 8b 82 00 7f 12 00 mov 0x127f00(%edx),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 1126d0: 8d 71 04 lea 0x4(%ecx),%esi 1126d3: 39 f0 cmp %esi,%eax 1126d5: 74 45 je 11271c <_POSIX_signals_Clear_signals+0xf4> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 1126d7: 8b 30 mov (%eax),%esi the_chain->first = new_first; 1126d9: 89 b2 00 7f 12 00 mov %esi,0x127f00(%edx) new_first->previous = _Chain_Head(the_chain); 1126df: 89 4e 04 mov %ecx,0x4(%esi) _Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] ); _POSIX_signals_Clear_process_signals( signo ); 1126e2: 83 ec 0c sub $0xc,%esp 1126e5: 53 push %ebx 1126e6: 89 45 e0 mov %eax,-0x20(%ebp) 1126e9: e8 c2 0e 00 00 call 1135b0 <_POSIX_signals_Clear_process_signals> * It may be impossible to get here with an empty chain * BUT until that is proven we need to be defensive and * protect against it. */ if ( psiginfo ) { *info = psiginfo->Info; 1126ee: 8b 45 e0 mov -0x20(%ebp),%eax 1126f1: 8d 70 08 lea 0x8(%eax),%esi 1126f4: b9 03 00 00 00 mov $0x3,%ecx 1126f9: 8b 7d 10 mov 0x10(%ebp),%edi 1126fc: f3 a5 rep movsl %ds:(%esi),%es:(%edi) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 1126fe: c7 00 84 7e 12 00 movl $0x127e84,(%eax) old_last_node = the_chain->last; 112704: 8b 15 88 7e 12 00 mov 0x127e88,%edx the_chain->last = the_node; 11270a: a3 88 7e 12 00 mov %eax,0x127e88 old_last_node->next = the_node; 11270f: 89 02 mov %eax,(%edx) the_node->previous = old_last_node; 112711: 89 50 04 mov %edx,0x4(%eax) 112714: 83 c4 10 add $0x10,%esp 112717: e9 55 ff ff ff jmp 112671 <_POSIX_signals_Clear_signals+0x49> if ( is_global ) { if ( mask & (_POSIX_signals_Pending & signals_blocked) ) { if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] ); _POSIX_signals_Clear_process_signals( signo ); 11271c: 83 ec 0c sub $0xc,%esp 11271f: 53 push %ebx 112720: e8 8b 0e 00 00 call 1135b0 <_POSIX_signals_Clear_process_signals> 112725: 83 c4 10 add $0x10,%esp 112728: e9 44 ff ff ff jmp 112671 <_POSIX_signals_Clear_signals+0x49> 00113620 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { 113620: 55 push %ebp 113621: 89 e5 mov %esp,%ebp 113623: 57 push %edi 113624: 56 push %esi 113625: 53 push %ebx 113626: 83 ec 0c sub $0xc,%esp 113629: 8b 5d 08 mov 0x8(%ebp),%ebx 11362c: 8b 55 0c mov 0xc(%ebp),%edx POSIX_API_Control *api; sigset_t mask; siginfo_t *the_info = NULL; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 11362f: 8b b3 f8 00 00 00 mov 0xf8(%ebx),%esi 113635: 8d 4a ff lea -0x1(%edx),%ecx 113638: b8 01 00 00 00 mov $0x1,%eax 11363d: d3 e0 shl %cl,%eax /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { 11363f: 8b 4b 10 mov 0x10(%ebx),%ecx 113642: 89 cf mov %ecx,%edi 113644: 81 e7 00 80 00 10 and $0x10008000,%edi 11364a: 81 ff 00 80 00 10 cmp $0x10008000,%edi 113650: 74 6e je 1136c0 <_POSIX_signals_Unblock_thread+0xa0> } /* * Thread is not waiting due to a sigwait. */ if ( ~api->signals_blocked & mask ) { 113652: 8b 96 cc 00 00 00 mov 0xcc(%esi),%edx 113658: f7 d2 not %edx 11365a: 85 d0 test %edx,%eax 11365c: 74 56 je 1136b4 <_POSIX_signals_Unblock_thread+0x94> * it is not blocked, THEN * we need to dispatch at the end of this ISR. * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; 11365e: c6 43 74 01 movb $0x1,0x74(%ebx) if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { 113662: f7 c1 00 00 00 10 test $0x10000000,%ecx 113668: 74 32 je 11369c <_POSIX_signals_Unblock_thread+0x7c> the_thread->Wait.return_code = EINTR; 11366a: c7 43 34 04 00 00 00 movl $0x4,0x34(%ebx) #if 0 if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ 113671: 83 e1 08 and $0x8,%ecx 113674: 74 3e je 1136b4 <_POSIX_signals_Unblock_thread+0x94> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 113676: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 11367a: 0f 84 a8 00 00 00 je 113728 <_POSIX_signals_Unblock_thread+0x108> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 113680: 83 ec 08 sub $0x8,%esp 113683: 68 f8 ff 03 10 push $0x1003fff8 113688: 53 push %ebx 113689: e8 be 9a ff ff call 10d14c <_Thread_Clear_state> 11368e: 31 c0 xor %eax,%eax 113690: 83 c4 10 add $0x10,%esp if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; } } return false; } 113693: 8d 65 f4 lea -0xc(%ebp),%esp 113696: 5b pop %ebx 113697: 5e pop %esi 113698: 5f pop %edi 113699: c9 leave 11369a: c3 ret 11369b: 90 nop <== NOT EXECUTED if ( _States_Is_delaying(the_thread->current_state) ){ if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { 11369c: 85 c9 test %ecx,%ecx 11369e: 75 14 jne 1136b4 <_POSIX_signals_Unblock_thread+0x94> if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 1136a0: a1 b4 77 12 00 mov 0x1277b4,%eax 1136a5: 85 c0 test %eax,%eax 1136a7: 74 0b je 1136b4 <_POSIX_signals_Unblock_thread+0x94> 1136a9: 3b 1d d8 77 12 00 cmp 0x1277d8,%ebx 1136af: 74 6b je 11371c <_POSIX_signals_Unblock_thread+0xfc> 1136b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _ISR_Signals_to_thread_executing = true; 1136b4: 31 c0 xor %eax,%eax } } return false; } 1136b6: 8d 65 f4 lea -0xc(%ebp),%esp 1136b9: 5b pop %ebx 1136ba: 5e pop %esi 1136bb: 5f pop %edi 1136bc: c9 leave 1136bd: c3 ret 1136be: 66 90 xchg %ax,%ax <== NOT EXECUTED * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { 1136c0: 85 43 30 test %eax,0x30(%ebx) 1136c3: 74 33 je 1136f8 <_POSIX_signals_Unblock_thread+0xd8> the_thread->Wait.return_code = EINTR; 1136c5: c7 43 34 04 00 00 00 movl $0x4,0x34(%ebx) the_info = (siginfo_t *) the_thread->Wait.return_argument; 1136cc: 8b 43 28 mov 0x28(%ebx),%eax if ( !info ) { 1136cf: 8b 4d 10 mov 0x10(%ebp),%ecx 1136d2: 85 c9 test %ecx,%ecx 1136d4: 74 32 je 113708 <_POSIX_signals_Unblock_thread+0xe8> the_info->si_signo = signo; the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; } else { *the_info = *info; 1136d6: b9 03 00 00 00 mov $0x3,%ecx 1136db: 89 c7 mov %eax,%edi 1136dd: 8b 75 10 mov 0x10(%ebp),%esi 1136e0: f3 a5 rep movsl %ds:(%esi),%es:(%edi) } _Thread_queue_Extract_with_proxy( the_thread ); 1136e2: 83 ec 0c sub $0xc,%esp 1136e5: 53 push %ebx 1136e6: e8 21 a5 ff ff call 10dc0c <_Thread_queue_Extract_with_proxy> 1136eb: b0 01 mov $0x1,%al return true; 1136ed: 83 c4 10 add $0x10,%esp if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; } } return false; } 1136f0: 8d 65 f4 lea -0xc(%ebp),%esp 1136f3: 5b pop %ebx 1136f4: 5e pop %esi 1136f5: 5f pop %edi 1136f6: c9 leave 1136f7: c3 ret * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { 1136f8: 8b 8e cc 00 00 00 mov 0xcc(%esi),%ecx 1136fe: f7 d1 not %ecx 113700: 85 c8 test %ecx,%eax 113702: 75 c1 jne 1136c5 <_POSIX_signals_Unblock_thread+0xa5> 113704: eb ae jmp 1136b4 <_POSIX_signals_Unblock_thread+0x94> 113706: 66 90 xchg %ax,%ax <== NOT EXECUTED the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; 113708: 89 10 mov %edx,(%eax) the_info->si_code = SI_USER; 11370a: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax) the_info->si_value.sival_int = 0; 113711: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) 113718: eb c8 jmp 1136e2 <_POSIX_signals_Unblock_thread+0xc2> 11371a: 66 90 xchg %ax,%ax <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 11371c: c6 05 88 78 12 00 01 movb $0x1,0x127888 113723: 31 c0 xor %eax,%eax 113725: eb 8f jmp 1136b6 <_POSIX_signals_Unblock_thread+0x96> 113727: 90 nop <== NOT EXECUTED _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); 113728: 83 ec 0c sub $0xc,%esp 11372b: 8d 43 48 lea 0x48(%ebx),%eax 11372e: 50 push %eax 11372f: e8 44 ae ff ff call 10e578 <_Watchdog_Remove> 113734: 83 c4 10 add $0x10,%esp 113737: e9 44 ff ff ff jmp 113680 <_POSIX_signals_Unblock_thread+0x60> 0012f024 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 12f024: 55 push %ebp 12f025: 89 e5 mov %esp,%ebp 12f027: 56 push %esi 12f028: 53 push %ebx 12f029: 8b 5d 08 mov 0x8(%ebp),%ebx 12f02c: 8b 75 0c mov 0xc(%ebp),%esi if ( !the_heap ) 12f02f: 85 db test %ebx,%ebx 12f031: 74 35 je 12f068 <_Protected_heap_Get_information+0x44> return false; if ( !the_info ) 12f033: 85 f6 test %esi,%esi 12f035: 74 31 je 12f068 <_Protected_heap_Get_information+0x44> return false; _RTEMS_Lock_allocator(); 12f037: 83 ec 0c sub $0xc,%esp 12f03a: ff 35 b0 ef 16 00 pushl 0x16efb0 12f040: e8 43 2d fe ff call 111d88 <_API_Mutex_Lock> _Heap_Get_information( the_heap, the_info ); 12f045: 5a pop %edx 12f046: 59 pop %ecx 12f047: 56 push %esi 12f048: 53 push %ebx 12f049: e8 7a ee 00 00 call 13dec8 <_Heap_Get_information> _RTEMS_Unlock_allocator(); 12f04e: 58 pop %eax 12f04f: ff 35 b0 ef 16 00 pushl 0x16efb0 12f055: e8 76 2d fe ff call 111dd0 <_API_Mutex_Unlock> 12f05a: b0 01 mov $0x1,%al return true; 12f05c: 83 c4 10 add $0x10,%esp } 12f05f: 8d 65 f8 lea -0x8(%ebp),%esp 12f062: 5b pop %ebx 12f063: 5e pop %esi 12f064: c9 leave 12f065: c3 ret 12f066: 66 90 xchg %ax,%ax <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; 12f068: 31 c0 xor %eax,%eax } 12f06a: 8d 65 f8 lea -0x8(%ebp),%esp 12f06d: 5b pop %ebx 12f06e: 5e pop %esi 12f06f: c9 leave 12f070: c3 ret 00110798 <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 110798: 55 push %ebp 110799: 89 e5 mov %esp,%ebp 11079b: 56 push %esi 11079c: 53 push %ebx 11079d: 83 ec 10 sub $0x10,%esp 1107a0: 8b 5d 08 mov 0x8(%ebp),%ebx 1107a3: 8b 75 0c mov 0xc(%ebp),%esi 1107a6: 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 ) { 1107a9: 8b 15 98 e1 12 00 mov 0x12e198,%edx 1107af: 85 d2 test %edx,%edx 1107b1: 74 19 je 1107cc <_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 ); 1107b3: 0f b6 c0 movzbl %al,%eax 1107b6: 89 45 10 mov %eax,0x10(%ebp) 1107b9: 89 75 0c mov %esi,0xc(%ebp) 1107bc: 89 5d 08 mov %ebx,0x8(%ebp) } return status; } 1107bf: 8d 65 f8 lea -0x8(%ebp),%esp 1107c2: 5b pop %ebx 1107c3: 5e pop %esi 1107c4: 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 ); 1107c5: e9 f2 f1 ff ff jmp 10f9bc <_Heap_Walk> 1107ca: 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(); 1107cc: 83 ec 0c sub $0xc,%esp 1107cf: ff 35 50 e2 12 00 pushl 0x12e250 1107d5: 88 45 f4 mov %al,-0xc(%ebp) 1107d8: e8 eb e3 ff ff call 10ebc8 <_API_Mutex_Lock> status = _Heap_Walk( the_heap, source, do_dump ); 1107dd: 83 c4 0c add $0xc,%esp 1107e0: 8a 45 f4 mov -0xc(%ebp),%al 1107e3: 0f b6 c0 movzbl %al,%eax 1107e6: 50 push %eax 1107e7: 56 push %esi 1107e8: 53 push %ebx 1107e9: e8 ce f1 ff ff call 10f9bc <_Heap_Walk> _RTEMS_Unlock_allocator(); 1107ee: 5a pop %edx 1107ef: ff 35 50 e2 12 00 pushl 0x12e250 1107f5: 88 45 f4 mov %al,-0xc(%ebp) 1107f8: e8 13 e4 ff ff call 10ec10 <_API_Mutex_Unlock> 1107fd: 83 c4 10 add $0x10,%esp } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 110800: 8a 45 f4 mov -0xc(%ebp),%al 110803: 8d 65 f8 lea -0x8(%ebp),%esp 110806: 5b pop %ebx 110807: 5e pop %esi 110808: c9 leave 110809: c3 ret 00110754 <_RTEMS_tasks_Initialize_user_tasks>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { 110754: 55 push %ebp 110755: 89 e5 mov %esp,%ebp 110757: 83 ec 08 sub $0x8,%esp if ( _RTEMS_tasks_Initialize_user_tasks_p ) 11075a: a1 80 35 12 00 mov 0x123580,%eax 11075f: 85 c0 test %eax,%eax 110761: 74 05 je 110768 <_RTEMS_tasks_Initialize_user_tasks+0x14> (*_RTEMS_tasks_Initialize_user_tasks_p)(); } 110763: c9 leave */ void _RTEMS_tasks_Initialize_user_tasks( void ) { if ( _RTEMS_tasks_Initialize_user_tasks_p ) (*_RTEMS_tasks_Initialize_user_tasks_p)(); 110764: ff e0 jmp *%eax 110766: 66 90 xchg %ax,%ax <== NOT EXECUTED } 110768: c9 leave 110769: c3 ret 0013d964 <_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 ) { 13d964: 55 push %ebp 13d965: 89 e5 mov %esp,%ebp 13d967: 57 push %edi 13d968: 56 push %esi 13d969: 53 push %ebx 13d96a: 83 ec 38 sub $0x38,%esp 13d96d: 8b 5d 08 mov 0x8(%ebp),%ebx #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; 13d970: 8b 7b 40 mov 0x40(%ebx),%edi /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 13d973: 8d 75 e0 lea -0x20(%ebp),%esi 13d976: 56 push %esi 13d977: e8 c8 10 ff ff call 12ea44 <_TOD_Get_uptime> _Timestamp_Subtract( 13d97c: 83 c4 0c add $0xc,%esp 13d97f: ff 75 0c pushl 0xc(%ebp) 13d982: 56 push %esi 13d983: 8d 43 4c lea 0x4c(%ebx),%eax 13d986: 50 push %eax 13d987: e8 08 6c fd ff call 114594 <_Timespec_Subtract> #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; 13d98c: 8b 87 84 00 00 00 mov 0x84(%edi),%eax 13d992: 8b 97 88 00 00 00 mov 0x88(%edi),%edx 13d998: 89 45 d8 mov %eax,-0x28(%ebp) 13d99b: 89 55 dc mov %edx,-0x24(%ebp) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 13d99e: 83 c4 10 add $0x10,%esp 13d9a1: 3b 3d b8 ef 16 00 cmp 0x16efb8,%edi 13d9a7: 74 0b je 13d9b4 <_Rate_monotonic_Get_status+0x50> 13d9a9: b0 01 mov $0x1,%al return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 13d9ab: 8d 65 f4 lea -0xc(%ebp),%esp 13d9ae: 5b pop %ebx 13d9af: 5e pop %esi 13d9b0: 5f pop %edi 13d9b1: c9 leave 13d9b2: c3 ret 13d9b3: 90 nop <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( 13d9b4: 57 push %edi 13d9b5: 8d 7d d0 lea -0x30(%ebp),%edi 13d9b8: 57 push %edi 13d9b9: 56 push %esi 13d9ba: 68 c0 ef 16 00 push $0x16efc0 13d9bf: e8 d0 6b fd ff call 114594 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); 13d9c4: 59 pop %ecx 13d9c5: 5e pop %esi 13d9c6: 57 push %edi 13d9c7: 8d 75 d8 lea -0x28(%ebp),%esi 13d9ca: 56 push %esi 13d9cb: e8 88 6b fd ff call 114558 <_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)) 13d9d0: 83 c3 44 add $0x44,%ebx 13d9d3: 58 pop %eax 13d9d4: 5a pop %edx 13d9d5: 53 push %ebx 13d9d6: 56 push %esi 13d9d7: e8 dc 06 00 00 call 13e0b8 <_Timespec_Less_than> 13d9dc: 83 c4 10 add $0x10,%esp 13d9df: 84 c0 test %al,%al 13d9e1: 74 05 je 13d9e8 <_Rate_monotonic_Get_status+0x84> 13d9e3: 31 c0 xor %eax,%eax 13d9e5: eb c4 jmp 13d9ab <_Rate_monotonic_Get_status+0x47> 13d9e7: 90 nop <== NOT EXECUTED return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( 13d9e8: 57 push %edi 13d9e9: ff 75 10 pushl 0x10(%ebp) 13d9ec: 56 push %esi 13d9ed: 53 push %ebx 13d9ee: e8 a1 6b fd ff call 114594 <_Timespec_Subtract> 13d9f3: b0 01 mov $0x1,%al 13d9f5: 83 c4 10 add $0x10,%esp 13d9f8: eb b1 jmp 13d9ab <_Rate_monotonic_Get_status+0x47> 0013d8f0 <_Rate_monotonic_Initiate_statistics>: } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { 13d8f0: 55 push %ebp 13d8f1: 89 e5 mov %esp,%ebp 13d8f3: 57 push %edi 13d8f4: 56 push %esi 13d8f5: 53 push %ebx 13d8f6: 83 ec 28 sub $0x28,%esp 13d8f9: 8b 5d 08 mov 0x8(%ebp),%ebx Thread_Control *owning_thread = the_period->owner; 13d8fc: 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 ); 13d8ff: 8d 7d e0 lea -0x20(%ebp),%edi 13d902: 57 push %edi 13d903: e8 3c 11 ff ff call 12ea44 <_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; 13d908: 8b 45 e0 mov -0x20(%ebp),%eax 13d90b: 8b 55 e4 mov -0x1c(%ebp),%edx 13d90e: 89 43 4c mov %eax,0x4c(%ebx) 13d911: 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; 13d914: 8b 86 84 00 00 00 mov 0x84(%esi),%eax 13d91a: 8b 96 88 00 00 00 mov 0x88(%esi),%edx 13d920: 89 43 44 mov %eax,0x44(%ebx) 13d923: 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) { 13d926: 83 c4 10 add $0x10,%esp 13d929: 3b 35 b8 ef 16 00 cmp 0x16efb8,%esi 13d92f: 74 0b je 13d93c <_Rate_monotonic_Initiate_statistics+0x4c> ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif } 13d931: 8d 65 f4 lea -0xc(%ebp),%esp 13d934: 5b pop %ebx 13d935: 5e pop %esi 13d936: 5f pop %edi 13d937: c9 leave 13d938: c3 ret 13d939: 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( 13d93c: 51 push %ecx 13d93d: 8d 75 d8 lea -0x28(%ebp),%esi 13d940: 56 push %esi 13d941: 57 push %edi 13d942: 68 c0 ef 16 00 push $0x16efc0 13d947: e8 48 6c fd ff call 114594 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); 13d94c: 58 pop %eax 13d94d: 5a pop %edx 13d94e: 56 push %esi 13d94f: 83 c3 44 add $0x44,%ebx 13d952: 53 push %ebx 13d953: e8 00 6c fd ff call 114558 <_Timespec_Add_to> 13d958: 83 c4 10 add $0x10,%esp } #endif } 13d95b: 8d 65 f4 lea -0xc(%ebp),%esp 13d95e: 5b pop %ebx 13d95f: 5e pop %esi 13d960: 5f pop %edi 13d961: c9 leave 13d962: c3 ret 0013dc9c <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 13dc9c: 55 push %ebp 13dc9d: 89 e5 mov %esp,%ebp 13dc9f: 83 ec 2c sub $0x2c,%esp 13dca2: 8d 45 f4 lea -0xc(%ebp),%eax 13dca5: 50 push %eax 13dca6: ff 75 08 pushl 0x8(%ebp) 13dca9: 68 a0 fb 16 00 push $0x16fba0 13dcae: e8 41 53 fd ff call 112ff4 <_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 ) { 13dcb3: 83 c4 10 add $0x10,%esp 13dcb6: 8b 55 f4 mov -0xc(%ebp),%edx 13dcb9: 85 d2 test %edx,%edx 13dcbb: 75 29 jne 13dce6 <_Rate_monotonic_Timeout+0x4a> case OBJECTS_LOCAL: the_thread = the_period->owner; 13dcbd: 8b 50 40 mov 0x40(%eax),%edx if ( _States_Is_waiting_for_period( the_thread->current_state ) && 13dcc0: f6 42 11 40 testb $0x40,0x11(%edx) 13dcc4: 74 08 je 13dcce <_Rate_monotonic_Timeout+0x32> the_thread->Wait.id == the_period->Object.id ) { 13dcc6: 8b 4a 20 mov 0x20(%edx),%ecx 13dcc9: 3b 48 08 cmp 0x8(%eax),%ecx 13dccc: 74 4e je 13dd1c <_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 ) { 13dcce: 83 78 38 01 cmpl $0x1,0x38(%eax) 13dcd2: 74 14 je 13dce8 <_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; 13dcd4: 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; 13dcdb: a1 f8 ee 16 00 mov 0x16eef8,%eax 13dce0: 48 dec %eax 13dce1: a3 f8 ee 16 00 mov %eax,0x16eef8 case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 13dce6: c9 leave 13dce7: 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; 13dce8: c7 40 38 03 00 00 00 movl $0x3,0x38(%eax) _Rate_monotonic_Initiate_statistics( the_period ); 13dcef: 83 ec 0c sub $0xc,%esp 13dcf2: 50 push %eax 13dcf3: 89 45 e4 mov %eax,-0x1c(%ebp) 13dcf6: e8 f5 fb ff ff call 13d8f0 <_Rate_monotonic_Initiate_statistics> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13dcfb: 8b 45 e4 mov -0x1c(%ebp),%eax 13dcfe: 8b 50 3c mov 0x3c(%eax),%edx 13dd01: 89 50 1c mov %edx,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13dd04: 5a pop %edx 13dd05: 59 pop %ecx 13dd06: 83 c0 10 add $0x10,%eax 13dd09: 50 push %eax 13dd0a: 68 d8 ef 16 00 push $0x16efd8 13dd0f: e8 50 6b fd ff call 114864 <_Watchdog_Insert> 13dd14: 83 c4 10 add $0x10,%esp 13dd17: eb c2 jmp 13dcdb <_Rate_monotonic_Timeout+0x3f> 13dd19: 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 ); 13dd1c: 83 ec 08 sub $0x8,%esp 13dd1f: 68 f8 ff 03 10 push $0x1003fff8 13dd24: 52 push %edx 13dd25: 89 45 e4 mov %eax,-0x1c(%ebp) 13dd28: e8 43 58 fd ff call 113570 <_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 ); 13dd2d: 8b 45 e4 mov -0x1c(%ebp),%eax 13dd30: 89 04 24 mov %eax,(%esp) 13dd33: eb c1 jmp 13dcf6 <_Rate_monotonic_Timeout+0x5a> 0013d9fc <_Rate_monotonic_Update_statistics>: } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { 13d9fc: 55 push %ebp 13d9fd: 89 e5 mov %esp,%ebp 13d9ff: 57 push %edi 13da00: 56 push %esi 13da01: 53 push %ebx 13da02: 83 ec 1c sub $0x1c,%esp 13da05: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; 13da08: ff 43 54 incl 0x54(%ebx) if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 13da0b: 83 7b 38 04 cmpl $0x4,0x38(%ebx) 13da0f: 0f 84 bf 00 00 00 je 13dad4 <_Rate_monotonic_Update_statistics+0xd8> /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); 13da15: 52 push %edx 13da16: 8d 7d e0 lea -0x20(%ebp),%edi 13da19: 57 push %edi 13da1a: 8d 75 d8 lea -0x28(%ebp),%esi 13da1d: 56 push %esi 13da1e: 53 push %ebx 13da1f: e8 40 ff ff ff call 13d964 <_Rate_monotonic_Get_status> if (!valid_status) 13da24: 83 c4 10 add $0x10,%esp 13da27: 84 c0 test %al,%al 13da29: 75 09 jne 13da34 <_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 } 13da2b: 8d 65 f4 lea -0xc(%ebp),%esp 13da2e: 5b pop %ebx 13da2f: 5e pop %esi 13da30: 5f pop %edi 13da31: c9 leave 13da32: c3 ret 13da33: 90 nop <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); 13da34: 83 ec 08 sub $0x8,%esp 13da37: 57 push %edi 13da38: 8d 43 6c lea 0x6c(%ebx),%eax 13da3b: 50 push %eax 13da3c: e8 17 6b fd ff call 114558 <_Timespec_Add_to> if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) 13da41: 59 pop %ecx 13da42: 58 pop %eax 13da43: 8d 43 5c lea 0x5c(%ebx),%eax 13da46: 50 push %eax 13da47: 57 push %edi 13da48: e8 6b 06 00 00 call 13e0b8 <_Timespec_Less_than> 13da4d: 83 c4 10 add $0x10,%esp 13da50: 84 c0 test %al,%al 13da52: 74 0c je 13da60 <_Rate_monotonic_Update_statistics+0x64> stats->min_cpu_time = executed; 13da54: 8b 45 e0 mov -0x20(%ebp),%eax 13da57: 8b 55 e4 mov -0x1c(%ebp),%edx 13da5a: 89 43 5c mov %eax,0x5c(%ebx) 13da5d: 89 53 60 mov %edx,0x60(%ebx) if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 13da60: 83 ec 08 sub $0x8,%esp 13da63: 8d 43 64 lea 0x64(%ebx),%eax 13da66: 50 push %eax 13da67: 57 push %edi 13da68: e8 27 06 00 00 call 13e094 <_Timespec_Greater_than> 13da6d: 83 c4 10 add $0x10,%esp 13da70: 84 c0 test %al,%al 13da72: 74 0c je 13da80 <_Rate_monotonic_Update_statistics+0x84> stats->max_cpu_time = executed; 13da74: 8b 45 e0 mov -0x20(%ebp),%eax 13da77: 8b 55 e4 mov -0x1c(%ebp),%edx 13da7a: 89 43 64 mov %eax,0x64(%ebx) 13da7d: 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 ); 13da80: 83 ec 08 sub $0x8,%esp 13da83: 56 push %esi 13da84: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 13da8a: 50 push %eax 13da8b: e8 c8 6a fd ff call 114558 <_Timespec_Add_to> if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) 13da90: 58 pop %eax 13da91: 5a pop %edx 13da92: 8d 43 74 lea 0x74(%ebx),%eax 13da95: 50 push %eax 13da96: 56 push %esi 13da97: e8 1c 06 00 00 call 13e0b8 <_Timespec_Less_than> 13da9c: 83 c4 10 add $0x10,%esp 13da9f: 84 c0 test %al,%al 13daa1: 75 39 jne 13dadc <_Rate_monotonic_Update_statistics+0xe0> stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) 13daa3: 83 ec 08 sub $0x8,%esp 13daa6: 8d 43 7c lea 0x7c(%ebx),%eax 13daa9: 50 push %eax 13daaa: 56 push %esi 13daab: e8 e4 05 00 00 call 13e094 <_Timespec_Greater_than> 13dab0: 83 c4 10 add $0x10,%esp 13dab3: 84 c0 test %al,%al 13dab5: 0f 84 70 ff ff ff je 13da2b <_Rate_monotonic_Update_statistics+0x2f> stats->max_wall_time = since_last_period; 13dabb: 8b 45 d8 mov -0x28(%ebp),%eax 13dabe: 8b 55 dc mov -0x24(%ebp),%edx 13dac1: 89 43 7c mov %eax,0x7c(%ebx) 13dac4: 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 } 13daca: 8d 65 f4 lea -0xc(%ebp),%esp 13dacd: 5b pop %ebx 13dace: 5e pop %esi 13dacf: 5f pop %edi 13dad0: c9 leave 13dad1: c3 ret 13dad2: 66 90 xchg %ax,%ax <== NOT EXECUTED */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; 13dad4: ff 43 58 incl 0x58(%ebx) 13dad7: e9 39 ff ff ff jmp 13da15 <_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; 13dadc: 8b 45 d8 mov -0x28(%ebp),%eax 13dadf: 8b 55 dc mov -0x24(%ebp),%edx 13dae2: 89 43 74 mov %eax,0x74(%ebx) 13dae5: 89 53 78 mov %edx,0x78(%ebx) 13dae8: eb b9 jmp 13daa3 <_Rate_monotonic_Update_statistics+0xa7> 0010d90c <_TOD_Set>: */ void _TOD_Set( const struct timespec *time ) { 10d90c: 55 push %ebp 10d90d: 89 e5 mov %esp,%ebp 10d90f: 53 push %ebx 10d910: 83 ec 04 sub $0x4,%esp 10d913: 8b 5d 08 mov 0x8(%ebp),%ebx 10d916: a1 38 22 13 00 mov 0x132238,%eax 10d91b: 40 inc %eax 10d91c: a3 38 22 13 00 mov %eax,0x132238 long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); 10d921: a1 cc 22 13 00 mov 0x1322cc,%eax if ( time->tv_sec < seconds ) 10d926: 8b 13 mov (%ebx),%edx 10d928: 39 d0 cmp %edx,%eax 10d92a: 7f 34 jg 10d960 <_TOD_Set+0x54> Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); 10d92c: 51 push %ecx 10d92d: 29 c2 sub %eax,%edx 10d92f: 52 push %edx 10d930: 6a 00 push $0x0 10d932: 68 0c 23 13 00 push $0x13230c 10d937: e8 dc 24 00 00 call 10fe18 <_Watchdog_Adjust> 10d93c: 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 ); 10d93f: 8b 03 mov (%ebx),%eax 10d941: a3 cc 22 13 00 mov %eax,0x1322cc 10d946: 8b 43 04 mov 0x4(%ebx),%eax 10d949: a3 d0 22 13 00 mov %eax,0x1322d0 _TOD_Is_set = true; 10d94e: c6 05 4c 22 13 00 01 movb $0x1,0x13224c _TOD_Activate(); _Thread_Enable_dispatch(); } 10d955: 8b 5d fc mov -0x4(%ebp),%ebx 10d958: c9 leave _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); 10d959: e9 c2 12 00 00 jmp 10ec20 <_Thread_Enable_dispatch> 10d95e: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d960: 51 push %ecx 10d961: 29 d0 sub %edx,%eax 10d963: 50 push %eax 10d964: 6a 01 push $0x1 10d966: 68 0c 23 13 00 push $0x13230c 10d96b: e8 a8 24 00 00 call 10fe18 <_Watchdog_Adjust> 10d970: 83 c4 10 add $0x10,%esp 10d973: eb ca jmp 10d93f <_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 40 38 12 movzwl 0x123840(%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 74 38 12 movzwl 0x123874(%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 5a 38 12 movzwl 0x12385a(%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 62 12 00 mov 0x12622c,%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 b4 38 12 00 mov 0x1238b4(,%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 80 38 12 00 mov 0x123880(,%eax,4),%eax 10c158: eb e8 jmp 10c142 <_TOD_Validate+0x5a> 0010d00c <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 10d00c: 55 push %ebp 10d00d: 89 e5 mov %esp,%ebp 10d00f: 57 push %edi 10d010: 56 push %esi 10d011: 53 push %ebx 10d012: 83 ec 28 sub $0x28,%esp 10d015: 8b 5d 08 mov 0x8(%ebp),%ebx 10d018: 8b 75 0c mov 0xc(%ebp),%esi 10d01b: 8a 45 10 mov 0x10(%ebp),%al 10d01e: 88 45 e7 mov %al,-0x19(%ebp) */ /* * Save original state */ original_state = the_thread->current_state; 10d021: 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 ); 10d024: 53 push %ebx 10d025: e8 6a 0e 00 00 call 10de94 <_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 ) 10d02a: 83 c4 10 add $0x10,%esp 10d02d: 39 73 14 cmp %esi,0x14(%ebx) 10d030: 74 0d je 10d03f <_Thread_Change_priority+0x33> _Thread_Set_priority( the_thread, new_priority ); 10d032: 83 ec 08 sub $0x8,%esp 10d035: 56 push %esi 10d036: 53 push %ebx 10d037: e8 10 0d 00 00 call 10dd4c <_Thread_Set_priority> 10d03c: 83 c4 10 add $0x10,%esp _ISR_Disable( level ); 10d03f: 9c pushf 10d040: fa cli 10d041: 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; 10d042: 8b 43 10 mov 0x10(%ebx),%eax if ( state != STATES_TRANSIENT ) { 10d045: 83 f8 04 cmp $0x4,%eax 10d048: 74 26 je 10d070 <_Thread_Change_priority+0x64> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 10d04a: 83 e7 04 and $0x4,%edi 10d04d: 74 15 je 10d064 <_Thread_Change_priority+0x58> the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 10d04f: 52 push %edx 10d050: 9d popf if ( _States_Is_waiting_on_thread_queue( state ) ) { 10d051: a9 e0 be 03 00 test $0x3bee0,%eax 10d056: 0f 85 bc 00 00 00 jne 10d118 <_Thread_Change_priority+0x10c> if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 10d05c: 8d 65 f4 lea -0xc(%ebp),%esp 10d05f: 5b pop %ebx 10d060: 5e pop %esi 10d061: 5f pop %edi 10d062: c9 leave 10d063: 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 ); 10d064: 89 c1 mov %eax,%ecx 10d066: 83 e1 fb and $0xfffffffb,%ecx 10d069: 89 4b 10 mov %ecx,0x10(%ebx) 10d06c: eb e1 jmp 10d04f <_Thread_Change_priority+0x43> 10d06e: 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 ) ) { 10d070: 83 e7 04 and $0x4,%edi 10d073: 75 45 jne 10d0ba <_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 ); 10d075: 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; 10d07c: 8b 83 90 00 00 00 mov 0x90(%ebx),%eax 10d082: 66 8b 8b 96 00 00 00 mov 0x96(%ebx),%cx 10d089: 66 09 08 or %cx,(%eax) _Priority_Major_bit_map |= the_priority_map->ready_major; 10d08c: 66 a1 cc 77 12 00 mov 0x1277cc,%ax 10d092: 0b 83 94 00 00 00 or 0x94(%ebx),%eax 10d098: 66 a3 cc 77 12 00 mov %ax,0x1277cc _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 10d09e: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 10d0a2: 0f 84 88 00 00 00 je 10d130 <_Thread_Change_priority+0x124> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 10d0a8: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 10d0ae: 89 43 04 mov %eax,0x4(%ebx) before_node = after_node->next; 10d0b1: 8b 08 mov (%eax),%ecx after_node->next = the_node; 10d0b3: 89 18 mov %ebx,(%eax) the_node->next = before_node; 10d0b5: 89 0b mov %ecx,(%ebx) before_node->previous = the_node; 10d0b7: 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 ); 10d0ba: 52 push %edx 10d0bb: 9d popf 10d0bc: 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 ); 10d0bd: 66 8b 1d cc 77 12 00 mov 0x1277cc,%bx 10d0c4: 31 c0 xor %eax,%eax 10d0c6: 89 c1 mov %eax,%ecx 10d0c8: 66 0f bc cb bsf %bx,%cx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 10d0cc: 0f b7 c9 movzwl %cx,%ecx 10d0cf: 66 8b 9c 09 60 78 12 mov 0x127860(%ecx,%ecx,1),%bx 10d0d6: 00 10d0d7: 66 0f bc c3 bsf %bx,%ax * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 10d0db: c1 e1 04 shl $0x4,%ecx 10d0de: 0f b7 c0 movzwl %ax,%eax 10d0e1: 8d 04 01 lea (%ecx,%eax,1),%eax 10d0e4: 8d 0c 40 lea (%eax,%eax,2),%ecx 10d0e7: a1 e0 76 12 00 mov 0x1276e0,%eax 10d0ec: 8b 04 88 mov (%eax,%ecx,4),%eax 10d0ef: a3 a8 77 12 00 mov %eax,0x1277a8 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 10d0f4: 8b 0d d8 77 12 00 mov 0x1277d8,%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() && 10d0fa: 39 c8 cmp %ecx,%eax 10d0fc: 74 0d je 10d10b <_Thread_Change_priority+0xff> _Thread_Executing->is_preemptible ) 10d0fe: 80 79 75 00 cmpb $0x0,0x75(%ecx) 10d102: 74 07 je 10d10b <_Thread_Change_priority+0xff> _Context_Switch_necessary = true; 10d104: c6 05 e8 77 12 00 01 movb $0x1,0x1277e8 _ISR_Enable( level ); 10d10b: 52 push %edx 10d10c: 9d popf } 10d10d: 8d 65 f4 lea -0xc(%ebp),%esp 10d110: 5b pop %ebx 10d111: 5e pop %esi 10d112: 5f pop %edi 10d113: c9 leave 10d114: c3 ret 10d115: 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 ); 10d118: 89 5d 0c mov %ebx,0xc(%ebp) 10d11b: 8b 43 44 mov 0x44(%ebx),%eax 10d11e: 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 ); } 10d121: 8d 65 f4 lea -0xc(%ebp),%esp 10d124: 5b pop %ebx 10d125: 5e pop %esi 10d126: 5f pop %edi 10d127: 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 ); 10d128: e9 87 0b 00 00 jmp 10dcb4 <_Thread_queue_Requeue> 10d12d: 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 ); 10d130: 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); 10d136: 8d 48 04 lea 0x4(%eax),%ecx 10d139: 89 0b mov %ecx,(%ebx) old_last_node = the_chain->last; 10d13b: 8b 48 08 mov 0x8(%eax),%ecx the_chain->last = the_node; 10d13e: 89 58 08 mov %ebx,0x8(%eax) old_last_node->next = the_node; 10d141: 89 19 mov %ebx,(%ecx) the_node->previous = old_last_node; 10d143: 89 4b 04 mov %ecx,0x4(%ebx) 10d146: e9 6f ff ff ff jmp 10d0ba <_Thread_Change_priority+0xae> 0010d14c <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 10d14c: 55 push %ebp 10d14d: 89 e5 mov %esp,%ebp 10d14f: 53 push %ebx 10d150: 8b 45 08 mov 0x8(%ebp),%eax 10d153: 8b 55 0c mov 0xc(%ebp),%edx ISR_Level level; States_Control current_state; _ISR_Disable( level ); 10d156: 9c pushf 10d157: fa cli 10d158: 5b pop %ebx current_state = the_thread->current_state; 10d159: 8b 48 10 mov 0x10(%eax),%ecx if ( current_state & state ) { 10d15c: 85 ca test %ecx,%edx 10d15e: 74 70 je 10d1d0 <_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); 10d160: f7 d2 not %edx 10d162: 21 ca and %ecx,%edx current_state = 10d164: 89 50 10 mov %edx,0x10(%eax) the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { 10d167: 85 d2 test %edx,%edx 10d169: 75 65 jne 10d1d0 <_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; 10d16b: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10d171: 66 8b 88 96 00 00 00 mov 0x96(%eax),%cx 10d178: 66 09 0a or %cx,(%edx) _Priority_Major_bit_map |= the_priority_map->ready_major; 10d17b: 66 8b 15 cc 77 12 00 mov 0x1277cc,%dx 10d182: 0b 90 94 00 00 00 or 0x94(%eax),%edx 10d188: 66 89 15 cc 77 12 00 mov %dx,0x1277cc _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 10d18f: 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); 10d195: 8d 4a 04 lea 0x4(%edx),%ecx 10d198: 89 08 mov %ecx,(%eax) old_last_node = the_chain->last; 10d19a: 8b 4a 08 mov 0x8(%edx),%ecx the_chain->last = the_node; 10d19d: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 10d1a0: 89 01 mov %eax,(%ecx) the_node->previous = old_last_node; 10d1a2: 89 48 04 mov %ecx,0x4(%eax) _ISR_Flash( level ); 10d1a5: 53 push %ebx 10d1a6: 9d popf 10d1a7: 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 ) { 10d1a8: 8b 50 14 mov 0x14(%eax),%edx 10d1ab: 8b 0d a8 77 12 00 mov 0x1277a8,%ecx 10d1b1: 3b 51 14 cmp 0x14(%ecx),%edx 10d1b4: 73 1a jae 10d1d0 <_Thread_Clear_state+0x84> _Thread_Heir = the_thread; 10d1b6: a3 a8 77 12 00 mov %eax,0x1277a8 if ( _Thread_Executing->is_preemptible || 10d1bb: a1 d8 77 12 00 mov 0x1277d8,%eax 10d1c0: 80 78 75 00 cmpb $0x0,0x75(%eax) 10d1c4: 74 12 je 10d1d8 <_Thread_Clear_state+0x8c> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 10d1c6: c6 05 e8 77 12 00 01 movb $0x1,0x1277e8 10d1cd: 8d 76 00 lea 0x0(%esi),%esi } } } _ISR_Enable( level ); 10d1d0: 53 push %ebx 10d1d1: 9d popf } 10d1d2: 5b pop %ebx 10d1d3: c9 leave 10d1d4: c3 ret 10d1d5: 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 || 10d1d8: 85 d2 test %edx,%edx 10d1da: 74 ea je 10d1c6 <_Thread_Clear_state+0x7a> 10d1dc: eb f2 jmp 10d1d0 <_Thread_Clear_state+0x84> 0010d1e0 <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { 10d1e0: 55 push %ebp 10d1e1: 89 e5 mov %esp,%ebp 10d1e3: 56 push %esi 10d1e4: 53 push %ebx 10d1e5: 8b 75 08 mov 0x8(%ebp),%esi 10d1e8: 8b 5d 0c mov 0xc(%ebp),%ebx 10d1eb: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d1ef: 8b 46 1c mov 0x1c(%esi),%eax 10d1f2: 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; 10d1f9: a1 18 77 12 00 mov 0x127718,%eax 10d1fe: 48 dec %eax 10d1ff: a3 18 77 12 00 mov %eax,0x127718 * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); 10d204: 83 ec 0c sub $0xc,%esp 10d207: 53 push %ebx 10d208: e8 73 11 00 00 call 10e380 <_User_extensions_Thread_delete> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d20d: a1 18 77 12 00 mov 0x127718,%eax 10d212: 40 inc %eax 10d213: a3 18 77 12 00 mov %eax,0x127718 /* * 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 ); 10d218: 59 pop %ecx 10d219: 58 pop %eax 10d21a: 53 push %ebx 10d21b: 56 push %esi 10d21c: e8 2b f6 ff ff call 10c84c <_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 ); 10d221: 58 pop %eax 10d222: 5a pop %edx 10d223: 6a 01 push $0x1 10d225: 53 push %ebx 10d226: e8 8d 0b 00 00 call 10ddb8 <_Thread_Set_state> if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 10d22b: 89 1c 24 mov %ebx,(%esp) 10d22e: e8 d9 09 00 00 call 10dc0c <_Thread_queue_Extract_with_proxy> 10d233: 83 c4 10 add $0x10,%esp 10d236: 84 c0 test %al,%al 10d238: 75 06 jne 10d240 <_Thread_Close+0x60> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 10d23a: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10d23e: 74 68 je 10d2a8 <_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 ) ) 10d240: 3b 1d a0 77 12 00 cmp 0x1277a0,%ebx 10d246: 74 74 je 10d2bc <_Thread_Close+0xdc> _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; 10d248: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx) 10d24f: 00 00 00 if ( the_thread->Start.fp_context ) 10d252: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax 10d258: 85 c0 test %eax,%eax 10d25a: 74 0c je 10d268 <_Thread_Close+0x88> (void) _Workspace_Free( the_thread->Start.fp_context ); 10d25c: 83 ec 0c sub $0xc,%esp 10d25f: 50 push %eax 10d260: e8 33 14 00 00 call 10e698 <_Workspace_Free> 10d265: 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 ); 10d268: 83 ec 0c sub $0xc,%esp 10d26b: 53 push %ebx 10d26c: e8 fb 0c 00 00 call 10df6c <_Thread_Stack_Free> the_thread->Start.stack = NULL; 10d271: c7 83 d0 00 00 00 00 movl $0x0,0xd0(%ebx) 10d278: 00 00 00 if ( the_thread->extensions ) 10d27b: 8b 83 00 01 00 00 mov 0x100(%ebx),%eax 10d281: 83 c4 10 add $0x10,%esp 10d284: 85 c0 test %eax,%eax 10d286: 74 0c je 10d294 <_Thread_Close+0xb4> (void) _Workspace_Free( the_thread->extensions ); 10d288: 83 ec 0c sub $0xc,%esp 10d28b: 50 push %eax 10d28c: e8 07 14 00 00 call 10e698 <_Workspace_Free> 10d291: 83 c4 10 add $0x10,%esp the_thread->extensions = NULL; 10d294: c7 83 00 01 00 00 00 movl $0x0,0x100(%ebx) 10d29b: 00 00 00 } 10d29e: 8d 65 f8 lea -0x8(%ebp),%esp 10d2a1: 5b pop %ebx 10d2a2: 5e pop %esi 10d2a3: c9 leave 10d2a4: c3 ret 10d2a5: 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 ); 10d2a8: 83 ec 0c sub $0xc,%esp 10d2ab: 8d 43 48 lea 0x48(%ebx),%eax 10d2ae: 50 push %eax 10d2af: e8 c4 12 00 00 call 10e578 <_Watchdog_Remove> 10d2b4: 83 c4 10 add $0x10,%esp 10d2b7: eb 87 jmp 10d240 <_Thread_Close+0x60> 10d2b9: 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; 10d2bc: c7 05 a0 77 12 00 00 movl $0x0,0x1277a0 10d2c3: 00 00 00 10d2c6: eb 80 jmp 10d248 <_Thread_Close+0x68> 0010d398 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 10d398: 55 push %ebp 10d399: 89 e5 mov %esp,%ebp 10d39b: 57 push %edi 10d39c: 56 push %esi 10d39d: 53 push %ebx 10d39e: 83 ec 1c sub $0x1c,%esp Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 10d3a1: 8b 1d d8 77 12 00 mov 0x1277d8,%ebx _ISR_Disable( level ); 10d3a7: 9c pushf 10d3a8: fa cli 10d3a9: 58 pop %eax while ( _Context_Switch_necessary == true ) { 10d3aa: 8a 15 e8 77 12 00 mov 0x1277e8,%dl 10d3b0: 84 d2 test %dl,%dl 10d3b2: 0f 84 10 01 00 00 je 10d4c8 <_Thread_Dispatch+0x130> 10d3b8: 8d 7d d8 lea -0x28(%ebp),%edi 10d3bb: e9 d1 00 00 00 jmp 10d491 <_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 ); 10d3c0: 50 push %eax 10d3c1: 9d popf #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 10d3c2: 83 ec 0c sub $0xc,%esp 10d3c5: 8d 45 e0 lea -0x20(%ebp),%eax 10d3c8: 50 push %eax 10d3c9: e8 aa 38 00 00 call 110c78 <_TOD_Get_uptime> _Timestamp_Subtract( 10d3ce: 83 c4 0c add $0xc,%esp 10d3d1: 57 push %edi 10d3d2: 8d 45 e0 lea -0x20(%ebp),%eax 10d3d5: 50 push %eax 10d3d6: 68 e0 77 12 00 push $0x1277e0 10d3db: e8 90 0d 00 00 call 10e170 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 10d3e0: 5a pop %edx 10d3e1: 59 pop %ecx 10d3e2: 57 push %edi 10d3e3: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 10d3e9: 50 push %eax 10d3ea: e8 45 0d 00 00 call 10e134 <_Timespec_Add_to> _Thread_Time_of_last_context_switch = uptime; 10d3ef: 8b 45 e0 mov -0x20(%ebp),%eax 10d3f2: 8b 55 e4 mov -0x1c(%ebp),%edx 10d3f5: a3 e0 77 12 00 mov %eax,0x1277e0 10d3fa: 89 15 e4 77 12 00 mov %edx,0x1277e4 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 10d400: a1 a4 77 12 00 mov 0x1277a4,%eax 10d405: 83 c4 10 add $0x10,%esp 10d408: 85 c0 test %eax,%eax 10d40a: 74 10 je 10d41c <_Thread_Dispatch+0x84> executing->libc_reent = *_Thread_libc_reent; 10d40c: 8b 10 mov (%eax),%edx 10d40e: 89 93 f0 00 00 00 mov %edx,0xf0(%ebx) *_Thread_libc_reent = heir->libc_reent; 10d414: 8b 96 f0 00 00 00 mov 0xf0(%esi),%edx 10d41a: 89 10 mov %edx,(%eax) } _User_extensions_Thread_switch( executing, heir ); 10d41c: 83 ec 08 sub $0x8,%esp 10d41f: 56 push %esi 10d420: 53 push %ebx 10d421: e8 da 0f 00 00 call 10e400 <_User_extensions_Thread_switch> if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 10d426: 59 pop %ecx 10d427: 58 pop %eax 10d428: 81 c6 d4 00 00 00 add $0xd4,%esi 10d42e: 56 push %esi 10d42f: 8d 83 d4 00 00 00 lea 0xd4(%ebx),%eax 10d435: 50 push %eax 10d436: e8 c5 12 00 00 call 10e700 <_CPU_Context_switch> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 10d43b: 83 c4 10 add $0x10,%esp 10d43e: 8b 93 ec 00 00 00 mov 0xec(%ebx),%edx 10d444: 85 d2 test %edx,%edx 10d446: 74 36 je 10d47e <_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 ); 10d448: a1 a0 77 12 00 mov 0x1277a0,%eax 10d44d: 39 c3 cmp %eax,%ebx 10d44f: 74 2d je 10d47e <_Thread_Dispatch+0xe6> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 10d451: 85 c0 test %eax,%eax 10d453: 74 11 je 10d466 <_Thread_Dispatch+0xce> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 10d455: 83 ec 0c sub $0xc,%esp 10d458: 05 ec 00 00 00 add $0xec,%eax 10d45d: 50 push %eax 10d45e: e8 d1 12 00 00 call 10e734 <_CPU_Context_save_fp> 10d463: 83 c4 10 add $0x10,%esp _Context_Restore_fp( &executing->fp_context ); 10d466: 83 ec 0c sub $0xc,%esp 10d469: 8d 83 ec 00 00 00 lea 0xec(%ebx),%eax 10d46f: 50 push %eax 10d470: e8 c9 12 00 00 call 10e73e <_CPU_Context_restore_fp> _Thread_Allocated_fp = executing; 10d475: 89 1d a0 77 12 00 mov %ebx,0x1277a0 10d47b: 83 c4 10 add $0x10,%esp if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; 10d47e: 8b 1d d8 77 12 00 mov 0x1277d8,%ebx _ISR_Disable( level ); 10d484: 9c pushf 10d485: fa cli 10d486: 58 pop %eax Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 10d487: 8a 15 e8 77 12 00 mov 0x1277e8,%dl 10d48d: 84 d2 test %dl,%dl 10d48f: 74 37 je 10d4c8 <_Thread_Dispatch+0x130> heir = _Thread_Heir; 10d491: 8b 35 a8 77 12 00 mov 0x1277a8,%esi _Thread_Dispatch_disable_level = 1; 10d497: c7 05 18 77 12 00 01 movl $0x1,0x127718 10d49e: 00 00 00 _Context_Switch_necessary = false; 10d4a1: c6 05 e8 77 12 00 00 movb $0x0,0x1277e8 _Thread_Executing = heir; 10d4a8: 89 35 d8 77 12 00 mov %esi,0x1277d8 #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 ) 10d4ae: 83 7e 7c 01 cmpl $0x1,0x7c(%esi) 10d4b2: 0f 85 08 ff ff ff jne 10d3c0 <_Thread_Dispatch+0x28> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 10d4b8: 8b 15 e4 76 12 00 mov 0x1276e4,%edx 10d4be: 89 56 78 mov %edx,0x78(%esi) 10d4c1: e9 fa fe ff ff jmp 10d3c0 <_Thread_Dispatch+0x28> 10d4c6: 66 90 xchg %ax,%ax <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; 10d4c8: c7 05 18 77 12 00 00 movl $0x0,0x127718 10d4cf: 00 00 00 _ISR_Enable( level ); 10d4d2: 50 push %eax 10d4d3: 9d popf if ( _Thread_Do_post_task_switch_extension || 10d4d4: a1 bc 77 12 00 mov 0x1277bc,%eax 10d4d9: 85 c0 test %eax,%eax 10d4db: 75 06 jne 10d4e3 <_Thread_Dispatch+0x14b> executing->do_post_task_switch_extension ) { 10d4dd: 80 7b 74 00 cmpb $0x0,0x74(%ebx) 10d4e1: 74 09 je 10d4ec <_Thread_Dispatch+0x154> executing->do_post_task_switch_extension = false; 10d4e3: c6 43 74 00 movb $0x0,0x74(%ebx) _API_extensions_Run_postswitch(); 10d4e7: e8 ac e8 ff ff call 10bd98 <_API_extensions_Run_postswitch> } } 10d4ec: 8d 65 f4 lea -0xc(%ebp),%esp 10d4ef: 5b pop %ebx 10d4f0: 5e pop %esi 10d4f1: 5f pop %edi 10d4f2: c9 leave 10d4f3: c3 ret 0010d518 <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 10d518: 55 push %ebp 10d519: 89 e5 mov %esp,%ebp 10d51b: 53 push %ebx 10d51c: 83 ec 04 sub $0x4,%esp 10d51f: 8b 45 08 mov 0x8(%ebp),%eax 10d522: 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 ) ) { 10d525: 85 c0 test %eax,%eax 10d527: 74 4b je 10d574 <_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); 10d529: 89 c2 mov %eax,%edx 10d52b: c1 ea 18 shr $0x18,%edx 10d52e: 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 ) 10d531: 8d 5a ff lea -0x1(%edx),%ebx 10d534: 83 fb 03 cmp $0x3,%ebx 10d537: 77 2b ja 10d564 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 10d539: 89 c3 mov %eax,%ebx 10d53b: c1 eb 1b shr $0x1b,%ebx 10d53e: 4b dec %ebx 10d53f: 75 23 jne 10d564 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; 10d541: 8b 14 95 ec 76 12 00 mov 0x1276ec(,%edx,4),%edx if ( !api_information ) { 10d548: 85 d2 test %edx,%edx 10d54a: 74 18 je 10d564 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; 10d54c: 8b 52 04 mov 0x4(%edx),%edx if ( !information ) { 10d54f: 85 d2 test %edx,%edx 10d551: 74 11 je 10d564 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 10d553: 53 push %ebx 10d554: 51 push %ecx 10d555: 50 push %eax 10d556: 52 push %edx 10d557: e8 24 f7 ff ff call 10cc80 <_Objects_Get> 10d55c: 83 c4 10 add $0x10,%esp done: return tp; } 10d55f: 8b 5d fc mov -0x4(%ebp),%ebx 10d562: c9 leave 10d563: c3 ret goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 10d564: c7 01 01 00 00 00 movl $0x1,(%ecx) 10d56a: 31 c0 xor %eax,%eax tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 10d56c: 8b 5d fc mov -0x4(%ebp),%ebx 10d56f: c9 leave 10d570: c3 ret 10d571: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d574: a1 18 77 12 00 mov 0x127718,%eax 10d579: 40 inc %eax 10d57a: a3 18 77 12 00 mov %eax,0x127718 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; 10d57f: c7 01 00 00 00 00 movl $0x0,(%ecx) tp = _Thread_Executing; 10d585: a1 d8 77 12 00 mov 0x1277d8,%eax tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 10d58a: 8b 5d fc mov -0x4(%ebp),%ebx 10d58d: c9 leave 10d58e: c3 ret 00112dac <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 112dac: 55 push %ebp 112dad: 89 e5 mov %esp,%ebp 112daf: 53 push %ebx 112db0: 83 ec 14 sub $0x14,%esp #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 112db3: 8b 1d d8 77 12 00 mov 0x1277d8,%ebx /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 112db9: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax _ISR_Set_level(level); 112dbf: 85 c0 test %eax,%eax 112dc1: 74 79 je 112e3c <_Thread_Handler+0x90> 112dc3: fa cli #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 112dc4: a0 50 73 12 00 mov 0x127350,%al 112dc9: 88 45 f7 mov %al,-0x9(%ebp) doneConstructors = 1; 112dcc: c6 05 50 73 12 00 01 movb $0x1,0x127350 #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 112dd3: 8b 83 ec 00 00 00 mov 0xec(%ebx),%eax 112dd9: 85 c0 test %eax,%eax 112ddb: 74 24 je 112e01 <_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 ); 112ddd: a1 a0 77 12 00 mov 0x1277a0,%eax 112de2: 39 c3 cmp %eax,%ebx 112de4: 74 1b je 112e01 <_Thread_Handler+0x55> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 112de6: 85 c0 test %eax,%eax 112de8: 74 11 je 112dfb <_Thread_Handler+0x4f> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 112dea: 83 ec 0c sub $0xc,%esp 112ded: 05 ec 00 00 00 add $0xec,%eax 112df2: 50 push %eax 112df3: e8 3c b9 ff ff call 10e734 <_CPU_Context_save_fp> 112df8: 83 c4 10 add $0x10,%esp _Thread_Allocated_fp = executing; 112dfb: 89 1d a0 77 12 00 mov %ebx,0x1277a0 /* * 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 ); 112e01: 83 ec 0c sub $0xc,%esp 112e04: 53 push %ebx 112e05: e8 66 b4 ff ff call 10e270 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 112e0a: e8 e5 a6 ff ff call 10d4f4 <_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) */ { 112e0f: 83 c4 10 add $0x10,%esp 112e12: 80 7d f7 00 cmpb $0x0,-0x9(%ebp) 112e16: 74 28 je 112e40 <_Thread_Handler+0x94> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 112e18: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 112e1e: 85 c0 test %eax,%eax 112e20: 74 2d je 112e4f <_Thread_Handler+0xa3> (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { 112e22: 48 dec %eax 112e23: 74 43 je 112e68 <_Thread_Handler+0xbc> * 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 ); 112e25: 83 ec 0c sub $0xc,%esp 112e28: 53 push %ebx 112e29: e8 7e b4 ff ff call 10e2ac <_User_extensions_Thread_exitted> _Internal_error_Occurred( 112e2e: 83 c4 0c add $0xc,%esp 112e31: 6a 06 push $0x6 112e33: 6a 01 push $0x1 112e35: 6a 00 push $0x0 112e37: e8 fc 98 ff ff call 10c738 <_Internal_error_Occurred> * 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); 112e3c: fb sti 112e3d: eb 85 jmp 112dc4 <_Thread_Handler+0x18> 112e3f: 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 (); 112e40: e8 ab c5 00 00 call 11f3f0 <__start_set_sysctl_set> } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 112e45: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 112e4b: 85 c0 test %eax,%eax 112e4d: 75 d3 jne 112e22 <_Thread_Handler+0x76> executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 112e4f: 83 ec 0c sub $0xc,%esp 112e52: ff b3 a8 00 00 00 pushl 0xa8(%ebx) 112e58: ff 93 9c 00 00 00 call *0x9c(%ebx) INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 112e5e: 89 43 28 mov %eax,0x28(%ebx) 112e61: 83 c4 10 add $0x10,%esp 112e64: eb bf jmp 112e25 <_Thread_Handler+0x79> 112e66: 66 90 xchg %ax,%ax <== NOT EXECUTED ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { executing->Wait.return_argument = (*(Thread_Entry_pointer) executing->Start.entry_point)( 112e68: 83 ec 0c sub $0xc,%esp 112e6b: ff b3 a4 00 00 00 pushl 0xa4(%ebx) 112e71: ff 93 9c 00 00 00 call *0x9c(%ebx) executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { executing->Wait.return_argument = 112e77: 89 43 28 mov %eax,0x28(%ebx) 112e7a: 83 c4 10 add $0x10,%esp 112e7d: eb a6 jmp 112e25 <_Thread_Handler+0x79> 0010d590 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 10d590: 55 push %ebp 10d591: 89 e5 mov %esp,%ebp 10d593: 57 push %edi 10d594: 56 push %esi 10d595: 53 push %ebx 10d596: 83 ec 1c sub $0x1c,%esp 10d599: 8b 5d 0c mov 0xc(%ebp),%ebx 10d59c: 8b 4d 10 mov 0x10(%ebp),%ecx 10d59f: 8b 7d 14 mov 0x14(%ebp),%edi 10d5a2: 8b 75 1c mov 0x1c(%ebp),%esi 10d5a5: 8a 55 18 mov 0x18(%ebp),%dl 10d5a8: 8a 45 20 mov 0x20(%ebp),%al 10d5ab: 88 45 df mov %al,-0x21(%ebp) /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 10d5ae: c7 83 f4 00 00 00 00 movl $0x0,0xf4(%ebx) 10d5b5: 00 00 00 10d5b8: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx) 10d5bf: 00 00 00 10d5c2: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx) 10d5c9: 00 00 00 extensions_area = NULL; the_thread->libc_reent = NULL; 10d5cc: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%ebx) 10d5d3: 00 00 00 if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { 10d5d6: 85 c9 test %ecx,%ecx 10d5d8: 0f 84 eb 01 00 00 je 10d7c9 <_Thread_Initialize+0x239> stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = true; } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = false; 10d5de: c6 83 c0 00 00 00 00 movb $0x0,0xc0(%ebx) 10d5e5: 89 f8 mov %edi,%eax Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 10d5e7: 89 8b c8 00 00 00 mov %ecx,0xc8(%ebx) the_stack->size = size; 10d5ed: 89 83 c4 00 00 00 mov %eax,0xc4(%ebx) /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 10d5f3: 84 d2 test %dl,%dl 10d5f5: 0f 85 61 01 00 00 jne 10d75c <_Thread_Initialize+0x1cc> 10d5fb: 31 c0 xor %eax,%eax 10d5fd: 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; 10d604: 89 83 ec 00 00 00 mov %eax,0xec(%ebx) the_thread->Start.fp_context = fp_area; 10d60a: 89 83 cc 00 00 00 mov %eax,0xcc(%ebx) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10d610: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10d617: c7 43 64 00 00 00 00 movl $0x0,0x64(%ebx) the_watchdog->id = id; 10d61e: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx) the_watchdog->user_data = user_data; 10d625: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 10d62c: a1 b8 77 12 00 mov 0x1277b8,%eax 10d631: 85 c0 test %eax,%eax 10d633: 0f 85 43 01 00 00 jne 10d77c <_Thread_Initialize+0x1ec> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 10d639: c7 83 00 01 00 00 00 movl $0x0,0x100(%ebx) 10d640: 00 00 00 10d643: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 10d64a: 8a 45 df mov -0x21(%ebp),%al 10d64d: 88 83 ac 00 00 00 mov %al,0xac(%ebx) the_thread->Start.budget_algorithm = budget_algorithm; 10d653: 8b 45 24 mov 0x24(%ebp),%eax 10d656: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx) the_thread->Start.budget_callout = budget_callout; 10d65c: 8b 45 28 mov 0x28(%ebp),%eax 10d65f: 89 83 b4 00 00 00 mov %eax,0xb4(%ebx) switch ( budget_algorithm ) { 10d665: 83 7d 24 02 cmpl $0x2,0x24(%ebp) 10d669: 75 08 jne 10d673 <_Thread_Initialize+0xe3> case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 10d66b: a1 e4 76 12 00 mov 0x1276e4,%eax 10d670: 89 43 78 mov %eax,0x78(%ebx) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 10d673: 8b 45 2c mov 0x2c(%ebp),%eax 10d676: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) the_thread->current_state = STATES_DORMANT; 10d67c: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx) the_thread->Wait.queue = NULL; 10d683: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) the_thread->resource_count = 0; 10d68a: 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; 10d691: 89 73 18 mov %esi,0x18(%ebx) the_thread->Start.initial_priority = priority; 10d694: 89 b3 bc 00 00 00 mov %esi,0xbc(%ebx) _Thread_Set_priority( the_thread, priority ); 10d69a: 83 ec 08 sub $0x8,%esp 10d69d: 56 push %esi 10d69e: 53 push %ebx 10d69f: e8 a8 06 00 00 call 10dd4c <_Thread_Set_priority> /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 10d6a4: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx) 10d6ab: 00 00 00 10d6ae: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx) 10d6b5: 00 00 00 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10d6b8: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d6bc: 8b 45 08 mov 0x8(%ebp),%eax 10d6bf: 8b 40 1c mov 0x1c(%eax),%eax 10d6c2: 89 1c 90 mov %ebx,(%eax,%edx,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10d6c5: 8b 45 30 mov 0x30(%ebp),%eax 10d6c8: 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 ); 10d6cb: 89 1c 24 mov %ebx,(%esp) 10d6ce: e8 65 0c 00 00 call 10e338 <_User_extensions_Thread_create> if ( extension_status ) 10d6d3: 83 c4 10 add $0x10,%esp 10d6d6: 84 c0 test %al,%al 10d6d8: 75 76 jne 10d750 <_Thread_Initialize+0x1c0> return true; failed: if ( the_thread->libc_reent ) 10d6da: 8b 83 f0 00 00 00 mov 0xf0(%ebx),%eax 10d6e0: 85 c0 test %eax,%eax 10d6e2: 74 0c je 10d6f0 <_Thread_Initialize+0x160> _Workspace_Free( the_thread->libc_reent ); 10d6e4: 83 ec 0c sub $0xc,%esp 10d6e7: 50 push %eax 10d6e8: e8 ab 0f 00 00 call 10e698 <_Workspace_Free> 10d6ed: 83 c4 10 add $0x10,%esp 10d6f0: 31 f6 xor %esi,%esi for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 10d6f2: 8b 84 b3 f4 00 00 00 mov 0xf4(%ebx,%esi,4),%eax 10d6f9: 85 c0 test %eax,%eax 10d6fb: 74 0c je 10d709 <_Thread_Initialize+0x179> _Workspace_Free( the_thread->API_Extensions[i] ); 10d6fd: 83 ec 0c sub $0xc,%esp 10d700: 50 push %eax 10d701: e8 92 0f 00 00 call 10e698 <_Workspace_Free> 10d706: 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++ ) 10d709: 46 inc %esi 10d70a: 83 fe 03 cmp $0x3,%esi 10d70d: 75 e3 jne 10d6f2 <_Thread_Initialize+0x162> if ( the_thread->API_Extensions[i] ) _Workspace_Free( the_thread->API_Extensions[i] ); if ( extensions_area ) 10d70f: 8b 55 e4 mov -0x1c(%ebp),%edx 10d712: 85 d2 test %edx,%edx 10d714: 74 0e je 10d724 <_Thread_Initialize+0x194> (void) _Workspace_Free( extensions_area ); 10d716: 83 ec 0c sub $0xc,%esp 10d719: ff 75 e4 pushl -0x1c(%ebp) 10d71c: e8 77 0f 00 00 call 10e698 <_Workspace_Free> 10d721: 83 c4 10 add $0x10,%esp #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 10d724: 8b 45 e0 mov -0x20(%ebp),%eax 10d727: 85 c0 test %eax,%eax 10d729: 74 0e je 10d739 <_Thread_Initialize+0x1a9> (void) _Workspace_Free( fp_area ); 10d72b: 83 ec 0c sub $0xc,%esp 10d72e: ff 75 e0 pushl -0x20(%ebp) 10d731: e8 62 0f 00 00 call 10e698 <_Workspace_Free> 10d736: 83 c4 10 add $0x10,%esp #endif _Thread_Stack_Free( the_thread ); 10d739: 83 ec 0c sub $0xc,%esp 10d73c: 53 push %ebx 10d73d: e8 2a 08 00 00 call 10df6c <_Thread_Stack_Free> 10d742: 31 c0 xor %eax,%eax return false; 10d744: 83 c4 10 add $0x10,%esp } 10d747: 8d 65 f4 lea -0xc(%ebp),%esp 10d74a: 5b pop %ebx 10d74b: 5e pop %esi 10d74c: 5f pop %edi 10d74d: c9 leave 10d74e: c3 ret 10d74f: 90 nop <== 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 ) 10d750: b0 01 mov $0x1,%al _Thread_Stack_Free( the_thread ); return false; } 10d752: 8d 65 f4 lea -0xc(%ebp),%esp 10d755: 5b pop %ebx 10d756: 5e pop %esi 10d757: 5f pop %edi 10d758: c9 leave 10d759: c3 ret 10d75a: 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 ); 10d75c: 83 ec 0c sub $0xc,%esp 10d75f: 6a 6c push $0x6c 10d761: e8 16 0f 00 00 call 10e67c <_Workspace_Allocate> 10d766: 89 45 e0 mov %eax,-0x20(%ebp) if ( !fp_area ) 10d769: 83 c4 10 add $0x10,%esp 10d76c: 85 c0 test %eax,%eax 10d76e: 0f 84 89 00 00 00 je 10d7fd <_Thread_Initialize+0x26d> 10d774: 8b 45 e0 mov -0x20(%ebp),%eax 10d777: e9 88 fe ff ff jmp 10d604 <_Thread_Initialize+0x74> /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 10d77c: 83 ec 0c sub $0xc,%esp 10d77f: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax 10d786: 50 push %eax 10d787: e8 f0 0e 00 00 call 10e67c <_Workspace_Allocate> 10d78c: 89 45 e4 mov %eax,-0x1c(%ebp) (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 10d78f: 83 c4 10 add $0x10,%esp 10d792: 85 c0 test %eax,%eax 10d794: 0f 84 40 ff ff ff je 10d6da <_Thread_Initialize+0x14a> goto failed; } the_thread->extensions = (void **) extensions_area; 10d79a: 89 c1 mov %eax,%ecx 10d79c: 89 83 00 01 00 00 mov %eax,0x100(%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++ ) 10d7a2: 8b 3d b8 77 12 00 mov 0x1277b8,%edi 10d7a8: 31 d2 xor %edx,%edx 10d7aa: 31 c0 xor %eax,%eax 10d7ac: eb 08 jmp 10d7b6 <_Thread_Initialize+0x226> 10d7ae: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d7b0: 8b 8b 00 01 00 00 mov 0x100(%ebx),%ecx the_thread->extensions[i] = NULL; 10d7b6: 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++ ) 10d7bd: 40 inc %eax 10d7be: 89 c2 mov %eax,%edx 10d7c0: 39 f8 cmp %edi,%eax 10d7c2: 76 ec jbe 10d7b0 <_Thread_Initialize+0x220> 10d7c4: e9 81 fe ff ff jmp 10d64a <_Thread_Initialize+0xba> return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 10d7c9: 83 ec 08 sub $0x8,%esp 10d7cc: 57 push %edi 10d7cd: 53 push %ebx 10d7ce: 88 55 d8 mov %dl,-0x28(%ebp) 10d7d1: e8 32 07 00 00 call 10df08 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 10d7d6: 83 c4 10 add $0x10,%esp 10d7d9: 85 c0 test %eax,%eax 10d7db: 8a 55 d8 mov -0x28(%ebp),%dl 10d7de: 74 16 je 10d7f6 <_Thread_Initialize+0x266> 10d7e0: 39 c7 cmp %eax,%edi 10d7e2: 77 12 ja 10d7f6 <_Thread_Initialize+0x266> return false; /* stack allocation failed */ stack = the_thread->Start.stack; 10d7e4: 8b 8b d0 00 00 00 mov 0xd0(%ebx),%ecx the_thread->Start.core_allocated_stack = true; 10d7ea: c6 83 c0 00 00 00 01 movb $0x1,0xc0(%ebx) 10d7f1: e9 f1 fd ff ff jmp 10d5e7 <_Thread_Initialize+0x57> if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return false; 10d7f6: 31 c0 xor %eax,%eax 10d7f8: e9 4a ff ff ff jmp 10d747 <_Thread_Initialize+0x1b7> * 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 ) 10d7fd: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 10d804: e9 d1 fe ff ff jmp 10d6da <_Thread_Initialize+0x14a> 00111f6c <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 111f6c: 55 push %ebp 111f6d: 89 e5 mov %esp,%ebp 111f6f: 53 push %ebx 111f70: 83 ec 10 sub $0x10,%esp 111f73: 8b 5d 08 mov 0x8(%ebp),%ebx the_thread->resource_count = 0; 111f76: 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; 111f7d: 8a 83 ac 00 00 00 mov 0xac(%ebx),%al 111f83: 88 43 75 mov %al,0x75(%ebx) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 111f86: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax 111f8c: 89 43 7c mov %eax,0x7c(%ebx) the_thread->budget_callout = the_thread->Start.budget_callout; 111f8f: 8b 83 b4 00 00 00 mov 0xb4(%ebx),%eax 111f95: 89 83 80 00 00 00 mov %eax,0x80(%ebx) the_thread->Start.pointer_argument = pointer_argument; 111f9b: 8b 45 0c mov 0xc(%ebp),%eax 111f9e: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx) the_thread->Start.numeric_argument = numeric_argument; 111fa4: 8b 45 10 mov 0x10(%ebp),%eax 111fa7: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx) if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 111fad: 53 push %ebx 111fae: e8 31 c7 ff ff call 10e6e4 <_Thread_queue_Extract_with_proxy> 111fb3: 83 c4 10 add $0x10,%esp 111fb6: 84 c0 test %al,%al 111fb8: 75 06 jne 111fc0 <_Thread_Reset+0x54> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 111fba: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 111fbe: 74 28 je 111fe8 <_Thread_Reset+0x7c> (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 111fc0: 8b 83 bc 00 00 00 mov 0xbc(%ebx),%eax 111fc6: 39 43 14 cmp %eax,0x14(%ebx) 111fc9: 74 15 je 111fe0 <_Thread_Reset+0x74> the_thread->real_priority = the_thread->Start.initial_priority; 111fcb: 89 43 18 mov %eax,0x18(%ebx) _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 111fce: 89 45 0c mov %eax,0xc(%ebp) 111fd1: 89 5d 08 mov %ebx,0x8(%ebp) } } 111fd4: 8b 5d fc mov -0x4(%ebp),%ebx 111fd7: 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 ); 111fd8: e9 d3 c8 ff ff jmp 10e8b0 <_Thread_Set_priority> 111fdd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } } 111fe0: 8b 5d fc mov -0x4(%ebp),%ebx 111fe3: c9 leave 111fe4: c3 ret 111fe5: 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 ); 111fe8: 83 ec 0c sub $0xc,%esp 111feb: 8d 43 48 lea 0x48(%ebx),%eax 111fee: 50 push %eax 111fef: e8 28 d1 ff ff call 10f11c <_Watchdog_Remove> 111ff4: 83 c4 10 add $0x10,%esp 111ff7: eb c7 jmp 111fc0 <_Thread_Reset+0x54> 00111334 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 111334: 55 push %ebp 111335: 89 e5 mov %esp,%ebp 111337: 56 push %esi 111338: 53 push %ebx ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 111339: a1 d8 77 12 00 mov 0x1277d8,%eax ready = executing->ready; 11133e: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 111344: 9c pushf 111345: fa cli 111346: 59 pop %ecx if ( _Chain_Has_only_one_node( ready ) ) { 111347: 8b 1a mov (%edx),%ebx 111349: 3b 5a 08 cmp 0x8(%edx),%ebx 11134c: 74 3e je 11138c <_Thread_Reset_timeslice+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 11134e: 8b 30 mov (%eax),%esi previous = the_node->previous; 111350: 8b 58 04 mov 0x4(%eax),%ebx next->previous = previous; 111353: 89 5e 04 mov %ebx,0x4(%esi) previous->next = next; 111356: 89 33 mov %esi,(%ebx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 111358: 8d 5a 04 lea 0x4(%edx),%ebx 11135b: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 11135d: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 111360: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 111363: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 111365: 89 58 04 mov %ebx,0x4(%eax) return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 111368: 51 push %ecx 111369: 9d popf 11136a: fa cli if ( _Thread_Is_heir( executing ) ) 11136b: 3b 05 a8 77 12 00 cmp 0x1277a8,%eax 111371: 74 0d je 111380 <_Thread_Reset_timeslice+0x4c> _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; 111373: c6 05 e8 77 12 00 01 movb $0x1,0x1277e8 _ISR_Enable( level ); 11137a: 51 push %ecx 11137b: 9d popf } 11137c: 5b pop %ebx 11137d: 5e pop %esi 11137e: c9 leave 11137f: c3 ret _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 111380: 8b 02 mov (%edx),%eax 111382: a3 a8 77 12 00 mov %eax,0x1277a8 111387: eb ea jmp 111373 <_Thread_Reset_timeslice+0x3f> 111389: 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 ); 11138c: 51 push %ecx 11138d: 9d popf _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; _ISR_Enable( level ); } 11138e: 5b pop %ebx 11138f: 5e pop %esi 111390: c9 leave 111391: c3 ret 0010e824 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 10e824: 55 push %ebp 10e825: 89 e5 mov %esp,%ebp 10e827: 53 push %ebx 10e828: 83 ec 04 sub $0x4,%esp 10e82b: 8b 5d 08 mov 0x8(%ebp),%ebx if ( !_States_Is_dormant( the_thread->current_state ) ) { 10e82e: f6 43 10 01 testb $0x1,0x10(%ebx) 10e832: 74 08 je 10e83c <_Thread_Restart+0x18> 10e834: 31 c0 xor %eax,%eax return true; } return false; } 10e836: 8b 5d fc mov -0x4(%ebp),%ebx 10e839: c9 leave 10e83a: c3 ret 10e83b: 90 nop <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); 10e83c: 83 ec 0c sub $0xc,%esp 10e83f: 53 push %ebx 10e840: e8 b3 01 00 00 call 10e9f8 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 10e845: 83 c4 0c add $0xc,%esp 10e848: ff 75 10 pushl 0x10(%ebp) 10e84b: ff 75 0c pushl 0xc(%ebp) 10e84e: 53 push %ebx 10e84f: e8 18 37 00 00 call 111f6c <_Thread_Reset> _Thread_Load_environment( the_thread ); 10e854: 89 1c 24 mov %ebx,(%esp) 10e857: e8 ec 33 00 00 call 111c48 <_Thread_Load_environment> _Thread_Ready( the_thread ); 10e85c: 89 1c 24 mov %ebx,(%esp) 10e85f: e8 64 36 00 00 call 111ec8 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 10e864: 89 1c 24 mov %ebx,(%esp) 10e867: e8 b8 06 00 00 call 10ef24 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 10e86c: 83 c4 10 add $0x10,%esp 10e86f: 3b 1d b8 95 12 00 cmp 0x1295b8,%ebx 10e875: 74 07 je 10e87e <_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 ); 10e877: b0 01 mov $0x1,%al return true; } return false; } 10e879: 8b 5d fc mov -0x4(%ebp),%ebx 10e87c: c9 leave 10e87d: 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 ) 10e87e: 83 bb ec 00 00 00 00 cmpl $0x0,0xec(%ebx) 10e885: 74 18 je 10e89f <_Thread_Restart+0x7b> _Context_Restore_fp( &_Thread_Executing->fp_context ); 10e887: 83 ec 0c sub $0xc,%esp 10e88a: 81 c3 ec 00 00 00 add $0xec,%ebx 10e890: 53 push %ebx 10e891: e8 58 0a 00 00 call 10f2ee <_CPU_Context_restore_fp> 10e896: 8b 1d b8 95 12 00 mov 0x1295b8,%ebx 10e89c: 83 c4 10 add $0x10,%esp #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 10e89f: 83 ec 0c sub $0xc,%esp 10e8a2: 81 c3 d4 00 00 00 add $0xd4,%ebx 10e8a8: 53 push %ebx 10e8a9: e8 2f 0a 00 00 call 10f2dd <_CPU_Context_restore> 00111674 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 111674: 55 push %ebp 111675: 89 e5 mov %esp,%ebp 111677: 53 push %ebx 111678: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; States_Control current_state; _ISR_Disable( level ); 11167b: 9c pushf 11167c: fa cli 11167d: 59 pop %ecx _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; 11167e: 8b 50 10 mov 0x10(%eax),%edx if ( current_state & STATES_SUSPENDED ) { 111681: f6 c2 02 test $0x2,%dl 111684: 74 6e je 1116f4 <_Thread_Resume+0x80> 111686: 83 e2 fd and $0xfffffffd,%edx current_state = 111689: 89 50 10 mov %edx,0x10(%eax) the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 11168c: 85 d2 test %edx,%edx 11168e: 75 64 jne 1116f4 <_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; 111690: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 111696: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx 11169d: 66 09 1a or %bx,(%edx) _Priority_Major_bit_map |= the_priority_map->ready_major; 1116a0: 66 8b 15 cc ca 12 00 mov 0x12cacc,%dx 1116a7: 0b 90 94 00 00 00 or 0x94(%eax),%edx 1116ad: 66 89 15 cc ca 12 00 mov %dx,0x12cacc _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 1116b4: 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); 1116ba: 8d 5a 04 lea 0x4(%edx),%ebx 1116bd: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 1116bf: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 1116c2: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 1116c5: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 1116c7: 89 58 04 mov %ebx,0x4(%eax) _ISR_Flash( level ); 1116ca: 51 push %ecx 1116cb: 9d popf 1116cc: fa cli if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 1116cd: 8b 50 14 mov 0x14(%eax),%edx 1116d0: 8b 1d a8 ca 12 00 mov 0x12caa8,%ebx 1116d6: 3b 53 14 cmp 0x14(%ebx),%edx 1116d9: 73 19 jae 1116f4 <_Thread_Resume+0x80> _Thread_Heir = the_thread; 1116db: a3 a8 ca 12 00 mov %eax,0x12caa8 if ( _Thread_Executing->is_preemptible || 1116e0: a1 d8 ca 12 00 mov 0x12cad8,%eax 1116e5: 80 78 75 00 cmpb $0x0,0x75(%eax) 1116e9: 74 11 je 1116fc <_Thread_Resume+0x88> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 1116eb: c6 05 e8 ca 12 00 01 movb $0x1,0x12cae8 1116f2: 66 90 xchg %ax,%ax } } } _ISR_Enable( level ); 1116f4: 51 push %ecx 1116f5: 9d popf } 1116f6: 5b pop %ebx 1116f7: c9 leave 1116f8: c3 ret 1116f9: 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 || 1116fc: 85 d2 test %edx,%edx 1116fe: 74 eb je 1116eb <_Thread_Resume+0x77> 111700: eb f2 jmp 1116f4 <_Thread_Resume+0x80> 0010ddb8 <_Thread_Set_state>: void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { 10ddb8: 55 push %ebp 10ddb9: 89 e5 mov %esp,%ebp 10ddbb: 56 push %esi 10ddbc: 53 push %ebx 10ddbd: 8b 45 08 mov 0x8(%ebp),%eax 10ddc0: 8b 75 0c mov 0xc(%ebp),%esi ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 10ddc3: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 10ddc9: 9c pushf 10ddca: fa cli 10ddcb: 59 pop %ecx if ( !_States_Is_ready( the_thread->current_state ) ) { 10ddcc: 8b 58 10 mov 0x10(%eax),%ebx 10ddcf: 85 db test %ebx,%ebx 10ddd1: 75 2d jne 10de00 <_Thread_Set_state+0x48> _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; 10ddd3: 89 70 10 mov %esi,0x10(%eax) if ( _Chain_Has_only_one_node( ready ) ) { 10ddd6: 8b 1a mov (%edx),%ebx 10ddd8: 3b 5a 08 cmp 0x8(%edx),%ebx 10dddb: 74 3b je 10de18 <_Thread_Set_state+0x60> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10dddd: 8b 18 mov (%eax),%ebx previous = the_node->previous; 10dddf: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 10dde2: 89 53 04 mov %edx,0x4(%ebx) previous->next = next; 10dde5: 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 ); 10dde7: 51 push %ecx 10dde8: 9d popf 10dde9: fa cli if ( _Thread_Is_heir( the_thread ) ) 10ddea: 3b 05 a8 77 12 00 cmp 0x1277a8,%eax 10ddf0: 74 62 je 10de54 <_Thread_Set_state+0x9c> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 10ddf2: 3b 05 d8 77 12 00 cmp 0x1277d8,%eax 10ddf8: 74 12 je 10de0c <_Thread_Set_state+0x54> _Context_Switch_necessary = true; _ISR_Enable( level ); 10ddfa: 51 push %ecx 10ddfb: 9d popf } 10ddfc: 5b pop %ebx 10ddfd: 5e pop %esi 10ddfe: c9 leave 10ddff: c3 ret Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = 10de00: 09 f3 or %esi,%ebx 10de02: 89 58 10 mov %ebx,0x10(%eax) _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); 10de05: 51 push %ecx 10de06: 9d popf if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 10de07: 5b pop %ebx 10de08: 5e pop %esi 10de09: c9 leave 10de0a: c3 ret 10de0b: 90 nop <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; 10de0c: c6 05 e8 77 12 00 01 movb $0x1,0x1277e8 10de13: eb e5 jmp 10ddfa <_Thread_Set_state+0x42> 10de15: 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); 10de18: 8d 5a 04 lea 0x4(%edx),%ebx 10de1b: 89 1a mov %ebx,(%edx) the_chain->permanent_null = NULL; 10de1d: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) the_chain->last = _Chain_Head(the_chain); 10de24: 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; 10de27: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10de2d: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 10de34: 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 ); 10de37: 66 83 3a 00 cmpw $0x0,(%edx) 10de3b: 75 aa jne 10dde7 <_Thread_Set_state+0x2f> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 10de3d: 66 8b 15 cc 77 12 00 mov 0x1277cc,%dx 10de44: 23 90 98 00 00 00 and 0x98(%eax),%edx 10de4a: 66 89 15 cc 77 12 00 mov %dx,0x1277cc 10de51: eb 94 jmp 10dde7 <_Thread_Set_state+0x2f> 10de53: 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 ); 10de54: 66 8b 35 cc 77 12 00 mov 0x1277cc,%si 10de5b: 31 d2 xor %edx,%edx 10de5d: 89 d3 mov %edx,%ebx 10de5f: 66 0f bc de bsf %si,%bx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 10de63: 0f b7 db movzwl %bx,%ebx 10de66: 66 8b b4 1b 60 78 12 mov 0x127860(%ebx,%ebx,1),%si 10de6d: 00 10de6e: 66 0f bc d6 bsf %si,%dx * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 10de72: c1 e3 04 shl $0x4,%ebx 10de75: 0f b7 d2 movzwl %dx,%edx 10de78: 8d 14 13 lea (%ebx,%edx,1),%edx 10de7b: 8d 1c 52 lea (%edx,%edx,2),%ebx 10de7e: 8b 15 e0 76 12 00 mov 0x1276e0,%edx 10de84: 8b 14 9a mov (%edx,%ebx,4),%edx 10de87: 89 15 a8 77 12 00 mov %edx,0x1277a8 10de8d: e9 60 ff ff ff jmp 10ddf2 <_Thread_Set_state+0x3a> 0010de94 <_Thread_Set_transient>: */ void _Thread_Set_transient( Thread_Control *the_thread ) { 10de94: 55 push %ebp 10de95: 89 e5 mov %esp,%ebp 10de97: 56 push %esi 10de98: 53 push %ebx 10de99: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; 10de9c: 8b 88 8c 00 00 00 mov 0x8c(%eax),%ecx _ISR_Disable( level ); 10dea2: 9c pushf 10dea3: fa cli 10dea4: 5b pop %ebx old_state = the_thread->current_state; 10dea5: 8b 50 10 mov 0x10(%eax),%edx the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); 10dea8: 89 d6 mov %edx,%esi 10deaa: 83 ce 04 or $0x4,%esi 10dead: 89 70 10 mov %esi,0x10(%eax) if ( _States_Is_ready( old_state ) ) { 10deb0: 85 d2 test %edx,%edx 10deb2: 75 11 jne 10dec5 <_Thread_Set_transient+0x31> if ( _Chain_Has_only_one_node( ready ) ) { 10deb4: 8b 11 mov (%ecx),%edx 10deb6: 3b 51 08 cmp 0x8(%ecx),%edx 10deb9: 74 11 je 10decc <_Thread_Set_transient+0x38> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10debb: 8b 10 mov (%eax),%edx previous = the_node->previous; 10debd: 8b 40 04 mov 0x4(%eax),%eax next->previous = previous; 10dec0: 89 42 04 mov %eax,0x4(%edx) previous->next = next; 10dec3: 89 10 mov %edx,(%eax) } else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); 10dec5: 53 push %ebx 10dec6: 9d popf } 10dec7: 5b pop %ebx 10dec8: 5e pop %esi 10dec9: c9 leave 10deca: c3 ret 10decb: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10decc: 8d 51 04 lea 0x4(%ecx),%edx 10decf: 89 11 mov %edx,(%ecx) the_chain->permanent_null = NULL; 10ded1: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) the_chain->last = _Chain_Head(the_chain); 10ded8: 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; 10dedb: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10dee1: 66 8b 88 9a 00 00 00 mov 0x9a(%eax),%cx 10dee8: 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 ); 10deeb: 66 83 3a 00 cmpw $0x0,(%edx) 10deef: 75 d4 jne 10dec5 <_Thread_Set_transient+0x31> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 10def1: 66 8b 15 cc 77 12 00 mov 0x1277cc,%dx 10def8: 23 90 98 00 00 00 and 0x98(%eax),%edx 10defe: 66 89 15 cc 77 12 00 mov %dx,0x1277cc 10df05: eb be jmp 10dec5 <_Thread_Set_transient+0x31> 0010df08 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 10df08: 55 push %ebp 10df09: 89 e5 mov %esp,%ebp 10df0b: 53 push %ebx 10df0c: 83 ec 04 sub $0x4,%esp 10df0f: a1 30 35 12 00 mov 0x123530,%eax 10df14: 8b 5d 0c mov 0xc(%ebp),%ebx 10df17: 39 c3 cmp %eax,%ebx 10df19: 73 02 jae 10df1d <_Thread_Stack_Allocate+0x15> 10df1b: 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 ) { 10df1d: a1 60 35 12 00 mov 0x123560,%eax 10df22: 85 c0 test %eax,%eax 10df24: 74 32 je 10df58 <_Thread_Stack_Allocate+0x50> stack_addr = (*Configuration.stack_allocate_hook)( the_stack_size ); 10df26: 83 ec 0c sub $0xc,%esp 10df29: 53 push %ebx 10df2a: ff d0 call *%eax 10df2c: 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 ) 10df2f: 85 c0 test %eax,%eax 10df31: 74 11 je 10df44 <_Thread_Stack_Allocate+0x3c> the_stack_size = 0; the_thread->Start.stack = stack_addr; 10df33: 8b 55 08 mov 0x8(%ebp),%edx 10df36: 89 82 d0 00 00 00 mov %eax,0xd0(%edx) return the_stack_size; } 10df3c: 89 d8 mov %ebx,%eax 10df3e: 8b 5d fc mov -0x4(%ebp),%ebx 10df41: c9 leave 10df42: c3 ret 10df43: 90 nop <== NOT EXECUTED the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 10df44: 31 db xor %ebx,%ebx the_stack_size = 0; the_thread->Start.stack = stack_addr; 10df46: 8b 55 08 mov 0x8(%ebp),%edx 10df49: 89 82 d0 00 00 00 mov %eax,0xd0(%edx) return the_stack_size; } 10df4f: 89 d8 mov %ebx,%eax 10df51: 8b 5d fc mov -0x4(%ebp),%ebx 10df54: c9 leave 10df55: c3 ret 10df56: 66 90 xchg %ax,%ax <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; 10df58: 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 ); 10df5b: 83 ec 0c sub $0xc,%esp 10df5e: 53 push %ebx 10df5f: e8 18 07 00 00 call 10e67c <_Workspace_Allocate> 10df64: 83 c4 10 add $0x10,%esp 10df67: eb c6 jmp 10df2f <_Thread_Stack_Allocate+0x27> 0010df6c <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 10df6c: 55 push %ebp 10df6d: 89 e5 mov %esp,%ebp 10df6f: 83 ec 08 sub $0x8,%esp 10df72: 8b 45 08 mov 0x8(%ebp),%eax #if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 10df75: 80 b8 c0 00 00 00 00 cmpb $0x0,0xc0(%eax) 10df7c: 74 16 je 10df94 <_Thread_Stack_Free+0x28> * 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 ) 10df7e: 8b 15 64 35 12 00 mov 0x123564,%edx 10df84: 85 d2 test %edx,%edx 10df86: 74 10 je 10df98 <_Thread_Stack_Free+0x2c> (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); 10df88: 8b 80 c8 00 00 00 mov 0xc8(%eax),%eax 10df8e: 89 45 08 mov %eax,0x8(%ebp) else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 10df91: 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 ); 10df92: ff e2 jmp *%edx else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 10df94: c9 leave 10df95: c3 ret 10df96: 66 90 xchg %ax,%ax <== NOT EXECUTED */ if ( Configuration.stack_free_hook ) (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 10df98: 8b 80 c8 00 00 00 mov 0xc8(%eax),%eax 10df9e: 89 45 08 mov %eax,0x8(%ebp) } 10dfa1: 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 ); 10dfa2: e9 f1 06 00 00 jmp 10e698 <_Workspace_Free> 0010e004 <_Thread_Start>: Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 10e004: 55 push %ebp 10e005: 89 e5 mov %esp,%ebp 10e007: 53 push %ebx 10e008: 83 ec 04 sub $0x4,%esp 10e00b: 8b 5d 08 mov 0x8(%ebp),%ebx if ( _States_Is_dormant( the_thread->current_state ) ) { 10e00e: f6 43 10 01 testb $0x1,0x10(%ebx) 10e012: 75 08 jne 10e01c <_Thread_Start+0x18> 10e014: 31 c0 xor %eax,%eax return true; } return false; } 10e016: 8b 5d fc mov -0x4(%ebp),%ebx 10e019: c9 leave 10e01a: c3 ret 10e01b: 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; 10e01c: 8b 45 10 mov 0x10(%ebp),%eax 10e01f: 89 83 9c 00 00 00 mov %eax,0x9c(%ebx) the_thread->Start.prototype = the_prototype; 10e025: 8b 45 0c mov 0xc(%ebp),%eax 10e028: 89 83 a0 00 00 00 mov %eax,0xa0(%ebx) the_thread->Start.pointer_argument = pointer_argument; 10e02e: 8b 45 14 mov 0x14(%ebp),%eax 10e031: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx) the_thread->Start.numeric_argument = numeric_argument; 10e037: 8b 45 18 mov 0x18(%ebp),%eax 10e03a: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx) _Thread_Load_environment( the_thread ); 10e040: 83 ec 0c sub $0xc,%esp 10e043: 53 push %ebx 10e044: e8 c7 2f 00 00 call 111010 <_Thread_Load_environment> _Thread_Ready( the_thread ); 10e049: 89 1c 24 mov %ebx,(%esp) 10e04c: e8 3f 32 00 00 call 111290 <_Thread_Ready> _User_extensions_Thread_start( the_thread ); 10e051: 89 1c 24 mov %ebx,(%esp) 10e054: e8 67 03 00 00 call 10e3c0 <_User_extensions_Thread_start> 10e059: b0 01 mov $0x1,%al return true; 10e05b: 83 c4 10 add $0x10,%esp } return false; } 10e05e: 8b 5d fc mov -0x4(%ebp),%ebx 10e061: c9 leave 10e062: c3 ret 00111394 <_Thread_Suspend>: */ void _Thread_Suspend( Thread_Control *the_thread ) { 111394: 55 push %ebp 111395: 89 e5 mov %esp,%ebp 111397: 56 push %esi 111398: 53 push %ebx 111399: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 11139c: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 1113a2: 9c pushf 1113a3: fa cli 1113a4: 59 pop %ecx #if defined(RTEMS_ITRON_API) the_thread->suspend_count++; #endif if ( !_States_Is_ready( the_thread->current_state ) ) { 1113a5: 8b 58 10 mov 0x10(%eax),%ebx 1113a8: 85 db test %ebx,%ebx 1113aa: 75 34 jne 1113e0 <_Thread_Suspend+0x4c> _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; 1113ac: c7 40 10 02 00 00 00 movl $0x2,0x10(%eax) if ( _Chain_Has_only_one_node( ready ) ) { 1113b3: 8b 1a mov (%edx),%ebx 1113b5: 3b 5a 08 cmp 0x8(%edx),%ebx 1113b8: 74 3e je 1113f8 <_Thread_Suspend+0x64> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 1113ba: 8b 18 mov (%eax),%ebx previous = the_node->previous; 1113bc: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 1113bf: 89 53 04 mov %edx,0x4(%ebx) previous->next = next; 1113c2: 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 ); 1113c4: 51 push %ecx 1113c5: 9d popf 1113c6: fa cli if ( _Thread_Is_heir( the_thread ) ) 1113c7: 3b 05 a8 77 12 00 cmp 0x1277a8,%eax 1113cd: 74 65 je 111434 <_Thread_Suspend+0xa0> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 1113cf: 3b 05 d8 77 12 00 cmp 0x1277d8,%eax 1113d5: 74 15 je 1113ec <_Thread_Suspend+0x58> _Context_Switch_necessary = true; _ISR_Enable( level ); 1113d7: 51 push %ecx 1113d8: 9d popf } 1113d9: 5b pop %ebx 1113da: 5e pop %esi 1113db: c9 leave 1113dc: c3 ret 1113dd: 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 = 1113e0: 83 cb 02 or $0x2,%ebx 1113e3: 89 58 10 mov %ebx,0x10(%eax) _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); 1113e6: 51 push %ecx 1113e7: 9d popf if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 1113e8: 5b pop %ebx 1113e9: 5e pop %esi 1113ea: c9 leave 1113eb: c3 ret if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; 1113ec: c6 05 e8 77 12 00 01 movb $0x1,0x1277e8 1113f3: eb e2 jmp 1113d7 <_Thread_Suspend+0x43> 1113f5: 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); 1113f8: 8d 5a 04 lea 0x4(%edx),%ebx 1113fb: 89 1a mov %ebx,(%edx) the_chain->permanent_null = NULL; 1113fd: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) the_chain->last = _Chain_Head(the_chain); 111404: 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; 111407: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 11140d: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 111414: 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 ); 111417: 66 83 3a 00 cmpw $0x0,(%edx) 11141b: 75 a7 jne 1113c4 <_Thread_Suspend+0x30> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 11141d: 66 8b 15 cc 77 12 00 mov 0x1277cc,%dx 111424: 23 90 98 00 00 00 and 0x98(%eax),%edx 11142a: 66 89 15 cc 77 12 00 mov %dx,0x1277cc 111431: eb 91 jmp 1113c4 <_Thread_Suspend+0x30> 111433: 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 ); 111434: 66 8b 35 cc 77 12 00 mov 0x1277cc,%si 11143b: 31 d2 xor %edx,%edx 11143d: 89 d3 mov %edx,%ebx 11143f: 66 0f bc de bsf %si,%bx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 111443: 0f b7 db movzwl %bx,%ebx 111446: 66 8b b4 1b 60 78 12 mov 0x127860(%ebx,%ebx,1),%si 11144d: 00 11144e: 66 0f bc d6 bsf %si,%dx * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 111452: c1 e3 04 shl $0x4,%ebx 111455: 0f b7 d2 movzwl %dx,%edx 111458: 8d 14 13 lea (%ebx,%edx,1),%edx 11145b: 8d 1c 52 lea (%edx,%edx,2),%ebx 11145e: 8b 15 e0 76 12 00 mov 0x1276e0,%edx 111464: 8b 14 9a mov (%edx,%ebx,4),%edx 111467: 89 15 a8 77 12 00 mov %edx,0x1277a8 11146d: e9 5d ff ff ff jmp 1113cf <_Thread_Suspend+0x3b> 0010e064 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 10e064: 55 push %ebp 10e065: 89 e5 mov %esp,%ebp 10e067: 53 push %ebx 10e068: 83 ec 04 sub $0x4,%esp Thread_Control *executing; executing = _Thread_Executing; 10e06b: 8b 1d d8 77 12 00 mov 0x1277d8,%ebx /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 10e071: 80 7b 75 00 cmpb $0x0,0x75(%ebx) 10e075: 74 19 je 10e090 <_Thread_Tickle_timeslice+0x2c> return; if ( !_States_Is_ready( executing->current_state ) ) 10e077: 8b 43 10 mov 0x10(%ebx),%eax 10e07a: 85 c0 test %eax,%eax 10e07c: 75 12 jne 10e090 <_Thread_Tickle_timeslice+0x2c> /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 10e07e: 8b 43 7c mov 0x7c(%ebx),%eax 10e081: 83 f8 01 cmp $0x1,%eax 10e084: 72 0a jb 10e090 <_Thread_Tickle_timeslice+0x2c> 10e086: 83 f8 02 cmp $0x2,%eax 10e089: 76 29 jbe 10e0b4 <_Thread_Tickle_timeslice+0x50> 10e08b: 83 f8 03 cmp $0x3,%eax 10e08e: 74 08 je 10e098 <_Thread_Tickle_timeslice+0x34> if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; #endif } } 10e090: 8b 5d fc mov -0x4(%ebp),%ebx 10e093: c9 leave 10e094: c3 ret 10e095: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } break; #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 10e098: 8b 43 78 mov 0x78(%ebx),%eax 10e09b: 48 dec %eax 10e09c: 89 43 78 mov %eax,0x78(%ebx) 10e09f: 85 c0 test %eax,%eax 10e0a1: 75 ed jne 10e090 <_Thread_Tickle_timeslice+0x2c> (*executing->budget_callout)( executing ); 10e0a3: 83 ec 0c sub $0xc,%esp 10e0a6: 53 push %ebx 10e0a7: ff 93 80 00 00 00 call *0x80(%ebx) 10e0ad: 83 c4 10 add $0x10,%esp 10e0b0: eb de jmp 10e090 <_Thread_Tickle_timeslice+0x2c> 10e0b2: 66 90 xchg %ax,%ax <== NOT EXECUTED case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: #endif if ( (int)(--executing->cpu_time_budget) <= 0 ) { 10e0b4: 8b 43 78 mov 0x78(%ebx),%eax 10e0b7: 48 dec %eax 10e0b8: 89 43 78 mov %eax,0x78(%ebx) 10e0bb: 85 c0 test %eax,%eax 10e0bd: 7f d1 jg 10e090 <_Thread_Tickle_timeslice+0x2c> _Thread_Reset_timeslice(); 10e0bf: e8 70 32 00 00 call 111334 <_Thread_Reset_timeslice> executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 10e0c4: a1 e4 76 12 00 mov 0x1276e4,%eax 10e0c9: 89 43 78 mov %eax,0x78(%ebx) 10e0cc: eb c2 jmp 10e090 <_Thread_Tickle_timeslice+0x2c> 0010e0d0 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 10e0d0: 55 push %ebp 10e0d1: 89 e5 mov %esp,%ebp 10e0d3: 56 push %esi 10e0d4: 53 push %ebx ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 10e0d5: a1 d8 77 12 00 mov 0x1277d8,%eax ready = executing->ready; 10e0da: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 10e0e0: 9c pushf 10e0e1: fa cli 10e0e2: 59 pop %ecx if ( !_Chain_Has_only_one_node( ready ) ) { 10e0e3: 8b 1a mov (%edx),%ebx 10e0e5: 3b 5a 08 cmp 0x8(%edx),%ebx 10e0e8: 74 3e je 10e128 <_Thread_Yield_processor+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10e0ea: 8b 30 mov (%eax),%esi previous = the_node->previous; 10e0ec: 8b 58 04 mov 0x4(%eax),%ebx next->previous = previous; 10e0ef: 89 5e 04 mov %ebx,0x4(%esi) previous->next = next; 10e0f2: 89 33 mov %esi,(%ebx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 10e0f4: 8d 5a 04 lea 0x4(%edx),%ebx 10e0f7: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 10e0f9: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 10e0fc: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 10e0ff: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 10e101: 89 58 04 mov %ebx,0x4(%eax) _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 10e104: 51 push %ecx 10e105: 9d popf 10e106: fa cli if ( _Thread_Is_heir( executing ) ) 10e107: 3b 05 a8 77 12 00 cmp 0x1277a8,%eax 10e10d: 74 0d je 10e11c <_Thread_Yield_processor+0x4c> _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true; 10e10f: c6 05 e8 77 12 00 01 movb $0x1,0x1277e8 _ISR_Enable( level ); 10e116: 51 push %ecx 10e117: 9d popf } 10e118: 5b pop %ebx 10e119: 5e pop %esi 10e11a: c9 leave 10e11b: c3 ret _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 10e11c: 8b 02 mov (%edx),%eax 10e11e: a3 a8 77 12 00 mov %eax,0x1277a8 10e123: eb ea jmp 10e10f <_Thread_Yield_processor+0x3f> 10e125: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 10e128: 3b 05 a8 77 12 00 cmp 0x1277a8,%eax 10e12e: 75 df jne 10e10f <_Thread_Yield_processor+0x3f> 10e130: eb e4 jmp 10e116 <_Thread_Yield_processor+0x46> 0010cfc0 <_Thread_blocking_operation_Cancel>: Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { 10cfc0: 55 push %ebp 10cfc1: 89 e5 mov %esp,%ebp 10cfc3: 53 push %ebx 10cfc4: 83 ec 04 sub $0x4,%esp 10cfc7: 8b 5d 0c mov 0xc(%ebp),%ebx 10cfca: 8b 45 10 mov 0x10(%ebp),%eax #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 10cfcd: 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 ) ) { 10cfd4: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10cfd8: 74 16 je 10cff0 <_Thread_blocking_operation_Cancel+0x30> _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); } else _ISR_Enable( level ); 10cfda: 50 push %eax 10cfdb: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10cfdc: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 10cfe3: 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 } 10cfe6: 8b 5d fc mov -0x4(%ebp),%ebx 10cfe9: c9 leave 10cfea: e9 5d 01 00 00 jmp 10d14c <_Thread_Clear_state> 10cfef: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 10cff0: 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 ); 10cff7: 50 push %eax 10cff8: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10cff9: 83 ec 0c sub $0xc,%esp 10cffc: 8d 43 48 lea 0x48(%ebx),%eax 10cfff: 50 push %eax 10d000: e8 73 15 00 00 call 10e578 <_Watchdog_Remove> 10d005: 83 c4 10 add $0x10,%esp 10d008: eb d2 jmp 10cfdc <_Thread_blocking_operation_Cancel+0x1c> 0010d8e8 <_Thread_queue_Dequeue>: */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { 10d8e8: 55 push %ebp 10d8e9: 89 e5 mov %esp,%ebp 10d8eb: 53 push %ebx 10d8ec: 83 ec 04 sub $0x4,%esp 10d8ef: 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 ) 10d8f2: 83 7b 34 01 cmpl $0x1,0x34(%ebx) 10d8f6: 74 1c je 10d914 <_Thread_queue_Dequeue+0x2c> 10d8f8: b8 a0 10 11 00 mov $0x1110a0,%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 ); 10d8fd: 83 ec 0c sub $0xc,%esp 10d900: 53 push %ebx 10d901: ff d0 call *%eax _ISR_Disable( level ); 10d903: 9c pushf 10d904: fa cli 10d905: 5a pop %edx if ( !the_thread ) { 10d906: 83 c4 10 add $0x10,%esp 10d909: 85 c0 test %eax,%eax 10d90b: 74 0f je 10d91c <_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 ); 10d90d: 52 push %edx 10d90e: 9d popf return the_thread; } 10d90f: 8b 5d fc mov -0x4(%ebp),%ebx 10d912: c9 leave 10d913: 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 ) 10d914: b8 34 d9 10 00 mov $0x10d934,%eax 10d919: eb e2 jmp 10d8fd <_Thread_queue_Dequeue+0x15> 10d91b: 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; 10d91c: 8b 4b 30 mov 0x30(%ebx),%ecx 10d91f: 49 dec %ecx 10d920: 83 f9 01 cmp $0x1,%ecx 10d923: 77 e8 ja 10d90d <_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; 10d925: c7 43 30 03 00 00 00 movl $0x3,0x30(%ebx) the_thread = _Thread_Executing; 10d92c: a1 d8 77 12 00 mov 0x1277d8,%eax 10d931: eb da jmp 10d90d <_Thread_queue_Dequeue+0x25> 0010d934 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 10d934: 55 push %ebp 10d935: 89 e5 mov %esp,%ebp 10d937: 57 push %edi 10d938: 56 push %esi 10d939: 53 push %ebx 10d93a: 83 ec 1c sub $0x1c,%esp 10d93d: 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 ); 10d940: 9c pushf 10d941: fa cli 10d942: 58 pop %eax 10d943: 89 f2 mov %esi,%edx 10d945: 31 c9 xor %ecx,%ecx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10d947: 8d 5a 04 lea 0x4(%edx),%ebx 10d94a: 39 1a cmp %ebx,(%edx) 10d94c: 75 1a jne 10d968 <_Thread_queue_Dequeue_priority+0x34> for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 10d94e: 41 inc %ecx 10d94f: 83 c2 0c add $0xc,%edx Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; 10d952: 83 f9 04 cmp $0x4,%ecx 10d955: 75 f0 jne 10d947 <_Thread_queue_Dequeue_priority+0x13> } /* * We did not find a thread to unblock. */ _ISR_Enable( level ); 10d957: 50 push %eax 10d958: 9d popf 10d959: 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 ); } 10d95b: 89 d8 mov %ebx,%eax 10d95d: 8d 65 f4 lea -0xc(%ebp),%esp 10d960: 5b pop %ebx 10d961: 5e pop %esi 10d962: 5f pop %edi 10d963: c9 leave 10d964: c3 ret 10d965: 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 *) 10d968: 8d 14 49 lea (%ecx,%ecx,2),%edx 10d96b: 8b 1c 96 mov (%esi,%edx,4),%ebx */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; 10d96e: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) new_first_node = the_thread->Wait.Block2n.first; 10d975: 8b 53 38 mov 0x38(%ebx),%edx new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; 10d978: 8b 0b mov (%ebx),%ecx previous_node = the_thread->Object.Node.previous; 10d97a: 8b 73 04 mov 0x4(%ebx),%esi 10d97d: 8d 7b 3c lea 0x3c(%ebx),%edi 10d980: 39 fa cmp %edi,%edx 10d982: 74 76 je 10d9fa <_Thread_queue_Dequeue_priority+0xc6> if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last; 10d984: 8b 7b 40 mov 0x40(%ebx),%edi 10d987: 89 7d e4 mov %edi,-0x1c(%ebp) new_second_node = new_first_node->next; 10d98a: 8b 3a mov (%edx),%edi previous_node->next = new_first_node; 10d98c: 89 16 mov %edx,(%esi) next_node->previous = new_first_node; 10d98e: 89 51 04 mov %edx,0x4(%ecx) new_first_node->next = next_node; 10d991: 89 0a mov %ecx,(%edx) new_first_node->previous = previous_node; 10d993: 89 72 04 mov %esi,0x4(%edx) if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 10d996: 8b 4b 38 mov 0x38(%ebx),%ecx 10d999: 3b 4b 40 cmp 0x40(%ebx),%ecx 10d99c: 74 14 je 10d9b2 <_Thread_queue_Dequeue_priority+0x7e> /* > two threads on 2-n */ new_second_node->previous = 10d99e: 8d 4a 38 lea 0x38(%edx),%ecx 10d9a1: 89 4f 04 mov %ecx,0x4(%edi) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 10d9a4: 89 7a 38 mov %edi,0x38(%edx) new_first_thread->Wait.Block2n.last = last_node; 10d9a7: 8b 4d e4 mov -0x1c(%ebp),%ecx 10d9aa: 89 4a 40 mov %ecx,0x40(%edx) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 10d9ad: 83 c2 3c add $0x3c,%edx 10d9b0: 89 11 mov %edx,(%ecx) } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 10d9b2: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10d9b6: 74 18 je 10d9d0 <_Thread_queue_Dequeue_priority+0x9c> _ISR_Enable( level ); 10d9b8: 50 push %eax 10d9b9: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10d9ba: 83 ec 08 sub $0x8,%esp 10d9bd: 68 f8 ff 03 10 push $0x1003fff8 10d9c2: 53 push %ebx 10d9c3: e8 84 f7 ff ff call 10d14c <_Thread_Clear_state> 10d9c8: 83 c4 10 add $0x10,%esp 10d9cb: eb 8e jmp 10d95b <_Thread_queue_Dequeue_priority+0x27> 10d9cd: 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; 10d9d0: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx) _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 10d9d7: 50 push %eax 10d9d8: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10d9d9: 83 ec 0c sub $0xc,%esp 10d9dc: 8d 43 48 lea 0x48(%ebx),%eax 10d9df: 50 push %eax 10d9e0: e8 93 0b 00 00 call 10e578 <_Watchdog_Remove> 10d9e5: 58 pop %eax 10d9e6: 5a pop %edx 10d9e7: 68 f8 ff 03 10 push $0x1003fff8 10d9ec: 53 push %ebx 10d9ed: e8 5a f7 ff ff call 10d14c <_Thread_Clear_state> 10d9f2: 83 c4 10 add $0x10,%esp 10d9f5: e9 61 ff ff ff jmp 10d95b <_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; 10d9fa: 89 0e mov %ecx,(%esi) next_node->previous = previous_node; 10d9fc: 89 71 04 mov %esi,0x4(%ecx) 10d9ff: eb b1 jmp 10d9b2 <_Thread_queue_Dequeue_priority+0x7e> 00111118 <_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 ) { 111118: 55 push %ebp 111119: 89 e5 mov %esp,%ebp 11111b: 56 push %esi 11111c: 53 push %ebx 11111d: 8b 55 08 mov 0x8(%ebp),%edx 111120: 8b 5d 0c mov 0xc(%ebp),%ebx Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 111123: 9c pushf 111124: fa cli 111125: 59 pop %ecx sync_state = the_thread_queue->sync_state; 111126: 8b 42 30 mov 0x30(%edx),%eax the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 111129: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 111130: 83 f8 01 cmp $0x1,%eax 111133: 74 0b je 111140 <_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; 111135: 8b 55 10 mov 0x10(%ebp),%edx 111138: 89 0a mov %ecx,(%edx) return sync_state; } 11113a: 5b pop %ebx 11113b: 5e pop %esi 11113c: c9 leave 11113d: c3 ret 11113e: 66 90 xchg %ax,%ax <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 111140: 8d 72 04 lea 0x4(%edx),%esi 111143: 89 33 mov %esi,(%ebx) old_last_node = the_chain->last; 111145: 8b 72 08 mov 0x8(%edx),%esi the_chain->last = the_node; 111148: 89 5a 08 mov %ebx,0x8(%edx) old_last_node->next = the_node; 11114b: 89 1e mov %ebx,(%esi) the_node->previous = old_last_node; 11114d: 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; 111150: 89 53 44 mov %edx,0x44(%ebx) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); 111153: 51 push %ecx 111154: 9d popf * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 111155: 5b pop %ebx 111156: 5e pop %esi 111157: c9 leave 111158: c3 ret 0010da9c <_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 ) { 10da9c: 55 push %ebp 10da9d: 89 e5 mov %esp,%ebp 10da9f: 57 push %edi 10daa0: 56 push %esi 10daa1: 53 push %ebx 10daa2: 83 ec 08 sub $0x8,%esp 10daa5: 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); 10daa8: 8d 47 3c lea 0x3c(%edi),%eax 10daab: 89 47 38 mov %eax,0x38(%edi) the_chain->permanent_null = NULL; 10daae: c7 47 3c 00 00 00 00 movl $0x0,0x3c(%edi) the_chain->last = _Chain_Head(the_chain); 10dab5: 8d 47 38 lea 0x38(%edi),%eax 10dab8: 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; 10dabb: 8b 57 14 mov 0x14(%edi),%edx header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 10dabe: 89 d0 mov %edx,%eax 10dac0: c1 e8 06 shr $0x6,%eax 10dac3: 8d 04 40 lea (%eax,%eax,2),%eax 10dac6: 8b 4d 08 mov 0x8(%ebp),%ecx 10dac9: 8d 34 81 lea (%ecx,%eax,4),%esi block_state = the_thread_queue->state; 10dacc: 8b 59 38 mov 0x38(%ecx),%ebx if ( _Thread_queue_Is_reverse_search( priority ) ) 10dacf: f6 c2 20 test $0x20,%dl 10dad2: 75 60 jne 10db34 <_Thread_queue_Enqueue_priority+0x98> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10dad4: 8d 46 04 lea 0x4(%esi),%eax 10dad7: 89 75 f0 mov %esi,-0x10(%ebp) 10dada: 89 7d ec mov %edi,-0x14(%ebp) 10dadd: 89 c7 mov %eax,%edi goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 10dadf: 9c pushf 10dae0: fa cli 10dae1: 5e pop %esi search_thread = (Thread_Control *) header->first; 10dae2: 8b 4d f0 mov -0x10(%ebp),%ecx 10dae5: 8b 01 mov (%ecx),%eax while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 10dae7: 39 f8 cmp %edi,%eax 10dae9: 75 17 jne 10db02 <_Thread_queue_Enqueue_priority+0x66> 10daeb: e9 09 01 00 00 jmp 10dbf9 <_Thread_queue_Enqueue_priority+0x15d> break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 10daf0: 56 push %esi 10daf1: 9d popf 10daf2: fa cli if ( !_States_Are_set( search_thread->current_state, block_state) ) { 10daf3: 85 58 10 test %ebx,0x10(%eax) 10daf6: 0f 84 a8 00 00 00 je 10dba4 <_Thread_queue_Enqueue_priority+0x108> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 10dafc: 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 ) ) { 10dafe: 39 f8 cmp %edi,%eax 10db00: 74 07 je 10db09 <_Thread_queue_Enqueue_priority+0x6d> search_priority = search_thread->current_priority; 10db02: 8b 48 14 mov 0x14(%eax),%ecx if ( priority <= search_priority ) 10db05: 39 ca cmp %ecx,%edx 10db07: 77 e7 ja 10daf0 <_Thread_queue_Enqueue_priority+0x54> 10db09: 89 4d f0 mov %ecx,-0x10(%ebp) 10db0c: 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 ) ) { 10db0f: 89 f3 mov %esi,%ebx } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 10db11: 8b 4d 08 mov 0x8(%ebp),%ecx 10db14: 83 79 30 01 cmpl $0x1,0x30(%ecx) 10db18: 0f 84 8e 00 00 00 je 10dbac <_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; 10db1e: 8b 45 10 mov 0x10(%ebp),%eax 10db21: 89 18 mov %ebx,(%eax) return the_thread_queue->sync_state; 10db23: 8b 55 08 mov 0x8(%ebp),%edx 10db26: 8b 42 30 mov 0x30(%edx),%eax } 10db29: 83 c4 08 add $0x8,%esp 10db2c: 5b pop %ebx 10db2d: 5e pop %esi 10db2e: 5f pop %edi 10db2f: c9 leave 10db30: c3 ret 10db31: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10db34: 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; 10db37: 0f b6 0d 34 35 12 00 movzbl 0x123534,%ecx 10db3e: 41 inc %ecx _ISR_Disable( level ); 10db3f: 9c pushf 10db40: fa cli 10db41: 5f pop %edi search_thread = (Thread_Control *) header->last; 10db42: 8b 46 08 mov 0x8(%esi),%eax while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 10db45: 39 f0 cmp %esi,%eax 10db47: 75 12 jne 10db5b <_Thread_queue_Enqueue_priority+0xbf> 10db49: eb 17 jmp 10db62 <_Thread_queue_Enqueue_priority+0xc6> 10db4b: 90 nop <== NOT EXECUTED break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 10db4c: 57 push %edi 10db4d: 9d popf 10db4e: fa cli if ( !_States_Are_set( search_thread->current_state, block_state) ) { 10db4f: 85 58 10 test %ebx,0x10(%eax) 10db52: 74 4c je 10dba0 <_Thread_queue_Enqueue_priority+0x104> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 10db54: 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 ) ) { 10db57: 39 f0 cmp %esi,%eax 10db59: 74 07 je 10db62 <_Thread_queue_Enqueue_priority+0xc6> search_priority = search_thread->current_priority; 10db5b: 8b 48 14 mov 0x14(%eax),%ecx if ( priority >= search_priority ) 10db5e: 39 ca cmp %ecx,%edx 10db60: 72 ea jb 10db4c <_Thread_queue_Enqueue_priority+0xb0> 10db62: 89 fe mov %edi,%esi 10db64: 89 4d ec mov %ecx,-0x14(%ebp) 10db67: 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 ) ) { 10db6a: 89 f3 mov %esi,%ebx } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 10db6c: 8b 4d 08 mov 0x8(%ebp),%ecx 10db6f: 83 79 30 01 cmpl $0x1,0x30(%ecx) 10db73: 75 a9 jne 10db1e <_Thread_queue_Enqueue_priority+0x82> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10db75: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx) if ( priority == search_priority ) 10db7c: 3b 55 ec cmp -0x14(%ebp),%edx 10db7f: 74 56 je 10dbd7 <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 10db81: 8b 10 mov (%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = next_node; 10db83: 89 17 mov %edx,(%edi) the_node->previous = search_node; 10db85: 89 47 04 mov %eax,0x4(%edi) search_node->next = the_node; 10db88: 89 38 mov %edi,(%eax) next_node->previous = the_node; 10db8a: 89 7a 04 mov %edi,0x4(%edx) the_thread->Wait.queue = the_thread_queue; 10db8d: 89 4f 44 mov %ecx,0x44(%edi) _ISR_Enable( level ); 10db90: 56 push %esi 10db91: 9d popf 10db92: b8 01 00 00 00 mov $0x1,%eax * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 10db97: 83 c4 08 add $0x8,%esp 10db9a: 5b pop %ebx 10db9b: 5e pop %esi 10db9c: 5f pop %edi 10db9d: c9 leave 10db9e: c3 ret 10db9f: 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 ); 10dba0: 57 push %edi 10dba1: 9d popf goto restart_reverse_search; 10dba2: eb 93 jmp 10db37 <_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 ); 10dba4: 56 push %esi <== NOT EXECUTED 10dba5: 9d popf <== NOT EXECUTED goto restart_forward_search; 10dba6: e9 34 ff ff ff jmp 10dadf <_Thread_queue_Enqueue_priority+0x43> <== NOT EXECUTED 10dbab: 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; 10dbac: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx) if ( priority == search_priority ) 10dbb3: 3b 55 f0 cmp -0x10(%ebp),%edx 10dbb6: 74 1f je 10dbd7 <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 10dbb8: 8b 50 04 mov 0x4(%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = search_node; 10dbbb: 89 07 mov %eax,(%edi) the_node->previous = previous_node; 10dbbd: 89 57 04 mov %edx,0x4(%edi) previous_node->next = the_node; 10dbc0: 89 3a mov %edi,(%edx) search_node->previous = the_node; 10dbc2: 89 78 04 mov %edi,0x4(%eax) the_thread->Wait.queue = the_thread_queue; 10dbc5: 89 4f 44 mov %ecx,0x44(%edi) _ISR_Enable( level ); 10dbc8: 56 push %esi 10dbc9: 9d popf 10dbca: b8 01 00 00 00 mov $0x1,%eax * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 10dbcf: 83 c4 08 add $0x8,%esp 10dbd2: 5b pop %ebx 10dbd3: 5e pop %esi 10dbd4: 5f pop %edi 10dbd5: c9 leave 10dbd6: c3 ret 10dbd7: 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; 10dbda: 8b 50 04 mov 0x4(%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = search_node; 10dbdd: 89 07 mov %eax,(%edi) the_node->previous = previous_node; 10dbdf: 89 57 04 mov %edx,0x4(%edi) previous_node->next = the_node; 10dbe2: 89 3a mov %edi,(%edx) search_node->previous = the_node; 10dbe4: 89 78 04 mov %edi,0x4(%eax) the_thread->Wait.queue = the_thread_queue; 10dbe7: 8b 45 08 mov 0x8(%ebp),%eax 10dbea: 89 47 44 mov %eax,0x44(%edi) _ISR_Enable( level ); 10dbed: 53 push %ebx 10dbee: 9d popf 10dbef: b8 01 00 00 00 mov $0x1,%eax return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 10dbf4: e9 30 ff ff ff jmp 10db29 <_Thread_queue_Enqueue_priority+0x8d> 10dbf9: 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 ) ) { 10dbfc: 89 f3 mov %esi,%ebx 10dbfe: c7 45 f0 ff ff ff ff movl $0xffffffff,-0x10(%ebp) 10dc05: e9 07 ff ff ff jmp 10db11 <_Thread_queue_Enqueue_priority+0x75> 0010da04 <_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 ) { 10da04: 55 push %ebp 10da05: 89 e5 mov %esp,%ebp 10da07: 57 push %edi 10da08: 56 push %esi 10da09: 53 push %ebx 10da0a: 83 ec 24 sub $0x24,%esp 10da0d: 8b 75 08 mov 0x8(%ebp),%esi 10da10: 8b 7d 0c mov 0xc(%ebp),%edi Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; 10da13: 8b 1d d8 77 12 00 mov 0x1277d8,%ebx else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 10da19: ff 76 38 pushl 0x38(%esi) 10da1c: 53 push %ebx 10da1d: e8 96 03 00 00 call 10ddb8 <_Thread_Set_state> /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { 10da22: 83 c4 10 add $0x10,%esp 10da25: 85 ff test %edi,%edi 10da27: 75 33 jne 10da5c <_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 ) 10da29: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10da2d: 74 64 je 10da93 <_Thread_queue_Enqueue_with_handler+0x8f> 10da2f: b8 18 11 11 00 mov $0x111118,%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 ); 10da34: 51 push %ecx 10da35: 8d 55 e4 lea -0x1c(%ebp),%edx 10da38: 52 push %edx 10da39: 53 push %ebx 10da3a: 56 push %esi 10da3b: ff d0 call *%eax if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 10da3d: 83 c4 10 add $0x10,%esp 10da40: 83 f8 01 cmp $0x1,%eax 10da43: 74 0e je 10da53 <_Thread_queue_Enqueue_with_handler+0x4f> _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); 10da45: 52 push %edx 10da46: ff 75 e4 pushl -0x1c(%ebp) 10da49: 53 push %ebx 10da4a: 50 push %eax 10da4b: e8 70 f5 ff ff call 10cfc0 <_Thread_blocking_operation_Cancel> 10da50: 83 c4 10 add $0x10,%esp } 10da53: 8d 65 f4 lea -0xc(%ebp),%esp 10da56: 5b pop %ebx 10da57: 5e pop %esi 10da58: 5f pop %edi 10da59: c9 leave 10da5a: c3 ret 10da5b: 90 nop <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( 10da5c: 8b 43 08 mov 0x8(%ebx),%eax Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10da5f: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10da66: 8b 55 10 mov 0x10(%ebp),%edx 10da69: 89 53 64 mov %edx,0x64(%ebx) the_watchdog->id = id; 10da6c: 89 43 68 mov %eax,0x68(%ebx) the_watchdog->user_data = user_data; 10da6f: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10da76: 89 7b 54 mov %edi,0x54(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10da79: 83 ec 08 sub $0x8,%esp 10da7c: 8d 43 48 lea 0x48(%ebx),%eax 10da7f: 50 push %eax 10da80: 68 f8 77 12 00 push $0x1277f8 10da85: e8 b6 09 00 00 call 10e440 <_Watchdog_Insert> 10da8a: 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 ) 10da8d: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10da91: 75 9c jne 10da2f <_Thread_queue_Enqueue_with_handler+0x2b> 10da93: b8 9c da 10 00 mov $0x10da9c,%eax 10da98: eb 9a jmp 10da34 <_Thread_queue_Enqueue_with_handler+0x30> 0011115c <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 11115c: 55 push %ebp 11115d: 89 e5 mov %esp,%ebp 11115f: 83 ec 08 sub $0x8,%esp 111162: 8b 45 08 mov 0x8(%ebp),%eax 111165: 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 ) 111168: 83 78 34 01 cmpl $0x1,0x34(%eax) 11116c: 74 0e je 11117c <_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 ); 11116e: 89 55 0c mov %edx,0xc(%ebp) 111171: 89 45 08 mov %eax,0x8(%ebp) } 111174: 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 ); 111175: e9 06 1d 00 00 jmp 112e80 <_Thread_queue_Extract_fifo> 11117a: 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 ); 11117c: 51 push %ecx 11117d: 6a 00 push $0x0 11117f: 52 push %edx 111180: 50 push %eax 111181: e8 06 00 00 00 call 11118c <_Thread_queue_Extract_priority_helper> 111186: 83 c4 10 add $0x10,%esp else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); } 111189: c9 leave 11118a: c3 ret 00112e80 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { 112e80: 55 push %ebp 112e81: 89 e5 mov %esp,%ebp 112e83: 53 push %ebx 112e84: 83 ec 04 sub $0x4,%esp 112e87: 8b 5d 0c mov 0xc(%ebp),%ebx ISR_Level level; _ISR_Disable( level ); 112e8a: 9c pushf 112e8b: fa cli 112e8c: 58 pop %eax if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 112e8d: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx) 112e94: 74 2e je 112ec4 <_Thread_queue_Extract_fifo+0x44> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 112e96: 8b 0b mov (%ebx),%ecx previous = the_node->previous; 112e98: 8b 53 04 mov 0x4(%ebx),%edx next->previous = previous; 112e9b: 89 51 04 mov %edx,0x4(%ecx) previous->next = next; 112e9e: 89 0a mov %ecx,(%edx) return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 112ea0: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 112ea7: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 112eab: 74 1f je 112ecc <_Thread_queue_Extract_fifo+0x4c> _ISR_Enable( level ); 112ead: 50 push %eax 112eae: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 112eaf: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 112eb6: 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 } 112eb9: 8b 5d fc mov -0x4(%ebp),%ebx 112ebc: c9 leave 112ebd: e9 8a a2 ff ff jmp 10d14c <_Thread_Clear_state> 112ec2: 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 ); 112ec4: 50 push %eax 112ec5: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 112ec6: 8b 5d fc mov -0x4(%ebp),%ebx 112ec9: c9 leave 112eca: c3 ret 112ecb: 90 nop <== NOT EXECUTED 112ecc: 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 ); 112ed3: 50 push %eax 112ed4: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 112ed5: 83 ec 0c sub $0xc,%esp 112ed8: 8d 43 48 lea 0x48(%ebx),%eax 112edb: 50 push %eax 112edc: e8 97 b6 ff ff call 10e578 <_Watchdog_Remove> 112ee1: 83 c4 10 add $0x10,%esp 112ee4: eb c9 jmp 112eaf <_Thread_queue_Extract_fifo+0x2f> 0011118c <_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 ) { 11118c: 55 push %ebp 11118d: 89 e5 mov %esp,%ebp 11118f: 57 push %edi 111190: 56 push %esi 111191: 53 push %ebx 111192: 83 ec 1c sub $0x1c,%esp 111195: 8b 5d 0c mov 0xc(%ebp),%ebx 111198: 8a 45 10 mov 0x10(%ebp),%al 11119b: 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 ); 11119e: 9c pushf 11119f: fa cli 1111a0: 8f 45 e4 popl -0x1c(%ebp) if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 1111a3: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx) 1111aa: 74 6c je 111218 <_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; 1111ac: 8b 13 mov (%ebx),%edx previous_node = the_node->previous; 1111ae: 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)); 1111b1: 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; 1111b4: 8d 73 3c lea 0x3c(%ebx),%esi 1111b7: 39 f0 cmp %esi,%eax 1111b9: 74 69 je 111224 <_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; 1111bb: 8b 7b 40 mov 0x40(%ebx),%edi new_second_node = new_first_node->next; 1111be: 8b 30 mov (%eax),%esi previous_node->next = new_first_node; 1111c0: 89 01 mov %eax,(%ecx) next_node->previous = new_first_node; 1111c2: 89 42 04 mov %eax,0x4(%edx) new_first_node->next = next_node; 1111c5: 89 10 mov %edx,(%eax) new_first_node->previous = previous_node; 1111c7: 89 48 04 mov %ecx,0x4(%eax) if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 1111ca: 8b 53 38 mov 0x38(%ebx),%edx 1111cd: 3b 53 40 cmp 0x40(%ebx),%edx 1111d0: 74 11 je 1111e3 <_Thread_queue_Extract_priority_helper+0x57> /* > two threads on 2-n */ new_second_node->previous = 1111d2: 8d 50 38 lea 0x38(%eax),%edx 1111d5: 89 56 04 mov %edx,0x4(%esi) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 1111d8: 89 70 38 mov %esi,0x38(%eax) new_first_thread->Wait.Block2n.last = last_node; 1111db: 89 78 40 mov %edi,0x40(%eax) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 1111de: 83 c0 3c add $0x3c,%eax 1111e1: 89 07 mov %eax,(%edi) /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 1111e3: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp) 1111e7: 75 23 jne 11120c <_Thread_queue_Extract_priority_helper+0x80> _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 1111e9: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 1111ed: 74 3d je 11122c <_Thread_queue_Extract_priority_helper+0xa0> _ISR_Enable( level ); 1111ef: ff 75 e4 pushl -0x1c(%ebp) 1111f2: 9d popf 1111f3: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 1111fa: 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 } 1111fd: 8d 65 f4 lea -0xc(%ebp),%esp 111200: 5b pop %ebx 111201: 5e pop %esi 111202: 5f pop %edi 111203: c9 leave 111204: e9 43 bf ff ff jmp 10d14c <_Thread_Clear_state> 111209: 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 ); 11120c: ff 75 e4 pushl -0x1c(%ebp) 11120f: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 111210: 8d 65 f4 lea -0xc(%ebp),%esp 111213: 5b pop %ebx 111214: 5e pop %esi 111215: 5f pop %edi 111216: c9 leave 111217: 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 ); 111218: ff 75 e4 pushl -0x1c(%ebp) 11121b: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 11121c: 8d 65 f4 lea -0xc(%ebp),%esp 11121f: 5b pop %ebx 111220: 5e pop %esi 111221: 5f pop %edi 111222: c9 leave 111223: 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; 111224: 89 11 mov %edx,(%ecx) next_node->previous = previous_node; 111226: 89 4a 04 mov %ecx,0x4(%edx) 111229: eb b8 jmp 1111e3 <_Thread_queue_Extract_priority_helper+0x57> 11122b: 90 nop <== NOT EXECUTED 11122c: 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 ); 111233: ff 75 e4 pushl -0x1c(%ebp) 111236: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 111237: 83 ec 0c sub $0xc,%esp 11123a: 8d 43 48 lea 0x48(%ebx),%eax 11123d: 50 push %eax 11123e: e8 35 d3 ff ff call 10e578 <_Watchdog_Remove> 111243: 83 c4 10 add $0x10,%esp 111246: eb ab jmp 1111f3 <_Thread_queue_Extract_priority_helper+0x67> 0010dc0c <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 10dc0c: 55 push %ebp 10dc0d: 89 e5 mov %esp,%ebp 10dc0f: 83 ec 08 sub $0x8,%esp 10dc12: 8b 45 08 mov 0x8(%ebp),%eax States_Control state; state = the_thread->current_state; 10dc15: f7 40 10 e0 be 03 00 testl $0x3bee0,0x10(%eax) 10dc1c: 75 06 jne 10dc24 <_Thread_queue_Extract_with_proxy+0x18> 10dc1e: 31 c0 xor %eax,%eax _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; } 10dc20: c9 leave 10dc21: c3 ret 10dc22: 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 ); 10dc24: 83 ec 08 sub $0x8,%esp 10dc27: 50 push %eax 10dc28: ff 70 44 pushl 0x44(%eax) 10dc2b: e8 2c 35 00 00 call 11115c <_Thread_queue_Extract> 10dc30: b0 01 mov $0x1,%al return true; 10dc32: 83 c4 10 add $0x10,%esp } return false; } 10dc35: c9 leave 10dc36: c3 ret 0010fab0 <_Thread_queue_First>: */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { 10fab0: 55 push %ebp 10fab1: 89 e5 mov %esp,%ebp 10fab3: 83 ec 08 sub $0x8,%esp 10fab6: 8b 45 08 mov 0x8(%ebp),%eax Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 10fab9: 83 78 34 01 cmpl $0x1,0x34(%eax) 10fabd: 74 0d je 10facc <_Thread_queue_First+0x1c> 10fabf: ba 04 31 11 00 mov $0x113104,%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 ); 10fac4: 89 45 08 mov %eax,0x8(%ebp) } 10fac7: 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 ); 10fac8: ff e2 jmp *%edx 10faca: 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 ) 10facc: ba d8 fa 10 00 mov $0x10fad8,%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 ); 10fad1: 89 45 08 mov %eax,0x8(%ebp) } 10fad4: 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 ); 10fad5: ff e2 jmp *%edx 00113104 <_Thread_queue_First_fifo>: */ Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { 113104: 55 push %ebp 113105: 89 e5 mov %esp,%ebp 113107: 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)); 11310a: 8b 02 mov (%edx),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 11310c: 83 c2 04 add $0x4,%edx 11310f: 39 d0 cmp %edx,%eax 113111: 74 05 je 113118 <_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; } 113113: c9 leave 113114: c3 ret 113115: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 113118: 31 c0 xor %eax,%eax 11311a: c9 leave 11311b: c3 ret 0010dc38 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) { 10dc38: 55 push %ebp 10dc39: 89 e5 mov %esp,%ebp 10dc3b: 56 push %esi 10dc3c: 53 push %ebx 10dc3d: 8b 5d 08 mov 0x8(%ebp),%ebx 10dc40: 8b 75 10 mov 0x10(%ebp),%esi Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 10dc43: eb 06 jmp 10dc4b <_Thread_queue_Flush+0x13> 10dc45: 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; 10dc48: 89 70 34 mov %esi,0x34(%eax) uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 10dc4b: 83 ec 0c sub $0xc,%esp 10dc4e: 53 push %ebx 10dc4f: e8 94 fc ff ff call 10d8e8 <_Thread_queue_Dequeue> 10dc54: 83 c4 10 add $0x10,%esp 10dc57: 85 c0 test %eax,%eax 10dc59: 75 ed jne 10dc48 <_Thread_queue_Flush+0x10> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } 10dc5b: 8d 65 f8 lea -0x8(%ebp),%esp 10dc5e: 5b pop %ebx 10dc5f: 5e pop %esi 10dc60: c9 leave 10dc61: c3 ret 0010dc64 <_Thread_queue_Initialize>: Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { 10dc64: 55 push %ebp 10dc65: 89 e5 mov %esp,%ebp 10dc67: 8b 45 08 mov 0x8(%ebp),%eax 10dc6a: 8b 55 0c mov 0xc(%ebp),%edx the_thread_queue->state = state; 10dc6d: 8b 4d 10 mov 0x10(%ebp),%ecx 10dc70: 89 48 38 mov %ecx,0x38(%eax) the_thread_queue->discipline = the_discipline; 10dc73: 89 50 34 mov %edx,0x34(%eax) the_thread_queue->timeout_status = timeout_status; 10dc76: 8b 4d 14 mov 0x14(%ebp),%ecx 10dc79: 89 48 3c mov %ecx,0x3c(%eax) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10dc7c: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 10dc83: 4a dec %edx 10dc84: 74 12 je 10dc98 <_Thread_queue_Initialize+0x34> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10dc86: 8d 50 04 lea 0x4(%eax),%edx 10dc89: 89 10 mov %edx,(%eax) the_chain->permanent_null = NULL; 10dc8b: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_chain->last = _Chain_Head(the_chain); 10dc92: 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 ); } } 10dc95: c9 leave 10dc96: c3 ret 10dc97: 90 nop <== NOT EXECUTED * timeout_status - return on a timeout * * Output parameters: NONE */ void _Thread_queue_Initialize( 10dc98: 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); 10dc9b: 8d 50 04 lea 0x4(%eax),%edx 10dc9e: 89 10 mov %edx,(%eax) the_chain->permanent_null = NULL; 10dca0: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_chain->last = _Chain_Head(the_chain); 10dca7: 89 40 08 mov %eax,0x8(%eax) 10dcaa: 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 ; 10dcad: 39 c8 cmp %ecx,%eax 10dcaf: 75 ea jne 10dc9b <_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 ); } } 10dcb1: c9 leave 10dcb2: c3 ret 00111248 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { 111248: 55 push %ebp 111249: 89 e5 mov %esp,%ebp 11124b: 83 ec 08 sub $0x8,%esp 11124e: 8b 45 08 mov 0x8(%ebp),%eax Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 111251: 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 && 111254: 8b 4a 30 mov 0x30(%edx),%ecx 111257: 85 c9 test %ecx,%ecx 111259: 74 08 je 111263 <_Thread_queue_Process_timeout+0x1b> 11125b: 3b 05 d8 77 12 00 cmp 0x1277d8,%eax 111261: 74 19 je 11127c <_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; 111263: 8b 52 3c mov 0x3c(%edx),%edx 111266: 89 50 34 mov %edx,0x34(%eax) _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 111269: 83 ec 08 sub $0x8,%esp 11126c: 50 push %eax 11126d: ff 70 44 pushl 0x44(%eax) 111270: e8 e7 fe ff ff call 11115c <_Thread_queue_Extract> 111275: 83 c4 10 add $0x10,%esp } } 111278: c9 leave 111279: c3 ret 11127a: 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 ) { 11127c: 83 f9 03 cmp $0x3,%ecx 11127f: 74 f7 je 111278 <_Thread_queue_Process_timeout+0x30> the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 111281: 8b 4a 3c mov 0x3c(%edx),%ecx 111284: 89 48 34 mov %ecx,0x34(%eax) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 111287: 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 ); } } 11128e: c9 leave 11128f: c3 ret 0010dcb4 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 10dcb4: 55 push %ebp 10dcb5: 89 e5 mov %esp,%ebp 10dcb7: 57 push %edi 10dcb8: 56 push %esi 10dcb9: 53 push %ebx 10dcba: 83 ec 1c sub $0x1c,%esp 10dcbd: 8b 75 08 mov 0x8(%ebp),%esi 10dcc0: 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 ) 10dcc3: 85 f6 test %esi,%esi 10dcc5: 74 06 je 10dccd <_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 ) { 10dcc7: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10dccb: 74 0b je 10dcd8 <_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 ); } } 10dccd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10dcd0: 5b pop %ebx <== NOT EXECUTED 10dcd1: 5e pop %esi <== NOT EXECUTED 10dcd2: 5f pop %edi <== NOT EXECUTED 10dcd3: c9 leave <== NOT EXECUTED 10dcd4: c3 ret <== NOT EXECUTED 10dcd5: 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 ); 10dcd8: 9c pushf 10dcd9: fa cli 10dcda: 5b pop %ebx if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 10dcdb: f7 47 10 e0 be 03 00 testl $0x3bee0,0x10(%edi) 10dce2: 75 0c jne 10dcf0 <_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 ); 10dce4: 53 push %ebx 10dce5: 9d popf } } 10dce6: 8d 65 f4 lea -0xc(%ebp),%esp 10dce9: 5b pop %ebx 10dcea: 5e pop %esi 10dceb: 5f pop %edi 10dcec: c9 leave 10dced: c3 ret 10dcee: 66 90 xchg %ax,%ax <== NOT EXECUTED 10dcf0: 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 ); 10dcf7: 50 push %eax 10dcf8: 6a 01 push $0x1 10dcfa: 57 push %edi 10dcfb: 56 push %esi 10dcfc: e8 8b 34 00 00 call 11118c <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 10dd01: 83 c4 0c add $0xc,%esp 10dd04: 8d 45 e4 lea -0x1c(%ebp),%eax 10dd07: 50 push %eax 10dd08: 57 push %edi 10dd09: 56 push %esi 10dd0a: e8 8d fd ff ff call 10da9c <_Thread_queue_Enqueue_priority> 10dd0f: 83 c4 10 add $0x10,%esp 10dd12: eb d0 jmp 10dce4 <_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 64 1e 14 00 mov 0x141e64,%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 7e 3c 00 00 call 11c7f0 <_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 8c 1d 14 00 mov 0x141d8c,%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 84 08 00 00 call 119418 <_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 d1 3c 00 00 call 11c888 <_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 bf 3c 00 00 call 11c888 <_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 fa 3b 00 00 call 11c7f0 <_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 67 3b 00 00 call 11c778 <_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 f8 1c 14 00 mov 0x141cf8,%eax 118c6b: 40 inc %eax 118c6c: a3 f8 1c 14 00 mov %eax,0x141cf8 /* * 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 0b 33 00 00 call 11bf88 <_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 ec 28 00 00 call 11b57c <_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 23 3d 00 00 call 11c9c0 <_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 1a 3d 00 00 call 11c9c0 <_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 49 3f 00 00 call 11c9c0 <_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 d8 1d 14 00 push $0x141dd8 118a98: e8 eb 3d 00 00 call 11c888 <_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 f9 3e 00 00 call 11c9c0 <_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 cc 1d 14 00 push $0x141dcc 118ae8: e8 9b 3d 00 00 call 11c888 <_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 19 07 00 00 jmp 1193f4 <_Chain_Append> <== NOT EXECUTED 118cdb: 90 nop <== NOT EXECUTED 118cdc: 8b 15 f8 1c 14 00 mov 0x141cf8,%edx 118ce2: 42 inc %edx 118ce3: 89 15 f8 1c 14 00 mov %edx,0x141cf8 * 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 7a 28 00 00 jmp 11b57c <_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 8c 1d 14 00 mov 0x141d8c,%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 33 3b 00 00 call 11c888 <_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 64 1e 14 00 mov 0x141e64,%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 df 3a 00 00 call 11c888 <_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> 0010fa38 <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 10fa38: 55 push %ebp 10fa39: 89 e5 mov %esp,%ebp 10fa3b: 57 push %edi 10fa3c: 56 push %esi 10fa3d: 53 push %ebx 10fa3e: 83 ec 2c sub $0x2c,%esp 10fa41: 8b 45 08 mov 0x8(%ebp),%eax 10fa44: 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; 10fa47: 8b 10 mov (%eax),%edx 10fa49: 89 55 e0 mov %edx,-0x20(%ebp) left += lhs->tv_nsec; 10fa4c: 8b 78 04 mov 0x4(%eax),%edi right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 10fa4f: b9 00 ca 9a 3b mov $0x3b9aca00,%ecx 10fa54: 8b 03 mov (%ebx),%eax 10fa56: f7 e9 imul %ecx 10fa58: 89 45 d0 mov %eax,-0x30(%ebp) 10fa5b: 89 55 d4 mov %edx,-0x2c(%ebp) right += rhs->tv_nsec; 10fa5e: 8b 5b 04 mov 0x4(%ebx),%ebx 10fa61: 89 de mov %ebx,%esi 10fa63: c1 fe 1f sar $0x1f,%esi 10fa66: 01 5d d0 add %ebx,-0x30(%ebp) 10fa69: 11 75 d4 adc %esi,-0x2c(%ebp) if ( right == 0 ) { 10fa6c: 8b 55 d4 mov -0x2c(%ebp),%edx 10fa6f: 0b 55 d0 or -0x30(%ebp),%edx 10fa72: 74 7c je 10faf0 <_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; 10fa74: 8b 45 e0 mov -0x20(%ebp),%eax 10fa77: f7 e9 imul %ecx 10fa79: 89 45 e0 mov %eax,-0x20(%ebp) 10fa7c: 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; 10fa7f: 89 fb mov %edi,%ebx 10fa81: c1 fb 1f sar $0x1f,%ebx 10fa84: 01 7d e0 add %edi,-0x20(%ebp) 10fa87: 11 5d e4 adc %ebx,-0x1c(%ebp) 10fa8a: 69 5d e4 a0 86 01 00 imul $0x186a0,-0x1c(%ebp),%ebx 10fa91: b9 a0 86 01 00 mov $0x186a0,%ecx 10fa96: 8b 45 e0 mov -0x20(%ebp),%eax 10fa99: f7 e1 mul %ecx 10fa9b: 89 45 e0 mov %eax,-0x20(%ebp) 10fa9e: 01 da add %ebx,%edx 10faa0: 89 55 e4 mov %edx,-0x1c(%ebp) 10faa3: ff 75 d4 pushl -0x2c(%ebp) 10faa6: ff 75 d0 pushl -0x30(%ebp) 10faa9: ff 75 e4 pushl -0x1c(%ebp) 10faac: ff 75 e0 pushl -0x20(%ebp) 10faaf: e8 38 0f 01 00 call 1209ec <__udivdi3> 10fab4: 83 c4 10 add $0x10,%esp 10fab7: 89 c3 mov %eax,%ebx 10fab9: 89 d6 mov %edx,%esi *ival_percentage = answer / 1000; 10fabb: 6a 00 push $0x0 10fabd: 68 e8 03 00 00 push $0x3e8 10fac2: 52 push %edx 10fac3: 50 push %eax 10fac4: e8 23 0f 01 00 call 1209ec <__udivdi3> 10fac9: 83 c4 10 add $0x10,%esp 10facc: 8b 55 10 mov 0x10(%ebp),%edx 10facf: 89 02 mov %eax,(%edx) *fval_percentage = answer % 1000; 10fad1: 6a 00 push $0x0 10fad3: 68 e8 03 00 00 push $0x3e8 10fad8: 56 push %esi 10fad9: 53 push %ebx 10fada: e8 1d 10 01 00 call 120afc <__umoddi3> 10fadf: 83 c4 10 add $0x10,%esp 10fae2: 8b 55 14 mov 0x14(%ebp),%edx 10fae5: 89 02 mov %eax,(%edx) } 10fae7: 8d 65 f4 lea -0xc(%ebp),%esp 10faea: 5b pop %ebx 10faeb: 5e pop %esi 10faec: 5f pop %edi 10faed: c9 leave 10faee: c3 ret 10faef: 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; 10faf0: 8b 45 10 mov 0x10(%ebp),%eax 10faf3: c7 00 00 00 00 00 movl $0x0,(%eax) *fval_percentage = 0; 10faf9: 8b 55 14 mov 0x14(%ebp),%edx 10fafc: c7 02 00 00 00 00 movl $0x0,(%edx) answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } 10fb02: 8d 65 f4 lea -0xc(%ebp),%esp 10fb05: 5b pop %ebx 10fb06: 5e pop %esi 10fb07: 5f pop %edi 10fb08: c9 leave 10fb09: c3 ret 001293bc <_Timespec_Is_valid>: #include bool _Timespec_Is_valid( const struct timespec *time ) { 1293bc: 55 push %ebp 1293bd: 89 e5 mov %esp,%ebp 1293bf: 8b 45 08 mov 0x8(%ebp),%eax if ( !time ) 1293c2: 85 c0 test %eax,%eax 1293c4: 74 1a je 1293e0 <_Timespec_Is_valid+0x24> return false; if ( time->tv_sec < 0 ) 1293c6: 8b 10 mov (%eax),%edx 1293c8: 85 d2 test %edx,%edx 1293ca: 78 14 js 1293e0 <_Timespec_Is_valid+0x24> return false; if ( time->tv_nsec < 0 ) 1293cc: 8b 40 04 mov 0x4(%eax),%eax 1293cf: 85 c0 test %eax,%eax 1293d1: 78 0d js 1293e0 <_Timespec_Is_valid+0x24> #include #include #include bool _Timespec_Is_valid( 1293d3: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax 1293d8: 0f 96 c0 setbe %al if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 1293db: c9 leave 1293dc: c3 ret 1293dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #include #include #include bool _Timespec_Is_valid( 1293e0: 31 c0 xor %eax,%eax if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 1293e2: c9 leave 1293e3: c3 ret 001114bc <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 1114bc: 55 push %ebp 1114bd: 89 e5 mov %esp,%ebp 1114bf: 56 push %esi 1114c0: 53 push %ebx 1114c1: 8b 5d 08 mov 0x8(%ebp),%ebx uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 1114c4: 8b 33 mov (%ebx),%esi 1114c6: 85 f6 test %esi,%esi 1114c8: 75 07 jne 1114d1 <_Timespec_To_ticks+0x15> 1114ca: 8b 43 04 mov 0x4(%ebx),%eax 1114cd: 85 c0 test %eax,%eax 1114cf: 74 37 je 111508 <_Timespec_To_ticks+0x4c> return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 1114d1: e8 96 18 00 00 call 112d6c 1114d6: 89 c1 mov %eax,%ecx 1114d8: 0f af ce imul %esi,%ecx ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); 1114db: a1 4c 35 12 00 mov 0x12354c,%eax 1114e0: 8d 04 80 lea (%eax,%eax,4),%eax 1114e3: 8d 04 80 lea (%eax,%eax,4),%eax 1114e6: 8d 34 80 lea (%eax,%eax,4),%esi 1114e9: c1 e6 03 shl $0x3,%esi 1114ec: 8b 43 04 mov 0x4(%ebx),%eax 1114ef: 31 d2 xor %edx,%edx 1114f1: f7 f6 div %esi if (ticks) 1114f3: 01 c8 add %ecx,%eax 1114f5: 74 05 je 1114fc <_Timespec_To_ticks+0x40> return ticks; return 1; } 1114f7: 5b pop %ebx 1114f8: 5e pop %esi 1114f9: c9 leave 1114fa: c3 ret 1114fb: 90 nop <== NOT EXECUTED ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); if (ticks) 1114fc: b8 01 00 00 00 mov $0x1,%eax return ticks; return 1; } 111501: 5b pop %ebx 111502: 5e pop %esi 111503: c9 leave 111504: c3 ret 111505: 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) ) 111508: 31 c0 xor %eax,%eax if (ticks) return ticks; return 1; } 11150a: 5b pop %ebx 11150b: 5e pop %esi 11150c: c9 leave 11150d: c3 ret 00113018 <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 113018: 55 push %ebp 113019: 89 e5 mov %esp,%ebp 11301b: 53 push %ebx 11301c: 83 ec 10 sub $0x10,%esp 11301f: 8b 5d 08 mov 0x8(%ebp),%ebx _Chain_Extract( &the_extension->Node ); 113022: 53 push %ebx 113023: e8 2c 50 00 00 call 118054 <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 113028: 83 c4 10 add $0x10,%esp 11302b: 8b 43 24 mov 0x24(%ebx),%eax 11302e: 85 c0 test %eax,%eax 113030: 74 12 je 113044 <_User_extensions_Remove_set+0x2c> _Chain_Extract( &the_extension->Switch.Node ); 113032: 83 c3 08 add $0x8,%ebx 113035: 89 5d 08 mov %ebx,0x8(%ebp) } 113038: 8b 5d fc mov -0x4(%ebp),%ebx 11303b: c9 leave /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node ); 11303c: e9 13 50 00 00 jmp 118054 <_Chain_Extract> 113041: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } 113044: 8b 5d fc mov -0x4(%ebp),%ebx 113047: c9 leave 113048: c3 ret 0010fe18 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 10fe18: 55 push %ebp 10fe19: 89 e5 mov %esp,%ebp 10fe1b: 57 push %edi 10fe1c: 56 push %esi 10fe1d: 53 push %ebx 10fe1e: 83 ec 1c sub $0x1c,%esp 10fe21: 8b 75 08 mov 0x8(%ebp),%esi 10fe24: 8b 4d 0c mov 0xc(%ebp),%ecx 10fe27: 8b 5d 10 mov 0x10(%ebp),%ebx ISR_Level level; _ISR_Disable( level ); 10fe2a: 9c pushf 10fe2b: fa cli 10fe2c: 58 pop %eax */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10fe2d: 8b 16 mov (%esi),%edx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10fe2f: 8d 7e 04 lea 0x4(%esi),%edi 10fe32: 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 ) ) { 10fe35: 39 fa cmp %edi,%edx 10fe37: 74 3d je 10fe76 <_Watchdog_Adjust+0x5e> switch ( direction ) { 10fe39: 85 c9 test %ecx,%ecx 10fe3b: 75 43 jne 10fe80 <_Watchdog_Adjust+0x68> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 10fe3d: 85 db test %ebx,%ebx 10fe3f: 74 35 je 10fe76 <_Watchdog_Adjust+0x5e> if ( units < _Watchdog_First( header )->delta_interval ) { 10fe41: 8b 7a 10 mov 0x10(%edx),%edi 10fe44: 39 fb cmp %edi,%ebx 10fe46: 73 0f jae 10fe57 <_Watchdog_Adjust+0x3f> 10fe48: eb 3e jmp 10fe88 <_Watchdog_Adjust+0x70> <== NOT EXECUTED 10fe4a: 66 90 xchg %ax,%ax <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 10fe4c: 29 fb sub %edi,%ebx 10fe4e: 74 26 je 10fe76 <_Watchdog_Adjust+0x5e> if ( units < _Watchdog_First( header )->delta_interval ) { 10fe50: 8b 7a 10 mov 0x10(%edx),%edi 10fe53: 39 df cmp %ebx,%edi 10fe55: 77 31 ja 10fe88 <_Watchdog_Adjust+0x70> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 10fe57: c7 42 10 01 00 00 00 movl $0x1,0x10(%edx) _ISR_Enable( level ); 10fe5e: 50 push %eax 10fe5f: 9d popf _Watchdog_Tickle( header ); 10fe60: 83 ec 0c sub $0xc,%esp 10fe63: 56 push %esi 10fe64: e8 cb 01 00 00 call 110034 <_Watchdog_Tickle> _ISR_Disable( level ); 10fe69: 9c pushf 10fe6a: fa cli 10fe6b: 58 pop %eax */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10fe6c: 8b 16 mov (%esi),%edx if ( _Chain_Is_empty( header ) ) 10fe6e: 83 c4 10 add $0x10,%esp 10fe71: 39 55 e4 cmp %edx,-0x1c(%ebp) 10fe74: 75 d6 jne 10fe4c <_Watchdog_Adjust+0x34> } break; } } _ISR_Enable( level ); 10fe76: 50 push %eax 10fe77: 9d popf } 10fe78: 8d 65 f4 lea -0xc(%ebp),%esp 10fe7b: 5b pop %ebx 10fe7c: 5e pop %esi 10fe7d: 5f pop %edi 10fe7e: c9 leave 10fe7f: c3 ret * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 10fe80: 49 dec %ecx 10fe81: 75 f3 jne 10fe76 <_Watchdog_Adjust+0x5e> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 10fe83: 01 5a 10 add %ebx,0x10(%edx) break; 10fe86: eb ee jmp 10fe76 <_Watchdog_Adjust+0x5e> case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 10fe88: 29 df sub %ebx,%edi 10fe8a: 89 7a 10 mov %edi,0x10(%edx) break; 10fe8d: eb e7 jmp 10fe76 <_Watchdog_Adjust+0x5e> 0011c7f0 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 11c7f0: 55 push %ebp 11c7f1: 89 e5 mov %esp,%ebp 11c7f3: 57 push %edi 11c7f4: 56 push %esi 11c7f5: 53 push %ebx 11c7f6: 83 ec 0c sub $0xc,%esp 11c7f9: 8b 75 08 mov 0x8(%ebp),%esi 11c7fc: 8b 55 0c mov 0xc(%ebp),%edx 11c7ff: 8b 5d 10 mov 0x10(%ebp),%ebx Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { 11c802: 85 d2 test %edx,%edx 11c804: 74 63 je 11c869 <_Watchdog_Adjust_to_chain+0x79> return; } _ISR_Disable( level ); 11c806: 9c pushf 11c807: fa cli 11c808: 8f 45 ec popl -0x14(%ebp) 11c80b: 8b 06 mov (%esi),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 11c80d: 8d 4e 04 lea 0x4(%esi),%ecx 11c810: 89 4d f0 mov %ecx,-0x10(%ebp) 11c813: 8d 7b 04 lea 0x4(%ebx),%edi 11c816: 89 55 e8 mov %edx,-0x18(%ebp) 11c819: 8d 76 00 lea 0x0(%esi),%esi while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { 11c81c: 39 45 f0 cmp %eax,-0x10(%ebp) 11c81f: 74 44 je 11c865 <_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 ) { 11c821: 8b 50 10 mov 0x10(%eax),%edx 11c824: 3b 55 e8 cmp -0x18(%ebp),%edx 11c827: 77 57 ja 11c880 <_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; 11c829: 29 55 e8 sub %edx,-0x18(%ebp) first->delta_interval = 0; 11c82c: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 11c833: 90 nop ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 11c834: 8b 08 mov (%eax),%ecx previous = the_node->previous; 11c836: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 11c839: 89 51 04 mov %edx,0x4(%ecx) previous->next = next; 11c83c: 89 0a mov %ecx,(%edx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 11c83e: 89 38 mov %edi,(%eax) old_last_node = the_chain->last; 11c840: 8b 53 08 mov 0x8(%ebx),%edx the_chain->last = the_node; 11c843: 89 43 08 mov %eax,0x8(%ebx) old_last_node->next = the_node; 11c846: 89 02 mov %eax,(%edx) the_node->previous = old_last_node; 11c848: 89 50 04 mov %edx,0x4(%eax) while ( 1 ) { _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); 11c84b: ff 75 ec pushl -0x14(%ebp) 11c84e: 9d popf 11c84f: fa cli */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 11c850: 8b 06 mov (%esi),%eax if ( _Chain_Is_empty( header ) ) 11c852: 39 45 f0 cmp %eax,-0x10(%ebp) 11c855: 74 1d je 11c874 <_Watchdog_Adjust_to_chain+0x84> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) 11c857: 8b 50 10 mov 0x10(%eax),%edx 11c85a: 85 d2 test %edx,%edx 11c85c: 74 d6 je 11c834 <_Watchdog_Adjust_to_chain+0x44> } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 11c85e: 8b 4d e8 mov -0x18(%ebp),%ecx 11c861: 85 c9 test %ecx,%ecx 11c863: 75 b7 jne 11c81c <_Watchdog_Adjust_to_chain+0x2c> if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level ); 11c865: ff 75 ec pushl -0x14(%ebp) 11c868: 9d popf } 11c869: 83 c4 0c add $0xc,%esp 11c86c: 5b pop %ebx 11c86d: 5e pop %esi 11c86e: 5f pop %edi 11c86f: c9 leave 11c870: c3 ret 11c871: 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; 11c874: 8b 45 f0 mov -0x10(%ebp),%eax } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 11c877: 8b 4d e8 mov -0x18(%ebp),%ecx 11c87a: 85 c9 test %ecx,%ecx 11c87c: 75 9e jne 11c81c <_Watchdog_Adjust_to_chain+0x2c> 11c87e: eb e5 jmp 11c865 <_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; 11c880: 2b 55 e8 sub -0x18(%ebp),%edx 11c883: 89 50 10 mov %edx,0x10(%eax) break; 11c886: eb dd jmp 11c865 <_Watchdog_Adjust_to_chain+0x75> 0010e440 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 10e440: 55 push %ebp 10e441: 89 e5 mov %esp,%ebp 10e443: 57 push %edi 10e444: 56 push %esi 10e445: 53 push %ebx 10e446: 83 ec 04 sub $0x4,%esp 10e449: 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; 10e44c: 8b 3d b4 77 12 00 mov 0x1277b4,%edi _ISR_Disable( level ); 10e452: 9c pushf 10e453: fa cli 10e454: 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 ) { 10e457: 8b 43 08 mov 0x8(%ebx),%eax 10e45a: 85 c0 test %eax,%eax 10e45c: 0f 85 9e 00 00 00 jne 10e500 <_Watchdog_Insert+0xc0> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 10e462: c7 43 08 01 00 00 00 movl $0x1,0x8(%ebx) _Watchdog_Sync_count++; 10e469: a1 80 78 12 00 mov 0x127880,%eax 10e46e: 40 inc %eax 10e46f: a3 80 78 12 00 mov %eax,0x127880 restart: delta_interval = the_watchdog->initial; 10e474: 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 ; 10e477: 8b 4d 08 mov 0x8(%ebp),%ecx 10e47a: 8b 11 mov (%ecx),%edx ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 10e47c: 85 c0 test %eax,%eax 10e47e: 74 5d je 10e4dd <_Watchdog_Insert+0x9d> 10e480: 8b 32 mov (%edx),%esi 10e482: 85 f6 test %esi,%esi 10e484: 74 57 je 10e4dd <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) { 10e486: 8b 4a 10 mov 0x10(%edx),%ecx 10e489: 39 c8 cmp %ecx,%eax 10e48b: 73 22 jae 10e4af <_Watchdog_Insert+0x6f> 10e48d: eb 49 jmp 10e4d8 <_Watchdog_Insert+0x98> 10e48f: 90 nop <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 10e490: 8b 35 d4 77 12 00 mov 0x1277d4,%esi 10e496: 39 f7 cmp %esi,%edi 10e498: 72 72 jb 10e50c <_Watchdog_Insert+0xcc> if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 10e49a: 29 c8 sub %ecx,%eax RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 10e49c: 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 ) ) 10e49e: 85 c0 test %eax,%eax 10e4a0: 74 3b je 10e4dd <_Watchdog_Insert+0x9d> 10e4a2: 8b 0a mov (%edx),%ecx 10e4a4: 85 c9 test %ecx,%ecx 10e4a6: 74 35 je 10e4dd <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) { 10e4a8: 8b 4a 10 mov 0x10(%edx),%ecx 10e4ab: 39 c1 cmp %eax,%ecx 10e4ad: 77 29 ja 10e4d8 <_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 ); 10e4af: ff 75 f0 pushl -0x10(%ebp) 10e4b2: 9d popf 10e4b3: fa cli if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 10e4b4: 83 7b 08 01 cmpl $0x1,0x8(%ebx) 10e4b8: 74 d6 je 10e490 <_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; 10e4ba: 89 3d d4 77 12 00 mov %edi,0x1277d4 _Watchdog_Sync_count--; 10e4c0: a1 80 78 12 00 mov 0x127880,%eax 10e4c5: 48 dec %eax 10e4c6: a3 80 78 12 00 mov %eax,0x127880 _ISR_Enable( level ); 10e4cb: ff 75 f0 pushl -0x10(%ebp) 10e4ce: 9d popf } 10e4cf: 58 pop %eax 10e4d0: 5b pop %ebx 10e4d1: 5e pop %esi 10e4d2: 5f pop %edi 10e4d3: c9 leave 10e4d4: c3 ret 10e4d5: 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; 10e4d8: 29 c1 sub %eax,%ecx 10e4da: 89 4a 10 mov %ecx,0x10(%edx) RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 10e4dd: c7 43 08 02 00 00 00 movl $0x2,0x8(%ebx) } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 10e4e4: 89 43 10 mov %eax,0x10(%ebx) _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 10e4e7: 8b 42 04 mov 0x4(%edx),%eax Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 10e4ea: 89 43 04 mov %eax,0x4(%ebx) before_node = after_node->next; 10e4ed: 8b 10 mov (%eax),%edx after_node->next = the_node; 10e4ef: 89 18 mov %ebx,(%eax) the_node->next = before_node; 10e4f1: 89 13 mov %edx,(%ebx) before_node->previous = the_node; 10e4f3: 89 5a 04 mov %ebx,0x4(%edx) the_watchdog->start_time = _Watchdog_Ticks_since_boot; 10e4f6: a1 84 78 12 00 mov 0x127884,%eax 10e4fb: 89 43 14 mov %eax,0x14(%ebx) 10e4fe: eb ba jmp 10e4ba <_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 ); 10e500: ff 75 f0 pushl -0x10(%ebp) 10e503: 9d popf exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 10e504: 58 pop %eax 10e505: 5b pop %ebx 10e506: 5e pop %esi 10e507: 5f pop %edi 10e508: c9 leave 10e509: c3 ret 10e50a: 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; 10e50c: 89 3d d4 77 12 00 mov %edi,0x1277d4 goto restart; 10e512: e9 5d ff ff ff jmp 10e474 <_Watchdog_Insert+0x34> 0010e578 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 10e578: 55 push %ebp 10e579: 89 e5 mov %esp,%ebp 10e57b: 56 push %esi 10e57c: 53 push %ebx 10e57d: 8b 55 08 mov 0x8(%ebp),%edx ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 10e580: 9c pushf 10e581: fa cli 10e582: 59 pop %ecx previous_state = the_watchdog->state; 10e583: 8b 42 08 mov 0x8(%edx),%eax switch ( previous_state ) { 10e586: 83 f8 01 cmp $0x1,%eax 10e589: 74 4d je 10e5d8 <_Watchdog_Remove+0x60> 10e58b: 73 0f jae 10e59c <_Watchdog_Remove+0x24> _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 10e58d: 8b 1d 84 78 12 00 mov 0x127884,%ebx 10e593: 89 5a 18 mov %ebx,0x18(%edx) _ISR_Enable( level ); 10e596: 51 push %ecx 10e597: 9d popf return( previous_state ); } 10e598: 5b pop %ebx 10e599: 5e pop %esi 10e59a: c9 leave 10e59b: c3 ret Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 10e59c: 83 f8 03 cmp $0x3,%eax 10e59f: 77 ec ja 10e58d <_Watchdog_Remove+0x15> break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 10e5a1: 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 ); 10e5a8: 8b 1a mov (%edx),%ebx next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 10e5aa: 8b 33 mov (%ebx),%esi 10e5ac: 85 f6 test %esi,%esi 10e5ae: 74 06 je 10e5b6 <_Watchdog_Remove+0x3e> next_watchdog->delta_interval += the_watchdog->delta_interval; 10e5b0: 8b 72 10 mov 0x10(%edx),%esi 10e5b3: 01 73 10 add %esi,0x10(%ebx) if ( _Watchdog_Sync_count ) 10e5b6: 8b 35 80 78 12 00 mov 0x127880,%esi 10e5bc: 85 f6 test %esi,%esi 10e5be: 74 0c je 10e5cc <_Watchdog_Remove+0x54> _Watchdog_Sync_level = _ISR_Nest_level; 10e5c0: 8b 35 b4 77 12 00 mov 0x1277b4,%esi 10e5c6: 89 35 d4 77 12 00 mov %esi,0x1277d4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 10e5cc: 8b 72 04 mov 0x4(%edx),%esi next->previous = previous; 10e5cf: 89 73 04 mov %esi,0x4(%ebx) previous->next = next; 10e5d2: 89 1e mov %ebx,(%esi) 10e5d4: eb b7 jmp 10e58d <_Watchdog_Remove+0x15> 10e5d6: 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; 10e5d8: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx) break; 10e5df: eb ac jmp 10e58d <_Watchdog_Remove+0x15> 0010fa0c <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { 10fa0c: 55 push %ebp 10fa0d: 89 e5 mov %esp,%ebp 10fa0f: 57 push %edi 10fa10: 56 push %esi 10fa11: 53 push %ebx 10fa12: 83 ec 2c sub $0x2c,%esp 10fa15: 8b 55 08 mov 0x8(%ebp),%edx 10fa18: 8b 45 0c mov 0xc(%ebp),%eax printk( 10fa1b: 8b 78 24 mov 0x24(%eax),%edi 10fa1e: 8b 70 20 mov 0x20(%eax),%esi 10fa21: 8b 58 1c mov 0x1c(%eax),%ebx 10fa24: 8b 48 0c mov 0xc(%eax),%ecx 10fa27: 89 4d d4 mov %ecx,-0x2c(%ebp) 10fa2a: 8b 48 10 mov 0x10(%eax),%ecx 10fa2d: 89 4d e0 mov %ecx,-0x20(%ebp) 10fa30: 85 d2 test %edx,%edx 10fa32: 74 2c je 10fa60 <_Watchdog_Report+0x54> 10fa34: b9 e3 2a 12 00 mov $0x122ae3,%ecx 10fa39: 83 ec 0c sub $0xc,%esp 10fa3c: 57 push %edi 10fa3d: 56 push %esi 10fa3e: 53 push %ebx 10fa3f: 50 push %eax 10fa40: ff 75 d4 pushl -0x2c(%ebp) 10fa43: ff 75 e0 pushl -0x20(%ebp) 10fa46: 51 push %ecx 10fa47: 52 push %edx 10fa48: 68 66 34 12 00 push $0x123466 10fa4d: e8 82 9e ff ff call 1098d4 10fa52: 83 c4 30 add $0x30,%esp watch, watch->routine, watch->id, watch->user_data ); } 10fa55: 8d 65 f4 lea -0xc(%ebp),%esp 10fa58: 5b pop %ebx 10fa59: 5e pop %esi 10fa5a: 5f pop %edi 10fa5b: c9 leave 10fa5c: c3 ret 10fa5d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( 10fa60: b9 c5 32 12 00 mov $0x1232c5,%ecx 10fa65: 89 ca mov %ecx,%edx 10fa67: eb d0 jmp 10fa39 <_Watchdog_Report+0x2d> 0010e6b0 <_Workspace_Handler_initialization>: /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { 10e6b0: 55 push %ebp 10e6b1: 89 e5 mov %esp,%ebp 10e6b3: 57 push %edi 10e6b4: 53 push %ebx uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; 10e6b5: 8b 1d 40 35 12 00 mov 0x123540,%ebx uintptr_t size = Configuration.work_space_size; 10e6bb: 8b 15 44 35 12 00 mov 0x123544,%edx if ( Configuration.do_zero_of_workspace ) 10e6c1: 80 3d 68 35 12 00 00 cmpb $0x0,0x123568 10e6c8: 75 1e jne 10e6e8 <_Workspace_Handler_initialization+0x38> memset( starting_address, 0, size ); memory_available = _Heap_Initialize( 10e6ca: 6a 04 push $0x4 10e6cc: 52 push %edx 10e6cd: 53 push %ebx 10e6ce: 68 40 77 12 00 push $0x127740 10e6d3: e8 3c dd ff ff call 10c414 <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 10e6d8: 83 c4 10 add $0x10,%esp 10e6db: 85 c0 test %eax,%eax 10e6dd: 74 13 je 10e6f2 <_Workspace_Handler_initialization+0x42> _Internal_error_Occurred( INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_TOO_LITTLE_WORKSPACE ); } 10e6df: 8d 65 f8 lea -0x8(%ebp),%esp 10e6e2: 5b pop %ebx 10e6e3: 5f pop %edi 10e6e4: c9 leave 10e6e5: c3 ret 10e6e6: 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 ); 10e6e8: 31 c0 xor %eax,%eax 10e6ea: 89 df mov %ebx,%edi 10e6ec: 89 d1 mov %edx,%ecx 10e6ee: f3 aa rep stos %al,%es:(%edi) 10e6f0: eb d8 jmp 10e6ca <_Workspace_Handler_initialization+0x1a> size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred( 10e6f2: 52 push %edx 10e6f3: 6a 03 push $0x3 10e6f5: 6a 01 push $0x1 10e6f7: 6a 00 push $0x0 10e6f9: e8 3a e0 ff ff call 10c738 <_Internal_error_Occurred> 0011ed40 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 11ed40: 55 push %ebp 11ed41: 89 e5 mov %esp,%ebp 11ed43: 83 ec 08 sub $0x8,%esp 11ed46: e8 b2 06 00 00 call 11f3fd <_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(); 11ed4b: e8 88 ff ff ff call 11ecd8 rtems_shutdown_executive(status); 11ed50: 83 ec 0c sub $0xc,%esp 11ed53: ff 75 08 pushl 0x8(%ebp) 11ed56: e8 fd 00 00 00 call 11ee58 11ed5b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11ed5e: eb fe jmp 11ed5e <_exit+0x1e> <== NOT EXECUTED 0013ced0 <_fcntl_r>: struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg ) { 13ced0: 55 push %ebp <== NOT EXECUTED 13ced1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13ced3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 13ced6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 13ced9: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED return fcntl( fd, cmd, arg ); 13cedc: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED 13cedf: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED 13cee2: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 13cee5: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 13cee8: c9 leave <== NOT EXECUTED int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 13cee9: e9 4a fe ff ff jmp 13cd38 <== NOT EXECUTED 001123b0 <_getpid_r>: #include pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { 1123b0: 55 push %ebp <== NOT EXECUTED 1123b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED return getpid(); } 1123b3: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 1123b8: c9 leave <== NOT EXECUTED 1123b9: c3 ret <== NOT EXECUTED 0010fb24 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { 10fb24: 55 push %ebp <== NOT EXECUTED 10fb25: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10fb27: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED return gettimeofday( tp, tzp ); } 10fb2a: c9 leave <== NOT EXECUTED int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 10fb2b: e9 90 ff ff ff jmp 10fac0 <== NOT EXECUTED 0012c44c <_link_r>: int _link_r( struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { 12c44c: 55 push %ebp <== NOT EXECUTED 12c44d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c44f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c452: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return link( existing, new ); 12c455: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12c458: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12c45b: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12c45e: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 12c45f: e9 e8 fd ff ff jmp 12c24c <== NOT EXECUTED 0012c668 <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 12c668: 55 push %ebp <== NOT EXECUTED 12c669: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c66b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c66e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return _STAT_NAME( path, buf ); 12c671: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12c674: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12c677: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12c67a: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 12c67b: e9 18 ff ff ff jmp 12c598 <== NOT EXECUTED 0011ee20 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { 11ee20: 55 push %ebp <== NOT EXECUTED 11ee21: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11ee23: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11ee26: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return realloc( ptr, size ); 11ee29: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 11ee2c: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 11ee2f: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 11ee32: c9 leave <== NOT EXECUTED struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 11ee33: e9 48 00 00 00 jmp 11ee80 <== NOT EXECUTED 0015882c <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 15882c: 55 push %ebp <== NOT EXECUTED 15882d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 15882f: 57 push %edi <== NOT EXECUTED 158830: 56 push %esi <== NOT EXECUTED 158831: 53 push %ebx <== NOT EXECUTED 158832: 83 ec 68 sub $0x68,%esp <== NOT EXECUTED 158835: 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 ); 158838: 52 push %edx <== NOT EXECUTED 158839: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 15883c: e8 47 44 fb ff call 10cc88 <== NOT EXECUTED 158841: 89 c3 mov %eax,%ebx <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 158843: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 158846: 85 c0 test %eax,%eax <== NOT EXECUTED 158848: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 15884b: 0f 85 fb 02 00 00 jne 158b4c <_rename_r+0x320> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 158851: 8a 02 mov (%edx),%al <== NOT EXECUTED 158853: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 158855: 74 0c je 158863 <_rename_r+0x37> <== NOT EXECUTED 158857: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 158859: 74 08 je 158863 <_rename_r+0x37> <== NOT EXECUTED 15885b: 84 c0 test %al,%al <== NOT EXECUTED 15885d: 0f 85 75 01 00 00 jne 1589d8 <_rename_r+0x1ac> <== NOT EXECUTED 158863: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 158866: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 158869: 8b 35 84 92 16 00 mov 0x169284,%esi <== NOT EXECUTED 15886f: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 158872: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 158877: 89 c7 mov %eax,%edi <== NOT EXECUTED 158879: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 15887b: 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; 15887f: 8d 7d d0 lea -0x30(%ebp),%edi <== NOT EXECUTED 158882: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 158887: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED 15888a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED name = old + old_parent_pathlen; 15888c: 8d 1c 1a lea (%edx,%ebx,1),%ebx <== NOT EXECUTED 15888f: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 158892: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 158897: 89 f1 mov %esi,%ecx <== NOT EXECUTED 158899: 89 df mov %ebx,%edi <== NOT EXECUTED 15889b: 31 c0 xor %eax,%eax <== NOT EXECUTED 15889d: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 15889f: f7 d1 not %ecx <== NOT EXECUTED 1588a1: 49 dec %ecx <== NOT EXECUTED 1588a2: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1588a5: 51 push %ecx <== NOT EXECUTED 1588a6: 53 push %ebx <== NOT EXECUTED 1588a7: e8 a0 43 fb ff call 10cc4c <== NOT EXECUTED 1588ac: 01 c3 add %eax,%ebx <== NOT EXECUTED 1588ae: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 1588b1: 89 f1 mov %esi,%ecx <== NOT EXECUTED 1588b3: 89 df mov %ebx,%edi <== NOT EXECUTED 1588b5: 31 c0 xor %eax,%eax <== NOT EXECUTED 1588b7: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 1588b9: 89 ce mov %ecx,%esi <== NOT EXECUTED 1588bb: f7 d6 not %esi <== NOT EXECUTED 1588bd: 4e dec %esi <== NOT EXECUTED 1588be: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED 1588c5: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED 1588c8: 50 push %eax <== NOT EXECUTED 1588c9: 6a 00 push $0x0 <== NOT EXECUTED 1588cb: 56 push %esi <== NOT EXECUTED 1588cc: 53 push %ebx <== NOT EXECUTED 1588cd: e8 06 44 fb ff call 10ccd8 <== NOT EXECUTED 1588d2: 89 c3 mov %eax,%ebx <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 1588d4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 1588d7: 85 c0 test %eax,%eax <== NOT EXECUTED 1588d9: 0f 85 89 01 00 00 jne 158a68 <_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 ); 1588df: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 1588e2: 8a 02 mov (%edx),%al <== NOT EXECUTED 1588e4: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 1588e6: 74 24 je 15890c <_rename_r+0xe0> <== NOT EXECUTED 1588e8: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 1588ea: 74 20 je 15890c <_rename_r+0xe0> <== NOT EXECUTED 1588ec: 84 c0 test %al,%al <== NOT EXECUTED 1588ee: 74 1c je 15890c <_rename_r+0xe0> <== NOT EXECUTED 1588f0: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 1588f3: 8b 35 84 92 16 00 mov 0x169284,%esi <== NOT EXECUTED 1588f9: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 1588fc: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 158901: 89 df mov %ebx,%edi <== NOT EXECUTED 158903: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 158905: 31 d2 xor %edx,%edx <== NOT EXECUTED 158907: eb 1d jmp 158926 <_rename_r+0xfa> <== NOT EXECUTED 158909: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 15890c: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 15890f: 8b 35 84 92 16 00 mov 0x169284,%esi <== NOT EXECUTED 158915: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 158918: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 15891d: 89 df mov %ebx,%edi <== NOT EXECUTED 15891f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 158921: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 158926: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 158929: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED 15892c: 85 c0 test %eax,%eax <== NOT EXECUTED 15892e: 0f 84 c8 01 00 00 je 158afc <_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 ); 158934: 51 push %ecx <== NOT EXECUTED 158935: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED 158938: 51 push %ecx <== NOT EXECUTED 158939: 53 push %ebx <== NOT EXECUTED 15893a: 03 55 10 add 0x10(%ebp),%edx <== NOT EXECUTED 15893d: 52 push %edx <== NOT EXECUTED 15893e: ff d0 call *%eax <== NOT EXECUTED 158940: 89 c6 mov %eax,%esi <== NOT EXECUTED if ( result != 0 ) { 158942: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 158945: 85 c0 test %eax,%eax <== NOT EXECUTED 158947: 0f 85 4b 01 00 00 jne 158a98 <_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 ) { 15894d: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 158950: 3b 45 b8 cmp -0x48(%ebp),%eax <== NOT EXECUTED 158953: 0f 85 a3 00 00 00 jne 1589fc <_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 ) { 158959: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED 15895c: 8b 42 40 mov 0x40(%edx),%eax <== NOT EXECUTED 15895f: 85 c0 test %eax,%eax <== NOT EXECUTED 158961: 0f 84 15 02 00 00 je 158b7c <_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 ); 158967: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 15896a: 53 push %ebx <== NOT EXECUTED 15896b: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 15896e: 51 push %ecx <== NOT EXECUTED 15896f: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 158972: ff d0 call *%eax <== NOT EXECUTED 158974: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 158976: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 158979: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 15897c: 85 c0 test %eax,%eax <== NOT EXECUTED 15897e: 74 10 je 158990 <_rename_r+0x164> <== NOT EXECUTED 158980: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158983: 85 c0 test %eax,%eax <== NOT EXECUTED 158985: 74 09 je 158990 <_rename_r+0x164> <== NOT EXECUTED 158987: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15898a: 53 push %ebx <== NOT EXECUTED 15898b: ff d0 call *%eax <== NOT EXECUTED 15898d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 158990: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 158994: 75 26 jne 1589bc <_rename_r+0x190> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); 158996: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 158999: 85 c0 test %eax,%eax <== NOT EXECUTED 15899b: 74 13 je 1589b0 <_rename_r+0x184> <== NOT EXECUTED 15899d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1589a0: 85 c0 test %eax,%eax <== NOT EXECUTED 1589a2: 74 0c je 1589b0 <_rename_r+0x184> <== NOT EXECUTED 1589a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1589a7: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 1589aa: 52 push %edx <== NOT EXECUTED 1589ab: ff d0 call *%eax <== NOT EXECUTED 1589ad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return result; } 1589b0: 89 f0 mov %esi,%eax <== NOT EXECUTED 1589b2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1589b5: 5b pop %ebx <== NOT EXECUTED 1589b6: 5e pop %esi <== NOT EXECUTED 1589b7: 5f pop %edi <== NOT EXECUTED 1589b8: c9 leave <== NOT EXECUTED 1589b9: c3 ret <== NOT EXECUTED 1589ba: 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 ); 1589bc: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 1589bf: 85 c0 test %eax,%eax <== NOT EXECUTED 1589c1: 74 d3 je 158996 <_rename_r+0x16a> <== NOT EXECUTED 1589c3: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1589c6: 85 c0 test %eax,%eax <== NOT EXECUTED 1589c8: 74 cc je 158996 <_rename_r+0x16a> <== NOT EXECUTED 1589ca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1589cd: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1589d0: ff d0 call *%eax <== NOT EXECUTED 1589d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1589d5: eb bf jmp 158996 <_rename_r+0x16a> <== NOT EXECUTED 1589d7: 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 ); 1589d8: 8d 4d bc lea -0x44(%ebp),%ecx <== NOT EXECUTED 1589db: 89 4d a4 mov %ecx,-0x5c(%ebp) <== NOT EXECUTED 1589de: 8b 35 84 92 16 00 mov 0x169284,%esi <== NOT EXECUTED 1589e4: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 1589e7: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 1589ec: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED 1589ef: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 1589f1: c6 45 a3 00 movb $0x0,-0x5d(%ebp) <== NOT EXECUTED 1589f5: e9 85 fe ff ff jmp 15887f <_rename_r+0x53> <== NOT EXECUTED 1589fa: 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 ); 1589fc: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 1589ff: 85 c0 test %eax,%eax <== NOT EXECUTED 158a01: 74 10 je 158a13 <_rename_r+0x1e7> <== NOT EXECUTED 158a03: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158a06: 85 c0 test %eax,%eax <== NOT EXECUTED 158a08: 74 09 je 158a13 <_rename_r+0x1e7> <== NOT EXECUTED 158a0a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158a0d: 53 push %ebx <== NOT EXECUTED 158a0e: ff d0 call *%eax <== NOT EXECUTED 158a10: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 158a13: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 158a17: 74 19 je 158a32 <_rename_r+0x206> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 158a19: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 158a1c: 85 c0 test %eax,%eax <== NOT EXECUTED 158a1e: 74 12 je 158a32 <_rename_r+0x206> <== NOT EXECUTED 158a20: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158a23: 85 c0 test %eax,%eax <== NOT EXECUTED 158a25: 74 0b je 158a32 <_rename_r+0x206> <== NOT EXECUTED 158a27: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158a2a: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 158a2d: ff d0 call *%eax <== NOT EXECUTED 158a2f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 158a32: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 158a35: 85 c0 test %eax,%eax <== NOT EXECUTED 158a37: 74 13 je 158a4c <_rename_r+0x220> <== NOT EXECUTED 158a39: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158a3c: 85 c0 test %eax,%eax <== NOT EXECUTED 158a3e: 74 0c je 158a4c <_rename_r+0x220> <== NOT EXECUTED 158a40: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158a43: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 158a46: 51 push %ecx <== NOT EXECUTED 158a47: ff d0 call *%eax <== NOT EXECUTED 158a49: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 158a4c: e8 53 9e fe ff call 1428a4 <__errno> <== NOT EXECUTED 158a51: c7 00 12 00 00 00 movl $0x12,(%eax) <== NOT EXECUTED 158a57: 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; } 158a5c: 89 f0 mov %esi,%eax <== NOT EXECUTED 158a5e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 158a61: 5b pop %ebx <== NOT EXECUTED 158a62: 5e pop %esi <== NOT EXECUTED 158a63: 5f pop %edi <== NOT EXECUTED 158a64: c9 leave <== NOT EXECUTED 158a65: c3 ret <== NOT EXECUTED 158a66: 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 ) 158a68: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 158a6c: 74 19 je 158a87 <_rename_r+0x25b> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 158a6e: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 158a71: 85 c0 test %eax,%eax <== NOT EXECUTED 158a73: 74 12 je 158a87 <_rename_r+0x25b> <== NOT EXECUTED 158a75: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158a78: 85 c0 test %eax,%eax <== NOT EXECUTED 158a7a: 74 0b je 158a87 <_rename_r+0x25b> <== NOT EXECUTED 158a7c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158a7f: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 158a82: ff d0 call *%eax <== NOT EXECUTED 158a84: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 158a87: e8 18 9e fe ff call 1428a4 <__errno> <== NOT EXECUTED 158a8c: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 158a8e: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 158a93: e9 18 ff ff ff jmp 1589b0 <_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 ); 158a98: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 158a9b: 85 c0 test %eax,%eax <== NOT EXECUTED 158a9d: 74 10 je 158aaf <_rename_r+0x283> <== NOT EXECUTED 158a9f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158aa2: 85 c0 test %eax,%eax <== NOT EXECUTED 158aa4: 74 09 je 158aaf <_rename_r+0x283> <== NOT EXECUTED 158aa6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158aa9: 53 push %ebx <== NOT EXECUTED 158aaa: ff d0 call *%eax <== NOT EXECUTED 158aac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 158aaf: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 158ab3: 74 19 je 158ace <_rename_r+0x2a2> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 158ab5: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 158ab8: 85 c0 test %eax,%eax <== NOT EXECUTED 158aba: 74 12 je 158ace <_rename_r+0x2a2> <== NOT EXECUTED 158abc: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158abf: 85 c0 test %eax,%eax <== NOT EXECUTED 158ac1: 74 0b je 158ace <_rename_r+0x2a2> <== NOT EXECUTED 158ac3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158ac6: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 158ac9: ff d0 call *%eax <== NOT EXECUTED 158acb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 158ace: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 158ad1: 85 c0 test %eax,%eax <== NOT EXECUTED 158ad3: 74 13 je 158ae8 <_rename_r+0x2bc> <== NOT EXECUTED 158ad5: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158ad8: 85 c0 test %eax,%eax <== NOT EXECUTED 158ada: 74 0c je 158ae8 <_rename_r+0x2bc> <== NOT EXECUTED 158adc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158adf: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 158ae2: 52 push %edx <== NOT EXECUTED 158ae3: ff d0 call *%eax <== NOT EXECUTED 158ae5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 158ae8: e8 b7 9d fe ff call 1428a4 <__errno> <== NOT EXECUTED 158aed: 89 30 mov %esi,(%eax) <== NOT EXECUTED 158aef: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 158af4: e9 b7 fe ff ff jmp 1589b0 <_rename_r+0x184> <== NOT EXECUTED 158af9: 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 ) 158afc: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 158b00: 74 19 je 158b1b <_rename_r+0x2ef> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 158b02: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 158b05: 85 c0 test %eax,%eax <== NOT EXECUTED 158b07: 74 12 je 158b1b <_rename_r+0x2ef> <== NOT EXECUTED 158b09: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158b0c: 85 c0 test %eax,%eax <== NOT EXECUTED 158b0e: 74 0b je 158b1b <_rename_r+0x2ef> <== NOT EXECUTED 158b10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158b13: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 158b16: ff d0 call *%eax <== NOT EXECUTED 158b18: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 158b1b: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 158b1e: 85 c0 test %eax,%eax <== NOT EXECUTED 158b20: 74 13 je 158b35 <_rename_r+0x309> <== NOT EXECUTED 158b22: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158b25: 85 c0 test %eax,%eax <== NOT EXECUTED 158b27: 74 0c je 158b35 <_rename_r+0x309> <== NOT EXECUTED 158b29: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158b2c: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 158b2f: 51 push %ecx <== NOT EXECUTED 158b30: ff d0 call *%eax <== NOT EXECUTED 158b32: 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 ); 158b35: e8 6a 9d fe ff call 1428a4 <__errno> <== NOT EXECUTED 158b3a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 158b40: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 158b45: e9 66 fe ff ff jmp 1589b0 <_rename_r+0x184> <== NOT EXECUTED 158b4a: 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, 158b4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158b4f: 6a 00 push $0x0 <== NOT EXECUTED 158b51: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 158b54: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 158b57: 50 push %eax <== NOT EXECUTED 158b58: 6a 02 push $0x2 <== NOT EXECUTED 158b5a: 53 push %ebx <== NOT EXECUTED 158b5b: 52 push %edx <== NOT EXECUTED 158b5c: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 158b5f: e8 48 42 fb ff call 10cdac <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 158b64: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 158b67: 85 c0 test %eax,%eax <== NOT EXECUTED 158b69: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 158b6c: 0f 85 1c ff ff ff jne 158a8e <_rename_r+0x262> <== NOT EXECUTED 158b72: c6 45 a3 01 movb $0x1,-0x5d(%ebp) <== NOT EXECUTED 158b76: e9 04 fd ff ff jmp 15887f <_rename_r+0x53> <== NOT EXECUTED 158b7b: 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 ); 158b7c: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 158b7f: 85 c0 test %eax,%eax <== NOT EXECUTED 158b81: 74 09 je 158b8c <_rename_r+0x360> <== NOT EXECUTED 158b83: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158b86: 53 push %ebx <== NOT EXECUTED 158b87: ff d0 call *%eax <== NOT EXECUTED 158b89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 158b8c: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 158b90: 74 19 je 158bab <_rename_r+0x37f> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 158b92: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 158b95: 85 c0 test %eax,%eax <== NOT EXECUTED 158b97: 74 12 je 158bab <_rename_r+0x37f> <== NOT EXECUTED 158b99: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158b9c: 85 c0 test %eax,%eax <== NOT EXECUTED 158b9e: 74 0b je 158bab <_rename_r+0x37f> <== NOT EXECUTED 158ba0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158ba3: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 158ba6: ff d0 call *%eax <== NOT EXECUTED 158ba8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 158bab: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 158bae: 85 c0 test %eax,%eax <== NOT EXECUTED 158bb0: 74 83 je 158b35 <_rename_r+0x309> <== NOT EXECUTED 158bb2: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 158bb5: 85 c0 test %eax,%eax <== NOT EXECUTED 158bb7: 0f 84 78 ff ff ff je 158b35 <_rename_r+0x309> <== NOT EXECUTED 158bbd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 158bc0: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 158bc3: 52 push %edx <== NOT EXECUTED 158bc4: ff d0 call *%eax <== NOT EXECUTED 158bc6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 158bc9: e9 67 ff ff ff jmp 158b35 <_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 0011330c <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { 11330c: 55 push %ebp <== NOT EXECUTED 11330d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11330f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED return unlink( path ); 113312: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 113315: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 113318: c9 leave <== NOT EXECUTED int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 113319: e9 ae fd ff ff jmp 1130cc <== NOT EXECUTED 0012b0bc : int access( const char *path, int amode ) { 12b0bc: 55 push %ebp 12b0bd: 89 e5 mov %esp,%ebp 12b0bf: 53 push %ebx 12b0c0: 83 ec 5c sub $0x5c,%esp 12b0c3: 8b 5d 0c mov 0xc(%ebp),%ebx struct stat statbuf; if ( stat(path, &statbuf) ) 12b0c6: 8d 45 b0 lea -0x50(%ebp),%eax 12b0c9: 50 push %eax 12b0ca: ff 75 08 pushl 0x8(%ebp) 12b0cd: e8 7a 32 fe ff call 10e34c 12b0d2: 83 c4 10 add $0x10,%esp 12b0d5: 85 c0 test %eax,%eax 12b0d7: 75 1f jne 12b0f8 return -1; if ( amode & R_OK ) { 12b0d9: f6 c3 04 test $0x4,%bl 12b0dc: 75 12 jne 12b0f0 if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { 12b0de: f6 c3 02 test $0x2,%bl 12b0e1: 75 29 jne 12b10c if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { 12b0e3: 83 e3 01 and $0x1,%ebx 12b0e6: 75 1c jne 12b104 if ( !( statbuf.st_mode & S_IEXEC ) ) 12b0e8: 31 c0 xor %eax,%eax return -1; } return 0; } 12b0ea: 8b 5d fc mov -0x4(%ebp),%ebx 12b0ed: c9 leave 12b0ee: c3 ret 12b0ef: 90 nop <== NOT EXECUTED if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) 12b0f0: f6 45 bd 01 testb $0x1,-0x43(%ebp) 12b0f4: 75 e8 jne 12b0de 12b0f6: 66 90 xchg %ax,%ax if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 12b0f8: b8 ff ff ff ff mov $0xffffffff,%eax return -1; } return 0; } 12b0fd: 8b 5d fc mov -0x4(%ebp),%ebx 12b100: c9 leave 12b101: c3 ret 12b102: 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 ) ) 12b104: f6 45 bc 40 testb $0x40,-0x44(%ebp) 12b108: 75 de jne 12b0e8 12b10a: eb ec jmp 12b0f8 if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) 12b10c: 80 7d bc 00 cmpb $0x0,-0x44(%ebp) 12b110: 78 d1 js 12b0e3 12b112: eb e4 jmp 12b0f8 0010b438 : int adjtime( struct timeval *delta, struct timeval *olddelta ) { 10b438: 55 push %ebp 10b439: 89 e5 mov %esp,%ebp 10b43b: 57 push %edi 10b43c: 56 push %esi 10b43d: 53 push %ebx 10b43e: 83 ec 1c sub $0x1c,%esp 10b441: 8b 5d 08 mov 0x8(%ebp),%ebx 10b444: 8b 75 0c mov 0xc(%ebp),%esi long adjustment; /* * Simple validations */ if ( !delta ) 10b447: 85 db test %ebx,%ebx 10b449: 0f 84 f1 00 00 00 je 10b540 rtems_set_errno_and_return_minus_one( EINVAL ); if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND ) 10b44f: 8b 53 04 mov 0x4(%ebx),%edx 10b452: 81 fa 3f 42 0f 00 cmp $0xf423f,%edx 10b458: 0f 87 e2 00 00 00 ja 10b540 rtems_set_errno_and_return_minus_one( EINVAL ); if ( olddelta ) { 10b45e: 85 f6 test %esi,%esi 10b460: 74 10 je 10b472 olddelta->tv_sec = 0; 10b462: c7 06 00 00 00 00 movl $0x0,(%esi) olddelta->tv_usec = 0; 10b468: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi) 10b46f: 8b 53 04 mov 0x4(%ebx),%edx } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); 10b472: 8b 03 mov (%ebx),%eax 10b474: 8d 04 80 lea (%eax,%eax,4),%eax 10b477: 8d 04 80 lea (%eax,%eax,4),%eax 10b47a: 8d 04 80 lea (%eax,%eax,4),%eax 10b47d: 8d 04 80 lea (%eax,%eax,4),%eax 10b480: 8d 04 80 lea (%eax,%eax,4),%eax 10b483: 8d 04 80 lea (%eax,%eax,4),%eax 10b486: c1 e0 06 shl $0x6,%eax adjustment += delta->tv_usec; /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 10b489: 8d 04 02 lea (%edx,%eax,1),%eax 10b48c: 3b 05 4c 49 12 00 cmp 0x12494c,%eax 10b492: 73 0c jae 10b4a0 _Thread_Enable_dispatch(); /* set the user's output */ if ( olddelta ) *olddelta = *delta; 10b494: 31 c0 xor %eax,%eax return 0; } 10b496: 8d 65 f4 lea -0xc(%ebp),%esp 10b499: 5b pop %ebx 10b49a: 5e pop %esi 10b49b: 5f pop %edi 10b49c: c9 leave 10b49d: c3 ret 10b49e: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10b4a0: a1 58 8c 12 00 mov 0x128c58,%eax 10b4a5: 40 inc %eax 10b4a6: a3 58 8c 12 00 mov %eax,0x128c58 * This prevents context switches while we are adjusting the TOD */ _Thread_Disable_dispatch(); _TOD_Get( &ts ); 10b4ab: 83 ec 0c sub $0xc,%esp 10b4ae: 8d 7d e0 lea -0x20(%ebp),%edi 10b4b1: 57 push %edi 10b4b2: e8 71 17 00 00 call 10cc28 <_TOD_Get> ts.tv_sec += delta->tv_sec; 10b4b7: 8b 03 mov (%ebx),%eax 10b4b9: 01 45 e0 add %eax,-0x20(%ebp) ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; 10b4bc: 8b 43 04 mov 0x4(%ebx),%eax 10b4bf: 8d 04 80 lea (%eax,%eax,4),%eax 10b4c2: 8d 04 80 lea (%eax,%eax,4),%eax 10b4c5: 8d 04 80 lea (%eax,%eax,4),%eax 10b4c8: c1 e0 03 shl $0x3,%eax 10b4cb: 03 45 e4 add -0x1c(%ebp),%eax 10b4ce: 89 45 e4 mov %eax,-0x1c(%ebp) /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 10b4d1: 83 c4 10 add $0x10,%esp 10b4d4: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax 10b4d9: 76 18 jbe 10b4f3 10b4db: 8b 55 e0 mov -0x20(%ebp),%edx 10b4de: 66 90 xchg %ax,%ax ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; 10b4e0: 2d 00 ca 9a 3b sub $0x3b9aca00,%eax * At one point there was a static variable named adjustment * used by this implementation. I don't see any reason for it * to be here based upon the GNU/Linux documentation. */ int adjtime( 10b4e5: 42 inc %edx ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 10b4e6: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax 10b4eb: 77 f3 ja 10b4e0 10b4ed: 89 45 e4 mov %eax,-0x1c(%ebp) 10b4f0: 89 55 e0 mov %edx,-0x20(%ebp) ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { 10b4f3: 3d 00 36 65 c4 cmp $0xc4653600,%eax 10b4f8: 77 19 ja 10b513 10b4fa: 8b 55 e0 mov -0x20(%ebp),%edx 10b4fd: 8d 76 00 lea 0x0(%esi),%esi ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND; 10b500: 05 00 ca 9a 3b add $0x3b9aca00,%eax * At one point there was a static variable named adjustment * used by this implementation. I don't see any reason for it * to be here based upon the GNU/Linux documentation. */ int adjtime( 10b505: 4a dec %edx ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { 10b506: 3d 00 36 65 c4 cmp $0xc4653600,%eax 10b50b: 76 f3 jbe 10b500 10b50d: 89 45 e4 mov %eax,-0x1c(%ebp) 10b510: 89 55 e0 mov %edx,-0x20(%ebp) ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND; ts.tv_sec--; } _TOD_Set( &ts ); 10b513: 83 ec 0c sub $0xc,%esp 10b516: 57 push %edi 10b517: e8 98 17 00 00 call 10ccb4 <_TOD_Set> _Thread_Enable_dispatch(); 10b51c: e8 5b 29 00 00 call 10de7c <_Thread_Enable_dispatch> /* set the user's output */ if ( olddelta ) 10b521: 83 c4 10 add $0x10,%esp 10b524: 85 f6 test %esi,%esi 10b526: 0f 84 68 ff ff ff je 10b494 *olddelta = *delta; 10b52c: 8b 03 mov (%ebx),%eax 10b52e: 8b 53 04 mov 0x4(%ebx),%edx 10b531: 89 06 mov %eax,(%esi) 10b533: 89 56 04 mov %edx,0x4(%esi) 10b536: 31 c0 xor %eax,%eax return 0; } 10b538: 8d 65 f4 lea -0xc(%ebp),%esp 10b53b: 5b pop %ebx 10b53c: 5e pop %esi 10b53d: 5f pop %edi 10b53e: c9 leave 10b53f: c3 ret */ if ( !delta ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND ) rtems_set_errno_and_return_minus_one( EINVAL ); 10b540: e8 f3 8c 00 00 call 114238 <__errno> 10b545: c7 00 16 00 00 00 movl $0x16,(%eax) 10b54b: b8 ff ff ff ff mov $0xffffffff,%eax 10b550: e9 41 ff ff ff jmp 10b496 0012b1dc : #include int chdir( const char *pathname ) { 12b1dc: 55 push %ebp 12b1dd: 89 e5 mov %esp,%ebp 12b1df: 57 push %edi 12b1e0: 56 push %esi 12b1e1: 83 ec 2c sub $0x2c,%esp 12b1e4: 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 ); 12b1e7: 31 c0 xor %eax,%eax 12b1e9: b9 ff ff ff ff mov $0xffffffff,%ecx 12b1ee: 89 d7 mov %edx,%edi 12b1f0: f2 ae repnz scas %es:(%edi),%al 12b1f2: f7 d1 not %ecx 12b1f4: 49 dec %ecx /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 12b1f5: 6a 01 push $0x1 12b1f7: 8d 75 e4 lea -0x1c(%ebp),%esi 12b1fa: 56 push %esi 12b1fb: 6a 01 push $0x1 12b1fd: 51 push %ecx 12b1fe: 52 push %edx 12b1ff: e8 a8 1b fe ff call 10cdac pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 12b204: 83 c4 20 add $0x20,%esp 12b207: 85 c0 test %eax,%eax 12b209: 75 6d jne 12b278 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 12b20b: 8b 55 f0 mov -0x10(%ebp),%edx 12b20e: 8b 42 10 mov 0x10(%edx),%eax 12b211: 85 c0 test %eax,%eax 12b213: 74 47 je 12b25c rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 12b215: 83 ec 0c sub $0xc,%esp 12b218: 56 push %esi 12b219: ff d0 call *%eax 12b21b: 83 c4 10 add $0x10,%esp 12b21e: 48 dec %eax 12b21f: 75 63 jne 12b284 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 12b221: 8b 3d 84 92 16 00 mov 0x169284,%edi 12b227: 8b 47 10 mov 0x10(%edi),%eax 12b22a: 85 c0 test %eax,%eax 12b22c: 74 19 je 12b247 12b22e: 8b 40 1c mov 0x1c(%eax),%eax 12b231: 85 c0 test %eax,%eax 12b233: 74 12 je 12b247 12b235: 83 ec 0c sub $0xc,%esp 12b238: 83 c7 04 add $0x4,%edi 12b23b: 57 push %edi 12b23c: ff d0 call *%eax 12b23e: 8b 3d 84 92 16 00 mov 0x169284,%edi 12b244: 83 c4 10 add $0x10,%esp rtems_filesystem_current = loc; 12b247: 83 c7 04 add $0x4,%edi 12b24a: b9 05 00 00 00 mov $0x5,%ecx 12b24f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12b251: 31 c0 xor %eax,%eax return 0; } 12b253: 8d 65 f8 lea -0x8(%ebp),%esp 12b256: 5e pop %esi 12b257: 5f pop %edi 12b258: c9 leave 12b259: c3 ret 12b25a: 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 ); 12b25c: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12b25f: 85 c0 test %eax,%eax <== NOT EXECUTED 12b261: 74 09 je 12b26c <== NOT EXECUTED 12b263: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b266: 56 push %esi <== NOT EXECUTED 12b267: ff d0 call *%eax <== NOT EXECUTED 12b269: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b26c: e8 33 76 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b271: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b277: 90 nop <== NOT EXECUTED 12b278: b8 ff ff ff ff mov $0xffffffff,%eax rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 12b27d: 8d 65 f8 lea -0x8(%ebp),%esp 12b280: 5e pop %esi 12b281: 5f pop %edi 12b282: c9 leave 12b283: 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 ); 12b284: 8b 45 f0 mov -0x10(%ebp),%eax 12b287: 85 c0 test %eax,%eax 12b289: 74 10 je 12b29b 12b28b: 8b 40 1c mov 0x1c(%eax),%eax 12b28e: 85 c0 test %eax,%eax 12b290: 74 09 je 12b29b 12b292: 83 ec 0c sub $0xc,%esp 12b295: 56 push %esi 12b296: ff d0 call *%eax 12b298: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( ENOTDIR ); 12b29b: e8 04 76 01 00 call 1428a4 <__errno> 12b2a0: c7 00 14 00 00 00 movl $0x14,(%eax) 12b2a6: b8 ff ff ff ff mov $0xffffffff,%eax 12b2ab: eb a6 jmp 12b253 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 2b 5d 03 00 call 1428a4 <__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 f8 5c 03 00 call 1428a4 <__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 0012b2b0 : int chown( const char *path, uid_t owner, gid_t group ) { 12b2b0: 55 push %ebp 12b2b1: 89 e5 mov %esp,%ebp 12b2b3: 57 push %edi 12b2b4: 56 push %esi 12b2b5: 53 push %ebx 12b2b6: 83 ec 38 sub $0x38,%esp 12b2b9: 8b 55 08 mov 0x8(%ebp),%edx 12b2bc: 8b 75 0c mov 0xc(%ebp),%esi 12b2bf: 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 ) ) 12b2c2: 31 c0 xor %eax,%eax 12b2c4: b9 ff ff ff ff mov $0xffffffff,%ecx 12b2c9: 89 d7 mov %edx,%edi 12b2cb: f2 ae repnz scas %es:(%edi),%al 12b2cd: f7 d1 not %ecx 12b2cf: 49 dec %ecx 12b2d0: 6a 01 push $0x1 12b2d2: 8d 7d d4 lea -0x2c(%ebp),%edi 12b2d5: 57 push %edi 12b2d6: 6a 00 push $0x0 12b2d8: 51 push %ecx 12b2d9: 52 push %edx 12b2da: e8 cd 1a fe ff call 10cdac 12b2df: 83 c4 20 add $0x20,%esp 12b2e2: 85 c0 test %eax,%eax 12b2e4: 75 5a jne 12b340 return -1; if ( !loc.ops->chown_h ) { 12b2e6: 8b 55 e0 mov -0x20(%ebp),%edx 12b2e9: 8b 42 18 mov 0x18(%edx),%eax 12b2ec: 85 c0 test %eax,%eax 12b2ee: 74 34 je 12b324 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 12b2f0: 52 push %edx 12b2f1: 0f b7 db movzwl %bx,%ebx 12b2f4: 53 push %ebx 12b2f5: 0f b7 f6 movzwl %si,%esi 12b2f8: 56 push %esi 12b2f9: 57 push %edi 12b2fa: ff d0 call *%eax 12b2fc: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 12b2fe: 8b 45 e0 mov -0x20(%ebp),%eax 12b301: 83 c4 10 add $0x10,%esp 12b304: 85 c0 test %eax,%eax 12b306: 74 10 je 12b318 12b308: 8b 40 1c mov 0x1c(%eax),%eax 12b30b: 85 c0 test %eax,%eax 12b30d: 74 09 je 12b318 12b30f: 83 ec 0c sub $0xc,%esp 12b312: 57 push %edi 12b313: ff d0 call *%eax 12b315: 83 c4 10 add $0x10,%esp return result; } 12b318: 89 d8 mov %ebx,%eax 12b31a: 8d 65 f4 lea -0xc(%ebp),%esp 12b31d: 5b pop %ebx 12b31e: 5e pop %esi 12b31f: 5f pop %edi 12b320: c9 leave 12b321: c3 ret 12b322: 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 ); 12b324: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12b327: 85 c0 test %eax,%eax <== NOT EXECUTED 12b329: 74 09 je 12b334 <== NOT EXECUTED 12b32b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b32e: 57 push %edi <== NOT EXECUTED 12b32f: ff d0 call *%eax <== NOT EXECUTED 12b331: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b334: e8 6b 75 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b339: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b33f: 90 nop <== NOT EXECUTED 12b340: bb ff ff ff ff mov $0xffffffff,%ebx result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; } 12b345: 89 d8 mov %ebx,%eax 12b347: 8d 65 f4 lea -0xc(%ebp),%esp 12b34a: 5b pop %ebx 12b34b: 5e pop %esi 12b34c: 5f pop %edi 12b34d: c9 leave 12b34e: c3 ret 0012b350 : #include int chroot( const char *pathname ) { 12b350: 55 push %ebp 12b351: 89 e5 mov %esp,%ebp 12b353: 57 push %edi 12b354: 56 push %esi 12b355: 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) { 12b358: 81 3d 84 92 16 00 e0 cmpl $0x16ede0,0x169284 12b35f: ed 16 00 12b362: 74 6c je 12b3d0 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); 12b364: 83 ec 0c sub $0xc,%esp 12b367: ff 75 08 pushl 0x8(%ebp) 12b36a: e8 6d fe ff ff call 12b1dc if (result) { 12b36f: 83 c4 10 add $0x10,%esp 12b372: 85 c0 test %eax,%eax 12b374: 75 7e jne 12b3f4 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 12b376: 83 ec 0c sub $0xc,%esp 12b379: 6a 00 push $0x0 12b37b: 8d 75 e4 lea -0x1c(%ebp),%esi 12b37e: 56 push %esi 12b37f: 6a 00 push $0x0 12b381: 6a 01 push $0x1 12b383: 68 9c c0 15 00 push $0x15c09c 12b388: e8 1f 1a fe ff call 10cdac 12b38d: 83 c4 20 add $0x20,%esp 12b390: 85 c0 test %eax,%eax 12b392: 75 60 jne 12b3f4 /* 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); 12b394: 8b 3d 84 92 16 00 mov 0x169284,%edi 12b39a: 8b 47 24 mov 0x24(%edi),%eax 12b39d: 85 c0 test %eax,%eax 12b39f: 74 19 je 12b3ba 12b3a1: 8b 40 1c mov 0x1c(%eax),%eax 12b3a4: 85 c0 test %eax,%eax 12b3a6: 74 12 je 12b3ba 12b3a8: 83 ec 0c sub $0xc,%esp 12b3ab: 83 c7 18 add $0x18,%edi 12b3ae: 57 push %edi 12b3af: ff d0 call *%eax 12b3b1: 8b 3d 84 92 16 00 mov 0x169284,%edi 12b3b7: 83 c4 10 add $0x10,%esp rtems_filesystem_root = loc; 12b3ba: 83 c7 18 add $0x18,%edi 12b3bd: b9 05 00 00 00 mov $0x5,%ecx 12b3c2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12b3c4: 31 c0 xor %eax,%eax return 0; } 12b3c6: 8d 65 f8 lea -0x8(%ebp),%esp 12b3c9: 5e pop %esi 12b3ca: 5f pop %edi 12b3cb: c9 leave 12b3cc: c3 ret 12b3cd: 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*/ 12b3d0: e8 5b 15 00 00 call 12c930 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 12b3d5: 81 3d 84 92 16 00 e0 cmpl $0x16ede0,0x169284 12b3dc: ed 16 00 12b3df: 75 83 jne 12b364 rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b3e1: e8 be 74 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b3e6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b3ec: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 12b3ef: eb d5 jmp 12b3c6 <== NOT EXECUTED 12b3f1: 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 ); 12b3f4: e8 ab 74 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b3f9: 89 c6 mov %eax,%esi <== NOT EXECUTED 12b3fb: e8 a4 74 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b400: 8b 00 mov (%eax),%eax <== NOT EXECUTED 12b402: 89 06 mov %eax,(%esi) <== NOT EXECUTED 12b404: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b409: eb bb jmp 12b3c6 <== NOT EXECUTED 0010b350 : int clock_gettime( clockid_t clock_id, struct timespec *tp ) { 10b350: 55 push %ebp 10b351: 89 e5 mov %esp,%ebp 10b353: 83 ec 08 sub $0x8,%esp 10b356: 8b 45 08 mov 0x8(%ebp),%eax 10b359: 8b 55 0c mov 0xc(%ebp),%edx if ( !tp ) 10b35c: 85 d2 test %edx,%edx 10b35e: 74 14 je 10b374 rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { 10b360: 83 f8 01 cmp $0x1,%eax 10b363: 74 47 je 10b3ac _TOD_Get(tp); return 0; } #ifdef CLOCK_MONOTONIC if ( clock_id == CLOCK_MONOTONIC ) { 10b365: 83 f8 04 cmp $0x4,%eax 10b368: 74 32 je 10b39c return 0; } #endif #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME ) { 10b36a: 83 f8 02 cmp $0x2,%eax 10b36d: 74 2d je 10b39c return 0; } #endif #ifdef _POSIX_THREAD_CPUTIME if ( clock_id == CLOCK_THREAD_CPUTIME ) 10b36f: 83 f8 03 cmp $0x3,%eax 10b372: 74 14 je 10b388 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif rtems_set_errno_and_return_minus_one( EINVAL ); 10b374: e8 0b 93 00 00 call 114684 <__errno> 10b379: c7 00 16 00 00 00 movl $0x16,(%eax) 10b37f: b8 ff ff ff ff mov $0xffffffff,%eax return 0; } 10b384: c9 leave 10b385: c3 ret 10b386: 66 90 xchg %ax,%ax <== NOT EXECUTED } #endif #ifdef _POSIX_THREAD_CPUTIME if ( clock_id == CLOCK_THREAD_CPUTIME ) rtems_set_errno_and_return_minus_one( ENOSYS ); 10b388: e8 f7 92 00 00 call 114684 <__errno> 10b38d: c7 00 58 00 00 00 movl $0x58,(%eax) 10b393: b8 ff ff ff ff mov $0xffffffff,%eax #endif rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } 10b398: c9 leave 10b399: c3 ret 10b39a: 66 90 xchg %ax,%ax <== NOT EXECUTED } #endif #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME ) { _TOD_Get_uptime_as_timespec( tp ); 10b39c: 83 ec 0c sub $0xc,%esp 10b39f: 52 push %edx 10b3a0: e8 87 1e 00 00 call 10d22c <_TOD_Get_uptime_as_timespec> 10b3a5: 31 c0 xor %eax,%eax return 0; 10b3a7: 83 c4 10 add $0x10,%esp #endif rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } 10b3aa: c9 leave 10b3ab: c3 ret { if ( !tp ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { _TOD_Get(tp); 10b3ac: 83 ec 0c sub $0xc,%esp 10b3af: 52 push %edx 10b3b0: e8 1f 1e 00 00 call 10d1d4 <_TOD_Get> 10b3b5: 31 c0 xor %eax,%eax return 0; 10b3b7: 83 c4 10 add $0x10,%esp #endif rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } 10b3ba: c9 leave 10b3bb: c3 ret 0012ce84 : int clock_settime( clockid_t clock_id, const struct timespec *tp ) { 12ce84: 55 push %ebp 12ce85: 89 e5 mov %esp,%ebp 12ce87: 83 ec 08 sub $0x8,%esp 12ce8a: 8b 45 08 mov 0x8(%ebp),%eax 12ce8d: 8b 55 0c mov 0xc(%ebp),%edx if ( !tp ) 12ce90: 85 d2 test %edx,%edx 12ce92: 74 0f je 12cea3 rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { 12ce94: 83 f8 01 cmp $0x1,%eax 12ce97: 74 1f je 12ceb8 _Thread_Disable_dispatch(); _TOD_Set( tp ); _Thread_Enable_dispatch(); } #ifdef _POSIX_CPUTIME else if ( clock_id == CLOCK_PROCESS_CPUTIME ) 12ce99: 83 f8 02 cmp $0x2,%eax 12ce9c: 74 42 je 12cee0 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME else if ( clock_id == CLOCK_THREAD_CPUTIME ) 12ce9e: 83 f8 03 cmp $0x3,%eax 12cea1: 74 3d je 12cee0 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif else rtems_set_errno_and_return_minus_one( EINVAL ); 12cea3: e8 fc 59 01 00 call 1428a4 <__errno> 12cea8: c7 00 16 00 00 00 movl $0x16,(%eax) 12ceae: b8 ff ff ff ff mov $0xffffffff,%eax return 0; } 12ceb3: c9 leave 12ceb4: c3 ret 12ceb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { if ( !tp ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 ) 12ceb8: 81 3a ff e4 da 21 cmpl $0x21dae4ff,(%edx) 12cebe: 76 e3 jbe 12cea3 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 12cec0: a1 f8 ee 16 00 mov 0x16eef8,%eax 12cec5: 40 inc %eax 12cec6: a3 f8 ee 16 00 mov %eax,0x16eef8 rtems_set_errno_and_return_minus_one( EINVAL ); _Thread_Disable_dispatch(); _TOD_Set( tp ); 12cecb: 83 ec 0c sub $0xc,%esp 12cece: 52 push %edx 12cecf: e8 ec 1b 00 00 call 12eac0 <_TOD_Set> _Thread_Enable_dispatch(); 12ced4: e8 3f 6a fe ff call 113918 <_Thread_Enable_dispatch> 12ced9: 31 c0 xor %eax,%eax rtems_set_errno_and_return_minus_one( ENOSYS ); #endif else rtems_set_errno_and_return_minus_one( EINVAL ); return 0; 12cedb: 83 c4 10 add $0x10,%esp } 12cede: c9 leave 12cedf: c3 ret else if ( clock_id == CLOCK_PROCESS_CPUTIME ) rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME else if ( clock_id == CLOCK_THREAD_CPUTIME ) rtems_set_errno_and_return_minus_one( ENOSYS ); 12cee0: e8 bf 59 01 00 call 1428a4 <__errno> 12cee5: c7 00 58 00 00 00 movl $0x58,(%eax) 12ceeb: b8 ff ff ff ff mov $0xffffffff,%eax #endif else rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } 12cef0: c9 leave 12cef1: c3 ret 0010f948 : #include int close( int fd ) { 10f948: 55 push %ebp 10f949: 89 e5 mov %esp,%ebp 10f94b: 56 push %esi 10f94c: 53 push %ebx 10f94d: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 10f950: 3b 1d 6c 34 12 00 cmp 0x12346c,%ebx 10f956: 73 58 jae 10f9b0 iop = rtems_libio_iop(fd); 10f958: c1 e3 06 shl $0x6,%ebx 10f95b: 03 1d 80 75 12 00 add 0x127580,%ebx rtems_libio_check_is_open(iop); 10f961: f6 43 15 01 testb $0x1,0x15(%ebx) 10f965: 74 49 je 10f9b0 rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 10f967: 8b 43 3c mov 0x3c(%ebx),%eax 10f96a: 8b 40 04 mov 0x4(%eax),%eax 10f96d: 85 c0 test %eax,%eax 10f96f: 74 3b je 10f9ac rc = (*iop->handlers->close_h)( iop ); 10f971: 83 ec 0c sub $0xc,%esp 10f974: 53 push %ebx 10f975: ff d0 call *%eax 10f977: 89 c6 mov %eax,%esi 10f979: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &iop->pathinfo ); 10f97c: 8b 43 24 mov 0x24(%ebx),%eax 10f97f: 85 c0 test %eax,%eax 10f981: 74 13 je 10f996 10f983: 8b 40 1c mov 0x1c(%eax),%eax 10f986: 85 c0 test %eax,%eax 10f988: 74 0c je 10f996 10f98a: 83 ec 0c sub $0xc,%esp 10f98d: 8d 53 18 lea 0x18(%ebx),%edx 10f990: 52 push %edx 10f991: ff d0 call *%eax 10f993: 83 c4 10 add $0x10,%esp rtems_libio_free( iop ); 10f996: 83 ec 0c sub $0xc,%esp 10f999: 53 push %ebx 10f99a: e8 b1 02 00 00 call 10fc50 return rc; 10f99f: 83 c4 10 add $0x10,%esp } 10f9a2: 89 f0 mov %esi,%eax 10f9a4: 8d 65 f8 lea -0x8(%ebp),%esp 10f9a7: 5b pop %ebx 10f9a8: 5e pop %esi 10f9a9: c9 leave 10f9aa: c3 ret 10f9ab: 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 ) 10f9ac: 31 f6 xor %esi,%esi <== NOT EXECUTED 10f9ae: eb cc jmp 10f97c <== 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); 10f9b0: e8 df 3e 00 00 call 113894 <__errno> 10f9b5: c7 00 09 00 00 00 movl $0x9,(%eax) 10f9bb: be ff ff ff ff mov $0xffffffff,%esi 10f9c0: eb e0 jmp 10f9a2 0010eee0 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 10eee0: 55 push %ebp 10eee1: 89 e5 mov %esp,%ebp 10eee3: 83 ec 1c sub $0x1c,%esp 10eee6: 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; 10eee9: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 10eeec: 89 55 ec mov %edx,-0x14(%ebp) args.flags = 0; 10eeef: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) args.mode = 0; 10eef6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_close( 10eefd: 8d 55 ec lea -0x14(%ebp),%edx 10ef00: 52 push %edx 10ef01: ff 70 0c pushl 0xc(%eax) 10ef04: ff 70 08 pushl 0x8(%eax) 10ef07: e8 44 11 00 00 call 110050 np->major, np->minor, (void *) &args ); if ( status ) { 10ef0c: 83 c4 10 add $0x10,%esp 10ef0f: 85 c0 test %eax,%eax 10ef11: 75 05 jne 10ef18 return rtems_deviceio_errno(status); } return 0; } 10ef13: c9 leave 10ef14: c3 ret 10ef15: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 10ef18: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ef1b: 50 push %eax <== NOT EXECUTED 10ef1c: e8 c7 00 00 00 call 10efe8 <== NOT EXECUTED 10ef21: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 10ef24: c9 leave <== NOT EXECUTED 10ef25: c3 ret <== NOT EXECUTED 0010ef38 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 10ef38: 55 push %ebp 10ef39: 89 e5 mov %esp,%ebp 10ef3b: 57 push %edi 10ef3c: 56 push %esi 10ef3d: 53 push %ebx 10ef3e: 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; 10ef41: 8b 45 14 mov 0x14(%ebp),%eax 10ef44: 8b 00 mov (%eax),%eax 10ef46: 89 45 e4 mov %eax,-0x1c(%ebp) if (!device_name_table) 10ef49: 85 c0 test %eax,%eax 10ef4b: 0f 84 87 00 00 00 je 10efd8 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 10ef51: 8b 15 b0 10 12 00 mov 0x1210b0,%edx 10ef57: 89 55 e0 mov %edx,-0x20(%ebp) 10ef5a: 85 d2 test %edx,%edx 10ef5c: 74 38 je 10ef96 } /* 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 ); 10ef5e: 31 c0 xor %eax,%eax 10ef60: 31 db xor %ebx,%ebx for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 10ef62: 8d 04 80 lea (%eax,%eax,4),%eax 10ef65: 8b 55 e4 mov -0x1c(%ebp),%edx 10ef68: 8d 3c 82 lea (%edx,%eax,4),%edi 10ef6b: 8b 37 mov (%edi),%esi 10ef6d: 85 f6 test %esi,%esi 10ef6f: 74 1d je 10ef8e continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 10ef71: 50 push %eax 10ef72: ff 75 0c pushl 0xc(%ebp) 10ef75: 56 push %esi 10ef76: ff 75 08 pushl 0x8(%ebp) 10ef79: e8 ee 34 00 00 call 11246c 10ef7e: 83 c4 10 add $0x10,%esp 10ef81: 85 c0 test %eax,%eax 10ef83: 75 09 jne 10ef8e continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 10ef85: 8b 45 0c mov 0xc(%ebp),%eax 10ef88: 80 3c 06 00 cmpb $0x0,(%esi,%eax,1) 10ef8c: 74 22 je 10efb0 /* 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++) { 10ef8e: 43 inc %ebx 10ef8f: 89 d8 mov %ebx,%eax 10ef91: 39 5d e0 cmp %ebx,-0x20(%ebp) 10ef94: 77 cc ja 10ef62 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 10ef96: e8 1d 29 00 00 call 1118b8 <__errno> 10ef9b: c7 00 02 00 00 00 movl $0x2,(%eax) 10efa1: b8 ff ff ff ff mov $0xffffffff,%eax } 10efa6: 8d 65 f4 lea -0xc(%ebp),%esp 10efa9: 5b pop %ebx 10efaa: 5e pop %esi 10efab: 5f pop %edi 10efac: c9 leave 10efad: c3 ret 10efae: 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]; 10efb0: 8b 55 14 mov 0x14(%ebp),%edx 10efb3: 89 3a mov %edi,(%edx) pathloc->handlers = &devFS_file_handlers; 10efb5: c7 42 08 e0 2f 12 00 movl $0x122fe0,0x8(%edx) pathloc->ops = &devFS_ops; 10efbc: c7 42 0c 80 2f 12 00 movl $0x122f80,0xc(%edx) pathloc->mt_entry = rtems_filesystem_root.mt_entry; 10efc3: a1 2c 30 12 00 mov 0x12302c,%eax 10efc8: 8b 40 28 mov 0x28(%eax),%eax 10efcb: 89 42 10 mov %eax,0x10(%edx) 10efce: 31 c0 xor %eax,%eax return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } 10efd0: 8d 65 f4 lea -0xc(%ebp),%esp 10efd3: 5b pop %ebx 10efd4: 5e pop %esi 10efd5: 5f pop %edi 10efd6: c9 leave 10efd7: 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 ); 10efd8: e8 db 28 00 00 call 1118b8 <__errno> <== NOT EXECUTED 10efdd: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10efe3: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 10efe6: eb e8 jmp 10efd0 <== 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 b0 10 12 00 mov 0x1210b0,%eax 107b3c: 8d 04 80 lea (%eax,%eax,4),%eax 107b3f: c1 e0 02 shl $0x2,%eax 107b42: 50 push %eax 107b43: e8 08 6f 00 00 call 10ea50 <_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 b0 10 12 00 mov 0x1210b0,%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 e0 2f 12 00 movl $0x122fe0,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = &devFS_ops; 107b69: c7 43 28 80 2f 12 00 movl $0x122f80,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 37 9d 00 00 call 1118b8 <__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 82 41 00 00 call 10be94 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 bf 72 00 00 call 10efe8 <== 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 b0 10 12 00 mov 0x1210b0,%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 40 a7 00 00 call 112344 <== 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 43 9c 00 00 call 1118b8 <__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 0b 9c 00 00 call 1118b8 <__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 f9 9b 00 00 call 1118b8 <__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 e9 9b 00 00 call 1118b8 <__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 4e 42 00 00 call 10bfa8 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 7b 72 00 00 call 10efe8 <== 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 3c 42 00 00 call 10bff4 <== 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 17 72 00 00 call 10efe8 <== 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 ac 9a 00 00 call 1118b8 <__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 e0 41 00 00 call 10c040 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 6f 71 00 00 call 10efe8 <== 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 00111678 : */ int device_close( rtems_libio_t *iop ) { 111678: 55 push %ebp 111679: 89 e5 mov %esp,%ebp 11167b: 83 ec 1c sub $0x1c,%esp 11167e: 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; 111681: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 111684: 89 55 ec mov %edx,-0x14(%ebp) args.flags = 0; 111687: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) args.mode = 0; 11168e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_close( 111695: 8d 55 ec lea -0x14(%ebp),%edx 111698: 52 push %edx 111699: ff 70 54 pushl 0x54(%eax) 11169c: ff 70 50 pushl 0x50(%eax) 11169f: e8 64 14 00 00 call 112b08 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 1116a4: 83 c4 10 add $0x10,%esp 1116a7: 85 c0 test %eax,%eax 1116a9: 75 05 jne 1116b0 return rtems_deviceio_errno(status); } return 0; } 1116ab: c9 leave 1116ac: c3 ret 1116ad: 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); 1116b0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1116b3: 50 push %eax <== NOT EXECUTED 1116b4: e8 a7 19 00 00 call 113060 <== NOT EXECUTED 1116b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 1116bc: c9 leave <== NOT EXECUTED 1116bd: c3 ret <== NOT EXECUTED 00111560 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 111560: 55 push %ebp 111561: 89 e5 mov %esp,%ebp 111563: 83 ec 1c sub $0x1c,%esp 111566: 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; 111569: 89 45 e8 mov %eax,-0x18(%ebp) args.command = command; 11156c: 8b 55 0c mov 0xc(%ebp),%edx 11156f: 89 55 ec mov %edx,-0x14(%ebp) args.buffer = buffer; 111572: 8b 55 10 mov 0x10(%ebp),%edx 111575: 89 55 f0 mov %edx,-0x10(%ebp) the_jnode = iop->file_info; 111578: 8b 40 38 mov 0x38(%eax),%eax status = rtems_io_control( 11157b: 8d 55 e8 lea -0x18(%ebp),%edx 11157e: 52 push %edx 11157f: ff 70 54 pushl 0x54(%eax) 111582: ff 70 50 pushl 0x50(%eax) 111585: e8 ca 15 00 00 call 112b54 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 11158a: 83 c4 10 add $0x10,%esp 11158d: 85 c0 test %eax,%eax 11158f: 75 07 jne 111598 return rtems_deviceio_errno(status); return args.ioctl_return; 111591: 8b 45 f4 mov -0xc(%ebp),%eax } 111594: c9 leave 111595: c3 ret 111596: 66 90 xchg %ax,%ax <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 111598: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11159b: 50 push %eax <== NOT EXECUTED 11159c: e8 bf 1a 00 00 call 113060 <== NOT EXECUTED 1115a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return args.ioctl_return; } 1115a4: c9 leave <== NOT EXECUTED 1115a5: c3 ret <== NOT EXECUTED 001116c0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 1116c0: 55 push %ebp 1116c1: 89 e5 mov %esp,%ebp 1116c3: 83 ec 1c sub $0x1c,%esp 1116c6: 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; 1116c9: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 1116cc: 89 45 ec mov %eax,-0x14(%ebp) args.flags = iop->flags; 1116cf: 8b 40 14 mov 0x14(%eax),%eax 1116d2: 89 45 f0 mov %eax,-0x10(%ebp) args.mode = mode; 1116d5: 8b 45 14 mov 0x14(%ebp),%eax 1116d8: 89 45 f4 mov %eax,-0xc(%ebp) status = rtems_io_open( 1116db: 8d 45 ec lea -0x14(%ebp),%eax 1116de: 50 push %eax 1116df: ff 72 54 pushl 0x54(%edx) 1116e2: ff 72 50 pushl 0x50(%edx) 1116e5: e8 b6 14 00 00 call 112ba0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 1116ea: 83 c4 10 add $0x10,%esp 1116ed: 85 c0 test %eax,%eax 1116ef: 75 03 jne 1116f4 return rtems_deviceio_errno(status); return 0; } 1116f1: c9 leave 1116f2: c3 ret 1116f3: 90 nop <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 1116f4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1116f7: 50 push %eax <== NOT EXECUTED 1116f8: e8 63 19 00 00 call 113060 <== NOT EXECUTED 1116fd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; } 111700: c9 leave <== NOT EXECUTED 111701: c3 ret <== NOT EXECUTED 00111610 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 111610: 55 push %ebp <== NOT EXECUTED 111611: 89 e5 mov %esp,%ebp <== NOT EXECUTED 111613: 53 push %ebx <== NOT EXECUTED 111614: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED 111617: 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; 11161a: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED args.iop = iop; 11161d: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED args.offset = iop->offset; 111620: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED 111623: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 111626: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 111629: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED args.buffer = buffer; 11162c: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 11162f: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED args.count = count; 111632: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 111635: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED args.flags = iop->flags; 111638: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 11163b: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED args.bytes_moved = 0; 11163e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED status = rtems_io_read( 111645: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED 111648: 50 push %eax <== NOT EXECUTED 111649: ff 72 54 pushl 0x54(%edx) <== NOT EXECUTED 11164c: ff 72 50 pushl 0x50(%edx) <== NOT EXECUTED 11164f: e8 98 15 00 00 call 112bec <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 111654: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111657: 85 c0 test %eax,%eax <== NOT EXECUTED 111659: 75 09 jne 111664 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 11165b: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 11165e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 111661: c9 leave <== NOT EXECUTED 111662: c3 ret <== NOT EXECUTED 111663: 90 nop <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 111664: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111667: 50 push %eax <== NOT EXECUTED 111668: e8 f3 19 00 00 call 113060 <== NOT EXECUTED 11166d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 111670: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 111673: c9 leave <== NOT EXECUTED 111674: c3 ret <== NOT EXECUTED 001115a8 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 1115a8: 55 push %ebp 1115a9: 89 e5 mov %esp,%ebp 1115ab: 53 push %ebx 1115ac: 83 ec 28 sub $0x28,%esp 1115af: 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; 1115b2: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 1115b5: 89 45 dc mov %eax,-0x24(%ebp) args.offset = iop->offset; 1115b8: 8b 48 0c mov 0xc(%eax),%ecx 1115bb: 8b 58 10 mov 0x10(%eax),%ebx 1115be: 89 4d e0 mov %ecx,-0x20(%ebp) 1115c1: 89 5d e4 mov %ebx,-0x1c(%ebp) args.buffer = (void *) buffer; 1115c4: 8b 4d 0c mov 0xc(%ebp),%ecx 1115c7: 89 4d e8 mov %ecx,-0x18(%ebp) args.count = count; 1115ca: 8b 4d 10 mov 0x10(%ebp),%ecx 1115cd: 89 4d ec mov %ecx,-0x14(%ebp) args.flags = iop->flags; 1115d0: 8b 40 14 mov 0x14(%eax),%eax 1115d3: 89 45 f0 mov %eax,-0x10(%ebp) args.bytes_moved = 0; 1115d6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_write( 1115dd: 8d 45 dc lea -0x24(%ebp),%eax 1115e0: 50 push %eax 1115e1: ff 72 54 pushl 0x54(%edx) 1115e4: ff 72 50 pushl 0x50(%edx) 1115e7: e8 4c 16 00 00 call 112c38 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 1115ec: 83 c4 10 add $0x10,%esp 1115ef: 85 c0 test %eax,%eax 1115f1: 75 09 jne 1115fc return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 1115f3: 8b 45 f4 mov -0xc(%ebp),%eax } 1115f6: 8b 5d fc mov -0x4(%ebp),%ebx 1115f9: c9 leave 1115fa: c3 ret 1115fb: 90 nop <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 1115fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1115ff: 50 push %eax <== NOT EXECUTED 111600: e8 5b 1a 00 00 call 113060 <== NOT EXECUTED 111605: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 111608: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11160b: c9 leave <== NOT EXECUTED 11160c: 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 a2 1f 00 00 call 10bbdc <== 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 28 54 12 00 mov 0x125428,%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 0012b918 : fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(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 e9 16 00 mov 0x16e944,%eax <== NOT EXECUTED 12b923: 85 c0 test %eax,%eax <== NOT EXECUTED 12b925: 74 0c je 12b933 <== NOT EXECUTED fclose(group_fp); 12b927: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b92a: 50 push %eax <== NOT EXECUTED 12b92b: e8 c0 70 01 00 call 1429f0 <== NOT EXECUTED 12b930: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12b933: c9 leave <== NOT EXECUTED 12b934: c3 ret <== NOT EXECUTED 0012b938 : fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { 12b938: 55 push %ebp <== NOT EXECUTED 12b939: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b93b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (passwd_fp != NULL) 12b93e: a1 44 e8 16 00 mov 0x16e844,%eax <== NOT EXECUTED 12b943: 85 c0 test %eax,%eax <== NOT EXECUTED 12b945: 74 0c je 12b953 <== NOT EXECUTED fclose(passwd_fp); 12b947: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b94a: 50 push %eax <== NOT EXECUTED 12b94b: e8 a0 70 01 00 call 1429f0 <== NOT EXECUTED 12b950: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12b953: c9 leave <== NOT EXECUTED 12b954: 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 28 54 12 00 mov 0x125428,%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 16 0e 12 00 push $0x120e16 <== 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 28 54 12 00 mov 0x125428,%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 18 0e 12 00 push $0x120e18 <== 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 16 0e 12 00 push $0x120e16 <== 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 28 54 12 00 mov 0x125428,%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 0013cc04 : #include int fchdir( int fd ) { 13cc04: 55 push %ebp <== NOT EXECUTED 13cc05: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13cc07: 57 push %edi <== NOT EXECUTED 13cc08: 56 push %esi <== NOT EXECUTED 13cc09: 53 push %ebx <== NOT EXECUTED 13cc0a: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED 13cc0d: 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 ); 13cc10: 3b 1d 4c 71 16 00 cmp 0x16714c,%ebx <== NOT EXECUTED 13cc16: 0f 83 c8 00 00 00 jae 13cce4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 13cc1c: c1 e3 06 shl $0x6,%ebx <== NOT EXECUTED 13cc1f: 03 1d 58 ed 16 00 add 0x16ed58,%ebx <== NOT EXECUTED rtems_libio_check_is_open(iop); 13cc25: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 13cc28: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 13cc2b: 0f 84 b3 00 00 00 je 13cce4 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 13cc31: a8 02 test $0x2,%al <== NOT EXECUTED 13cc33: 0f 84 db 00 00 00 je 13cd14 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 13cc39: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 13cc3c: 85 c0 test %eax,%eax <== NOT EXECUTED 13cc3e: 0f 84 e2 00 00 00 je 13cd26 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 13cc44: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED 13cc47: 85 c0 test %eax,%eax <== NOT EXECUTED 13cc49: 0f 84 d7 00 00 00 je 13cd26 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 13cc4f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13cc52: 83 c3 18 add $0x18,%ebx <== NOT EXECUTED 13cc55: 53 push %ebx <== NOT EXECUTED 13cc56: ff d0 call *%eax <== NOT EXECUTED 13cc58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 13cc5b: 48 dec %eax <== NOT EXECUTED 13cc5c: 75 72 jne 13ccd0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 13cc5e: a1 84 92 16 00 mov 0x169284,%eax <== NOT EXECUTED 13cc63: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13cc66: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED 13cc69: 8d 70 04 lea 0x4(%eax),%esi <== NOT EXECUTED 13cc6c: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13cc71: 89 d7 mov %edx,%edi <== NOT EXECUTED 13cc73: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 13cc75: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED 13cc78: b1 05 mov $0x5,%cl <== NOT EXECUTED 13cc7a: 89 de mov %ebx,%esi <== NOT EXECUTED 13cc7c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 13cc7e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13cc81: 6a 00 push $0x0 <== NOT EXECUTED 13cc83: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED 13cc86: 56 push %esi <== NOT EXECUTED 13cc87: 6a 00 push $0x0 <== NOT EXECUTED 13cc89: 6a 01 push $0x1 <== NOT EXECUTED 13cc8b: 68 9c c0 15 00 push $0x15c09c <== NOT EXECUTED 13cc90: e8 17 01 fd ff call 10cdac <== NOT EXECUTED 13cc95: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 13cc98: 85 c0 test %eax,%eax <== NOT EXECUTED 13cc9a: 75 5c jne 13ccf8 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 13cc9c: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 13cc9f: 85 c0 test %eax,%eax <== NOT EXECUTED 13cca1: 74 13 je 13ccb6 <== NOT EXECUTED 13cca3: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 13cca6: 85 c0 test %eax,%eax <== NOT EXECUTED 13cca8: 74 0c je 13ccb6 <== NOT EXECUTED 13ccaa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13ccad: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13ccb0: 52 push %edx <== NOT EXECUTED 13ccb1: ff d0 call *%eax <== NOT EXECUTED 13ccb3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_current = loc; 13ccb6: 8b 3d 84 92 16 00 mov 0x169284,%edi <== NOT EXECUTED 13ccbc: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13ccbf: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13ccc4: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13ccc6: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; } 13ccc8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13cccb: 5b pop %ebx <== NOT EXECUTED 13cccc: 5e pop %esi <== NOT EXECUTED 13cccd: 5f pop %edi <== NOT EXECUTED 13ccce: c9 leave <== NOT EXECUTED 13cccf: 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 ); 13ccd0: e8 cf 5b 00 00 call 1428a4 <__errno> <== NOT EXECUTED 13ccd5: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 13ccdb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13cce0: eb e6 jmp 13ccc8 <== NOT EXECUTED 13cce2: 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); 13cce4: e8 bb 5b 00 00 call 1428a4 <__errno> <== NOT EXECUTED 13cce9: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13ccef: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13ccf4: eb d2 jmp 13ccc8 <== NOT EXECUTED 13ccf6: 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; 13ccf8: 8b 3d 84 92 16 00 mov 0x169284,%edi <== NOT EXECUTED 13ccfe: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13cd01: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13cd06: 8b 75 b4 mov -0x4c(%ebp),%esi <== NOT EXECUTED 13cd09: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13cd0b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 13cd10: eb b6 jmp 13ccc8 <== NOT EXECUTED 13cd12: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 13cd14: e8 8b 5b 00 00 call 1428a4 <__errno> <== NOT EXECUTED 13cd19: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 13cd1f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13cd24: eb a2 jmp 13ccc8 <== 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 ); 13cd26: e8 79 5b 00 00 call 1428a4 <__errno> <== NOT EXECUTED 13cd2b: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 13cd31: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13cd36: eb 90 jmp 13ccc8 <== NOT EXECUTED 0012b5f4 : int fchmod( int fd, mode_t mode ) { 12b5f4: 55 push %ebp <== NOT EXECUTED 12b5f5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b5f7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b5fa: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12b5fd: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b600: 3b 05 4c 71 16 00 cmp 0x16714c,%eax <== NOT EXECUTED 12b606: 73 34 jae 12b63c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12b608: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12b60b: 03 05 58 ed 16 00 add 0x16ed58,%eax <== NOT EXECUTED rtems_libio_check_is_open(iop); 12b611: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12b614: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12b617: 74 23 je 12b63c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b619: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12b61c: 74 32 je 12b650 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 12b61e: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 12b621: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED 12b624: 85 d2 test %edx,%edx <== NOT EXECUTED 12b626: 74 35 je 12b65d <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 12b628: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED 12b62b: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12b62e: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12b631: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12b634: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED } 12b637: 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 ); 12b638: ff e0 jmp *%eax <== NOT EXECUTED 12b63a: 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); 12b63c: e8 63 72 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b641: 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 ); } 12b647: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b64c: c9 leave <== NOT EXECUTED 12b64d: c3 ret <== NOT EXECUTED 12b64e: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b650: e8 4f 72 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b655: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12b65b: eb ea jmp 12b647 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b65d: e8 42 72 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b662: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b668: eb dd jmp 12b647 <== NOT EXECUTED 0012b66c : int fchown( int fd, uid_t owner, gid_t group ) { 12b66c: 55 push %ebp <== NOT EXECUTED 12b66d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b66f: 53 push %ebx <== NOT EXECUTED 12b670: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12b673: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12b676: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12b679: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b67c: 3b 05 4c 71 16 00 cmp 0x16714c,%eax <== NOT EXECUTED 12b682: 73 38 jae 12b6bc <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12b684: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12b687: 03 05 58 ed 16 00 add 0x16ed58,%eax <== NOT EXECUTED rtems_libio_check_is_open(iop); 12b68d: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12b690: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12b693: 74 27 je 12b6bc <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b695: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12b698: 74 36 je 12b6d0 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 12b69a: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED 12b69d: 8b 52 18 mov 0x18(%edx),%edx <== NOT EXECUTED 12b6a0: 85 d2 test %edx,%edx <== NOT EXECUTED 12b6a2: 74 39 je 12b6dd <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 12b6a4: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED 12b6a7: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12b6aa: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED 12b6ad: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12b6b0: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12b6b3: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12b6b6: 59 pop %ecx <== NOT EXECUTED 12b6b7: 5b pop %ebx <== NOT EXECUTED 12b6b8: 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 ); 12b6b9: ff e2 jmp *%edx <== NOT EXECUTED 12b6bb: 90 nop <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 12b6bc: e8 e3 71 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b6c1: 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 ); } 12b6c7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b6cc: 5a pop %edx <== NOT EXECUTED 12b6cd: 5b pop %ebx <== NOT EXECUTED 12b6ce: c9 leave <== NOT EXECUTED 12b6cf: 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 ); 12b6d0: e8 cf 71 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b6d5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12b6db: eb ea jmp 12b6c7 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b6dd: e8 c2 71 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b6e2: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b6e8: eb dd jmp 12b6c7 <== NOT EXECUTED 0013cd38 : int fcntl( int fd, int cmd, ... ) { 13cd38: 55 push %ebp 13cd39: 89 e5 mov %esp,%ebp 13cd3b: 57 push %edi 13cd3c: 56 push %esi 13cd3d: 53 push %ebx 13cd3e: 83 ec 1c sub $0x1c,%esp 13cd41: 8b 5d 08 mov 0x8(%ebp),%ebx 13cd44: 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, ...)); 13cd47: 8d 7d 10 lea 0x10(%ebp),%edi int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 13cd4a: 8b 35 4c 71 16 00 mov 0x16714c,%esi 13cd50: 39 f3 cmp %esi,%ebx 13cd52: 0f 83 3c 01 00 00 jae 13ce94 iop = rtems_libio_iop( fd ); 13cd58: a1 58 ed 16 00 mov 0x16ed58,%eax 13cd5d: c1 e3 06 shl $0x6,%ebx 13cd60: 8d 1c 18 lea (%eax,%ebx,1),%ebx rtems_libio_check_is_open(iop); 13cd63: 8b 4b 14 mov 0x14(%ebx),%ecx 13cd66: f6 c5 01 test $0x1,%ch 13cd69: 0f 84 25 01 00 00 je 13ce94 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 13cd6f: 83 fa 09 cmp $0x9,%edx 13cd72: 76 14 jbe 13cd88 errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 13cd74: e8 2b 5b 00 00 call 1428a4 <__errno> 13cd79: c7 00 16 00 00 00 movl $0x16,(%eax) 13cd7f: be ff ff ff ff mov $0xffffffff,%esi 13cd84: eb 1a jmp 13cda0 13cd86: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 13cd88: ff 24 95 6c 3f 16 00 jmp *0x163f6c(,%edx,4) 13cd8f: 90 nop <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 13cd90: e8 0f 5b 00 00 call 1428a4 <__errno> 13cd95: c7 00 86 00 00 00 movl $0x86,(%eax) 13cd9b: 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; } 13cda0: 89 f0 mov %esi,%eax 13cda2: 8d 65 f4 lea -0xc(%ebp),%esp 13cda5: 5b pop %ebx 13cda6: 5e pop %esi 13cda7: 5f pop %edi 13cda8: c9 leave 13cda9: c3 ret 13cdaa: 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 ) ); 13cdac: 83 ec 0c sub $0xc,%esp 13cdaf: ff 37 pushl (%edi) 13cdb1: 89 55 e0 mov %edx,-0x20(%ebp) 13cdb4: e8 5f 04 fd ff call 10d218 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 13cdb9: 25 01 02 00 00 and $0x201,%eax 13cdbe: 8b 4b 14 mov 0x14(%ebx),%ecx 13cdc1: 81 e1 fe fd ff ff and $0xfffffdfe,%ecx 13cdc7: 09 c8 or %ecx,%eax 13cdc9: 89 43 14 mov %eax,0x14(%ebx) 13cdcc: 31 f6 xor %esi,%esi 13cdce: 83 c4 10 add $0x10,%esp 13cdd1: 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) { 13cdd4: 8b 43 3c mov 0x3c(%ebx),%eax 13cdd7: 8b 40 30 mov 0x30(%eax),%eax 13cdda: 85 c0 test %eax,%eax 13cddc: 74 c2 je 13cda0 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 13cdde: 83 ec 08 sub $0x8,%esp 13cde1: 53 push %ebx 13cde2: 52 push %edx 13cde3: ff d0 call *%eax 13cde5: 89 c3 mov %eax,%ebx if (err) { 13cde7: 83 c4 10 add $0x10,%esp 13cdea: 85 c0 test %eax,%eax 13cdec: 74 b2 je 13cda0 errno = err; 13cdee: e8 b1 5a 00 00 call 1428a4 <__errno> <== NOT EXECUTED 13cdf3: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 13cdf5: 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; } 13cdfa: 89 f0 mov %esi,%eax <== NOT EXECUTED 13cdfc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13cdff: 5b pop %ebx <== NOT EXECUTED 13ce00: 5e pop %esi <== NOT EXECUTED 13ce01: 5f pop %edi <== NOT EXECUTED 13ce02: c9 leave <== NOT EXECUTED 13ce03: 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 ); 13ce04: 83 ec 0c sub $0xc,%esp 13ce07: 51 push %ecx 13ce08: 89 55 e0 mov %edx,-0x20(%ebp) 13ce0b: e8 1c 02 fd ff call 10d02c 13ce10: 89 c6 mov %eax,%esi 13ce12: 83 c4 10 add $0x10,%esp 13ce15: 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) { 13ce18: 85 f6 test %esi,%esi 13ce1a: 79 b8 jns 13cdd4 13ce1c: eb 82 jmp 13cda0 <== NOT EXECUTED 13ce1e: 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 ) ) 13ce20: 8b 07 mov (%edi),%eax 13ce22: 85 c0 test %eax,%eax 13ce24: 74 52 je 13ce78 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 13ce26: 80 cd 08 or $0x8,%ch 13ce29: 89 4b 14 mov %ecx,0x14(%ebx) 13ce2c: 31 f6 xor %esi,%esi 13ce2e: eb a4 jmp 13cdd4 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); 13ce30: 89 ce mov %ecx,%esi 13ce32: c1 ee 0b shr $0xb,%esi 13ce35: 83 e6 01 and $0x1,%esi 13ce38: eb 9a jmp 13cdd4 13ce3a: 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 ); 13ce3c: 8b 3f mov (%edi),%edi if ( fd2 ) 13ce3e: 85 ff test %edi,%edi 13ce40: 74 6a je 13ceac diop = rtems_libio_iop( fd2 ); 13ce42: 39 fe cmp %edi,%esi <== NOT EXECUTED 13ce44: 77 42 ja 13ce88 <== NOT EXECUTED 13ce46: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 13ce4d: 31 ff xor %edi,%edi <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 13ce4f: 8b 73 3c mov 0x3c(%ebx),%esi 13ce52: 89 77 3c mov %esi,0x3c(%edi) diop->file_info = iop->file_info; 13ce55: 8b 73 38 mov 0x38(%ebx),%esi 13ce58: 89 77 38 mov %esi,0x38(%edi) diop->flags = iop->flags; 13ce5b: 89 4f 14 mov %ecx,0x14(%edi) diop->pathinfo = iop->pathinfo; 13ce5e: 83 c7 18 add $0x18,%edi 13ce61: 8d 73 18 lea 0x18(%ebx),%esi 13ce64: b9 05 00 00 00 mov $0x5,%ecx 13ce69: f3 a5 rep movsl %ds:(%esi),%es:(%edi) ret = (int) (diop - rtems_libio_iops); 13ce6b: 8b 75 e4 mov -0x1c(%ebp),%esi 13ce6e: 29 c6 sub %eax,%esi 13ce70: c1 fe 06 sar $0x6,%esi 13ce73: eb a3 jmp 13ce18 13ce75: 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; 13ce78: 80 e5 f7 and $0xf7,%ch <== NOT EXECUTED 13ce7b: 89 4b 14 mov %ecx,0x14(%ebx) <== NOT EXECUTED 13ce7e: 31 f6 xor %esi,%esi <== NOT EXECUTED 13ce80: e9 4f ff ff ff jmp 13cdd4 <== NOT EXECUTED 13ce85: 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 ); 13ce88: c1 e7 06 shl $0x6,%edi <== NOT EXECUTED 13ce8b: 8d 3c 38 lea (%eax,%edi,1),%edi <== NOT EXECUTED 13ce8e: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 13ce91: eb bc jmp 13ce4f <== NOT EXECUTED 13ce93: 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); 13ce94: e8 0b 5a 00 00 call 1428a4 <__errno> <== NOT EXECUTED 13ce99: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13ce9f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 13cea4: e9 f7 fe ff ff jmp 13cda0 <== NOT EXECUTED 13cea9: 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(); 13ceac: 89 55 e0 mov %edx,-0x20(%ebp) 13ceaf: e8 d8 02 fd ff call 10d18c 13ceb4: 89 c7 mov %eax,%edi if ( diop == 0 ) { 13ceb6: 85 c0 test %eax,%eax 13ceb8: 8b 55 e0 mov -0x20(%ebp),%edx 13cebb: 0f 84 34 ff ff ff je 13cdf5 13cec1: 89 45 e4 mov %eax,-0x1c(%ebp) 13cec4: a1 58 ed 16 00 mov 0x16ed58,%eax 13cec9: 8b 4b 14 mov 0x14(%ebx),%ecx 13cecc: eb 81 jmp 13ce4f 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 8c 6c 12 00 cmp 0x126c8c,%eax 10913b: 73 27 jae 109164 iop = rtems_libio_iop( fd ); 10913d: c1 e0 06 shl $0x6,%eax 109140: 03 05 a0 ad 12 00 add 0x12ada0,%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 0b cf 00 00 call 116074 <__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 f7 ce 00 00 call 116074 <__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 ea ce 00 00 call 116074 <__errno> 10918a: c7 00 86 00 00 00 movl $0x86,(%eax) 109190: eb dd jmp 10916f 00111c98 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 111c98: 55 push %ebp 111c99: 89 e5 mov %esp,%ebp 111c9b: 57 push %edi 111c9c: 56 push %esi 111c9d: 53 push %ebx 111c9e: 83 ec 30 sub $0x30,%esp 111ca1: 8b 75 08 mov 0x8(%ebp),%esi ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 111ca4: 6a 00 push $0x0 111ca6: 6a 00 push $0x0 111ca8: ff 35 4c 73 12 00 pushl 0x12734c 111cae: e8 ed 98 ff ff call 10b5a0 111cb3: 83 c4 10 add $0x10,%esp 111cb6: 85 c0 test %eax,%eax 111cb8: 0f 85 82 00 00 00 jne 111d40 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 111cbe: 8b 1e mov (%esi),%ebx <== NOT EXECUTED if (pipe == NULL) { 111cc0: 85 db test %ebx,%ebx <== NOT EXECUTED 111cc2: 0f 84 d0 01 00 00 je 111e98 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 111cc8: 57 push %edi <== NOT EXECUTED 111cc9: 6a 00 push $0x0 <== NOT EXECUTED 111ccb: 6a 00 push $0x0 <== NOT EXECUTED 111ccd: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111cd0: e8 cb 98 ff ff call 10b5a0 <== NOT EXECUTED 111cd5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111cd8: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 111cdb: 19 ff sbb %edi,%edi <== NOT EXECUTED 111cdd: f7 d7 not %edi <== NOT EXECUTED 111cdf: 83 e7 fc and $0xfffffffc,%edi <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 111ce2: 8b 0e mov (%esi),%ecx <== NOT EXECUTED 111ce4: 85 c9 test %ecx,%ecx <== NOT EXECUTED 111ce6: 0f 84 d8 00 00 00 je 111dc4 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 111cec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111cef: ff 35 4c 73 12 00 pushl 0x12734c <== NOT EXECUTED 111cf5: e8 a2 99 ff ff call 10b69c <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 111cfa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111cfd: 85 ff test %edi,%edi <== NOT EXECUTED 111cff: 75 34 jne 111d35 <== NOT EXECUTED return err; pipe = *pipep; 111d01: 8b 1e mov (%esi),%ebx <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 111d03: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 111d06: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 111d09: 89 d0 mov %edx,%eax <== NOT EXECUTED 111d0b: 83 e0 06 and $0x6,%eax <== NOT EXECUTED 111d0e: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED 111d11: 74 3d je 111d50 <== NOT EXECUTED 111d13: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED 111d16: 0f 84 3c 01 00 00 je 111e58 <== NOT EXECUTED 111d1c: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 111d1f: 0f 84 bf 00 00 00 je 111de4 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 111d25: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111d28: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111d2b: e8 6c 99 ff ff call 10b69c <== NOT EXECUTED 111d30: 31 ff xor %edi,%edi <== NOT EXECUTED return 0; 111d32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED out_error: pipe_release(pipep, iop); return err; } 111d35: 89 f8 mov %edi,%eax <== NOT EXECUTED 111d37: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111d3a: 5b pop %ebx <== NOT EXECUTED 111d3b: 5e pop %esi <== NOT EXECUTED 111d3c: 5f pop %edi <== NOT EXECUTED 111d3d: c9 leave <== NOT EXECUTED 111d3e: c3 ret <== NOT EXECUTED 111d3f: 90 nop <== NOT EXECUTED ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 111d40: bf fc ff ff ff mov $0xfffffffc,%edi return 0; out_error: pipe_release(pipep, iop); return err; } 111d45: 89 f8 mov %edi,%eax 111d47: 8d 65 f4 lea -0xc(%ebp),%esp 111d4a: 5b pop %ebx 111d4b: 5e pop %esi 111d4c: 5f pop %edi 111d4d: c9 leave 111d4e: c3 ret 111d4f: 90 nop <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 111d50: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 111d53: 85 c0 test %eax,%eax <== NOT EXECUTED 111d55: 75 09 jne 111d60 <== NOT EXECUTED 111d57: 83 e2 01 and $0x1,%edx <== NOT EXECUTED 111d5a: 0f 85 a0 02 00 00 jne 112000 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 111d60: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED if (pipe->Writers ++ == 0) 111d63: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111d66: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111d69: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 111d6c: 85 c0 test %eax,%eax <== NOT EXECUTED 111d6e: 0f 84 d8 02 00 00 je 11204c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { 111d74: 8b 7b 10 mov 0x10(%ebx),%edi <== NOT EXECUTED 111d77: 85 ff test %edi,%edi <== NOT EXECUTED 111d79: 75 aa jne 111d25 <== NOT EXECUTED prevCounter = pipe->readerCounter; 111d7b: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED 111d7e: eb 19 jmp 111d99 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 111d80: 50 push %eax <== NOT EXECUTED 111d81: 6a 00 push $0x0 <== NOT EXECUTED 111d83: 6a 00 push $0x0 <== NOT EXECUTED 111d85: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111d88: e8 13 98 ff ff call 10b5a0 <== NOT EXECUTED 111d8d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111d90: 85 c0 test %eax,%eax <== NOT EXECUTED 111d92: 75 23 jne 111db7 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 111d94: 39 7b 20 cmp %edi,0x20(%ebx) <== NOT EXECUTED 111d97: 75 8c jne 111d25 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 111d99: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111d9c: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111d9f: e8 f8 98 ff ff call 10b69c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 111da4: 5a pop %edx <== NOT EXECUTED 111da5: 59 pop %ecx <== NOT EXECUTED 111da6: 6a 00 push $0x0 <== NOT EXECUTED 111da8: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111dab: e8 b4 0b 00 00 call 112964 <== NOT EXECUTED 111db0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111db3: 85 c0 test %eax,%eax <== NOT EXECUTED 111db5: 74 c9 je 111d80 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 111db7: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 111dbc: e9 44 02 00 00 jmp 112005 <== NOT EXECUTED 111dc1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 111dc4: 85 ff test %edi,%edi <== NOT EXECUTED 111dc6: 0f 85 98 02 00 00 jne 112064 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; 111dcc: 89 1e mov %ebx,(%esi) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); 111dce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111dd1: ff 35 4c 73 12 00 pushl 0x12734c <== NOT EXECUTED 111dd7: e8 c0 98 ff ff call 10b69c <== NOT EXECUTED 111ddc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111ddf: e9 1d ff ff ff jmp 111d01 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 111de4: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED if (pipe->Readers ++ == 0) 111de7: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 111dea: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111ded: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 111df0: 85 c0 test %eax,%eax <== NOT EXECUTED 111df2: 0f 84 3c 02 00 00 je 112034 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 111df8: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED 111dfb: 85 d2 test %edx,%edx <== NOT EXECUTED 111dfd: 0f 85 22 ff ff ff jne 111d25 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 111e03: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 111e06: f6 42 14 01 testb $0x1,0x14(%edx) <== NOT EXECUTED 111e0a: 0f 85 15 ff ff ff jne 111d25 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 111e10: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED 111e13: eb 20 jmp 111e35 <== NOT EXECUTED 111e15: 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)) 111e18: 52 push %edx <== NOT EXECUTED 111e19: 6a 00 push $0x0 <== NOT EXECUTED 111e1b: 6a 00 push $0x0 <== NOT EXECUTED 111e1d: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111e20: e8 7b 97 ff ff call 10b5a0 <== NOT EXECUTED 111e25: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111e28: 85 c0 test %eax,%eax <== NOT EXECUTED 111e2a: 75 8b jne 111db7 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 111e2c: 39 7b 24 cmp %edi,0x24(%ebx) <== NOT EXECUTED 111e2f: 0f 85 f0 fe ff ff jne 111d25 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 111e35: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111e38: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111e3b: e8 5c 98 ff ff call 10b69c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 111e40: 59 pop %ecx <== NOT EXECUTED 111e41: 58 pop %eax <== NOT EXECUTED 111e42: 6a 00 push $0x0 <== NOT EXECUTED 111e44: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111e47: e8 18 0b 00 00 call 112964 <== NOT EXECUTED 111e4c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111e4f: 85 c0 test %eax,%eax <== NOT EXECUTED 111e51: 74 c5 je 111e18 <== NOT EXECUTED 111e53: e9 5f ff ff ff jmp 111db7 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 111e58: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED if (pipe->Readers ++ == 0) 111e5b: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 111e5e: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111e61: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 111e64: 85 c0 test %eax,%eax <== NOT EXECUTED 111e66: 0f 84 b0 01 00 00 je 11201c <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 111e6c: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED if (pipe->Writers ++ == 0) 111e6f: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111e72: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111e75: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 111e78: 85 c0 test %eax,%eax <== NOT EXECUTED 111e7a: 0f 85 a5 fe ff ff jne 111d25 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 111e80: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111e83: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111e86: 50 push %eax <== NOT EXECUTED 111e87: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111e8a: e8 71 0a 00 00 call 112900 <== NOT EXECUTED 111e8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111e92: e9 8e fe ff ff jmp 111d25 <== NOT EXECUTED 111e97: 90 nop <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 111e98: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111e9b: 6a 34 push $0x34 <== NOT EXECUTED 111e9d: e8 ca 63 ff ff call 10826c <== NOT EXECUTED 111ea2: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED 111ea5: 89 c3 mov %eax,%ebx <== NOT EXECUTED if (pipe == NULL) 111ea7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111eaa: 85 c0 test %eax,%eax <== NOT EXECUTED 111eac: 0f 84 f6 01 00 00 je 1120a8 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 111eb2: b9 34 00 00 00 mov $0x34,%ecx <== NOT EXECUTED 111eb7: 31 c0 xor %eax,%eax <== NOT EXECUTED 111eb9: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED 111ebc: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED pipe->Size = PIPE_BUF; 111ebe: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 111ec1: c7 40 04 00 02 00 00 movl $0x200,0x4(%eax) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 111ec8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111ecb: 68 00 02 00 00 push $0x200 <== NOT EXECUTED 111ed0: e8 97 63 ff ff call 10826c <== NOT EXECUTED 111ed5: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 111ed8: 89 02 mov %eax,(%edx) <== NOT EXECUTED if (! pipe->Buffer) 111eda: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111edd: 85 c0 test %eax,%eax <== NOT EXECUTED 111edf: 0f 84 cf 01 00 00 je 1120b4 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 111ee5: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED 111ee8: 50 push %eax <== NOT EXECUTED 111ee9: 6a 00 push $0x0 <== NOT EXECUTED 111eeb: 6a 00 push $0x0 <== NOT EXECUTED 111eed: 0f be 05 14 54 12 00 movsbl 0x125414,%eax <== NOT EXECUTED 111ef4: 0d 00 72 49 50 or $0x50497200,%eax <== NOT EXECUTED 111ef9: 50 push %eax <== NOT EXECUTED 111efa: e8 b1 08 00 00 call 1127b0 <== NOT EXECUTED 111eff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111f02: 85 c0 test %eax,%eax <== NOT EXECUTED 111f04: 0f 85 cd 00 00 00 jne 111fd7 <== 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( 111f0a: 8d 43 30 lea 0x30(%ebx),%eax <== NOT EXECUTED 111f0d: 50 push %eax <== NOT EXECUTED 111f0e: 6a 00 push $0x0 <== NOT EXECUTED 111f10: 6a 00 push $0x0 <== NOT EXECUTED 111f12: 0f be 05 14 54 12 00 movsbl 0x125414,%eax <== NOT EXECUTED 111f19: 0d 00 77 49 50 or $0x50497700,%eax <== NOT EXECUTED 111f1e: 50 push %eax <== NOT EXECUTED 111f1f: e8 8c 08 00 00 call 1127b0 <== NOT EXECUTED 111f24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111f27: 85 c0 test %eax,%eax <== NOT EXECUTED 111f29: 0f 85 97 00 00 00 jne 111fc6 <== 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( 111f2f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111f32: 8d 43 28 lea 0x28(%ebx),%eax <== NOT EXECUTED 111f35: 50 push %eax <== NOT EXECUTED 111f36: 6a 00 push $0x0 <== NOT EXECUTED 111f38: 6a 10 push $0x10 <== NOT EXECUTED 111f3a: 6a 01 push $0x1 <== NOT EXECUTED 111f3c: 0f be 05 14 54 12 00 movsbl 0x125414,%eax <== NOT EXECUTED 111f43: 0d 00 73 49 50 or $0x50497300,%eax <== NOT EXECUTED 111f48: 50 push %eax <== NOT EXECUTED 111f49: e8 da 93 ff ff call 10b328 <== NOT EXECUTED 111f4e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 111f51: 85 c0 test %eax,%eax <== NOT EXECUTED 111f53: 75 60 jne 111fb5 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 111f55: 50 push %eax <== NOT EXECUTED 111f56: 8d 7d e0 lea -0x20(%ebp),%edi <== NOT EXECUTED 111f59: 57 push %edi <== NOT EXECUTED 111f5a: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111f5d: 68 a0 81 12 00 push $0x1281a0 <== NOT EXECUTED 111f62: e8 19 ad ff ff call 10cc80 <_Objects_Get> <== NOT EXECUTED /* Set barriers to be interruptible by signals. */ static void pipe_interruptible(pipe_control_t *pipe) { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state 111f67: 81 48 4c 00 00 00 10 orl $0x10000000,0x4c(%eax) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 111f6e: e8 81 b5 ff ff call 10d4f4 <_Thread_Enable_dispatch> <== NOT EXECUTED 111f73: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 111f76: 57 push %edi <== NOT EXECUTED 111f77: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111f7a: 68 a0 81 12 00 push $0x1281a0 <== NOT EXECUTED 111f7f: e8 fc ac ff ff call 10cc80 <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 111f84: 81 48 4c 00 00 00 10 orl $0x10000000,0x4c(%eax) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 111f8b: e8 64 b5 ff ff call 10d4f4 <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 111f90: a0 14 54 12 00 mov 0x125414,%al <== NOT EXECUTED 111f95: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111f98: 88 15 14 54 12 00 mov %dl,0x125414 <== NOT EXECUTED 111f9e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111fa1: 3c 7a cmp $0x7a,%al <== NOT EXECUTED 111fa3: 0f 85 1f fd ff ff jne 111cc8 <== NOT EXECUTED c = 'a'; 111fa9: c6 05 14 54 12 00 61 movb $0x61,0x125414 <== NOT EXECUTED 111fb0: e9 13 fd ff ff jmp 111cc8 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 111fb5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111fb8: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 111fbb: ff 70 30 pushl 0x30(%eax) <== NOT EXECUTED 111fbe: e8 d5 08 00 00 call 112898 <== NOT EXECUTED 111fc3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 111fc6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111fc9: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 111fcc: ff 72 2c pushl 0x2c(%edx) <== NOT EXECUTED 111fcf: e8 c4 08 00 00 call 112898 <== NOT EXECUTED 111fd4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED err_rbar: free(pipe->Buffer); 111fd7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111fda: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 111fdd: ff 30 pushl (%eax) <== NOT EXECUTED 111fdf: e8 38 60 ff ff call 10801c <== NOT EXECUTED 111fe4: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 111fe9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED err_buf: free(pipe); 111fec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111fef: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 111ff2: e8 25 60 ff ff call 10801c <== NOT EXECUTED 111ff7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111ffa: e9 ed fc ff ff jmp 111cec <== NOT EXECUTED 111fff: 90 nop <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 112000: bf fa ff ff ff mov $0xfffffffa,%edi <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; out_error: pipe_release(pipep, iop); 112005: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 112008: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 11200b: 56 push %esi <== NOT EXECUTED 11200c: e8 73 fb ff ff call 111b84 <== NOT EXECUTED return err; 112011: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 112014: e9 1c fd ff ff jmp 111d35 <== NOT EXECUTED 112019: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 11201c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11201f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 112022: 50 push %eax <== NOT EXECUTED 112023: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 112026: e8 d5 08 00 00 call 112900 <== NOT EXECUTED 11202b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11202e: e9 39 fe ff ff jmp 111e6c <== NOT EXECUTED 112033: 90 nop <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 112034: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 112037: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 11203a: 50 push %eax <== NOT EXECUTED 11203b: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 11203e: e8 bd 08 00 00 call 112900 <== NOT EXECUTED 112043: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 112046: e9 ad fd ff ff jmp 111df8 <== NOT EXECUTED 11204b: 90 nop <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 11204c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11204f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 112052: 50 push %eax <== NOT EXECUTED 112053: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 112056: e8 a5 08 00 00 call 112900 <== NOT EXECUTED 11205b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11205e: e9 11 fd ff ff jmp 111d74 <== NOT EXECUTED 112063: 90 nop <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 112064: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112067: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 11206a: e8 29 08 00 00 call 112898 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 11206f: 5a pop %edx <== NOT EXECUTED 112070: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 112073: e8 20 08 00 00 call 112898 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 112078: 58 pop %eax <== NOT EXECUTED 112079: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11207c: e8 7b 94 ff ff call 10b4fc <== NOT EXECUTED free(pipe->Buffer); 112081: 5e pop %esi <== NOT EXECUTED 112082: ff 33 pushl (%ebx) <== NOT EXECUTED 112084: e8 93 5f ff ff call 10801c <== NOT EXECUTED free(pipe); 112089: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 11208c: e8 8b 5f ff ff call 10801c <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 112091: 59 pop %ecx <== NOT EXECUTED 112092: ff 35 4c 73 12 00 pushl 0x12734c <== NOT EXECUTED 112098: e8 ff 95 ff ff call 10b69c <== NOT EXECUTED 11209d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1120a0: e9 90 fc ff ff jmp 111d35 <== NOT EXECUTED 1120a5: 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) 1120a8: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 1120ad: e9 3a fc ff ff jmp 111cec <== NOT EXECUTED 1120b2: 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) 1120b4: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 1120b9: e9 2e ff ff ff jmp 111fec <== 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 ed 16 00 mov 0x16edac,%eax <== NOT EXECUTED 11042c: 3d b0 ed 16 00 cmp $0x16edb0,%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 ed 16 00 cmp $0x16edb0,%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 8c 6c 12 00 cmp 0x126c8c,%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 a0 ad 12 00 add 0x12ada0,%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 a1 ce 00 00 call 116074 <__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 d8 43 12 00 jmp *0x1243d8(,%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 27 ce 00 00 call 116074 <__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 ac 75 12 00 incl 0x1275ac 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 e0 78 12 00 03 cmpl $0x3,0x1278e0 108037: 74 47 je 108080 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 108039: a1 48 59 12 00 mov 0x125948,%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 78 34 12 00 pushl 0x123478 108056: e8 25 4f 00 00 call 10cf80 <_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 78 34 12 00 mov 0x123478,%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 dc 0d 12 00 push $0x120ddc <== 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 0012c83c : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 12c83c: 55 push %ebp <== NOT EXECUTED 12c83d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c83f: 53 push %ebx <== NOT EXECUTED 12c840: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12c843: 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 12c846: 81 fb e0 ed 16 00 cmp $0x16ede0,%ebx <== NOT EXECUTED 12c84c: 74 42 je 12c890 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 12c84e: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 12c851: 85 c0 test %eax,%eax <== NOT EXECUTED 12c853: 74 13 je 12c868 <== NOT EXECUTED 12c855: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c858: 85 c0 test %eax,%eax <== NOT EXECUTED 12c85a: 74 0c je 12c868 <== NOT EXECUTED 12c85c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c85f: 8d 53 04 lea 0x4(%ebx),%edx <== NOT EXECUTED 12c862: 52 push %edx <== NOT EXECUTED 12c863: ff d0 call *%eax <== NOT EXECUTED 12c865: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 12c868: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 12c86b: 85 c0 test %eax,%eax <== NOT EXECUTED 12c86d: 74 13 je 12c882 <== NOT EXECUTED 12c86f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c872: 85 c0 test %eax,%eax <== NOT EXECUTED 12c874: 74 0c je 12c882 <== NOT EXECUTED 12c876: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c879: 8d 53 18 lea 0x18(%ebx),%edx <== NOT EXECUTED 12c87c: 52 push %edx <== NOT EXECUTED 12c87d: ff d0 call *%eax <== NOT EXECUTED 12c87f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED free(env); 12c882: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED } } 12c885: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c888: c9 leave <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 12c889: e9 d2 05 fe ff jmp 10ce60 <== NOT EXECUTED 12c88e: 66 90 xchg %ax,%ax <== NOT EXECUTED } } 12c890: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c893: c9 leave <== NOT EXECUTED 12c894: c3 ret <== NOT EXECUTED 0011eae0 : int fstat( int fd, struct stat *sbuf ) { 11eae0: 55 push %ebp 11eae1: 89 e5 mov %esp,%ebp 11eae3: 57 push %edi 11eae4: 53 push %ebx 11eae5: 8b 55 08 mov 0x8(%ebp),%edx 11eae8: 8b 5d 0c mov 0xc(%ebp),%ebx /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 11eaeb: 85 db test %ebx,%ebx 11eaed: 74 66 je 11eb55 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 11eaef: 3b 15 6c 34 12 00 cmp 0x12346c,%edx 11eaf5: 73 3d jae 11eb34 11eaf7: c1 e2 06 shl $0x6,%edx 11eafa: 03 15 80 75 12 00 add 0x127580,%edx rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 11eb00: f6 42 15 01 testb $0x1,0x15(%edx) 11eb04: 74 2e je 11eb34 if ( !iop->handlers ) 11eb06: 8b 42 3c mov 0x3c(%edx),%eax 11eb09: 85 c0 test %eax,%eax 11eb0b: 74 27 je 11eb34 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 11eb0d: 8b 40 18 mov 0x18(%eax),%eax 11eb10: 85 c0 test %eax,%eax 11eb12: 74 34 je 11eb48 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 11eb14: b9 48 00 00 00 mov $0x48,%ecx 11eb19: 31 c0 xor %eax,%eax 11eb1b: 89 df mov %ebx,%edi 11eb1d: f3 aa rep stos %al,%es:(%edi) return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 11eb1f: 8b 42 3c mov 0x3c(%edx),%eax 11eb22: 89 5d 0c mov %ebx,0xc(%ebp) 11eb25: 83 c2 18 add $0x18,%edx 11eb28: 89 55 08 mov %edx,0x8(%ebp) 11eb2b: 8b 40 18 mov 0x18(%eax),%eax } 11eb2e: 5b pop %ebx 11eb2f: 5f pop %edi 11eb30: 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 ); 11eb31: ff e0 jmp *%eax 11eb33: 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 ); 11eb34: e8 5b 4d ff ff call 113894 <__errno> 11eb39: 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 ); } 11eb3f: b8 ff ff ff ff mov $0xffffffff,%eax 11eb44: 5b pop %ebx 11eb45: 5f pop %edi 11eb46: c9 leave 11eb47: 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 ); 11eb48: e8 47 4d ff ff call 113894 <__errno> <== NOT EXECUTED 11eb4d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11eb53: eb ea jmp 11eb3f <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 11eb55: e8 3a 4d ff ff call 113894 <__errno> 11eb5a: c7 00 0e 00 00 00 movl $0xe,(%eax) 11eb60: eb dd jmp 11eb3f 0012b788 : #include int fsync( int fd ) { 12b788: 55 push %ebp 12b789: 89 e5 mov %esp,%ebp 12b78b: 83 ec 08 sub $0x8,%esp 12b78e: 8b 45 08 mov 0x8(%ebp),%eax rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b791: 3b 05 4c 71 16 00 cmp 0x16714c,%eax 12b797: 73 2b jae 12b7c4 iop = rtems_libio_iop( fd ); 12b799: c1 e0 06 shl $0x6,%eax 12b79c: 03 05 58 ed 16 00 add 0x16ed58,%eax rtems_libio_check_is_open(iop); 12b7a2: 8b 50 14 mov 0x14(%eax),%edx 12b7a5: f6 c6 01 test $0x1,%dh 12b7a8: 74 1a je 12b7c4 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b7aa: 83 e2 04 and $0x4,%edx 12b7ad: 74 29 je 12b7d8 /* * Now process the fsync(). */ if ( !iop->handlers ) 12b7af: 8b 50 3c mov 0x3c(%eax),%edx 12b7b2: 85 d2 test %edx,%edx 12b7b4: 74 0e je 12b7c4 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 12b7b6: 8b 52 28 mov 0x28(%edx),%edx 12b7b9: 85 d2 test %edx,%edx 12b7bb: 74 28 je 12b7e5 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 12b7bd: 89 45 08 mov %eax,0x8(%ebp) } 12b7c0: 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 ); 12b7c1: ff e2 jmp *%edx 12b7c3: 90 nop <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 12b7c4: e8 db 70 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12b7c9: 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 ); } 12b7cf: b8 ff ff ff ff mov $0xffffffff,%eax 12b7d4: c9 leave 12b7d5: c3 ret 12b7d6: 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 ); 12b7d8: e8 c7 70 01 00 call 1428a4 <__errno> 12b7dd: c7 00 16 00 00 00 movl $0x16,(%eax) 12b7e3: eb ea jmp 12b7cf if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b7e5: e8 ba 70 01 00 call 1428a4 <__errno> 12b7ea: c7 00 86 00 00 00 movl $0x86,(%eax) 12b7f0: eb dd jmp 12b7cf 0010f9d8 : int ftruncate( int fd, off_t length ) { 10f9d8: 55 push %ebp 10f9d9: 89 e5 mov %esp,%ebp 10f9db: 57 push %edi 10f9dc: 56 push %esi 10f9dd: 53 push %ebx 10f9de: 83 ec 3c sub $0x3c,%esp 10f9e1: 8b 5d 08 mov 0x8(%ebp),%ebx 10f9e4: 8b 45 0c mov 0xc(%ebp),%eax 10f9e7: 8b 55 10 mov 0x10(%ebp),%edx 10f9ea: 89 45 c0 mov %eax,-0x40(%ebp) 10f9ed: 89 55 c4 mov %edx,-0x3c(%ebp) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 10f9f0: 3b 1d 6c 34 12 00 cmp 0x12346c,%ebx 10f9f6: 73 5c jae 10fa54 iop = rtems_libio_iop( fd ); 10f9f8: c1 e3 06 shl $0x6,%ebx 10f9fb: 03 1d 80 75 12 00 add 0x127580,%ebx rtems_libio_check_is_open(iop); 10fa01: f6 43 15 01 testb $0x1,0x15(%ebx) 10fa05: 74 4d je 10fa54 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 10fa07: 8d 45 d4 lea -0x2c(%ebp),%eax 10fa0a: 8d 73 18 lea 0x18(%ebx),%esi 10fa0d: b9 05 00 00 00 mov $0x5,%ecx 10fa12: 89 c7 mov %eax,%edi 10fa14: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->node_type_h ) 10fa16: 8b 55 e0 mov -0x20(%ebp),%edx 10fa19: 8b 52 10 mov 0x10(%edx),%edx 10fa1c: 85 d2 test %edx,%edx 10fa1e: 74 5c je 10fa7c rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 10fa20: 83 ec 0c sub $0xc,%esp 10fa23: 50 push %eax 10fa24: ff d2 call *%edx 10fa26: 83 c4 10 add $0x10,%esp 10fa29: 48 dec %eax 10fa2a: 74 62 je 10fa8e rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 10fa2c: f6 43 14 04 testb $0x4,0x14(%ebx) 10fa30: 74 36 je 10fa68 if ( !iop->handlers->ftruncate_h ) 10fa32: 8b 43 3c mov 0x3c(%ebx),%eax 10fa35: 8b 40 20 mov 0x20(%eax),%eax 10fa38: 85 c0 test %eax,%eax 10fa3a: 74 40 je 10fa7c rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 10fa3c: 52 push %edx 10fa3d: ff 75 c4 pushl -0x3c(%ebp) 10fa40: ff 75 c0 pushl -0x40(%ebp) 10fa43: 53 push %ebx 10fa44: ff d0 call *%eax 10fa46: 83 c4 10 add $0x10,%esp } 10fa49: 8d 65 f4 lea -0xc(%ebp),%esp 10fa4c: 5b pop %ebx 10fa4d: 5e pop %esi 10fa4e: 5f pop %edi 10fa4f: c9 leave 10fa50: c3 ret 10fa51: 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); 10fa54: e8 3b 3e 00 00 call 113894 <__errno> <== NOT EXECUTED 10fa59: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 10fa5f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10fa64: eb e3 jmp 10fa49 <== NOT EXECUTED 10fa66: 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 ); 10fa68: e8 27 3e 00 00 call 113894 <__errno> <== NOT EXECUTED 10fa6d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10fa73: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10fa78: eb cf jmp 10fa49 <== NOT EXECUTED 10fa7a: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 10fa7c: e8 13 3e 00 00 call 113894 <__errno> <== NOT EXECUTED 10fa81: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10fa87: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10fa8c: eb bb jmp 10fa49 <== 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 ); 10fa8e: e8 01 3e 00 00 call 113894 <__errno> 10fa93: c7 00 15 00 00 00 movl $0x15,(%eax) 10fa99: b8 ff ff ff ff mov $0xffffffff,%eax 10fa9e: eb a9 jmp 10fa49 0015875c : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 15875c: 55 push %ebp 15875d: 89 e5 mov %esp,%ebp 15875f: 57 push %edi 158760: 56 push %esi 158761: 53 push %ebx 158762: 83 ec 2c sub $0x2c,%esp 158765: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 158768: 3b 1d 4c 71 16 00 cmp 0x16714c,%ebx 15876e: 72 48 jb 1587b8 158770: 31 db xor %ebx,%ebx <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 158772: 8d 45 d4 lea -0x2c(%ebp),%eax 158775: 8d 73 18 lea 0x18(%ebx),%esi 158778: b9 05 00 00 00 mov $0x5,%ecx 15877d: 89 c7 mov %eax,%edi 15877f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->node_type_h ) 158781: 8b 55 e0 mov -0x20(%ebp),%edx 158784: 8b 52 10 mov 0x10(%edx),%edx 158787: 85 d2 test %edx,%edx 158789: 74 4d je 1587d8 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 15878b: 83 ec 0c sub $0xc,%esp 15878e: 50 push %eax 15878f: ff d2 call *%edx 158791: 83 c4 10 add $0x10,%esp 158794: 48 dec %eax 158795: 75 2d jne 1587c4 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 158797: 8b 43 3c mov 0x3c(%ebx),%eax 15879a: 8b 40 08 mov 0x8(%eax),%eax 15879d: 85 c0 test %eax,%eax 15879f: 74 37 je 1587d8 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 1587a1: 52 push %edx 1587a2: ff 75 10 pushl 0x10(%ebp) 1587a5: ff 75 0c pushl 0xc(%ebp) 1587a8: 53 push %ebx 1587a9: ff d0 call *%eax 1587ab: 83 c4 10 add $0x10,%esp } 1587ae: 8d 65 f4 lea -0xc(%ebp),%esp 1587b1: 5b pop %ebx 1587b2: 5e pop %esi 1587b3: 5f pop %edi 1587b4: c9 leave 1587b5: c3 ret 1587b6: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 1587b8: c1 e3 06 shl $0x6,%ebx 1587bb: 03 1d 58 ed 16 00 add 0x16ed58,%ebx 1587c1: eb af jmp 158772 1587c3: 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 ); 1587c4: e8 db a0 fe ff call 1428a4 <__errno> 1587c9: c7 00 14 00 00 00 movl $0x14,(%eax) 1587cf: b8 ff ff ff ff mov $0xffffffff,%eax 1587d4: eb d8 jmp 1587ae 1587d6: 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 ); 1587d8: e8 c7 a0 fe ff call 1428a4 <__errno> <== NOT EXECUTED 1587dd: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1587e3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1587e8: eb c4 jmp 1587ae <== NOT EXECUTED 0012b8dc : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 12b8dc: 55 push %ebp <== NOT EXECUTED 12b8dd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b8df: a1 84 92 16 00 mov 0x169284,%eax <== NOT EXECUTED 12b8e4: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED return _POSIX_types_Gid; } 12b8e7: c9 leave <== NOT EXECUTED 12b8e8: c3 ret <== NOT EXECUTED 0012be8c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 12be8c: 55 push %ebp 12be8d: 89 e5 mov %esp,%ebp 12be8f: 57 push %edi 12be90: 56 push %esi 12be91: 53 push %ebx 12be92: 83 ec 1c sub $0x1c,%esp 12be95: 89 c3 mov %eax,%ebx 12be97: 89 55 e4 mov %edx,-0x1c(%ebp) 12be9a: 89 ce mov %ecx,%esi FILE *fp; int match; init_etc_passwd_group(); 12be9c: e8 af fe ff ff call 12bd50 if ((fp = fopen("/etc/group", "r")) == NULL) { 12bea1: 83 ec 08 sub $0x8,%esp 12bea4: 68 6d c2 15 00 push $0x15c26d 12bea9: 68 57 8f 15 00 push $0x158f57 12beae: e8 55 73 01 00 call 143208 12beb3: 89 c7 mov %eax,%edi 12beb5: 83 c4 10 add $0x10,%esp 12beb8: 85 c0 test %eax,%eax 12beba: 75 22 jne 12bede 12bebc: e9 8b 00 00 00 jmp 12bf4c <== NOT EXECUTED 12bec1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 12bec4: 83 ec 08 sub $0x8,%esp 12bec7: 53 push %ebx 12bec8: ff 36 pushl (%esi) 12beca: e8 ed c0 01 00 call 147fbc 12becf: 83 c4 10 add $0x10,%esp 12bed2: 85 c0 test %eax,%eax 12bed4: 0f 94 c0 sete %al 12bed7: 0f b6 c0 movzbl %al,%eax } else { match = (grp->gr_gid == gid); } if (match) { 12beda: 85 c0 test %eax,%eax 12bedc: 75 2e jne 12bf0c if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 12bede: 83 ec 0c sub $0xc,%esp 12bee1: ff 75 0c pushl 0xc(%ebp) 12bee4: 8b 4d 08 mov 0x8(%ebp),%ecx 12bee7: 89 f2 mov %esi,%edx 12bee9: 89 f8 mov %edi,%eax 12beeb: e8 d4 fb ff ff call 12bac4 12bef0: 83 c4 10 add $0x10,%esp 12bef3: 85 c0 test %eax,%eax 12bef5: 74 31 je 12bf28 errno = EINVAL; fclose(fp); return -1; } if (name) { 12bef7: 85 db test %ebx,%ebx 12bef9: 75 c9 jne 12bec4 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 12befb: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12beff: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12bf02: 0f 94 c0 sete %al <== NOT EXECUTED 12bf05: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED } if (match) { 12bf08: 85 c0 test %eax,%eax <== NOT EXECUTED 12bf0a: 74 d2 je 12bede <== NOT EXECUTED fclose(fp); 12bf0c: 83 ec 0c sub $0xc,%esp 12bf0f: 57 push %edi 12bf10: e8 db 6a 01 00 call 1429f0 *result = grp; 12bf15: 8b 45 10 mov 0x10(%ebp),%eax 12bf18: 89 30 mov %esi,(%eax) 12bf1a: 31 c0 xor %eax,%eax return 0; 12bf1c: 83 c4 10 add $0x10,%esp } } fclose(fp); errno = EINVAL; return -1; } 12bf1f: 8d 65 f4 lea -0xc(%ebp),%esp 12bf22: 5b pop %ebx 12bf23: 5e pop %esi 12bf24: 5f pop %edi 12bf25: c9 leave 12bf26: c3 ret 12bf27: 90 nop <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 12bf28: e8 77 69 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12bf2d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED fclose(fp); 12bf33: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bf36: 57 push %edi <== NOT EXECUTED 12bf37: e8 b4 6a 01 00 call 1429f0 <== NOT EXECUTED 12bf3c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 12bf41: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 12bf44: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12bf47: 5b pop %ebx <== NOT EXECUTED 12bf48: 5e pop %esi <== NOT EXECUTED 12bf49: 5f pop %edi <== NOT EXECUTED 12bf4a: c9 leave <== NOT EXECUTED 12bf4b: c3 ret <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 12bf4c: e8 53 69 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12bf51: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12bf57: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 12bf5a: eb c3 jmp 12bf1f <== NOT EXECUTED 0012bbdc : return NULL; return p; } struct group *getgrent(void) { 12bbdc: 55 push %ebp <== NOT EXECUTED 12bbdd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bbdf: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (group_fp == NULL) 12bbe2: a1 44 e9 16 00 mov 0x16e944,%eax <== NOT EXECUTED 12bbe7: 85 c0 test %eax,%eax <== NOT EXECUTED 12bbe9: 75 05 jne 12bbf0 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 12bbeb: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return &grent; } 12bbed: c9 leave <== NOT EXECUTED 12bbee: c3 ret <== NOT EXECUTED 12bbef: 90 nop <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 12bbf0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bbf3: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12bbf8: b9 60 e9 16 00 mov $0x16e960,%ecx <== NOT EXECUTED 12bbfd: ba 28 ea 16 00 mov $0x16ea28,%edx <== NOT EXECUTED 12bc02: e8 bd fe ff ff call 12bac4 <== NOT EXECUTED 12bc07: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12bc0a: 85 c0 test %eax,%eax <== NOT EXECUTED 12bc0c: 74 dd je 12bbeb <== NOT EXECUTED 12bc0e: b8 28 ea 16 00 mov $0x16ea28,%eax <== NOT EXECUTED return NULL; return &grent; } 12bc13: c9 leave <== NOT EXECUTED 12bc14: c3 ret <== NOT EXECUTED 0012bf88 : } struct group *getgrgid( gid_t gid ) { 12bf88: 55 push %ebp <== NOT EXECUTED 12bf89: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bf8b: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 12bf8e: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12bf91: 50 push %eax <== NOT EXECUTED 12bf92: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12bf97: 68 60 e9 16 00 push $0x16e960 <== NOT EXECUTED 12bf9c: 68 28 ea 16 00 push $0x16ea28 <== NOT EXECUTED 12bfa1: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12bfa5: 50 push %eax <== NOT EXECUTED 12bfa6: e8 b1 ff ff ff call 12bf5c <== NOT EXECUTED 12bfab: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12bfae: 85 c0 test %eax,%eax <== NOT EXECUTED 12bfb0: 75 06 jne 12bfb8 <== NOT EXECUTED return NULL; return p; 12bfb2: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 12bfb5: c9 leave <== NOT EXECUTED 12bfb6: c3 ret <== NOT EXECUTED 12bfb7: 90 nop <== NOT EXECUTED gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 12bfb8: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bfba: c9 leave <== NOT EXECUTED 12bfbb: c3 ret <== NOT EXECUTED 0012bf5c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 12bf5c: 55 push %ebp <== NOT EXECUTED 12bf5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bf5f: 53 push %ebx <== NOT EXECUTED 12bf60: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12bf63: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12bf66: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 12bf69: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12bf6d: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12bf70: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12bf73: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12bf76: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12bf79: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12bf7c: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12bf7e: 5b pop %ebx <== NOT EXECUTED 12bf7f: 5b pop %ebx <== NOT EXECUTED 12bf80: c9 leave <== NOT EXECUTED char *buffer, size_t bufsize, struct group **result ) { return getgr_r(NULL, gid, grp, buffer, bufsize, result); 12bf81: e9 06 ff ff ff jmp 12be8c <== NOT EXECUTED 0012bfe8 : } struct group *getgrnam( const char *name ) { 12bfe8: 55 push %ebp 12bfe9: 89 e5 mov %esp,%ebp 12bfeb: 83 ec 24 sub $0x24,%esp struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 12bfee: 8d 45 f4 lea -0xc(%ebp),%eax 12bff1: 50 push %eax 12bff2: 68 c8 00 00 00 push $0xc8 12bff7: 68 60 e9 16 00 push $0x16e960 12bffc: 68 28 ea 16 00 push $0x16ea28 12c001: ff 75 08 pushl 0x8(%ebp) 12c004: e8 b3 ff ff ff call 12bfbc 12c009: 83 c4 20 add $0x20,%esp 12c00c: 85 c0 test %eax,%eax 12c00e: 75 08 jne 12c018 return NULL; return p; 12c010: 8b 45 f4 mov -0xc(%ebp),%eax } 12c013: c9 leave 12c014: c3 ret 12c015: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *name ) { struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 12c018: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12c01a: c9 leave <== NOT EXECUTED 12c01b: c3 ret <== NOT EXECUTED 0010b130 : int getitimer( int which, struct itimerval *value ) { 10b130: 55 push %ebp 10b131: 89 e5 mov %esp,%ebp 10b133: 83 ec 08 sub $0x8,%esp if ( !value ) 10b136: 8b 45 0c mov 0xc(%ebp),%eax 10b139: 85 c0 test %eax,%eax 10b13b: 74 2f je 10b16c rtems_set_errno_and_return_minus_one( EFAULT ); switch ( which ) { 10b13d: 83 7d 08 02 cmpl $0x2,0x8(%ebp) 10b141: 76 15 jbe 10b158 case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10b143: e8 68 8e 00 00 call 113fb0 <__errno> 10b148: c7 00 16 00 00 00 movl $0x16,(%eax) } 10b14e: b8 ff ff ff ff mov $0xffffffff,%eax 10b153: c9 leave 10b154: c3 ret 10b155: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED switch ( which ) { case ITIMER_REAL: case ITIMER_VIRTUAL: case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); 10b158: e8 53 8e 00 00 call 113fb0 <__errno> 10b15d: c7 00 58 00 00 00 movl $0x58,(%eax) default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10b163: b8 ff ff ff ff mov $0xffffffff,%eax 10b168: c9 leave 10b169: c3 ret 10b16a: 66 90 xchg %ax,%ax <== NOT EXECUTED int which, struct itimerval *value ) { if ( !value ) rtems_set_errno_and_return_minus_one( EFAULT ); 10b16c: e8 3f 8e 00 00 call 113fb0 <__errno> 10b171: c7 00 0e 00 00 00 movl $0xe,(%eax) 10b177: eb d5 jmp 10b14e 0012c058 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 12c058: 55 push %ebp 12c059: 89 e5 mov %esp,%ebp 12c05b: 57 push %edi 12c05c: 56 push %esi 12c05d: 53 push %ebx 12c05e: 83 ec 1c sub $0x1c,%esp 12c061: 89 c3 mov %eax,%ebx 12c063: 89 55 e4 mov %edx,-0x1c(%ebp) 12c066: 89 ce mov %ecx,%esi FILE *fp; int match; init_etc_passwd_group(); 12c068: e8 e3 fc ff ff call 12bd50 if ((fp = fopen("/etc/passwd", "r")) == NULL) { 12c06d: 83 ec 08 sub $0x8,%esp 12c070: 68 6d c2 15 00 push $0x15c26d 12c075: 68 4b 8f 15 00 push $0x158f4b 12c07a: e8 89 71 01 00 call 143208 12c07f: 89 c7 mov %eax,%edi 12c081: 83 c4 10 add $0x10,%esp 12c084: 85 c0 test %eax,%eax 12c086: 75 22 jne 12c0aa 12c088: e9 8b 00 00 00 jmp 12c118 <== NOT EXECUTED 12c08d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 12c090: 83 ec 08 sub $0x8,%esp 12c093: 53 push %ebx 12c094: ff 36 pushl (%esi) 12c096: e8 21 bf 01 00 call 147fbc 12c09b: 83 c4 10 add $0x10,%esp 12c09e: 85 c0 test %eax,%eax 12c0a0: 0f 94 c0 sete %al 12c0a3: 0f b6 c0 movzbl %al,%eax } else { match = (pwd->pw_uid == uid); } if (match) { 12c0a6: 85 c0 test %eax,%eax 12c0a8: 75 2e jne 12c0d8 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 12c0aa: 83 ec 0c sub $0xc,%esp 12c0ad: ff 75 0c pushl 0xc(%ebp) 12c0b0: 8b 4d 08 mov 0x8(%ebp),%ecx 12c0b3: 89 f2 mov %esi,%edx 12c0b5: 89 f8 mov %edi,%eax 12c0b7: e8 5c fb ff ff call 12bc18 12c0bc: 83 c4 10 add $0x10,%esp 12c0bf: 85 c0 test %eax,%eax 12c0c1: 74 31 je 12c0f4 errno = EINVAL; fclose(fp); return -1; } if (name) { 12c0c3: 85 db test %ebx,%ebx 12c0c5: 75 c9 jne 12c090 match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 12c0c7: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12c0cb: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12c0ce: 0f 94 c0 sete %al <== NOT EXECUTED 12c0d1: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED } if (match) { 12c0d4: 85 c0 test %eax,%eax <== NOT EXECUTED 12c0d6: 74 d2 je 12c0aa <== NOT EXECUTED fclose(fp); 12c0d8: 83 ec 0c sub $0xc,%esp 12c0db: 57 push %edi 12c0dc: e8 0f 69 01 00 call 1429f0 *result = pwd; 12c0e1: 8b 45 10 mov 0x10(%ebp),%eax 12c0e4: 89 30 mov %esi,(%eax) 12c0e6: 31 c0 xor %eax,%eax return 0; 12c0e8: 83 c4 10 add $0x10,%esp } } fclose(fp); errno = EINVAL; return -1; } 12c0eb: 8d 65 f4 lea -0xc(%ebp),%esp 12c0ee: 5b pop %ebx 12c0ef: 5e pop %esi 12c0f0: 5f pop %edi 12c0f1: c9 leave 12c0f2: c3 ret 12c0f3: 90 nop <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 12c0f4: e8 ab 67 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12c0f9: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED fclose(fp); 12c0ff: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c102: 57 push %edi <== NOT EXECUTED 12c103: e8 e8 68 01 00 call 1429f0 <== NOT EXECUTED 12c108: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 12c10d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 12c110: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c113: 5b pop %ebx <== NOT EXECUTED 12c114: 5e pop %esi <== NOT EXECUTED 12c115: 5f pop %edi <== NOT EXECUTED 12c116: c9 leave <== NOT EXECUTED 12c117: c3 ret <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 12c118: e8 87 67 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12c11d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12c123: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 12c126: eb c3 jmp 12c0eb <== NOT EXECUTED 0012bd14 : return NULL; return p; } struct passwd *getpwent(void) { 12bd14: 55 push %ebp <== NOT EXECUTED 12bd15: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bd17: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (passwd_fp == NULL) 12bd1a: a1 44 e8 16 00 mov 0x16e844,%eax <== NOT EXECUTED 12bd1f: 85 c0 test %eax,%eax <== NOT EXECUTED 12bd21: 75 05 jne 12bd28 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 12bd23: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return &pwent; } 12bd25: c9 leave <== NOT EXECUTED 12bd26: c3 ret <== NOT EXECUTED 12bd27: 90 nop <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 12bd28: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bd2b: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12bd30: b9 60 e8 16 00 mov $0x16e860,%ecx <== NOT EXECUTED 12bd35: ba 28 e9 16 00 mov $0x16e928,%edx <== NOT EXECUTED 12bd3a: e8 d9 fe ff ff call 12bc18 <== NOT EXECUTED 12bd3f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12bd42: 85 c0 test %eax,%eax <== NOT EXECUTED 12bd44: 74 dd je 12bd23 <== NOT EXECUTED 12bd46: b8 28 e9 16 00 mov $0x16e928,%eax <== NOT EXECUTED return NULL; return &pwent; } 12bd4b: c9 leave <== NOT EXECUTED 12bd4c: c3 ret <== NOT EXECUTED 0012c1b4 : } struct passwd *getpwnam( const char *name ) { 12c1b4: 55 push %ebp 12c1b5: 89 e5 mov %esp,%ebp 12c1b7: 83 ec 24 sub $0x24,%esp struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 12c1ba: 8d 45 f4 lea -0xc(%ebp),%eax 12c1bd: 50 push %eax 12c1be: 68 c8 00 00 00 push $0xc8 12c1c3: 68 60 e8 16 00 push $0x16e860 12c1c8: 68 28 e9 16 00 push $0x16e928 12c1cd: ff 75 08 pushl 0x8(%ebp) 12c1d0: e8 b3 ff ff ff call 12c188 12c1d5: 83 c4 20 add $0x20,%esp 12c1d8: 85 c0 test %eax,%eax 12c1da: 75 08 jne 12c1e4 return NULL; return p; 12c1dc: 8b 45 f4 mov -0xc(%ebp),%eax } 12c1df: c9 leave 12c1e0: c3 ret 12c1e1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *name ) { struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 12c1e4: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12c1e6: c9 leave <== NOT EXECUTED 12c1e7: c3 ret <== NOT EXECUTED 0012c154 : } struct passwd *getpwuid( uid_t uid ) { 12c154: 55 push %ebp <== NOT EXECUTED 12c155: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c157: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 12c15a: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12c15d: 50 push %eax <== NOT EXECUTED 12c15e: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12c163: 68 60 e8 16 00 push $0x16e860 <== NOT EXECUTED 12c168: 68 28 e9 16 00 push $0x16e928 <== NOT EXECUTED 12c16d: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12c171: 50 push %eax <== NOT EXECUTED 12c172: e8 b1 ff ff ff call 12c128 <== NOT EXECUTED 12c177: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12c17a: 85 c0 test %eax,%eax <== NOT EXECUTED 12c17c: 75 06 jne 12c184 <== NOT EXECUTED return NULL; return p; 12c17e: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 12c181: c9 leave <== NOT EXECUTED 12c182: c3 ret <== NOT EXECUTED 12c183: 90 nop <== NOT EXECUTED uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 12c184: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12c186: c9 leave <== NOT EXECUTED 12c187: c3 ret <== NOT EXECUTED 0012c128 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 12c128: 55 push %ebp <== NOT EXECUTED 12c129: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c12b: 53 push %ebx <== NOT EXECUTED 12c12c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12c12f: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12c132: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 12c135: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12c139: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12c13c: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12c13f: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12c142: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12c145: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12c148: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12c14a: 5b pop %ebx <== NOT EXECUTED 12c14b: 5b pop %ebx <== NOT EXECUTED 12c14c: c9 leave <== NOT EXECUTED char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 12c14d: e9 06 ff ff ff jmp 12c058 <== NOT EXECUTED 0010fac0 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 10fac0: 55 push %ebp 10fac1: 89 e5 mov %esp,%ebp 10fac3: 56 push %esi 10fac4: 53 push %ebx 10fac5: 83 ec 20 sub $0x20,%esp 10fac8: 8b 5d 08 mov 0x8(%ebp),%ebx /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 10facb: 85 db test %ebx,%ebx 10facd: 74 42 je 10fb11 { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 10facf: 9c pushf 10fad0: fa cli 10fad1: 5e pop %esi _TOD_Get( &now ); 10fad2: 83 ec 0c sub $0xc,%esp 10fad5: 8d 45 f0 lea -0x10(%ebp),%eax 10fad8: 50 push %eax 10fad9: e8 42 11 00 00 call 110c20 <_TOD_Get> _ISR_Enable(level); 10fade: 56 push %esi 10fadf: 9d popf useconds = (suseconds_t)now.tv_nsec; 10fae0: 8b 4d f4 mov -0xc(%ebp),%ecx useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 10fae3: 8b 45 f0 mov -0x10(%ebp),%eax 10fae6: 89 03 mov %eax,(%ebx) time->tv_usec = useconds; 10fae8: be d3 4d 62 10 mov $0x10624dd3,%esi 10faed: 89 c8 mov %ecx,%eax 10faef: f7 ee imul %esi 10faf1: 89 45 e0 mov %eax,-0x20(%ebp) 10faf4: 89 55 e4 mov %edx,-0x1c(%ebp) 10faf7: 8b 75 e4 mov -0x1c(%ebp),%esi 10fafa: c1 fe 06 sar $0x6,%esi 10fafd: 89 c8 mov %ecx,%eax 10faff: 99 cltd 10fb00: 29 d6 sub %edx,%esi 10fb02: 89 73 04 mov %esi,0x4(%ebx) 10fb05: 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; 10fb07: 83 c4 10 add $0x10,%esp } 10fb0a: 8d 65 f8 lea -0x8(%ebp),%esp 10fb0d: 5b pop %ebx 10fb0e: 5e pop %esi 10fb0f: c9 leave 10fb10: c3 ret void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 10fb11: e8 7e 3d 00 00 call 113894 <__errno> <== NOT EXECUTED 10fb16: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10fb1c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 10fb21: eb e7 jmp 10fb0a <== 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 84 92 16 00 mov 0x169284,%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 00117980 : rtems_off64_t imfs_dir_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 117980: 55 push %ebp 117981: 89 e5 mov %esp,%ebp 117983: 57 push %edi 117984: 56 push %esi 117985: 53 push %ebx 117986: 83 ec 1c sub $0x1c,%esp 117989: 8b 5d 08 mov 0x8(%ebp),%ebx switch( whence ) { 11798c: 83 7d 14 01 cmpl $0x1,0x14(%ebp) 117990: 76 1e jbe 1179b0 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 ); 117992: e8 65 10 00 00 call 1189fc <__errno> 117997: c7 00 16 00 00 00 movl $0x16,(%eax) 11799d: b8 ff ff ff ff mov $0xffffffff,%eax 1179a2: ba ff ff ff ff mov $0xffffffff,%edx break; } return 0; } 1179a7: 8d 65 f4 lea -0xc(%ebp),%esp 1179aa: 5b pop %ebx 1179ab: 5e pop %esi 1179ac: 5f pop %edi 1179ad: c9 leave 1179ae: c3 ret 1179af: 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)) * 1179b0: 6a 00 push $0x0 1179b2: 68 10 01 00 00 push $0x110 1179b7: ff 73 10 pushl 0x10(%ebx) 1179ba: ff 73 0c pushl 0xc(%ebx) 1179bd: e8 fa bf 00 00 call 1239bc <__divdi3> 1179c2: 83 c4 10 add $0x10,%esp 1179c5: 69 f2 10 01 00 00 imul $0x110,%edx,%esi 1179cb: b9 10 01 00 00 mov $0x110,%ecx 1179d0: f7 e1 mul %ecx 1179d2: 89 45 e0 mov %eax,-0x20(%ebp) 1179d5: 01 f2 add %esi,%edx 1179d7: 89 55 e4 mov %edx,-0x1c(%ebp) 1179da: 8b 45 e0 mov -0x20(%ebp),%eax 1179dd: 8b 55 e4 mov -0x1c(%ebp),%edx 1179e0: 89 43 0c mov %eax,0xc(%ebx) 1179e3: 89 53 10 mov %edx,0x10(%ebx) 1179e6: 31 c0 xor %eax,%eax 1179e8: 31 d2 xor %edx,%edx rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } 1179ea: 8d 65 f4 lea -0xc(%ebp),%esp 1179ed: 5b pop %ebx 1179ee: 5e pop %esi 1179ef: 5f pop %edi 1179f0: c9 leave 1179f1: c3 ret 00117898 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 117898: 55 push %ebp 117899: 89 e5 mov %esp,%ebp 11789b: 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; 11789e: 8b 50 38 mov 0x38(%eax),%edx 1178a1: 83 7a 4c 01 cmpl $0x1,0x4c(%edx) 1178a5: 74 09 je 1178b0 1178a7: 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; } 1178ac: c9 leave <== NOT EXECUTED 1178ad: c3 ret <== NOT EXECUTED 1178ae: 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; 1178b0: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) 1178b7: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 1178be: 31 c0 xor %eax,%eax return 0; } 1178c0: c9 leave 1178c1: c3 ret 00117ad0 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 117ad0: 55 push %ebp 117ad1: 89 e5 mov %esp,%ebp 117ad3: 57 push %edi 117ad4: 56 push %esi 117ad5: 53 push %ebx 117ad6: 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; 117adc: 8b 55 08 mov 0x8(%ebp),%edx 117adf: 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)); 117ae2: 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; 117ae5: 83 c0 54 add $0x54,%eax 117ae8: 89 85 cc fe ff ff mov %eax,-0x134(%ebp) the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 117aee: 39 c3 cmp %eax,%ebx 117af0: 0f 84 2a 01 00 00 je 117c20 /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 117af6: 8b 45 08 mov 0x8(%ebp),%eax 117af9: 8b 40 0c mov 0xc(%eax),%eax 117afc: 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); 117b02: ba f1 f0 f0 f0 mov $0xf0f0f0f1,%edx 117b07: 8b 45 10 mov 0x10(%ebp),%eax 117b0a: f7 e2 mul %edx 117b0c: c1 ea 08 shr $0x8,%edx 117b0f: 89 d0 mov %edx,%eax 117b11: c1 e0 04 shl $0x4,%eax 117b14: c1 e2 08 shl $0x8,%edx 117b17: 8d 14 10 lea (%eax,%edx,1),%edx 117b1a: 03 95 d0 fe ff ff add -0x130(%ebp),%edx 117b20: 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 ( 117b26: 85 d2 test %edx,%edx 117b28: 0f 8e f2 00 00 00 jle 117c20 117b2e: 31 d2 xor %edx,%edx 117b30: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) 117b37: 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 ); 117b3a: 8d 85 d8 fe ff ff lea -0x128(%ebp),%eax 117b40: 89 85 b4 fe ff ff mov %eax,-0x14c(%ebp) 117b46: eb 20 jmp 117b68 ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 117b48: 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( 117b4a: 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 ( 117b50: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx 117b56: 0f 8d b4 00 00 00 jge 117c10 current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 117b5c: 3b 9d cc fe ff ff cmp -0x134(%ebp),%ebx 117b62: 0f 84 a8 00 00 00 je 117c10 /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 117b68: 39 95 d0 fe ff ff cmp %edx,-0x130(%ebp) 117b6e: 7f d8 jg 117b48 /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 117b70: 89 95 dc fe ff ff mov %edx,-0x124(%ebp) 117b76: 89 d0 mov %edx,%eax 117b78: c1 f8 1f sar $0x1f,%eax 117b7b: 89 85 e0 fe ff ff mov %eax,-0x120(%ebp) tmp_dirent.d_reclen = sizeof( struct dirent ); 117b81: 66 c7 85 e4 fe ff ff movw $0x110,-0x11c(%ebp) 117b88: 10 01 the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 117b8a: 8b 43 38 mov 0x38(%ebx),%eax 117b8d: 89 85 d8 fe ff ff mov %eax,-0x128(%ebp) tmp_dirent.d_namlen = strlen( the_jnode->name ); 117b93: 8d 73 0c lea 0xc(%ebx),%esi 117b96: 31 c0 xor %eax,%eax 117b98: b9 ff ff ff ff mov $0xffffffff,%ecx 117b9d: 89 f7 mov %esi,%edi 117b9f: f2 ae repnz scas %es:(%edi),%al 117ba1: f7 d1 not %ecx 117ba3: 49 dec %ecx 117ba4: 66 89 8d e6 fe ff ff mov %cx,-0x11a(%ebp) strcpy( tmp_dirent.d_name, the_jnode->name ); 117bab: 83 ec 08 sub $0x8,%esp 117bae: 56 push %esi 117baf: 8d 85 e8 fe ff ff lea -0x118(%ebp),%eax 117bb5: 50 push %eax 117bb6: 89 95 c4 fe ff ff mov %edx,-0x13c(%ebp) 117bbc: e8 c3 18 00 00 call 119484 memcpy( 117bc1: 8b 45 0c mov 0xc(%ebp),%eax 117bc4: 03 85 c8 fe ff ff add -0x138(%ebp),%eax 117bca: b9 44 00 00 00 mov $0x44,%ecx 117bcf: 89 c7 mov %eax,%edi 117bd1: 8b b5 b4 fe ff ff mov -0x14c(%ebp),%esi 117bd7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 117bd9: 8b 45 08 mov 0x8(%ebp),%eax 117bdc: 81 40 0c 10 01 00 00 addl $0x110,0xc(%eax) 117be3: 83 50 10 00 adcl $0x0,0x10(%eax) bytes_transferred = bytes_transferred + sizeof( struct dirent ); 117be7: 81 85 c8 fe ff ff 10 addl $0x110,-0x138(%ebp) 117bee: 01 00 00 117bf1: 83 c4 10 add $0x10,%esp 117bf4: 8b 95 c4 fe ff ff mov -0x13c(%ebp),%edx } the_node = the_node->next; 117bfa: 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( 117bfc: 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 ( 117c02: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx 117c08: 0f 8c 4e ff ff ff jl 117b5c 117c0e: 66 90 xchg %ax,%ax the_node = the_node->next; } /* Success */ return bytes_transferred; } 117c10: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 117c16: 8d 65 f4 lea -0xc(%ebp),%esp 117c19: 5b pop %ebx 117c1a: 5e pop %esi 117c1b: 5f pop %edi 117c1c: c9 leave 117c1d: c3 ret 117c1e: 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 ( 117c20: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) 117c27: 00 00 00 the_node = the_node->next; } /* Success */ return bytes_transferred; } 117c2a: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 117c30: 8d 65 f4 lea -0xc(%ebp),%esp 117c33: 5b pop %ebx 117c34: 5e pop %esi 117c35: 5f pop %edi 117c36: c9 leave 117c37: c3 ret 001179f4 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 1179f4: 55 push %ebp 1179f5: 89 e5 mov %esp,%ebp 1179f7: 56 push %esi 1179f8: 53 push %ebx 1179f9: 83 ec 10 sub $0x10,%esp 1179fc: 8b 75 0c mov 0xc(%ebp),%esi IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 1179ff: 8b 1e mov (%esi),%ebx 117a01: 8d 43 54 lea 0x54(%ebx),%eax 117a04: 39 43 50 cmp %eax,0x50(%ebx) 117a07: 0f 85 8f 00 00 00 jne 117a9c /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 117a0d: 8b 46 10 mov 0x10(%esi),%eax 117a10: 3b 58 1c cmp 0x1c(%eax),%ebx 117a13: 0f 84 97 00 00 00 je 117ab0 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 117a19: 8b 43 5c mov 0x5c(%ebx),%eax 117a1c: 85 c0 test %eax,%eax 117a1e: 0f 85 8c 00 00 00 jne 117ab0 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 117a24: 8b 4b 08 mov 0x8(%ebx),%ecx 117a27: 85 c9 test %ecx,%ecx 117a29: 74 13 je 117a3e 117a2b: 83 ec 0c sub $0xc,%esp 117a2e: 53 push %ebx 117a2f: e8 58 5d ff ff call 10d78c <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 117a34: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 117a3b: 83 c4 10 add $0x10,%esp /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 117a3e: 66 ff 4b 34 decw 0x34(%ebx) IMFS_update_ctime( the_jnode ); 117a42: 83 ec 08 sub $0x8,%esp 117a45: 6a 00 push $0x0 117a47: 8d 45 f0 lea -0x10(%ebp),%eax 117a4a: 50 push %eax 117a4b: e8 cc 19 ff ff call 10941c 117a50: 8b 45 f0 mov -0x10(%ebp),%eax 117a53: 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) ) { 117a56: 89 1c 24 mov %ebx,(%esp) 117a59: e8 66 cc ff ff call 1146c4 117a5e: 83 c4 10 add $0x10,%esp 117a61: 85 c0 test %eax,%eax 117a63: 75 2b jne 117a90 117a65: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 117a6a: 75 24 jne 117a90 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 117a6c: a1 18 a8 12 00 mov 0x12a818,%eax 117a71: 8b 50 04 mov 0x4(%eax),%edx 117a74: 3b 16 cmp (%esi),%edx 117a76: 74 4c je 117ac4 /* * Free memory associated with a memory file. */ free( the_jnode ); 117a78: 83 ec 0c sub $0xc,%esp 117a7b: 53 push %ebx 117a7c: e8 1f 19 ff ff call 1093a0 117a81: 31 c0 xor %eax,%eax 117a83: 83 c4 10 add $0x10,%esp } return 0; } 117a86: 8d 65 f8 lea -0x8(%ebp),%esp 117a89: 5b pop %ebx 117a8a: 5e pop %esi 117a8b: c9 leave 117a8c: c3 ret 117a8d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 117a90: 31 c0 xor %eax,%eax } return 0; } 117a92: 8d 65 f8 lea -0x8(%ebp),%esp 117a95: 5b pop %ebx 117a96: 5e pop %esi 117a97: c9 leave 117a98: c3 ret 117a99: 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 ); 117a9c: e8 5b 0f 00 00 call 1189fc <__errno> 117aa1: c7 00 5a 00 00 00 movl $0x5a,(%eax) 117aa7: b8 ff ff ff ff mov $0xffffffff,%eax 117aac: eb e4 jmp 117a92 117aae: 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 ); 117ab0: e8 47 0f 00 00 call 1189fc <__errno> 117ab5: c7 00 10 00 00 00 movl $0x10,(%eax) 117abb: b8 ff ff ff ff mov $0xffffffff,%eax 117ac0: eb d0 jmp 117a92 117ac2: 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; 117ac4: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 117acb: eb ab jmp 117a78 <== NOT EXECUTED 0012bd50 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 12bd50: 55 push %ebp 12bd51: 89 e5 mov %esp,%ebp 12bd53: 53 push %ebx 12bd54: 83 ec 04 sub $0x4,%esp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 12bd57: 80 3d 40 e8 16 00 00 cmpb $0x0,0x16e840 12bd5e: 74 08 je 12bd68 fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 12bd60: 8b 5d fc mov -0x4(%ebp),%ebx 12bd63: c9 leave 12bd64: c3 ret 12bd65: 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; 12bd68: c6 05 40 e8 16 00 01 movb $0x1,0x16e840 mkdir("/etc", 0777); 12bd6f: 83 ec 08 sub $0x8,%esp 12bd72: 68 ff 01 00 00 push $0x1ff 12bd77: 68 35 8f 15 00 push $0x158f35 12bd7c: e8 83 17 fe ff call 10d504 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 12bd81: 59 pop %ecx 12bd82: 5b pop %ebx 12bd83: 68 6d c2 15 00 push $0x15c26d 12bd88: 68 4b 8f 15 00 push $0x158f4b 12bd8d: e8 76 74 01 00 call 143208 12bd92: 83 c4 10 add $0x10,%esp 12bd95: 85 c0 test %eax,%eax 12bd97: 74 77 je 12be10 fclose(fp); 12bd99: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bd9c: 50 push %eax <== NOT EXECUTED 12bd9d: e8 4e 6c 01 00 call 1429f0 <== NOT EXECUTED 12bda2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 12bda5: 83 ec 08 sub $0x8,%esp 12bda8: 68 6d c2 15 00 push $0x15c26d 12bdad: 68 57 8f 15 00 push $0x158f57 12bdb2: e8 51 74 01 00 call 143208 12bdb7: 83 c4 10 add $0x10,%esp 12bdba: 85 c0 test %eax,%eax 12bdbc: 74 12 je 12bdd0 fclose(fp); 12bdbe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bdc1: 50 push %eax <== NOT EXECUTED 12bdc2: e8 29 6c 01 00 call 1429f0 <== NOT EXECUTED 12bdc7: 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); } } 12bdca: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12bdcd: c9 leave <== NOT EXECUTED 12bdce: c3 ret <== NOT EXECUTED 12bdcf: 90 nop <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 12bdd0: 83 ec 08 sub $0x8,%esp 12bdd3: 68 f0 bd 15 00 push $0x15bdf0 12bdd8: 68 57 8f 15 00 push $0x158f57 12bddd: e8 26 74 01 00 call 143208 12bde2: 89 c3 mov %eax,%ebx 12bde4: 83 c4 10 add $0x10,%esp 12bde7: 85 c0 test %eax,%eax 12bde9: 0f 84 71 ff ff ff je 12bd60 fprintf( fp, "root:x:0:root\n" 12bdef: 50 push %eax 12bdf0: 6a 2a push $0x2a 12bdf2: 6a 01 push $0x1 12bdf4: 68 30 02 16 00 push $0x160230 12bdf9: e8 86 86 01 00 call 144484 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 12bdfe: 89 1c 24 mov %ebx,(%esp) 12be01: e8 ea 6b 01 00 call 1429f0 12be06: 83 c4 10 add $0x10,%esp 12be09: e9 52 ff ff ff jmp 12bd60 12be0e: 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) { 12be10: 83 ec 08 sub $0x8,%esp 12be13: 68 f0 bd 15 00 push $0x15bdf0 12be18: 68 4b 8f 15 00 push $0x158f4b 12be1d: e8 e6 73 01 00 call 143208 12be22: 89 c3 mov %eax,%ebx 12be24: 83 c4 10 add $0x10,%esp 12be27: 85 c0 test %eax,%eax 12be29: 0f 84 76 ff ff ff je 12bda5 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 12be2f: 50 push %eax 12be30: 6a 66 push $0x66 12be32: 6a 01 push $0x1 12be34: 68 c8 01 16 00 push $0x1601c8 12be39: e8 46 86 01 00 call 144484 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 12be3e: 89 1c 24 mov %ebx,(%esp) 12be41: e8 aa 6b 01 00 call 1429f0 12be46: 83 c4 10 add $0x10,%esp 12be49: e9 57 ff ff ff jmp 12bda5 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 0c 8c 12 00 cmp 0x128c0c,%eax 10b71f: 73 2f jae 10b750 iop = rtems_libio_iop( fd ); 10b721: c1 e0 06 shl $0x6,%eax 10b724: 03 05 40 ce 12 00 add 0x12ce40,%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 db d4 00 00 call 118c30 <__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 c9 d4 00 00 call 118c30 <__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 28 54 12 00 mov 0x125428,%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 28 53 12 00 mov 0x125328,%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 00113320 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 113320: 55 push %ebp 113321: 89 e5 mov %esp,%ebp 113323: 57 push %edi 113324: 56 push %esi 113325: 53 push %ebx 113326: 83 ec 3c sub $0x3c,%esp 113329: 8b 75 0c mov 0xc(%ebp),%esi 11332c: 8b 7d 10 mov 0x10(%ebp),%edi POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) 11332f: e8 70 f0 ff ff call 1123a4 113334: 3b 45 08 cmp 0x8(%ebp),%eax 113337: 0f 85 2f 02 00 00 jne 11356c rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) 11333d: 85 f6 test %esi,%esi 11333f: 0f 84 3c 02 00 00 je 113581 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); 113345: 8d 4e ff lea -0x1(%esi),%ecx rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) 113348: 83 f9 1f cmp $0x1f,%ecx 11334b: 0f 87 30 02 00 00 ja 113581 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) 113351: 8d 04 76 lea (%esi,%esi,2),%eax 113354: 83 3c 85 08 7d 12 00 cmpl $0x1,0x127d08(,%eax,4) 11335b: 01 11335c: 0f 84 cf 00 00 00 je 113431 /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) 113362: 83 fe 08 cmp $0x8,%esi 113365: 0f 84 d1 00 00 00 je 11343c 11336b: 83 fe 04 cmp $0x4,%esi 11336e: 0f 84 c8 00 00 00 je 11343c 113374: 83 fe 0b cmp $0xb,%esi 113377: 0f 84 bf 00 00 00 je 11343c static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); 11337d: bb 01 00 00 00 mov $0x1,%ebx 113382: d3 e3 shl %cl,%ebx /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 113384: 89 75 dc mov %esi,-0x24(%ebp) siginfo->si_code = SI_USER; 113387: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp) if ( !value ) { 11338e: 85 ff test %edi,%edi 113390: 0f 84 ca 01 00 00 je 113560 siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; 113396: 8b 07 mov (%edi),%eax 113398: 89 45 e4 mov %eax,-0x1c(%ebp) 11339b: a1 18 77 12 00 mov 0x127718,%eax 1133a0: 40 inc %eax 1133a1: a3 18 77 12 00 mov %eax,0x127718 /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; 1133a6: 8b 0d d8 77 12 00 mov 0x1277d8,%ecx api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 1133ac: 8b 81 f8 00 00 00 mov 0xf8(%ecx),%eax 1133b2: 8b 80 cc 00 00 00 mov 0xcc(%eax),%eax 1133b8: f7 d0 not %eax 1133ba: 85 c3 test %eax,%ebx 1133bc: 75 34 jne 1133f2 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 1133be: a1 a0 7e 12 00 mov 0x127ea0,%eax 1133c3: 3d a4 7e 12 00 cmp $0x127ea4,%eax 1133c8: 75 1b jne 1133e5 1133ca: e9 89 00 00 00 jmp 113458 1133cf: 90 nop <== NOT EXECUTED /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 1133d0: 8b 92 cc 00 00 00 mov 0xcc(%edx),%edx 1133d6: f7 d2 not %edx 1133d8: 85 d3 test %edx,%ebx 1133da: 75 16 jne 1133f2 the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 1133dc: 8b 00 mov (%eax),%eax /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 1133de: 3d a4 7e 12 00 cmp $0x127ea4,%eax 1133e3: 74 73 je 113458 !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; 1133e5: 89 c1 mov %eax,%ecx api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 1133e7: 8b 90 f8 00 00 00 mov 0xf8(%eax),%edx #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 1133ed: 85 58 30 test %ebx,0x30(%eax) 1133f0: 74 de je 1133d0 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 1133f2: c6 41 74 01 movb $0x1,0x74(%ecx) /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 1133f6: 50 push %eax 1133f7: 8d 45 dc lea -0x24(%ebp),%eax 1133fa: 50 push %eax 1133fb: 56 push %esi 1133fc: 51 push %ecx 1133fd: e8 1e 02 00 00 call 113620 <_POSIX_signals_Unblock_thread> 113402: 83 c4 10 add $0x10,%esp 113405: 84 c0 test %al,%al 113407: 0f 85 47 01 00 00 jne 113554 /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); 11340d: 83 ec 0c sub $0xc,%esp 113410: 53 push %ebx 113411: e8 e6 01 00 00 call 1135fc <_POSIX_signals_Set_process_signals> if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 113416: 8d 1c 76 lea (%esi,%esi,2),%ebx 113419: c1 e3 02 shl $0x2,%ebx 11341c: 83 c4 10 add $0x10,%esp 11341f: 83 bb 00 7d 12 00 02 cmpl $0x2,0x127d00(%ebx) 113426: 0f 84 ec 00 00 00 je 113518 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 11342c: e8 c3 a0 ff ff call 10d4f4 <_Thread_Enable_dispatch> 113431: 31 c0 xor %eax,%eax return 0; } 113433: 8d 65 f4 lea -0xc(%ebp),%esp 113436: 5b pop %ebx 113437: 5e pop %esi 113438: 5f pop %edi 113439: c9 leave 11343a: c3 ret 11343b: 90 nop <== NOT EXECUTED * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) return pthread_kill( pthread_self(), sig ); 11343c: e8 c3 03 00 00 call 113804 113441: 83 ec 08 sub $0x8,%esp 113444: 56 push %esi 113445: 50 push %eax 113446: e8 f1 02 00 00 call 11373c 11344b: 83 c4 10 add $0x10,%esp } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } 11344e: 8d 65 f4 lea -0xc(%ebp),%esp 113451: 5b pop %ebx 113452: 5e pop %esi 113453: 5f pop %edi 113454: c9 leave 113455: c3 ret 113456: 66 90 xchg %ax,%ax <== NOT EXECUTED * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 113458: 0f b6 05 34 35 12 00 movzbl 0x123534,%eax 11345f: 40 inc %eax 113460: 89 45 d4 mov %eax,-0x2c(%ebp) 113463: c7 45 c8 00 00 00 00 movl $0x0,-0x38(%ebp) 11346a: c7 45 d0 02 00 00 00 movl $0x2,-0x30(%ebp) 113471: 89 5d cc mov %ebx,-0x34(%ebp) 113474: 89 75 c0 mov %esi,-0x40(%ebp) for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) 113477: 8b 55 d0 mov -0x30(%ebp),%edx 11347a: 8b 04 95 ec 76 12 00 mov 0x1276ec(,%edx,4),%eax 113481: 85 c0 test %eax,%eax 113483: 74 6c je 1134f1 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 113485: 8b 40 04 mov 0x4(%eax),%eax */ if ( !the_info ) continue; #endif maximum = the_info->maximum; 113488: 0f b7 70 10 movzwl 0x10(%eax),%esi object_table = the_info->local_table; 11348c: 8b 78 1c mov 0x1c(%eax),%edi for ( index = 1 ; index <= maximum ; index++ ) { 11348f: 85 f6 test %esi,%esi 113491: 74 5e je 1134f1 113493: b8 01 00 00 00 mov $0x1,%eax the_thread = (Thread_Control *) object_table[ index ]; 113498: 8b 14 87 mov (%edi,%eax,4),%edx if ( !the_thread ) 11349b: 85 d2 test %edx,%edx 11349d: 74 4d je 1134ec /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) 11349f: 8b 4a 14 mov 0x14(%edx),%ecx 1134a2: 3b 4d d4 cmp -0x2c(%ebp),%ecx 1134a5: 77 45 ja 1134ec DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 1134a7: 8b 9a f8 00 00 00 mov 0xf8(%edx),%ebx 1134ad: 8b 9b cc 00 00 00 mov 0xcc(%ebx),%ebx 1134b3: f7 d3 not %ebx 1134b5: 85 5d cc test %ebx,-0x34(%ebp) 1134b8: 74 32 je 1134ec * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { 1134ba: 3b 4d d4 cmp -0x2c(%ebp),%ecx 1134bd: 72 25 jb 1134e4 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { 1134bf: 8b 5d c8 mov -0x38(%ebp),%ebx 1134c2: 8b 5b 10 mov 0x10(%ebx),%ebx 1134c5: 89 5d c4 mov %ebx,-0x3c(%ebp) 1134c8: 85 db test %ebx,%ebx 1134ca: 74 20 je 1134ec /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 1134cc: 8b 5a 10 mov 0x10(%edx),%ebx 1134cf: 85 db test %ebx,%ebx 1134d1: 74 11 je 1134e4 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 1134d3: f7 45 c4 00 00 00 10 testl $0x10000000,-0x3c(%ebp) 1134da: 75 10 jne 1134ec DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 1134dc: 81 e3 00 00 00 10 and $0x10000000,%ebx 1134e2: 74 08 je 1134ec 1134e4: 89 4d d4 mov %ecx,-0x2c(%ebp) 1134e7: 89 55 c8 mov %edx,-0x38(%ebp) 1134ea: 66 90 xchg %ax,%ax #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 1134ec: 40 inc %eax 1134ed: 39 c6 cmp %eax,%esi 1134ef: 73 a7 jae 113498 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { 1134f1: ff 45 d0 incl -0x30(%ebp) 1134f4: 83 7d d0 05 cmpl $0x5,-0x30(%ebp) 1134f8: 0f 85 79 ff ff ff jne 113477 1134fe: 8b 5d cc mov -0x34(%ebp),%ebx 113501: 8b 75 c0 mov -0x40(%ebp),%esi } } } } if ( interested ) { 113504: 8b 55 c8 mov -0x38(%ebp),%edx 113507: 85 d2 test %edx,%edx 113509: 0f 84 fe fe ff ff je 11340d 11350f: 8b 4d c8 mov -0x38(%ebp),%ecx 113512: e9 db fe ff ff jmp 1133f2 113517: 90 nop <== NOT EXECUTED */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) 113518: 83 ec 0c sub $0xc,%esp 11351b: 68 80 7e 12 00 push $0x127e80 113520: e8 b7 89 ff ff call 10bedc <_Chain_Get> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 113525: 83 c4 10 add $0x10,%esp 113528: 85 c0 test %eax,%eax 11352a: 74 6a je 113596 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; 11352c: 8d 78 08 lea 0x8(%eax),%edi 11352f: 8d 75 dc lea -0x24(%ebp),%esi 113532: b9 03 00 00 00 mov $0x3,%ecx 113537: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 113539: 83 ec 08 sub $0x8,%esp 11353c: 50 push %eax 11353d: 81 c3 00 7f 12 00 add $0x127f00,%ebx 113543: 53 push %ebx 113544: e8 6f 89 ff ff call 10beb8 <_Chain_Append> 113549: 83 c4 10 add $0x10,%esp 11354c: e9 db fe ff ff jmp 11342c 113551: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { _Thread_Enable_dispatch(); 113554: e8 9b 9f ff ff call 10d4f4 <_Thread_Enable_dispatch> 113559: 31 c0 xor %eax,%eax return 0; 11355b: e9 ee fe ff ff jmp 11344e */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; 113560: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 113567: e9 2f fe ff ff jmp 11339b /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); 11356c: e8 23 03 00 00 call 113894 <__errno> 113571: c7 00 03 00 00 00 movl $0x3,(%eax) 113577: b8 ff ff ff ff mov $0xffffffff,%eax 11357c: e9 cd fe ff ff jmp 11344e */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); 113581: e8 0e 03 00 00 call 113894 <__errno> 113586: c7 00 16 00 00 00 movl $0x16,(%eax) 11358c: b8 ff ff ff ff mov $0xffffffff,%eax 113591: e9 b8 fe ff ff jmp 11344e if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); 113596: e8 59 9f ff ff call 10d4f4 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EAGAIN ); 11359b: e8 f4 02 00 00 call 113894 <__errno> 1135a0: c7 00 0b 00 00 00 movl $0xb,(%eax) 1135a6: 83 c8 ff or $0xffffffff,%eax 1135a9: e9 a0 fe ff ff jmp 11344e 0011ecd8 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 11ecd8: 55 push %ebp 11ecd9: 89 e5 mov %esp,%ebp 11ecdb: 53 push %ebx 11ecdc: 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())) 11ecdf: 83 3d e0 78 12 00 03 cmpl $0x3,0x1278e0 11ece6: 74 08 je 11ecf0 */ fclose (stdin); fclose (stdout); fclose (stderr); } 11ece8: 8b 5d fc mov -0x4(%ebp),%ebx 11eceb: c9 leave 11ecec: c3 ret 11eced: 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) { 11ecf0: 8b 1d 80 1a 12 00 mov 0x121a80,%ebx 11ecf6: 39 1d 40 54 12 00 cmp %ebx,0x125440 11ecfc: 74 12 je 11ed10 _wrapup_reent(_global_impure_ptr); 11ecfe: 83 ec 0c sub $0xc,%esp 11ed01: 53 push %ebx 11ed02: e8 f5 04 00 00 call 11f1fc <_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; 11ed07: 89 1d 40 54 12 00 mov %ebx,0x125440 11ed0d: 83 c4 10 add $0x10,%esp * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 11ed10: 83 ec 0c sub $0xc,%esp 11ed13: ff 73 04 pushl 0x4(%ebx) 11ed16: e8 c5 4c ff ff call 1139e0 fclose (stdout); 11ed1b: 5a pop %edx 11ed1c: a1 40 54 12 00 mov 0x125440,%eax 11ed21: ff 70 08 pushl 0x8(%eax) 11ed24: e8 b7 4c ff ff call 1139e0 fclose (stderr); 11ed29: 58 pop %eax 11ed2a: a1 40 54 12 00 mov 0x125440,%eax 11ed2f: ff 70 0c pushl 0xc(%eax) 11ed32: e8 a9 4c ff ff call 1139e0 11ed37: 83 c4 10 add $0x10,%esp } 11ed3a: 8b 5d fc mov -0x4(%ebp),%ebx 11ed3d: c9 leave 11ed3e: c3 ret 0012c24c : int link( const char *existing, const char *new ) { 12c24c: 55 push %ebp 12c24d: 89 e5 mov %esp,%ebp 12c24f: 57 push %edi 12c250: 56 push %esi 12c251: 53 push %ebx 12c252: 83 ec 48 sub $0x48,%esp 12c255: 8b 55 08 mov 0x8(%ebp),%edx /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 12c258: 31 c0 xor %eax,%eax 12c25a: b9 ff ff ff ff mov $0xffffffff,%ecx 12c25f: 89 d7 mov %edx,%edi 12c261: f2 ae repnz scas %es:(%edi),%al 12c263: f7 d1 not %ecx 12c265: 49 dec %ecx 12c266: 6a 01 push $0x1 12c268: 8d 45 d0 lea -0x30(%ebp),%eax 12c26b: 50 push %eax 12c26c: 6a 00 push $0x0 12c26e: 51 push %ecx 12c26f: 52 push %edx 12c270: e8 37 0b fe ff call 10cdac 0, &existing_loc, true ); if ( result != 0 ) 12c275: 83 c4 20 add $0x20,%esp 12c278: 85 c0 test %eax,%eax 12c27a: 0f 85 e0 00 00 00 jne 12c360 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 12c280: 8b 55 0c mov 0xc(%ebp),%edx 12c283: 8a 02 mov (%edx),%al 12c285: 3c 2f cmp $0x2f,%al 12c287: 74 0c je 12c295 12c289: 3c 5c cmp $0x5c,%al 12c28b: 74 08 je 12c295 12c28d: 84 c0 test %al,%al 12c28f: 0f 85 db 00 00 00 jne 12c370 12c295: 8d 5d bc lea -0x44(%ebp),%ebx 12c298: 8b 35 84 92 16 00 mov 0x169284,%esi 12c29e: 83 c6 18 add $0x18,%esi 12c2a1: b9 05 00 00 00 mov $0x5,%ecx 12c2a6: 89 df mov %ebx,%edi 12c2a8: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c2aa: ba 01 00 00 00 mov $0x1,%edx if ( !parent_loc.ops->evalformake_h ) { 12c2af: 8b 45 c8 mov -0x38(%ebp),%eax 12c2b2: 8b 40 04 mov 0x4(%eax),%eax 12c2b5: 85 c0 test %eax,%eax 12c2b7: 74 7f je 12c338 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 ); 12c2b9: 51 push %ecx 12c2ba: 8d 4d e4 lea -0x1c(%ebp),%ecx 12c2bd: 51 push %ecx 12c2be: 53 push %ebx 12c2bf: 03 55 0c add 0xc(%ebp),%edx 12c2c2: 52 push %edx 12c2c3: ff d0 call *%eax 12c2c5: 89 c6 mov %eax,%esi if ( result != 0 ) { 12c2c7: 83 c4 10 add $0x10,%esp 12c2ca: 85 c0 test %eax,%eax 12c2cc: 0f 85 06 01 00 00 jne 12c3d8 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 12c2d2: 8b 45 cc mov -0x34(%ebp),%eax 12c2d5: 3b 45 e0 cmp -0x20(%ebp),%eax 12c2d8: 0f 85 ae 00 00 00 jne 12c38c rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 12c2de: 8b 55 c8 mov -0x38(%ebp),%edx 12c2e1: 8b 42 08 mov 0x8(%edx),%eax 12c2e4: 85 c0 test %eax,%eax 12c2e6: 0f 84 17 01 00 00 je 12c403 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 ); 12c2ec: 52 push %edx 12c2ed: ff 75 e4 pushl -0x1c(%ebp) 12c2f0: 53 push %ebx 12c2f1: 8d 55 d0 lea -0x30(%ebp),%edx 12c2f4: 52 push %edx 12c2f5: ff d0 call *%eax 12c2f7: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &existing_loc ); 12c2f9: 8b 45 dc mov -0x24(%ebp),%eax 12c2fc: 83 c4 10 add $0x10,%esp 12c2ff: 85 c0 test %eax,%eax 12c301: 74 13 je 12c316 12c303: 8b 40 1c mov 0x1c(%eax),%eax 12c306: 85 c0 test %eax,%eax 12c308: 74 0c je 12c316 12c30a: 83 ec 0c sub $0xc,%esp 12c30d: 8d 55 d0 lea -0x30(%ebp),%edx 12c310: 52 push %edx 12c311: ff d0 call *%eax 12c313: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &parent_loc ); 12c316: 8b 45 c8 mov -0x38(%ebp),%eax 12c319: 85 c0 test %eax,%eax 12c31b: 74 10 je 12c32d 12c31d: 8b 40 1c mov 0x1c(%eax),%eax 12c320: 85 c0 test %eax,%eax 12c322: 74 09 je 12c32d 12c324: 83 ec 0c sub $0xc,%esp 12c327: 53 push %ebx 12c328: ff d0 call *%eax 12c32a: 83 c4 10 add $0x10,%esp return result; } 12c32d: 89 f0 mov %esi,%eax 12c32f: 8d 65 f4 lea -0xc(%ebp),%esp 12c332: 5b pop %ebx 12c333: 5e pop %esi 12c334: 5f pop %edi 12c335: c9 leave 12c336: c3 ret 12c337: 90 nop <== NOT EXECUTED */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 12c338: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12c33b: 85 c0 test %eax,%eax <== NOT EXECUTED 12c33d: 74 13 je 12c352 <== NOT EXECUTED 12c33f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c342: 85 c0 test %eax,%eax <== NOT EXECUTED 12c344: 74 0c je 12c352 <== NOT EXECUTED 12c346: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c349: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12c34c: 52 push %edx <== NOT EXECUTED 12c34d: ff d0 call *%eax <== NOT EXECUTED 12c34f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c352: e8 4d 65 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12c357: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c35d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12c360: be ff ff ff ff mov $0xffffffff,%esi rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 12c365: 89 f0 mov %esi,%eax 12c367: 8d 65 f4 lea -0xc(%ebp),%esp 12c36a: 5b pop %ebx 12c36b: 5e pop %esi 12c36c: 5f pop %edi 12c36d: c9 leave 12c36e: c3 ret 12c36f: 90 nop <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 12c370: 8d 5d bc lea -0x44(%ebp),%ebx 12c373: 8b 35 84 92 16 00 mov 0x169284,%esi 12c379: 83 c6 04 add $0x4,%esi 12c37c: b9 05 00 00 00 mov $0x5,%ecx 12c381: 89 df mov %ebx,%edi 12c383: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c385: 31 d2 xor %edx,%edx 12c387: e9 23 ff ff ff jmp 12c2af * 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 ); 12c38c: 8b 45 dc mov -0x24(%ebp),%eax 12c38f: 85 c0 test %eax,%eax 12c391: 74 13 je 12c3a6 12c393: 8b 40 1c mov 0x1c(%eax),%eax 12c396: 85 c0 test %eax,%eax 12c398: 74 0c je 12c3a6 12c39a: 83 ec 0c sub $0xc,%esp 12c39d: 8d 55 d0 lea -0x30(%ebp),%edx 12c3a0: 52 push %edx 12c3a1: ff d0 call *%eax 12c3a3: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &parent_loc ); 12c3a6: 8b 45 c8 mov -0x38(%ebp),%eax 12c3a9: 85 c0 test %eax,%eax 12c3ab: 74 10 je 12c3bd 12c3ad: 8b 40 1c mov 0x1c(%eax),%eax 12c3b0: 85 c0 test %eax,%eax 12c3b2: 74 09 je 12c3bd 12c3b4: 83 ec 0c sub $0xc,%esp 12c3b7: 53 push %ebx 12c3b8: ff d0 call *%eax 12c3ba: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EXDEV ); 12c3bd: e8 e2 64 01 00 call 1428a4 <__errno> 12c3c2: c7 00 12 00 00 00 movl $0x12,(%eax) 12c3c8: be ff ff ff ff mov $0xffffffff,%esi rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 12c3cd: 89 f0 mov %esi,%eax 12c3cf: 8d 65 f4 lea -0xc(%ebp),%esp 12c3d2: 5b pop %ebx 12c3d3: 5e pop %esi 12c3d4: 5f pop %edi 12c3d5: c9 leave 12c3d6: c3 ret 12c3d7: 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 ); 12c3d8: 8b 45 dc mov -0x24(%ebp),%eax 12c3db: 85 c0 test %eax,%eax 12c3dd: 74 13 je 12c3f2 12c3df: 8b 40 1c mov 0x1c(%eax),%eax 12c3e2: 85 c0 test %eax,%eax 12c3e4: 74 0c je 12c3f2 12c3e6: 83 ec 0c sub $0xc,%esp 12c3e9: 8d 55 d0 lea -0x30(%ebp),%edx 12c3ec: 52 push %edx 12c3ed: ff d0 call *%eax 12c3ef: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( result ); 12c3f2: e8 ad 64 01 00 call 1428a4 <__errno> 12c3f7: 89 30 mov %esi,(%eax) 12c3f9: be ff ff ff ff mov $0xffffffff,%esi 12c3fe: e9 2a ff ff ff jmp 12c32d rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 12c403: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12c406: 85 c0 test %eax,%eax <== NOT EXECUTED 12c408: 74 16 je 12c420 <== NOT EXECUTED 12c40a: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c40d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c40f: 74 0f je 12c420 <== NOT EXECUTED 12c411: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c414: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12c417: 52 push %edx <== NOT EXECUTED 12c418: ff d0 call *%eax <== NOT EXECUTED 12c41a: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED 12c41d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 12c420: 85 d2 test %edx,%edx <== NOT EXECUTED 12c422: 74 10 je 12c434 <== NOT EXECUTED 12c424: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c427: 85 c0 test %eax,%eax <== NOT EXECUTED 12c429: 74 09 je 12c434 <== NOT EXECUTED 12c42b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c42e: 53 push %ebx <== NOT EXECUTED 12c42f: ff d0 call *%eax <== NOT EXECUTED 12c431: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c434: e8 6b 64 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12c439: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c43f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 12c444: e9 e4 fe ff ff jmp 12c32d <== NOT EXECUTED 0011eb90 : off_t lseek( int fd, off_t offset, int whence ) { 11eb90: 55 push %ebp 11eb91: 89 e5 mov %esp,%ebp 11eb93: 57 push %edi 11eb94: 56 push %esi 11eb95: 53 push %ebx 11eb96: 83 ec 2c sub $0x2c,%esp 11eb99: 8b 5d 08 mov 0x8(%ebp),%ebx 11eb9c: 8b 75 0c mov 0xc(%ebp),%esi 11eb9f: 8b 7d 10 mov 0x10(%ebp),%edi 11eba2: 8b 45 14 mov 0x14(%ebp),%eax rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 11eba5: 3b 1d 6c 34 12 00 cmp 0x12346c,%ebx 11ebab: 0f 83 b7 00 00 00 jae 11ec68 iop = rtems_libio_iop( fd ); 11ebb1: c1 e3 06 shl $0x6,%ebx 11ebb4: 03 1d 80 75 12 00 add 0x127580,%ebx rtems_libio_check_is_open(iop); 11ebba: f6 43 15 01 testb $0x1,0x15(%ebx) 11ebbe: 0f 84 a4 00 00 00 je 11ec68 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 11ebc4: 8b 53 3c mov 0x3c(%ebx),%edx 11ebc7: 89 55 d4 mov %edx,-0x2c(%ebp) 11ebca: 8b 52 14 mov 0x14(%edx),%edx 11ebcd: 85 d2 test %edx,%edx 11ebcf: 0f 84 aa 00 00 00 je 11ec7f /* * Now process the lseek(). */ old_offset = iop->offset; 11ebd5: 8b 53 0c mov 0xc(%ebx),%edx 11ebd8: 8b 4b 10 mov 0x10(%ebx),%ecx 11ebdb: 89 55 e0 mov %edx,-0x20(%ebp) 11ebde: 89 4d e4 mov %ecx,-0x1c(%ebp) switch ( whence ) { 11ebe1: 83 f8 01 cmp $0x1,%eax 11ebe4: 74 6e je 11ec54 11ebe6: 83 f8 02 cmp $0x2,%eax 11ebe9: 74 35 je 11ec20 11ebeb: 85 c0 test %eax,%eax 11ebed: 75 45 jne 11ec34 case SEEK_SET: iop->offset = offset; 11ebef: 89 73 0c mov %esi,0xc(%ebx) 11ebf2: 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 ); 11ebf5: 50 push %eax 11ebf6: 57 push %edi 11ebf7: 56 push %esi 11ebf8: 53 push %ebx 11ebf9: 8b 4d d4 mov -0x2c(%ebp),%ecx 11ebfc: ff 51 14 call *0x14(%ecx) if ( status == (off_t) -1 ) 11ebff: 83 c4 10 add $0x10,%esp 11ec02: 89 c1 mov %eax,%ecx 11ec04: 21 d1 and %edx,%ecx 11ec06: 41 inc %ecx 11ec07: 75 0c jne 11ec15 iop->offset = old_offset; 11ec09: 8b 75 e0 mov -0x20(%ebp),%esi 11ec0c: 8b 7d e4 mov -0x1c(%ebp),%edi 11ec0f: 89 73 0c mov %esi,0xc(%ebx) 11ec12: 89 7b 10 mov %edi,0x10(%ebx) /* * So if the operation failed, we have to restore iop->offset. */ return status; } 11ec15: 8d 65 f4 lea -0xc(%ebp),%esp 11ec18: 5b pop %ebx 11ec19: 5e pop %esi 11ec1a: 5f pop %edi 11ec1b: c9 leave 11ec1c: c3 ret 11ec1d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 11ec20: 89 f2 mov %esi,%edx 11ec22: 89 f9 mov %edi,%ecx 11ec24: 03 53 04 add 0x4(%ebx),%edx 11ec27: 13 4b 08 adc 0x8(%ebx),%ecx 11ec2a: 89 53 0c mov %edx,0xc(%ebx) 11ec2d: 89 4b 10 mov %ecx,0x10(%ebx) break; 11ec30: eb c3 jmp 11ebf5 11ec32: 66 90 xchg %ax,%ax <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( EINVAL ); 11ec34: e8 5b 4c ff ff call 113894 <__errno> 11ec39: c7 00 16 00 00 00 movl $0x16,(%eax) 11ec3f: b8 ff ff ff ff mov $0xffffffff,%eax 11ec44: ba ff ff ff ff mov $0xffffffff,%edx /* * So if the operation failed, we have to restore iop->offset. */ return status; } 11ec49: 8d 65 f4 lea -0xc(%ebp),%esp 11ec4c: 5b pop %ebx 11ec4d: 5e pop %esi 11ec4e: 5f pop %edi 11ec4f: c9 leave 11ec50: c3 ret 11ec51: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 11ec54: 8b 55 e0 mov -0x20(%ebp),%edx 11ec57: 8b 4d e4 mov -0x1c(%ebp),%ecx 11ec5a: 01 f2 add %esi,%edx 11ec5c: 11 f9 adc %edi,%ecx 11ec5e: 89 53 0c mov %edx,0xc(%ebx) 11ec61: 89 4b 10 mov %ecx,0x10(%ebx) break; 11ec64: eb 8f jmp 11ebf5 11ec66: 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); 11ec68: e8 27 4c ff ff call 113894 <__errno> 11ec6d: c7 00 09 00 00 00 movl $0x9,(%eax) 11ec73: b8 ff ff ff ff mov $0xffffffff,%eax 11ec78: ba ff ff ff ff mov $0xffffffff,%edx 11ec7d: eb 96 jmp 11ec15 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11ec7f: e8 10 4c ff ff call 113894 <__errno> <== NOT EXECUTED 11ec84: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11ec8a: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11ec8f: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 11ec94: e9 7c ff ff ff jmp 11ec15 <== NOT EXECUTED 0012c598 : int _STAT_NAME( const char *path, struct stat *buf ) { 12c598: 55 push %ebp <== NOT EXECUTED 12c599: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c59b: 57 push %edi <== NOT EXECUTED 12c59c: 56 push %esi <== NOT EXECUTED 12c59d: 53 push %ebx <== NOT EXECUTED 12c59e: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED 12c5a1: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12c5a4: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 12c5a7: 85 f6 test %esi,%esi <== NOT EXECUTED 12c5a9: 0f 84 9d 00 00 00 je 12c64c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 12c5af: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12c5b4: 89 d7 mov %edx,%edi <== NOT EXECUTED 12c5b6: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c5b8: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12c5ba: f7 d1 not %ecx <== NOT EXECUTED 12c5bc: 49 dec %ecx <== NOT EXECUTED 12c5bd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c5c0: 6a 00 push $0x0 <== NOT EXECUTED 12c5c2: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12c5c5: 53 push %ebx <== NOT EXECUTED 12c5c6: 6a 00 push $0x0 <== NOT EXECUTED 12c5c8: 51 push %ecx <== NOT EXECUTED 12c5c9: 52 push %edx <== NOT EXECUTED 12c5ca: e8 dd 07 fe ff call 10cdac <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 12c5cf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12c5d2: 85 c0 test %eax,%eax <== NOT EXECUTED 12c5d4: 75 66 jne 12c63c <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 12c5d6: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 12c5d9: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED 12c5dc: 85 c0 test %eax,%eax <== NOT EXECUTED 12c5de: 74 39 je 12c619 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 12c5e0: b9 48 00 00 00 mov $0x48,%ecx <== NOT EXECUTED 12c5e5: 89 f7 mov %esi,%edi <== NOT EXECUTED 12c5e7: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c5e9: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 12c5eb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c5ee: 56 push %esi <== NOT EXECUTED 12c5ef: 53 push %ebx <== NOT EXECUTED 12c5f0: ff 52 18 call *0x18(%edx) <== NOT EXECUTED 12c5f3: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 12c5f5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c5f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c5fb: 85 c0 test %eax,%eax <== NOT EXECUTED 12c5fd: 74 10 je 12c60f <== NOT EXECUTED 12c5ff: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c602: 85 c0 test %eax,%eax <== NOT EXECUTED 12c604: 74 09 je 12c60f <== NOT EXECUTED 12c606: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c609: 53 push %ebx <== NOT EXECUTED 12c60a: ff d0 call *%eax <== NOT EXECUTED 12c60c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return status; } 12c60f: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c611: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c614: 5b pop %ebx <== NOT EXECUTED 12c615: 5e pop %esi <== NOT EXECUTED 12c616: 5f pop %edi <== NOT EXECUTED 12c617: c9 leave <== NOT EXECUTED 12c618: c3 ret <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 12c619: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c61c: 85 c0 test %eax,%eax <== NOT EXECUTED 12c61e: 74 10 je 12c630 <== NOT EXECUTED 12c620: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c623: 85 c0 test %eax,%eax <== NOT EXECUTED 12c625: 74 09 je 12c630 <== NOT EXECUTED 12c627: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c62a: 53 push %ebx <== NOT EXECUTED 12c62b: ff d0 call *%eax <== NOT EXECUTED 12c62d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c630: e8 6f 62 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12c635: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c63b: 90 nop <== NOT EXECUTED 12c63c: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 12c641: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c643: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c646: 5b pop %ebx <== NOT EXECUTED 12c647: 5e pop %esi <== NOT EXECUTED 12c648: 5f pop %edi <== NOT EXECUTED 12c649: c9 leave <== NOT EXECUTED 12c64a: c3 ret <== NOT EXECUTED 12c64b: 90 nop <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 12c64c: e8 53 62 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12c651: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12c657: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 12c65c: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c65e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c661: 5b pop %ebx <== NOT EXECUTED 12c662: 5e pop %esi <== NOT EXECUTED 12c663: 5f pop %edi <== NOT EXECUTED 12c664: c9 leave <== NOT EXECUTED 12c665: 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 a4 75 12 00 incl 0x1275a4 /* * 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 e0 78 12 00 03 cmpl $0x3,0x1278e0 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 78 34 12 00 pushl 0x123478 10829b: e8 a8 4c 00 00 call 10cf48 <_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 50 59 12 00 mov 0x125950,%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 48 59 12 00 mov 0x125948,%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 4c 59 12 00 mov 0x12594c,%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 72 b5 00 00 call 113894 <__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 8c 75 12 00 push $0x12758c <== NOT EXECUTED 10818a: e8 29 3d 00 00 call 10beb8 <_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 8c 75 12 00 push $0x12758c 1081b0: e8 27 3d 00 00 call 10bedc <_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 0012c680 : */ int malloc_info( Heap_Information_block *the_info ) { 12c680: 55 push %ebp 12c681: 89 e5 mov %esp,%ebp 12c683: 83 ec 08 sub $0x8,%esp 12c686: 8b 45 08 mov 0x8(%ebp),%eax if ( !the_info ) 12c689: 85 c0 test %eax,%eax 12c68b: 74 17 je 12c6a4 return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); 12c68d: 83 ec 08 sub $0x8,%esp 12c690: 50 push %eax 12c691: ff 35 58 71 16 00 pushl 0x167158 12c697: e8 88 29 00 00 call 12f024 <_Protected_heap_Get_information> 12c69c: 31 c0 xor %eax,%eax return 0; 12c69e: 83 c4 10 add $0x10,%esp } 12c6a1: c9 leave 12c6a2: c3 ret 12c6a3: 90 nop <== NOT EXECUTED int malloc_info( Heap_Information_block *the_info ) { if ( !the_info ) 12c6a4: b8 ff ff ff ff mov $0xffffffff,%eax return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); return 0; } 12c6a9: c9 leave 12c6aa: 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 18 77 12 00 mov 0x127718,%eax 108144: 85 c0 test %eax,%eax 108146: 75 0c jne 108154 return false; if ( _ISR_Nest_level > 0 ) 108148: a1 b4 77 12 00 mov 0x1277b4,%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 00116b98 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 116b98: 55 push %ebp 116b99: 89 e5 mov %esp,%ebp 116b9b: 53 push %ebx 116b9c: 83 ec 10 sub $0x10,%esp 116b9f: 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) ) { 116ba2: 53 push %ebx 116ba3: e8 1c db ff ff call 1146c4 116ba8: 83 c4 10 add $0x10,%esp 116bab: 85 c0 test %eax,%eax 116bad: 75 2f jne 116bde 116baf: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 116bb4: 75 28 jne 116bde /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 116bb6: a1 18 a8 12 00 mov 0x12a818,%eax 116bbb: 39 58 04 cmp %ebx,0x4(%eax) 116bbe: 74 28 je 116be8 rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 116bc0: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx) 116bc4: 74 0c je 116bd2 IMFS_memfile_remove( the_jnode ); 116bc6: 83 ec 0c sub $0xc,%esp 116bc9: 53 push %ebx 116bca: e8 21 fe ff ff call 1169f0 116bcf: 83 c4 10 add $0x10,%esp free( the_jnode ); 116bd2: 83 ec 0c sub $0xc,%esp 116bd5: 53 push %ebx 116bd6: e8 c5 27 ff ff call 1093a0 116bdb: 83 c4 10 add $0x10,%esp } return 0; } 116bde: 31 c0 xor %eax,%eax 116be0: 8b 5d fc mov -0x4(%ebp),%ebx 116be3: c9 leave 116be4: c3 ret 116be5: 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; 116be8: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 116bef: eb cf jmp 116bc0 <== NOT EXECUTED 00116928 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 116928: 55 push %ebp 116929: 89 e5 mov %esp,%ebp 11692b: 57 push %edi 11692c: 56 push %esi 11692d: 53 push %ebx 11692e: 83 ec 0c sub $0xc,%esp 116931: 8b 7d 0c mov 0xc(%ebp),%edi /* * Perform internal consistency checks */ assert( block_table ); 116934: 8b 45 08 mov 0x8(%ebp),%eax 116937: 85 c0 test %eax,%eax 116939: 74 4e je 116989 /* * Now go through all the slots in the table and free the memory. */ b = *block_table; 11693b: 8b 45 08 mov 0x8(%ebp),%eax 11693e: 8b 30 mov (%eax),%esi for ( i=0 ; i 116944: 31 db xor %ebx,%ebx 116946: 66 90 xchg %ax,%ax if ( b[i] ) { 116948: 8b 04 9e mov (%esi,%ebx,4),%eax 11694b: 85 c0 test %eax,%eax 11694d: 74 13 je 116962 memfile_free_block( b[i] ); 11694f: 83 ec 0c sub $0xc,%esp 116952: 50 push %eax 116953: e8 b0 fd ff ff call 116708 b[i] = 0; 116958: c7 04 9e 00 00 00 00 movl $0x0,(%esi,%ebx,4) 11695f: 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 116967: 8b 45 08 mov 0x8(%ebp),%eax 11696a: 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 ); 11696c: 83 ec 0c sub $0xc,%esp 11696f: 56 push %esi 116970: e8 93 fd ff ff call 116708 *block_table = 0; 116975: 8b 45 08 mov 0x8(%ebp),%eax 116978: c7 00 00 00 00 00 movl $0x0,(%eax) 11697e: 83 c4 10 add $0x10,%esp } 116981: 8d 65 f4 lea -0xc(%ebp),%esp 116984: 5b pop %ebx 116985: 5e pop %esi 116986: 5f pop %edi 116987: c9 leave 116988: c3 ret /* * Perform internal consistency checks */ assert( block_table ); 116989: 68 b6 69 12 00 push $0x1269b6 <== NOT EXECUTED 11698e: 68 e8 6a 12 00 push $0x126ae8 <== NOT EXECUTED 116993: 68 b3 01 00 00 push $0x1b3 <== NOT EXECUTED 116998: 68 d8 69 12 00 push $0x1269d8 <== NOT EXECUTED 11699d: e8 6e 26 ff ff call 109010 <__assert_func> <== NOT EXECUTED 00116e4c : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 116e4c: 55 push %ebp 116e4d: 89 e5 mov %esp,%ebp 116e4f: 53 push %ebx 116e50: 83 ec 14 sub $0x14,%esp 116e53: 8b 4d 08 mov 0x8(%ebp),%ecx 116e56: 8b 45 0c mov 0xc(%ebp),%eax 116e59: 8b 55 10 mov 0x10(%ebp),%edx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 116e5c: 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 ) 116e5f: 39 53 54 cmp %edx,0x54(%ebx) 116e62: 7f 19 jg 116e7d 116e64: 7d 12 jge 116e78 return IMFS_memfile_extend( the_jnode, length ); 116e66: 51 push %ecx <== NOT EXECUTED 116e67: 52 push %edx <== NOT EXECUTED 116e68: 50 push %eax <== NOT EXECUTED 116e69: 53 push %ebx <== NOT EXECUTED 116e6a: e8 79 fe ff ff call 116ce8 <== NOT EXECUTED 116e6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 116e72: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 116e75: c9 leave <== NOT EXECUTED 116e76: c3 ret <== NOT EXECUTED 116e77: 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 ) 116e78: 39 43 50 cmp %eax,0x50(%ebx) 116e7b: 72 e9 jb 116e66 * 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; 116e7d: 89 43 50 mov %eax,0x50(%ebx) 116e80: 89 53 54 mov %edx,0x54(%ebx) iop->size = the_jnode->info.file.size; 116e83: 89 41 04 mov %eax,0x4(%ecx) 116e86: 89 51 08 mov %edx,0x8(%ecx) IMFS_update_atime( the_jnode ); 116e89: 83 ec 08 sub $0x8,%esp 116e8c: 6a 00 push $0x0 116e8e: 8d 45 f0 lea -0x10(%ebp),%eax 116e91: 50 push %eax 116e92: e8 85 25 ff ff call 10941c 116e97: 8b 45 f0 mov -0x10(%ebp),%eax 116e9a: 89 43 40 mov %eax,0x40(%ebx) 116e9d: 31 c0 xor %eax,%eax return 0; 116e9f: 83 c4 10 add $0x10,%esp } 116ea2: 8b 5d fc mov -0x4(%ebp),%ebx 116ea5: c9 leave 116ea6: c3 ret 00116ea8 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 116ea8: 55 push %ebp 116ea9: 89 e5 mov %esp,%ebp 116eab: 57 push %edi 116eac: 56 push %esi 116ead: 53 push %ebx 116eae: 83 ec 0c sub $0xc,%esp 116eb1: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 116eb4: 8b 73 38 mov 0x38(%ebx),%esi if (the_jnode->type == IMFS_LINEAR_FILE) { 116eb7: 83 7e 4c 06 cmpl $0x6,0x4c(%esi) 116ebb: 74 2f je 116eec 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 )) 116ebd: 57 push %edi 116ebe: ff 73 10 pushl 0x10(%ebx) 116ec1: ff 73 0c pushl 0xc(%ebx) 116ec4: 56 push %esi 116ec5: e8 1e fe ff ff call 116ce8 116eca: 83 c4 10 add $0x10,%esp 116ecd: 85 c0 test %eax,%eax 116ecf: 75 4d jne 116f1e rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 116ed1: 8b 46 50 mov 0x50(%esi),%eax 116ed4: 8b 56 54 mov 0x54(%esi),%edx 116ed7: 89 43 04 mov %eax,0x4(%ebx) 116eda: 89 53 08 mov %edx,0x8(%ebx) 116edd: 8b 43 0c mov 0xc(%ebx),%eax 116ee0: 8b 53 10 mov 0x10(%ebx),%edx } return iop->offset; } 116ee3: 8d 65 f4 lea -0xc(%ebp),%esp 116ee6: 5b pop %ebx 116ee7: 5e pop %esi 116ee8: 5f pop %edi 116ee9: c9 leave 116eea: c3 ret 116eeb: 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) 116eec: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED 116eef: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED 116ef2: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED 116ef5: 8b 56 54 mov 0x54(%esi),%edx <== NOT EXECUTED 116ef8: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 116efa: 7f 14 jg 116f10 <== NOT EXECUTED 116efc: 7d 0e jge 116f0c <== NOT EXECUTED 116efe: 89 f8 mov %edi,%eax <== NOT EXECUTED 116f00: 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; } 116f02: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116f05: 5b pop %ebx <== NOT EXECUTED 116f06: 5e pop %esi <== NOT EXECUTED 116f07: 5f pop %edi <== NOT EXECUTED 116f08: c9 leave <== NOT EXECUTED 116f09: c3 ret <== NOT EXECUTED 116f0a: 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) 116f0c: 39 c7 cmp %eax,%edi <== NOT EXECUTED 116f0e: 76 ee jbe 116efe <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 116f10: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED 116f13: 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; } 116f16: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116f19: 5b pop %ebx <== NOT EXECUTED 116f1a: 5e pop %esi <== NOT EXECUTED 116f1b: 5f pop %edi <== NOT EXECUTED 116f1c: c9 leave <== NOT EXECUTED 116f1d: 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 ); 116f1e: e8 d9 1a 00 00 call 1189fc <__errno> <== NOT EXECUTED 116f23: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 116f29: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 116f2e: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 116f33: eb ae jmp 116ee3 <== NOT EXECUTED 001171c4 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 1171c4: 55 push %ebp 1171c5: 89 e5 mov %esp,%ebp 1171c7: 56 push %esi 1171c8: 53 push %ebx 1171c9: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 1171cc: 8b 73 38 mov 0x38(%ebx),%esi /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 1171cf: 8b 43 14 mov 0x14(%ebx),%eax 1171d2: a9 04 02 00 00 test $0x204,%eax 1171d7: 74 06 je 1171df && (the_jnode->type == IMFS_LINEAR_FILE)) { 1171d9: 83 7e 4c 06 cmpl $0x6,0x4c(%esi) 1171dd: 74 2d je 11720c 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) 1171df: 8b 56 50 mov 0x50(%esi),%edx 1171e2: 8b 4e 54 mov 0x54(%esi),%ecx && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 1171e5: f6 c4 02 test $0x2,%ah 1171e8: 75 12 jne 1171fc iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; 1171ea: 89 53 04 mov %edx,0x4(%ebx) 1171ed: 89 4b 08 mov %ecx,0x8(%ebx) 1171f0: 31 c0 xor %eax,%eax return 0; } 1171f2: 8d 65 f8 lea -0x8(%ebp),%esp 1171f5: 5b pop %ebx 1171f6: 5e pop %esi 1171f7: c9 leave 1171f8: c3 ret 1171f9: 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; 1171fc: 89 53 0c mov %edx,0xc(%ebx) 1171ff: 89 4b 10 mov %ecx,0x10(%ebx) 117202: 8b 56 50 mov 0x50(%esi),%edx 117205: 8b 4e 54 mov 0x54(%esi),%ecx 117208: eb e0 jmp 1171ea 11720a: 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; 11720c: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 11720f: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 117212: c7 46 4c 05 00 00 00 movl $0x5,0x4c(%esi) <== NOT EXECUTED the_jnode->info.file.size = 0; 117219: c7 46 50 00 00 00 00 movl $0x0,0x50(%esi) <== NOT EXECUTED 117220: c7 46 54 00 00 00 00 movl $0x0,0x54(%esi) <== NOT EXECUTED the_jnode->info.file.indirect = 0; 117227: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi) <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; 11722e: c7 46 5c 00 00 00 00 movl $0x0,0x5c(%esi) <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 117235: c7 46 60 00 00 00 00 movl $0x0,0x60(%esi) <== NOT EXECUTED if ((count != 0) 11723c: 85 c0 test %eax,%eax <== NOT EXECUTED 11723e: 75 09 jne 117249 <== NOT EXECUTED 117240: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 117243: 31 d2 xor %edx,%edx <== NOT EXECUTED 117245: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 117247: eb 9c jmp 1171e5 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 117249: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11724c: 50 push %eax <== NOT EXECUTED 11724d: 52 push %edx <== NOT EXECUTED 11724e: 6a 00 push $0x0 <== NOT EXECUTED 117250: 6a 00 push $0x0 <== NOT EXECUTED 117252: 56 push %esi <== NOT EXECUTED 117253: e8 e0 fc ff ff call 116f38 <== 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) 117258: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 11725b: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED 11725e: 74 92 je 1171f2 <== NOT EXECUTED 117260: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 117263: e9 77 ff ff ff jmp 1171df <== 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 38 53 12 00 mov 0x125338,%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 38 53 12 00 mov 0x125338,%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 78 b4 00 00 call 113894 <__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 5b b4 00 00 call 113894 <__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 b3 be 00 00 call 1143b4 <== 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 cc 75 12 00 mov 0x1275cc,%eax 10855f: 3d d0 75 12 00 cmp $0x1275d0,%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 d0 75 12 00 cmp $0x1275d0,%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 cc 75 12 00 push $0x1275cc 1085cd: e8 e6 38 00 00 call 10beb8 <_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 a3 b2 00 00 call 113894 <__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 db b1 00 00 call 113894 <__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 be b1 00 00 call 113894 <__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 ae b1 00 00 call 113894 <__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 84 b1 00 00 call 113894 <__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 74 b1 00 00 call 113894 <__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 0010f7b8 : int mq_notify( mqd_t mqdes, const struct sigevent *notification ) { 10f7b8: 55 push %ebp 10f7b9: 89 e5 mov %esp,%ebp 10f7bb: 57 push %edi 10f7bc: 56 push %esi 10f7bd: 83 ec 14 sub $0x14,%esp 10f7c0: 8b 75 0c mov 0xc(%ebp),%esi 10f7c3: 8d 45 f4 lea -0xc(%ebp),%eax 10f7c6: 50 push %eax 10f7c7: ff 75 08 pushl 0x8(%ebp) 10f7ca: 68 e0 06 13 00 push $0x1306e0 10f7cf: e8 94 31 00 00 call 112968 <_Objects_Get> POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 10f7d4: 83 c4 10 add $0x10,%esp 10f7d7: 8b 4d f4 mov -0xc(%ebp),%ecx 10f7da: 85 c9 test %ecx,%ecx 10f7dc: 74 1a je 10f7f8 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 10f7de: e8 29 9f 00 00 call 11970c <__errno> 10f7e3: c7 00 09 00 00 00 movl $0x9,(%eax) 10f7e9: b8 ff ff ff ff mov $0xffffffff,%eax 10f7ee: 66 90 xchg %ax,%ax } 10f7f0: 8d 65 f8 lea -0x8(%ebp),%esp 10f7f3: 5e pop %esi 10f7f4: 5f pop %edi 10f7f5: c9 leave 10f7f6: c3 ret 10f7f7: 90 nop <== NOT EXECUTED the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; 10f7f8: 8b 40 10 mov 0x10(%eax),%eax if ( notification ) { 10f7fb: 85 f6 test %esi,%esi 10f7fd: 74 39 je 10f838 if ( _CORE_message_queue_Is_notify_enabled( &the_mq->Message_queue ) ) { 10f7ff: 8b 50 7c mov 0x7c(%eax),%edx 10f802: 85 d2 test %edx,%edx 10f804: 75 46 jne 10f84c CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; the_message_queue->notify_argument = the_argument; 10f806: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax) 10f80d: 00 00 00 rtems_set_errno_and_return_minus_one( EBUSY ); } _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); the_mq->notification = *notification; 10f810: 8d b8 90 00 00 00 lea 0x90(%eax),%edi 10f816: b9 05 00 00 00 mov $0x5,%ecx 10f81b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; 10f81d: c7 40 7c 64 f8 10 00 movl $0x10f864,0x7c(%eax) the_message_queue->notify_argument = the_argument; 10f824: 89 80 80 00 00 00 mov %eax,0x80(%eax) _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); } _Thread_Enable_dispatch(); 10f82a: e8 fd 39 00 00 call 11322c <_Thread_Enable_dispatch> 10f82f: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 10f831: 8d 65 f8 lea -0x8(%ebp),%esp 10f834: 5e pop %esi 10f835: 5f pop %edi 10f836: c9 leave 10f837: c3 ret CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; 10f838: c7 40 7c 00 00 00 00 movl $0x0,0x7c(%eax) the_message_queue->notify_argument = the_argument; 10f83f: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax) 10f846: 00 00 00 10f849: eb df jmp 10f82a 10f84b: 90 nop <== NOT EXECUTED case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; if ( notification ) { if ( _CORE_message_queue_Is_notify_enabled( &the_mq->Message_queue ) ) { _Thread_Enable_dispatch(); 10f84c: e8 db 39 00 00 call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EBUSY ); 10f851: e8 b6 9e 00 00 call 11970c <__errno> 10f856: c7 00 10 00 00 00 movl $0x10,(%eax) 10f85c: b8 ff ff ff ff mov $0xffffffff,%eax 10f861: eb 8d jmp 10f7f0 0010f89c : int oflag, ... /* mode_t mode, */ /* struct mq_attr attr */ ) { 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 75 0c mov 0xc(%ebp),%esi rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10f8a8: a1 78 01 13 00 mov 0x130178,%eax 10f8ad: 40 inc %eax 10f8ae: a3 78 01 13 00 mov %eax,0x130178 POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { 10f8b3: 89 f0 mov %esi,%eax 10f8b5: 25 00 02 00 00 and $0x200,%eax 10f8ba: 89 45 d4 mov %eax,-0x2c(%ebp) 10f8bd: 0f 85 c9 00 00 00 jne 10f98c 10f8c3: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) */ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd * _POSIX_Message_queue_Allocate_fd( void ) { return (POSIX_Message_queue_Control_fd *) 10f8ca: 83 ec 0c sub $0xc,%esp 10f8cd: 68 e0 06 13 00 push $0x1306e0 10f8d2: e8 e1 2b 00 00 call 1124b8 <_Objects_Allocate> 10f8d7: 89 c3 mov %eax,%ebx attr = (struct mq_attr *) va_arg( arg, struct mq_attr * ); va_end(arg); } the_mq_fd = _POSIX_Message_queue_Allocate_fd(); if ( !the_mq_fd ) { 10f8d9: 83 c4 10 add $0x10,%esp 10f8dc: 85 c0 test %eax,%eax 10f8de: 0f 84 b4 00 00 00 je 10f998 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENFILE ); } the_mq_fd->oflag = oflag; 10f8e4: 89 70 14 mov %esi,0x14(%eax) status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); 10f8e7: 83 ec 08 sub $0x8,%esp 10f8ea: 8d 45 e4 lea -0x1c(%ebp),%eax 10f8ed: 50 push %eax 10f8ee: ff 75 08 pushl 0x8(%ebp) 10f8f1: e8 26 65 00 00 call 115e1c <_POSIX_Message_queue_Name_to_id> 10f8f6: 89 c7 mov %eax,%edi * If the name to id translation worked, then the message queue exists * and we can just return a pointer to the id. Otherwise we may * need to check to see if this is a "message queue does not exist" * or some other miscellaneous error on the name. */ if ( status ) { 10f8f8: 83 c4 10 add $0x10,%esp 10f8fb: 85 c0 test %eax,%eax 10f8fd: 75 59 jne 10f958 } else { /* name -> ID translation succeeded */ /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { 10f8ff: 81 e6 00 0a 00 00 and $0xa00,%esi 10f905: 81 fe 00 0a 00 00 cmp $0xa00,%esi 10f90b: 0f 84 a7 00 00 00 je 10f9b8 RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (POSIX_Message_queue_Control *) 10f911: 50 push %eax 10f912: 8d 45 dc lea -0x24(%ebp),%eax 10f915: 50 push %eax 10f916: ff 75 e4 pushl -0x1c(%ebp) 10f919: 68 40 05 13 00 push $0x130540 10f91e: e8 45 30 00 00 call 112968 <_Objects_Get> /* * In this case we need to do an ID->pointer conversion to * check the mode. */ the_mq = _POSIX_Message_queue_Get( the_mq_id, &location ); 10f923: 89 45 e0 mov %eax,-0x20(%ebp) the_mq->open_count += 1; 10f926: ff 40 18 incl 0x18(%eax) the_mq_fd->Queue = the_mq; 10f929: 89 43 10 mov %eax,0x10(%ebx) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10f92c: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10f930: a1 fc 06 13 00 mov 0x1306fc,%eax 10f935: 89 1c 90 mov %ebx,(%eax,%edx,4) the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; 10f938: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) _Objects_Open_string( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object, NULL ); _Thread_Enable_dispatch(); 10f93f: e8 e8 38 00 00 call 11322c <_Thread_Enable_dispatch> _Thread_Enable_dispatch(); 10f944: e8 e3 38 00 00 call 11322c <_Thread_Enable_dispatch> return (mqd_t)the_mq_fd->Object.id; 10f949: 8b 43 08 mov 0x8(%ebx),%eax 10f94c: 83 c4 10 add $0x10,%esp ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } 10f94f: 8d 65 f4 lea -0xc(%ebp),%esp 10f952: 5b pop %ebx 10f953: 5e pop %esi 10f954: 5f pop %edi 10f955: c9 leave 10f956: c3 ret 10f957: 90 nop <== NOT EXECUTED if ( status ) { /* * Unless provided a valid name that did not already exist * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { 10f958: 83 f8 02 cmp $0x2,%eax 10f95b: 0f 84 87 00 00 00 je 10f9e8 RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd ( POSIX_Message_queue_Control_fd *the_mq_fd ) { _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object ); 10f961: 83 ec 08 sub $0x8,%esp 10f964: 53 push %ebx 10f965: 68 e0 06 13 00 push $0x1306e0 10f96a: e8 c9 2e 00 00 call 112838 <_Objects_Free> _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); 10f96f: e8 b8 38 00 00 call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one_cast( status, mqd_t ); 10f974: e8 93 9d 00 00 call 11970c <__errno> 10f979: 89 38 mov %edi,(%eax) 10f97b: b8 ff ff ff ff mov $0xffffffff,%eax 10f980: 83 c4 10 add $0x10,%esp ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } 10f983: 8d 65 f4 lea -0xc(%ebp),%esp 10f986: 5b pop %ebx 10f987: 5e pop %esi 10f988: 5f pop %edi 10f989: c9 leave 10f98a: c3 ret 10f98b: 90 nop <== NOT EXECUTED _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); mode = (mode_t) va_arg( arg, unsigned int ); attr = (struct mq_attr *) va_arg( arg, struct mq_attr * ); 10f98c: 8b 45 14 mov 0x14(%ebp),%eax 10f98f: 89 45 d0 mov %eax,-0x30(%ebp) 10f992: e9 33 ff ff ff jmp 10f8ca 10f997: 90 nop <== NOT EXECUTED va_end(arg); } the_mq_fd = _POSIX_Message_queue_Allocate_fd(); if ( !the_mq_fd ) { _Thread_Enable_dispatch(); 10f998: e8 8f 38 00 00 call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( ENFILE ); 10f99d: e8 6a 9d 00 00 call 11970c <__errno> 10f9a2: c7 00 17 00 00 00 movl $0x17,(%eax) 10f9a8: b8 ff ff ff ff mov $0xffffffff,%eax ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } 10f9ad: 8d 65 f4 lea -0xc(%ebp),%esp 10f9b0: 5b pop %ebx 10f9b1: 5e pop %esi 10f9b2: 5f pop %edi 10f9b3: c9 leave 10f9b4: c3 ret 10f9b5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10f9b8: 83 ec 08 sub $0x8,%esp 10f9bb: 53 push %ebx 10f9bc: 68 e0 06 13 00 push $0x1306e0 10f9c1: e8 72 2e 00 00 call 112838 <_Objects_Free> /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); 10f9c6: e8 61 38 00 00 call 11322c <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t ); 10f9cb: e8 3c 9d 00 00 call 11970c <__errno> 10f9d0: c7 00 11 00 00 00 movl $0x11,(%eax) 10f9d6: b8 ff ff ff ff mov $0xffffffff,%eax 10f9db: 83 c4 10 add $0x10,%esp ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } 10f9de: 8d 65 f4 lea -0xc(%ebp),%esp 10f9e1: 5b pop %ebx 10f9e2: 5e pop %esi 10f9e3: 5f pop %edi 10f9e4: c9 leave 10f9e5: c3 ret 10f9e6: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( status ) { /* * Unless provided a valid name that did not already exist * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { 10f9e8: 8b 55 d4 mov -0x2c(%ebp),%edx 10f9eb: 85 d2 test %edx,%edx 10f9ed: 0f 84 6e ff ff ff je 10f961 /* * At this point, the message queue does not exist and everything has been * checked. We should go ahead and create a message queue. */ status = _POSIX_Message_queue_Create_support( 10f9f3: 8d 45 e0 lea -0x20(%ebp),%eax 10f9f6: 50 push %eax 10f9f7: ff 75 d0 pushl -0x30(%ebp) 10f9fa: 6a 01 push $0x1 10f9fc: ff 75 08 pushl 0x8(%ebp) 10f9ff: e8 84 62 00 00 call 115c88 <_POSIX_Message_queue_Create_support> ); /* * errno was set by Create_support, so don't set it again. */ if ( status == -1 ) { 10fa04: 83 c4 10 add $0x10,%esp 10fa07: 40 inc %eax 10fa08: 74 26 je 10fa30 _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); return (mqd_t) -1; } the_mq_fd->Queue = the_mq; 10fa0a: 8b 45 e0 mov -0x20(%ebp),%eax 10fa0d: 89 43 10 mov %eax,0x10(%ebx) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10fa10: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10fa14: a1 fc 06 13 00 mov 0x1306fc,%eax 10fa19: 89 1c 90 mov %ebx,(%eax,%edx,4) the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; 10fa1c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object, NULL ); _Thread_Enable_dispatch(); 10fa23: e8 04 38 00 00 call 11322c <_Thread_Enable_dispatch> return (mqd_t) the_mq_fd->Object.id; 10fa28: 8b 43 08 mov 0x8(%ebx),%eax 10fa2b: e9 1f ff ff ff jmp 10f94f 10fa30: 83 ec 08 sub $0x8,%esp 10fa33: 53 push %ebx 10fa34: 68 e0 06 13 00 push $0x1306e0 10fa39: e8 fa 2d 00 00 call 112838 <_Objects_Free> /* * errno was set by Create_support, so don't set it again. */ if ( status == -1 ) { _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); 10fa3e: e8 e9 37 00 00 call 11322c <_Thread_Enable_dispatch> 10fa43: b8 ff ff ff ff mov $0xffffffff,%eax return (mqd_t) -1; 10fa48: 83 c4 10 add $0x10,%esp 10fa4b: e9 ff fe ff ff jmp 10f94f 0010fcb0 : int mq_setattr( mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat ) { 10fcb0: 55 push %ebp 10fcb1: 89 e5 mov %esp,%ebp 10fcb3: 56 push %esi 10fcb4: 53 push %ebx 10fcb5: 83 ec 10 sub $0x10,%esp 10fcb8: 8b 75 0c mov 0xc(%ebp),%esi 10fcbb: 8b 5d 10 mov 0x10(%ebp),%ebx POSIX_Message_queue_Control_fd *the_mq_fd; CORE_message_queue_Control *the_core_mq; Objects_Locations location; if ( !mqstat ) 10fcbe: 85 f6 test %esi,%esi 10fcc0: 74 60 je 10fd22 10fcc2: 51 push %ecx 10fcc3: 8d 45 f4 lea -0xc(%ebp),%eax 10fcc6: 50 push %eax 10fcc7: ff 75 08 pushl 0x8(%ebp) 10fcca: 68 e0 06 13 00 push $0x1306e0 10fccf: e8 94 2c 00 00 call 112968 <_Objects_Get> rtems_set_errno_and_return_minus_one( EINVAL ); the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { 10fcd4: 83 c4 10 add $0x10,%esp 10fcd7: 8b 55 f4 mov -0xc(%ebp),%edx 10fcda: 85 d2 test %edx,%edx 10fcdc: 75 32 jne 10fd10 case OBJECTS_LOCAL: the_core_mq = &the_mq_fd->Queue->Message_queue; 10fcde: 8b 50 10 mov 0x10(%eax),%edx /* * Return the old values. */ if ( omqstat ) { 10fce1: 85 db test %ebx,%ebx 10fce3: 74 17 je 10fcfc omqstat->mq_flags = the_mq_fd->oflag; 10fce5: 8b 48 14 mov 0x14(%eax),%ecx 10fce8: 89 0b mov %ecx,(%ebx) omqstat->mq_msgsize = the_core_mq->maximum_message_size; 10fcea: 8b 4a 68 mov 0x68(%edx),%ecx 10fced: 89 4b 08 mov %ecx,0x8(%ebx) omqstat->mq_maxmsg = the_core_mq->maximum_pending_messages; 10fcf0: 8b 4a 60 mov 0x60(%edx),%ecx 10fcf3: 89 4b 04 mov %ecx,0x4(%ebx) omqstat->mq_curmsgs = the_core_mq->number_of_pending_messages; 10fcf6: 8b 52 64 mov 0x64(%edx),%edx 10fcf9: 89 53 0c mov %edx,0xc(%ebx) } the_mq_fd->oflag = mqstat->mq_flags; 10fcfc: 8b 16 mov (%esi),%edx 10fcfe: 89 50 14 mov %edx,0x14(%eax) _Thread_Enable_dispatch(); 10fd01: e8 26 35 00 00 call 11322c <_Thread_Enable_dispatch> 10fd06: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } 10fd08: 8d 65 f8 lea -0x8(%ebp),%esp 10fd0b: 5b pop %ebx 10fd0c: 5e pop %esi 10fd0d: c9 leave 10fd0e: c3 ret 10fd0f: 90 nop <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); 10fd10: e8 f7 99 00 00 call 11970c <__errno> 10fd15: c7 00 09 00 00 00 movl $0x9,(%eax) 10fd1b: b8 ff ff ff ff mov $0xffffffff,%eax 10fd20: eb e6 jmp 10fd08 POSIX_Message_queue_Control_fd *the_mq_fd; CORE_message_queue_Control *the_core_mq; Objects_Locations location; if ( !mqstat ) rtems_set_errno_and_return_minus_one( EINVAL ); 10fd22: e8 e5 99 00 00 call 11970c <__errno> 10fd27: c7 00 16 00 00 00 movl $0x16,(%eax) 10fd2d: b8 ff ff ff ff mov $0xffffffff,%eax 10fd32: eb d4 jmp 10fd08 00129290 : int nanosleep( const struct timespec *rqtp, struct timespec *rmtp ) { 129290: 55 push %ebp 129291: 89 e5 mov %esp,%ebp 129293: 56 push %esi 129294: 53 push %ebx 129295: 8b 5d 08 mov 0x8(%ebp),%ebx 129298: 8b 75 0c mov 0xc(%ebp),%esi Watchdog_Interval ticks; if ( !_Timespec_Is_valid( rqtp ) ) 12929b: 83 ec 0c sub $0xc,%esp 12929e: 53 push %ebx 12929f: e8 18 01 00 00 call 1293bc <_Timespec_Is_valid> 1292a4: 83 c4 10 add $0x10,%esp 1292a7: 84 c0 test %al,%al 1292a9: 0f 84 e1 00 00 00 je 129390 * Return EINVAL if the delay interval is negative. * * NOTE: This behavior is beyond the POSIX specification. * FSU and GNU/Linux pthreads shares this behavior. */ if ( rqtp->tv_sec < 0 || rqtp->tv_nsec < 0 ) 1292af: 8b 13 mov (%ebx),%edx 1292b1: 85 d2 test %edx,%edx 1292b3: 0f 88 d7 00 00 00 js 129390 1292b9: 8b 43 04 mov 0x4(%ebx),%eax 1292bc: 85 c0 test %eax,%eax 1292be: 0f 88 cc 00 00 00 js 129390 rtems_set_errno_and_return_minus_one( EINVAL ); ticks = _Timespec_To_ticks( rqtp ); 1292c4: 83 ec 0c sub $0xc,%esp 1292c7: 53 push %ebx 1292c8: e8 43 fb fe ff call 118e10 <_Timespec_To_ticks> 1292cd: 89 c3 mov %eax,%ebx * A nanosleep for zero time is implemented as a yield. * This behavior is also beyond the POSIX specification but is * consistent with the RTEMS API and yields desirable behavior. */ if ( !ticks ) { 1292cf: 83 c4 10 add $0x10,%esp 1292d2: 85 c0 test %eax,%eax 1292d4: 75 36 jne 12930c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 1292d6: a1 18 53 13 00 mov 0x135318,%eax 1292db: 40 inc %eax 1292dc: a3 18 53 13 00 mov %eax,0x135318 _Thread_Disable_dispatch(); _Thread_Yield_processor(); 1292e1: e8 56 9b fe ff call 112e3c <_Thread_Yield_processor> _Thread_Enable_dispatch(); 1292e6: e8 49 8f fe ff call 112234 <_Thread_Enable_dispatch> if ( rmtp ) { 1292eb: 85 f6 test %esi,%esi 1292ed: 0f 84 93 00 00 00 je 129386 rmtp->tv_sec = 0; 1292f3: c7 06 00 00 00 00 movl $0x0,(%esi) rmtp->tv_nsec = 0; 1292f9: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi) 129300: 31 c0 xor %eax,%eax rtems_set_errno_and_return_minus_one( EINTR ); #endif } return 0; } 129302: 8d 65 f8 lea -0x8(%ebp),%esp 129305: 5b pop %ebx 129306: 5e pop %esi 129307: c9 leave 129308: c3 ret 129309: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12930c: a1 18 53 13 00 mov 0x135318,%eax 129311: 40 inc %eax 129312: a3 18 53 13 00 mov %eax,0x135318 /* * Block for the desired amount of time */ _Thread_Disable_dispatch(); _Thread_Set_state( 129317: 83 ec 08 sub $0x8,%esp 12931a: 68 08 00 00 10 push $0x10000008 12931f: ff 35 d8 53 13 00 pushl 0x1353d8 129325: e8 fa 97 fe ff call 112b24 <_Thread_Set_state> STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 12932a: 8b 15 d8 53 13 00 mov 0x1353d8,%edx _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Watchdog_Initialize( 129330: 8b 42 08 mov 0x8(%edx),%eax Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 129333: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx) the_watchdog->routine = routine; 12933a: c7 42 64 9c 20 11 00 movl $0x11209c,0x64(%edx) the_watchdog->id = id; 129341: 89 42 68 mov %eax,0x68(%edx) the_watchdog->user_data = user_data; 129344: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 12934b: 89 5a 54 mov %ebx,0x54(%edx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 12934e: 58 pop %eax 12934f: 59 pop %ecx 129350: 83 c2 48 add $0x48,%edx 129353: 52 push %edx 129354: 68 f8 53 13 00 push $0x1353f8 129359: e8 be 9e fe ff call 11321c <_Watchdog_Insert> _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); _Thread_Enable_dispatch(); 12935e: e8 d1 8e fe ff call 112234 <_Thread_Enable_dispatch> /* calculate time remaining */ if ( rmtp ) { 129363: 83 c4 10 add $0x10,%esp 129366: 85 f6 test %esi,%esi 129368: 74 1c je 129386 ticks -= _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time; 12936a: a1 d8 53 13 00 mov 0x1353d8,%eax _Thread_Enable_dispatch(); /* calculate time remaining */ if ( rmtp ) { ticks -= 12936f: 03 58 5c add 0x5c(%eax),%ebx 129372: 2b 58 60 sub 0x60(%eax),%ebx _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time; _Timespec_From_ticks( ticks, rmtp ); 129375: 83 ec 08 sub $0x8,%esp 129378: 56 push %esi 129379: 53 push %ebx 12937a: e8 49 fa fe ff call 118dc8 <_Timespec_From_ticks> */ #if defined(RTEMS_POSIX_API) /* * If there is time remaining, then we were interrupted by a signal. */ if ( ticks ) 12937f: 83 c4 10 add $0x10,%esp 129382: 85 db test %ebx,%ebx 129384: 75 1f jne 1293a5 rtems_set_errno_and_return_minus_one( EINTR ); 129386: 31 c0 xor %eax,%eax #endif } return 0; } 129388: 8d 65 f8 lea -0x8(%ebp),%esp 12938b: 5b pop %ebx 12938c: 5e pop %esi 12938d: c9 leave 12938e: c3 ret 12938f: 90 nop <== NOT EXECUTED * * NOTE: This behavior is beyond the POSIX specification. * FSU and GNU/Linux pthreads shares this behavior. */ if ( rqtp->tv_sec < 0 || rqtp->tv_nsec < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); 129390: e8 0f 2b ff ff call 11bea4 <__errno> 129395: c7 00 16 00 00 00 movl $0x16,(%eax) 12939b: b8 ff ff ff ff mov $0xffffffff,%eax 1293a0: e9 5d ff ff ff jmp 129302 #if defined(RTEMS_POSIX_API) /* * If there is time remaining, then we were interrupted by a signal. */ if ( ticks ) rtems_set_errno_and_return_minus_one( EINTR ); 1293a5: e8 fa 2a ff ff call 11bea4 <__errno> 1293aa: c7 00 04 00 00 00 movl $0x4,(%eax) 1293b0: b8 ff ff ff ff mov $0xffffffff,%eax 1293b5: e9 48 ff ff ff jmp 129302 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 a4 77 12 00 mov 0x1277a4,%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 55 5e 00 00 call 10e67c <_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 aa 0b 12 00 movl $0x120baa,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 f0 00 00 00 mov %edx,0xf0(%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 80 1a 12 00 mov 0x121a80,%eax 108a71: a3 40 54 12 00 mov %eax,0x125440 RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent ( struct _reent **libc_reent ) { _Thread_libc_reent = libc_reent; 108a76: c7 05 a4 77 12 00 40 movl $0x125440,0x1277a4 108a7d: 54 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 f0 00 00 00 mov 0xf0(%ebx),%esi } if (ptr && ptr != _global_impure_ptr) { 108751: 85 f6 test %esi,%esi 108753: 74 21 je 108776 108755: 3b 35 80 1a 12 00 cmp 0x121a80,%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 d9 b8 00 00 call 114044 <_fwalk> #if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr); 10876b: 89 34 24 mov %esi,(%esp) 10876e: e8 25 5f 00 00 call 10e698 <_Workspace_Free> 108773: 83 c4 10 add $0x10,%esp #endif } deleted_task->libc_reent = NULL; 108776: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%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 40 54 12 00 00 movl $0x0,0x125440 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 40 54 12 00 mov 0x125440,%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 94 b4 00 00 call 113c4c 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 17 b2 00 00 call 1139e0 <== 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 d8 97 12 00 00 cmpb $0x0,0x1297d8 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 d8 97 12 00 01 movb $0x1,0x1297d8 status = rtems_io_register_name( 1086c3: 50 push %eax 1086c4: 6a 00 push $0x0 1086c6: 53 push %ebx 1086c7: 68 d3 25 12 00 push $0x1225d3 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 40 9b 12 00 mov %ebx,0x129b40 } 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 96 42 00 00 call 10c984 <== 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 97 71 00 00 call 10fca8 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 b9 71 00 00 call 10fd34 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 80 75 12 00 sub 0x127580,%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 b2 ac 00 00 call 113894 <__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 4f 70 00 00 call 10fc50 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 6b ac 00 00 call 113894 <__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 4f ac 00 00 call 113894 <__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 45 ac 00 00 call 113894 <__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 80 75 12 00 sub 0x127580,%eax 108c65: c1 f8 06 sar $0x6,%eax 108c68: 50 push %eax 108c69: e8 6a 6d 00 00 call 10f9d8 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 14 ac 00 00 call 113894 <__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 80 75 12 00 sub 0x127580,%ebx <== NOT EXECUTED 108c93: c1 fb 06 sar $0x6,%ebx <== NOT EXECUTED 108c96: 53 push %ebx <== NOT EXECUTED 108c97: e8 ac 6c 00 00 call 10f948 <== 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 7a ab 00 00 call 113894 <__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 b0 f5 11 00 push $0x11f5b0 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 b0 f5 11 00 push $0x11f5b0 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 b0 f5 11 00 push $0x11f5b0 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 01 31 00 00 call 10bbdc <== 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 f4 30 00 00 call 10bbdc <== 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 28 54 12 00 mov 0x125428,%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 14 0e 12 00 push $0x120e14 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 28 54 12 00 mov 0x125428,%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 bc 0a 12 00 push $0x120abc 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 00112ee8 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 112ee8: 55 push %ebp 112ee9: 89 e5 mov %esp,%ebp 112eeb: 57 push %edi 112eec: 56 push %esi 112eed: 53 push %ebx 112eee: 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) 112ef1: 6a 01 push $0x1 112ef3: 8d 5d c4 lea -0x3c(%ebp),%ebx 112ef6: 53 push %ebx 112ef7: 6a 07 push $0x7 112ef9: 6a 03 push $0x3 112efb: 68 b7 16 12 00 push $0x1216b7 112f00: e8 63 50 ff ff call 107f68 112f05: 83 c4 20 add $0x20,%esp 112f08: 85 c0 test %eax,%eax 112f0a: 0f 85 e0 00 00 00 jne 112ff0 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); 112f10: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 112f13: 85 c0 test %eax,%eax <== NOT EXECUTED 112f15: 74 10 je 112f27 <== NOT EXECUTED 112f17: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 112f1a: 85 c0 test %eax,%eax <== NOT EXECUTED 112f1c: 74 09 je 112f27 <== NOT EXECUTED 112f1e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112f21: 53 push %ebx <== NOT EXECUTED 112f22: ff d0 call *%eax <== NOT EXECUTED 112f24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 112f27: 8d 5d d9 lea -0x27(%ebp),%ebx 112f2a: be bc 16 12 00 mov $0x1216bc,%esi 112f2f: b9 0a 00 00 00 mov $0xa,%ecx 112f34: 89 df mov %ebx,%edi 112f36: f3 a4 rep movsb %ds:(%esi),%es:(%edi) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 112f38: 0f b7 05 54 73 12 00 movzwl 0x127354,%eax 112f3f: 8d 50 01 lea 0x1(%eax),%edx 112f42: 66 89 15 54 73 12 00 mov %dx,0x127354 112f49: 51 push %ecx 112f4a: 50 push %eax 112f4b: 68 c7 16 12 00 push $0x1216c7 112f50: 8d 45 e3 lea -0x1d(%ebp),%eax 112f53: 50 push %eax 112f54: e8 7b 12 00 00 call 1141d4 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 112f59: 58 pop %eax 112f5a: 5a pop %edx 112f5b: 68 80 01 00 00 push $0x180 112f60: 53 push %ebx 112f61: e8 4a 01 00 00 call 1130b0 112f66: 83 c4 10 add $0x10,%esp 112f69: 85 c0 test %eax,%eax 112f6b: 75 6f jne 112fdc 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); 112f6d: 83 ec 08 sub $0x8,%esp 112f70: 68 00 40 00 00 push $0x4000 112f75: 53 push %ebx 112f76: e8 6d 5b ff ff call 108ae8 112f7b: 8b 55 08 mov 0x8(%ebp),%edx 112f7e: 89 02 mov %eax,(%edx) if (filsdes[0] < 0) { 112f80: 83 c4 10 add $0x10,%esp 112f83: 85 c0 test %eax,%eax 112f85: 0f 88 a1 00 00 00 js 11302c 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]); 112f8b: 3b 05 6c 34 12 00 cmp 0x12346c,%eax <== NOT EXECUTED 112f91: 0f 82 85 00 00 00 jb 11301c <== NOT EXECUTED 112f97: 31 c0 xor %eax,%eax <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 112f99: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 112f9d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 112fa0: 6a 01 push $0x1 <== NOT EXECUTED 112fa2: 53 push %ebx <== NOT EXECUTED 112fa3: e8 40 5b ff ff call 108ae8 <== NOT EXECUTED 112fa8: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 112fab: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED if (filsdes[1] < 0) { 112fae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 112fb1: 85 c0 test %eax,%eax <== NOT EXECUTED 112fb3: 0f 88 8b 00 00 00 js 113044 <== NOT EXECUTED 112fb9: 31 f6 xor %esi,%esi <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 112fbb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112fbe: 53 push %ebx <== NOT EXECUTED 112fbf: e8 08 01 00 00 call 1130cc <== NOT EXECUTED 112fc4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); 112fc7: e8 c8 08 00 00 call 113894 <__errno> 112fcc: 89 30 mov %esi,(%eax) } 112fce: b8 ff ff ff ff mov $0xffffffff,%eax 112fd3: 8d 65 f4 lea -0xc(%ebp),%esp 112fd6: 5b pop %ebx 112fd7: 5e pop %esi 112fd8: 5f pop %edi 112fd9: c9 leave 112fda: c3 ret 112fdb: 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){ 112fdc: e8 b3 08 00 00 call 113894 <__errno> <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 112fe1: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 112fe6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 112fe9: 5b pop %ebx <== NOT EXECUTED 112fea: 5e pop %esi <== NOT EXECUTED 112feb: 5f pop %edi <== NOT EXECUTED 112fec: c9 leave <== NOT EXECUTED 112fed: c3 ret <== NOT EXECUTED 112fee: 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) 112ff0: e8 9f 08 00 00 call 113894 <__errno> 112ff5: 83 38 02 cmpl $0x2,(%eax) 112ff8: 75 e7 jne 112fe1 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 112ffa: 83 ec 08 sub $0x8,%esp 112ffd: 68 ff 03 00 00 push $0x3ff 113002: 68 b7 16 12 00 push $0x1216b7 113007: e8 20 53 ff ff call 10832c 11300c: 83 c4 10 add $0x10,%esp 11300f: 85 c0 test %eax,%eax 113011: 0f 84 10 ff ff ff je 112f27 113017: eb c8 jmp 112fe1 <== NOT EXECUTED 113019: 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]); 11301c: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 11301f: 03 05 80 75 12 00 add 0x127580,%eax <== NOT EXECUTED 113025: e9 6f ff ff ff jmp 112f99 <== NOT EXECUTED 11302a: 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; 11302c: e8 63 08 00 00 call 113894 <__errno> 113031: 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); 113033: 83 ec 0c sub $0xc,%esp 113036: 53 push %ebx 113037: e8 90 00 00 00 call 1130cc 11303c: 83 c4 10 add $0x10,%esp 11303f: eb 86 jmp 112fc7 113041: 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; 113044: e8 4b 08 00 00 call 113894 <__errno> <== NOT EXECUTED 113049: 8b 30 mov (%eax),%esi <== NOT EXECUTED close(filsdes[0]); 11304b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11304e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 113051: ff 30 pushl (%eax) <== NOT EXECUTED 113053: e8 f0 c8 ff ff call 10f948 <== NOT EXECUTED 113058: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11305b: e9 5b ff ff ff jmp 112fbb <== NOT EXECUTED 00111764 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 111764: 55 push %ebp <== NOT EXECUTED 111765: 89 e5 mov %esp,%ebp <== NOT EXECUTED 111767: 56 push %esi <== NOT EXECUTED 111768: 53 push %ebx <== NOT EXECUTED 111769: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 11176c: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED if (cmd == FIONREAD) { 11176f: 81 7d 0c 7f 66 04 40 cmpl $0x4004667f,0xc(%ebp) <== NOT EXECUTED 111776: 74 0c je 111784 <== NOT EXECUTED 111778: b8 ea ff ff ff mov $0xffffffea,%eax <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } 11177d: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 111780: 5b pop %ebx <== NOT EXECUTED 111781: 5e pop %esi <== NOT EXECUTED 111782: c9 leave <== NOT EXECUTED 111783: c3 ret <== NOT EXECUTED void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { if (buffer == NULL) 111784: 85 db test %ebx,%ebx <== NOT EXECUTED 111786: 75 07 jne 11178f <== NOT EXECUTED 111788: b8 f2 ff ff ff mov $0xfffffff2,%eax <== NOT EXECUTED 11178d: eb ee jmp 11177d <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 11178f: 52 push %edx <== NOT EXECUTED 111790: 6a 00 push $0x0 <== NOT EXECUTED 111792: 6a 00 push $0x0 <== NOT EXECUTED 111794: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 111797: e8 04 9e ff ff call 10b5a0 <== NOT EXECUTED 11179c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11179f: 85 c0 test %eax,%eax <== NOT EXECUTED 1117a1: 74 07 je 1117aa <== NOT EXECUTED 1117a3: b8 fc ff ff ff mov $0xfffffffc,%eax <== NOT EXECUTED 1117a8: eb d3 jmp 11177d <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 1117aa: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED 1117ad: 89 03 mov %eax,(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 1117af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1117b2: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 1117b5: e8 e2 9e ff ff call 10b69c <== NOT EXECUTED 1117ba: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; 1117bc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1117bf: eb bc jmp 11177d <== NOT EXECUTED 00111704 : pipe_control_t *pipe, off_t offset, int whence, rtems_libio_t *iop ) { 111704: 55 push %ebp <== NOT EXECUTED 111705: 89 e5 mov %esp,%ebp <== NOT EXECUTED /* Seek on pipe is not supported */ return -ESPIPE; } 111707: b8 e3 ff ff ff mov $0xffffffe3,%eax <== NOT EXECUTED 11170c: c9 leave <== NOT EXECUTED 11170d: c3 ret <== NOT EXECUTED 001117c4 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 1117c4: 55 push %ebp <== NOT EXECUTED 1117c5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1117c7: 57 push %edi <== NOT EXECUTED 1117c8: 56 push %esi <== NOT EXECUTED 1117c9: 53 push %ebx <== NOT EXECUTED 1117ca: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED 1117cd: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 1117d0: 6a 00 push $0x0 <== NOT EXECUTED 1117d2: 6a 00 push $0x0 <== NOT EXECUTED 1117d4: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1117d7: e8 c4 9d ff ff call 10b5a0 <== NOT EXECUTED 1117dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1117df: 85 c0 test %eax,%eax <== NOT EXECUTED 1117e1: 0f 85 b1 00 00 00 jne 111898 <== NOT EXECUTED return -EINTR; while (read < count) { 1117e7: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 1117ea: 85 c9 test %ecx,%ecx <== NOT EXECUTED 1117ec: 0f 84 82 01 00 00 je 111974 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 1117f2: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 1117f9: 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)) { 111800: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 111803: 85 d2 test %edx,%edx <== NOT EXECUTED 111805: 0f 85 a1 00 00 00 jne 1118ac <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) 11180b: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED 11180e: 85 d2 test %edx,%edx <== NOT EXECUTED 111810: 0f 84 06 01 00 00 je 11191c <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 111816: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 111819: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 11181d: 0f 85 01 01 00 00 jne 111924 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 111823: ff 43 18 incl 0x18(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 111826: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111829: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11182c: e8 6b 9e ff ff call 10b69c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 111831: 5f pop %edi <== NOT EXECUTED 111832: 58 pop %eax <== NOT EXECUTED 111833: 6a 00 push $0x0 <== NOT EXECUTED 111835: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111838: e8 27 11 00 00 call 112964 <== NOT EXECUTED 11183d: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 111840: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 111843: 19 f6 sbb %esi,%esi <== NOT EXECUTED 111845: f7 d6 not %esi <== NOT EXECUTED 111847: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 11184a: 6a 00 push $0x0 <== NOT EXECUTED 11184c: 6a 00 push $0x0 <== NOT EXECUTED 11184e: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111851: e8 4a 9d ff ff call 10b5a0 <== NOT EXECUTED 111856: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111859: 85 c0 test %eax,%eax <== NOT EXECUTED 11185b: 0f 85 cf 00 00 00 jne 111930 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 111861: ff 4b 18 decl 0x18(%ebx) <== NOT EXECUTED if (ret != 0) 111864: 85 f6 test %esi,%esi <== NOT EXECUTED 111866: 74 98 je 111800 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 111868: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11186b: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11186e: e8 29 9e ff ff call 10b69c <== NOT EXECUTED 111873: 83 c4 10 add $0x10,%esp <== NOT EXECUTED out_nolock: if (read > 0) 111876: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED 111879: 85 c9 test %ecx,%ecx <== NOT EXECUTED 11187b: 7e 0b jle 111888 <== NOT EXECUTED return read; return ret; } 11187d: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 111880: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111883: 5b pop %ebx <== NOT EXECUTED 111884: 5e pop %esi <== NOT EXECUTED 111885: 5f pop %edi <== NOT EXECUTED 111886: c9 leave <== NOT EXECUTED 111887: c3 ret <== NOT EXECUTED out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0) 111888: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED return read; return ret; } 11188b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 11188e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111891: 5b pop %ebx <== NOT EXECUTED 111892: 5e pop %esi <== NOT EXECUTED 111893: 5f pop %edi <== NOT EXECUTED 111894: c9 leave <== NOT EXECUTED 111895: c3 ret <== NOT EXECUTED 111896: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 111898: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED out_nolock: if (read > 0) return read; return ret; } 11189f: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 1118a2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1118a5: 5b pop %ebx <== NOT EXECUTED 1118a6: 5e pop %esi <== NOT EXECUTED 1118a7: 5f pop %edi <== NOT EXECUTED 1118a8: c9 leave <== NOT EXECUTED 1118a9: c3 ret <== NOT EXECUTED 1118aa: 66 90 xchg %ax,%ax <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 1118ac: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 1118af: 2b 45 d0 sub -0x30(%ebp),%eax <== NOT EXECUTED 1118b2: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 1118b5: 39 c2 cmp %eax,%edx <== NOT EXECUTED 1118b7: 76 03 jbe 1118bc <== NOT EXECUTED 1118b9: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 1118bc: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED 1118bf: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED 1118c2: 29 f0 sub %esi,%eax <== NOT EXECUTED if (chunk > chunk1) { 1118c4: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 1118c7: 7f 71 jg 11193a <== 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); 1118c9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 1118cc: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 1118cf: 03 33 add (%ebx),%esi <== NOT EXECUTED 1118d1: 89 c7 mov %eax,%edi <== NOT EXECUTED 1118d3: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 1118d6: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED pipe->Start += chunk; 1118d8: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 1118db: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED pipe->Start %= pipe->Size; 1118de: 31 d2 xor %edx,%edx <== NOT EXECUTED 1118e0: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED 1118e3: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED pipe->Length -= chunk; 1118e6: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 1118e9: 2b 45 cc sub -0x34(%ebp),%eax <== NOT EXECUTED 1118ec: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 1118ef: 85 c0 test %eax,%eax <== NOT EXECUTED 1118f1: 75 07 jne 1118fa <== NOT EXECUTED pipe->Start = 0; 1118f3: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED if (pipe->waitingWriters > 0) 1118fa: 8b 73 1c mov 0x1c(%ebx),%esi <== NOT EXECUTED 1118fd: 85 f6 test %esi,%esi <== NOT EXECUTED 1118ff: 75 5f jne 111960 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; 111901: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 111904: 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) { 111907: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 11190a: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 11190d: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 111910: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED 111913: 0f 82 e7 fe ff ff jb 111800 <== NOT EXECUTED 111919: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 11191c: 31 f6 xor %esi,%esi <== NOT EXECUTED 11191e: e9 45 ff ff ff jmp 111868 <== NOT EXECUTED 111923: 90 nop <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { 111924: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 111929: e9 3a ff ff ff jmp 111868 <== NOT EXECUTED 11192e: 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)) { 111930: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 111935: e9 3c ff ff ff jmp 111876 <== 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); 11193a: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 11193d: 03 55 d0 add -0x30(%ebp),%edx <== NOT EXECUTED 111940: 03 33 add (%ebx),%esi <== NOT EXECUTED 111942: 89 d7 mov %edx,%edi <== NOT EXECUTED 111944: 89 c1 mov %eax,%ecx <== NOT EXECUTED 111946: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 111948: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED 11194b: 01 c2 add %eax,%edx <== NOT EXECUTED 11194d: 03 55 0c add 0xc(%ebp),%edx <== NOT EXECUTED 111950: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 111953: 29 c1 sub %eax,%ecx <== NOT EXECUTED 111955: 8b 33 mov (%ebx),%esi <== NOT EXECUTED 111957: 89 d7 mov %edx,%edi <== NOT EXECUTED 111959: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 11195b: e9 78 ff ff ff jmp 1118d8 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 111960: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111963: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111966: 50 push %eax <== NOT EXECUTED 111967: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 11196a: e8 91 0f 00 00 call 112900 <== NOT EXECUTED 11196f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111972: eb 8d jmp 111901 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 111974: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED 11197b: 31 f6 xor %esi,%esi 11197d: e9 e6 fe ff ff jmp 111868 <== NOT EXECUTED 00111b84 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 111b84: 55 push %ebp <== NOT EXECUTED 111b85: 89 e5 mov %esp,%ebp <== NOT EXECUTED 111b87: 57 push %edi <== NOT EXECUTED 111b88: 56 push %esi <== NOT EXECUTED 111b89: 53 push %ebx <== NOT EXECUTED 111b8a: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED 111b8d: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED pipe_control_t *pipe = *pipep; 111b90: 8b 1f mov (%edi),%ebx <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 111b92: 6a 00 push $0x0 <== NOT EXECUTED 111b94: 6a 00 push $0x0 <== NOT EXECUTED 111b96: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111b99: e8 02 9a ff ff call 10b5a0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 111b9e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111ba1: 85 c0 test %eax,%eax <== NOT EXECUTED 111ba3: 0f 85 e3 00 00 00 jne 111c8c <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 111ba9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 111bac: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 111baf: 89 c6 mov %eax,%esi <== NOT EXECUTED 111bb1: 83 e6 06 and $0x6,%esi <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 111bb4: a8 02 test $0x2,%al <== NOT EXECUTED 111bb6: 74 03 je 111bbb <== NOT EXECUTED pipe->Readers --; 111bb8: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 111bbb: f7 c6 04 00 00 00 test $0x4,%esi <== NOT EXECUTED 111bc1: 75 69 jne 111c2c <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 111bc3: 51 push %ecx <== NOT EXECUTED 111bc4: 6a 00 push $0x0 <== NOT EXECUTED 111bc6: 6a 00 push $0x0 <== NOT EXECUTED 111bc8: ff 35 4c 73 12 00 pushl 0x12734c <== NOT EXECUTED 111bce: e8 cd 99 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) 111bd3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111bd6: 85 c0 test %eax,%eax <== NOT EXECUTED 111bd8: 0f 85 ae 00 00 00 jne 111c8c <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); 111bde: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111be1: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111be4: e8 b3 9a ff ff call 10b69c <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 111be9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111bec: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED 111bef: 85 d2 test %edx,%edx <== NOT EXECUTED 111bf1: 74 41 je 111c34 <== 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) 111bf3: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111bf6: 85 c0 test %eax,%eax <== NOT EXECUTED 111bf8: 75 17 jne 111c11 <== NOT EXECUTED 111bfa: 83 fe 02 cmp $0x2,%esi <== NOT EXECUTED 111bfd: 74 12 je 111c11 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 111bff: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111c02: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111c05: 50 push %eax <== NOT EXECUTED 111c06: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111c09: e8 f2 0c 00 00 call 112900 <== NOT EXECUTED 111c0e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 111c11: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111c14: ff 35 4c 73 12 00 pushl 0x12734c <== NOT EXECUTED 111c1a: e8 7d 9a ff ff call 10b69c <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 111c1f: 31 c0 xor %eax,%eax <== NOT EXECUTED 111c21: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111c24: 5b pop %ebx <== NOT EXECUTED 111c25: 5e pop %esi <== NOT EXECUTED 111c26: 5f pop %edi <== NOT EXECUTED 111c27: c9 leave <== NOT EXECUTED 111c28: c3 ret <== NOT EXECUTED 111c29: 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 --; 111c2c: ff 4b 14 decl 0x14(%ebx) <== NOT EXECUTED 111c2f: eb 92 jmp 111bc3 <== NOT EXECUTED 111c31: 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) { 111c34: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111c37: 85 c0 test %eax,%eax <== NOT EXECUTED 111c39: 74 19 je 111c54 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 111c3b: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED 111c3e: 74 d1 je 111c11 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 111c40: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111c43: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111c46: 50 push %eax <== NOT EXECUTED 111c47: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111c4a: e8 b1 0c 00 00 call 112900 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 111c4f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111c52: eb bd jmp 111c11 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 111c54: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111c57: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111c5a: e8 39 0c 00 00 call 112898 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 111c5f: 5e pop %esi <== NOT EXECUTED 111c60: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111c63: e8 30 0c 00 00 call 112898 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 111c68: 59 pop %ecx <== NOT EXECUTED 111c69: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111c6c: e8 8b 98 ff ff call 10b4fc <== NOT EXECUTED free(pipe->Buffer); 111c71: 5a pop %edx <== NOT EXECUTED 111c72: ff 33 pushl (%ebx) <== NOT EXECUTED 111c74: e8 a3 63 ff ff call 10801c <== NOT EXECUTED free(pipe); 111c79: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 111c7c: e8 9b 63 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; 111c81: 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) { 111c87: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111c8a: eb 85 jmp 111c11 <== 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); 111c8c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111c8f: 50 push %eax <== NOT EXECUTED 111c90: e8 47 9f ff ff call 10bbdc <== NOT EXECUTED 00111984 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 111984: 55 push %ebp <== NOT EXECUTED 111985: 89 e5 mov %esp,%ebp <== NOT EXECUTED 111987: 57 push %edi <== NOT EXECUTED 111988: 56 push %esi <== NOT EXECUTED 111989: 53 push %ebx <== NOT EXECUTED 11198a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 11198d: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED 111990: 85 ff test %edi,%edi <== NOT EXECUTED 111992: 75 0c jne 1119a0 <== NOT EXECUTED 111994: 31 db xor %ebx,%ebx <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 111996: 89 d8 mov %ebx,%eax <== NOT EXECUTED 111998: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11199b: 5b pop %ebx <== NOT EXECUTED 11199c: 5e pop %esi <== NOT EXECUTED 11199d: 5f pop %edi <== NOT EXECUTED 11199e: c9 leave <== NOT EXECUTED 11199f: c3 ret <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 1119a0: 56 push %esi <== NOT EXECUTED 1119a1: 6a 00 push $0x0 <== NOT EXECUTED 1119a3: 6a 00 push $0x0 <== NOT EXECUTED 1119a5: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 1119a8: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 1119ab: e8 f0 9b ff ff call 10b5a0 <== NOT EXECUTED 1119b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1119b3: 85 c0 test %eax,%eax <== NOT EXECUTED 1119b5: 0f 85 1d 01 00 00 jne 111ad8 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 1119bb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 1119be: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 1119c1: 85 db test %ebx,%ebx <== NOT EXECUTED 1119c3: 0f 84 50 01 00 00 je 111b19 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 1119c9: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED 1119cc: 39 4d 10 cmp %ecx,0x10(%ebp) <== NOT EXECUTED 1119cf: 0f 87 3a 01 00 00 ja 111b0f <== NOT EXECUTED 1119d5: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 1119d8: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 1119df: 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); 1119e1: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED 1119e4: 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) { 1119e7: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 1119ea: 89 ca mov %ecx,%edx <== NOT EXECUTED 1119ec: 29 c2 sub %eax,%edx <== NOT EXECUTED 1119ee: 39 fa cmp %edi,%edx <== NOT EXECUTED 1119f0: 73 6f jae 111a61 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { 1119f2: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 1119f5: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 1119f9: 0f 85 47 01 00 00 jne 111b46 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 1119ff: ff 43 1c incl 0x1c(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 111a02: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111a05: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111a08: e8 8f 9c ff ff call 10b69c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 111a0d: 5a pop %edx <== NOT EXECUTED 111a0e: 59 pop %ecx <== NOT EXECUTED 111a0f: 6a 00 push $0x0 <== NOT EXECUTED 111a11: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111a14: e8 4b 0f 00 00 call 112964 <== NOT EXECUTED 111a19: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 111a1c: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 111a1f: 19 f6 sbb %esi,%esi <== NOT EXECUTED 111a21: f7 d6 not %esi <== NOT EXECUTED 111a23: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 111a26: 6a 00 push $0x0 <== NOT EXECUTED 111a28: 6a 00 push $0x0 <== NOT EXECUTED 111a2a: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111a2d: e8 6e 9b ff ff call 10b5a0 <== NOT EXECUTED 111a32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111a35: 85 c0 test %eax,%eax <== NOT EXECUTED 111a37: 0f 85 ff 00 00 00 jne 111b3c <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 111a3d: ff 4b 1c decl 0x1c(%ebx) <== NOT EXECUTED if (ret != 0) 111a40: 85 f6 test %esi,%esi <== NOT EXECUTED 111a42: 0f 85 ef 00 00 00 jne 111b37 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 111a48: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 111a4b: 85 c0 test %eax,%eax <== NOT EXECUTED 111a4d: 0f 84 8f 00 00 00 je 111ae2 <== NOT EXECUTED 111a53: 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) { 111a56: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 111a59: 89 ca mov %ecx,%edx <== NOT EXECUTED 111a5b: 29 c2 sub %eax,%edx <== NOT EXECUTED 111a5d: 39 fa cmp %edi,%edx <== NOT EXECUTED 111a5f: 72 91 jb 1119f2 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 111a61: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED 111a64: 2b 75 d0 sub -0x30(%ebp),%esi <== NOT EXECUTED 111a67: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 111a6a: 39 f2 cmp %esi,%edx <== NOT EXECUTED 111a6c: 76 03 jbe 111a71 <== NOT EXECUTED 111a6e: 89 75 cc mov %esi,-0x34(%ebp) <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 111a71: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED 111a74: 31 d2 xor %edx,%edx <== NOT EXECUTED 111a76: f7 f1 div %ecx <== NOT EXECUTED 111a78: 89 c8 mov %ecx,%eax <== NOT EXECUTED 111a7a: 29 d0 sub %edx,%eax <== NOT EXECUTED if (chunk > chunk1) { 111a7c: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 111a7f: 0f 8e cb 00 00 00 jle 111b50 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 111a85: 03 13 add (%ebx),%edx <== NOT EXECUTED 111a87: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 111a8a: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 111a8d: 89 d7 mov %edx,%edi <== NOT EXECUTED 111a8f: 89 c1 mov %eax,%ecx <== NOT EXECUTED 111a91: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 111a93: 8b 13 mov (%ebx),%edx <== NOT EXECUTED 111a95: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 111a98: 29 c1 sub %eax,%ecx <== NOT EXECUTED 111a9a: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 111a9d: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 111aa0: 01 c6 add %eax,%esi <== NOT EXECUTED 111aa2: 89 d7 mov %edx,%edi <== NOT EXECUTED 111aa4: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 111aa6: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 111aa9: 01 43 0c add %eax,0xc(%ebx) <== NOT EXECUTED if (pipe->waitingReaders > 0) 111aac: 83 7b 18 00 cmpl $0x0,0x18(%ebx) <== NOT EXECUTED 111ab0: 0f 85 ae 00 00 00 jne 111b64 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; 111ab6: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 111ab9: 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) { 111abc: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 111abf: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 111ac2: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED 111ac5: 0f 86 af 00 00 00 jbe 111b7a <== NOT EXECUTED 111acb: 8b 4b 04 mov 0x4(%ebx),%ecx <== NOT EXECUTED 111ace: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 111ad3: e9 0f ff ff ff jmp 1119e7 <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 111ad8: bb fc ff ff ff mov $0xfffffffc,%ebx <== NOT EXECUTED 111add: e9 b4 fe ff ff jmp 111996 <== NOT EXECUTED 111ae2: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 111ae5: 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); 111aea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111aed: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 111af0: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 111af3: e8 a4 9b ff ff call 10b69c <== NOT EXECUTED 111af8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 111afb: 83 fe e0 cmp $0xffffffe0,%esi <== NOT EXECUTED 111afe: 74 22 je 111b22 <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) 111b00: 85 db test %ebx,%ebx <== NOT EXECUTED 111b02: 0f 8f 8e fe ff ff jg 111996 <== NOT EXECUTED 111b08: 89 f3 mov %esi,%ebx <== NOT EXECUTED 111b0a: e9 87 fe ff ff jmp 111996 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 111b0f: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 111b14: e9 bf fe ff ff jmp 1119d8 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 111b19: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED 111b1e: 31 db xor %ebx,%ebx <== NOT EXECUTED 111b20: eb c8 jmp 111aea <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); 111b22: e8 7d 08 00 00 call 1123a4 <== NOT EXECUTED 111b27: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111b2a: 6a 0d push $0xd <== NOT EXECUTED 111b2c: 50 push %eax <== NOT EXECUTED 111b2d: e8 52 0a 00 00 call 112584 <== NOT EXECUTED 111b32: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111b35: eb c9 jmp 111b00 <== NOT EXECUTED 111b37: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED 111b3a: eb ae jmp 111aea <== NOT EXECUTED 111b3c: 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)) { 111b3f: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 111b44: eb ba jmp 111b00 <== NOT EXECUTED 111b46: 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)) { 111b49: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 111b4e: eb 9a jmp 111aea <== 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); 111b50: 03 13 add (%ebx),%edx <== NOT EXECUTED 111b52: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 111b55: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 111b58: 89 d7 mov %edx,%edi <== NOT EXECUTED 111b5a: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 111b5d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 111b5f: e9 42 ff ff ff jmp 111aa6 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 111b64: 56 push %esi <== NOT EXECUTED 111b65: 56 push %esi <== NOT EXECUTED 111b66: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111b69: 50 push %eax <== NOT EXECUTED 111b6a: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111b6d: e8 8e 0d 00 00 call 112900 <== NOT EXECUTED 111b72: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111b75: e9 3c ff ff ff jmp 111ab6 <== NOT EXECUTED 111b7a: 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) { 111b7c: 31 f6 xor %esi,%esi 111b7e: e9 67 ff ff ff jmp 111aea <== 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 28 e0 12 00 incl 0x12e028 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 0010fbd0 : #include int pthread_attr_destroy( pthread_attr_t *attr ) { 10fbd0: 55 push %ebp 10fbd1: 89 e5 mov %esp,%ebp 10fbd3: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr || !attr->is_initialized ) 10fbd6: 85 c0 test %eax,%eax 10fbd8: 74 12 je 10fbec 10fbda: 8b 10 mov (%eax),%edx 10fbdc: 85 d2 test %edx,%edx 10fbde: 74 0c je 10fbec return EINVAL; attr->is_initialized = false; 10fbe0: c7 00 00 00 00 00 movl $0x0,(%eax) 10fbe6: 31 c0 xor %eax,%eax return 0; } 10fbe8: c9 leave 10fbe9: c3 ret 10fbea: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !attr || !attr->is_initialized ) return EINVAL; attr->is_initialized = false; return 0; 10fbec: b8 16 00 00 00 mov $0x16,%eax } 10fbf1: c9 leave 10fbf2: c3 ret 0010fc44 : int pthread_attr_getschedparam( const pthread_attr_t *attr, struct sched_param *param ) { 10fc44: 55 push %ebp 10fc45: 89 e5 mov %esp,%ebp 10fc47: 57 push %edi 10fc48: 56 push %esi 10fc49: 8b 75 08 mov 0x8(%ebp),%esi 10fc4c: 8b 45 0c mov 0xc(%ebp),%eax if ( !attr || !attr->is_initialized || !param ) 10fc4f: 85 f6 test %esi,%esi 10fc51: 74 1d je 10fc70 10fc53: 8b 16 mov (%esi),%edx 10fc55: 85 d2 test %edx,%edx 10fc57: 74 17 je 10fc70 10fc59: 85 c0 test %eax,%eax 10fc5b: 74 13 je 10fc70 return EINVAL; *param = attr->schedparam; 10fc5d: 83 c6 18 add $0x18,%esi 10fc60: b9 07 00 00 00 mov $0x7,%ecx 10fc65: 89 c7 mov %eax,%edi 10fc67: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10fc69: 31 c0 xor %eax,%eax return 0; } 10fc6b: 5e pop %esi 10fc6c: 5f pop %edi 10fc6d: c9 leave 10fc6e: c3 ret 10fc6f: 90 nop <== NOT EXECUTED { if ( !attr || !attr->is_initialized || !param ) return EINVAL; *param = attr->schedparam; return 0; 10fc70: b8 16 00 00 00 mov $0x16,%eax } 10fc75: 5e pop %esi 10fc76: 5f pop %edi 10fc77: c9 leave 10fc78: c3 ret 001106ac : int pthread_attr_setcputime( pthread_attr_t *attr, int clock_allowed ) { 1106ac: 55 push %ebp 1106ad: 89 e5 mov %esp,%ebp 1106af: 8b 45 08 mov 0x8(%ebp),%eax 1106b2: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 1106b5: 85 c0 test %eax,%eax 1106b7: 74 0b je 1106c4 1106b9: 8b 08 mov (%eax),%ecx 1106bb: 85 c9 test %ecx,%ecx 1106bd: 74 05 je 1106c4 return EINVAL; switch ( clock_allowed ) { 1106bf: 83 fa 01 cmp $0x1,%edx 1106c2: 76 08 jbe 1106cc case CLOCK_ENABLED: case CLOCK_DISABLED: attr->cputime_clock_allowed = clock_allowed; return 0; 1106c4: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 1106c9: c9 leave 1106ca: c3 ret 1106cb: 90 nop <== NOT EXECUTED return EINVAL; switch ( clock_allowed ) { case CLOCK_ENABLED: case CLOCK_DISABLED: attr->cputime_clock_allowed = clock_allowed; 1106cc: 89 50 34 mov %edx,0x34(%eax) 1106cf: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 1106d1: c9 leave 1106d2: c3 ret 0010fd44 : int pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate ) { 10fd44: 55 push %ebp 10fd45: 89 e5 mov %esp,%ebp 10fd47: 8b 45 08 mov 0x8(%ebp),%eax 10fd4a: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 10fd4d: 85 c0 test %eax,%eax 10fd4f: 74 0b je 10fd5c 10fd51: 8b 08 mov (%eax),%ecx 10fd53: 85 c9 test %ecx,%ecx 10fd55: 74 05 je 10fd5c return EINVAL; switch ( detachstate ) { 10fd57: 83 fa 01 cmp $0x1,%edx 10fd5a: 76 08 jbe 10fd64 case PTHREAD_CREATE_DETACHED: case PTHREAD_CREATE_JOINABLE: attr->detachstate = detachstate; return 0; 10fd5c: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 10fd61: c9 leave 10fd62: c3 ret 10fd63: 90 nop <== NOT EXECUTED return EINVAL; switch ( detachstate ) { case PTHREAD_CREATE_DETACHED: case PTHREAD_CREATE_JOINABLE: attr->detachstate = detachstate; 10fd64: 89 50 38 mov %edx,0x38(%eax) 10fd67: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 10fd69: c9 leave 10fd6a: c3 ret 001113ac : int pthread_attr_setinheritsched( pthread_attr_t *attr, int inheritsched ) { 1113ac: 55 push %ebp 1113ad: 89 e5 mov %esp,%ebp 1113af: 8b 45 08 mov 0x8(%ebp),%eax 1113b2: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 1113b5: 85 c0 test %eax,%eax 1113b7: 74 1f je 1113d8 1113b9: 8b 08 mov (%eax),%ecx 1113bb: 85 c9 test %ecx,%ecx 1113bd: 74 19 je 1113d8 return EINVAL; switch ( inheritsched ) { 1113bf: 8d 4a ff lea -0x1(%edx),%ecx 1113c2: 83 f9 01 cmp $0x1,%ecx 1113c5: 76 09 jbe 1113d0 1113c7: b8 86 00 00 00 mov $0x86,%eax return 0; default: return ENOTSUP; } } 1113cc: c9 leave 1113cd: c3 ret 1113ce: 66 90 xchg %ax,%ax <== NOT EXECUTED return EINVAL; switch ( inheritsched ) { case PTHREAD_INHERIT_SCHED: case PTHREAD_EXPLICIT_SCHED: attr->inheritsched = inheritsched; 1113d0: 89 50 10 mov %edx,0x10(%eax) 1113d3: 31 c0 xor %eax,%eax return 0; default: return ENOTSUP; } } 1113d5: c9 leave 1113d6: c3 ret 1113d7: 90 nop <== NOT EXECUTED switch ( inheritsched ) { case PTHREAD_INHERIT_SCHED: case PTHREAD_EXPLICIT_SCHED: attr->inheritsched = inheritsched; return 0; 1113d8: b8 16 00 00 00 mov $0x16,%eax default: return ENOTSUP; } } 1113dd: c9 leave 1113de: c3 ret 0010fda0 : int pthread_attr_setschedparam( pthread_attr_t *attr, const struct sched_param *param ) { 10fda0: 55 push %ebp 10fda1: 89 e5 mov %esp,%ebp 10fda3: 57 push %edi 10fda4: 56 push %esi 10fda5: 8b 7d 08 mov 0x8(%ebp),%edi 10fda8: 8b 75 0c mov 0xc(%ebp),%esi if ( !attr || !attr->is_initialized || !param ) 10fdab: 85 ff test %edi,%edi 10fdad: 74 1d je 10fdcc 10fdaf: 8b 07 mov (%edi),%eax 10fdb1: 85 c0 test %eax,%eax 10fdb3: 74 17 je 10fdcc 10fdb5: 85 f6 test %esi,%esi 10fdb7: 74 13 je 10fdcc return EINVAL; attr->schedparam = *param; 10fdb9: 83 c7 18 add $0x18,%edi 10fdbc: b9 07 00 00 00 mov $0x7,%ecx 10fdc1: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10fdc3: 31 c0 xor %eax,%eax return 0; } 10fdc5: 5e pop %esi 10fdc6: 5f pop %edi 10fdc7: c9 leave 10fdc8: c3 ret 10fdc9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { if ( !attr || !attr->is_initialized || !param ) return EINVAL; attr->schedparam = *param; return 0; 10fdcc: b8 16 00 00 00 mov $0x16,%eax } 10fdd1: 5e pop %esi 10fdd2: 5f pop %edi 10fdd3: c9 leave 10fdd4: c3 ret 0010fdd8 : int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { 10fdd8: 55 push %ebp 10fdd9: 89 e5 mov %esp,%ebp 10fddb: 8b 45 08 mov 0x8(%ebp),%eax 10fdde: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 10fde1: 85 c0 test %eax,%eax 10fde3: 74 23 je 10fe08 10fde5: 8b 08 mov (%eax),%ecx 10fde7: 85 c9 test %ecx,%ecx 10fde9: 74 1d je 10fe08 return EINVAL; switch ( policy ) { 10fdeb: 85 d2 test %edx,%edx 10fded: 78 0a js 10fdf9 10fdef: 83 fa 02 cmp $0x2,%edx 10fdf2: 7e 0c jle 10fe00 10fdf4: 83 fa 04 cmp $0x4,%edx 10fdf7: 74 07 je 10fe00 10fdf9: b8 86 00 00 00 mov $0x86,%eax return 0; default: return ENOTSUP; } } 10fdfe: c9 leave 10fdff: c3 ret switch ( policy ) { case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: case SCHED_SPORADIC: attr->schedpolicy = policy; 10fe00: 89 50 14 mov %edx,0x14(%eax) 10fe03: 31 c0 xor %eax,%eax return 0; default: return ENOTSUP; } } 10fe05: c9 leave 10fe06: c3 ret 10fe07: 90 nop <== NOT EXECUTED case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: case SCHED_SPORADIC: attr->schedpolicy = policy; return 0; 10fe08: b8 16 00 00 00 mov $0x16,%eax default: return ENOTSUP; } } 10fe0d: c9 leave 10fe0e: c3 ret 0010fe10 : int pthread_attr_setscope( pthread_attr_t *attr, int contentionscope ) { 10fe10: 55 push %ebp 10fe11: 89 e5 mov %esp,%ebp 10fe13: 8b 45 08 mov 0x8(%ebp),%eax 10fe16: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 10fe19: 85 c0 test %eax,%eax 10fe1b: 74 1a je 10fe37 10fe1d: 8b 08 mov (%eax),%ecx 10fe1f: 85 c9 test %ecx,%ecx 10fe21: 74 14 je 10fe37 return EINVAL; switch ( contentionscope ) { 10fe23: 85 d2 test %edx,%edx 10fe25: 75 0d jne 10fe34 case PTHREAD_SCOPE_PROCESS: attr->contentionscope = contentionscope; 10fe27: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) 10fe2e: 31 c0 xor %eax,%eax return ENOTSUP; default: return EINVAL; } } 10fe30: c9 leave 10fe31: c3 ret 10fe32: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { if ( !attr || !attr->is_initialized ) return EINVAL; switch ( contentionscope ) { 10fe34: 4a dec %edx 10fe35: 74 09 je 10fe40 case PTHREAD_SCOPE_PROCESS: attr->contentionscope = contentionscope; return 0; 10fe37: b8 16 00 00 00 mov $0x16,%eax return ENOTSUP; default: return EINVAL; } } 10fe3c: c9 leave 10fe3d: c3 ret 10fe3e: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { if ( !attr || !attr->is_initialized ) return EINVAL; switch ( contentionscope ) { 10fe40: b8 86 00 00 00 mov $0x86,%eax return ENOTSUP; default: return EINVAL; } } 10fe45: c9 leave 10fe46: c3 ret 0010fe48 : int pthread_attr_setstackaddr( pthread_attr_t *attr, void *stackaddr ) { 10fe48: 55 push %ebp 10fe49: 89 e5 mov %esp,%ebp 10fe4b: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr || !attr->is_initialized ) 10fe4e: 85 c0 test %eax,%eax 10fe50: 74 12 je 10fe64 10fe52: 8b 10 mov (%eax),%edx 10fe54: 85 d2 test %edx,%edx 10fe56: 74 0c je 10fe64 return EINVAL; attr->stackaddr = stackaddr; 10fe58: 8b 55 0c mov 0xc(%ebp),%edx 10fe5b: 89 50 04 mov %edx,0x4(%eax) 10fe5e: 31 c0 xor %eax,%eax return 0; } 10fe60: c9 leave 10fe61: c3 ret 10fe62: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !attr || !attr->is_initialized ) return EINVAL; attr->stackaddr = stackaddr; return 0; 10fe64: b8 16 00 00 00 mov $0x16,%eax } 10fe69: c9 leave 10fe6a: c3 ret 001113e0 : int pthread_attr_setstacksize( pthread_attr_t *attr, size_t stacksize ) { 1113e0: 55 push %ebp 1113e1: 89 e5 mov %esp,%ebp 1113e3: 8b 45 08 mov 0x8(%ebp),%eax 1113e6: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 1113e9: 85 c0 test %eax,%eax 1113eb: 74 23 je 111410 1113ed: 8b 08 mov (%eax),%ecx 1113ef: 85 c9 test %ecx,%ecx 1113f1: 74 1d je 111410 return EINVAL; if (stacksize < PTHREAD_MINIMUM_STACK_SIZE) 1113f3: 8b 0d b8 46 12 00 mov 0x1246b8,%ecx 1113f9: d1 e1 shl %ecx 1113fb: 39 d1 cmp %edx,%ecx 1113fd: 77 09 ja 111408 attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE; else attr->stacksize = stacksize; 1113ff: 89 50 08 mov %edx,0x8(%eax) 111402: 31 c0 xor %eax,%eax return 0; } 111404: c9 leave 111405: c3 ret 111406: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !attr || !attr->is_initialized ) return EINVAL; if (stacksize < PTHREAD_MINIMUM_STACK_SIZE) attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE; 111408: 89 48 08 mov %ecx,0x8(%eax) 11140b: 31 c0 xor %eax,%eax else attr->stacksize = stacksize; return 0; } 11140d: c9 leave 11140e: c3 ret 11140f: 90 nop <== NOT EXECUTED return EINVAL; if (stacksize < PTHREAD_MINIMUM_STACK_SIZE) attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE; else attr->stacksize = stacksize; 111410: b8 16 00 00 00 mov $0x16,%eax return 0; } 111415: c9 leave 111416: c3 ret 0010b7e0 : */ int pthread_barrier_destroy( pthread_barrier_t *barrier ) { 10b7e0: 55 push %ebp 10b7e1: 89 e5 mov %esp,%ebp 10b7e3: 83 ec 28 sub $0x28,%esp 10b7e6: 8b 45 08 mov 0x8(%ebp),%eax POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) 10b7e9: 85 c0 test %eax,%eax 10b7eb: 74 2f je 10b81c RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get ( pthread_barrier_t *barrier, Objects_Locations *location ) { return (POSIX_Barrier_Control *) _Objects_Get( 10b7ed: 51 push %ecx 10b7ee: 8d 55 f4 lea -0xc(%ebp),%edx 10b7f1: 52 push %edx 10b7f2: ff 30 pushl (%eax) 10b7f4: 68 a0 91 12 00 push $0x1291a0 10b7f9: e8 9e 25 00 00 call 10dd9c <_Objects_Get> return EINVAL; the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { 10b7fe: 83 c4 10 add $0x10,%esp 10b801: 8b 55 f4 mov -0xc(%ebp),%edx 10b804: 85 d2 test %edx,%edx 10b806: 75 14 jne 10b81c case OBJECTS_LOCAL: if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) { 10b808: 8b 48 58 mov 0x58(%eax),%ecx 10b80b: 85 c9 test %ecx,%ecx 10b80d: 74 15 je 10b824 _Thread_Enable_dispatch(); 10b80f: e8 fc 2d 00 00 call 10e610 <_Thread_Enable_dispatch> 10b814: b8 10 00 00 00 mov $0x10,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b819: c9 leave 10b81a: c3 ret 10b81b: 90 nop <== NOT EXECUTED _Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object ); _POSIX_Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); return 0; 10b81c: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b821: c9 leave 10b822: c3 ret 10b823: 90 nop <== NOT EXECUTED if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object ); 10b824: 83 ec 08 sub $0x8,%esp 10b827: 50 push %eax 10b828: 68 a0 91 12 00 push $0x1291a0 10b82d: 89 45 e4 mov %eax,-0x1c(%ebp) 10b830: e8 33 21 00 00 call 10d968 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _POSIX_Barrier_Free ( POSIX_Barrier_Control *the_barrier ) { _Objects_Free( &_POSIX_Barrier_Information, &the_barrier->Object ); 10b835: 58 pop %eax 10b836: 5a pop %edx 10b837: 8b 45 e4 mov -0x1c(%ebp),%eax 10b83a: 50 push %eax 10b83b: 68 a0 91 12 00 push $0x1291a0 10b840: e8 27 24 00 00 call 10dc6c <_Objects_Free> _POSIX_Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 10b845: e8 c6 2d 00 00 call 10e610 <_Thread_Enable_dispatch> 10b84a: 31 c0 xor %eax,%eax return 0; 10b84c: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10b84f: c9 leave 10b850: c3 ret 0010b854 : int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) { 10b854: 55 push %ebp 10b855: 89 e5 mov %esp,%ebp 10b857: 57 push %edi 10b858: 56 push %esi 10b859: 53 push %ebx 10b85a: 83 ec 2c sub $0x2c,%esp 10b85d: 8b 5d 08 mov 0x8(%ebp),%ebx 10b860: 8b 7d 0c mov 0xc(%ebp),%edi 10b863: 8b 75 10 mov 0x10(%ebp),%esi const pthread_barrierattr_t *the_attr; /* * Error check parameters */ if ( !barrier ) 10b866: 85 db test %ebx,%ebx 10b868: 0f 84 82 00 00 00 je 10b8f0 return EINVAL; if ( count == 0 ) 10b86e: 85 f6 test %esi,%esi 10b870: 74 7e je 10b8f0 return EINVAL; /* * If the user passed in NULL, use the default attributes */ if ( attr ) { 10b872: 85 ff test %edi,%edi 10b874: 0f 84 92 00 00 00 je 10b90c } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) 10b87a: 8b 17 mov (%edi),%edx 10b87c: 85 d2 test %edx,%edx 10b87e: 74 70 je 10b8f0 return EINVAL; switch ( the_attr->process_shared ) { 10b880: 8b 47 04 mov 0x4(%edi),%eax 10b883: 85 c0 test %eax,%eax 10b885: 75 69 jne 10b8f0 } /* * Convert from POSIX attributes to Core Barrier attributes */ the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 10b887: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) the_attributes.maximum_count = count; 10b88e: 89 75 e4 mov %esi,-0x1c(%ebp) rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10b891: a1 58 8d 12 00 mov 0x128d58,%eax 10b896: 40 inc %eax 10b897: a3 58 8d 12 00 mov %eax,0x128d58 * This function allocates a barrier control block from * the inactive chain of free barrier control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void ) { return (POSIX_Barrier_Control *) 10b89c: 83 ec 0c sub $0xc,%esp 10b89f: 68 a0 91 12 00 push $0x1291a0 10b8a4: e8 43 20 00 00 call 10d8ec <_Objects_Allocate> */ _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _POSIX_Barrier_Allocate(); if ( !the_barrier ) { 10b8a9: 83 c4 10 add $0x10,%esp 10b8ac: 85 c0 test %eax,%eax 10b8ae: 74 50 je 10b900 _Thread_Enable_dispatch(); return EAGAIN; } _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 10b8b0: 83 ec 08 sub $0x8,%esp 10b8b3: 8d 55 e0 lea -0x20(%ebp),%edx 10b8b6: 52 push %edx 10b8b7: 8d 50 10 lea 0x10(%eax),%edx 10b8ba: 52 push %edx 10b8bb: 89 45 d4 mov %eax,-0x2c(%ebp) 10b8be: e8 a1 16 00 00 call 10cf64 <_CORE_barrier_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10b8c3: 8b 45 d4 mov -0x2c(%ebp),%eax 10b8c6: 8b 50 08 mov 0x8(%eax),%edx 10b8c9: 0f b7 f2 movzwl %dx,%esi 10b8cc: 8b 0d bc 91 12 00 mov 0x1291bc,%ecx 10b8d2: 89 04 b1 mov %eax,(%ecx,%esi,4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 10b8d5: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) ); /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; 10b8dc: 89 13 mov %edx,(%ebx) _Thread_Enable_dispatch(); 10b8de: e8 2d 2d 00 00 call 10e610 <_Thread_Enable_dispatch> 10b8e3: 31 c0 xor %eax,%eax return 0; 10b8e5: 83 c4 10 add $0x10,%esp } 10b8e8: 8d 65 f4 lea -0xc(%ebp),%esp 10b8eb: 5b pop %ebx 10b8ec: 5e pop %esi 10b8ed: 5f pop %edi 10b8ee: c9 leave 10b8ef: c3 ret /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; _Thread_Enable_dispatch(); return 0; 10b8f0: b8 16 00 00 00 mov $0x16,%eax } 10b8f5: 8d 65 f4 lea -0xc(%ebp),%esp 10b8f8: 5b pop %ebx 10b8f9: 5e pop %esi 10b8fa: 5f pop %edi 10b8fb: c9 leave 10b8fc: c3 ret 10b8fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _POSIX_Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); 10b900: e8 0b 2d 00 00 call 10e610 <_Thread_Enable_dispatch> 10b905: b8 0b 00 00 00 mov $0xb,%eax return EAGAIN; 10b90a: eb e9 jmp 10b8f5 * If the user passed in NULL, use the default attributes */ if ( attr ) { the_attr = attr; } else { (void) pthread_barrierattr_init( &my_attr ); 10b90c: 83 ec 0c sub $0xc,%esp 10b90f: 8d 7d d8 lea -0x28(%ebp),%edi 10b912: 57 push %edi 10b913: e8 80 fe ff ff call 10b798 10b918: 83 c4 10 add $0x10,%esp 10b91b: e9 5a ff ff ff jmp 10b87a 0010b920 : */ int pthread_barrier_wait( pthread_barrier_t *barrier ) { 10b920: 55 push %ebp 10b921: 89 e5 mov %esp,%ebp 10b923: 83 ec 18 sub $0x18,%esp 10b926: 8b 45 08 mov 0x8(%ebp),%eax POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) 10b929: 85 c0 test %eax,%eax 10b92b: 74 4f je 10b97c RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get ( pthread_barrier_t *barrier, Objects_Locations *location ) { return (POSIX_Barrier_Control *) _Objects_Get( 10b92d: 51 push %ecx 10b92e: 8d 55 f4 lea -0xc(%ebp),%edx 10b931: 52 push %edx 10b932: ff 30 pushl (%eax) 10b934: 68 a0 91 12 00 push $0x1291a0 10b939: e8 5e 24 00 00 call 10dd9c <_Objects_Get> return EINVAL; the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { 10b93e: 83 c4 10 add $0x10,%esp 10b941: 8b 55 f4 mov -0xc(%ebp),%edx 10b944: 85 d2 test %edx,%edx 10b946: 75 34 jne 10b97c case OBJECTS_LOCAL: _CORE_barrier_Wait( 10b948: 83 ec 0c sub $0xc,%esp 10b94b: 6a 00 push $0x0 10b94d: 6a 00 push $0x0 10b94f: 6a 01 push $0x1 10b951: ff 70 08 pushl 0x8(%eax) 10b954: 83 c0 10 add $0x10,%eax 10b957: 50 push %eax 10b958: e8 3b 16 00 00 call 10cf98 <_CORE_barrier_Wait> the_barrier->Object.id, true, 0, NULL ); _Thread_Enable_dispatch(); 10b95d: 83 c4 20 add $0x20,%esp 10b960: e8 ab 2c 00 00 call 10e610 <_Thread_Enable_dispatch> return _POSIX_Barrier_Translate_core_barrier_return_code( 10b965: 83 ec 0c sub $0xc,%esp 10b968: a1 18 8e 12 00 mov 0x128e18,%eax 10b96d: ff 70 34 pushl 0x34(%eax) 10b970: e8 d7 57 00 00 call 11114c <_POSIX_Barrier_Translate_core_barrier_return_code> 10b975: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10b978: c9 leave 10b979: c3 ret 10b97a: 66 90 xchg %ax,%ax <== NOT EXECUTED true, 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_Barrier_Translate_core_barrier_return_code( 10b97c: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b981: c9 leave 10b982: c3 ret 0010b750 : */ int pthread_barrierattr_destroy( pthread_barrierattr_t *attr ) { 10b750: 55 push %ebp 10b751: 89 e5 mov %esp,%ebp 10b753: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr || attr->is_initialized == false ) 10b756: 85 c0 test %eax,%eax 10b758: 74 12 je 10b76c 10b75a: 8b 10 mov (%eax),%edx 10b75c: 85 d2 test %edx,%edx 10b75e: 74 0c je 10b76c return EINVAL; attr->is_initialized = false; 10b760: c7 00 00 00 00 00 movl $0x0,(%eax) 10b766: 31 c0 xor %eax,%eax return 0; } 10b768: c9 leave 10b769: c3 ret 10b76a: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !attr || attr->is_initialized == false ) return EINVAL; attr->is_initialized = false; return 0; 10b76c: b8 16 00 00 00 mov $0x16,%eax } 10b771: c9 leave 10b772: c3 ret 0010b798 : */ int pthread_barrierattr_init( pthread_barrierattr_t *attr ) { 10b798: 55 push %ebp 10b799: 89 e5 mov %esp,%ebp 10b79b: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr ) 10b79e: 85 c0 test %eax,%eax 10b7a0: 74 12 je 10b7b4 return EINVAL; attr->is_initialized = true; 10b7a2: c7 00 01 00 00 00 movl $0x1,(%eax) attr->process_shared = PTHREAD_PROCESS_PRIVATE; 10b7a8: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) 10b7af: 31 c0 xor %eax,%eax return 0; } 10b7b1: c9 leave 10b7b2: c3 ret 10b7b3: 90 nop <== NOT EXECUTED int pthread_barrierattr_init( pthread_barrierattr_t *attr ) { if ( !attr ) 10b7b4: b0 16 mov $0x16,%al return EINVAL; attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } 10b7b6: c9 leave 10b7b7: c3 ret 0010b7b8 : int pthread_barrierattr_setpshared( pthread_barrierattr_t *attr, int pshared ) { 10b7b8: 55 push %ebp 10b7b9: 89 e5 mov %esp,%ebp 10b7bb: 8b 45 08 mov 0x8(%ebp),%eax 10b7be: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr ) 10b7c1: 85 c0 test %eax,%eax 10b7c3: 74 0b je 10b7d0 return EINVAL; if ( !attr->is_initialized ) 10b7c5: 8b 08 mov (%eax),%ecx 10b7c7: 85 c9 test %ecx,%ecx 10b7c9: 74 05 je 10b7d0 return EINVAL; switch ( pshared ) { 10b7cb: 83 fa 01 cmp $0x1,%edx 10b7ce: 76 08 jbe 10b7d8 case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; 10b7d0: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 10b7d5: c9 leave 10b7d6: c3 ret 10b7d7: 90 nop <== NOT EXECUTED return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; 10b7d8: 89 50 04 mov %edx,0x4(%eax) 10b7db: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 10b7dd: c9 leave 10b7de: c3 ret 0010b030 : */ int pthread_cancel( pthread_t thread ) { 10b030: 55 push %ebp 10b031: 89 e5 mov %esp,%ebp 10b033: 83 ec 18 sub $0x18,%esp /* * Don't even think about deleting a resource from an ISR. */ if ( _ISR_Is_in_progress() ) 10b036: a1 94 8a 12 00 mov 0x128a94,%eax 10b03b: 85 c0 test %eax,%eax 10b03d: 74 09 je 10b048 10b03f: b8 47 00 00 00 mov $0x47,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b044: c9 leave 10b045: c3 ret 10b046: 66 90 xchg %ax,%ax <== NOT EXECUTED RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) 10b048: 51 push %ecx 10b049: 8d 45 f4 lea -0xc(%ebp),%eax 10b04c: 50 push %eax 10b04d: ff 75 08 pushl 0x8(%ebp) 10b050: 68 c0 8c 12 00 push $0x128cc0 10b055: e8 72 20 00 00 call 10d0cc <_Objects_Get> if ( _ISR_Is_in_progress() ) return EPROTO; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10b05a: 83 c4 10 add $0x10,%esp 10b05d: 8b 55 f4 mov -0xc(%ebp),%edx 10b060: 85 d2 test %edx,%edx 10b062: 75 20 jne 10b084 case OBJECTS_LOCAL: thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; thread_support->cancelation_requested = 1; 10b064: 8b 90 f8 00 00 00 mov 0xf8(%eax),%edx 10b06a: c7 82 dc 00 00 00 01 movl $0x1,0xdc(%edx) 10b071: 00 00 00 /* This enables dispatch implicitly */ _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( the_thread ); 10b074: 83 ec 0c sub $0xc,%esp 10b077: 50 push %eax 10b078: e8 3f 51 00 00 call 1101bc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> 10b07d: 31 c0 xor %eax,%eax return 0; 10b07f: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10b082: c9 leave 10b083: c3 ret if ( _ISR_Is_in_progress() ) return EPROTO; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10b084: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b089: c9 leave 10b08a: c3 ret 0010aeb0 : */ void pthread_cleanup_pop( int execute ) { 10aeb0: 55 push %ebp 10aeb1: 89 e5 mov %esp,%ebp 10aeb3: 57 push %edi 10aeb4: 56 push %esi 10aeb5: 53 push %ebx 10aeb6: 83 ec 1c sub $0x1c,%esp 10aeb9: 8b 5d 08 mov 0x8(%ebp),%ebx POSIX_Cancel_Handler_control tmp_handler; Chain_Control *handler_stack; POSIX_API_Control *thread_support; ISR_Level level; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 10aebc: a1 18 7c 12 00 mov 0x127c18,%eax 10aec1: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10aec7: 8b 15 58 7b 12 00 mov 0x127b58,%edx 10aecd: 42 inc %edx 10aece: 89 15 58 7b 12 00 mov %edx,0x127b58 * ensure that we do not get prempted and deleted while we are holding * memory that needs to be freed. */ _Thread_Disable_dispatch(); _ISR_Disable( level ); 10aed4: 9c pushf 10aed5: fa cli 10aed6: 5e pop %esi */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10aed7: 8d 90 e4 00 00 00 lea 0xe4(%eax),%edx POSIX_API_Control *thread_support; ISR_Level level; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; 10aedd: 39 90 e0 00 00 00 cmp %edx,0xe0(%eax) 10aee3: 74 4f je 10af34 _Thread_Enable_dispatch(); _ISR_Enable( level ); return; } handler = (POSIX_Cancel_Handler_control *) 10aee5: 8b 42 04 mov 0x4(%edx),%eax ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10aee8: 8b 08 mov (%eax),%ecx previous = the_node->previous; 10aeea: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 10aeed: 89 51 04 mov %edx,0x4(%ecx) previous->next = next; 10aef0: 89 0a mov %ecx,(%edx) _Chain_Tail( handler_stack )->previous; _Chain_Extract_unprotected( &handler->Node ); _ISR_Enable( level ); 10aef2: 56 push %esi 10aef3: 9d popf tmp_handler = *handler; 10aef4: 8d 7d d8 lea -0x28(%ebp),%edi 10aef7: b9 04 00 00 00 mov $0x4,%ecx 10aefc: 89 c6 mov %eax,%esi 10aefe: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10af00: 8b 75 e0 mov -0x20(%ebp),%esi 10af03: 8b 7d e4 mov -0x1c(%ebp),%edi _Workspace_Free( handler ); 10af06: 83 ec 0c sub $0xc,%esp 10af09: 50 push %eax 10af0a: e8 5d 38 00 00 call 10e76c <_Workspace_Free> _Thread_Enable_dispatch(); 10af0f: e8 b4 26 00 00 call 10d5c8 <_Thread_Enable_dispatch> if ( execute ) 10af14: 83 c4 10 add $0x10,%esp 10af17: 85 db test %ebx,%ebx 10af19: 75 09 jne 10af24 (*tmp_handler.routine)( tmp_handler.arg ); } 10af1b: 8d 65 f4 lea -0xc(%ebp),%esp 10af1e: 5b pop %ebx 10af1f: 5e pop %esi 10af20: 5f pop %edi 10af21: c9 leave 10af22: c3 ret 10af23: 90 nop <== NOT EXECUTED _Workspace_Free( handler ); _Thread_Enable_dispatch(); if ( execute ) (*tmp_handler.routine)( tmp_handler.arg ); 10af24: 89 7d 08 mov %edi,0x8(%ebp) 10af27: 89 f0 mov %esi,%eax } 10af29: 8d 65 f4 lea -0xc(%ebp),%esp 10af2c: 5b pop %ebx 10af2d: 5e pop %esi 10af2e: 5f pop %edi 10af2f: c9 leave _Workspace_Free( handler ); _Thread_Enable_dispatch(); if ( execute ) (*tmp_handler.routine)( tmp_handler.arg ); 10af30: ff e0 jmp *%eax 10af32: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Disable( level ); if ( _Chain_Is_empty( handler_stack ) ) { _Thread_Enable_dispatch(); 10af34: e8 8f 26 00 00 call 10d5c8 <_Thread_Enable_dispatch> _ISR_Enable( level ); 10af39: 56 push %esi 10af3a: 9d popf _Thread_Enable_dispatch(); if ( execute ) (*tmp_handler.routine)( tmp_handler.arg ); } 10af3b: 8d 65 f4 lea -0xc(%ebp),%esp 10af3e: 5b pop %ebx 10af3f: 5e pop %esi 10af40: 5f pop %edi 10af41: c9 leave 10af42: c3 ret 0010b23c : void pthread_cleanup_push( void (*routine)( void * ), void *arg ) { 10b23c: 55 push %ebp 10b23d: 89 e5 mov %esp,%ebp 10b23f: 56 push %esi 10b240: 53 push %ebx 10b241: 8b 5d 08 mov 0x8(%ebp),%ebx 10b244: 8b 75 0c mov 0xc(%ebp),%esi /* * The POSIX standard does not address what to do when the routine * is NULL. It also does not address what happens when we cannot * allocate memory or anything else bad happens. */ if ( !routine ) 10b247: 85 db test %ebx,%ebx 10b249: 74 4d je 10b298 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10b24b: a1 78 91 12 00 mov 0x129178,%eax 10b250: 40 inc %eax 10b251: a3 78 91 12 00 mov %eax,0x129178 return; _Thread_Disable_dispatch(); handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) ); 10b256: 83 ec 0c sub $0xc,%esp 10b259: 6a 10 push $0x10 10b25b: e8 18 40 00 00 call 10f278 <_Workspace_Allocate> if ( handler ) { 10b260: 83 c4 10 add $0x10,%esp 10b263: 85 c0 test %eax,%eax 10b265: 74 25 je 10b28c thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; 10b267: 8b 15 38 92 12 00 mov 0x129238,%edx 10b26d: 8b 92 f8 00 00 00 mov 0xf8(%edx),%edx 10b273: 81 c2 e0 00 00 00 add $0xe0,%edx handler->routine = routine; 10b279: 89 58 08 mov %ebx,0x8(%eax) handler->arg = arg; 10b27c: 89 70 0c mov %esi,0xc(%eax) _Chain_Append( handler_stack, &handler->Node ); 10b27f: 83 ec 08 sub $0x8,%esp 10b282: 50 push %eax 10b283: 52 push %edx 10b284: e8 9b 17 00 00 call 10ca24 <_Chain_Append> 10b289: 83 c4 10 add $0x10,%esp } _Thread_Enable_dispatch(); } 10b28c: 8d 65 f8 lea -0x8(%ebp),%esp 10b28f: 5b pop %ebx 10b290: 5e pop %esi 10b291: c9 leave handler->routine = routine; handler->arg = arg; _Chain_Append( handler_stack, &handler->Node ); } _Thread_Enable_dispatch(); 10b292: e9 c9 2d 00 00 jmp 10e060 <_Thread_Enable_dispatch> 10b297: 90 nop <== NOT EXECUTED } 10b298: 8d 65 f8 lea -0x8(%ebp),%esp 10b29b: 5b pop %ebx 10b29c: 5e pop %esi 10b29d: c9 leave 10b29e: c3 ret 0010bf48 : */ int pthread_cond_destroy( pthread_cond_t *cond ) { 10bf48: 55 push %ebp 10bf49: 89 e5 mov %esp,%ebp 10bf4b: 53 push %ebx 10bf4c: 83 ec 1c sub $0x1c,%esp POSIX_Condition_variables_Control *the_cond; Objects_Locations location; the_cond = _POSIX_Condition_variables_Get( cond, &location ); 10bf4f: 8d 45 f4 lea -0xc(%ebp),%eax 10bf52: 50 push %eax 10bf53: ff 75 08 pushl 0x8(%ebp) 10bf56: e8 65 00 00 00 call 10bfc0 <_POSIX_Condition_variables_Get> 10bf5b: 89 c3 mov %eax,%ebx switch ( location ) { 10bf5d: 83 c4 10 add $0x10,%esp 10bf60: 8b 4d f4 mov -0xc(%ebp),%ecx 10bf63: 85 c9 test %ecx,%ecx 10bf65: 75 25 jne 10bf8c case OBJECTS_LOCAL: if ( _Thread_queue_First( &the_cond->Wait_queue ) ) { 10bf67: 83 ec 0c sub $0xc,%esp 10bf6a: 8d 40 18 lea 0x18(%eax),%eax 10bf6d: 50 push %eax 10bf6e: e8 3d 3b 00 00 call 10fab0 <_Thread_queue_First> 10bf73: 83 c4 10 add $0x10,%esp 10bf76: 85 c0 test %eax,%eax 10bf78: 74 1e je 10bf98 _Thread_Enable_dispatch(); 10bf7a: e8 ed 33 00 00 call 10f36c <_Thread_Enable_dispatch> 10bf7f: b8 10 00 00 00 mov $0x10,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10bf84: 8b 5d fc mov -0x4(%ebp),%ebx 10bf87: c9 leave 10bf88: c3 ret 10bf89: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { POSIX_Condition_variables_Control *the_cond; Objects_Locations location; the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { 10bf8c: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10bf91: 8b 5d fc mov -0x4(%ebp),%ebx 10bf94: c9 leave 10bf95: c3 ret 10bf96: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( _Thread_queue_First( &the_cond->Wait_queue ) ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( 10bf98: 83 ec 08 sub $0x8,%esp 10bf9b: 53 push %ebx 10bf9c: 68 20 a3 12 00 push $0x12a320 10bfa1: e8 1e 27 00 00 call 10e6c4 <_Objects_Close> RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free ( POSIX_Condition_variables_Control *the_condition_variable ) { _Objects_Free( 10bfa6: 58 pop %eax 10bfa7: 5a pop %edx 10bfa8: 53 push %ebx 10bfa9: 68 20 a3 12 00 push $0x12a320 10bfae: e8 15 2a 00 00 call 10e9c8 <_Objects_Free> &_POSIX_Condition_variables_Information, &the_cond->Object ); _POSIX_Condition_variables_Free( the_cond ); _Thread_Enable_dispatch(); 10bfb3: e8 b4 33 00 00 call 10f36c <_Thread_Enable_dispatch> 10bfb8: 31 c0 xor %eax,%eax return 0; 10bfba: 83 c4 10 add $0x10,%esp 10bfbd: eb d2 jmp 10bf91 0010c014 : int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) { 10c014: 55 push %ebp 10c015: 89 e5 mov %esp,%ebp 10c017: 53 push %ebx 10c018: 83 ec 14 sub $0x14,%esp 10c01b: 8b 5d 0c mov 0xc(%ebp),%ebx POSIX_Condition_variables_Control *the_cond; const pthread_condattr_t *the_attr; if ( attr ) the_attr = attr; 10c01e: 85 db test %ebx,%ebx 10c020: 0f 84 86 00 00 00 je 10c0ac /* * Be careful about attributes when global!!! */ if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED ) 10c026: 83 7b 04 01 cmpl $0x1,0x4(%ebx) 10c02a: 74 06 je 10c032 return EINVAL; if ( !the_attr->is_initialized ) 10c02c: 8b 03 mov (%ebx),%eax 10c02e: 85 c0 test %eax,%eax 10c030: 75 0a jne 10c03c *cond = the_cond->Object.id; _Thread_Enable_dispatch(); return 0; 10c032: b8 16 00 00 00 mov $0x16,%eax } 10c037: 8b 5d fc mov -0x4(%ebp),%ebx 10c03a: c9 leave 10c03b: c3 ret rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10c03c: a1 38 9e 12 00 mov 0x129e38,%eax 10c041: 40 inc %eax 10c042: a3 38 9e 12 00 mov %eax,0x129e38 */ RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control *_POSIX_Condition_variables_Allocate( void ) { return (POSIX_Condition_variables_Control *) 10c047: 83 ec 0c sub $0xc,%esp 10c04a: 68 20 a3 12 00 push $0x12a320 10c04f: e8 f4 25 00 00 call 10e648 <_Objects_Allocate> _Thread_Disable_dispatch(); the_cond = _POSIX_Condition_variables_Allocate(); if ( !the_cond ) { 10c054: 83 c4 10 add $0x10,%esp 10c057: 85 c0 test %eax,%eax 10c059: 74 5d je 10c0b8 _Thread_Enable_dispatch(); return ENOMEM; } the_cond->process_shared = the_attr->process_shared; 10c05b: 8b 53 04 mov 0x4(%ebx),%edx 10c05e: 89 50 10 mov %edx,0x10(%eax) the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; 10c061: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) /* XXX some more initialization might need to go here */ _Thread_queue_Initialize( 10c068: 6a 74 push $0x74 10c06a: 68 00 08 00 00 push $0x800 10c06f: 6a 00 push $0x0 10c071: 8d 50 18 lea 0x18(%eax),%edx 10c074: 52 push %edx 10c075: 89 45 f4 mov %eax,-0xc(%ebp) 10c078: e8 b3 3a 00 00 call 10fb30 <_Thread_queue_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10c07d: 8b 45 f4 mov -0xc(%ebp),%eax 10c080: 8b 50 08 mov 0x8(%eax),%edx 10c083: 0f b7 da movzwl %dx,%ebx 10c086: 8b 0d 3c a3 12 00 mov 0x12a33c,%ecx 10c08c: 89 04 99 mov %eax,(%ecx,%ebx,4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 10c08f: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) &_POSIX_Condition_variables_Information, &the_cond->Object, 0 ); *cond = the_cond->Object.id; 10c096: 8b 45 08 mov 0x8(%ebp),%eax 10c099: 89 10 mov %edx,(%eax) _Thread_Enable_dispatch(); 10c09b: e8 cc 32 00 00 call 10f36c <_Thread_Enable_dispatch> 10c0a0: 31 c0 xor %eax,%eax return 0; 10c0a2: 83 c4 10 add $0x10,%esp } 10c0a5: 8b 5d fc mov -0x4(%ebp),%ebx 10c0a8: c9 leave 10c0a9: c3 ret 10c0aa: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { POSIX_Condition_variables_Control *the_cond; const pthread_condattr_t *the_attr; if ( attr ) the_attr = attr; 10c0ac: bb ec 34 12 00 mov $0x1234ec,%ebx 10c0b1: e9 70 ff ff ff jmp 10c026 10c0b6: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); the_cond = _POSIX_Condition_variables_Allocate(); if ( !the_cond ) { _Thread_Enable_dispatch(); 10c0b8: e8 af 32 00 00 call 10f36c <_Thread_Enable_dispatch> 10c0bd: b8 0c 00 00 00 mov $0xc,%eax return ENOMEM; 10c0c2: e9 70 ff ff ff jmp 10c037 0010beac : */ int pthread_condattr_destroy( pthread_condattr_t *attr ) { 10beac: 55 push %ebp 10bead: 89 e5 mov %esp,%ebp 10beaf: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr || attr->is_initialized == false ) 10beb2: 85 c0 test %eax,%eax 10beb4: 74 12 je 10bec8 10beb6: 8b 10 mov (%eax),%edx 10beb8: 85 d2 test %edx,%edx 10beba: 74 0c je 10bec8 return EINVAL; attr->is_initialized = false; 10bebc: c7 00 00 00 00 00 movl $0x0,(%eax) 10bec2: 31 c0 xor %eax,%eax return 0; } 10bec4: c9 leave 10bec5: c3 ret 10bec6: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !attr || attr->is_initialized == false ) return EINVAL; attr->is_initialized = false; return 0; 10bec8: b8 16 00 00 00 mov $0x16,%eax } 10becd: c9 leave 10bece: c3 ret 0010bed0 : int pthread_condattr_getpshared( const pthread_condattr_t *attr, int *pshared ) { 10bed0: 55 push %ebp 10bed1: 89 e5 mov %esp,%ebp 10bed3: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr ) 10bed6: 85 c0 test %eax,%eax 10bed8: 74 0e je 10bee8 return EINVAL; *pshared = attr->process_shared; 10beda: 8b 50 04 mov 0x4(%eax),%edx 10bedd: 8b 45 0c mov 0xc(%ebp),%eax 10bee0: 89 10 mov %edx,(%eax) 10bee2: 31 c0 xor %eax,%eax return 0; } 10bee4: c9 leave 10bee5: c3 ret 10bee6: 66 90 xchg %ax,%ax <== NOT EXECUTED int pthread_condattr_getpshared( const pthread_condattr_t *attr, int *pshared ) { if ( !attr ) 10bee8: b0 16 mov $0x16,%al return EINVAL; *pshared = attr->process_shared; return 0; } 10beea: c9 leave 10beeb: c3 ret 0010beec : */ int pthread_condattr_init( pthread_condattr_t *attr ) { 10beec: 55 push %ebp 10beed: 89 e5 mov %esp,%ebp 10beef: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr ) 10bef2: 85 c0 test %eax,%eax 10bef4: 74 16 je 10bf0c return EINVAL; *attr = _POSIX_Condition_variables_Default_attributes; 10bef6: 8b 15 ec 34 12 00 mov 0x1234ec,%edx 10befc: 8b 0d f0 34 12 00 mov 0x1234f0,%ecx 10bf02: 89 10 mov %edx,(%eax) 10bf04: 89 48 04 mov %ecx,0x4(%eax) 10bf07: 31 c0 xor %eax,%eax return 0; } 10bf09: c9 leave 10bf0a: c3 ret 10bf0b: 90 nop <== NOT EXECUTED int pthread_condattr_init( pthread_condattr_t *attr ) { if ( !attr ) 10bf0c: b0 16 mov $0x16,%al return EINVAL; *attr = _POSIX_Condition_variables_Default_attributes; return 0; } 10bf0e: c9 leave 10bf0f: c3 ret 0010bf10 : int pthread_condattr_setpshared( pthread_condattr_t *attr, int pshared ) { 10bf10: 55 push %ebp 10bf11: 89 e5 mov %esp,%ebp 10bf13: 8b 45 08 mov 0x8(%ebp),%eax 10bf16: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr ) 10bf19: 85 c0 test %eax,%eax 10bf1b: 74 05 je 10bf22 return EINVAL; switch ( pshared ) { 10bf1d: 83 fa 01 cmp $0x1,%edx 10bf20: 76 0a jbe 10bf2c case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; 10bf22: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 10bf27: c9 leave 10bf28: c3 ret 10bf29: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; 10bf2c: 89 50 04 mov %edx,0x4(%eax) 10bf2f: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 10bf31: c9 leave 10bf32: c3 ret 0010b5c4 : pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) { 10b5c4: 55 push %ebp 10b5c5: 89 e5 mov %esp,%ebp 10b5c7: 57 push %edi 10b5c8: 56 push %esi 10b5c9: 53 push %ebx 10b5ca: 83 ec 5c sub $0x5c,%esp 10b5cd: 8b 5d 0c mov 0xc(%ebp),%ebx int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) 10b5d0: 8b 7d 10 mov 0x10(%ebp),%edi 10b5d3: 85 ff test %edi,%edi 10b5d5: 0f 84 81 01 00 00 je 10b75c return EFAULT; the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes; 10b5db: 85 db test %ebx,%ebx 10b5dd: 74 65 je 10b644 if ( !the_attr->is_initialized ) 10b5df: 8b 33 mov (%ebx),%esi 10b5e1: 85 f6 test %esi,%esi 10b5e3: 74 1f je 10b604 * stack space if it is allowed to allocate it itself. * * NOTE: If the user provides the stack we will let it drop below * twice the minimum. */ if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) ) 10b5e5: 8b 4b 04 mov 0x4(%ebx),%ecx 10b5e8: 85 c9 test %ecx,%ecx 10b5ea: 74 0b je 10b5f7 10b5ec: 8b 43 08 mov 0x8(%ebx),%eax 10b5ef: 3b 05 b8 46 12 00 cmp 0x1246b8,%eax 10b5f5: 72 0d jb 10b604 * If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread * inherits scheduling attributes from the creating thread. If it is * PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the * attributes structure. */ switch ( the_attr->inheritsched ) { 10b5f7: 8b 43 10 mov 0x10(%ebx),%eax 10b5fa: 83 f8 01 cmp $0x1,%eax 10b5fd: 74 4d je 10b64c 10b5ff: 83 f8 02 cmp $0x2,%eax 10b602: 74 10 je 10b614 * Return the id and indicate we successfully created the thread */ *thread = the_thread->Object.id; _RTEMS_Unlock_allocator(); return 0; 10b604: ba 16 00 00 00 mov $0x16,%edx } 10b609: 89 d0 mov %edx,%eax 10b60b: 8d 65 f4 lea -0xc(%ebp),%esp 10b60e: 5b pop %ebx 10b60f: 5e pop %esi 10b610: 5f pop %edi 10b611: c9 leave 10b612: c3 ret 10b613: 90 nop <== NOT EXECUTED schedpolicy = api->schedpolicy; schedparam = api->schedparam; break; case PTHREAD_EXPLICIT_SCHED: schedpolicy = the_attr->schedpolicy; 10b614: 8b 43 14 mov 0x14(%ebx),%eax 10b617: 89 45 b0 mov %eax,-0x50(%ebp) schedparam = the_attr->schedparam; 10b61a: 8d 4d c4 lea -0x3c(%ebp),%ecx 10b61d: 89 4d b4 mov %ecx,-0x4c(%ebp) 10b620: 8d 73 18 lea 0x18(%ebx),%esi 10b623: b9 07 00 00 00 mov $0x7,%ecx 10b628: 8b 7d b4 mov -0x4c(%ebp),%edi 10b62b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* * Check the contentionscope since rtems only supports PROCESS wide * contention (i.e. no system wide contention). */ if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS ) 10b62d: 8b 53 0c mov 0xc(%ebx),%edx 10b630: 85 d2 test %edx,%edx 10b632: 74 49 je 10b67d 10b634: ba 86 00 00 00 mov $0x86,%edx */ *thread = the_thread->Object.id; _RTEMS_Unlock_allocator(); return 0; } 10b639: 89 d0 mov %edx,%eax 10b63b: 8d 65 f4 lea -0xc(%ebp),%esp 10b63e: 5b pop %ebx 10b63f: 5e pop %esi 10b640: 5f pop %edi 10b641: c9 leave 10b642: c3 ret 10b643: 90 nop <== NOT EXECUTED int rc; if ( !start_routine ) return EFAULT; the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes; 10b644: bb 60 1f 12 00 mov $0x121f60,%ebx 10b649: eb 94 jmp 10b5df 10b64b: 90 nop <== NOT EXECUTED * PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the * attributes structure. */ switch ( the_attr->inheritsched ) { case PTHREAD_INHERIT_SCHED: api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 10b64c: a1 38 89 12 00 mov 0x128938,%eax 10b651: 8b b0 f8 00 00 00 mov 0xf8(%eax),%esi schedpolicy = api->schedpolicy; 10b657: 8b 86 80 00 00 00 mov 0x80(%esi),%eax 10b65d: 89 45 b0 mov %eax,-0x50(%ebp) schedparam = api->schedparam; 10b660: 8d 4d c4 lea -0x3c(%ebp),%ecx 10b663: 89 4d b4 mov %ecx,-0x4c(%ebp) 10b666: 81 c6 84 00 00 00 add $0x84,%esi 10b66c: b9 07 00 00 00 mov $0x7,%ecx 10b671: 8b 7d b4 mov -0x4c(%ebp),%edi 10b674: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* * Check the contentionscope since rtems only supports PROCESS wide * contention (i.e. no system wide contention). */ if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS ) 10b676: 8b 53 0c mov 0xc(%ebx),%edx 10b679: 85 d2 test %edx,%edx 10b67b: 75 b7 jne 10b634 return ENOTSUP; /* * Interpret the scheduling parameters. */ if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) ) 10b67d: 83 ec 0c sub $0xc,%esp 10b680: ff 75 c4 pushl -0x3c(%ebp) 10b683: e8 f4 5b 00 00 call 11127c <_POSIX_Priority_Is_valid> 10b688: 83 c4 10 add $0x10,%esp 10b68b: 84 c0 test %al,%al 10b68d: 0f 84 71 ff ff ff je 10b604 return EINVAL; core_priority = _POSIX_Priority_To_core( schedparam.sched_priority ); 10b693: 8b 7d c4 mov -0x3c(%ebp),%edi RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 10b696: 0f b6 35 bc 46 12 00 movzbl 0x1246bc,%esi /* * Set the core scheduling policy information. */ rc = _POSIX_Thread_Translate_sched_param( 10b69d: 8d 45 e0 lea -0x20(%ebp),%eax 10b6a0: 50 push %eax 10b6a1: 8d 45 e4 lea -0x1c(%ebp),%eax 10b6a4: 50 push %eax 10b6a5: ff 75 b4 pushl -0x4c(%ebp) 10b6a8: ff 75 b0 pushl -0x50(%ebp) 10b6ab: e8 e8 5b 00 00 call 111298 <_POSIX_Thread_Translate_sched_param> 10b6b0: 89 c2 mov %eax,%edx schedpolicy, &schedparam, &budget_algorithm, &budget_callout ); if ( rc ) 10b6b2: 83 c4 10 add $0x10,%esp 10b6b5: 85 c0 test %eax,%eax 10b6b7: 0f 85 4c ff ff ff jne 10b609 #endif /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); 10b6bd: 83 ec 0c sub $0xc,%esp 10b6c0: ff 35 30 89 12 00 pushl 0x128930 10b6c6: 89 45 a4 mov %eax,-0x5c(%ebp) 10b6c9: e8 6e 17 00 00 call 10ce3c <_API_Mutex_Lock> * _POSIX_Threads_Allocate */ RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information ); 10b6ce: c7 04 24 40 8b 12 00 movl $0x128b40,(%esp) 10b6d5: e8 f2 20 00 00 call 10d7cc <_Objects_Allocate> 10b6da: 89 45 ac mov %eax,-0x54(%ebp) * Allocate the thread control block. * * NOTE: Global threads are not currently supported. */ the_thread = _POSIX_Threads_Allocate(); if ( !the_thread ) { 10b6dd: 83 c4 10 add $0x10,%esp 10b6e0: 85 c0 test %eax,%eax 10b6e2: 8b 55 a4 mov -0x5c(%ebp),%edx 10b6e5: 0f 84 06 01 00 00 je 10b7f1 /* * Initialize the core thread for this task. */ name.name_p = NULL; /* posix threads don't have a name by default */ status = _Thread_Initialize( 10b6eb: 8b 4b 08 mov 0x8(%ebx),%ecx 10b6ee: 50 push %eax 10b6ef: 6a 00 push $0x0 10b6f1: 6a 00 push $0x0 10b6f3: ff 75 e0 pushl -0x20(%ebp) 10b6f6: ff 75 e4 pushl -0x1c(%ebp) 10b6f9: 6a 01 push $0x1 10b6fb: 81 e6 ff 00 00 00 and $0xff,%esi 10b701: 29 fe sub %edi,%esi 10b703: 56 push %esi 10b704: 6a 01 push $0x1 10b706: a1 b8 46 12 00 mov 0x1246b8,%eax 10b70b: d1 e0 shl %eax 10b70d: 39 c8 cmp %ecx,%eax 10b70f: 73 02 jae 10b713 10b711: 89 c8 mov %ecx,%eax 10b713: 50 push %eax 10b714: ff 73 04 pushl 0x4(%ebx) 10b717: ff 75 ac pushl -0x54(%ebp) 10b71a: 68 40 8b 12 00 push $0x128b40 10b71f: 89 55 a4 mov %edx,-0x5c(%ebp) 10b722: e8 91 2e 00 00 call 10e5b8 <_Thread_Initialize> budget_callout, 0, /* isr level */ name /* posix threads don't have a name */ ); if ( !status ) { 10b727: 83 c4 30 add $0x30,%esp 10b72a: 84 c0 test %al,%al 10b72c: 8b 55 a4 mov -0x5c(%ebp),%edx 10b72f: 75 35 jne 10b766 RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free ( Thread_Control *the_pthread ) { _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); 10b731: 83 ec 08 sub $0x8,%esp 10b734: ff 75 ac pushl -0x54(%ebp) 10b737: 68 40 8b 12 00 push $0x128b40 10b73c: e8 0b 24 00 00 call 10db4c <_Objects_Free> _POSIX_Threads_Free( the_thread ); _RTEMS_Unlock_allocator(); 10b741: 59 pop %ecx 10b742: ff 35 30 89 12 00 pushl 0x128930 10b748: e8 37 17 00 00 call 10ce84 <_API_Mutex_Unlock> 10b74d: ba 0b 00 00 00 mov $0xb,%edx return EAGAIN; 10b752: 83 c4 10 add $0x10,%esp 10b755: e9 af fe ff ff jmp 10b609 10b75a: 66 90 xchg %ax,%ax <== NOT EXECUTED int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) 10b75c: ba 0e 00 00 00 mov $0xe,%edx 10b761: e9 a3 fe ff ff jmp 10b609 } /* * finish initializing the per API structure */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 10b766: 8b 45 ac mov -0x54(%ebp),%eax 10b769: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax 10b76f: 89 45 a8 mov %eax,-0x58(%ebp) api->Attributes = *the_attr; 10b772: b9 0f 00 00 00 mov $0xf,%ecx 10b777: 89 c7 mov %eax,%edi 10b779: 89 de mov %ebx,%esi 10b77b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) api->detachstate = the_attr->detachstate; 10b77d: 8b 43 38 mov 0x38(%ebx),%eax 10b780: 8b 4d a8 mov -0x58(%ebp),%ecx 10b783: 89 41 3c mov %eax,0x3c(%ecx) api->schedpolicy = schedpolicy; 10b786: 8b 45 b0 mov -0x50(%ebp),%eax 10b789: 89 81 80 00 00 00 mov %eax,0x80(%ecx) api->schedparam = schedparam; 10b78f: 89 cf mov %ecx,%edi 10b791: 81 c7 84 00 00 00 add $0x84,%edi 10b797: b9 07 00 00 00 mov $0x7,%ecx 10b79c: 8b 75 b4 mov -0x4c(%ebp),%esi 10b79f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) * This insures we evaluate the process-wide signals pending when we * first run. * * NOTE: Since the thread starts with all unblocked, this is necessary. */ the_thread->do_post_task_switch_extension = true; 10b7a1: 8b 4d ac mov -0x54(%ebp),%ecx 10b7a4: c6 41 74 01 movb $0x1,0x74(%ecx) /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( 10b7a8: 83 ec 0c sub $0xc,%esp 10b7ab: 6a 00 push $0x0 10b7ad: ff 75 14 pushl 0x14(%ebp) 10b7b0: ff 75 10 pushl 0x10(%ebp) 10b7b3: 6a 01 push $0x1 10b7b5: 51 push %ecx 10b7b6: 89 55 a4 mov %edx,-0x5c(%ebp) 10b7b9: e8 6e 38 00 00 call 10f02c <_Thread_Start> _RTEMS_Unlock_allocator(); return EINVAL; } #endif if ( schedpolicy == SCHED_SPORADIC ) { 10b7be: 83 c4 20 add $0x20,%esp 10b7c1: 83 7d b0 04 cmpl $0x4,-0x50(%ebp) 10b7c5: 8b 55 a4 mov -0x5c(%ebp),%edx 10b7c8: 74 42 je 10b80c } /* * Return the id and indicate we successfully created the thread */ *thread = the_thread->Object.id; 10b7ca: 8b 45 ac mov -0x54(%ebp),%eax 10b7cd: 8b 48 08 mov 0x8(%eax),%ecx 10b7d0: 8b 45 08 mov 0x8(%ebp),%eax 10b7d3: 89 08 mov %ecx,(%eax) _RTEMS_Unlock_allocator(); 10b7d5: 83 ec 0c sub $0xc,%esp 10b7d8: ff 35 30 89 12 00 pushl 0x128930 10b7de: 89 55 a4 mov %edx,-0x5c(%ebp) 10b7e1: e8 9e 16 00 00 call 10ce84 <_API_Mutex_Unlock> return 0; 10b7e6: 83 c4 10 add $0x10,%esp 10b7e9: 8b 55 a4 mov -0x5c(%ebp),%edx 10b7ec: e9 18 fe ff ff jmp 10b609 * * NOTE: Global threads are not currently supported. */ the_thread = _POSIX_Threads_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); 10b7f1: 83 ec 0c sub $0xc,%esp 10b7f4: ff 35 30 89 12 00 pushl 0x128930 10b7fa: e8 85 16 00 00 call 10ce84 <_API_Mutex_Unlock> 10b7ff: ba 0b 00 00 00 mov $0xb,%edx return EAGAIN; 10b804: 83 c4 10 add $0x10,%esp 10b807: e9 fd fd ff ff jmp 10b609 return EINVAL; } #endif if ( schedpolicy == SCHED_SPORADIC ) { _Watchdog_Insert_ticks( 10b80c: 83 ec 0c sub $0xc,%esp 10b80f: 8b 45 a8 mov -0x58(%ebp),%eax 10b812: 05 8c 00 00 00 add $0x8c,%eax 10b817: 50 push %eax 10b818: e8 ff 39 00 00 call 10f21c <_Timespec_To_ticks> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10b81d: 8b 4d a8 mov -0x58(%ebp),%ecx 10b820: 89 81 b0 00 00 00 mov %eax,0xb0(%ecx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10b826: 58 pop %eax 10b827: 5a pop %edx 10b828: 89 c8 mov %ecx,%eax 10b82a: 05 a4 00 00 00 add $0xa4,%eax 10b82f: 50 push %eax 10b830: 68 58 89 12 00 push $0x128958 10b835: e8 06 3d 00 00 call 10f540 <_Watchdog_Insert> 10b83a: 83 c4 10 add $0x10,%esp 10b83d: 8b 55 a4 mov -0x5c(%ebp),%edx 10b840: eb 88 jmp 10b7ca 0010b6e0 : #include int pthread_detach( pthread_t thread ) { 10b6e0: 55 push %ebp 10b6e1: 89 e5 mov %esp,%ebp 10b6e3: 83 ec 1c sub $0x1c,%esp RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) 10b6e6: 8d 45 f4 lea -0xc(%ebp),%eax 10b6e9: 50 push %eax 10b6ea: ff 75 08 pushl 0x8(%ebp) 10b6ed: 68 00 98 12 00 push $0x129800 10b6f2: e8 a1 22 00 00 call 10d998 <_Objects_Get> register Thread_Control *the_thread; POSIX_API_Control *api; Objects_Locations location; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10b6f7: 83 c4 10 add $0x10,%esp 10b6fa: 8b 55 f4 mov -0xc(%ebp),%edx 10b6fd: 85 d2 test %edx,%edx 10b6ff: 75 17 jne 10b718 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->detachstate = PTHREAD_CREATE_DETACHED; 10b701: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax 10b707: c7 40 3c 00 00 00 00 movl $0x0,0x3c(%eax) _Thread_Enable_dispatch(); 10b70e: e8 f9 2a 00 00 call 10e20c <_Thread_Enable_dispatch> 10b713: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return ESRCH; } 10b715: c9 leave 10b716: c3 ret 10b717: 90 nop <== NOT EXECUTED register Thread_Control *the_thread; POSIX_API_Control *api; Objects_Locations location; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10b718: b8 03 00 00 00 mov $0x3,%eax case OBJECTS_ERROR: break; } return ESRCH; } 10b71d: c9 leave 10b71e: c3 ret 00112794 : } void pthread_exit( void *value_ptr ) { 112794: 55 push %ebp 112795: 89 e5 mov %esp,%ebp 112797: 83 ec 10 sub $0x10,%esp _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); 11279a: ff 75 08 pushl 0x8(%ebp) 11279d: ff 35 d8 77 12 00 pushl 0x1277d8 1127a3: e8 88 ff ff ff call 112730 <_POSIX_Thread_Exit> 1127a8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 1127ab: c9 leave <== NOT EXECUTED 1127ac: c3 ret <== NOT EXECUTED 0010d80c : int pthread_getschedparam( pthread_t thread, int *policy, struct sched_param *param ) { 10d80c: 55 push %ebp 10d80d: 89 e5 mov %esp,%ebp 10d80f: 57 push %edi 10d810: 56 push %esi 10d811: 53 push %ebx 10d812: 83 ec 1c sub $0x1c,%esp 10d815: 8b 7d 0c mov 0xc(%ebp),%edi 10d818: 8b 5d 10 mov 0x10(%ebp),%ebx Objects_Locations location; POSIX_API_Control *api; register Thread_Control *the_thread; if ( !policy || !param ) 10d81b: 85 ff test %edi,%edi 10d81d: 74 69 je 10d888 10d81f: 85 db test %ebx,%ebx 10d821: 74 65 je 10d888 RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) 10d823: 51 push %ecx 10d824: 8d 45 e4 lea -0x1c(%ebp),%eax 10d827: 50 push %eax 10d828: ff 75 08 pushl 0x8(%ebp) 10d82b: 68 a0 c8 12 00 push $0x12c8a0 10d830: e8 a3 23 00 00 call 10fbd8 <_Objects_Get> return EINVAL; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10d835: 83 c4 10 add $0x10,%esp 10d838: 8b 55 e4 mov -0x1c(%ebp),%edx 10d83b: 85 d2 test %edx,%edx 10d83d: 75 39 jne 10d878 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 10d83f: 8b b0 f8 00 00 00 mov 0xf8(%eax),%esi if ( policy ) *policy = api->schedpolicy; 10d845: 8b 96 80 00 00 00 mov 0x80(%esi),%edx 10d84b: 89 17 mov %edx,(%edi) if ( param ) { *param = api->schedparam; 10d84d: 81 c6 84 00 00 00 add $0x84,%esi 10d853: b9 07 00 00 00 mov $0x7,%ecx 10d858: 89 df mov %ebx,%edi 10d85a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) param->sched_priority = 10d85c: 0f b6 15 dc 83 12 00 movzbl 0x1283dc,%edx 10d863: 2b 50 14 sub 0x14(%eax),%edx 10d866: 89 13 mov %edx,(%ebx) _POSIX_Priority_From_core( the_thread->current_priority ); } _Thread_Enable_dispatch(); 10d868: e8 df 2b 00 00 call 11044c <_Thread_Enable_dispatch> 10d86d: 31 c0 xor %eax,%eax break; } return ESRCH; } 10d86f: 8d 65 f4 lea -0xc(%ebp),%esp 10d872: 5b pop %ebx 10d873: 5e pop %esi 10d874: 5f pop %edi 10d875: c9 leave 10d876: c3 ret 10d877: 90 nop <== NOT EXECUTED if ( !policy || !param ) return EINVAL; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10d878: b8 03 00 00 00 mov $0x3,%eax break; } return ESRCH; } 10d87d: 8d 65 f4 lea -0xc(%ebp),%esp 10d880: 5b pop %ebx 10d881: 5e pop %esi 10d882: 5f pop %edi 10d883: c9 leave 10d884: c3 ret 10d885: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED *param = api->schedparam; param->sched_priority = _POSIX_Priority_From_core( the_thread->current_priority ); } _Thread_Enable_dispatch(); return 0; 10d888: b8 16 00 00 00 mov $0x16,%eax break; } return ESRCH; } 10d88d: 8d 65 f4 lea -0xc(%ebp),%esp 10d890: 5b pop %ebx 10d891: 5e pop %esi 10d892: 5f pop %edi 10d893: c9 leave 10d894: c3 ret 0010b5bc : */ void *pthread_getspecific( pthread_key_t key ) { 10b5bc: 55 push %ebp 10b5bd: 89 e5 mov %esp,%ebp 10b5bf: 83 ec 2c sub $0x2c,%esp RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get ( pthread_key_t id, Objects_Locations *location ) { return (POSIX_Keys_Control *) 10b5c2: 8d 45 f4 lea -0xc(%ebp),%eax 10b5c5: 50 push %eax 10b5c6: ff 75 08 pushl 0x8(%ebp) 10b5c9: 68 80 9a 12 00 push $0x129a80 10b5ce: e8 e5 24 00 00 call 10dab8 <_Objects_Get> uint32_t index; Objects_Locations location; void *key_data; the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { 10b5d3: 83 c4 10 add $0x10,%esp 10b5d6: 8b 55 f4 mov -0xc(%ebp),%edx 10b5d9: 85 d2 test %edx,%edx 10b5db: 75 2b jne 10b608 case OBJECTS_LOCAL: api = _Objects_Get_API( _Thread_Executing->Object.id ); 10b5dd: 8b 15 98 96 12 00 mov 0x129698,%edx 10b5e3: 8b 4a 08 mov 0x8(%edx),%ecx index = _Objects_Get_index( _Thread_Executing->Object.id ); key_data = (void *) the_key->Values[ api ][ index ]; 10b5e6: 89 ca mov %ecx,%edx 10b5e8: c1 ea 18 shr $0x18,%edx 10b5eb: 83 e2 07 and $0x7,%edx 10b5ee: 0f b7 c9 movzwl %cx,%ecx 10b5f1: 8b 44 90 14 mov 0x14(%eax,%edx,4),%eax 10b5f5: 8b 04 88 mov (%eax,%ecx,4),%eax _Thread_Enable_dispatch(); 10b5f8: 89 45 e4 mov %eax,-0x1c(%ebp) 10b5fb: e8 2c 2d 00 00 call 10e32c <_Thread_Enable_dispatch> 10b600: 8b 45 e4 mov -0x1c(%ebp),%eax case OBJECTS_ERROR: break; } return NULL; } 10b603: c9 leave 10b604: c3 ret 10b605: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED uint32_t index; Objects_Locations location; void *key_data; the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { 10b608: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return NULL; } 10b60a: c9 leave 10b60b: c3 ret 001102cc : int pthread_join( pthread_t thread, void **value_ptr ) { 1102cc: 55 push %ebp 1102cd: 89 e5 mov %esp,%ebp 1102cf: 53 push %ebx 1102d0: 83 ec 18 sub $0x18,%esp 1102d3: 8b 5d 0c mov 0xc(%ebp),%ebx 1102d6: 8d 45 f4 lea -0xc(%ebp),%eax 1102d9: 50 push %eax 1102da: ff 75 08 pushl 0x8(%ebp) 1102dd: 68 e0 0b 13 00 push $0x130be0 1102e2: e8 45 23 00 00 call 11262c <_Objects_Get> POSIX_API_Control *api; Objects_Locations location; void *return_pointer; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 1102e7: 83 c4 10 add $0x10,%esp 1102ea: 8b 55 f4 mov -0xc(%ebp),%edx 1102ed: 85 d2 test %edx,%edx 1102ef: 74 0b je 1102fc 1102f1: b8 03 00 00 00 mov $0x3,%eax case OBJECTS_ERROR: break; } return ESRCH; } 1102f6: 8b 5d fc mov -0x4(%ebp),%ebx 1102f9: c9 leave 1102fa: c3 ret 1102fb: 90 nop <== NOT EXECUTED the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 1102fc: 8b 90 f8 00 00 00 mov 0xf8(%eax),%edx if ( api->detachstate == PTHREAD_CREATE_DETACHED ) { 110302: 8b 4a 3c mov 0x3c(%edx),%ecx 110305: 85 c9 test %ecx,%ecx 110307: 74 43 je 11034c RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); 110309: 8b 0d d8 09 13 00 mov 0x1309d8,%ecx _Thread_Enable_dispatch(); return EINVAL; } if ( _Thread_Is_executing( the_thread ) ) { 11030f: 39 c8 cmp %ecx,%eax 110311: 74 49 je 11035c /* * Put ourself on the threads join list */ _Thread_Executing->Wait.return_argument = &return_pointer; 110313: 8d 45 f0 lea -0x10(%ebp),%eax 110316: 89 41 28 mov %eax,0x28(%ecx) 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; 110319: c7 42 70 01 00 00 00 movl $0x1,0x70(%edx) _Thread_queue_Enter_critical_section( &api->Join_List ); _Thread_queue_Enqueue( &api->Join_List, WATCHDOG_NO_TIMEOUT ); 110320: 50 push %eax 110321: 68 c0 36 11 00 push $0x1136c0 110326: 6a 00 push $0x0 110328: 83 c2 40 add $0x40,%edx 11032b: 52 push %edx 11032c: e8 7f 30 00 00 call 1133b0 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 110331: e8 6a 2b 00 00 call 112ea0 <_Thread_Enable_dispatch> if ( value_ptr ) 110336: 83 c4 10 add $0x10,%esp 110339: 85 db test %ebx,%ebx 11033b: 74 05 je 110342 *value_ptr = return_pointer; 11033d: 8b 45 f0 mov -0x10(%ebp),%eax 110340: 89 03 mov %eax,(%ebx) 110342: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return ESRCH; } 110344: 8b 5d fc mov -0x4(%ebp),%ebx 110347: c9 leave 110348: c3 ret 110349: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( api->detachstate == PTHREAD_CREATE_DETACHED ) { _Thread_Enable_dispatch(); 11034c: e8 4f 2b 00 00 call 112ea0 <_Thread_Enable_dispatch> 110351: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return ESRCH; } 110356: 8b 5d fc mov -0x4(%ebp),%ebx 110359: c9 leave 11035a: c3 ret 11035b: 90 nop <== NOT EXECUTED _Thread_Enable_dispatch(); return EINVAL; } if ( _Thread_Is_executing( the_thread ) ) { _Thread_Enable_dispatch(); 11035c: e8 3f 2b 00 00 call 112ea0 <_Thread_Enable_dispatch> 110361: b8 2d 00 00 00 mov $0x2d,%eax return EDEADLK; 110366: eb 8e jmp 1102f6 0010b440 : int pthread_key_create( pthread_key_t *key, void (*destructor)( void * ) ) { 10b440: 55 push %ebp 10b441: 89 e5 mov %esp,%ebp 10b443: 57 push %edi 10b444: 56 push %esi 10b445: 53 push %ebx 10b446: 83 ec 28 sub $0x28,%esp 10b449: a1 d8 95 12 00 mov 0x1295d8,%eax 10b44e: 40 inc %eax 10b44f: a3 d8 95 12 00 mov %eax,0x1295d8 * the inactive chain of free keys control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) { return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information ); 10b454: 68 80 9a 12 00 push $0x129a80 10b459: e8 aa 21 00 00 call 10d608 <_Objects_Allocate> 10b45e: 89 c6 mov %eax,%esi _Thread_Disable_dispatch(); the_key = _POSIX_Keys_Allocate(); if ( !the_key ) { 10b460: 83 c4 10 add $0x10,%esp 10b463: 85 c0 test %eax,%eax 10b465: 0f 84 81 00 00 00 je 10b4ec _Thread_Enable_dispatch(); return EAGAIN; } the_key->destructor = destructor; 10b46b: 8b 45 0c mov 0xc(%ebp),%eax 10b46e: 89 46 10 mov %eax,0x10(%esi) 10b471: bb 01 00 00 00 mov $0x1,%ebx for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) { if ( _Objects_Information_table[ the_api ] ) { 10b476: 8b 04 9d ac 95 12 00 mov 0x1295ac(,%ebx,4),%eax 10b47d: 85 c0 test %eax,%eax 10b47f: 74 5f je 10b4e0 INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY ); #endif bytes_to_allocate = sizeof( void * ) * 10b481: 8b 40 04 mov 0x4(%eax),%eax 10b484: 0f b7 40 10 movzwl 0x10(%eax),%eax 10b488: 8d 0c 85 04 00 00 00 lea 0x4(,%eax,4),%ecx (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); 10b48f: 83 ec 0c sub $0xc,%esp 10b492: 51 push %ecx 10b493: 89 4d e4 mov %ecx,-0x1c(%ebp) 10b496: e8 21 41 00 00 call 10f5bc <_Workspace_Allocate> if ( !table ) { 10b49b: 83 c4 10 add $0x10,%esp 10b49e: 85 c0 test %eax,%eax 10b4a0: 8b 4d e4 mov -0x1c(%ebp),%ecx 10b4a3: 74 5b je 10b500 _POSIX_Keys_Free( the_key ); _Thread_Enable_dispatch(); return ENOMEM; } the_key->Values[ the_api ] = table; 10b4a5: 89 44 9e 14 mov %eax,0x14(%esi,%ebx,4) memset( table, '\0', bytes_to_allocate ); 10b4a9: 89 c7 mov %eax,%edi 10b4ab: 31 c0 xor %eax,%eax 10b4ad: f3 aa rep stos %al,%es:(%edi) * for. [NOTE: Currently RTEMS Classic API tasks are always enabled.] */ for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) { 10b4af: 43 inc %ebx * This is a bit more complex than one might initially expect because * APIs are optional. Thus there may be no ITRON tasks to have keys * for. [NOTE: Currently RTEMS Classic API tasks are always enabled.] */ for ( the_api = 1; 10b4b0: 83 fb 05 cmp $0x5,%ebx 10b4b3: 75 c1 jne 10b476 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10b4b5: 8b 46 08 mov 0x8(%esi),%eax 10b4b8: 0f b7 c8 movzwl %ax,%ecx 10b4bb: 8b 15 9c 9a 12 00 mov 0x129a9c,%edx 10b4c1: 89 34 8a mov %esi,(%edx,%ecx,4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 10b4c4: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) } _Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 ); *key = the_key->Object.id; 10b4cb: 8b 55 08 mov 0x8(%ebp),%edx 10b4ce: 89 02 mov %eax,(%edx) _Thread_Enable_dispatch(); 10b4d0: e8 57 2e 00 00 call 10e32c <_Thread_Enable_dispatch> 10b4d5: 31 c0 xor %eax,%eax return 0; } 10b4d7: 8d 65 f4 lea -0xc(%ebp),%esp 10b4da: 5b pop %ebx 10b4db: 5e pop %esi 10b4dc: 5f pop %edi 10b4dd: c9 leave 10b4de: c3 ret 10b4df: 90 nop <== NOT EXECUTED } the_key->Values[ the_api ] = table; memset( table, '\0', bytes_to_allocate ); } else { the_key->Values[ the_api ] = NULL; 10b4e0: c7 44 9e 14 00 00 00 movl $0x0,0x14(%esi,%ebx,4) 10b4e7: 00 10b4e8: eb c5 jmp 10b4af 10b4ea: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); the_key = _POSIX_Keys_Allocate(); if ( !the_key ) { _Thread_Enable_dispatch(); 10b4ec: e8 3b 2e 00 00 call 10e32c <_Thread_Enable_dispatch> 10b4f1: b8 0b 00 00 00 mov $0xb,%eax *key = the_key->Object.id; _Thread_Enable_dispatch(); return 0; } 10b4f6: 8d 65 f4 lea -0xc(%ebp),%esp 10b4f9: 5b pop %ebx 10b4fa: 5e pop %esi 10b4fb: 5f pop %edi 10b4fc: c9 leave 10b4fd: c3 ret 10b4fe: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { for ( --the_api; 10b500: 89 df mov %ebx,%edi 10b502: 4f dec %edi 10b503: 74 1a je 10b51f 10b505: 8d 5c 9e 10 lea 0x10(%esi,%ebx,4),%ebx 10b509: 8d 76 00 lea 0x0(%esi),%esi the_api >= 1; the_api-- ) _Workspace_Free( the_key->Values[ the_api ] ); 10b50c: 83 ec 0c sub $0xc,%esp 10b50f: ff 33 pushl (%ebx) 10b511: e8 c2 40 00 00 call 10f5d8 <_Workspace_Free> (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { for ( --the_api; the_api >= 1; the_api-- ) 10b516: 83 eb 04 sub $0x4,%ebx #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { for ( --the_api; 10b519: 83 c4 10 add $0x10,%esp 10b51c: 4f dec %edi 10b51d: 75 ed jne 10b50c */ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free ( POSIX_Keys_Control *the_key ) { _Objects_Free( &_POSIX_Keys_Information, &the_key->Object ); 10b51f: 83 ec 08 sub $0x8,%esp 10b522: 56 push %esi 10b523: 68 80 9a 12 00 push $0x129a80 10b528: e8 5b 24 00 00 call 10d988 <_Objects_Free> the_api >= 1; the_api-- ) _Workspace_Free( the_key->Values[ the_api ] ); _POSIX_Keys_Free( the_key ); _Thread_Enable_dispatch(); 10b52d: e8 fa 2d 00 00 call 10e32c <_Thread_Enable_dispatch> 10b532: b8 0c 00 00 00 mov $0xc,%eax return ENOMEM; 10b537: 83 c4 10 add $0x10,%esp 10b53a: eb 9b jmp 10b4d7 0011373c : int pthread_kill( pthread_t thread, int sig ) { 11373c: 55 push %ebp 11373d: 89 e5 mov %esp,%ebp 11373f: 57 push %edi 113740: 56 push %esi 113741: 53 push %ebx 113742: 83 ec 1c sub $0x1c,%esp 113745: 8b 5d 0c mov 0xc(%ebp),%ebx POSIX_API_Control *api; Thread_Control *the_thread; Objects_Locations location; if ( !sig ) 113748: 85 db test %ebx,%ebx 11374a: 0f 84 8c 00 00 00 je 1137dc static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); 113750: 8d 7b ff lea -0x1(%ebx),%edi rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) 113753: 83 ff 1f cmp $0x1f,%edi 113756: 0f 87 80 00 00 00 ja 1137dc RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) 11375c: 51 push %ecx 11375d: 8d 45 e4 lea -0x1c(%ebp),%eax 113760: 50 push %eax 113761: ff 75 08 pushl 0x8(%ebp) 113764: 68 e0 79 12 00 push $0x1279e0 113769: e8 12 95 ff ff call 10cc80 <_Objects_Get> 11376e: 89 c6 mov %eax,%esi rtems_set_errno_and_return_minus_one( EINVAL ); the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 113770: 83 c4 10 add $0x10,%esp 113773: 8b 55 e4 mov -0x1c(%ebp),%edx 113776: 85 d2 test %edx,%edx 113778: 75 76 jne 1137f0 case OBJECTS_LOCAL: /* * If sig == 0 then just validate arguments */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 11377a: 8b 90 f8 00 00 00 mov 0xf8(%eax),%edx if ( sig ) { if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) { 113780: 8d 04 5b lea (%ebx,%ebx,2),%eax 113783: 83 3c 85 08 7d 12 00 cmpl $0x1,0x127d08(,%eax,4) 11378a: 01 11378b: 74 31 je 1137be return 0; } /* XXX critical section */ api->signals_pending |= signo_to_mask( sig ); 11378d: b8 01 00 00 00 mov $0x1,%eax 113792: 89 f9 mov %edi,%ecx 113794: d3 e0 shl %cl,%eax 113796: 09 82 d0 00 00 00 or %eax,0xd0(%edx) (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL ); 11379c: 50 push %eax 11379d: 6a 00 push $0x0 11379f: 53 push %ebx 1137a0: 56 push %esi 1137a1: e8 7a fe ff ff call 113620 <_POSIX_signals_Unblock_thread> the_thread->do_post_task_switch_extension = true; 1137a6: c6 46 74 01 movb $0x1,0x74(%esi) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 1137aa: a1 b4 77 12 00 mov 0x1277b4,%eax 1137af: 83 c4 10 add $0x10,%esp 1137b2: 85 c0 test %eax,%eax 1137b4: 74 08 je 1137be 1137b6: 3b 35 d8 77 12 00 cmp 0x1277d8,%esi 1137bc: 74 12 je 1137d0 _ISR_Signals_to_thread_executing = true; } _Thread_Enable_dispatch(); 1137be: e8 31 9d ff ff call 10d4f4 <_Thread_Enable_dispatch> 1137c3: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( ESRCH ); } 1137c5: 8d 65 f4 lea -0xc(%ebp),%esp 1137c8: 5b pop %ebx 1137c9: 5e pop %esi 1137ca: 5f pop %edi 1137cb: c9 leave 1137cc: c3 ret 1137cd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL ); the_thread->do_post_task_switch_extension = true; if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; 1137d0: c6 05 88 78 12 00 01 movb $0x1,0x127888 1137d7: eb e5 jmp 1137be 1137d9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); 1137dc: e8 b3 00 00 00 call 113894 <__errno> 1137e1: c7 00 16 00 00 00 movl $0x16,(%eax) 1137e7: b8 ff ff ff ff mov $0xffffffff,%eax 1137ec: eb d7 jmp 1137c5 1137ee: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( ESRCH ); 1137f0: e8 9f 00 00 00 call 113894 <__errno> 1137f5: c7 00 03 00 00 00 movl $0x3,(%eax) 1137fb: b8 ff ff ff ff mov $0xffffffff,%eax 113800: eb c3 jmp 1137c5 0010cfec : */ int pthread_mutex_destroy( pthread_mutex_t *mutex ) { 10cfec: 55 push %ebp 10cfed: 89 e5 mov %esp,%ebp 10cfef: 83 ec 30 sub $0x30,%esp register POSIX_Mutex_Control *the_mutex; Objects_Locations location; the_mutex = _POSIX_Mutex_Get( mutex, &location ); 10cff2: 8d 45 f4 lea -0xc(%ebp),%eax 10cff5: 50 push %eax 10cff6: ff 75 08 pushl 0x8(%ebp) 10cff9: e8 ba 00 00 00 call 10d0b8 <_POSIX_Mutex_Get> switch ( location ) { 10cffe: 83 c4 10 add $0x10,%esp 10d001: 8b 55 f4 mov -0xc(%ebp),%edx 10d004: 85 d2 test %edx,%edx 10d006: 74 08 je 10d010 10d008: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10d00d: c9 leave 10d00e: c3 ret 10d00f: 90 nop <== NOT EXECUTED /* * XXX: There is an error for the mutex being locked * or being in use by a condition variable. */ if ( _CORE_mutex_Is_locked( &the_mutex->Mutex ) ) { 10d010: 8b 48 64 mov 0x64(%eax),%ecx 10d013: 85 c9 test %ecx,%ecx 10d015: 75 0d jne 10d024 _Thread_Enable_dispatch(); 10d017: e8 30 34 00 00 call 11044c <_Thread_Enable_dispatch> 10d01c: b8 10 00 00 00 mov $0x10,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10d021: c9 leave 10d022: c3 ret 10d023: 90 nop <== NOT EXECUTED if ( _CORE_mutex_Is_locked( &the_mutex->Mutex ) ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( &_POSIX_Mutex_Information, &the_mutex->Object ); 10d024: 83 ec 08 sub $0x8,%esp 10d027: 50 push %eax 10d028: 68 e0 c9 12 00 push $0x12c9e0 10d02d: 89 45 e4 mov %eax,-0x1c(%ebp) 10d030: e8 6f 27 00 00 call 10f7a4 <_Objects_Close> _CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL ); 10d035: 83 c4 0c add $0xc,%esp 10d038: 6a 16 push $0x16 10d03a: 6a 00 push $0x0 10d03c: 8b 45 e4 mov -0x1c(%ebp),%eax 10d03f: 8d 50 14 lea 0x14(%eax),%edx 10d042: 52 push %edx 10d043: e8 80 1e 00 00 call 10eec8 <_CORE_mutex_Flush> RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Free ( POSIX_Mutex_Control *the_mutex ) { _Objects_Free( &_POSIX_Mutex_Information, &the_mutex->Object ); 10d048: 58 pop %eax 10d049: 5a pop %edx 10d04a: 8b 45 e4 mov -0x1c(%ebp),%eax 10d04d: 50 push %eax 10d04e: 68 e0 c9 12 00 push $0x12c9e0 10d053: e8 50 2a 00 00 call 10faa8 <_Objects_Free> _POSIX_Mutex_Free( the_mutex ); _Thread_Enable_dispatch(); 10d058: e8 ef 33 00 00 call 11044c <_Thread_Enable_dispatch> 10d05d: 31 c0 xor %eax,%eax return 0; 10d05f: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10d062: c9 leave 10d063: c3 ret 0010d10c : int pthread_mutex_getprioceiling( pthread_mutex_t *mutex, int *prioceiling ) { 10d10c: 55 push %ebp 10d10d: 89 e5 mov %esp,%ebp 10d10f: 53 push %ebx 10d110: 83 ec 14 sub $0x14,%esp 10d113: 8b 5d 0c mov 0xc(%ebp),%ebx register POSIX_Mutex_Control *the_mutex; Objects_Locations location; if ( !prioceiling ) 10d116: 85 db test %ebx,%ebx 10d118: 74 19 je 10d133 return EINVAL; the_mutex = _POSIX_Mutex_Get( mutex, &location ); 10d11a: 83 ec 08 sub $0x8,%esp 10d11d: 8d 45 f4 lea -0xc(%ebp),%eax 10d120: 50 push %eax 10d121: ff 75 08 pushl 0x8(%ebp) 10d124: e8 8f ff ff ff call 10d0b8 <_POSIX_Mutex_Get> switch ( location ) { 10d129: 83 c4 10 add $0x10,%esp 10d12c: 8b 55 f4 mov -0xc(%ebp),%edx 10d12f: 85 d2 test %edx,%edx 10d131: 74 0d je 10d140 case OBJECTS_LOCAL: *prioceiling = _POSIX_Priority_From_core( the_mutex->Mutex.Attributes.priority_ceiling ); _Thread_Enable_dispatch(); return 0; 10d133: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10d138: 8b 5d fc mov -0x4(%ebp),%ebx 10d13b: c9 leave 10d13c: c3 ret 10d13d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED the_mutex = _POSIX_Mutex_Get( mutex, &location ); switch ( location ) { case OBJECTS_LOCAL: *prioceiling = _POSIX_Priority_From_core( 10d140: 0f b6 15 dc 83 12 00 movzbl 0x1283dc,%edx 10d147: 2b 50 60 sub 0x60(%eax),%edx 10d14a: 89 13 mov %edx,(%ebx) the_mutex->Mutex.Attributes.priority_ceiling ); _Thread_Enable_dispatch(); 10d14c: e8 fb 32 00 00 call 11044c <_Thread_Enable_dispatch> 10d151: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10d153: 8b 5d fc mov -0x4(%ebp),%ebx 10d156: c9 leave 10d157: c3 ret 0010d158 : int pthread_mutex_init( pthread_mutex_t *mutex, const pthread_mutexattr_t *attr ) { 10d158: 55 push %ebp 10d159: 89 e5 mov %esp,%ebp 10d15b: 57 push %edi 10d15c: 56 push %esi 10d15d: 53 push %ebx 10d15e: 83 ec 1c sub $0x1c,%esp 10d161: 8b 75 08 mov 0x8(%ebp),%esi 10d164: 8b 5d 0c mov 0xc(%ebp),%ebx POSIX_Mutex_Control *the_mutex; CORE_mutex_Attributes *the_mutex_attr; const pthread_mutexattr_t *the_attr; CORE_mutex_Disciplines the_discipline; if ( attr ) the_attr = attr; 10d167: 85 db test %ebx,%ebx 10d169: 0f 84 09 01 00 00 je 10d278 else the_attr = &_POSIX_Mutex_Default_attributes; /* Check for NULL mutex */ if ( !mutex ) 10d16f: 85 f6 test %esi,%esi 10d171: 0f 84 e5 00 00 00 je 10d25c } } } #endif if ( !the_attr->is_initialized ) 10d177: 8b 13 mov (%ebx),%edx 10d179: 85 d2 test %edx,%edx 10d17b: 0f 84 db 00 00 00 je 10d25c return EINVAL; /* * We only support process private mutexes. */ if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED ) 10d181: 8b 43 04 mov 0x4(%ebx),%eax 10d184: 83 f8 01 cmp $0x1,%eax 10d187: 0f 84 f7 00 00 00 je 10d284 return ENOSYS; if ( the_attr->process_shared != PTHREAD_PROCESS_PRIVATE ) 10d18d: 85 c0 test %eax,%eax 10d18f: 0f 85 c7 00 00 00 jne 10d25c return EINVAL; /* * Determine the discipline of the mutex */ switch ( the_attr->protocol ) { 10d195: 8b 43 0c mov 0xc(%ebx),%eax 10d198: 83 f8 01 cmp $0x1,%eax 10d19b: 0f 84 e7 00 00 00 je 10d288 10d1a1: 83 f8 02 cmp $0x2,%eax 10d1a4: 0f 84 c2 00 00 00 je 10d26c 10d1aa: 85 c0 test %eax,%eax 10d1ac: 0f 85 aa 00 00 00 jne 10d25c 10d1b2: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) } /* * Validate the priority ceiling field -- should always be valid. */ if ( !_POSIX_Priority_Is_valid( the_attr->prio_ceiling ) ) 10d1b9: 83 ec 0c sub $0xc,%esp 10d1bc: ff 73 08 pushl 0x8(%ebx) 10d1bf: e8 2c 03 00 00 call 10d4f0 <_POSIX_Priority_Is_valid> 10d1c4: 83 c4 10 add $0x10,%esp 10d1c7: 84 c0 test %al,%al 10d1c9: 0f 84 8d 00 00 00 je 10d25c #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) /* * Validate the mutex type and set appropriate SuperCore mutex * attributes. */ switch ( the_attr->type ) { 10d1cf: 83 7b 10 03 cmpl $0x3,0x10(%ebx) 10d1d3: 0f 87 83 00 00 00 ja 10d25c 10d1d9: a1 d8 c5 12 00 mov 0x12c5d8,%eax 10d1de: 40 inc %eax 10d1df: a3 d8 c5 12 00 mov %eax,0x12c5d8 * _POSIX_Mutex_Allocate */ RTEMS_INLINE_ROUTINE POSIX_Mutex_Control *_POSIX_Mutex_Allocate( void ) { return (POSIX_Mutex_Control *) _Objects_Allocate( &_POSIX_Mutex_Information ); 10d1e4: 83 ec 0c sub $0xc,%esp 10d1e7: 68 e0 c9 12 00 push $0x12c9e0 10d1ec: e8 37 25 00 00 call 10f728 <_Objects_Allocate> 10d1f1: 89 c7 mov %eax,%edi */ _Thread_Disable_dispatch(); the_mutex = _POSIX_Mutex_Allocate(); if ( !the_mutex ) { 10d1f3: 83 c4 10 add $0x10,%esp 10d1f6: 85 c0 test %eax,%eax 10d1f8: 0f 84 96 00 00 00 je 10d294 _Thread_Enable_dispatch(); return EAGAIN; } the_mutex->process_shared = the_attr->process_shared; 10d1fe: 8b 43 04 mov 0x4(%ebx),%eax 10d201: 89 47 10 mov %eax,0x10(%edi) the_mutex_attr = &the_mutex->Mutex.Attributes; if ( the_attr->recursive ) the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 10d204: 31 c0 xor %eax,%eax 10d206: 83 7b 14 00 cmpl $0x0,0x14(%ebx) 10d20a: 0f 94 c0 sete %al 10d20d: 89 47 54 mov %eax,0x54(%edi) else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; the_mutex_attr->only_owner_release = true; 10d210: c6 47 58 01 movb $0x1,0x58(%edi) the_mutex_attr->priority_ceiling = 10d214: 0f b6 05 dc 83 12 00 movzbl 0x1283dc,%eax 10d21b: 2b 43 08 sub 0x8(%ebx),%eax 10d21e: 89 47 60 mov %eax,0x60(%edi) _POSIX_Priority_To_core( the_attr->prio_ceiling ); the_mutex_attr->discipline = the_discipline; 10d221: 8b 45 e4 mov -0x1c(%ebp),%eax 10d224: 89 47 5c mov %eax,0x5c(%edi) /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( 10d227: 50 push %eax 10d228: 6a 01 push $0x1 10d22a: 8d 47 54 lea 0x54(%edi),%eax 10d22d: 50 push %eax 10d22e: 8d 47 14 lea 0x14(%edi),%eax 10d231: 50 push %eax 10d232: e8 9d 1c 00 00 call 10eed4 <_CORE_mutex_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10d237: 8b 47 08 mov 0x8(%edi),%eax 10d23a: 0f b7 c8 movzwl %ax,%ecx 10d23d: 8b 15 fc c9 12 00 mov 0x12c9fc,%edx 10d243: 89 3c 8a mov %edi,(%edx,%ecx,4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 10d246: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi) CORE_MUTEX_UNLOCKED ); _Objects_Open_u32( &_POSIX_Mutex_Information, &the_mutex->Object, 0 ); *mutex = the_mutex->Object.id; 10d24d: 89 06 mov %eax,(%esi) _Thread_Enable_dispatch(); 10d24f: e8 f8 31 00 00 call 11044c <_Thread_Enable_dispatch> 10d254: 31 c0 xor %eax,%eax return 0; 10d256: 83 c4 10 add $0x10,%esp 10d259: eb 06 jmp 10d261 10d25b: 90 nop <== NOT EXECUTED 10d25c: b8 16 00 00 00 mov $0x16,%eax } 10d261: 8d 65 f4 lea -0xc(%ebp),%esp 10d264: 5b pop %ebx 10d265: 5e pop %esi 10d266: 5f pop %edi 10d267: c9 leave 10d268: c3 ret 10d269: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return EINVAL; /* * Determine the discipline of the mutex */ switch ( the_attr->protocol ) { 10d26c: c7 45 e4 03 00 00 00 movl $0x3,-0x1c(%ebp) case PTHREAD_PRIO_INHERIT: the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; break; case PTHREAD_PRIO_PROTECT: the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; break; 10d273: e9 41 ff ff ff jmp 10d1b9 POSIX_Mutex_Control *the_mutex; CORE_mutex_Attributes *the_mutex_attr; const pthread_mutexattr_t *the_attr; CORE_mutex_Disciplines the_discipline; if ( attr ) the_attr = attr; 10d278: bb 60 ca 12 00 mov $0x12ca60,%ebx 10d27d: e9 ed fe ff ff jmp 10d16f 10d282: 66 90 xchg %ax,%ax <== NOT EXECUTED return EINVAL; /* * We only support process private mutexes. */ if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED ) 10d284: b0 58 mov $0x58,%al 10d286: eb d9 jmp 10d261 return EINVAL; /* * Determine the discipline of the mutex */ switch ( the_attr->protocol ) { 10d288: c7 45 e4 02 00 00 00 movl $0x2,-0x1c(%ebp) 10d28f: e9 25 ff ff ff jmp 10d1b9 _Thread_Disable_dispatch(); the_mutex = _POSIX_Mutex_Allocate(); if ( !the_mutex ) { _Thread_Enable_dispatch(); 10d294: e8 b3 31 00 00 call 11044c <_Thread_Enable_dispatch> 10d299: b8 0b 00 00 00 mov $0xb,%eax return EAGAIN; 10d29e: eb c1 jmp 10d261 0010d318 : int pthread_mutex_setprioceiling( pthread_mutex_t *mutex, int prioceiling, int *old_ceiling ) { 10d318: 55 push %ebp 10d319: 89 e5 mov %esp,%ebp 10d31b: 57 push %edi 10d31c: 56 push %esi 10d31d: 53 push %ebx 10d31e: 83 ec 2c sub $0x2c,%esp 10d321: 8b 7d 08 mov 0x8(%ebp),%edi 10d324: 8b 75 0c mov 0xc(%ebp),%esi 10d327: 8b 5d 10 mov 0x10(%ebp),%ebx register POSIX_Mutex_Control *the_mutex; Objects_Locations location; Priority_Control the_priority; if ( !old_ceiling ) 10d32a: 85 db test %ebx,%ebx 10d32c: 74 10 je 10d33e return EINVAL; if ( !_POSIX_Priority_Is_valid( prioceiling ) ) 10d32e: 83 ec 0c sub $0xc,%esp 10d331: 56 push %esi 10d332: e8 b9 01 00 00 call 10d4f0 <_POSIX_Priority_Is_valid> 10d337: 83 c4 10 add $0x10,%esp 10d33a: 84 c0 test %al,%al 10d33c: 75 0e jne 10d34c the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); return 0; 10d33e: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10d343: 8d 65 f4 lea -0xc(%ebp),%esp 10d346: 5b pop %ebx 10d347: 5e pop %esi 10d348: 5f pop %edi 10d349: c9 leave 10d34a: c3 ret 10d34b: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 10d34c: a0 dc 83 12 00 mov 0x1283dc,%al 10d351: 88 45 d7 mov %al,-0x29(%ebp) /* * Must acquire the mutex before we can change it's ceiling. * POSIX says block until we acquire it. */ (void) pthread_mutex_lock( mutex ); 10d354: 83 ec 0c sub $0xc,%esp 10d357: 57 push %edi 10d358: e8 43 ff ff ff call 10d2a0 * operations. * * NOTE: This makes it easier to get 100% binary coverage since the * bad Id case is handled by the switch. */ the_mutex = _POSIX_Mutex_Get( mutex, &location ); 10d35d: 58 pop %eax 10d35e: 5a pop %edx 10d35f: 8d 45 e4 lea -0x1c(%ebp),%eax 10d362: 50 push %eax 10d363: 57 push %edi 10d364: e8 4f fd ff ff call 10d0b8 <_POSIX_Mutex_Get> switch ( location ) { 10d369: 83 c4 10 add $0x10,%esp 10d36c: 8b 4d e4 mov -0x1c(%ebp),%ecx 10d36f: 85 c9 test %ecx,%ecx 10d371: 75 cb jne 10d33e case OBJECTS_LOCAL: *old_ceiling = _POSIX_Priority_From_core( 10d373: 0f b6 15 dc 83 12 00 movzbl 0x1283dc,%edx 10d37a: 2b 50 60 sub 0x60(%eax),%edx 10d37d: 89 13 mov %edx,(%ebx) the_mutex->Mutex.Attributes.priority_ceiling ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; 10d37f: 0f b6 55 d7 movzbl -0x29(%ebp),%edx 10d383: 29 f2 sub %esi,%edx 10d385: 89 50 60 mov %edx,0x60(%eax) /* * We are required to unlock the mutex before we return. */ _CORE_mutex_Surrender( 10d388: 52 push %edx 10d389: 6a 00 push $0x0 10d38b: ff 70 08 pushl 0x8(%eax) 10d38e: 83 c0 14 add $0x14,%eax 10d391: 50 push %eax 10d392: e8 d5 1c 00 00 call 10f06c <_CORE_mutex_Surrender> &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 10d397: e8 b0 30 00 00 call 11044c <_Thread_Enable_dispatch> 10d39c: 31 c0 xor %eax,%eax return 0; 10d39e: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10d3a1: 8d 65 f4 lea -0xc(%ebp),%esp 10d3a4: 5b pop %ebx 10d3a5: 5e pop %esi 10d3a6: 5f pop %edi 10d3a7: c9 leave 10d3a8: c3 ret 0010d3ac : int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) { 10d3ac: 55 push %ebp 10d3ad: 89 e5 mov %esp,%ebp 10d3af: 53 push %ebx 10d3b0: 83 ec 1c sub $0x1c,%esp 10d3b3: 8b 5d 08 mov 0x8(%ebp),%ebx * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 10d3b6: 8d 45 f4 lea -0xc(%ebp),%eax 10d3b9: 50 push %eax 10d3ba: ff 75 0c pushl 0xc(%ebp) 10d3bd: e8 a6 00 00 00 call 10d468 <_POSIX_Absolute_timeout_to_ticks> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) 10d3c2: 83 c4 10 add $0x10,%esp 10d3c5: 83 f8 03 cmp $0x3,%eax 10d3c8: 74 16 je 10d3e0 do_wait = false; lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks ); 10d3ca: 50 push %eax 10d3cb: ff 75 f4 pushl -0xc(%ebp) 10d3ce: 6a 00 push $0x0 10d3d0: 53 push %ebx 10d3d1: e8 de fe ff ff call 10d2b4 <_POSIX_Mutex_Lock_support> 10d3d6: 83 c4 10 add $0x10,%esp break; } } return lock_status; } 10d3d9: 8b 5d fc mov -0x4(%ebp),%ebx 10d3dc: c9 leave 10d3dd: c3 ret 10d3de: 66 90 xchg %ax,%ax <== NOT EXECUTED */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks ); 10d3e0: 52 push %edx 10d3e1: ff 75 f4 pushl -0xc(%ebp) 10d3e4: 6a 01 push $0x1 10d3e6: 53 push %ebx 10d3e7: e8 c8 fe ff ff call 10d2b4 <_POSIX_Mutex_Lock_support> 10d3ec: 83 c4 10 add $0x10,%esp break; } } return lock_status; } 10d3ef: 8b 5d fc mov -0x4(%ebp),%ebx 10d3f2: c9 leave 10d3f3: c3 ret 0010d418 : */ int pthread_mutex_unlock( pthread_mutex_t *mutex ) { 10d418: 55 push %ebp 10d419: 89 e5 mov %esp,%ebp 10d41b: 53 push %ebx 10d41c: 83 ec 1c sub $0x1c,%esp register POSIX_Mutex_Control *the_mutex; Objects_Locations location; CORE_mutex_Status status; the_mutex = _POSIX_Mutex_Get( mutex, &location ); 10d41f: 8d 45 f4 lea -0xc(%ebp),%eax 10d422: 50 push %eax 10d423: ff 75 08 pushl 0x8(%ebp) 10d426: e8 8d fc ff ff call 10d0b8 <_POSIX_Mutex_Get> switch ( location ) { 10d42b: 83 c4 10 add $0x10,%esp 10d42e: 8b 4d f4 mov -0xc(%ebp),%ecx 10d431: 85 c9 test %ecx,%ecx 10d433: 75 27 jne 10d45c case OBJECTS_LOCAL: status = _CORE_mutex_Surrender( 10d435: 52 push %edx 10d436: 6a 00 push $0x0 10d438: ff 70 08 pushl 0x8(%eax) 10d43b: 83 c0 14 add $0x14,%eax 10d43e: 50 push %eax 10d43f: e8 28 1c 00 00 call 10f06c <_CORE_mutex_Surrender> 10d444: 89 c3 mov %eax,%ebx &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 10d446: e8 01 30 00 00 call 11044c <_Thread_Enable_dispatch> return _POSIX_Mutex_Translate_core_mutex_return_code( status ); 10d44b: 89 1c 24 mov %ebx,(%esp) 10d44e: e8 a1 ff ff ff call 10d3f4 <_POSIX_Mutex_Translate_core_mutex_return_code> 10d453: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10d456: 8b 5d fc mov -0x4(%ebp),%ebx 10d459: c9 leave 10d45a: c3 ret 10d45b: 90 nop <== NOT EXECUTED register POSIX_Mutex_Control *the_mutex; Objects_Locations location; CORE_mutex_Status status; the_mutex = _POSIX_Mutex_Get( mutex, &location ); switch ( location ) { 10d45c: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10d461: 8b 5d fc mov -0x4(%ebp),%ebx 10d464: c9 leave 10d465: c3 ret 0010ce98 : */ int pthread_mutexattr_destroy( pthread_mutexattr_t *attr ) { 10ce98: 55 push %ebp 10ce99: 89 e5 mov %esp,%ebp 10ce9b: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr || !attr->is_initialized ) 10ce9e: 85 c0 test %eax,%eax 10cea0: 74 12 je 10ceb4 10cea2: 8b 10 mov (%eax),%edx 10cea4: 85 d2 test %edx,%edx 10cea6: 74 0c je 10ceb4 return EINVAL; attr->is_initialized = false; 10cea8: c7 00 00 00 00 00 movl $0x0,(%eax) 10ceae: 31 c0 xor %eax,%eax return 0; } 10ceb0: c9 leave 10ceb1: c3 ret 10ceb2: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !attr || !attr->is_initialized ) return EINVAL; attr->is_initialized = false; return 0; 10ceb4: b8 16 00 00 00 mov $0x16,%eax } 10ceb9: c9 leave 10ceba: c3 ret 0010cf5c : int pthread_mutexattr_setprioceiling( pthread_mutexattr_t *attr, int prioceiling ) { 10cf5c: 55 push %ebp 10cf5d: 89 e5 mov %esp,%ebp 10cf5f: 56 push %esi 10cf60: 53 push %ebx 10cf61: 8b 5d 08 mov 0x8(%ebp),%ebx 10cf64: 8b 75 0c mov 0xc(%ebp),%esi if ( !attr || !attr->is_initialized ) 10cf67: 85 db test %ebx,%ebx 10cf69: 74 06 je 10cf71 10cf6b: 8b 03 mov (%ebx),%eax 10cf6d: 85 c0 test %eax,%eax 10cf6f: 75 0f jne 10cf80 if ( !_POSIX_Priority_Is_valid( prioceiling ) ) return EINVAL; attr->prio_ceiling = prioceiling; return 0; 10cf71: b8 16 00 00 00 mov $0x16,%eax } 10cf76: 8d 65 f8 lea -0x8(%ebp),%esp 10cf79: 5b pop %ebx 10cf7a: 5e pop %esi 10cf7b: c9 leave 10cf7c: c3 ret 10cf7d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { if ( !attr || !attr->is_initialized ) return EINVAL; if ( !_POSIX_Priority_Is_valid( prioceiling ) ) 10cf80: 83 ec 0c sub $0xc,%esp 10cf83: 56 push %esi 10cf84: e8 67 05 00 00 call 10d4f0 <_POSIX_Priority_Is_valid> 10cf89: 83 c4 10 add $0x10,%esp 10cf8c: 84 c0 test %al,%al 10cf8e: 74 e1 je 10cf71 return EINVAL; attr->prio_ceiling = prioceiling; 10cf90: 89 73 08 mov %esi,0x8(%ebx) 10cf93: 31 c0 xor %eax,%eax return 0; } 10cf95: 8d 65 f8 lea -0x8(%ebp),%esp 10cf98: 5b pop %ebx 10cf99: 5e pop %esi 10cf9a: c9 leave 10cf9b: c3 ret 0010cf9c : int pthread_mutexattr_setprotocol( pthread_mutexattr_t *attr, int protocol ) { 10cf9c: 55 push %ebp 10cf9d: 89 e5 mov %esp,%ebp 10cf9f: 8b 45 08 mov 0x8(%ebp),%eax 10cfa2: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 10cfa5: 85 c0 test %eax,%eax 10cfa7: 74 0b je 10cfb4 10cfa9: 8b 08 mov (%eax),%ecx 10cfab: 85 c9 test %ecx,%ecx 10cfad: 74 05 je 10cfb4 return EINVAL; switch ( protocol ) { 10cfaf: 83 fa 02 cmp $0x2,%edx 10cfb2: 76 08 jbe 10cfbc case PTHREAD_PRIO_NONE: case PTHREAD_PRIO_INHERIT: case PTHREAD_PRIO_PROTECT: attr->protocol = protocol; return 0; 10cfb4: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 10cfb9: c9 leave 10cfba: c3 ret 10cfbb: 90 nop <== NOT EXECUTED switch ( protocol ) { case PTHREAD_PRIO_NONE: case PTHREAD_PRIO_INHERIT: case PTHREAD_PRIO_PROTECT: attr->protocol = protocol; 10cfbc: 89 50 0c mov %edx,0xc(%eax) 10cfbf: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 10cfc1: c9 leave 10cfc2: c3 ret 0010cfc4 : int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { 10cfc4: 55 push %ebp 10cfc5: 89 e5 mov %esp,%ebp 10cfc7: 8b 45 08 mov 0x8(%ebp),%eax 10cfca: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 10cfcd: 85 c0 test %eax,%eax 10cfcf: 74 0b je 10cfdc 10cfd1: 8b 08 mov (%eax),%ecx 10cfd3: 85 c9 test %ecx,%ecx 10cfd5: 74 05 je 10cfdc return EINVAL; switch ( pshared ) { 10cfd7: 83 fa 01 cmp $0x1,%edx 10cfda: 76 08 jbe 10cfe4 case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; 10cfdc: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 10cfe1: c9 leave 10cfe2: c3 ret 10cfe3: 90 nop <== NOT EXECUTED return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; 10cfe4: 89 50 04 mov %edx,0x4(%eax) 10cfe7: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 10cfe9: c9 leave 10cfea: c3 ret 0010b130 : #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) int pthread_mutexattr_settype( pthread_mutexattr_t *attr, int type ) { 10b130: 55 push %ebp 10b131: 89 e5 mov %esp,%ebp 10b133: 8b 45 08 mov 0x8(%ebp),%eax 10b136: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr || !attr->is_initialized ) 10b139: 85 c0 test %eax,%eax 10b13b: 74 0b je 10b148 10b13d: 8b 08 mov (%eax),%ecx 10b13f: 85 c9 test %ecx,%ecx 10b141: 74 05 je 10b148 return EINVAL; switch ( type ) { 10b143: 83 fa 03 cmp $0x3,%edx 10b146: 76 08 jbe 10b150 case PTHREAD_MUTEX_NORMAL: case PTHREAD_MUTEX_RECURSIVE: case PTHREAD_MUTEX_ERRORCHECK: case PTHREAD_MUTEX_DEFAULT: attr->type = type; return 0; 10b148: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 10b14d: c9 leave 10b14e: c3 ret 10b14f: 90 nop <== NOT EXECUTED switch ( type ) { case PTHREAD_MUTEX_NORMAL: case PTHREAD_MUTEX_RECURSIVE: case PTHREAD_MUTEX_ERRORCHECK: case PTHREAD_MUTEX_DEFAULT: attr->type = type; 10b150: 89 50 10 mov %edx,0x10(%eax) 10b153: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 10b155: c9 leave 10b156: c3 ret 0010bc80 : int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { 10bc80: 55 push %ebp 10bc81: 89 e5 mov %esp,%ebp 10bc83: 57 push %edi 10bc84: 56 push %esi 10bc85: 53 push %ebx 10bc86: 83 ec 1c sub $0x1c,%esp 10bc89: 8b 5d 08 mov 0x8(%ebp),%ebx 10bc8c: 8b 75 0c mov 0xc(%ebp),%esi if ( !once_control || !init_routine ) 10bc8f: 85 db test %ebx,%ebx 10bc91: 74 51 je 10bce4 10bc93: 85 f6 test %esi,%esi 10bc95: 74 4d je 10bce4 return EINVAL; if ( !once_control->init_executed ) { 10bc97: 8b 7b 04 mov 0x4(%ebx),%edi 10bc9a: 85 ff test %edi,%edi 10bc9c: 74 0a je 10bca8 10bc9e: 31 c0 xor %eax,%eax (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); } return 0; } 10bca0: 8d 65 f4 lea -0xc(%ebp),%esp 10bca3: 5b pop %ebx 10bca4: 5e pop %esi 10bca5: 5f pop %edi 10bca6: c9 leave 10bca7: c3 ret if ( !once_control || !init_routine ) return EINVAL; if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 10bca8: 51 push %ecx 10bca9: 8d 7d e4 lea -0x1c(%ebp),%edi 10bcac: 57 push %edi 10bcad: 68 00 01 00 00 push $0x100 10bcb2: 68 00 01 00 00 push $0x100 10bcb7: e8 e0 0b 00 00 call 10c89c if ( !once_control->init_executed ) { 10bcbc: 83 c4 10 add $0x10,%esp 10bcbf: 8b 53 04 mov 0x4(%ebx),%edx 10bcc2: 85 d2 test %edx,%edx 10bcc4: 74 2e je 10bcf4 once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 10bcc6: 50 push %eax 10bcc7: 57 push %edi 10bcc8: 68 00 01 00 00 push $0x100 10bccd: ff 75 e4 pushl -0x1c(%ebp) 10bcd0: e8 c7 0b 00 00 call 10c89c 10bcd5: 31 c0 xor %eax,%eax 10bcd7: 83 c4 10 add $0x10,%esp } return 0; } 10bcda: 8d 65 f4 lea -0xc(%ebp),%esp 10bcdd: 5b pop %ebx 10bcde: 5e pop %esi 10bcdf: 5f pop %edi 10bce0: c9 leave 10bce1: c3 ret 10bce2: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !once_control->init_executed ) { once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); 10bce4: b8 16 00 00 00 mov $0x16,%eax } return 0; } 10bce9: 8d 65 f4 lea -0xc(%ebp),%esp 10bcec: 5b pop %ebx 10bced: 5e pop %esi 10bcee: 5f pop %edi 10bcef: c9 leave 10bcf0: c3 ret 10bcf1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); if ( !once_control->init_executed ) { once_control->is_initialized = true; 10bcf4: c7 03 01 00 00 00 movl $0x1,(%ebx) once_control->init_executed = true; 10bcfa: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx) (*init_routine)(); 10bd01: ff d6 call *%esi 10bd03: eb c1 jmp 10bcc6 0010c11c : */ int pthread_rwlock_destroy( pthread_rwlock_t *rwlock ) { 10c11c: 55 push %ebp 10c11d: 89 e5 mov %esp,%ebp 10c11f: 53 push %ebx 10c120: 83 ec 14 sub $0x14,%esp 10c123: 8b 45 08 mov 0x8(%ebp),%eax POSIX_RWLock_Control *the_rwlock = NULL; Objects_Locations location; if ( !rwlock ) 10c126: 85 c0 test %eax,%eax 10c128: 74 42 je 10c16c RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( pthread_rwlock_t *RWLock, Objects_Locations *location ) { return (POSIX_RWLock_Control *) _Objects_Get( 10c12a: 53 push %ebx 10c12b: 8d 55 f4 lea -0xc(%ebp),%edx 10c12e: 52 push %edx 10c12f: ff 30 pushl (%eax) 10c131: 68 60 a5 12 00 push $0x12a560 10c136: e8 65 2b 00 00 call 10eca0 <_Objects_Get> 10c13b: 89 c3 mov %eax,%ebx return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c13d: 83 c4 10 add $0x10,%esp 10c140: 8b 4d f4 mov -0xc(%ebp),%ecx 10c143: 85 c9 test %ecx,%ecx 10c145: 75 25 jne 10c16c case OBJECTS_LOCAL: /* * If there is at least one thread waiting, then do not delete it. */ if ( _Thread_queue_First( &the_rwlock->RWLock.Wait_queue ) != NULL ) { 10c147: 83 ec 0c sub $0xc,%esp 10c14a: 8d 40 10 lea 0x10(%eax),%eax 10c14d: 50 push %eax 10c14e: e8 f1 3b 00 00 call 10fd44 <_Thread_queue_First> 10c153: 83 c4 10 add $0x10,%esp 10c156: 85 c0 test %eax,%eax 10c158: 74 1e je 10c178 _Thread_Enable_dispatch(); 10c15a: e8 b5 33 00 00 call 10f514 <_Thread_Enable_dispatch> 10c15f: b8 10 00 00 00 mov $0x10,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c164: 8b 5d fc mov -0x4(%ebp),%ebx 10c167: c9 leave 10c168: c3 ret 10c169: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _Objects_Close( &_POSIX_RWLock_Information, &the_rwlock->Object ); _POSIX_RWLock_Free( the_rwlock ); _Thread_Enable_dispatch(); return 0; 10c16c: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c171: 8b 5d fc mov -0x4(%ebp),%ebx 10c174: c9 leave 10c175: c3 ret 10c176: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * POSIX doesn't require behavior when it is locked. */ _Objects_Close( &_POSIX_RWLock_Information, &the_rwlock->Object ); 10c178: 83 ec 08 sub $0x8,%esp 10c17b: 53 push %ebx 10c17c: 68 60 a5 12 00 push $0x12a560 10c181: e8 e6 26 00 00 call 10e86c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _POSIX_RWLock_Free ( POSIX_RWLock_Control *the_RWLock ) { _Objects_Free( &_POSIX_RWLock_Information, &the_RWLock->Object ); 10c186: 58 pop %eax 10c187: 5a pop %edx 10c188: 53 push %ebx 10c189: 68 60 a5 12 00 push $0x12a560 10c18e: e8 dd 29 00 00 call 10eb70 <_Objects_Free> _POSIX_RWLock_Free( the_rwlock ); _Thread_Enable_dispatch(); 10c193: e8 7c 33 00 00 call 10f514 <_Thread_Enable_dispatch> 10c198: 31 c0 xor %eax,%eax return 0; 10c19a: 83 c4 10 add $0x10,%esp 10c19d: eb d2 jmp 10c171 0010c1a0 : int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) { 10c1a0: 55 push %ebp 10c1a1: 89 e5 mov %esp,%ebp 10c1a3: 56 push %esi 10c1a4: 53 push %ebx 10c1a5: 83 ec 20 sub $0x20,%esp 10c1a8: 8b 5d 08 mov 0x8(%ebp),%ebx 10c1ab: 8b 75 0c mov 0xc(%ebp),%esi const pthread_rwlockattr_t *the_attr; /* * Error check parameters */ if ( !rwlock ) 10c1ae: 85 db test %ebx,%ebx 10c1b0: 74 15 je 10c1c7 return EINVAL; /* * If the user passed in NULL, use the default attributes */ if ( attr ) { 10c1b2: 85 f6 test %esi,%esi 10c1b4: 0f 84 86 00 00 00 je 10c240 } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) 10c1ba: 8b 16 mov (%esi),%edx 10c1bc: 85 d2 test %edx,%edx 10c1be: 74 07 je 10c1c7 return EINVAL; switch ( the_attr->process_shared ) { 10c1c0: 8b 46 04 mov 0x4(%esi),%eax 10c1c3: 85 c0 test %eax,%eax 10c1c5: 74 0d je 10c1d4 ); *rwlock = the_rwlock->Object.id; _Thread_Enable_dispatch(); return 0; 10c1c7: b8 16 00 00 00 mov $0x16,%eax } 10c1cc: 8d 65 f8 lea -0x8(%ebp),%esp 10c1cf: 5b pop %ebx 10c1d0: 5e pop %esi 10c1d1: c9 leave 10c1d2: c3 ret 10c1d3: 90 nop <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10c1d4: a1 d8 a2 12 00 mov 0x12a2d8,%eax 10c1d9: 40 inc %eax 10c1da: a3 d8 a2 12 00 mov %eax,0x12a2d8 * This function allocates a RWLock control block from * the inactive chain of free RWLock control blocks. */ RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void ) { return (POSIX_RWLock_Control *) 10c1df: 83 ec 0c sub $0xc,%esp 10c1e2: 68 60 a5 12 00 push $0x12a560 10c1e7: e8 04 26 00 00 call 10e7f0 <_Objects_Allocate> */ _Thread_Disable_dispatch(); /* prevents deletion */ the_rwlock = _POSIX_RWLock_Allocate(); if ( !the_rwlock ) { 10c1ec: 83 c4 10 add $0x10,%esp 10c1ef: 85 c0 test %eax,%eax 10c1f1: 74 41 je 10c234 _Thread_Enable_dispatch(); return EAGAIN; } _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes ); 10c1f3: 83 ec 08 sub $0x8,%esp 10c1f6: 8d 55 f4 lea -0xc(%ebp),%edx 10c1f9: 52 push %edx 10c1fa: 8d 50 10 lea 0x10(%eax),%edx 10c1fd: 52 push %edx 10c1fe: 89 45 e4 mov %eax,-0x1c(%ebp) 10c201: e8 06 1e 00 00 call 10e00c <_CORE_RWLock_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10c206: 8b 45 e4 mov -0x1c(%ebp),%eax 10c209: 8b 50 08 mov 0x8(%eax),%edx 10c20c: 0f b7 f2 movzwl %dx,%esi 10c20f: 8b 0d 7c a5 12 00 mov 0x12a57c,%ecx 10c215: 89 04 b1 mov %eax,(%ecx,%esi,4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 10c218: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) &_POSIX_RWLock_Information, &the_rwlock->Object, 0 ); *rwlock = the_rwlock->Object.id; 10c21f: 89 13 mov %edx,(%ebx) _Thread_Enable_dispatch(); 10c221: e8 ee 32 00 00 call 10f514 <_Thread_Enable_dispatch> 10c226: 31 c0 xor %eax,%eax return 0; 10c228: 83 c4 10 add $0x10,%esp } 10c22b: 8d 65 f8 lea -0x8(%ebp),%esp 10c22e: 5b pop %ebx 10c22f: 5e pop %esi 10c230: c9 leave 10c231: c3 ret 10c232: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_rwlock = _POSIX_RWLock_Allocate(); if ( !the_rwlock ) { _Thread_Enable_dispatch(); 10c234: e8 db 32 00 00 call 10f514 <_Thread_Enable_dispatch> 10c239: b8 0b 00 00 00 mov $0xb,%eax return EAGAIN; 10c23e: eb 8c jmp 10c1cc * If the user passed in NULL, use the default attributes */ if ( attr ) { the_attr = attr; } else { (void) pthread_rwlockattr_init( &default_attr ); 10c240: 83 ec 0c sub $0xc,%esp 10c243: 8d 75 ec lea -0x14(%ebp),%esi 10c246: 56 push %esi 10c247: e8 74 09 00 00 call 10cbc0 10c24c: 83 c4 10 add $0x10,%esp 10c24f: e9 66 ff ff ff jmp 10c1ba 0010c254 : */ int pthread_rwlock_rdlock( pthread_rwlock_t *rwlock ) { 10c254: 55 push %ebp 10c255: 89 e5 mov %esp,%ebp 10c257: 53 push %ebx 10c258: 83 ec 14 sub $0x14,%esp 10c25b: 8b 5d 08 mov 0x8(%ebp),%ebx POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) 10c25e: 85 db test %ebx,%ebx 10c260: 74 1b je 10c27d RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( pthread_rwlock_t *RWLock, Objects_Locations *location ) { return (POSIX_RWLock_Control *) _Objects_Get( 10c262: 51 push %ecx 10c263: 8d 45 f4 lea -0xc(%ebp),%eax 10c266: 50 push %eax 10c267: ff 33 pushl (%ebx) 10c269: 68 60 a5 12 00 push $0x12a560 10c26e: e8 2d 2a 00 00 call 10eca0 <_Objects_Get> return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c273: 83 c4 10 add $0x10,%esp 10c276: 8b 55 f4 mov -0xc(%ebp),%edx 10c279: 85 d2 test %edx,%edx 10c27b: 74 0b je 10c288 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c27d: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c282: 8b 5d fc mov -0x4(%ebp),%ebx 10c285: c9 leave 10c286: c3 ret 10c287: 90 nop <== NOT EXECUTED the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( 10c288: 83 ec 0c sub $0xc,%esp 10c28b: 6a 00 push $0x0 10c28d: 6a 00 push $0x0 10c28f: 6a 01 push $0x1 10c291: ff 33 pushl (%ebx) 10c293: 83 c0 10 add $0x10,%eax 10c296: 50 push %eax 10c297: e8 a4 1d 00 00 call 10e040 <_CORE_RWLock_Obtain_for_reading> true, /* we are willing to wait forever */ 0, NULL ); _Thread_Enable_dispatch(); 10c29c: 83 c4 20 add $0x20,%esp 10c29f: e8 70 32 00 00 call 10f514 <_Thread_Enable_dispatch> return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c2a4: 83 ec 0c sub $0xc,%esp 10c2a7: a1 98 a3 12 00 mov 0x12a398,%eax 10c2ac: ff 70 34 pushl 0x34(%eax) 10c2af: e8 70 01 00 00 call 10c424 <_POSIX_RWLock_Translate_core_RWLock_return_code> 10c2b4: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10c2b7: 8b 5d fc mov -0x4(%ebp),%ebx 10c2ba: c9 leave 10c2bb: c3 ret 0010c2bc : int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 10c2bc: 55 push %ebp 10c2bd: 89 e5 mov %esp,%ebp 10c2bf: 56 push %esi 10c2c0: 53 push %ebx 10c2c1: 83 ec 20 sub $0x20,%esp 10c2c4: 8b 5d 08 mov 0x8(%ebp),%ebx Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 10c2c7: 85 db test %ebx,%ebx 10c2c9: 74 7d je 10c348 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 10c2cb: 83 ec 08 sub $0x8,%esp 10c2ce: 8d 45 f0 lea -0x10(%ebp),%eax 10c2d1: 50 push %eax 10c2d2: ff 75 0c pushl 0xc(%ebp) 10c2d5: e8 02 5f 00 00 call 1121dc <_POSIX_Absolute_timeout_to_ticks> 10c2da: 89 c6 mov %eax,%esi 10c2dc: 83 c4 0c add $0xc,%esp 10c2df: 8d 45 f4 lea -0xc(%ebp),%eax 10c2e2: 50 push %eax 10c2e3: ff 33 pushl (%ebx) 10c2e5: 68 60 a5 12 00 push $0x12a560 10c2ea: e8 b1 29 00 00 call 10eca0 <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c2ef: 83 c4 10 add $0x10,%esp 10c2f2: 8b 55 f4 mov -0xc(%ebp),%edx 10c2f5: 85 d2 test %edx,%edx 10c2f7: 75 4f jne 10c348 int _EXFUN(pthread_rwlock_init, (pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr)); int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedrdlock, 10c2f9: 83 fe 03 cmp $0x3,%esi 10c2fc: 0f 94 c2 sete %dl case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( 10c2ff: 83 ec 0c sub $0xc,%esp 10c302: 6a 00 push $0x0 10c304: ff 75 f0 pushl -0x10(%ebp) 10c307: 0f b6 ca movzbl %dl,%ecx 10c30a: 51 push %ecx 10c30b: ff 33 pushl (%ebx) 10c30d: 83 c0 10 add $0x10,%eax 10c310: 50 push %eax 10c311: 88 55 e4 mov %dl,-0x1c(%ebp) 10c314: e8 27 1d 00 00 call 10e040 <_CORE_RWLock_Obtain_for_reading> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); 10c319: 83 c4 20 add $0x20,%esp 10c31c: e8 f3 31 00 00 call 10f514 <_Thread_Enable_dispatch> if ( !do_wait ) { 10c321: 8a 55 e4 mov -0x1c(%ebp),%dl 10c324: 84 d2 test %dl,%dl 10c326: 75 3c jne 10c364 if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { 10c328: a1 98 a3 12 00 mov 0x12a398,%eax 10c32d: 8b 40 34 mov 0x34(%eax),%eax 10c330: 83 f8 02 cmp $0x2,%eax 10c333: 74 1f je 10c354 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c335: 83 ec 0c sub $0xc,%esp 10c338: 50 push %eax 10c339: e8 e6 00 00 00 call 10c424 <_POSIX_RWLock_Translate_core_RWLock_return_code> 10c33e: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10c341: 8d 65 f8 lea -0x8(%ebp),%esp 10c344: 5b pop %ebx 10c345: 5e pop %esi 10c346: c9 leave 10c347: c3 ret break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c348: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c34d: 8d 65 f8 lea -0x8(%ebp),%esp 10c350: 5b pop %ebx 10c351: 5e pop %esi 10c352: c9 leave 10c353: c3 ret ); _Thread_Enable_dispatch(); if ( !do_wait ) { if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { switch (status) { 10c354: 85 f6 test %esi,%esi 10c356: 74 f0 je 10c348 10c358: 83 fe 02 cmp $0x2,%esi 10c35b: 77 d8 ja 10c335 10c35d: b0 74 mov $0x74,%al 10c35f: eb ec jmp 10c34d 10c361: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c364: a1 98 a3 12 00 mov 0x12a398,%eax 10c369: 8b 40 34 mov 0x34(%eax),%eax 10c36c: eb c7 jmp 10c335 0010c370 : int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 10c370: 55 push %ebp 10c371: 89 e5 mov %esp,%ebp 10c373: 56 push %esi 10c374: 53 push %ebx 10c375: 83 ec 20 sub $0x20,%esp 10c378: 8b 5d 08 mov 0x8(%ebp),%ebx Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 10c37b: 85 db test %ebx,%ebx 10c37d: 74 7d je 10c3fc * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 10c37f: 83 ec 08 sub $0x8,%esp 10c382: 8d 45 f0 lea -0x10(%ebp),%eax 10c385: 50 push %eax 10c386: ff 75 0c pushl 0xc(%ebp) 10c389: e8 4e 5e 00 00 call 1121dc <_POSIX_Absolute_timeout_to_ticks> 10c38e: 89 c6 mov %eax,%esi 10c390: 83 c4 0c add $0xc,%esp 10c393: 8d 45 f4 lea -0xc(%ebp),%eax 10c396: 50 push %eax 10c397: ff 33 pushl (%ebx) 10c399: 68 60 a5 12 00 push $0x12a560 10c39e: e8 fd 28 00 00 call 10eca0 <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c3a3: 83 c4 10 add $0x10,%esp 10c3a6: 8b 55 f4 mov -0xc(%ebp),%edx 10c3a9: 85 d2 test %edx,%edx 10c3ab: 75 4f jne 10c3fc (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime)); int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedwrlock, 10c3ad: 83 fe 03 cmp $0x3,%esi 10c3b0: 0f 94 c2 sete %dl case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( 10c3b3: 83 ec 0c sub $0xc,%esp 10c3b6: 6a 00 push $0x0 10c3b8: ff 75 f0 pushl -0x10(%ebp) 10c3bb: 0f b6 ca movzbl %dl,%ecx 10c3be: 51 push %ecx 10c3bf: ff 33 pushl (%ebx) 10c3c1: 83 c0 10 add $0x10,%eax 10c3c4: 50 push %eax 10c3c5: 88 55 e4 mov %dl,-0x1c(%ebp) 10c3c8: e8 3b 1d 00 00 call 10e108 <_CORE_RWLock_Obtain_for_writing> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); 10c3cd: 83 c4 20 add $0x20,%esp 10c3d0: e8 3f 31 00 00 call 10f514 <_Thread_Enable_dispatch> if ( !do_wait && 10c3d5: 8a 55 e4 mov -0x1c(%ebp),%dl 10c3d8: 84 d2 test %dl,%dl 10c3da: 75 3c jne 10c418 (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { 10c3dc: a1 98 a3 12 00 mov 0x12a398,%eax 10c3e1: 8b 40 34 mov 0x34(%eax),%eax ticks, NULL ); _Thread_Enable_dispatch(); if ( !do_wait && 10c3e4: 83 f8 02 cmp $0x2,%eax 10c3e7: 74 1f je 10c408 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c3e9: 83 ec 0c sub $0xc,%esp 10c3ec: 50 push %eax 10c3ed: e8 32 00 00 00 call 10c424 <_POSIX_RWLock_Translate_core_RWLock_return_code> 10c3f2: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10c3f5: 8d 65 f8 lea -0x8(%ebp),%esp 10c3f8: 5b pop %ebx 10c3f9: 5e pop %esi 10c3fa: c9 leave 10c3fb: c3 ret case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c3fc: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c401: 8d 65 f8 lea -0x8(%ebp),%esp 10c404: 5b pop %ebx 10c405: 5e pop %esi 10c406: c9 leave 10c407: c3 ret ); _Thread_Enable_dispatch(); if ( !do_wait && (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { switch (status) { 10c408: 85 f6 test %esi,%esi 10c40a: 74 f0 je 10c3fc 10c40c: 83 fe 02 cmp $0x2,%esi 10c40f: 77 d8 ja 10c3e9 10c411: b0 74 mov $0x74,%al 10c413: eb ec jmp 10c401 10c415: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c418: a1 98 a3 12 00 mov 0x12a398,%eax 10c41d: 8b 40 34 mov 0x34(%eax),%eax 10c420: eb c7 jmp 10c3e9 0010c434 : */ int pthread_rwlock_tryrdlock( pthread_rwlock_t *rwlock ) { 10c434: 55 push %ebp 10c435: 89 e5 mov %esp,%ebp 10c437: 53 push %ebx 10c438: 83 ec 14 sub $0x14,%esp 10c43b: 8b 5d 08 mov 0x8(%ebp),%ebx POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) 10c43e: 85 db test %ebx,%ebx 10c440: 74 1b je 10c45d 10c442: 51 push %ecx 10c443: 8d 45 f4 lea -0xc(%ebp),%eax 10c446: 50 push %eax 10c447: ff 33 pushl (%ebx) 10c449: 68 60 a5 12 00 push $0x12a560 10c44e: e8 4d 28 00 00 call 10eca0 <_Objects_Get> return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c453: 83 c4 10 add $0x10,%esp 10c456: 8b 55 f4 mov -0xc(%ebp),%edx 10c459: 85 d2 test %edx,%edx 10c45b: 74 0b je 10c468 NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c45d: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c462: 8b 5d fc mov -0x4(%ebp),%ebx 10c465: c9 leave 10c466: c3 ret 10c467: 90 nop <== NOT EXECUTED the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( 10c468: 83 ec 0c sub $0xc,%esp 10c46b: 6a 00 push $0x0 10c46d: 6a 00 push $0x0 10c46f: 6a 00 push $0x0 10c471: ff 33 pushl (%ebx) 10c473: 83 c0 10 add $0x10,%eax 10c476: 50 push %eax 10c477: e8 c4 1b 00 00 call 10e040 <_CORE_RWLock_Obtain_for_reading> 0, NULL ); _Thread_Enable_dispatch(); 10c47c: 83 c4 20 add $0x20,%esp 10c47f: e8 90 30 00 00 call 10f514 <_Thread_Enable_dispatch> return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c484: 83 ec 0c sub $0xc,%esp 10c487: a1 98 a3 12 00 mov 0x12a398,%eax 10c48c: ff 70 34 pushl 0x34(%eax) 10c48f: e8 90 ff ff ff call 10c424 <_POSIX_RWLock_Translate_core_RWLock_return_code> 10c494: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10c497: 8b 5d fc mov -0x4(%ebp),%ebx 10c49a: c9 leave 10c49b: c3 ret 0010c49c : */ int pthread_rwlock_trywrlock( pthread_rwlock_t *rwlock ) { 10c49c: 55 push %ebp 10c49d: 89 e5 mov %esp,%ebp 10c49f: 53 push %ebx 10c4a0: 83 ec 14 sub $0x14,%esp 10c4a3: 8b 5d 08 mov 0x8(%ebp),%ebx POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) 10c4a6: 85 db test %ebx,%ebx 10c4a8: 74 1b je 10c4c5 10c4aa: 51 push %ecx 10c4ab: 8d 45 f4 lea -0xc(%ebp),%eax 10c4ae: 50 push %eax 10c4af: ff 33 pushl (%ebx) 10c4b1: 68 60 a5 12 00 push $0x12a560 10c4b6: e8 e5 27 00 00 call 10eca0 <_Objects_Get> return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c4bb: 83 c4 10 add $0x10,%esp 10c4be: 8b 55 f4 mov -0xc(%ebp),%edx 10c4c1: 85 d2 test %edx,%edx 10c4c3: 74 0b je 10c4d0 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c4c5: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c4ca: 8b 5d fc mov -0x4(%ebp),%ebx 10c4cd: c9 leave 10c4ce: c3 ret 10c4cf: 90 nop <== NOT EXECUTED the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( 10c4d0: 83 ec 0c sub $0xc,%esp 10c4d3: 6a 00 push $0x0 10c4d5: 6a 00 push $0x0 10c4d7: 6a 00 push $0x0 10c4d9: ff 33 pushl (%ebx) 10c4db: 83 c0 10 add $0x10,%eax 10c4de: 50 push %eax 10c4df: e8 24 1c 00 00 call 10e108 <_CORE_RWLock_Obtain_for_writing> false, /* we are not willing to wait */ 0, NULL ); _Thread_Enable_dispatch(); 10c4e4: 83 c4 20 add $0x20,%esp 10c4e7: e8 28 30 00 00 call 10f514 <_Thread_Enable_dispatch> return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c4ec: 83 ec 0c sub $0xc,%esp 10c4ef: a1 98 a3 12 00 mov 0x12a398,%eax 10c4f4: ff 70 34 pushl 0x34(%eax) 10c4f7: e8 28 ff ff ff call 10c424 <_POSIX_RWLock_Translate_core_RWLock_return_code> 10c4fc: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10c4ff: 8b 5d fc mov -0x4(%ebp),%ebx 10c502: c9 leave 10c503: c3 ret 0010c504 : */ int pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) { 10c504: 55 push %ebp 10c505: 89 e5 mov %esp,%ebp 10c507: 53 push %ebx 10c508: 83 ec 14 sub $0x14,%esp 10c50b: 8b 45 08 mov 0x8(%ebp),%eax POSIX_RWLock_Control *the_rwlock; Objects_Locations location; CORE_RWLock_Status status; if ( !rwlock ) 10c50e: 85 c0 test %eax,%eax 10c510: 74 1b je 10c52d 10c512: 51 push %ecx 10c513: 8d 55 f4 lea -0xc(%ebp),%edx 10c516: 52 push %edx 10c517: ff 30 pushl (%eax) 10c519: 68 60 a5 12 00 push $0x12a560 10c51e: e8 7d 27 00 00 call 10eca0 <_Objects_Get> return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c523: 83 c4 10 add $0x10,%esp 10c526: 8b 55 f4 mov -0xc(%ebp),%edx 10c529: 85 d2 test %edx,%edx 10c52b: 74 0b je 10c538 case OBJECTS_LOCAL: status = _CORE_RWLock_Release( &the_rwlock->RWLock ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( status ); 10c52d: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c532: 8b 5d fc mov -0x4(%ebp),%ebx 10c535: c9 leave 10c536: c3 ret 10c537: 90 nop <== NOT EXECUTED the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_RWLock_Release( &the_rwlock->RWLock ); 10c538: 83 ec 0c sub $0xc,%esp 10c53b: 83 c0 10 add $0x10,%eax 10c53e: 50 push %eax 10c53f: e8 50 1c 00 00 call 10e194 <_CORE_RWLock_Release> 10c544: 89 c3 mov %eax,%ebx _Thread_Enable_dispatch(); 10c546: e8 c9 2f 00 00 call 10f514 <_Thread_Enable_dispatch> return _POSIX_RWLock_Translate_core_RWLock_return_code( status ); 10c54b: 89 1c 24 mov %ebx,(%esp) 10c54e: e8 d1 fe ff ff call 10c424 <_POSIX_RWLock_Translate_core_RWLock_return_code> 10c553: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10c556: 8b 5d fc mov -0x4(%ebp),%ebx 10c559: c9 leave 10c55a: c3 ret 0010c55c : */ int pthread_rwlock_wrlock( pthread_rwlock_t *rwlock ) { 10c55c: 55 push %ebp 10c55d: 89 e5 mov %esp,%ebp 10c55f: 53 push %ebx 10c560: 83 ec 14 sub $0x14,%esp 10c563: 8b 5d 08 mov 0x8(%ebp),%ebx POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) 10c566: 85 db test %ebx,%ebx 10c568: 74 1b je 10c585 10c56a: 51 push %ecx 10c56b: 8d 45 f4 lea -0xc(%ebp),%eax 10c56e: 50 push %eax 10c56f: ff 33 pushl (%ebx) 10c571: 68 60 a5 12 00 push $0x12a560 10c576: e8 25 27 00 00 call 10eca0 <_Objects_Get> return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 10c57b: 83 c4 10 add $0x10,%esp 10c57e: 8b 55 f4 mov -0xc(%ebp),%edx 10c581: 85 d2 test %edx,%edx 10c583: 74 0b je 10c590 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c585: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10c58a: 8b 5d fc mov -0x4(%ebp),%ebx 10c58d: c9 leave 10c58e: c3 ret 10c58f: 90 nop <== NOT EXECUTED the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( 10c590: 83 ec 0c sub $0xc,%esp 10c593: 6a 00 push $0x0 10c595: 6a 00 push $0x0 10c597: 6a 01 push $0x1 10c599: ff 33 pushl (%ebx) 10c59b: 83 c0 10 add $0x10,%eax 10c59e: 50 push %eax 10c59f: e8 64 1b 00 00 call 10e108 <_CORE_RWLock_Obtain_for_writing> true, /* do not timeout -- wait forever */ 0, NULL ); _Thread_Enable_dispatch(); 10c5a4: 83 c4 20 add $0x20,%esp 10c5a7: e8 68 2f 00 00 call 10f514 <_Thread_Enable_dispatch> return _POSIX_RWLock_Translate_core_RWLock_return_code( 10c5ac: 83 ec 0c sub $0xc,%esp 10c5af: a1 98 a3 12 00 mov 0x12a398,%eax 10c5b4: ff 70 34 pushl 0x34(%eax) 10c5b7: e8 68 fe ff ff call 10c424 <_POSIX_RWLock_Translate_core_RWLock_return_code> 10c5bc: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10c5bf: 8b 5d fc mov -0x4(%ebp),%ebx 10c5c2: c9 leave 10c5c3: c3 ret 0010cb78 : */ int pthread_rwlockattr_destroy( pthread_rwlockattr_t *attr ) { 10cb78: 55 push %ebp 10cb79: 89 e5 mov %esp,%ebp 10cb7b: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr || attr->is_initialized == false ) 10cb7e: 85 c0 test %eax,%eax 10cb80: 74 12 je 10cb94 10cb82: 8b 10 mov (%eax),%edx 10cb84: 85 d2 test %edx,%edx 10cb86: 74 0c je 10cb94 return EINVAL; attr->is_initialized = false; 10cb88: c7 00 00 00 00 00 movl $0x0,(%eax) 10cb8e: 31 c0 xor %eax,%eax return 0; } 10cb90: c9 leave 10cb91: c3 ret 10cb92: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !attr || attr->is_initialized == false ) return EINVAL; attr->is_initialized = false; return 0; 10cb94: b8 16 00 00 00 mov $0x16,%eax } 10cb99: c9 leave 10cb9a: c3 ret 0010cbc0 : */ int pthread_rwlockattr_init( pthread_rwlockattr_t *attr ) { 10cbc0: 55 push %ebp 10cbc1: 89 e5 mov %esp,%ebp 10cbc3: 8b 45 08 mov 0x8(%ebp),%eax if ( !attr ) 10cbc6: 85 c0 test %eax,%eax 10cbc8: 74 12 je 10cbdc return EINVAL; attr->is_initialized = true; 10cbca: c7 00 01 00 00 00 movl $0x1,(%eax) attr->process_shared = PTHREAD_PROCESS_PRIVATE; 10cbd0: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) 10cbd7: 31 c0 xor %eax,%eax return 0; } 10cbd9: c9 leave 10cbda: c3 ret 10cbdb: 90 nop <== NOT EXECUTED int pthread_rwlockattr_init( pthread_rwlockattr_t *attr ) { if ( !attr ) 10cbdc: b0 16 mov $0x16,%al return EINVAL; attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } 10cbde: c9 leave 10cbdf: c3 ret 0010cbe0 : int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { 10cbe0: 55 push %ebp 10cbe1: 89 e5 mov %esp,%ebp 10cbe3: 8b 45 08 mov 0x8(%ebp),%eax 10cbe6: 8b 55 0c mov 0xc(%ebp),%edx if ( !attr ) 10cbe9: 85 c0 test %eax,%eax 10cbeb: 74 0b je 10cbf8 return EINVAL; if ( !attr->is_initialized ) 10cbed: 8b 08 mov (%eax),%ecx 10cbef: 85 c9 test %ecx,%ecx 10cbf1: 74 05 je 10cbf8 return EINVAL; switch ( pshared ) { 10cbf3: 83 fa 01 cmp $0x1,%edx 10cbf6: 76 08 jbe 10cc00 case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; 10cbf8: b8 16 00 00 00 mov $0x16,%eax default: return EINVAL; } } 10cbfd: c9 leave 10cbfe: c3 ret 10cbff: 90 nop <== NOT EXECUTED return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; 10cc00: 89 50 04 mov %edx,0x4(%eax) 10cc03: 31 c0 xor %eax,%eax return 0; default: return EINVAL; } } 10cc05: c9 leave 10cc06: c3 ret 0010b110 : int pthread_setcancelstate( int state, int *oldstate ) { 10b110: 55 push %ebp 10b111: 89 e5 mov %esp,%ebp 10b113: 53 push %ebx 10b114: 83 ec 04 sub $0x4,%esp 10b117: 8b 4d 08 mov 0x8(%ebp),%ecx 10b11a: 8b 55 0c mov 0xc(%ebp),%edx * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) 10b11d: a1 94 8a 12 00 mov 0x128a94,%eax 10b122: 85 c0 test %eax,%eax 10b124: 75 16 jne 10b13c return EPROTO; if ( !oldstate ) 10b126: 85 d2 test %edx,%edx 10b128: 74 05 je 10b12f return EINVAL; if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE ) 10b12a: 83 f9 01 cmp $0x1,%ecx 10b12d: 76 19 jbe 10b148 /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; 10b12f: b8 16 00 00 00 mov $0x16,%eax } 10b134: 8b 5d fc mov -0x4(%ebp),%ebx 10b137: c9 leave 10b138: c3 ret 10b139: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) 10b13c: b8 47 00 00 00 mov $0x47,%eax /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; } 10b141: 8b 5d fc mov -0x4(%ebp),%ebx 10b144: c9 leave 10b145: c3 ret 10b146: 66 90 xchg %ax,%ax <== NOT EXECUTED return EINVAL; if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE ) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 10b148: a1 b8 8a 12 00 mov 0x128ab8,%eax 10b14d: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10b153: 8b 1d f8 89 12 00 mov 0x1289f8,%ebx 10b159: 43 inc %ebx 10b15a: 89 1d f8 89 12 00 mov %ebx,0x1289f8 _Thread_Disable_dispatch(); *oldstate = thread_support->cancelability_state; 10b160: 8b 98 d4 00 00 00 mov 0xd4(%eax),%ebx 10b166: 89 1a mov %ebx,(%edx) thread_support->cancelability_state = state; 10b168: 89 88 d4 00 00 00 mov %ecx,0xd4(%eax) _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); 10b16e: 83 ec 0c sub $0xc,%esp 10b171: ff 35 b8 8a 12 00 pushl 0x128ab8 10b177: e8 40 50 00 00 call 1101bc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> 10b17c: 31 c0 xor %eax,%eax /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; 10b17e: 83 c4 10 add $0x10,%esp } 10b181: 8b 5d fc mov -0x4(%ebp),%ebx 10b184: c9 leave 10b185: c3 ret 0010b188 : int pthread_setcanceltype( int type, int *oldtype ) { 10b188: 55 push %ebp 10b189: 89 e5 mov %esp,%ebp 10b18b: 53 push %ebx 10b18c: 83 ec 04 sub $0x4,%esp 10b18f: 8b 4d 08 mov 0x8(%ebp),%ecx 10b192: 8b 55 0c mov 0xc(%ebp),%edx * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) 10b195: a1 94 8a 12 00 mov 0x128a94,%eax 10b19a: 85 c0 test %eax,%eax 10b19c: 75 16 jne 10b1b4 return EPROTO; if ( !oldtype ) 10b19e: 85 d2 test %edx,%edx 10b1a0: 74 05 je 10b1a7 return EINVAL; if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS ) 10b1a2: 83 f9 01 cmp $0x1,%ecx 10b1a5: 76 19 jbe 10b1c0 _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; 10b1a7: b8 16 00 00 00 mov $0x16,%eax } 10b1ac: 8b 5d fc mov -0x4(%ebp),%ebx 10b1af: c9 leave 10b1b0: c3 ret 10b1b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) 10b1b4: b8 47 00 00 00 mov $0x47,%eax /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; } 10b1b9: 8b 5d fc mov -0x4(%ebp),%ebx 10b1bc: c9 leave 10b1bd: c3 ret 10b1be: 66 90 xchg %ax,%ax <== NOT EXECUTED return EINVAL; if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS ) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 10b1c0: a1 b8 8a 12 00 mov 0x128ab8,%eax 10b1c5: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax 10b1cb: 8b 1d f8 89 12 00 mov 0x1289f8,%ebx 10b1d1: 43 inc %ebx 10b1d2: 89 1d f8 89 12 00 mov %ebx,0x1289f8 _Thread_Disable_dispatch(); *oldtype = thread_support->cancelability_type; 10b1d8: 8b 98 d8 00 00 00 mov 0xd8(%eax),%ebx 10b1de: 89 1a mov %ebx,(%edx) thread_support->cancelability_type = type; 10b1e0: 89 88 d8 00 00 00 mov %ecx,0xd8(%eax) _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); 10b1e6: 83 ec 0c sub $0xc,%esp 10b1e9: ff 35 b8 8a 12 00 pushl 0x128ab8 10b1ef: e8 c8 4f 00 00 call 1101bc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> 10b1f4: 31 c0 xor %eax,%eax /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; 10b1f6: 83 c4 10 add $0x10,%esp } 10b1f9: 8b 5d fc mov -0x4(%ebp),%ebx 10b1fc: c9 leave 10b1fd: c3 ret 0010dc50 : int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { 10dc50: 55 push %ebp 10dc51: 89 e5 mov %esp,%ebp 10dc53: 57 push %edi 10dc54: 56 push %esi 10dc55: 53 push %ebx 10dc56: 83 ec 2c sub $0x2c,%esp 10dc59: 8b 75 10 mov 0x10(%ebp),%esi int rc; /* * Check all the parameters */ if ( !param ) 10dc5c: 85 f6 test %esi,%esi 10dc5e: 0f 84 cc 00 00 00 je 10dd30 return EINVAL; rc = _POSIX_Thread_Translate_sched_param( 10dc64: 8d 45 e0 lea -0x20(%ebp),%eax 10dc67: 50 push %eax 10dc68: 8d 45 e4 lea -0x1c(%ebp),%eax 10dc6b: 50 push %eax 10dc6c: 56 push %esi 10dc6d: ff 75 0c pushl 0xc(%ebp) 10dc70: e8 2f 55 00 00 call 1131a4 <_POSIX_Thread_Translate_sched_param> 10dc75: 89 c3 mov %eax,%ebx policy, param, &budget_algorithm, &budget_callout ); if ( rc ) 10dc77: 83 c4 10 add $0x10,%esp 10dc7a: 85 c0 test %eax,%eax 10dc7c: 74 0a je 10dc88 case OBJECTS_ERROR: break; } return ESRCH; } 10dc7e: 89 d8 mov %ebx,%eax 10dc80: 8d 65 f4 lea -0xc(%ebp),%esp 10dc83: 5b pop %ebx 10dc84: 5e pop %esi 10dc85: 5f pop %edi 10dc86: c9 leave 10dc87: c3 ret 10dc88: 50 push %eax 10dc89: 8d 45 dc lea -0x24(%ebp),%eax 10dc8c: 50 push %eax 10dc8d: ff 75 08 pushl 0x8(%ebp) 10dc90: 68 a0 c8 12 00 push $0x12c8a0 10dc95: e8 3e 1f 00 00 call 10fbd8 <_Objects_Get> 10dc9a: 89 c2 mov %eax,%edx /* * Actually change the scheduling policy and parameters */ the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10dc9c: 83 c4 10 add $0x10,%esp 10dc9f: 8b 7d dc mov -0x24(%ebp),%edi 10dca2: 85 ff test %edi,%edi 10dca4: 0f 85 96 00 00 00 jne 10dd40 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 10dcaa: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax 10dcb0: 89 45 d4 mov %eax,-0x2c(%ebp) if ( api->schedpolicy == SCHED_SPORADIC ) 10dcb3: 83 b8 80 00 00 00 04 cmpl $0x4,0x80(%eax) 10dcba: 0f 84 c8 00 00 00 je 10dd88 (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; 10dcc0: 8b 45 0c mov 0xc(%ebp),%eax 10dcc3: 8b 4d d4 mov -0x2c(%ebp),%ecx 10dcc6: 89 81 80 00 00 00 mov %eax,0x80(%ecx) api->schedparam = *param; 10dccc: 89 cf mov %ecx,%edi 10dcce: 81 c7 84 00 00 00 add $0x84,%edi 10dcd4: b9 07 00 00 00 mov $0x7,%ecx 10dcd9: f3 a5 rep movsl %ds:(%esi),%es:(%edi) the_thread->budget_algorithm = budget_algorithm; 10dcdb: 8b 45 e4 mov -0x1c(%ebp),%eax 10dcde: 89 42 7c mov %eax,0x7c(%edx) the_thread->budget_callout = budget_callout; 10dce1: 8b 45 e0 mov -0x20(%ebp),%eax 10dce4: 89 82 80 00 00 00 mov %eax,0x80(%edx) switch ( api->schedpolicy ) { 10dcea: 8b 75 0c mov 0xc(%ebp),%esi 10dced: 85 f6 test %esi,%esi 10dcef: 78 2e js 10dd1f 10dcf1: 83 7d 0c 02 cmpl $0x2,0xc(%ebp) 10dcf5: 7f 55 jg 10dd4c case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 10dcf7: a1 a4 c5 12 00 mov 0x12c5a4,%eax 10dcfc: 89 42 78 mov %eax,0x78(%edx) 10dcff: 0f b6 05 dc 83 12 00 movzbl 0x1283dc,%eax 10dd06: 8b 4d d4 mov -0x2c(%ebp),%ecx 10dd09: 2b 81 84 00 00 00 sub 0x84(%ecx),%eax the_thread->real_priority = 10dd0f: 89 42 18 mov %eax,0x18(%edx) _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( 10dd12: 51 push %ecx 10dd13: 6a 01 push $0x1 10dd15: 50 push %eax 10dd16: 52 push %edx 10dd17: e8 48 22 00 00 call 10ff64 <_Thread_Change_priority> the_thread, the_thread->real_priority, true ); break; 10dd1c: 83 c4 10 add $0x10,%esp _Watchdog_Remove( &api->Sporadic_timer ); _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); break; } _Thread_Enable_dispatch(); 10dd1f: e8 28 27 00 00 call 11044c <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return ESRCH; } 10dd24: 89 d8 mov %ebx,%eax 10dd26: 8d 65 f4 lea -0xc(%ebp),%esp 10dd29: 5b pop %ebx 10dd2a: 5e pop %esi 10dd2b: 5f pop %edi 10dd2c: c9 leave 10dd2d: c3 ret 10dd2e: 66 90 xchg %ax,%ax <== NOT EXECUTED int rc; /* * Check all the parameters */ if ( !param ) 10dd30: bb 16 00 00 00 mov $0x16,%ebx case OBJECTS_ERROR: break; } return ESRCH; } 10dd35: 89 d8 mov %ebx,%eax 10dd37: 8d 65 f4 lea -0xc(%ebp),%esp 10dd3a: 5b pop %ebx 10dd3b: 5e pop %esi 10dd3c: 5f pop %edi 10dd3d: c9 leave 10dd3e: c3 ret 10dd3f: 90 nop <== NOT EXECUTED /* * Actually change the scheduling policy and parameters */ the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { 10dd40: b3 03 mov $0x3,%bl case OBJECTS_ERROR: break; } return ESRCH; } 10dd42: 89 d8 mov %ebx,%eax 10dd44: 8d 65 f4 lea -0xc(%ebp),%esp 10dd47: 5b pop %ebx 10dd48: 5e pop %esi 10dd49: 5f pop %edi 10dd4a: c9 leave 10dd4b: c3 ret api->schedpolicy = policy; api->schedparam = *param; the_thread->budget_algorithm = budget_algorithm; the_thread->budget_callout = budget_callout; switch ( api->schedpolicy ) { 10dd4c: 83 7d 0c 04 cmpl $0x4,0xc(%ebp) 10dd50: 75 cd jne 10dd1f true ); break; case SCHED_SPORADIC: api->ss_high_priority = api->schedparam.sched_priority; 10dd52: 8b 4d d4 mov -0x2c(%ebp),%ecx 10dd55: 8b 81 84 00 00 00 mov 0x84(%ecx),%eax 10dd5b: 89 81 a0 00 00 00 mov %eax,0xa0(%ecx) _Watchdog_Remove( &api->Sporadic_timer ); 10dd61: 83 ec 0c sub $0xc,%esp 10dd64: 89 c8 mov %ecx,%eax 10dd66: 05 a4 00 00 00 add $0xa4,%eax 10dd6b: 50 push %eax 10dd6c: 89 55 d0 mov %edx,-0x30(%ebp) 10dd6f: e8 b0 38 00 00 call 111624 <_Watchdog_Remove> _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); 10dd74: 58 pop %eax 10dd75: 5a pop %edx 10dd76: 8b 55 d0 mov -0x30(%ebp),%edx 10dd79: 52 push %edx 10dd7a: 6a 00 push $0x0 10dd7c: e8 3b fe ff ff call 10dbbc <_POSIX_Threads_Sporadic_budget_TSR> 10dd81: 83 c4 10 add $0x10,%esp 10dd84: eb 99 jmp 10dd1f 10dd86: 66 90 xchg %ax,%ax <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); 10dd88: 83 ec 0c sub $0xc,%esp 10dd8b: 05 a4 00 00 00 add $0xa4,%eax 10dd90: 50 push %eax 10dd91: 89 55 d0 mov %edx,-0x30(%ebp) 10dd94: e8 8b 38 00 00 call 111624 <_Watchdog_Remove> 10dd99: 83 c4 10 add $0x10,%esp 10dd9c: 8b 55 d0 mov -0x30(%ebp),%edx 10dd9f: e9 1c ff ff ff jmp 10dcc0 001115d0 : int pthread_sigmask( int how, const sigset_t *set, sigset_t *oset ) { 1115d0: 55 push %ebp 1115d1: 89 e5 mov %esp,%ebp 1115d3: 57 push %edi 1115d4: 56 push %esi 1115d5: 53 push %ebx 1115d6: 83 ec 0c sub $0xc,%esp 1115d9: 8b 4d 08 mov 0x8(%ebp),%ecx 1115dc: 8b 55 0c mov 0xc(%ebp),%edx 1115df: 8b 5d 10 mov 0x10(%ebp),%ebx POSIX_API_Control *api; if ( !set && !oset ) 1115e2: 85 d2 test %edx,%edx 1115e4: 0f 84 9a 00 00 00 je 111684 rtems_set_errno_and_return_minus_one( EINVAL ); api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 1115ea: 8b 35 b8 95 12 00 mov 0x1295b8,%esi 1115f0: 8b 86 f8 00 00 00 mov 0xf8(%esi),%eax if ( oset ) 1115f6: 85 db test %ebx,%ebx 1115f8: 74 0c je 111606 *oset = api->signals_blocked; 1115fa: 8b b8 cc 00 00 00 mov 0xcc(%eax),%edi 111600: 89 3b mov %edi,(%ebx) if ( !set ) 111602: 85 d2 test %edx,%edx 111604: 74 42 je 111648 return 0; switch ( how ) { 111606: 83 f9 01 cmp $0x1,%ecx 111609: 74 6d je 111678 11160b: 83 f9 02 cmp $0x2,%ecx 11160e: 74 44 je 111654 111610: 85 c9 test %ecx,%ecx 111612: 75 4c jne 111660 break; case SIG_UNBLOCK: api->signals_blocked &= ~*set; break; case SIG_SETMASK: api->signals_blocked = *set; 111614: 8b 12 mov (%edx),%edx 111616: 89 90 cc 00 00 00 mov %edx,0xcc(%eax) /* XXX are there critical section problems here? */ /* XXX evaluate the new set */ if ( ~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending) ) { 11161c: 8b 15 c0 9c 12 00 mov 0x129cc0,%edx 111622: 0b 90 d0 00 00 00 or 0xd0(%eax),%edx /* XXX are there critical section problems here? */ /* XXX evaluate the new set */ if ( ~api->signals_blocked & 111628: 8b 80 cc 00 00 00 mov 0xcc(%eax),%eax 11162e: f7 d0 not %eax 111630: 85 c2 test %eax,%edx 111632: 74 14 je 111648 (api->signals_pending | _POSIX_signals_Pending) ) { _Thread_Executing->do_post_task_switch_extension = true; 111634: c6 46 74 01 movb $0x1,0x74(%esi) _Thread_Dispatch(); 111638: e8 b3 cc ff ff call 10e2f0 <_Thread_Dispatch> 11163d: 31 c0 xor %eax,%eax } return 0; } 11163f: 83 c4 0c add $0xc,%esp 111642: 5b pop %ebx 111643: 5e pop %esi 111644: 5f pop %edi 111645: c9 leave 111646: c3 ret 111647: 90 nop <== NOT EXECUTED /* XXX evaluate the new set */ if ( ~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending) ) { _Thread_Executing->do_post_task_switch_extension = true; _Thread_Dispatch(); 111648: 31 c0 xor %eax,%eax } return 0; } 11164a: 83 c4 0c add $0xc,%esp 11164d: 5b pop %ebx 11164e: 5e pop %esi 11164f: 5f pop %edi 111650: c9 leave 111651: c3 ret 111652: 66 90 xchg %ax,%ax <== NOT EXECUTED switch ( how ) { case SIG_BLOCK: api->signals_blocked |= *set; break; case SIG_UNBLOCK: api->signals_blocked &= ~*set; 111654: 8b 12 mov (%edx),%edx 111656: f7 d2 not %edx 111658: 21 90 cc 00 00 00 and %edx,0xcc(%eax) break; 11165e: eb bc jmp 11161c case SIG_SETMASK: api->signals_blocked = *set; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 111660: e8 1f 30 00 00 call 114684 <__errno> 111665: c7 00 16 00 00 00 movl $0x16,(%eax) 11166b: b8 ff ff ff ff mov $0xffffffff,%eax _Thread_Executing->do_post_task_switch_extension = true; _Thread_Dispatch(); } return 0; } 111670: 83 c4 0c add $0xc,%esp 111673: 5b pop %ebx 111674: 5e pop %esi 111675: 5f pop %edi 111676: c9 leave 111677: c3 ret if ( !set ) return 0; switch ( how ) { case SIG_BLOCK: api->signals_blocked |= *set; 111678: 8b 12 mov (%edx),%edx 11167a: 09 90 cc 00 00 00 or %edx,0xcc(%eax) break; 111680: eb 9a jmp 11161c 111682: 66 90 xchg %ax,%ax <== NOT EXECUTED sigset_t *oset ) { POSIX_API_Control *api; if ( !set && !oset ) 111684: 85 db test %ebx,%ebx 111686: 74 d8 je 111660 rtems_set_errno_and_return_minus_one( EINVAL ); api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 111688: 8b 35 b8 95 12 00 mov 0x1295b8,%esi 11168e: 8b 86 f8 00 00 00 mov 0xf8(%esi),%eax 111694: e9 61 ff ff ff jmp 1115fa 0010b600 : */ int pthread_spin_destroy( pthread_spinlock_t *spinlock ) { 10b600: 55 push %ebp 10b601: 89 e5 mov %esp,%ebp 10b603: 83 ec 28 sub $0x28,%esp 10b606: 8b 45 08 mov 0x8(%ebp),%eax POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; if ( !spinlock ) 10b609: 85 c0 test %eax,%eax 10b60b: 74 2f je 10b63c RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get ( pthread_spinlock_t *spinlock, Objects_Locations *location ) { return (POSIX_Spinlock_Control *) _Objects_Get( 10b60d: 52 push %edx 10b60e: 8d 55 f4 lea -0xc(%ebp),%edx 10b611: 52 push %edx 10b612: ff 30 pushl (%eax) 10b614: 68 e0 8a 12 00 push $0x128ae0 10b619: e8 ae 20 00 00 call 10d6cc <_Objects_Get> return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { 10b61e: 83 c4 10 add $0x10,%esp 10b621: 8b 4d f4 mov -0xc(%ebp),%ecx 10b624: 85 c9 test %ecx,%ecx 10b626: 75 14 jne 10b63c */ RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy( CORE_spinlock_Control *the_spinlock ) { return (the_spinlock->users != 0); 10b628: 8b 50 18 mov 0x18(%eax),%edx case OBJECTS_LOCAL: if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) { 10b62b: 85 d2 test %edx,%edx 10b62d: 74 15 je 10b644 _Thread_Enable_dispatch(); 10b62f: e8 0c 29 00 00 call 10df40 <_Thread_Enable_dispatch> 10b634: b8 10 00 00 00 mov $0x10,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b639: c9 leave 10b63a: c3 ret 10b63b: 90 nop <== NOT EXECUTED _Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object ); _POSIX_Spinlock_Free( the_spinlock ); _Thread_Enable_dispatch(); return 0; 10b63c: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b641: c9 leave 10b642: c3 ret 10b643: 90 nop <== NOT EXECUTED if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object ); 10b644: 83 ec 08 sub $0x8,%esp 10b647: 50 push %eax 10b648: 68 e0 8a 12 00 push $0x128ae0 10b64d: 89 45 e4 mov %eax,-0x1c(%ebp) 10b650: e8 43 1c 00 00 call 10d298 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _POSIX_Spinlock_Free ( POSIX_Spinlock_Control *the_spinlock ) { _Objects_Free( &_POSIX_Spinlock_Information, &the_spinlock->Object ); 10b655: 58 pop %eax 10b656: 5a pop %edx 10b657: 8b 45 e4 mov -0x1c(%ebp),%eax 10b65a: 50 push %eax 10b65b: 68 e0 8a 12 00 push $0x128ae0 10b660: e8 37 1f 00 00 call 10d59c <_Objects_Free> _POSIX_Spinlock_Free( the_spinlock ); _Thread_Enable_dispatch(); 10b665: e8 d6 28 00 00 call 10df40 <_Thread_Enable_dispatch> 10b66a: 31 c0 xor %eax,%eax return 0; 10b66c: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10b66f: c9 leave 10b670: c3 ret 0010b700 : */ int pthread_spin_lock( pthread_spinlock_t *spinlock ) { 10b700: 55 push %ebp 10b701: 89 e5 mov %esp,%ebp 10b703: 53 push %ebx 10b704: 83 ec 14 sub $0x14,%esp 10b707: 8b 45 08 mov 0x8(%ebp),%eax POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) 10b70a: 85 c0 test %eax,%eax 10b70c: 74 1b je 10b729 RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get ( pthread_spinlock_t *spinlock, Objects_Locations *location ) { return (POSIX_Spinlock_Control *) _Objects_Get( 10b70e: 53 push %ebx 10b70f: 8d 55 f4 lea -0xc(%ebp),%edx 10b712: 52 push %edx 10b713: ff 30 pushl (%eax) 10b715: 68 e0 8a 12 00 push $0x128ae0 10b71a: e8 ad 1f 00 00 call 10d6cc <_Objects_Get> return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { 10b71f: 83 c4 10 add $0x10,%esp 10b722: 8b 4d f4 mov -0xc(%ebp),%ecx 10b725: 85 c9 test %ecx,%ecx 10b727: 74 0b je 10b734 case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); 10b729: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b72e: 8b 5d fc mov -0x4(%ebp),%ebx 10b731: c9 leave 10b732: c3 ret 10b733: 90 nop <== NOT EXECUTED the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 ); 10b734: 52 push %edx 10b735: 6a 00 push $0x0 10b737: 6a 01 push $0x1 10b739: 83 c0 10 add $0x10,%eax 10b73c: 50 push %eax 10b73d: e8 e2 15 00 00 call 10cd24 <_CORE_spinlock_Wait> 10b742: 89 c3 mov %eax,%ebx _Thread_Enable_dispatch(); 10b744: e8 f7 27 00 00 call 10df40 <_Thread_Enable_dispatch> return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); 10b749: 89 1c 24 mov %ebx,(%esp) 10b74c: e8 0b 00 00 00 call 10b75c <_POSIX_Spinlock_Translate_core_spinlock_return_code> 10b751: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10b754: 8b 5d fc mov -0x4(%ebp),%ebx 10b757: c9 leave 10b758: c3 ret 0010b76c : */ int pthread_spin_trylock( pthread_spinlock_t *spinlock ) { 10b76c: 55 push %ebp 10b76d: 89 e5 mov %esp,%ebp 10b76f: 53 push %ebx 10b770: 83 ec 14 sub $0x14,%esp 10b773: 8b 45 08 mov 0x8(%ebp),%eax POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) 10b776: 85 c0 test %eax,%eax 10b778: 74 1b je 10b795 10b77a: 53 push %ebx 10b77b: 8d 55 f4 lea -0xc(%ebp),%edx 10b77e: 52 push %edx 10b77f: ff 30 pushl (%eax) 10b781: 68 e0 8a 12 00 push $0x128ae0 10b786: e8 41 1f 00 00 call 10d6cc <_Objects_Get> return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { 10b78b: 83 c4 10 add $0x10,%esp 10b78e: 8b 4d f4 mov -0xc(%ebp),%ecx 10b791: 85 c9 test %ecx,%ecx 10b793: 74 0b je 10b7a0 case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); 10b795: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b79a: 8b 5d fc mov -0x4(%ebp),%ebx 10b79d: c9 leave 10b79e: c3 ret 10b79f: 90 nop <== NOT EXECUTED the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 ); 10b7a0: 52 push %edx 10b7a1: 6a 00 push $0x0 10b7a3: 6a 00 push $0x0 10b7a5: 83 c0 10 add $0x10,%eax 10b7a8: 50 push %eax 10b7a9: e8 76 15 00 00 call 10cd24 <_CORE_spinlock_Wait> 10b7ae: 89 c3 mov %eax,%ebx _Thread_Enable_dispatch(); 10b7b0: e8 8b 27 00 00 call 10df40 <_Thread_Enable_dispatch> return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); 10b7b5: 89 1c 24 mov %ebx,(%esp) 10b7b8: e8 9f ff ff ff call 10b75c <_POSIX_Spinlock_Translate_core_spinlock_return_code> 10b7bd: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10b7c0: 8b 5d fc mov -0x4(%ebp),%ebx 10b7c3: c9 leave 10b7c4: c3 ret 0010b7c8 : */ int pthread_spin_unlock( pthread_spinlock_t *spinlock ) { 10b7c8: 55 push %ebp 10b7c9: 89 e5 mov %esp,%ebp 10b7cb: 53 push %ebx 10b7cc: 83 ec 14 sub $0x14,%esp 10b7cf: 8b 45 08 mov 0x8(%ebp),%eax POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) 10b7d2: 85 c0 test %eax,%eax 10b7d4: 74 1b je 10b7f1 10b7d6: 51 push %ecx 10b7d7: 8d 55 f4 lea -0xc(%ebp),%edx 10b7da: 52 push %edx 10b7db: ff 30 pushl (%eax) 10b7dd: 68 e0 8a 12 00 push $0x128ae0 10b7e2: e8 e5 1e 00 00 call 10d6cc <_Objects_Get> return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { 10b7e7: 83 c4 10 add $0x10,%esp 10b7ea: 8b 55 f4 mov -0xc(%ebp),%edx 10b7ed: 85 d2 test %edx,%edx 10b7ef: 74 0b je 10b7fc case OBJECTS_LOCAL: status = _CORE_spinlock_Release( &the_spinlock->Spinlock ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); 10b7f1: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return EINVAL; } 10b7f6: 8b 5d fc mov -0x4(%ebp),%ebx 10b7f9: c9 leave 10b7fa: c3 ret 10b7fb: 90 nop <== NOT EXECUTED the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Release( &the_spinlock->Spinlock ); 10b7fc: 83 ec 0c sub $0xc,%esp 10b7ff: 83 c0 10 add $0x10,%eax 10b802: 50 push %eax 10b803: e8 cc 14 00 00 call 10ccd4 <_CORE_spinlock_Release> 10b808: 89 c3 mov %eax,%ebx _Thread_Enable_dispatch(); 10b80a: e8 31 27 00 00 call 10df40 <_Thread_Enable_dispatch> return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); 10b80f: 89 1c 24 mov %ebx,(%esp) 10b812: e8 45 ff ff ff call 10b75c <_POSIX_Spinlock_Translate_core_spinlock_return_code> 10b817: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return EINVAL; } 10b81a: 8b 5d fc mov -0x4(%ebp),%ebx 10b81d: c9 leave 10b81e: c3 ret 0010ba54 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { 10ba54: 55 push %ebp 10ba55: 89 e5 mov %esp,%ebp 10ba57: 83 ec 08 sub $0x8,%esp * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) 10ba5a: a1 14 92 12 00 mov 0x129214,%eax 10ba5f: 85 c0 test %eax,%eax 10ba61: 75 44 jne 10baa7 return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; 10ba63: a1 38 92 12 00 mov 0x129238,%eax 10ba68: 8b 80 f8 00 00 00 mov 0xf8(%eax),%eax 10ba6e: 8b 15 78 91 12 00 mov 0x129178,%edx 10ba74: 42 inc %edx 10ba75: 89 15 78 91 12 00 mov %edx,0x129178 _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && 10ba7b: 8b 90 d4 00 00 00 mov 0xd4(%eax),%edx 10ba81: 85 d2 test %edx,%edx 10ba83: 75 27 jne 10baac thread_support->cancelation_requested ) 10ba85: 8b 80 dc 00 00 00 mov 0xdc(%eax),%eax 10ba8b: 85 c0 test %eax,%eax 10ba8d: 74 1d je 10baac cancel = true; _Thread_Enable_dispatch(); 10ba8f: e8 cc 25 00 00 call 10e060 <_Thread_Enable_dispatch> if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); 10ba94: 83 ec 08 sub $0x8,%esp 10ba97: 6a ff push $0xffffffff 10ba99: ff 35 38 92 12 00 pushl 0x129238 10ba9f: e8 c4 54 00 00 call 110f68 <_POSIX_Thread_Exit> 10baa4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 10baa7: c9 leave <== NOT EXECUTED 10baa8: c3 ret <== NOT EXECUTED 10baa9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10baac: c9 leave _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); 10baad: e9 ae 25 00 00 jmp 10e060 <_Thread_Enable_dispatch> 0011ed60 : ssize_t read( int fd, void *buffer, size_t count ) { 11ed60: 55 push %ebp 11ed61: 89 e5 mov %esp,%ebp 11ed63: 53 push %ebx 11ed64: 83 ec 04 sub $0x4,%esp 11ed67: 8b 5d 08 mov 0x8(%ebp),%ebx 11ed6a: 8b 45 0c mov 0xc(%ebp),%eax 11ed6d: 8b 55 10 mov 0x10(%ebp),%edx ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 11ed70: 3b 1d 6c 34 12 00 cmp 0x12346c,%ebx 11ed76: 73 50 jae 11edc8 iop = rtems_libio_iop( fd ); 11ed78: c1 e3 06 shl $0x6,%ebx 11ed7b: 03 1d 80 75 12 00 add 0x127580,%ebx rtems_libio_check_is_open( iop ); 11ed81: 8b 4b 14 mov 0x14(%ebx),%ecx 11ed84: f6 c5 01 test $0x1,%ch 11ed87: 74 3f je 11edc8 rtems_libio_check_buffer( buffer ); 11ed89: 85 c0 test %eax,%eax 11ed8b: 74 4f je 11eddc rtems_libio_check_count( count ); 11ed8d: 85 d2 test %edx,%edx 11ed8f: 74 2f je 11edc0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 11ed91: 83 e1 02 and $0x2,%ecx 11ed94: 74 46 je 11eddc /* * Now process the read(). */ if ( !iop->handlers->read_h ) 11ed96: 8b 4b 3c mov 0x3c(%ebx),%ecx 11ed99: 8b 49 08 mov 0x8(%ecx),%ecx 11ed9c: 85 c9 test %ecx,%ecx 11ed9e: 74 4e je 11edee rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 11eda0: 83 ec 04 sub $0x4,%esp 11eda3: 52 push %edx 11eda4: 50 push %eax 11eda5: 53 push %ebx 11eda6: ff d1 call *%ecx if ( rc > 0 ) 11eda8: 83 c4 10 add $0x10,%esp 11edab: 85 c0 test %eax,%eax 11edad: 7e 0b jle 11edba iop->offset += rc; 11edaf: 89 c1 mov %eax,%ecx 11edb1: c1 f9 1f sar $0x1f,%ecx 11edb4: 01 43 0c add %eax,0xc(%ebx) 11edb7: 11 4b 10 adc %ecx,0x10(%ebx) return rc; } 11edba: 8b 5d fc mov -0x4(%ebp),%ebx 11edbd: c9 leave 11edbe: c3 ret 11edbf: 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 ); 11edc0: 31 c0 xor %eax,%eax <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 11edc2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11edc5: c9 leave <== NOT EXECUTED 11edc6: c3 ret <== NOT EXECUTED 11edc7: 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 ); 11edc8: e8 c7 4a ff ff call 113894 <__errno> 11edcd: c7 00 09 00 00 00 movl $0x9,(%eax) 11edd3: b8 ff ff ff ff mov $0xffffffff,%eax 11edd8: eb e0 jmp 11edba 11edda: 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 ); 11eddc: e8 b3 4a ff ff call 113894 <__errno> <== NOT EXECUTED 11ede1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11ede7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11edec: eb cc jmp 11edba <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11edee: e8 a1 4a ff ff call 113894 <__errno> <== NOT EXECUTED 11edf3: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11edf9: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11edfe: eb ba jmp 11edba <== NOT EXECUTED 0012ca38 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 12ca38: 55 push %ebp 12ca39: 89 e5 mov %esp,%ebp 12ca3b: 57 push %edi 12ca3c: 56 push %esi 12ca3d: 53 push %ebx 12ca3e: 83 ec 2c sub $0x2c,%esp 12ca41: 8b 55 08 mov 0x8(%ebp),%edx 12ca44: 8b 5d 0c mov 0xc(%ebp),%ebx rtems_filesystem_location_info_t loc; int result; if (!buf) 12ca47: 85 db test %ebx,%ebx 12ca49: 0f 84 ad 00 00 00 je 12cafc rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 12ca4f: 31 c0 xor %eax,%eax 12ca51: b9 ff ff ff ff mov $0xffffffff,%ecx 12ca56: 89 d7 mov %edx,%edi 12ca58: f2 ae repnz scas %es:(%edi),%al 12ca5a: f7 d1 not %ecx 12ca5c: 49 dec %ecx 12ca5d: 83 ec 0c sub $0xc,%esp 12ca60: 6a 00 push $0x0 12ca62: 8d 75 d4 lea -0x2c(%ebp),%esi 12ca65: 56 push %esi 12ca66: 6a 00 push $0x0 12ca68: 51 push %ecx 12ca69: 52 push %edx 12ca6a: e8 3d 03 fe ff call 10cdac 0, &loc, false ); if ( result != 0 ) 12ca6f: 83 c4 20 add $0x20,%esp 12ca72: 85 c0 test %eax,%eax 12ca74: 75 76 jne 12caec return -1; if ( !loc.ops->node_type_h ){ 12ca76: 8b 55 e0 mov -0x20(%ebp),%edx 12ca79: 8b 42 10 mov 0x10(%edx),%eax 12ca7c: 85 c0 test %eax,%eax 12ca7e: 74 4e je 12cace rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 12ca80: 83 ec 0c sub $0xc,%esp 12ca83: 56 push %esi 12ca84: ff d0 call *%eax 12ca86: 83 c4 10 add $0x10,%esp 12ca89: 83 f8 04 cmp $0x4,%eax 12ca8c: 0f 85 86 00 00 00 jne 12cb18 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 12ca92: 8b 55 e0 mov -0x20(%ebp),%edx 12ca95: 8b 42 3c mov 0x3c(%edx),%eax 12ca98: 85 c0 test %eax,%eax 12ca9a: 0f 84 a1 00 00 00 je 12cb41 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 12caa0: 52 push %edx 12caa1: ff 75 10 pushl 0x10(%ebp) 12caa4: 53 push %ebx 12caa5: 56 push %esi 12caa6: ff d0 call *%eax 12caa8: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 12caaa: 8b 45 e0 mov -0x20(%ebp),%eax 12caad: 83 c4 10 add $0x10,%esp 12cab0: 85 c0 test %eax,%eax 12cab2: 74 10 je 12cac4 12cab4: 8b 40 1c mov 0x1c(%eax),%eax 12cab7: 85 c0 test %eax,%eax 12cab9: 74 09 je 12cac4 12cabb: 83 ec 0c sub $0xc,%esp 12cabe: 56 push %esi 12cabf: ff d0 call *%eax 12cac1: 83 c4 10 add $0x10,%esp return result; } 12cac4: 89 d8 mov %ebx,%eax 12cac6: 8d 65 f4 lea -0xc(%ebp),%esp 12cac9: 5b pop %ebx 12caca: 5e pop %esi 12cacb: 5f pop %edi 12cacc: c9 leave 12cacd: c3 ret 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 12cace: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12cad1: 85 c0 test %eax,%eax <== NOT EXECUTED 12cad3: 74 09 je 12cade <== NOT EXECUTED 12cad5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cad8: 56 push %esi <== NOT EXECUTED 12cad9: ff d0 call *%eax <== NOT EXECUTED 12cadb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12cade: e8 c1 5d 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12cae3: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12cae9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12caec: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 12caf1: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12caf3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12caf6: 5b pop %ebx <== NOT EXECUTED 12caf7: 5e pop %esi <== NOT EXECUTED 12caf8: 5f pop %edi <== NOT EXECUTED 12caf9: c9 leave <== NOT EXECUTED 12cafa: c3 ret <== NOT EXECUTED 12cafb: 90 nop <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 12cafc: e8 a3 5d 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12cb01: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12cb07: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 12cb0c: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12cb0e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12cb11: 5b pop %ebx <== NOT EXECUTED 12cb12: 5e pop %esi <== NOT EXECUTED 12cb13: 5f pop %edi <== NOT EXECUTED 12cb14: c9 leave <== NOT EXECUTED 12cb15: c3 ret <== NOT EXECUTED 12cb16: 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 ); 12cb18: 8b 45 e0 mov -0x20(%ebp),%eax 12cb1b: 85 c0 test %eax,%eax 12cb1d: 74 10 je 12cb2f 12cb1f: 8b 40 1c mov 0x1c(%eax),%eax 12cb22: 85 c0 test %eax,%eax 12cb24: 74 09 je 12cb2f 12cb26: 83 ec 0c sub $0xc,%esp 12cb29: 56 push %esi 12cb2a: ff d0 call *%eax 12cb2c: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EINVAL ); 12cb2f: e8 70 5d 01 00 call 1428a4 <__errno> 12cb34: c7 00 16 00 00 00 movl $0x16,(%eax) 12cb3a: bb ff ff ff ff mov $0xffffffff,%ebx 12cb3f: eb 83 jmp 12cac4 } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 12cb41: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12cb44: 85 c0 test %eax,%eax <== NOT EXECUTED 12cb46: 74 09 je 12cb51 <== NOT EXECUTED 12cb48: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cb4b: 56 push %esi <== NOT EXECUTED 12cb4c: ff d0 call *%eax <== NOT EXECUTED 12cb4e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12cb51: e8 4e 5d 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12cb56: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12cb5c: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 12cb61: e9 5e ff ff ff jmp 12cac4 <== 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 6c 73 12 00 cmp 0x12736c,%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 80 bc 12 00 add 0x12bc80,%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 c0 xor %eax,%eax 109e47: 31 d2 xor %edx,%edx 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: 31 f6 xor %esi,%esi 109e6f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 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 03 bd 00 00 call 115bc4 <__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 e6 bc 00 00 call 115bc4 <__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 d2 bc 00 00 call 115bc4 <__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 0011ee80 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 11ee80: 55 push %ebp 11ee81: 89 e5 mov %esp,%ebp 11ee83: 57 push %edi 11ee84: 56 push %esi 11ee85: 53 push %ebx 11ee86: 83 ec 2c sub $0x2c,%esp 11ee89: 8b 5d 08 mov 0x8(%ebp),%ebx 11ee8c: 8b 75 0c mov 0xc(%ebp),%esi 11ee8f: ff 05 b0 75 12 00 incl 0x1275b0 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 11ee95: 83 3d e0 78 12 00 03 cmpl $0x3,0x1278e0 11ee9c: 74 72 je 11ef10 } /* * Continue with realloc(). */ if ( !ptr ) 11ee9e: 85 db test %ebx,%ebx 11eea0: 74 5e je 11ef00 return malloc( size ); if ( !size ) { 11eea2: 85 f6 test %esi,%esi 11eea4: 74 3a je 11eee0 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 11eea6: 52 push %edx 11eea7: 8d 45 e4 lea -0x1c(%ebp),%eax 11eeaa: 50 push %eax 11eeab: 53 push %ebx 11eeac: ff 35 78 34 12 00 pushl 0x123478 11eeb2: e8 59 01 00 00 call 11f010 <_Protected_heap_Get_block_size> 11eeb7: 83 c4 10 add $0x10,%esp 11eeba: 84 c0 test %al,%al 11eebc: 74 32 je 11eef0 #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 ) ) { 11eebe: 50 push %eax 11eebf: 56 push %esi 11eec0: 53 push %ebx 11eec1: ff 35 78 34 12 00 pushl 0x123478 11eec7: e8 7c 01 00 00 call 11f048 <_Protected_heap_Resize_block> 11eecc: 83 c4 10 add $0x10,%esp 11eecf: 84 c0 test %al,%al 11eed1: 74 5d je 11ef30 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 11eed3: 89 d8 mov %ebx,%eax 11eed5: 8d 65 f4 lea -0xc(%ebp),%esp 11eed8: 5b pop %ebx 11eed9: 5e pop %esi 11eeda: 5f pop %edi 11eedb: c9 leave 11eedc: c3 ret 11eedd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 11eee0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11eee3: 53 push %ebx <== NOT EXECUTED 11eee4: e8 33 91 fe ff call 10801c <== NOT EXECUTED 11eee9: 31 db xor %ebx,%ebx <== NOT EXECUTED return (void *) 0; 11eeeb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11eeee: eb e3 jmp 11eed3 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 11eef0: e8 9f 49 ff ff call 113894 <__errno> 11eef5: c7 00 16 00 00 00 movl $0x16,(%eax) 11eefb: 31 db xor %ebx,%ebx return (void *) 0; 11eefd: eb d4 jmp 11eed3 11eeff: 90 nop <== NOT EXECUTED /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 11ef00: 83 ec 0c sub $0xc,%esp 11ef03: 56 push %esi 11ef04: e8 63 93 fe ff call 10826c 11ef09: 89 c3 mov %eax,%ebx 11ef0b: 83 c4 10 add $0x10,%esp 11ef0e: eb c3 jmp 11eed3 /* * 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) 11ef10: a1 18 77 12 00 mov 0x127718,%eax 11ef15: 85 c0 test %eax,%eax 11ef17: 74 04 je 11ef1d } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 11ef19: 31 db xor %ebx,%ebx 11ef1b: eb b6 jmp 11eed3 if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 11ef1d: a1 b4 77 12 00 mov 0x1277b4,%eax 11ef22: 85 c0 test %eax,%eax 11ef24: 0f 84 74 ff ff ff je 11ee9e } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 11ef2a: 31 db xor %ebx,%ebx <== NOT EXECUTED 11ef2c: eb a5 jmp 11eed3 <== NOT EXECUTED 11ef2e: 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 ); 11ef30: 83 ec 0c sub $0xc,%esp 11ef33: 56 push %esi 11ef34: e8 33 93 fe ff call 10826c MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 11ef39: ff 0d a4 75 12 00 decl 0x1275a4 if ( !new_area ) { 11ef3f: 83 c4 10 add $0x10,%esp 11ef42: 85 c0 test %eax,%eax 11ef44: 74 d3 je 11ef19 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 11ef46: 8b 55 e4 mov -0x1c(%ebp),%edx 11ef49: 89 f1 mov %esi,%ecx 11ef4b: 39 d6 cmp %edx,%esi 11ef4d: 76 02 jbe 11ef51 11ef4f: 89 d1 mov %edx,%ecx 11ef51: 89 c7 mov %eax,%edi 11ef53: 89 de mov %ebx,%esi 11ef55: f3 a4 rep movsb %ds:(%esi),%es:(%edi) free( ptr ); 11ef57: 83 ec 0c sub $0xc,%esp 11ef5a: 53 push %ebx 11ef5b: 89 45 d4 mov %eax,-0x2c(%ebp) 11ef5e: e8 b9 90 fe ff call 10801c 11ef63: 8b 45 d4 mov -0x2c(%ebp),%eax 11ef66: 89 c3 mov %eax,%ebx return new_area; 11ef68: 83 c4 10 add $0x10,%esp 11ef6b: e9 63 ff ff ff jmp 11eed3 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 84 92 16 00 mov 0x169284,%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 84 92 16 00 mov 0x169284,%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 25 46 03 00 call 1428a4 <__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 9d 45 03 00 call 1428a4 <__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 001191e0 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 1191e0: 55 push %ebp <== NOT EXECUTED 1191e1: 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; } 1191e3: b8 40 d5 12 00 mov $0x12d540,%eax <== NOT EXECUTED 1191e8: c9 leave <== NOT EXECUTED 1191e9: c3 ret <== NOT EXECUTED 00115ba0 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 115ba0: 55 push %ebp 115ba1: 89 e5 mov %esp,%ebp 115ba3: 53 push %ebx 115ba4: 83 ec 0c sub $0xc,%esp 115ba7: 8b 5d 0c mov 0xc(%ebp),%ebx const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 115baa: 53 push %ebx 115bab: ff 75 08 pushl 0x8(%ebp) 115bae: e8 1d 00 00 00 call 115bd0 if (nap) 115bb3: 83 c4 10 add $0x10,%esp 115bb6: 85 c0 test %eax,%eax 115bb8: 74 0a je 115bc4 return nap->name; 115bba: 8b 00 mov (%eax),%eax return rtems_assoc_name_bad(local_value); } 115bbc: 8b 5d fc mov -0x4(%ebp),%ebx 115bbf: c9 leave 115bc0: c3 ret 115bc1: 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); 115bc4: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED } 115bc7: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 115bca: 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); 115bcb: e9 10 36 00 00 jmp 1191e0 <== NOT EXECUTED 00113824 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 113824: 55 push %ebp 113825: 89 e5 mov %esp,%ebp 113827: 57 push %edi 113828: 56 push %esi 113829: 53 push %ebx 11382a: 8b 45 08 mov 0x8(%ebp),%eax 11382d: 8b 55 0c mov 0xc(%ebp),%edx const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 113830: 8b 30 mov (%eax),%esi 113832: 85 f6 test %esi,%esi 113834: 74 3e je 113874 113836: bf ad 16 12 00 mov $0x1216ad,%edi 11383b: b9 0a 00 00 00 mov $0xa,%ecx 113840: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 113842: 74 18 je 11385c 113844: 31 c9 xor %ecx,%ecx 113846: eb 09 jmp 113851 default_ap = ap++; for ( ; ap->name; ap++) 113848: 83 c0 0c add $0xc,%eax 11384b: 8b 18 mov (%eax),%ebx 11384d: 85 db test %ebx,%ebx 11384f: 74 1b je 11386c if (ap->local_value == local_value) 113851: 39 50 04 cmp %edx,0x4(%eax) 113854: 75 f2 jne 113848 return ap; return default_ap; } 113856: 5b pop %ebx 113857: 5e pop %esi 113858: 5f pop %edi 113859: c9 leave 11385a: c3 ret 11385b: 90 nop <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 11385c: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED for ( ; ap->name; ap++) 11385f: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 113862: 85 f6 test %esi,%esi <== NOT EXECUTED 113864: 74 f0 je 113856 <== NOT EXECUTED 113866: 89 c1 mov %eax,%ecx <== NOT EXECUTED 113868: 89 d8 mov %ebx,%eax <== NOT EXECUTED 11386a: eb e5 jmp 113851 <== NOT EXECUTED 11386c: 89 c8 mov %ecx,%eax if (ap->local_value == local_value) return ap; return default_ap; } 11386e: 5b pop %ebx 11386f: 5e pop %esi 113870: 5f pop %edi 113871: c9 leave 113872: c3 ret 113873: 90 nop <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 113874: 31 c0 xor %eax,%eax <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; } 113876: 5b pop %ebx <== NOT EXECUTED 113877: 5e pop %esi <== NOT EXECUTED 113878: 5f pop %edi <== NOT EXECUTED 113879: c9 leave <== NOT EXECUTED 11387a: c3 ret <== NOT EXECUTED 0011234c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 11234c: 55 push %ebp 11234d: 89 e5 mov %esp,%ebp 11234f: 57 push %edi 112350: 56 push %esi 112351: 53 push %ebx 112352: 8b 45 08 mov 0x8(%ebp),%eax 112355: 8b 55 0c mov 0xc(%ebp),%edx const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 112358: 8b 30 mov (%eax),%esi 11235a: 85 f6 test %esi,%esi 11235c: 74 3e je 11239c 11235e: bf ad 16 12 00 mov $0x1216ad,%edi 112363: b9 0a 00 00 00 mov $0xa,%ecx 112368: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 11236a: 74 18 je 112384 11236c: 31 c9 xor %ecx,%ecx 11236e: eb 09 jmp 112379 default_ap = ap++; for ( ; ap->name; ap++) 112370: 83 c0 0c add $0xc,%eax 112373: 8b 18 mov (%eax),%ebx 112375: 85 db test %ebx,%ebx 112377: 74 1b je 112394 if (ap->remote_value == remote_value) 112379: 39 50 08 cmp %edx,0x8(%eax) 11237c: 75 f2 jne 112370 return ap; return default_ap; } 11237e: 5b pop %ebx 11237f: 5e pop %esi 112380: 5f pop %edi 112381: c9 leave 112382: c3 ret 112383: 90 nop <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 112384: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED for ( ; ap->name; ap++) 112387: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 11238a: 85 f6 test %esi,%esi <== NOT EXECUTED 11238c: 74 f0 je 11237e <== NOT EXECUTED 11238e: 89 c1 mov %eax,%ecx <== NOT EXECUTED 112390: 89 d8 mov %ebx,%eax <== NOT EXECUTED 112392: eb e5 jmp 112379 <== NOT EXECUTED 112394: 89 c8 mov %ecx,%eax if (ap->remote_value == remote_value) return ap; return default_ap; } 112396: 5b pop %ebx 112397: 5e pop %esi 112398: 5f pop %edi 112399: c9 leave 11239a: c3 ret 11239b: 90 nop <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 11239c: 31 c0 xor %eax,%eax <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; } 11239e: 5b pop %ebx <== NOT EXECUTED 11239f: 5e pop %esi <== NOT EXECUTED 1123a0: 5f pop %edi <== NOT EXECUTED 1123a1: c9 leave <== NOT EXECUTED 1123a2: c3 ret <== NOT EXECUTED 00113090 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 113090: 55 push %ebp <== NOT EXECUTED 113091: 89 e5 mov %esp,%ebp <== NOT EXECUTED 113093: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 113096: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 113099: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 11309c: e8 83 07 00 00 call 113824 <== NOT EXECUTED if (nap) 1130a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1130a4: 85 c0 test %eax,%eax <== NOT EXECUTED 1130a6: 74 03 je 1130ab <== NOT EXECUTED return nap->remote_value; 1130a8: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED return 0; } 1130ab: c9 leave <== NOT EXECUTED 1130ac: c3 ret <== NOT EXECUTED 001127b0 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { 1127b0: 55 push %ebp 1127b1: 89 e5 mov %esp,%ebp 1127b3: 57 push %edi 1127b4: 56 push %esi 1127b5: 53 push %ebx 1127b6: 83 ec 2c sub $0x2c,%esp 1127b9: 8b 5d 08 mov 0x8(%ebp),%ebx 1127bc: 8b 7d 0c mov 0xc(%ebp),%edi 1127bf: 8b 45 10 mov 0x10(%ebp),%eax 1127c2: 8b 75 14 mov 0x14(%ebp),%esi Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 1127c5: 85 db test %ebx,%ebx 1127c7: 0f 84 87 00 00 00 je 112854 return RTEMS_INVALID_NAME; if ( !id ) 1127cd: 85 f6 test %esi,%esi 1127cf: 0f 84 bb 00 00 00 je 112890 return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { 1127d5: f7 c7 10 00 00 00 test $0x10,%edi 1127db: 0f 84 83 00 00 00 je 112864 the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) 1127e1: 85 c0 test %eax,%eax 1127e3: 0f 84 87 00 00 00 je 112870 if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 1127e9: 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; 1127f0: 89 45 e4 mov %eax,-0x1c(%ebp) 1127f3: a1 18 77 12 00 mov 0x127718,%eax 1127f8: 40 inc %eax 1127f9: a3 18 77 12 00 mov %eax,0x127718 * 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 ); 1127fe: 83 ec 0c sub $0xc,%esp 112801: 68 a0 81 12 00 push $0x1281a0 112806: e8 c5 9f ff ff call 10c7d0 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 11280b: 83 c4 10 add $0x10,%esp 11280e: 85 c0 test %eax,%eax 112810: 74 6a je 11287c _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; 112812: 89 78 10 mov %edi,0x10(%eax) _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 112815: 83 ec 08 sub $0x8,%esp 112818: 8d 55 e0 lea -0x20(%ebp),%edx 11281b: 52 push %edx 11281c: 8d 50 14 lea 0x14(%eax),%edx 11281f: 52 push %edx 112820: 89 45 d4 mov %eax,-0x2c(%ebp) 112823: e8 5c 04 00 00 call 112c84 <_CORE_barrier_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 112828: 8b 45 d4 mov -0x2c(%ebp),%eax 11282b: 8b 50 08 mov 0x8(%eax),%edx 11282e: 0f b7 fa movzwl %dx,%edi 112831: 8b 0d bc 81 12 00 mov 0x1281bc,%ecx 112837: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 11283a: 89 58 0c mov %ebx,0xc(%eax) &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; 11283d: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 11283f: e8 b0 ac ff ff call 10d4f4 <_Thread_Enable_dispatch> 112844: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 112846: 83 c4 10 add $0x10,%esp } 112849: 8d 65 f4 lea -0xc(%ebp),%esp 11284c: 5b pop %ebx 11284d: 5e pop %esi 11284e: 5f pop %edi 11284f: c9 leave 112850: c3 ret 112851: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 112854: b8 03 00 00 00 mov $0x3,%eax *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 112859: 8d 65 f4 lea -0xc(%ebp),%esp 11285c: 5b pop %ebx 11285d: 5e pop %esi 11285e: 5f pop %edi 11285f: c9 leave 112860: c3 ret 112861: 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; 112864: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp) 11286b: eb 83 jmp 1127f0 11286d: 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 ) 112870: b0 0a mov $0xa,%al *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 112872: 8d 65 f4 lea -0xc(%ebp),%esp 112875: 5b pop %ebx 112876: 5e pop %esi 112877: 5f pop %edi 112878: c9 leave 112879: c3 ret 11287a: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); 11287c: e8 73 ac ff ff call 10d4f4 <_Thread_Enable_dispatch> 112881: b8 05 00 00 00 mov $0x5,%eax *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 112886: 8d 65 f4 lea -0xc(%ebp),%esp 112889: 5b pop %ebx 11288a: 5e pop %esi 11288b: 5f pop %edi 11288c: c9 leave 11288d: c3 ret 11288e: 66 90 xchg %ax,%ax <== NOT EXECUTED CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 112890: b8 09 00 00 00 mov $0x9,%eax 112895: eb b2 jmp 112849 00112898 : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { 112898: 55 push %ebp 112899: 89 e5 mov %esp,%ebp 11289b: 53 push %ebx 11289c: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 11289f: 8d 45 f4 lea -0xc(%ebp),%eax 1128a2: 50 push %eax 1128a3: ff 75 08 pushl 0x8(%ebp) 1128a6: 68 a0 81 12 00 push $0x1281a0 1128ab: e8 d0 a3 ff ff call 10cc80 <_Objects_Get> 1128b0: 89 c3 mov %eax,%ebx Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 1128b2: 83 c4 10 add $0x10,%esp 1128b5: 8b 4d f4 mov -0xc(%ebp),%ecx 1128b8: 85 c9 test %ecx,%ecx 1128ba: 75 38 jne 1128f4 case OBJECTS_LOCAL: _CORE_barrier_Flush( 1128bc: 52 push %edx 1128bd: 6a 02 push $0x2 1128bf: 6a 00 push $0x0 1128c1: 8d 40 14 lea 0x14(%eax),%eax 1128c4: 50 push %eax 1128c5: e8 6e b3 ff ff call 10dc38 <_Thread_queue_Flush> &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); 1128ca: 59 pop %ecx 1128cb: 58 pop %eax 1128cc: 53 push %ebx 1128cd: 68 a0 81 12 00 push $0x1281a0 1128d2: e8 75 9f ff ff call 10c84c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); 1128d7: 58 pop %eax 1128d8: 5a pop %edx 1128d9: 53 push %ebx 1128da: 68 a0 81 12 00 push $0x1281a0 1128df: e8 6c a2 ff ff call 10cb50 <_Objects_Free> _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 1128e4: e8 0b ac ff ff call 10d4f4 <_Thread_Enable_dispatch> 1128e9: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1128eb: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1128ee: 8b 5d fc mov -0x4(%ebp),%ebx 1128f1: c9 leave 1128f2: c3 ret 1128f3: 90 nop <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 1128f4: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1128f9: 8b 5d fc mov -0x4(%ebp),%ebx 1128fc: c9 leave 1128fd: c3 ret 00112964 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { 112964: 55 push %ebp 112965: 89 e5 mov %esp,%ebp 112967: 53 push %ebx 112968: 83 ec 18 sub $0x18,%esp 11296b: 8b 5d 08 mov 0x8(%ebp),%ebx 11296e: 8d 45 f4 lea -0xc(%ebp),%eax 112971: 50 push %eax 112972: 53 push %ebx 112973: 68 a0 81 12 00 push $0x1281a0 112978: e8 03 a3 ff ff call 10cc80 <_Objects_Get> Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 11297d: 83 c4 10 add $0x10,%esp 112980: 8b 55 f4 mov -0xc(%ebp),%edx 112983: 85 d2 test %edx,%edx 112985: 75 35 jne 1129bc case OBJECTS_LOCAL: _CORE_barrier_Wait( 112987: 83 ec 0c sub $0xc,%esp 11298a: 6a 00 push $0x0 11298c: ff 75 0c pushl 0xc(%ebp) 11298f: 6a 01 push $0x1 112991: 53 push %ebx 112992: 83 c0 14 add $0x14,%eax 112995: 50 push %eax 112996: e8 4d 03 00 00 call 112ce8 <_CORE_barrier_Wait> id, true, timeout, NULL ); _Thread_Enable_dispatch(); 11299b: 83 c4 20 add $0x20,%esp 11299e: e8 51 ab ff ff call 10d4f4 <_Thread_Enable_dispatch> return _Barrier_Translate_core_barrier_return_code( 1129a3: 83 ec 0c sub $0xc,%esp 1129a6: a1 d8 77 12 00 mov 0x1277d8,%eax 1129ab: ff 70 34 pushl 0x34(%eax) 1129ae: e8 61 0e 00 00 call 113814 <_Barrier_Translate_core_barrier_return_code> 1129b3: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1129b6: 8b 5d fc mov -0x4(%ebp),%ebx 1129b9: c9 leave 1129ba: c3 ret 1129bb: 90 nop <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 1129bc: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1129c1: 8b 5d fc mov -0x4(%ebp),%ebx 1129c4: c9 leave 1129c5: 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 78 7d 12 00 mov 0x127d78,%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 04 ce 00 00 call 114ee4 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 4c 22 13 00 00 cmpb $0x0,0x13224c 10be85: 74 0d je 10be94 return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); 10be87: 8b 15 cc 22 13 00 mov 0x1322cc,%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 4c 22 13 00 00 cmpb $0x0,0x13224c 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 31 19 00 00 call 10d828 <_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 a6 98 00 00 call 1157d4 /* 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 62 12 00 divl 0x12622c 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 ef 16 00 00 cmpb $0x0,0x16ef0c 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 39 19 00 00 call 112534 <_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 0012daa4 : * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { 12daa4: 55 push %ebp 12daa5: 89 e5 mov %esp,%ebp 12daa7: 83 ec 08 sub $0x8,%esp 12daaa: 8b 45 08 mov 0x8(%ebp),%eax if ( !uptime ) 12daad: 85 c0 test %eax,%eax 12daaf: 74 13 je 12dac4 return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); 12dab1: 83 ec 0c sub $0xc,%esp 12dab4: 50 push %eax 12dab5: e8 e2 0f 00 00 call 12ea9c <_TOD_Get_uptime_as_timespec> 12daba: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12dabc: 83 c4 10 add $0x10,%esp } 12dabf: c9 leave 12dac0: c3 ret 12dac1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) 12dac4: b0 09 mov $0x9,%al return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } 12dac6: c9 leave 12dac7: 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 62 12 00 imul 0x12622c,%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 38 22 13 00 mov 0x132238,%eax 10bfea: 40 inc %eax 10bfeb: a3 38 22 13 00 mov %eax,0x132238 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 11 19 00 00 call 10d90c <_TOD_Set> _Thread_Enable_dispatch(); 10bffb: e8 20 2c 00 00 call 10ec20 <_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 e4 78 12 00 mov %eax,0x1278e4 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 c5 14 00 00 call 10c398 <_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 f8 77 12 00 push $0x1277f8 10aedb: e8 04 37 00 00 call 10e5e4 <_Watchdog_Tickle> _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); 10aee0: e8 7f 31 00 00 call 10e064 <_Thread_Tickle_timeslice> * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); 10aee5: a0 e8 77 12 00 mov 0x1277e8,%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 18 77 12 00 mov 0x127718,%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 93 24 00 00 call 10d398 <_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 51 51 00 00 call 10d880 <_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 4c 28 13 00 push $0x13284c 10873f: e8 c8 73 00 00 call 10fb0c <_Timespec_Subtract> } } } #endif (*print)( 108744: 5b pop %ebx 108745: 5e pop %esi 108746: 68 94 30 12 00 push $0x123094 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 0c 22 13 00 mov 0x13220c(,%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 97 72 00 00 call 10fa38 <_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 07 33 12 00 push $0x123307 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 f4 32 12 00 push $0x1232f4 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 f8 22 13 00 mov 0x1322f8,%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 00 23 13 00 push $0x132300 10883c: e8 cb 72 00 00 call 10fb0c <_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 af 71 00 00 call 10f9fc <_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 08 32 12 00 push $0x123208 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 00113060 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 113060: 55 push %ebp <== NOT EXECUTED 113061: 89 e5 mov %esp,%ebp <== NOT EXECUTED 113063: 53 push %ebx <== NOT EXECUTED 113064: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 113067: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 11306a: 68 40 17 12 00 push $0x121740 <== NOT EXECUTED 11306f: e8 1c 00 00 00 call 113090 <== NOT EXECUTED 113074: 89 c3 mov %eax,%ebx <== NOT EXECUTED 113076: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 113079: 85 c0 test %eax,%eax <== NOT EXECUTED 11307b: 74 07 je 113084 <== NOT EXECUTED { errno = rc; 11307d: e8 12 08 00 00 call 113894 <__errno> <== NOT EXECUTED 113082: 89 18 mov %ebx,(%eax) <== NOT EXECUTED return -1; } return -1; } 113084: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 113089: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11308c: c9 leave <== NOT EXECUTED 11308d: 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 75 24 00 00 call 10d518 <_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 f4 00 00 00 mov 0xf4(%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 29 24 00 00 call 10d4f4 <_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 00110778 : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { 110778: 55 push %ebp 110779: 89 e5 mov %esp,%ebp 11077b: 57 push %edi 11077c: 56 push %esi 11077d: 53 push %ebx 11077e: 83 ec 1c sub $0x1c,%esp 110781: 8b 75 0c mov 0xc(%ebp),%esi 110784: 8b 5d 10 mov 0x10(%ebp),%ebx Extension_Control *the_extension; if ( !id ) 110787: 85 db test %ebx,%ebx 110789: 0f 84 85 00 00 00 je 110814 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 11078f: 8b 45 08 mov 0x8(%ebp),%eax 110792: 85 c0 test %eax,%eax 110794: 75 0e jne 1107a4 110796: b8 03 00 00 00 mov $0x3,%eax ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 11079b: 8d 65 f4 lea -0xc(%ebp),%esp 11079e: 5b pop %ebx 11079f: 5e pop %esi 1107a0: 5f pop %edi 1107a1: c9 leave 1107a2: c3 ret 1107a3: 90 nop <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 1107a4: a1 18 53 13 00 mov 0x135318,%eax 1107a9: 40 inc %eax 1107aa: a3 18 53 13 00 mov %eax,0x135318 #ifndef __EXTENSION_MANAGER_inl #define __EXTENSION_MANAGER_inl RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); 1107af: 83 ec 0c sub $0xc,%esp 1107b2: 68 a0 55 13 00 push $0x1355a0 1107b7: e8 e4 0c 00 00 call 1114a0 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { 1107bc: 83 c4 10 add $0x10,%esp 1107bf: 85 c0 test %eax,%eax 1107c1: 74 45 je 110808 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; 1107c3: 8d 78 24 lea 0x24(%eax),%edi 1107c6: b9 08 00 00 00 mov $0x8,%ecx 1107cb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _User_extensions_Add_set( extension ); 1107cd: 83 ec 0c sub $0xc,%esp 1107d0: 8d 50 10 lea 0x10(%eax),%edx 1107d3: 52 push %edx 1107d4: 89 45 e4 mov %eax,-0x1c(%ebp) 1107d7: e8 3c 27 00 00 call 112f18 <_User_extensions_Add_set> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 1107dc: 8b 45 e4 mov -0x1c(%ebp),%eax 1107df: 8b 50 08 mov 0x8(%eax),%edx 1107e2: 0f b7 f2 movzwl %dx,%esi 1107e5: 8b 0d bc 55 13 00 mov 0x1355bc,%ecx 1107eb: 89 04 b1 mov %eax,(%ecx,%esi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 1107ee: 8b 4d 08 mov 0x8(%ebp),%ecx 1107f1: 89 48 0c mov %ecx,0xc(%eax) &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; 1107f4: 89 13 mov %edx,(%ebx) _Thread_Enable_dispatch(); 1107f6: e8 39 1a 00 00 call 112234 <_Thread_Enable_dispatch> 1107fb: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1107fd: 83 c4 10 add $0x10,%esp } 110800: 8d 65 f4 lea -0xc(%ebp),%esp 110803: 5b pop %ebx 110804: 5e pop %esi 110805: 5f pop %edi 110806: c9 leave 110807: c3 ret _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); 110808: e8 27 1a 00 00 call 112234 <_Thread_Enable_dispatch> 11080d: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 110812: eb 87 jmp 11079b rtems_id *id ) { Extension_Control *the_extension; if ( !id ) 110814: b8 09 00 00 00 mov $0x9,%eax 110819: eb 80 jmp 11079b 0011081c : #include rtems_status_code rtems_extension_delete( rtems_id id ) { 11081c: 55 push %ebp 11081d: 89 e5 mov %esp,%ebp 11081f: 53 push %ebx 110820: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) 110823: 8d 45 f4 lea -0xc(%ebp),%eax 110826: 50 push %eax 110827: ff 75 08 pushl 0x8(%ebp) 11082a: 68 a0 55 13 00 push $0x1355a0 11082f: e8 1c 11 00 00 call 111950 <_Objects_Get> 110834: 89 c3 mov %eax,%ebx Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 110836: 83 c4 10 add $0x10,%esp 110839: 8b 55 f4 mov -0xc(%ebp),%edx 11083c: 85 d2 test %edx,%edx 11083e: 75 38 jne 110878 case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); 110840: 83 ec 0c sub $0xc,%esp 110843: 8d 40 10 lea 0x10(%eax),%eax 110846: 50 push %eax 110847: e8 cc 27 00 00 call 113018 <_User_extensions_Remove_set> _Objects_Close( &_Extension_Information, &the_extension->Object ); 11084c: 59 pop %ecx 11084d: 58 pop %eax 11084e: 53 push %ebx 11084f: 68 a0 55 13 00 push $0x1355a0 110854: e8 c3 0c 00 00 call 11151c <_Objects_Close> RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); 110859: 58 pop %eax 11085a: 5a pop %edx 11085b: 53 push %ebx 11085c: 68 a0 55 13 00 push $0x1355a0 110861: e8 ba 0f 00 00 call 111820 <_Objects_Free> _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 110866: e8 c9 19 00 00 call 112234 <_Thread_Enable_dispatch> 11086b: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11086d: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 110870: 8b 5d fc mov -0x4(%ebp),%ebx 110873: c9 leave 110874: c3 ret 110875: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 110878: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11087d: 8b 5d fc mov -0x4(%ebp),%ebx 110880: c9 leave 110881: 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 38 53 12 00 mov 0x125338,%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 38 53 12 00 mov 0x125338,%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 99 b8 00 00 call 113894 <__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 81 b8 00 00 call 113894 <__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 5e b9 00 00 call 113894 <__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 4c b9 00 00 call 113894 <__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 3a b9 00 00 call 113894 <__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 38 53 12 00 mov 0x125338,%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 8c f4 11 00 mov 0x11f48c,%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 74 34 12 00 mov 0x123474,%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 38 53 12 00 mov 0x125338,%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 d3 0d 12 00 push $0x120dd3 107d83: e8 e0 01 00 00 call 107f68 rtems_filesystem_root = loc; 107d88: 8b 3d 38 53 12 00 mov 0x125338,%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 d3 0d 12 00 push $0x120dd3 107da9: e8 ba 01 00 00 call 107f68 rtems_filesystem_current = loc; 107dae: 8b 3d 38 53 12 00 mov 0x125338,%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 d5 0d 12 00 push $0x120dd5 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 ee 3d 00 00 call 10bbdc <== 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 e1 3d 00 00 call 10bbdc <== 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 d4 3d 00 00 call 10bbdc <== 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 00112b08 : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 112b08: 55 push %ebp 112b09: 89 e5 mov %esp,%ebp 112b0b: 56 push %esi 112b0c: 53 push %ebx 112b0d: 8b 45 08 mov 0x8(%ebp),%eax 112b10: 8b 4d 0c mov 0xc(%ebp),%ecx 112b13: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112b16: 39 05 40 81 12 00 cmp %eax,0x128140 112b1c: 76 22 jbe 112b40 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; 112b1e: 8d 34 40 lea (%eax,%eax,2),%esi 112b21: 8b 15 44 81 12 00 mov 0x128144,%edx 112b27: 8b 54 f2 08 mov 0x8(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 112b2b: 85 d2 test %edx,%edx 112b2d: 74 1d je 112b4c 112b2f: 89 5d 10 mov %ebx,0x10(%ebp) 112b32: 89 4d 0c mov %ecx,0xc(%ebp) 112b35: 89 45 08 mov %eax,0x8(%ebp) } 112b38: 5b pop %ebx 112b39: 5e pop %esi 112b3a: 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; 112b3b: ff e2 jmp *%edx 112b3d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112b40: 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; } 112b45: 5b pop %ebx 112b46: 5e pop %esi 112b47: c9 leave 112b48: c3 ret 112b49: 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; 112b4c: 31 c0 xor %eax,%eax } 112b4e: 5b pop %ebx 112b4f: 5e pop %esi 112b50: c9 leave 112b51: c3 ret 00112b54 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 112b54: 55 push %ebp 112b55: 89 e5 mov %esp,%ebp 112b57: 56 push %esi 112b58: 53 push %ebx 112b59: 8b 45 08 mov 0x8(%ebp),%eax 112b5c: 8b 4d 0c mov 0xc(%ebp),%ecx 112b5f: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112b62: 39 05 40 81 12 00 cmp %eax,0x128140 112b68: 76 22 jbe 112b8c return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; 112b6a: 8d 34 40 lea (%eax,%eax,2),%esi 112b6d: 8b 15 44 81 12 00 mov 0x128144,%edx 112b73: 8b 54 f2 14 mov 0x14(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 112b77: 85 d2 test %edx,%edx 112b79: 74 1d je 112b98 112b7b: 89 5d 10 mov %ebx,0x10(%ebp) 112b7e: 89 4d 0c mov %ecx,0xc(%ebp) 112b81: 89 45 08 mov %eax,0x8(%ebp) } 112b84: 5b pop %ebx 112b85: 5e pop %esi 112b86: 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; 112b87: ff e2 jmp *%edx 112b89: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112b8c: 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; } 112b91: 5b pop %ebx 112b92: 5e pop %esi 112b93: c9 leave 112b94: c3 ret 112b95: 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; 112b98: 31 c0 xor %eax,%eax } 112b9a: 5b pop %ebx 112b9b: 5e pop %esi 112b9c: c9 leave 112b9d: c3 ret 001109cc : rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 1109cc: 55 push %ebp 1109cd: 89 e5 mov %esp,%ebp 1109cf: 56 push %esi 1109d0: 53 push %ebx 1109d1: 8b 45 08 mov 0x8(%ebp),%eax 1109d4: 8b 4d 0c mov 0xc(%ebp),%ecx 1109d7: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 1109da: 39 05 40 81 12 00 cmp %eax,0x128140 1109e0: 76 1e jbe 110a00 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; 1109e2: 8d 34 40 lea (%eax,%eax,2),%esi 1109e5: 8b 15 44 81 12 00 mov 0x128144,%edx 1109eb: 8b 14 f2 mov (%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 1109ee: 85 d2 test %edx,%edx 1109f0: 74 1a je 110a0c 1109f2: 89 5d 10 mov %ebx,0x10(%ebp) 1109f5: 89 4d 0c mov %ecx,0xc(%ebp) 1109f8: 89 45 08 mov %eax,0x8(%ebp) } 1109fb: 5b pop %ebx 1109fc: 5e pop %esi 1109fd: 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; 1109fe: ff e2 jmp *%edx void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 110a00: 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; } 110a05: 5b pop %ebx 110a06: 5e pop %esi 110a07: c9 leave 110a08: c3 ret 110a09: 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; 110a0c: 31 c0 xor %eax,%eax } 110a0e: 5b pop %ebx 110a0f: 5e pop %esi 110a10: c9 leave 110a11: 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 67 bc 00 00 call 113894 <__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 00112ba0 : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 112ba0: 55 push %ebp 112ba1: 89 e5 mov %esp,%ebp 112ba3: 56 push %esi 112ba4: 53 push %ebx 112ba5: 8b 45 08 mov 0x8(%ebp),%eax 112ba8: 8b 4d 0c mov 0xc(%ebp),%ecx 112bab: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112bae: 39 05 40 81 12 00 cmp %eax,0x128140 112bb4: 76 22 jbe 112bd8 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; 112bb6: 8d 34 40 lea (%eax,%eax,2),%esi 112bb9: 8b 15 44 81 12 00 mov 0x128144,%edx 112bbf: 8b 54 f2 04 mov 0x4(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 112bc3: 85 d2 test %edx,%edx 112bc5: 74 1d je 112be4 112bc7: 89 5d 10 mov %ebx,0x10(%ebp) 112bca: 89 4d 0c mov %ecx,0xc(%ebp) 112bcd: 89 45 08 mov %eax,0x8(%ebp) } 112bd0: 5b pop %ebx 112bd1: 5e pop %esi 112bd2: 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; 112bd3: ff e2 jmp *%edx 112bd5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112bd8: 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; } 112bdd: 5b pop %ebx 112bde: 5e pop %esi 112bdf: c9 leave 112be0: c3 ret 112be1: 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; 112be4: 31 c0 xor %eax,%eax } 112be6: 5b pop %ebx 112be7: 5e pop %esi 112be8: c9 leave 112be9: c3 ret 00112bec : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 112bec: 55 push %ebp 112bed: 89 e5 mov %esp,%ebp 112bef: 56 push %esi 112bf0: 53 push %ebx 112bf1: 8b 45 08 mov 0x8(%ebp),%eax 112bf4: 8b 4d 0c mov 0xc(%ebp),%ecx 112bf7: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112bfa: 39 05 40 81 12 00 cmp %eax,0x128140 112c00: 76 22 jbe 112c24 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; 112c02: 8d 34 40 lea (%eax,%eax,2),%esi 112c05: 8b 15 44 81 12 00 mov 0x128144,%edx 112c0b: 8b 54 f2 0c mov 0xc(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 112c0f: 85 d2 test %edx,%edx 112c11: 74 1d je 112c30 112c13: 89 5d 10 mov %ebx,0x10(%ebp) 112c16: 89 4d 0c mov %ecx,0xc(%ebp) 112c19: 89 45 08 mov %eax,0x8(%ebp) } 112c1c: 5b pop %ebx 112c1d: 5e pop %esi 112c1e: 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; 112c1f: ff e2 jmp *%edx 112c21: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112c24: 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; } 112c29: 5b pop %ebx 112c2a: 5e pop %esi 112c2b: c9 leave 112c2c: c3 ret 112c2d: 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; 112c30: 31 c0 xor %eax,%eax } 112c32: 5b pop %ebx 112c33: 5e pop %esi 112c34: c9 leave 112c35: c3 ret 0010d3c4 : 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 ) { 10d3c4: 55 push %ebp 10d3c5: 89 e5 mov %esp,%ebp 10d3c7: 57 push %edi 10d3c8: 56 push %esi 10d3c9: 53 push %ebx 10d3ca: 83 ec 0c sub $0xc,%esp 10d3cd: 8b 5d 08 mov 0x8(%ebp),%ebx 10d3d0: 8b 75 0c mov 0xc(%ebp),%esi 10d3d3: 8b 55 10 mov 0x10(%ebp),%edx rtems_device_major_number major_limit = _IO_Number_of_drivers; 10d3d6: a1 80 d7 12 00 mov 0x12d780,%eax if ( rtems_interrupt_is_in_progress() ) 10d3db: 8b 0d 94 cd 12 00 mov 0x12cd94,%ecx 10d3e1: 85 c9 test %ecx,%ecx 10d3e3: 0f 85 ab 00 00 00 jne 10d494 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 10d3e9: 85 d2 test %edx,%edx 10d3eb: 0f 84 e3 00 00 00 je 10d4d4 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 10d3f1: 89 02 mov %eax,(%edx) if ( driver_table == NULL ) 10d3f3: 85 f6 test %esi,%esi 10d3f5: 0f 84 d9 00 00 00 je 10d4d4 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d3fb: 8b 3e mov (%esi),%edi 10d3fd: 85 ff test %edi,%edi 10d3ff: 0f 84 c3 00 00 00 je 10d4c8 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 10d405: 39 d8 cmp %ebx,%eax 10d407: 76 7b jbe 10d484 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d409: a1 f8 cc 12 00 mov 0x12ccf8,%eax 10d40e: 40 inc %eax 10d40f: a3 f8 cc 12 00 mov %eax,0x12ccf8 return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 10d414: 85 db test %ebx,%ebx 10d416: 0f 85 88 00 00 00 jne 10d4a4 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 10d41c: 8b 0d 80 d7 12 00 mov 0x12d780,%ecx rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 10d422: 85 c9 test %ecx,%ecx 10d424: 0f 84 b7 00 00 00 je 10d4e1 10d42a: 8b 3d 84 d7 12 00 mov 0x12d784,%edi 10d430: 89 f8 mov %edi,%eax 10d432: eb 08 jmp 10d43c 10d434: 43 inc %ebx 10d435: 83 c0 18 add $0x18,%eax 10d438: 39 d9 cmp %ebx,%ecx 10d43a: 76 0b jbe 10d447 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d43c: 83 38 00 cmpl $0x0,(%eax) 10d43f: 75 f3 jne 10d434 10d441: 83 78 04 00 cmpl $0x0,0x4(%eax) 10d445: 75 ed jne 10d434 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 10d447: 89 1a mov %ebx,(%edx) if ( m != n ) 10d449: 39 d9 cmp %ebx,%ecx 10d44b: 0f 84 97 00 00 00 je 10d4e8 10d451: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d454: 8d 04 c7 lea (%edi,%eax,8),%eax } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 10d457: b9 06 00 00 00 mov $0x6,%ecx 10d45c: 89 c7 mov %eax,%edi 10d45e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _Thread_Enable_dispatch(); 10d460: e8 2f 1a 00 00 call 10ee94 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 10d465: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) 10d46c: c7 45 0c 00 00 00 00 movl $0x0,0xc(%ebp) 10d473: 89 5d 08 mov %ebx,0x8(%ebp) } 10d476: 83 c4 0c add $0xc,%esp 10d479: 5b pop %ebx 10d47a: 5e pop %esi 10d47b: 5f pop %edi 10d47c: c9 leave _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 10d47d: e9 da 84 00 00 jmp 11595c 10d482: 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 ) 10d484: 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 ); } 10d489: 83 c4 0c add $0xc,%esp 10d48c: 5b pop %ebx 10d48d: 5e pop %esi 10d48e: 5f pop %edi 10d48f: c9 leave 10d490: c3 ret 10d491: 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() ) 10d494: 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 ); } 10d499: 83 c4 0c add $0xc,%esp 10d49c: 5b pop %ebx 10d49d: 5e pop %esi 10d49e: 5f pop %edi 10d49f: c9 leave 10d4a0: c3 ret 10d4a1: 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; 10d4a4: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d4a7: c1 e0 03 shl $0x3,%eax 10d4aa: 03 05 84 d7 12 00 add 0x12d784,%eax static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d4b0: 8b 38 mov (%eax),%edi 10d4b2: 85 ff test %edi,%edi 10d4b4: 74 3e je 10d4f4 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(); 10d4b6: e8 d9 19 00 00 call 10ee94 <_Thread_Enable_dispatch> 10d4bb: 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 ); } 10d4c0: 83 c4 0c add $0xc,%esp 10d4c3: 5b pop %ebx 10d4c4: 5e pop %esi 10d4c5: 5f pop %edi 10d4c6: c9 leave 10d4c7: 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; 10d4c8: 8b 4e 04 mov 0x4(%esi),%ecx 10d4cb: 85 c9 test %ecx,%ecx 10d4cd: 0f 85 32 ff ff ff jne 10d405 10d4d3: 90 nop _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 10d4d4: b8 09 00 00 00 mov $0x9,%eax } 10d4d9: 83 c4 0c add $0xc,%esp 10d4dc: 5b pop %ebx 10d4dd: 5e pop %esi 10d4de: 5f pop %edi 10d4df: c9 leave 10d4e0: c3 ret if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 10d4e1: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED 10d4e7: 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(); 10d4e8: e8 a7 19 00 00 call 10ee94 <_Thread_Enable_dispatch> 10d4ed: b8 05 00 00 00 mov $0x5,%eax return sc; 10d4f2: eb 95 jmp 10d489 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d4f4: 8b 48 04 mov 0x4(%eax),%ecx 10d4f7: 85 c9 test %ecx,%ecx 10d4f9: 75 bb jne 10d4b6 if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 10d4fb: 89 1a mov %ebx,(%edx) 10d4fd: e9 55 ff ff ff jmp 10d457 0010d504 : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { 10d504: 55 push %ebp 10d505: 89 e5 mov %esp,%ebp 10d507: 57 push %edi 10d508: 83 ec 04 sub $0x4,%esp 10d50b: 8b 45 08 mov 0x8(%ebp),%eax if ( rtems_interrupt_is_in_progress() ) 10d50e: 8b 15 94 cd 12 00 mov 0x12cd94,%edx 10d514: 85 d2 test %edx,%edx 10d516: 75 44 jne 10d55c return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { 10d518: 39 05 80 d7 12 00 cmp %eax,0x12d780 10d51e: 77 0c ja 10d52c 10d520: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d525: 5a pop %edx 10d526: 5f pop %edi 10d527: c9 leave 10d528: c3 ret 10d529: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d52c: 8b 15 f8 cc 12 00 mov 0x12ccf8,%edx 10d532: 42 inc %edx 10d533: 89 15 f8 cc 12 00 mov %edx,0x12ccf8 if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( 10d539: 8d 14 40 lea (%eax,%eax,2),%edx 10d53c: c1 e2 03 shl $0x3,%edx 10d53f: 03 15 84 d7 12 00 add 0x12d784,%edx 10d545: b9 18 00 00 00 mov $0x18,%ecx 10d54a: 31 c0 xor %eax,%eax 10d54c: 89 d7 mov %edx,%edi 10d54e: f3 aa rep stos %al,%es:(%edi) &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); 10d550: e8 3f 19 00 00 call 10ee94 <_Thread_Enable_dispatch> 10d555: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d557: 5a pop %edx 10d558: 5f pop %edi 10d559: c9 leave 10d55a: c3 ret 10d55b: 90 nop <== NOT EXECUTED rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) 10d55c: b8 12 00 00 00 mov $0x12,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d561: 5a pop %edx 10d562: 5f pop %edi 10d563: c9 leave 10d564: c3 ret 00112c38 : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 112c38: 55 push %ebp 112c39: 89 e5 mov %esp,%ebp 112c3b: 56 push %esi 112c3c: 53 push %ebx 112c3d: 8b 45 08 mov 0x8(%ebp),%eax 112c40: 8b 4d 0c mov 0xc(%ebp),%ecx 112c43: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112c46: 39 05 40 81 12 00 cmp %eax,0x128140 112c4c: 76 22 jbe 112c70 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; 112c4e: 8d 34 40 lea (%eax,%eax,2),%esi 112c51: 8b 15 44 81 12 00 mov 0x128144,%edx 112c57: 8b 54 f2 10 mov 0x10(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 112c5b: 85 d2 test %edx,%edx 112c5d: 74 1d je 112c7c 112c5f: 89 5d 10 mov %ebx,0x10(%ebp) 112c62: 89 4d 0c mov %ecx,0xc(%ebp) 112c65: 89 45 08 mov %eax,0x8(%ebp) } 112c68: 5b pop %ebx 112c69: 5e pop %esi 112c6a: 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; 112c6b: ff e2 jmp *%edx 112c6d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 112c70: 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; } 112c75: 5b pop %ebx 112c76: 5e pop %esi 112c77: c9 leave 112c78: c3 ret 112c79: 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; 112c7c: 31 c0 xor %eax,%eax } 112c7e: 5b pop %ebx 112c7f: 5e pop %esi 112c80: c9 leave 112c81: 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 6c 34 12 00 mov 0x12346c,%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 59 78 00 00 call 10f90c 1080b3: 89 c2 mov %eax,%edx 1080b5: a3 80 75 12 00 mov %eax,0x127580 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 84 75 12 00 mov %eax,0x127584 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 1080c6: 8b 1d 6c 34 12 00 mov 0x12346c,%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 88 75 12 00 push $0x127588 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 68 34 12 00 mov 0x123468,%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 aa 3a 00 00 call 10bbdc <== 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 a0 3a 00 00 call 10bbdc <== NOT EXECUTED 0010fb88 : */ int rtems_libio_is_file_open( void *node_access ) { 10fb88: 55 push %ebp 10fb89: 89 e5 mov %esp,%ebp 10fb8b: 53 push %ebx 10fb8c: 83 ec 08 sub $0x8,%esp 10fb8f: 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 ); 10fb92: 6a 00 push $0x0 10fb94: 6a 00 push $0x0 10fb96: ff 35 88 75 12 00 pushl 0x127588 10fb9c: e8 ff b9 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++){ 10fba1: a1 80 75 12 00 mov 0x127580,%eax 10fba6: 8b 0d 6c 34 12 00 mov 0x12346c,%ecx 10fbac: 83 c4 10 add $0x10,%esp 10fbaf: 85 c9 test %ecx,%ecx 10fbb1: 74 18 je 10fbcb 10fbb3: 31 d2 xor %edx,%edx 10fbb5: eb 04 jmp 10fbbb 10fbb7: 90 nop <== NOT EXECUTED 10fbb8: 83 c0 40 add $0x40,%eax if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 10fbbb: f6 40 15 01 testb $0x1,0x15(%eax) 10fbbf: 74 05 je 10fbc6 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 10fbc1: 39 58 18 cmp %ebx,0x18(%eax) 10fbc4: 74 1e je 10fbe4 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10fbc6: 42 inc %edx 10fbc7: 39 ca cmp %ecx,%edx 10fbc9: 72 ed jb 10fbb8 10fbcb: 31 db xor %ebx,%ebx break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 10fbcd: 83 ec 0c sub $0xc,%esp 10fbd0: ff 35 88 75 12 00 pushl 0x127588 10fbd6: e8 c1 ba ff ff call 10b69c return result; } 10fbdb: 89 d8 mov %ebx,%eax 10fbdd: 8b 5d fc mov -0x4(%ebp),%ebx 10fbe0: c9 leave 10fbe1: c3 ret 10fbe2: 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++){ 10fbe4: bb 01 00 00 00 mov $0x1,%ebx 10fbe9: eb e2 jmp 10fbcd 0010fbec : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 10fbec: 55 push %ebp 10fbed: 89 e5 mov %esp,%ebp 10fbef: 53 push %ebx 10fbf0: 83 ec 08 sub $0x8,%esp 10fbf3: 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 ); 10fbf6: 6a 00 push $0x0 10fbf8: 6a 00 push $0x0 10fbfa: ff 35 88 75 12 00 pushl 0x127588 10fc00: e8 9b b9 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++){ 10fc05: a1 80 75 12 00 mov 0x127580,%eax 10fc0a: 8b 0d 6c 34 12 00 mov 0x12346c,%ecx 10fc10: 83 c4 10 add $0x10,%esp 10fc13: 85 c9 test %ecx,%ecx 10fc15: 74 18 je 10fc2f 10fc17: 31 d2 xor %edx,%edx 10fc19: eb 04 jmp 10fc1f 10fc1b: 90 nop <== NOT EXECUTED 10fc1c: 83 c0 40 add $0x40,%eax if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 10fc1f: f6 40 15 01 testb $0x1,0x15(%eax) 10fc23: 74 05 je 10fc2a /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { 10fc25: 39 58 28 cmp %ebx,0x28(%eax) 10fc28: 74 1e je 10fc48 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10fc2a: 42 inc %edx 10fc2b: 39 ca cmp %ecx,%edx 10fc2d: 72 ed jb 10fc1c 10fc2f: 31 db xor %ebx,%ebx break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 10fc31: 83 ec 0c sub $0xc,%esp 10fc34: ff 35 88 75 12 00 pushl 0x127588 10fc3a: e8 5d ba ff ff call 10b69c return result; } 10fc3f: 89 d8 mov %ebx,%eax 10fc41: 8b 5d fc mov -0x4(%ebp),%ebx 10fc44: c9 leave 10fc45: c3 ret 10fc46: 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++){ 10fc48: bb 01 00 00 00 mov $0x1,%ebx 10fc4d: eb e2 jmp 10fc31 0012c930 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 12c930: 55 push %ebp 12c931: 89 e5 mov %esp,%ebp 12c933: 57 push %edi 12c934: 56 push %esi 12c935: 53 push %ebx 12c936: 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); 12c939: 8d 45 e4 lea -0x1c(%ebp),%eax 12c93c: 50 push %eax 12c93d: 6a 00 push $0x0 12c93f: 6a 00 push $0x0 12c941: e8 52 17 00 00 call 12e098 if (sc != RTEMS_SUCCESSFUL) return sc; 12c946: 83 c4 10 add $0x10,%esp 12c949: 85 c0 test %eax,%eax 12c94b: 0f 85 89 00 00 00 jne 12c9da /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 12c951: 8b 1d 84 92 16 00 mov 0x169284,%ebx 12c957: 81 fb e0 ed 16 00 cmp $0x16ede0,%ebx 12c95d: 0f 84 81 00 00 00 je 12c9e4 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 12c963: be e0 ed 16 00 mov $0x16ede0,%esi 12c968: b9 12 00 00 00 mov $0x12,%ecx 12c96d: 89 df mov %ebx,%edi 12c96f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) rtems_current_user_env->task_id=task_id; /* mark the local values*/ 12c971: 8b 45 e4 mov -0x1c(%ebp),%eax 12c974: 89 03 mov %eax,(%ebx) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 12c976: 8d 7b 18 lea 0x18(%ebx),%edi 12c979: 8b 35 ac ed 16 00 mov 0x16edac,%esi 12c97f: 83 c6 1c add $0x1c,%esi 12c982: b1 05 mov $0x5,%cl 12c984: 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); 12c986: 83 ec 0c sub $0xc,%esp 12c989: 6a 00 push $0x0 12c98b: 8d 5d d0 lea -0x30(%ebp),%ebx 12c98e: 53 push %ebx 12c98f: 6a 00 push $0x0 12c991: 6a 01 push $0x1 12c993: 68 66 5b 16 00 push $0x165b66 12c998: e8 0f 04 fe ff call 10cdac rtems_filesystem_root = loc; 12c99d: 8b 3d 84 92 16 00 mov 0x169284,%edi 12c9a3: 83 c7 18 add $0x18,%edi 12c9a6: b9 05 00 00 00 mov $0x5,%ecx 12c9ab: 89 de mov %ebx,%esi 12c9ad: f3 a5 rep movsl %ds:(%esi),%es:(%edi) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 12c9af: 83 c4 14 add $0x14,%esp 12c9b2: 6a 00 push $0x0 12c9b4: 53 push %ebx 12c9b5: 6a 00 push $0x0 12c9b7: 6a 01 push $0x1 12c9b9: 68 66 5b 16 00 push $0x165b66 12c9be: e8 e9 03 fe ff call 10cdac rtems_filesystem_current = loc; 12c9c3: 8b 3d 84 92 16 00 mov 0x169284,%edi 12c9c9: 83 c7 04 add $0x4,%edi 12c9cc: b9 05 00 00 00 mov $0x5,%ecx 12c9d1: 89 de mov %ebx,%esi 12c9d3: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c9d5: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12c9d7: 83 c4 20 add $0x20,%esp } 12c9da: 8d 65 f4 lea -0xc(%ebp),%esp 12c9dd: 5b pop %ebx 12c9de: 5e pop %esi 12c9df: 5f pop %edi 12c9e0: c9 leave 12c9e1: c3 ret 12c9e2: 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)); 12c9e4: 83 ec 0c sub $0xc,%esp 12c9e7: 6a 48 push $0x48 12c9e9: e8 ae 09 fe ff call 10d39c 12c9ee: 89 c3 mov %eax,%ebx if (!tmp) 12c9f0: 83 c4 10 add $0x10,%esp 12c9f3: 85 c0 test %eax,%eax 12c9f5: 74 25 je 12ca1c #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); 12c9f7: 51 push %ecx 12c9f8: 68 3c c8 12 00 push $0x12c83c 12c9fd: 68 84 92 16 00 push $0x169284 12ca02: 6a 00 push $0x0 12ca04: e8 73 1a 00 00 call 12e47c if (sc != RTEMS_SUCCESSFUL) { 12ca09: 83 c4 10 add $0x10,%esp 12ca0c: 85 c0 test %eax,%eax 12ca0e: 75 14 jne 12ca24 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 12ca10: 89 1d 84 92 16 00 mov %ebx,0x169284 12ca16: e9 48 ff ff ff jmp 12c963 12ca1b: 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) 12ca1c: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED 12ca21: eb b7 jmp 12c9da <== NOT EXECUTED 12ca23: 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); 12ca24: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ca27: 53 push %ebx <== NOT EXECUTED 12ca28: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED 12ca2b: e8 30 04 fe ff call 10ce60 <== NOT EXECUTED return sc; 12ca30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12ca33: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 12ca36: eb a2 jmp 12c9da <== NOT EXECUTED 0012c898 : * 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) { 12c898: 55 push %ebp <== NOT EXECUTED 12c899: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c89b: 53 push %ebx <== NOT EXECUTED 12c89c: 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); 12c89f: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 12c8a2: 50 push %eax <== NOT EXECUTED 12c8a3: 6a 00 push $0x0 <== NOT EXECUTED 12c8a5: 6a 00 push $0x0 <== NOT EXECUTED 12c8a7: e8 ec 17 00 00 call 12e098 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 12c8ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c8af: 85 c0 test %eax,%eax <== NOT EXECUTED 12c8b1: 75 30 jne 12c8e3 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 12c8b3: 8b 1d 84 92 16 00 mov 0x169284,%ebx <== NOT EXECUTED 12c8b9: 8b 03 mov (%ebx),%eax <== NOT EXECUTED 12c8bb: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED 12c8be: 74 28 je 12c8e8 <== 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, 12c8c0: 52 push %edx <== NOT EXECUTED 12c8c1: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12c8c4: 50 push %eax <== NOT EXECUTED 12c8c5: 68 84 92 16 00 push $0x169284 <== NOT EXECUTED 12c8ca: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 12c8cd: e8 fa 1c 00 00 call 12e5cc <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 12c8d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c8d5: 85 c0 test %eax,%eax <== NOT EXECUTED 12c8d7: 74 33 je 12c90c <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 12c8d9: c7 05 84 92 16 00 e0 movl $0x16ede0,0x169284 <== NOT EXECUTED 12c8e0: ed 16 00 <== NOT EXECUTED return sc; } 12c8e3: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c8e6: c9 leave <== NOT EXECUTED 12c8e7: 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); 12c8e8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c8eb: 68 84 92 16 00 push $0x169284 <== NOT EXECUTED 12c8f0: 6a 00 push $0x0 <== NOT EXECUTED 12c8f2: e8 49 1c 00 00 call 12e540 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 12c8f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c8fa: 85 c0 test %eax,%eax <== NOT EXECUTED 12c8fc: 75 e5 jne 12c8e3 <== NOT EXECUTED free_user_env(tmp); 12c8fe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c901: 53 push %ebx <== NOT EXECUTED 12c902: e8 35 ff ff ff call 12c83c <== NOT EXECUTED 12c907: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c90a: eb b4 jmp 12c8c0 <== 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); 12c90c: 50 push %eax <== NOT EXECUTED 12c90d: 68 3c c8 12 00 push $0x12c83c <== NOT EXECUTED 12c912: 68 84 92 16 00 push $0x169284 <== NOT EXECUTED 12c917: 6a 00 push $0x0 <== NOT EXECUTED 12c919: e8 5e 1b 00 00 call 12e47c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 12c91e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c921: 85 c0 test %eax,%eax <== NOT EXECUTED 12c923: 75 b4 jne 12c8d9 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 12c925: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED 12c928: 89 15 84 92 16 00 mov %edx,0x169284 <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 12c92e: eb b3 jmp 12c8e3 <== NOT EXECUTED 0010fb48 : */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 10fb48: 55 push %ebp 10fb49: 89 e5 mov %esp,%ebp 10fb4b: 8b 55 08 mov 0x8(%ebp),%edx uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 10fb4e: 89 d0 mov %edx,%eax 10fb50: 83 e0 06 and $0x6,%eax 10fb53: 83 f8 06 cmp $0x6,%eax 10fb56: 74 2c je 10fb84 fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 10fb58: f6 c2 02 test $0x2,%dl 10fb5b: 75 23 jne 10fb80 10fb5d: 89 d0 mov %edx,%eax <== NOT EXECUTED 10fb5f: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED 10fb62: 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 ) { 10fb65: f6 c2 01 test $0x1,%dl 10fb68: 74 03 je 10fb6d fcntl_flags |= O_NONBLOCK; 10fb6a: 80 cc 40 or $0x40,%ah } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 10fb6d: f6 c6 02 test $0x2,%dh 10fb70: 74 03 je 10fb75 fcntl_flags |= O_APPEND; 10fb72: 83 c8 08 or $0x8,%eax } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 10fb75: 80 e6 04 and $0x4,%dh 10fb78: 74 03 je 10fb7d fcntl_flags |= O_CREAT; 10fb7a: 80 cc 02 or $0x2,%ah } return fcntl_flags; } 10fb7d: c9 leave 10fb7e: c3 ret 10fb7f: 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) { 10fb80: 31 c0 xor %eax,%eax 10fb82: eb e1 jmp 10fb65 uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 10fb84: b0 02 mov $0x2,%al <== NOT EXECUTED 10fb86: eb dd jmp 10fb65 <== 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 58 71 16 00 pushl 0x167158 <== NOT EXECUTED 10d46f: e8 b4 5e 00 00 call 113328 <_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 ed 16 00 add %eax,0x16eda4 <== NOT EXECUTED 10d486: 11 15 a8 ed 16 00 adc %edx,0x16eda8 <== 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 58 71 16 00 pushl 0x167158 <== NOT EXECUTED 10d4b0: e8 73 5e 00 00 call 113328 <_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 ed 16 00 add 0x16ed9c,%eax <== NOT EXECUTED 10d4c0: 13 15 a0 ed 16 00 adc 0x16eda0,%edx <== NOT EXECUTED 10d4c6: a3 9c ed 16 00 mov %eax,0x16ed9c <== NOT EXECUTED 10d4cb: 89 15 a0 ed 16 00 mov %edx,0x16eda0 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 10d4d1: 2b 05 a4 ed 16 00 sub 0x16eda4,%eax <== NOT EXECUTED if (current_depth > s->max_depth) 10d4d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10d4da: 3b 05 98 ed 16 00 cmp 0x16ed98,%eax <== NOT EXECUTED 10d4e0: 76 05 jbe 10d4e7 <== NOT EXECUTED s->max_depth = current_depth; 10d4e2: a3 98 ed 16 00 mov %eax,0x16ed98 <== 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 ed 16 00 mov $0x16ed80,%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 001148a8 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 1148a8: 55 push %ebp 1148a9: 89 e5 mov %esp,%ebp 1148ab: 53 push %ebx 1148ac: 83 ec 14 sub $0x14,%esp 1148af: 8b 5d 08 mov 0x8(%ebp),%ebx void *return_this; /* * Parameter error checks */ if ( !pointer ) 1148b2: 85 db test %ebx,%ebx 1148b4: 74 5b je 114911 return EINVAL; *pointer = NULL; 1148b6: 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()) && 1148bc: 83 3d c0 ce 12 00 03 cmpl $0x3,0x12cec0 1148c3: 74 43 je 114908 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 1148c5: e8 d6 4c ff ff call 1095a0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 1148ca: 6a 00 push $0x0 1148cc: ff 75 0c pushl 0xc(%ebp) 1148cf: ff 75 10 pushl 0x10(%ebp) 1148d2: ff 35 58 89 12 00 pushl 0x128958 1148d8: e8 8b 9f ff ff call 10e868 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 1148dd: 83 c4 10 add $0x10,%esp 1148e0: 85 c0 test %eax,%eax 1148e2: 74 38 je 11491c return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 1148e4: 8b 15 68 ae 12 00 mov 0x12ae68,%edx 1148ea: 85 d2 test %edx,%edx 1148ec: 74 10 je 1148fe (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 1148ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1148f1: 53 push %ebx <== NOT EXECUTED 1148f2: 89 45 f4 mov %eax,-0xc(%ebp) <== NOT EXECUTED 1148f5: ff 52 04 call *0x4(%edx) <== NOT EXECUTED 1148f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1148fb: 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; 1148fe: 89 03 mov %eax,(%ebx) 114900: 31 c0 xor %eax,%eax return 0; } 114902: 8b 5d fc mov -0x4(%ebp),%ebx 114905: c9 leave 114906: c3 ret 114907: 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()) && 114908: e8 3b 4c ff ff call 109548 11490d: 84 c0 test %al,%al 11490f: 75 b4 jne 1148c5 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; 114911: b8 16 00 00 00 mov $0x16,%eax } 114916: 8b 5d fc mov -0x4(%ebp),%ebx 114919: c9 leave 11491a: c3 ret 11491b: 90 nop <== NOT EXECUTED return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 11491c: b0 0c mov $0xc,%al 11491e: eb e2 jmp 114902 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 a0 26 14 00 push $0x1426a0 115f75: e8 1e 4d 00 00 call 11ac98 <_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 d4 34 00 00 call 11947c <_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 ca 55 00 00 call 11b57c <_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 78 11 13 00 mov 0x131178,%eax 113a81: 40 inc %eax 113a82: a3 78 11 13 00 mov %eax,0x131178 #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); 113a87: 89 4d d4 mov %ecx,-0x2c(%ebp) 113a8a: e8 a5 5a 00 00 call 119534 <_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 f1 10 00 00 call 114bac <_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 20 1b 13 00 push $0x131b20 113ace: e8 15 1f 00 00 call 1159e8 <_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 34 29 00 00 call 11640c <_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 3c 1b 13 00 mov 0x131b3c,%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 ff 28 00 00 call 11640c <_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 f3 28 00 00 call 11640c <_Thread_Enable_dispatch> 113b19: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 113b1e: e9 2f ff ff ff jmp 113a52 00117b5c : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { 117b5c: 55 push %ebp 117b5d: 89 e5 mov %esp,%ebp 117b5f: 53 push %ebx 117b60: 83 ec 18 sub $0x18,%esp 117b63: 8d 45 f4 lea -0xc(%ebp),%eax 117b66: 50 push %eax 117b67: ff 75 08 pushl 0x8(%ebp) 117b6a: 68 20 5d 13 00 push $0x135d20 117b6f: e8 dc 9d ff ff call 111950 <_Objects_Get> 117b74: 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 ) { 117b76: 83 c4 10 add $0x10,%esp 117b79: 8b 4d f4 mov -0xc(%ebp),%ecx 117b7c: 85 c9 test %ecx,%ecx 117b7e: 75 3c jne 117bbc case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, 117b80: 83 ec 08 sub $0x8,%esp 117b83: 50 push %eax 117b84: 68 20 5d 13 00 push $0x135d20 117b89: e8 8e 99 ff ff call 11151c <_Objects_Close> &the_message_queue->Object ); _CORE_message_queue_Close( 117b8e: 83 c4 0c add $0xc,%esp 117b91: 6a 05 push $0x5 117b93: 6a 00 push $0x0 117b95: 8d 43 14 lea 0x14(%ebx),%eax 117b98: 50 push %eax 117b99: e8 0e 05 00 00 call 1180ac <_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 ); 117b9e: 58 pop %eax 117b9f: 5a pop %edx 117ba0: 53 push %ebx 117ba1: 68 20 5d 13 00 push $0x135d20 117ba6: e8 75 9c ff ff call 111820 <_Objects_Free> 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 117bab: e8 84 a6 ff ff call 112234 <_Thread_Enable_dispatch> 117bb0: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 117bb2: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117bb5: 8b 5d fc mov -0x4(%ebp),%ebx 117bb8: c9 leave 117bb9: c3 ret 117bba: 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 ) { 117bbc: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117bc1: 8b 5d fc mov -0x4(%ebp),%ebx 117bc4: c9 leave 117bc5: 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 a0 26 14 00 push $0x1426a0 11615f: e8 34 4b 00 00 call 11ac98 <_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 b8 33 00 00 call 11953c <_CORE_message_queue_Flush> 116184: 89 03 mov %eax,(%ebx) _Thread_Enable_dispatch(); 116186: e8 f1 53 00 00 call 11b57c <_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 a0 26 14 00 push $0x1426a0 1161bf: e8 d4 4a 00 00 call 11ac98 <_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 9a 53 00 00 call 11b57c <_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 20 1b 13 00 push $0x131b20 113b6b: e8 a8 1f 00 00 call 115b18 <_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 d4 10 00 00 call 114c6c <_CORE_message_queue_Seize> buffer, size, wait, timeout ); _Thread_Enable_dispatch(); 113b98: 83 c4 20 add $0x20,%esp 113b9b: e8 6c 28 00 00 call 11640c <_Thread_Enable_dispatch> return _Message_queue_Translate_core_message_queue_return_code( 113ba0: 83 ec 0c sub $0xc,%esp 113ba3: a1 38 12 13 00 mov 0x131238,%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 c0 80 12 00 push $0x1280c0 10b2b9: e8 c2 19 00 00 call 10cc80 <_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 13 0c 00 00 call 10bf00 <_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 fd 21 00 00 call 10d4f4 <_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 a0 26 14 00 push $0x1426a0 116351: e8 42 49 00 00 call 11ac98 <_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 0b 34 00 00 call 119790 <_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 ed 51 00 00 call 11b57c <_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 0010b7fc : const char *rtems_object_get_api_class_name( int the_api, int the_class ) { 10b7fc: 55 push %ebp 10b7fd: 89 e5 mov %esp,%ebp 10b7ff: 83 ec 08 sub $0x8,%esp 10b802: 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 ) 10b805: 83 f8 01 cmp $0x1,%eax 10b808: 74 36 je 10b840 api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) 10b80a: 83 f8 02 cmp $0x2,%eax 10b80d: 74 29 je 10b838 api_assoc = rtems_object_api_classic_assoc; #ifdef RTEMS_POSIX_API else if ( the_api == OBJECTS_POSIX_API ) 10b80f: 83 f8 03 cmp $0x3,%eax 10b812: 74 08 je 10b81c 10b814: b8 37 21 12 00 mov $0x122137,%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"; } 10b819: c9 leave 10b81a: c3 ret 10b81b: 90 nop <== NOT EXECUTED if ( the_api == OBJECTS_INTERNAL_API ) api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) api_assoc = rtems_object_api_classic_assoc; #ifdef RTEMS_POSIX_API else if ( the_api == OBJECTS_POSIX_API ) 10b81c: b8 20 61 12 00 mov $0x126120,%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 ); 10b821: 83 ec 08 sub $0x8,%esp 10b824: ff 75 0c pushl 0xc(%ebp) 10b827: 50 push %eax 10b828: e8 2f 48 00 00 call 11005c if ( class_assoc ) 10b82d: 83 c4 10 add $0x10,%esp 10b830: 85 c0 test %eax,%eax 10b832: 74 14 je 10b848 return class_assoc->name; 10b834: 8b 00 mov (%eax),%eax return "BAD CLASS"; } 10b836: c9 leave 10b837: c3 ret 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 ) 10b838: b8 a0 60 12 00 mov $0x1260a0,%eax 10b83d: eb e2 jmp 10b821 10b83f: 90 nop <== NOT EXECUTED ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 10b840: b8 80 60 12 00 mov $0x126080,%eax 10b845: eb da jmp 10b821 10b847: 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 ) 10b848: b8 3f 21 12 00 mov $0x12213f,%eax return class_assoc->name; return "BAD CLASS"; } 10b84d: c9 leave 10b84e: c3 ret 0010b850 : }; const char *rtems_object_get_api_name( int api ) { 10b850: 55 push %ebp 10b851: 89 e5 mov %esp,%ebp 10b853: 83 ec 10 sub $0x10,%esp const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); 10b856: ff 75 08 pushl 0x8(%ebp) 10b859: 68 c0 61 12 00 push $0x1261c0 10b85e: e8 f9 47 00 00 call 11005c if ( api_assoc ) 10b863: 83 c4 10 add $0x10,%esp 10b866: 85 c0 test %eax,%eax 10b868: 74 06 je 10b870 return api_assoc->name; 10b86a: 8b 00 mov (%eax),%eax return "BAD CLASS"; } 10b86c: c9 leave 10b86d: c3 ret 10b86e: 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 ) 10b870: b8 3f 21 12 00 mov $0x12213f,%eax return api_assoc->name; return "BAD CLASS"; } 10b875: c9 leave 10b876: c3 ret 0010cd78 : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { 10cd78: 55 push %ebp 10cd79: 89 e5 mov %esp,%ebp 10cd7b: 57 push %edi 10cd7c: 56 push %esi 10cd7d: 53 push %ebx 10cd7e: 83 ec 0c sub $0xc,%esp 10cd81: 8b 5d 10 mov 0x10(%ebp),%ebx int i; /* * Validate parameters and look up information structure. */ if ( !info ) 10cd84: 85 db test %ebx,%ebx 10cd86: 74 5c je 10cde4 return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 10cd88: 83 ec 08 sub $0x8,%esp 10cd8b: ff 75 0c pushl 0xc(%ebp) 10cd8e: ff 75 08 pushl 0x8(%ebp) 10cd91: e8 a2 1a 00 00 call 10e838 <_Objects_Get_information> if ( !obj_info ) 10cd96: 83 c4 10 add $0x10,%esp 10cd99: 85 c0 test %eax,%eax 10cd9b: 74 57 je 10cdf4 return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; 10cd9d: 8b 50 08 mov 0x8(%eax),%edx 10cda0: 89 13 mov %edx,(%ebx) info->maximum_id = obj_info->maximum_id; 10cda2: 8b 50 0c mov 0xc(%eax),%edx 10cda5: 89 53 04 mov %edx,0x4(%ebx) info->auto_extend = obj_info->auto_extend; 10cda8: 8a 50 12 mov 0x12(%eax),%dl 10cdab: 88 53 0c mov %dl,0xc(%ebx) info->maximum = obj_info->maximum; 10cdae: 0f b7 70 10 movzwl 0x10(%eax),%esi 10cdb2: 89 73 08 mov %esi,0x8(%ebx) for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 10cdb5: 85 f6 test %esi,%esi 10cdb7: 74 3f je 10cdf8 10cdb9: 8b 78 1c mov 0x1c(%eax),%edi 10cdbc: b9 01 00 00 00 mov $0x1,%ecx 10cdc1: b8 01 00 00 00 mov $0x1,%eax 10cdc6: 31 d2 xor %edx,%edx if ( !obj_info->local_table[i] ) unallocated++; 10cdc8: 83 3c 8f 01 cmpl $0x1,(%edi,%ecx,4) 10cdcc: 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++ ) 10cdcf: 40 inc %eax 10cdd0: 89 c1 mov %eax,%ecx 10cdd2: 39 c6 cmp %eax,%esi 10cdd4: 73 f2 jae 10cdc8 if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 10cdd6: 89 53 10 mov %edx,0x10(%ebx) 10cdd9: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10cddb: 8d 65 f4 lea -0xc(%ebp),%esp 10cdde: 5b pop %ebx 10cddf: 5e pop %esi 10cde0: 5f pop %edi 10cde1: c9 leave 10cde2: c3 ret 10cde3: 90 nop <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) 10cde4: b8 09 00 00 00 mov $0x9,%eax unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 10cde9: 8d 65 f4 lea -0xc(%ebp),%esp 10cdec: 5b pop %ebx 10cded: 5e pop %esi 10cdee: 5f pop %edi 10cdef: c9 leave 10cdf0: c3 ret 10cdf1: 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 ) 10cdf4: b0 0a mov $0xa,%al 10cdf6: eb e3 jmp 10cddb 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++ ) 10cdf8: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cdfa: eb da jmp 10cdd6 <== 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 eb 1c 00 00 call 1119b8 <_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 ac c1 12 00 mov 0x12c1ac(,%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 0010b884 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { 10b884: 55 push %ebp 10b885: 89 e5 mov %esp,%ebp 10b887: 57 push %edi 10b888: 56 push %esi 10b889: 53 push %ebx 10b88a: 83 ec 1c sub $0x1c,%esp 10b88d: 8b 75 08 mov 0x8(%ebp),%esi 10b890: 8b 7d 0c mov 0xc(%ebp),%edi Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 10b893: 85 ff test %edi,%edi 10b895: 74 61 je 10b8f8 return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 10b897: 85 f6 test %esi,%esi 10b899: 74 35 je 10b8d0 information = _Objects_Get_information_id( tmpId ); 10b89b: 83 ec 0c sub $0xc,%esp 10b89e: 56 push %esi 10b89f: e8 80 18 00 00 call 10d124 <_Objects_Get_information_id> 10b8a4: 89 c3 mov %eax,%ebx if ( !information ) 10b8a6: 83 c4 10 add $0x10,%esp 10b8a9: 85 c0 test %eax,%eax 10b8ab: 74 16 je 10b8c3 return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); 10b8ad: 50 push %eax 10b8ae: 8d 45 e4 lea -0x1c(%ebp),%eax 10b8b1: 50 push %eax 10b8b2: 56 push %esi 10b8b3: 53 push %ebx 10b8b4: e8 0f 1a 00 00 call 10d2c8 <_Objects_Get> switch ( location ) { 10b8b9: 83 c4 10 add $0x10,%esp 10b8bc: 8b 4d e4 mov -0x1c(%ebp),%ecx 10b8bf: 85 c9 test %ecx,%ecx 10b8c1: 74 19 je 10b8dc case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 10b8c3: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b8c8: 8d 65 f4 lea -0xc(%ebp),%esp 10b8cb: 5b pop %ebx 10b8cc: 5e pop %esi 10b8cd: 5f pop %edi 10b8ce: c9 leave 10b8cf: c3 ret Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 10b8d0: a1 58 86 12 00 mov 0x128658,%eax 10b8d5: 8b 70 08 mov 0x8(%eax),%esi 10b8d8: eb c1 jmp 10b89b 10b8da: 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 ); 10b8dc: 52 push %edx 10b8dd: 57 push %edi 10b8de: 50 push %eax 10b8df: 53 push %ebx 10b8e0: e8 df 1b 00 00 call 10d4c4 <_Objects_Set_name> _Thread_Enable_dispatch(); 10b8e5: e8 26 23 00 00 call 10dc10 <_Thread_Enable_dispatch> 10b8ea: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b8ec: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b8ef: 8d 65 f4 lea -0xc(%ebp),%esp 10b8f2: 5b pop %ebx 10b8f3: 5e pop %esi 10b8f4: 5f pop %edi 10b8f5: c9 leave 10b8f6: c3 ret 10b8f7: 90 nop <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 10b8f8: b8 09 00 00 00 mov $0x9,%eax 10b8fd: eb c9 jmp 10b8c8 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 f8 1c 14 00 mov 0x141cf8,%eax 116425: 40 inc %eax 116426: a3 f8 1c 14 00 mov %eax,0x141cf8 * 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 80 1b 14 00 push $0x141b80 116433: 89 55 e0 mov %edx,-0x20(%ebp) 116436: e8 71 43 00 00 call 11a7ac <_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 c6 2f 00 00 call 11943c <_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 9c 1b 14 00 mov 0x141b9c,%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 e7 50 00 00 call 11b57c <_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 d7 50 00 00 call 11b57c <_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 80 1b 14 00 push $0x141b80 1164c2: e8 d1 47 00 00 call 11ac98 <_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 98 50 00 00 call 11b57c <_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 80 1b 14 00 push $0x141b80 1164f5: 89 45 e4 mov %eax,-0x1c(%ebp) 1164f8: e8 2b 43 00 00 call 11a828 <_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 80 1b 14 00 push $0x141b80 116508: e8 1f 46 00 00 call 11ab2c <_Objects_Free> 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 11650d: e8 6a 50 00 00 call 11b57c <_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 80 1b 14 00 push $0x141b80 116538: e8 5b 47 00 00 call 11ac98 <_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 c3 2e 00 00 call 119418 <_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 15 50 00 00 call 11b57c <_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 e7 4f 00 00 call 11b57c <_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 80 1b 14 00 push $0x141b80 1165d7: e8 bc 46 00 00 call 11ac98 <_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 d3 2d 00 00 call 1193f4 <_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 53 4f 00 00 call 11b57c <_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 3f 4f 00 00 call 11b57c <_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 00111710 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 111710: 55 push %ebp 111711: 89 e5 mov %esp,%ebp 111713: 83 ec 08 sub $0x8,%esp if (!rtems_pipe_configured) 111716: 80 3d 44 59 12 00 00 cmpb $0x0,0x125944 11171d: 74 09 je 111728 return; if (rtems_pipe_semaphore) 11171f: a1 4c 73 12 00 mov 0x12734c,%eax <== NOT EXECUTED 111724: 85 c0 test %eax,%eax <== NOT EXECUTED 111726: 74 04 je 11172c <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } 111728: c9 leave 111729: c3 ret 11172a: 66 90 xchg %ax,%ax <== NOT EXECUTED if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( 11172c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11172f: 68 4c 73 12 00 push $0x12734c <== NOT EXECUTED 111734: 6a 00 push $0x0 <== NOT EXECUTED 111736: 6a 54 push $0x54 <== NOT EXECUTED 111738: 6a 01 push $0x1 <== NOT EXECUTED 11173a: 68 45 50 49 50 push $0x50495045 <== NOT EXECUTED 11173f: e8 e4 9b 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) 111744: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 111747: 85 c0 test %eax,%eax <== NOT EXECUTED 111749: 75 0d jne 111758 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 11174b: e8 54 97 ff ff call 10aea4 <== NOT EXECUTED rtems_pipe_no = now; 111750: 66 a3 54 73 12 00 mov %ax,0x127354 <== NOT EXECUTED } 111756: c9 leave <== NOT EXECUTED 111757: 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); 111758: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11175b: 50 push %eax <== NOT EXECUTED 11175c: e8 7b a4 ff ff call 10bbdc <== 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 f8 1c 14 00 mov 0x141cf8,%eax 115a31: 40 inc %eax 115a32: a3 f8 1c 14 00 mov %eax,0x141cf8 * 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 40 1b 14 00 push $0x141b40 115a3f: 89 55 e4 mov %edx,-0x1c(%ebp) 115a42: e8 65 4d 00 00 call 11a7ac <_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 5c 1b 14 00 mov 0x141b5c,%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 05 5b 00 00 call 11b57c <_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 f3 5a 00 00 call 11b57c <_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 40 1b 14 00 push $0x141b40 115aa2: e8 f1 51 00 00 call 11ac98 <_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 40 1b 14 00 push $0x141b40 115aba: 89 45 e4 mov %eax,-0x1c(%ebp) 115abd: e8 66 4d 00 00 call 11a828 <_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 40 1b 14 00 push $0x141b40 115acd: e8 5a 50 00 00 call 11ab2c <_Objects_Free> _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 115ad2: e8 a5 5a 00 00 call 11b57c <_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 40 1b 14 00 push $0x141b40 115b07: e8 8c 51 00 00 call 11ac98 <_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 44 5a 00 00 call 11b57c <_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 40 1b 14 00 push $0x141b40 115b97: e8 fc 50 00 00 call 11ac98 <_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 b4 59 00 00 call 11b57c <_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 c0 1b 14 00 push $0x141bc0 11665f: e8 34 46 00 00 call 11ac98 <_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 b8 1d 14 00 cmp 0x141db8,%eax 116685: 74 11 je 116698 _Thread_Enable_dispatch(); 116687: e8 f0 4e 00 00 call 11b57c <_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 1c 63 00 00 call 11c9c0 <_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 cc 4e 00 00 call 11b57c <_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 98 a5 12 00 mov 0x12a598,%eax 10c20c: 40 inc %eax 10c20d: a3 98 a5 12 00 mov %eax,0x12a598 * 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 a0 a4 12 00 push $0x12a4a0 10c21a: e8 51 1e 00 00 call 10e070 <_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 58 a6 12 00 mov 0x12a658,%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 bc a4 12 00 mov 0x12a4bc,%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 da 2b 00 00 call 10ee78 <_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 bb 2b 00 00 call 10ee78 <_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 0013d830 : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { 13d830: 55 push %ebp 13d831: 89 e5 mov %esp,%ebp 13d833: 53 push %ebx 13d834: 83 ec 24 sub $0x24,%esp 13d837: 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 ) 13d83a: 85 db test %ebx,%ebx 13d83c: 0f 84 92 00 00 00 je 13d8d4 13d842: 50 push %eax 13d843: 8d 45 f4 lea -0xc(%ebp),%eax 13d846: 50 push %eax 13d847: ff 75 08 pushl 0x8(%ebp) 13d84a: 68 a0 fb 16 00 push $0x16fba0 13d84f: e8 a0 57 fd ff call 112ff4 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 13d854: 83 c4 10 add $0x10,%esp 13d857: 8b 4d f4 mov -0xc(%ebp),%ecx 13d85a: 85 c9 test %ecx,%ecx 13d85c: 74 0a je 13d868 13d85e: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13d863: 8b 5d fc mov -0x4(%ebp),%ebx 13d866: c9 leave 13d867: c3 ret the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; 13d868: 8b 50 40 mov 0x40(%eax),%edx 13d86b: 8b 52 08 mov 0x8(%edx),%edx 13d86e: 89 13 mov %edx,(%ebx) status->state = the_period->state; 13d870: 8b 50 38 mov 0x38(%eax),%edx 13d873: 89 53 04 mov %edx,0x4(%ebx) /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { 13d876: 85 d2 test %edx,%edx 13d878: 75 2a jne 13d8a4 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); 13d87a: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 13d881: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) _Timespec_Set_to_zero( &status->executed_since_last_period ); 13d888: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) 13d88f: 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(); 13d896: e8 7d 60 fd ff call 113918 <_Thread_Enable_dispatch> 13d89b: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13d89d: 8b 5d fc mov -0x4(%ebp),%ebx 13d8a0: c9 leave 13d8a1: c3 ret 13d8a2: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Grab the current status. */ valid_status = _Rate_monotonic_Get_status( 13d8a4: 52 push %edx 13d8a5: 8d 55 ec lea -0x14(%ebp),%edx 13d8a8: 52 push %edx 13d8a9: 8d 55 e4 lea -0x1c(%ebp),%edx 13d8ac: 52 push %edx 13d8ad: 50 push %eax 13d8ae: e8 b1 00 00 00 call 13d964 <_Rate_monotonic_Get_status> the_period, &since_last_period, &executed ); if (!valid_status) { 13d8b3: 83 c4 10 add $0x10,%esp 13d8b6: 84 c0 test %al,%al 13d8b8: 74 26 je 13d8e0 _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( 13d8ba: 8b 45 e4 mov -0x1c(%ebp),%eax 13d8bd: 8b 55 e8 mov -0x18(%ebp),%edx 13d8c0: 89 43 08 mov %eax,0x8(%ebx) 13d8c3: 89 53 0c mov %edx,0xc(%ebx) &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( 13d8c6: 8b 45 ec mov -0x14(%ebp),%eax 13d8c9: 8b 55 f0 mov -0x10(%ebp),%edx 13d8cc: 89 43 10 mov %eax,0x10(%ebx) 13d8cf: 89 53 14 mov %edx,0x14(%ebx) 13d8d2: eb c2 jmp 13d896 Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) 13d8d4: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13d8d9: 8b 5d fc mov -0x4(%ebp),%ebx 13d8dc: c9 leave 13d8dd: c3 ret 13d8de: 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(); 13d8e0: e8 33 60 fd ff call 113918 <_Thread_Enable_dispatch> 13d8e5: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; 13d8ea: e9 74 ff ff ff jmp 13d863 0013daec : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 13daec: 55 push %ebp 13daed: 89 e5 mov %esp,%ebp 13daef: 57 push %edi 13daf0: 56 push %esi 13daf1: 53 push %ebx 13daf2: 83 ec 30 sub $0x30,%esp 13daf5: 8b 5d 08 mov 0x8(%ebp),%ebx 13daf8: 8b 75 0c mov 0xc(%ebp),%esi 13dafb: 8d 45 e4 lea -0x1c(%ebp),%eax 13dafe: 50 push %eax 13daff: 53 push %ebx 13db00: 68 a0 fb 16 00 push $0x16fba0 13db05: e8 ea 54 fd ff call 112ff4 <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 13db0a: 83 c4 10 add $0x10,%esp 13db0d: 8b 7d e4 mov -0x1c(%ebp),%edi 13db10: 85 ff test %edi,%edi 13db12: 74 10 je 13db24 the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 13db14: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13db19: 8d 65 f4 lea -0xc(%ebp),%esp 13db1c: 5b pop %ebx 13db1d: 5e pop %esi 13db1e: 5f pop %edi 13db1f: c9 leave 13db20: c3 ret 13db21: 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 ) ) { 13db24: 8b 50 40 mov 0x40(%eax),%edx 13db27: 3b 15 b8 ef 16 00 cmp 0x16efb8,%edx 13db2d: 74 15 je 13db44 _Thread_Enable_dispatch(); 13db2f: e8 e4 5d fd ff call 113918 <_Thread_Enable_dispatch> 13db34: b8 17 00 00 00 mov $0x17,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13db39: 8d 65 f4 lea -0xc(%ebp),%esp 13db3c: 5b pop %ebx 13db3d: 5e pop %esi 13db3e: 5f pop %edi 13db3f: c9 leave 13db40: c3 ret 13db41: 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 ) { 13db44: 85 f6 test %esi,%esi 13db46: 0f 84 b0 00 00 00 je 13dbfc } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 13db4c: 9c pushf 13db4d: fa cli 13db4e: 5f pop %edi switch ( the_period->state ) { 13db4f: 8b 50 38 mov 0x38(%eax),%edx 13db52: 83 fa 02 cmp $0x2,%edx 13db55: 0f 84 bd 00 00 00 je 13dc18 13db5b: 83 fa 04 cmp $0x4,%edx 13db5e: 74 5c je 13dbbc 13db60: 85 d2 test %edx,%edx 13db62: 75 b0 jne 13db14 case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 13db64: 57 push %edi 13db65: 9d popf /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 13db66: 83 ec 0c sub $0xc,%esp 13db69: 50 push %eax 13db6a: 89 45 d4 mov %eax,-0x2c(%ebp) 13db6d: e8 7e fd ff ff call 13d8f0 <_Rate_monotonic_Initiate_statistics> the_period->state = RATE_MONOTONIC_ACTIVE; 13db72: 8b 45 d4 mov -0x2c(%ebp),%eax 13db75: 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; 13db7c: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_watchdog->routine = routine; 13db83: c7 40 2c 9c dc 13 00 movl $0x13dc9c,0x2c(%eax) the_watchdog->id = id; 13db8a: 89 58 30 mov %ebx,0x30(%eax) the_watchdog->user_data = user_data; 13db8d: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 13db94: 89 70 3c mov %esi,0x3c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13db97: 89 70 1c mov %esi,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13db9a: 5a pop %edx 13db9b: 59 pop %ecx 13db9c: 83 c0 10 add $0x10,%eax 13db9f: 50 push %eax 13dba0: 68 d8 ef 16 00 push $0x16efd8 13dba5: e8 ba 6c fd ff call 114864 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 13dbaa: e8 69 5d fd ff call 113918 <_Thread_Enable_dispatch> 13dbaf: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 13dbb1: 83 c4 10 add $0x10,%esp 13dbb4: e9 60 ff ff ff jmp 13db19 13dbb9: 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 ); 13dbbc: 83 ec 0c sub $0xc,%esp 13dbbf: 50 push %eax 13dbc0: 89 45 d4 mov %eax,-0x2c(%ebp) 13dbc3: e8 34 fe ff ff call 13d9fc <_Rate_monotonic_Update_statistics> _ISR_Enable( level ); 13dbc8: 57 push %edi 13dbc9: 9d popf the_period->state = RATE_MONOTONIC_ACTIVE; 13dbca: 8b 45 d4 mov -0x2c(%ebp),%eax 13dbcd: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax) the_period->next_length = length; 13dbd4: 89 70 3c mov %esi,0x3c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13dbd7: 89 70 1c mov %esi,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13dbda: 59 pop %ecx 13dbdb: 5b pop %ebx 13dbdc: 83 c0 10 add $0x10,%eax 13dbdf: 50 push %eax 13dbe0: 68 d8 ef 16 00 push $0x16efd8 13dbe5: e8 7a 6c fd ff call 114864 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 13dbea: e8 29 5d fd ff call 113918 <_Thread_Enable_dispatch> 13dbef: b8 06 00 00 00 mov $0x6,%eax return RTEMS_TIMEOUT; 13dbf4: 83 c4 10 add $0x10,%esp 13dbf7: e9 1d ff ff ff jmp 13db19 _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 13dbfc: 8b 40 38 mov 0x38(%eax),%eax 13dbff: 83 f8 04 cmp $0x4,%eax 13dc02: 76 74 jbe 13dc78 13dc04: 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(); 13dc06: 89 45 d4 mov %eax,-0x2c(%ebp) 13dc09: e8 0a 5d fd ff call 113918 <_Thread_Enable_dispatch> return( return_value ); 13dc0e: 8b 45 d4 mov -0x2c(%ebp),%eax 13dc11: e9 03 ff ff ff jmp 13db19 13dc16: 66 90 xchg %ax,%ax <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 13dc18: 83 ec 0c sub $0xc,%esp 13dc1b: 50 push %eax 13dc1c: 89 45 d4 mov %eax,-0x2c(%ebp) 13dc1f: e8 d8 fd ff ff call 13d9fc <_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; 13dc24: 8b 45 d4 mov -0x2c(%ebp),%eax 13dc27: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax) the_period->next_length = length; 13dc2e: 89 70 3c mov %esi,0x3c(%eax) _ISR_Enable( level ); 13dc31: 57 push %edi 13dc32: 9d popf _Thread_Executing->Wait.id = the_period->Object.id; 13dc33: 8b 15 b8 ef 16 00 mov 0x16efb8,%edx 13dc39: 8b 48 08 mov 0x8(%eax),%ecx 13dc3c: 89 4a 20 mov %ecx,0x20(%edx) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 13dc3f: 5e pop %esi 13dc40: 5f pop %edi 13dc41: 68 00 40 00 00 push $0x4000 13dc46: 52 push %edx 13dc47: 89 45 d4 mov %eax,-0x2c(%ebp) 13dc4a: e8 8d 65 fd ff call 1141dc <_Thread_Set_state> /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 13dc4f: 9c pushf 13dc50: fa cli 13dc51: 59 pop %ecx local_state = the_period->state; 13dc52: 8b 45 d4 mov -0x2c(%ebp),%eax 13dc55: 8b 50 38 mov 0x38(%eax),%edx the_period->state = RATE_MONOTONIC_ACTIVE; 13dc58: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax) _ISR_Enable( level ); 13dc5f: 51 push %ecx 13dc60: 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 ) 13dc61: 83 c4 10 add $0x10,%esp 13dc64: 83 fa 03 cmp $0x3,%edx 13dc67: 74 18 je 13dc81 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 13dc69: e8 aa 5c fd ff call 113918 <_Thread_Enable_dispatch> 13dc6e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 13dc70: e9 a4 fe ff ff jmp 13db19 13dc75: 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 ) { 13dc78: 8b 04 85 94 3f 16 00 mov 0x163f94(,%eax,4),%eax 13dc7f: eb 85 jmp 13dc06 /* * 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 ); 13dc81: 83 ec 08 sub $0x8,%esp 13dc84: 68 00 40 00 00 push $0x4000 13dc89: ff 35 b8 ef 16 00 pushl 0x16efb8 13dc8f: e8 dc 58 fd ff call 113570 <_Thread_Clear_state> 13dc94: 83 c4 10 add $0x10,%esp 13dc97: eb d0 jmp 13dc69 0012dd0c : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 12dd0c: 55 push %ebp 12dd0d: 89 e5 mov %esp,%ebp 12dd0f: 57 push %edi 12dd10: 56 push %esi 12dd11: 53 push %ebx 12dd12: 83 ec 7c sub $0x7c,%esp 12dd15: 8b 7d 08 mov 0x8(%ebp),%edi 12dd18: 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 ) 12dd1b: 85 f6 test %esi,%esi 12dd1d: 0f 84 bd 00 00 00 je 12dde0 return; (*print)( context, "Period information by period\n" ); 12dd23: 83 ec 08 sub $0x8,%esp 12dd26: 68 88 05 16 00 push $0x160588 12dd2b: 57 push %edi 12dd2c: ff d6 call *%esi #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); 12dd2e: 59 pop %ecx 12dd2f: 5b pop %ebx 12dd30: 68 c0 05 16 00 push $0x1605c0 12dd35: 57 push %edi 12dd36: ff d6 call *%esi (*print)( context, "--- Wall times are in seconds ---\n" ); 12dd38: 58 pop %eax 12dd39: 5a pop %edx 12dd3a: 68 e4 05 16 00 push $0x1605e4 12dd3f: 57 push %edi 12dd40: ff d6 call *%esi Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 12dd42: 59 pop %ecx 12dd43: 5b pop %ebx 12dd44: 68 08 06 16 00 push $0x160608 12dd49: 57 push %edi 12dd4a: ff d6 call *%esi #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " 12dd4c: 58 pop %eax 12dd4d: 5a pop %edx 12dd4e: 68 54 06 16 00 push $0x160654 12dd53: 57 push %edi 12dd54: 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 ; 12dd56: 8b 1d a8 fb 16 00 mov 0x16fba8,%ebx 12dd5c: 83 c4 10 add $0x10,%esp 12dd5f: 3b 1d ac fb 16 00 cmp 0x16fbac,%ebx 12dd65: 77 79 ja 12dde0 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); 12dd67: 89 75 84 mov %esi,-0x7c(%ebp) 12dd6a: eb 09 jmp 12dd75 * 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++ ) { 12dd6c: 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 ; 12dd6d: 39 1d ac fb 16 00 cmp %ebx,0x16fbac 12dd73: 72 6b jb 12dde0 id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 12dd75: 83 ec 08 sub $0x8,%esp 12dd78: 8d 45 88 lea -0x78(%ebp),%eax 12dd7b: 50 push %eax 12dd7c: 53 push %ebx 12dd7d: e8 02 fa 00 00 call 13d784 if ( status != RTEMS_SUCCESSFUL ) 12dd82: 83 c4 10 add $0x10,%esp 12dd85: 85 c0 test %eax,%eax 12dd87: 75 e3 jne 12dd6c continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 12dd89: 83 ec 08 sub $0x8,%esp 12dd8c: 8d 55 c0 lea -0x40(%ebp),%edx 12dd8f: 52 push %edx 12dd90: 53 push %ebx 12dd91: e8 9a fa 00 00 call 13d830 #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 12dd96: 83 c4 0c add $0xc,%esp 12dd99: 8d 45 e3 lea -0x1d(%ebp),%eax 12dd9c: 50 push %eax 12dd9d: 6a 05 push $0x5 12dd9f: ff 75 c0 pushl -0x40(%ebp) 12dda2: e8 01 35 fe ff call 1112a8 /* * Print part of report line that is not dependent on granularity */ (*print)( context, 12dda7: 59 pop %ecx 12dda8: 5e pop %esi 12dda9: ff 75 8c pushl -0x74(%ebp) 12ddac: ff 75 88 pushl -0x78(%ebp) 12ddaf: 8d 55 e3 lea -0x1d(%ebp),%edx 12ddb2: 52 push %edx 12ddb3: 53 push %ebx 12ddb4: 68 a6 05 16 00 push $0x1605a6 12ddb9: 57 push %edi 12ddba: ff 55 84 call *-0x7c(%ebp) ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 12ddbd: 8b 45 88 mov -0x78(%ebp),%eax 12ddc0: 83 c4 20 add $0x20,%esp 12ddc3: 85 c0 test %eax,%eax 12ddc5: 75 21 jne 12dde8 (*print)( context, "\n" ); 12ddc7: 83 ec 08 sub $0x8,%esp 12ddca: 68 81 23 16 00 push $0x162381 12ddcf: 57 push %edi 12ddd0: ff 55 84 call *-0x7c(%ebp) continue; 12ddd3: 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++ ) { 12ddd6: 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 ; 12ddd7: 39 1d ac fb 16 00 cmp %ebx,0x16fbac 12dddd: 73 96 jae 12dd75 12dddf: 90 nop <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 12dde0: 8d 65 f4 lea -0xc(%ebp),%esp 12dde3: 5b pop %ebx 12dde4: 5e pop %esi 12dde5: 5f pop %edi 12dde6: c9 leave 12dde7: 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 ); 12dde8: 52 push %edx 12dde9: 8d 55 d8 lea -0x28(%ebp),%edx 12ddec: 52 push %edx 12dded: 50 push %eax 12ddee: 8d 45 a0 lea -0x60(%ebp),%eax 12ddf1: 50 push %eax 12ddf2: e8 0d 17 00 00 call 12f504 <_Timespec_Divide_by_integer> (*print)( context, 12ddf7: 8b 4d dc mov -0x24(%ebp),%ecx 12ddfa: be d3 4d 62 10 mov $0x10624dd3,%esi 12ddff: 89 c8 mov %ecx,%eax 12de01: f7 ee imul %esi 12de03: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12de09: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12de0f: c1 f8 06 sar $0x6,%eax 12de12: c1 f9 1f sar $0x1f,%ecx 12de15: 29 c8 sub %ecx,%eax 12de17: 50 push %eax 12de18: ff 75 d8 pushl -0x28(%ebp) 12de1b: 8b 4d 9c mov -0x64(%ebp),%ecx 12de1e: 89 c8 mov %ecx,%eax 12de20: f7 ee imul %esi 12de22: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12de28: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12de2e: c1 f8 06 sar $0x6,%eax 12de31: c1 f9 1f sar $0x1f,%ecx 12de34: 29 c8 sub %ecx,%eax 12de36: 50 push %eax 12de37: ff 75 98 pushl -0x68(%ebp) 12de3a: 8b 4d 94 mov -0x6c(%ebp),%ecx 12de3d: 89 c8 mov %ecx,%eax 12de3f: f7 ee imul %esi 12de41: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12de47: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12de4d: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12de53: c1 f8 06 sar $0x6,%eax 12de56: c1 f9 1f sar $0x1f,%ecx 12de59: 29 c8 sub %ecx,%eax 12de5b: 50 push %eax 12de5c: ff 75 90 pushl -0x70(%ebp) 12de5f: 68 a0 06 16 00 push $0x1606a0 12de64: 57 push %edi 12de65: 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); 12de68: 83 c4 2c add $0x2c,%esp 12de6b: 8d 55 d8 lea -0x28(%ebp),%edx 12de6e: 52 push %edx 12de6f: ff 75 88 pushl -0x78(%ebp) 12de72: 8d 45 b8 lea -0x48(%ebp),%eax 12de75: 50 push %eax 12de76: e8 89 16 00 00 call 12f504 <_Timespec_Divide_by_integer> (*print)( context, 12de7b: 8b 4d dc mov -0x24(%ebp),%ecx 12de7e: 89 c8 mov %ecx,%eax 12de80: f7 ee imul %esi 12de82: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12de88: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12de8e: c1 f8 06 sar $0x6,%eax 12de91: c1 f9 1f sar $0x1f,%ecx 12de94: 29 c8 sub %ecx,%eax 12de96: 50 push %eax 12de97: ff 75 d8 pushl -0x28(%ebp) 12de9a: 8b 4d b4 mov -0x4c(%ebp),%ecx 12de9d: 89 c8 mov %ecx,%eax 12de9f: f7 ee imul %esi 12dea1: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12dea7: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12dead: c1 f8 06 sar $0x6,%eax 12deb0: c1 f9 1f sar $0x1f,%ecx 12deb3: 29 c8 sub %ecx,%eax 12deb5: 50 push %eax 12deb6: ff 75 b0 pushl -0x50(%ebp) 12deb9: 8b 4d ac mov -0x54(%ebp),%ecx 12debc: 89 c8 mov %ecx,%eax 12debe: f7 ee imul %esi 12dec0: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12dec6: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12decc: 8b b5 7c ff ff ff mov -0x84(%ebp),%esi 12ded2: c1 fe 06 sar $0x6,%esi 12ded5: 89 c8 mov %ecx,%eax 12ded7: 99 cltd 12ded8: 29 d6 sub %edx,%esi 12deda: 56 push %esi 12dedb: ff 75 a8 pushl -0x58(%ebp) 12dede: 68 c0 06 16 00 push $0x1606c0 12dee3: 57 push %edi 12dee4: ff 55 84 call *-0x7c(%ebp) 12dee7: 83 c4 30 add $0x30,%esp 12deea: e9 7d fe ff ff jmp 12dd6c 0012df48 : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { 12df48: 55 push %ebp 12df49: 89 e5 mov %esp,%ebp 12df4b: 57 push %edi 12df4c: 53 push %ebx 12df4d: 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 *) 12df50: 8d 45 f4 lea -0xc(%ebp),%eax 12df53: 50 push %eax 12df54: ff 75 08 pushl 0x8(%ebp) 12df57: 68 a0 fb 16 00 push $0x16fba0 12df5c: e8 93 50 fe ff call 112ff4 <_Objects_Get> 12df61: 89 c2 mov %eax,%edx Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 12df63: 83 c4 10 add $0x10,%esp 12df66: 8b 45 f4 mov -0xc(%ebp),%eax 12df69: 85 c0 test %eax,%eax 12df6b: 75 3b jne 12dfa8 case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 12df6d: 8d 5a 54 lea 0x54(%edx),%ebx 12df70: b9 38 00 00 00 mov $0x38,%ecx 12df75: 31 c0 xor %eax,%eax 12df77: 89 df mov %ebx,%edi 12df79: f3 aa rep stos %al,%es:(%edi) 12df7b: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx) 12df82: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx) 12df89: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx) 12df90: c7 42 78 ff ff ff 7f movl $0x7fffffff,0x78(%edx) _Thread_Enable_dispatch(); 12df97: e8 7c 59 fe ff call 113918 <_Thread_Enable_dispatch> 12df9c: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12df9e: 8d 65 f8 lea -0x8(%ebp),%esp 12dfa1: 5b pop %ebx 12dfa2: 5f pop %edi 12dfa3: c9 leave 12dfa4: c3 ret 12dfa5: 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 ) { 12dfa8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12dfad: 8d 65 f8 lea -0x8(%ebp),%esp 12dfb0: 5b pop %ebx 12dfb1: 5f pop %edi 12dfb2: c9 leave 12dfb3: 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 b0 1d 14 00 pushl 0x141db0 116e2d: e8 4a 25 00 00 call 11937c <_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 00 1c 14 00 movl $0x141c00,(%esp) 116e39: e8 6e 39 00 00 call 11a7ac <_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 36 34 00 00 call 11a290 <_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 00 1c 14 00 push $0x141c00 116e70: e8 b7 3c 00 00 call 11ab2c <_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 b0 1d 14 00 pushl 0x141db0 116e86: 89 45 e4 mov %eax,-0x1c(%ebp) 116e89: e8 36 25 00 00 call 1193c4 <_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 2e 4e 00 00 call 11bd18 <_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 1c 1c 14 00 mov 0x141c1c,%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 b0 1d 14 00 pushl 0x141db0 116f19: e8 5e 24 00 00 call 11937c <_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 00 1c 14 00 push $0x141c00 116f2d: e8 2a 3d 00 00 call 11ac5c <_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 b0 1d 14 00 pushl 0x141db0 116f4a: e8 75 24 00 00 call 1193c4 <_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 00 1c 14 00 push $0x141c00 116f71: 89 45 e4 mov %eax,-0x1c(%ebp) 116f74: e8 af 38 00 00 call 11a828 <_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 00 1c 14 00 push $0x141c00 116f84: e8 a3 3b 00 00 call 11ab2c <_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 b0 1d 14 00 pushl 0x141db0 116fa8: e8 cf 23 00 00 call 11937c <_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 00 1c 14 00 push $0x141c00 116fbc: e8 9b 3c 00 00 call 11ac5c <_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 b0 1d 14 00 pushl 0x141db0 116fdb: e8 e4 23 00 00 call 1193c4 <_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 9b 2f 00 00 call 119f98 <_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 b0 1d 14 00 pushl 0x141db0 11704b: e8 2c 23 00 00 call 11937c <_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 00 1c 14 00 push $0x141c00 11705f: e8 f8 3b 00 00 call 11ac5c <_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 b0 1d 14 00 pushl 0x141db0 11707c: e8 43 23 00 00 call 1193c4 <_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 fa 30 00 00 call 11a1a8 <_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 b0 1d 14 00 pushl 0x141db0 1170db: e8 9c 22 00 00 call 11937c <_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 00 1c 14 00 push $0x141c00 1170ef: e8 68 3b 00 00 call 11ac5c <_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 b0 1d 14 00 pushl 0x141db0 11710c: e8 b3 22 00 00 call 1193c4 <_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 d7 30 00 00 call 11a200 <_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 b0 1d 14 00 pushl 0x141db0 117175: e8 02 22 00 00 call 11937c <_API_Mutex_Lock> executing = _Thread_Executing; 11717a: a1 b8 1d 14 00 mov 0x141db8,%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 00 1c 14 00 push $0x141c00 117191: e8 c6 3a 00 00 call 11ac5c <_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 b0 1d 14 00 pushl 0x141db0 1171b5: 89 45 d0 mov %eax,-0x30(%ebp) 1171b8: e8 07 22 00 00 call 1193c4 <_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 02 2c 00 00 call 119de4 <_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 f8 1c 14 00 mov 0x141cf8,%eax 117212: 40 inc %eax 117213: a3 f8 1c 14 00 mov %eax,0x141cf8 * 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 b0 1d 14 00 pushl 0x141db0 117221: e8 9e 21 00 00 call 1193c4 <_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 c8 bd 11 00 push $0x11bdc8 11724a: ff 75 14 pushl 0x14(%ebp) 11724d: 50 push %eax 11724e: e8 65 48 00 00 call 11bab8 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 117253: e8 24 43 00 00 call 11b57c <_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 b0 1d 14 00 pushl 0x141db0 117287: e8 f0 20 00 00 call 11937c <_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 00 1c 14 00 push $0x141c00 11729b: e8 bc 39 00 00 call 11ac5c <_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 0a 34 00 00 call 11a6c0 <_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 b0 1d 14 00 pushl 0x141db0 1172c8: 89 45 e4 mov %eax,-0x1c(%ebp) 1172cb: e8 f4 20 00 00 call 1193c4 <_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 b0 1d 14 00 pushl 0x141db0 117340: e8 37 20 00 00 call 11937c <_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 00 1c 14 00 push $0x141c00 117354: e8 03 39 00 00 call 11ac5c <_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 b0 1d 14 00 pushl 0x141db0 11736e: e8 51 20 00 00 call 1193c4 <_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 16 32 00 00 call 11a5b4 <_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 d1 77 00 00 call 11eb84 <_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 b0 1d 14 00 pushl 0x141db0 1173c9: 89 45 e4 mov %eax,-0x1c(%ebp) 1173cc: e8 f3 1f 00 00 call 1193c4 <_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 b0 1d 14 00 pushl 0x141db0 1173f9: e8 7e 1f 00 00 call 11937c <_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 00 1c 14 00 push $0x141c00 11740d: e8 4a 38 00 00 call 11ac5c <_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 b0 1d 14 00 pushl 0x141db0 11742c: e8 93 1f 00 00 call 1193c4 <_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 ed 2b 00 00 call 11a038 <_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 1c 77 00 00 call 11eb84 <_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 18 77 12 00 mov 0x127718,%eax 10b3a4: 40 inc %eax 10b3a5: a3 18 77 12 00 mov %eax,0x127718 * 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 60 76 12 00 push $0x127660 10b3b2: 89 4d c4 mov %ecx,-0x3c(%ebp) 10b3b5: e8 16 14 00 00 call 10c7d0 <_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 35 0c 00 00 call 10c040 <_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 7c 76 12 00 mov 0x12767c,%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 c1 20 00 00 call 10d4f4 <_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 68 0e 00 00 call 10c2e4 <_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 6b 20 00 00 call 10d4f4 <_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 60 76 12 00 push $0x127660 10b4cc: e8 7f 16 00 00 call 10cb50 <_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 1e 20 00 00 call 10d4f4 <_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 60 76 12 00 push $0x127660 10b50f: e8 6c 17 00 00 call 10cc80 <_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 af 1f 00 00 call 10d4f4 <_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 d6 0a 00 00 call 10c034 <_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 60 76 12 00 push $0x127660 10b56a: e8 dd 12 00 00 call 10c84c <_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 60 76 12 00 push $0x127660 10b577: e8 d4 15 00 00 call 10cb50 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 10b57c: e8 73 1f 00 00 call 10d4f4 <_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 3e 0d 00 00 call 10c2d8 <_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 60 76 12 00 push $0x127660 10b5c0: e8 63 16 00 00 call 10cc28 <_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 3e 0b 00 00 call 10c138 <_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 d8 77 12 00 mov 0x1277d8,%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 d8 77 12 00 mov 0x1277d8,%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 d8 77 12 00 mov 0x1277d8,%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 18 77 12 00 mov 0x127718,%ecx 10b66a: 41 inc %ecx 10b66b: 89 0d 18 77 12 00 mov %ecx,0x127718 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 14 dd 10 00 push $0x10dd14 10b68b: 57 push %edi 10b68c: 50 push %eax 10b68d: e8 72 23 00 00 call 10da04 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 10b692: e8 5d 1e 00 00 call 10d4f4 <_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 60 76 12 00 push $0x127660 10b6b0: e8 cb 15 00 00 call 10cc80 <_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 45 0c 00 00 call 10c324 <_CORE_semaphore_Surrender> 10b6df: 89 c3 mov %eax,%ebx &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 10b6e1: e8 0e 1e 00 00 call 10d4f4 <_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 d3 0a 00 00 call 10c1d8 <_CORE_mutex_Surrender> 10b705: 89 c3 mov %eax,%ebx &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 10b707: e8 e8 1d 00 00 call 10d4f4 <_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 9d 12 00 mov 0x129dd8,%eax 10c64a: 8b 80 f4 00 00 00 mov 0xf4(%eax),%eax 10c650: 8b 0d 18 9d 12 00 mov 0x129d18,%ecx 10c656: 41 inc %ecx 10c657: 89 0d 18 9d 12 00 mov %ecx,0x129d18 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 41 21 00 00 call 10e7b0 <_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 10 21 00 00 call 10e7b0 <_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 5d 3c 00 00 call 11b5cc <_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 f4 00 00 00 mov 0xf4(%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 94 1d 14 00 mov 0x141d94,%edx 1179a9: 85 d2 test %edx,%edx 1179ab: 74 1b je 1179c8 1179ad: 3b 05 b8 1d 14 00 cmp 0x141db8,%eax 1179b3: 75 13 jne 1179c8 _ISR_Signals_to_thread_executing = true; 1179b5: c6 05 68 1e 14 00 01 movb $0x1,0x141e68 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 af 3b 00 00 call 11b57c <_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 a3 3b 00 00 call 11b57c <_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 ef 16 00 mov 0x16efb8,%eax ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 10b6a6: 8b b0 c8 00 00 00 mov 0xc8(%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 bf 16 00 mov 0x16bfd8,%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 ef 16 00 pushl 0x16efb8 <== 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 ed 16 00 mov $0x16ed40,%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 c4 00 00 00 mov 0xc4(%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 bf 16 00 mov %esi,0x16bfdc <== NOT EXECUTED print_handler = print; 10b575: 89 1d e0 bf 16 00 mov %ebx,0x16bfe0 <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 10b57b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b57e: 68 b0 b2 15 00 push $0x15b2b0 <== 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 30 b3 15 00 push $0x15b330 <== 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 5c 74 00 00 call 1129f8 <== 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 bf 16 00 00 movl $0x0,0x16bfdc <== NOT EXECUTED 10b5af: 00 00 00 <== NOT EXECUTED print_handler = NULL; 10b5b2: c7 05 e0 bf 16 00 00 movl $0x0,0x16bfe0 <== 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 c8 00 00 00 mov 0xc8(%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 c4 00 00 00 add 0xc4(%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 ed 16 00 mov $0x16ed40,%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 ed 16 00 mov $0x16ed40,%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 00110d30 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110d30: 55 push %ebp 110d31: 89 e5 mov %esp,%ebp 110d33: 57 push %edi 110d34: 56 push %esi 110d35: 53 push %ebx 110d36: 83 ec 2c sub $0x2c,%esp 110d39: 8b 75 08 mov 0x8(%ebp),%esi 110d3c: 8b 5d 0c mov 0xc(%ebp),%ebx 110d3f: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110d42: 85 db test %ebx,%ebx 110d44: 74 72 je 110db8 return RTEMS_INVALID_ADDRESS; errno = 0; 110d46: e8 c5 2f 00 00 call 113d10 <__errno> 110d4b: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110d51: c7 03 00 00 00 00 movl $0x0,(%ebx) 110d57: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 110d5e: 83 ec 08 sub $0x8,%esp 110d61: 8d 45 e4 lea -0x1c(%ebp),%eax 110d64: 50 push %eax 110d65: 56 push %esi 110d66: e8 41 5a 00 00 call 1167ac #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 ) 110d6b: 83 c4 10 add $0x10,%esp 110d6e: 85 ff test %edi,%edi 110d70: 74 05 je 110d77 *endptr = end; 110d72: 8b 45 e4 mov -0x1c(%ebp),%eax 110d75: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 110d77: 39 75 e4 cmp %esi,-0x1c(%ebp) 110d7a: 74 4c je 110dc8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110d7c: dd 05 b0 56 12 00 fldl 0x1256b0 110d82: d9 c9 fxch %st(1) 110d84: dd e1 fucom %st(1) 110d86: df e0 fnstsw %ax 110d88: dd d9 fstp %st(1) 110d8a: f6 c4 45 test $0x45,%ah 110d8d: 74 0d je 110d9c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110d8f: dd 1b fstpl (%ebx) 110d91: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110d93: 8d 65 f4 lea -0xc(%ebp),%esp 110d96: 5b pop %ebx 110d97: 5e pop %esi 110d98: 5f pop %edi 110d99: c9 leave 110d9a: c3 ret 110d9b: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110d9c: dd 5d c8 fstpl -0x38(%ebp) 110d9f: e8 6c 2f 00 00 call 113d10 <__errno> 110da4: 83 38 22 cmpl $0x22,(%eax) 110da7: dd 45 c8 fldl -0x38(%ebp) 110daa: 75 e3 jne 110d8f 110dac: dd d8 fstp %st(0) 110dae: b8 0a 00 00 00 mov $0xa,%eax 110db3: eb de jmp 110d93 110db5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110db8: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110dbd: 8d 65 f4 lea -0xc(%ebp),%esp 110dc0: 5b pop %ebx 110dc1: 5e pop %esi 110dc2: 5f pop %edi 110dc3: c9 leave 110dc4: c3 ret 110dc5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110dc8: 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 ) 110dca: b8 0b 00 00 00 mov $0xb,%eax 110dcf: eb c2 jmp 110d93 00110dd4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110dd4: 55 push %ebp 110dd5: 89 e5 mov %esp,%ebp 110dd7: 57 push %edi 110dd8: 56 push %esi 110dd9: 53 push %ebx 110dda: 83 ec 2c sub $0x2c,%esp 110ddd: 8b 75 08 mov 0x8(%ebp),%esi 110de0: 8b 5d 0c mov 0xc(%ebp),%ebx 110de3: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110de6: 85 db test %ebx,%ebx 110de8: 74 6a je 110e54 return RTEMS_INVALID_ADDRESS; errno = 0; 110dea: e8 21 2f 00 00 call 113d10 <__errno> 110def: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110df5: c7 03 00 00 00 00 movl $0x0,(%ebx) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 110dfb: 83 ec 08 sub $0x8,%esp 110dfe: 8d 45 e4 lea -0x1c(%ebp),%eax 110e01: 50 push %eax 110e02: 56 push %esi 110e03: e8 60 59 00 00 call 116768 #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 ) 110e08: 83 c4 10 add $0x10,%esp 110e0b: 85 ff test %edi,%edi 110e0d: 74 05 je 110e14 *endptr = end; 110e0f: 8b 45 e4 mov -0x1c(%ebp),%eax 110e12: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 110e14: 39 75 e4 cmp %esi,-0x1c(%ebp) 110e17: 74 4b je 110e64 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110e19: d9 05 b8 56 12 00 flds 0x1256b8 110e1f: d9 c9 fxch %st(1) 110e21: dd e1 fucom %st(1) 110e23: df e0 fnstsw %ax 110e25: dd d9 fstp %st(1) 110e27: f6 c4 45 test $0x45,%ah 110e2a: 74 0c je 110e38 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110e2c: d9 1b fstps (%ebx) 110e2e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110e30: 8d 65 f4 lea -0xc(%ebp),%esp 110e33: 5b pop %ebx 110e34: 5e pop %esi 110e35: 5f pop %edi 110e36: c9 leave 110e37: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110e38: d9 5d c8 fstps -0x38(%ebp) 110e3b: e8 d0 2e 00 00 call 113d10 <__errno> 110e40: 83 38 22 cmpl $0x22,(%eax) 110e43: d9 45 c8 flds -0x38(%ebp) 110e46: 75 e4 jne 110e2c 110e48: dd d8 fstp %st(0) 110e4a: b8 0a 00 00 00 mov $0xa,%eax 110e4f: eb df jmp 110e30 110e51: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110e54: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110e59: 8d 65 f4 lea -0xc(%ebp),%esp 110e5c: 5b pop %ebx 110e5d: 5e pop %esi 110e5e: 5f pop %edi 110e5f: c9 leave 110e60: c3 ret 110e61: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110e64: 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 ) 110e66: b8 0b 00 00 00 mov $0xb,%eax 110e6b: eb c3 jmp 110e30 00122e34 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122e34: 55 push %ebp 122e35: 89 e5 mov %esp,%ebp 122e37: 57 push %edi 122e38: 56 push %esi 122e39: 53 push %ebx 122e3a: 83 ec 2c sub $0x2c,%esp 122e3d: 8b 75 08 mov 0x8(%ebp),%esi 122e40: 8b 5d 0c mov 0xc(%ebp),%ebx 122e43: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122e46: 85 db test %ebx,%ebx 122e48: 74 5e je 122ea8 return RTEMS_INVALID_ADDRESS; errno = 0; 122e4a: e8 55 fa 01 00 call 1428a4 <__errno> 122e4f: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122e55: 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 ); 122e5b: 50 push %eax 122e5c: ff 75 14 pushl 0x14(%ebp) 122e5f: 8d 45 e4 lea -0x1c(%ebp),%eax 122e62: 50 push %eax 122e63: 56 push %esi 122e64: e8 1f 68 02 00 call 149688 122e69: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122e6b: 83 c4 10 add $0x10,%esp 122e6e: 85 ff test %edi,%edi 122e70: 74 05 je 122e77 *endptr = end; 122e72: 8b 45 e4 mov -0x1c(%ebp),%eax 122e75: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122e77: 39 75 e4 cmp %esi,-0x1c(%ebp) 122e7a: 74 3c je 122eb8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122e7c: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx 122e82: 74 0c je 122e90 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122e84: 89 13 mov %edx,(%ebx) 122e86: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122e88: 8d 65 f4 lea -0xc(%ebp),%esp 122e8b: 5b pop %ebx 122e8c: 5e pop %esi 122e8d: 5f pop %edi 122e8e: c9 leave 122e8f: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122e90: 89 55 d4 mov %edx,-0x2c(%ebp) 122e93: e8 0c fa 01 00 call 1428a4 <__errno> 122e98: 83 38 22 cmpl $0x22,(%eax) 122e9b: 8b 55 d4 mov -0x2c(%ebp),%edx 122e9e: 75 e4 jne 122e84 122ea0: b8 0a 00 00 00 mov $0xa,%eax 122ea5: eb e1 jmp 122e88 122ea7: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122ea8: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122ead: 8d 65 f4 lea -0xc(%ebp),%esp 122eb0: 5b pop %ebx 122eb1: 5e pop %esi 122eb2: 5f pop %edi 122eb3: c9 leave 122eb4: c3 ret 122eb5: 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 ) 122eb8: b8 0b 00 00 00 mov $0xb,%eax 122ebd: eb c9 jmp 122e88 00110fac : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110fac: 55 push %ebp 110fad: 89 e5 mov %esp,%ebp 110faf: 57 push %edi 110fb0: 56 push %esi 110fb1: 53 push %ebx 110fb2: 83 ec 1c sub $0x1c,%esp 110fb5: 8b 7d 08 mov 0x8(%ebp),%edi 110fb8: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110fbb: 85 db test %ebx,%ebx 110fbd: 74 69 je 111028 return RTEMS_INVALID_ADDRESS; errno = 0; 110fbf: e8 4c 2d 00 00 call 113d10 <__errno> 110fc4: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110fca: 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 ); 110fd0: 52 push %edx 110fd1: ff 75 14 pushl 0x14(%ebp) 110fd4: 8d 45 e4 lea -0x1c(%ebp),%eax 110fd7: 50 push %eax 110fd8: 57 push %edi 110fd9: e8 6a 59 00 00 call 116948 110fde: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110fe0: 83 c4 10 add $0x10,%esp 110fe3: 8b 45 10 mov 0x10(%ebp),%eax 110fe6: 85 c0 test %eax,%eax 110fe8: 74 08 je 110ff2 *endptr = end; 110fea: 8b 45 e4 mov -0x1c(%ebp),%eax 110fed: 8b 55 10 mov 0x10(%ebp),%edx 110ff0: 89 02 mov %eax,(%edx) /* nothing was converted */ if ( end == s ) 110ff2: 39 7d e4 cmp %edi,-0x1c(%ebp) 110ff5: 74 41 je 111038 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110ff7: 81 fe ff ff ff 7f cmp $0x7fffffff,%esi 110ffd: 74 15 je 111014 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110fff: 81 fe 00 00 00 80 cmp $0x80000000,%esi 111005: 74 0d je 111014 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 111007: 89 33 mov %esi,(%ebx) 111009: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 11100b: 8d 65 f4 lea -0xc(%ebp),%esp 11100e: 5b pop %ebx 11100f: 5e pop %esi 111010: 5f pop %edi 111011: c9 leave 111012: c3 ret 111013: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 111014: e8 f7 2c 00 00 call 113d10 <__errno> 111019: 83 38 22 cmpl $0x22,(%eax) 11101c: 75 e9 jne 111007 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 11101e: b8 0a 00 00 00 mov $0xa,%eax 111023: eb e6 jmp 11100b 111025: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 111028: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 11102d: 8d 65 f4 lea -0xc(%ebp),%esp 111030: 5b pop %ebx 111031: 5e pop %esi 111032: 5f pop %edi 111033: c9 leave 111034: c3 ret 111035: 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 ) 111038: b8 0b 00 00 00 mov $0xb,%eax 11103d: eb cc jmp 11100b 00110efc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110efc: 55 push %ebp 110efd: 89 e5 mov %esp,%ebp 110eff: 57 push %edi 110f00: 56 push %esi 110f01: 53 push %ebx 110f02: 83 ec 2c sub $0x2c,%esp 110f05: 8b 7d 08 mov 0x8(%ebp),%edi 110f08: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110f0b: 85 db test %ebx,%ebx 110f0d: 0f 84 81 00 00 00 je 110f94 return RTEMS_INVALID_ADDRESS; errno = 0; 110f13: e8 f8 2d 00 00 call 113d10 <__errno> 110f18: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110f1e: c7 03 00 00 00 00 movl $0x0,(%ebx) 110f24: 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 ); 110f2b: 52 push %edx 110f2c: ff 75 14 pushl 0x14(%ebp) 110f2f: 8d 45 e4 lea -0x1c(%ebp),%eax 110f32: 50 push %eax 110f33: 57 push %edi 110f34: e8 2b 5a 00 00 call 116964 110f39: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110f3b: 83 c4 10 add $0x10,%esp 110f3e: 8b 45 10 mov 0x10(%ebp),%eax 110f41: 85 c0 test %eax,%eax 110f43: 74 08 je 110f4d *endptr = end; 110f45: 8b 45 e4 mov -0x1c(%ebp),%eax 110f48: 8b 4d 10 mov 0x10(%ebp),%ecx 110f4b: 89 01 mov %eax,(%ecx) /* nothing was converted */ if ( end == s ) 110f4d: 39 7d e4 cmp %edi,-0x1c(%ebp) 110f50: 74 52 je 110fa4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110f52: 89 d1 mov %edx,%ecx 110f54: 81 f1 ff ff ff 7f xor $0x7fffffff,%ecx 110f5a: 89 f0 mov %esi,%eax 110f5c: f7 d0 not %eax 110f5e: 09 c1 or %eax,%ecx 110f60: 74 1a je 110f7c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110f62: 8d 82 00 00 00 80 lea -0x80000000(%edx),%eax 110f68: 09 f0 or %esi,%eax 110f6a: 74 10 je 110f7c return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110f6c: 89 33 mov %esi,(%ebx) 110f6e: 89 53 04 mov %edx,0x4(%ebx) 110f71: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110f73: 8d 65 f4 lea -0xc(%ebp),%esp 110f76: 5b pop %ebx 110f77: 5e pop %esi 110f78: 5f pop %edi 110f79: c9 leave 110f7a: c3 ret 110f7b: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110f7c: 89 55 d4 mov %edx,-0x2c(%ebp) 110f7f: e8 8c 2d 00 00 call 113d10 <__errno> 110f84: 83 38 22 cmpl $0x22,(%eax) 110f87: 8b 55 d4 mov -0x2c(%ebp),%edx 110f8a: 75 e0 jne 110f6c return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 110f8c: b8 0a 00 00 00 mov $0xa,%eax 110f91: eb e0 jmp 110f73 110f93: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110f94: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110f99: 8d 65 f4 lea -0xc(%ebp),%esp 110f9c: 5b pop %ebx 110f9d: 5e pop %esi 110f9e: 5f pop %edi 110f9f: c9 leave 110fa0: c3 ret 110fa1: 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 ) 110fa4: b8 0b 00 00 00 mov $0xb,%eax 110fa9: eb c8 jmp 110f73 00122ec0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122ec0: 55 push %ebp 122ec1: 89 e5 mov %esp,%ebp 122ec3: 57 push %edi 122ec4: 56 push %esi 122ec5: 53 push %ebx 122ec6: 83 ec 2c sub $0x2c,%esp 122ec9: 8b 75 08 mov 0x8(%ebp),%esi 122ecc: 8b 5d 0c mov 0xc(%ebp),%ebx 122ecf: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122ed2: 85 db test %ebx,%ebx 122ed4: 74 5a je 122f30 return RTEMS_INVALID_ADDRESS; errno = 0; 122ed6: e8 c9 f9 01 00 call 1428a4 <__errno> 122edb: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122ee1: 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 ); 122ee7: 50 push %eax 122ee8: 6a 10 push $0x10 122eea: 8d 45 e4 lea -0x1c(%ebp),%eax 122eed: 50 push %eax 122eee: 56 push %esi 122eef: e8 10 6c 02 00 call 149b04 122ef4: 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 ) 122ef6: 83 c4 10 add $0x10,%esp 122ef9: 85 ff test %edi,%edi 122efb: 74 05 je 122f02 *endptr = end; 122efd: 8b 45 e4 mov -0x1c(%ebp),%eax 122f00: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122f02: 39 75 e4 cmp %esi,-0x1c(%ebp) 122f05: 74 39 je 122f40 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122f07: 83 fa ff cmp $0xffffffff,%edx 122f0a: 74 0c je 122f18 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122f0c: 89 13 mov %edx,(%ebx) 122f0e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122f10: 8d 65 f4 lea -0xc(%ebp),%esp 122f13: 5b pop %ebx 122f14: 5e pop %esi 122f15: 5f pop %edi 122f16: c9 leave 122f17: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122f18: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 122f1b: e8 84 f9 01 00 call 1428a4 <__errno> <== NOT EXECUTED 122f20: 83 38 22 cmpl $0x22,(%eax) <== NOT EXECUTED 122f23: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 122f26: 75 e4 jne 122f0c <== NOT EXECUTED 122f28: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 122f2d: eb e1 jmp 122f10 <== NOT EXECUTED 122f2f: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122f30: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122f35: 8d 65 f4 lea -0xc(%ebp),%esp 122f38: 5b pop %ebx 122f39: 5e pop %esi 122f3a: 5f pop %edi 122f3b: c9 leave 122f3c: c3 ret 122f3d: 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 ) 122f40: b8 0b 00 00 00 mov $0xb,%eax 122f45: eb c9 jmp 122f10 00122f48 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122f48: 55 push %ebp 122f49: 89 e5 mov %esp,%ebp 122f4b: 57 push %edi 122f4c: 56 push %esi 122f4d: 53 push %ebx 122f4e: 83 ec 1c sub $0x1c,%esp 122f51: 8b 75 08 mov 0x8(%ebp),%esi 122f54: 8b 5d 0c mov 0xc(%ebp),%ebx 122f57: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122f5a: 85 db test %ebx,%ebx 122f5c: 74 3a je 122f98 return RTEMS_INVALID_ADDRESS; errno = 0; 122f5e: e8 41 f9 01 00 call 1428a4 <__errno> 122f63: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122f69: 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 ); 122f6c: 50 push %eax 122f6d: ff 75 14 pushl 0x14(%ebp) 122f70: 8d 45 e4 lea -0x1c(%ebp),%eax 122f73: 50 push %eax 122f74: 56 push %esi 122f75: e8 8a 6b 02 00 call 149b04 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122f7a: 83 c4 10 add $0x10,%esp 122f7d: 85 ff test %edi,%edi 122f7f: 74 05 je 122f86 *endptr = end; 122f81: 8b 55 e4 mov -0x1c(%ebp),%edx 122f84: 89 17 mov %edx,(%edi) /* nothing was converted */ if ( end == s ) 122f86: 39 75 e4 cmp %esi,-0x1c(%ebp) 122f89: 74 1d je 122fa8 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122f8b: 88 03 mov %al,(%ebx) 122f8d: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122f8f: 8d 65 f4 lea -0xc(%ebp),%esp 122f92: 5b pop %ebx 122f93: 5e pop %esi 122f94: 5f pop %edi 122f95: c9 leave 122f96: c3 ret 122f97: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122f98: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122f9d: 8d 65 f4 lea -0xc(%ebp),%esp 122fa0: 5b pop %ebx 122fa1: 5e pop %esi 122fa2: 5f pop %edi 122fa3: c9 leave 122fa4: c3 ret 122fa5: 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 ) 122fa8: b8 0b 00 00 00 mov $0xb,%eax 122fad: eb e0 jmp 122f8f 00111130 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 111130: 55 push %ebp 111131: 89 e5 mov %esp,%ebp 111133: 57 push %edi 111134: 56 push %esi 111135: 53 push %ebx 111136: 83 ec 2c sub $0x2c,%esp 111139: 8b 75 08 mov 0x8(%ebp),%esi 11113c: 8b 5d 0c mov 0xc(%ebp),%ebx 11113f: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 111142: 85 db test %ebx,%ebx 111144: 74 5e je 1111a4 return RTEMS_INVALID_ADDRESS; errno = 0; 111146: e8 c5 2b 00 00 call 113d10 <__errno> 11114b: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 111151: 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 ); 111157: 50 push %eax 111158: ff 75 14 pushl 0x14(%ebp) 11115b: 8d 45 e4 lea -0x1c(%ebp),%eax 11115e: 50 push %eax 11115f: 56 push %esi 111160: e8 5f 5c 00 00 call 116dc4 111165: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 111167: 83 c4 10 add $0x10,%esp 11116a: 85 ff test %edi,%edi 11116c: 74 05 je 111173 *endptr = end; 11116e: 8b 45 e4 mov -0x1c(%ebp),%eax 111171: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 111173: 39 75 e4 cmp %esi,-0x1c(%ebp) 111176: 74 3c je 1111b4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 111178: 83 fa ff cmp $0xffffffff,%edx 11117b: 74 0f je 11118c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 11117d: 89 13 mov %edx,(%ebx) 11117f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 111181: 8d 65 f4 lea -0xc(%ebp),%esp 111184: 5b pop %ebx 111185: 5e pop %esi 111186: 5f pop %edi 111187: c9 leave 111188: c3 ret 111189: 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)) 11118c: 89 55 d4 mov %edx,-0x2c(%ebp) 11118f: e8 7c 2b 00 00 call 113d10 <__errno> 111194: 83 38 22 cmpl $0x22,(%eax) 111197: 8b 55 d4 mov -0x2c(%ebp),%edx 11119a: 75 e1 jne 11117d 11119c: b8 0a 00 00 00 mov $0xa,%eax 1111a1: eb de jmp 111181 1111a3: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 1111a4: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 1111a9: 8d 65 f4 lea -0xc(%ebp),%esp 1111ac: 5b pop %ebx 1111ad: 5e pop %esi 1111ae: 5f pop %edi 1111af: c9 leave 1111b0: c3 ret 1111b1: 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 ) 1111b4: b8 0b 00 00 00 mov $0xb,%eax 1111b9: eb c6 jmp 111181 00122fb0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122fb0: 55 push %ebp 122fb1: 89 e5 mov %esp,%ebp 122fb3: 57 push %edi 122fb4: 56 push %esi 122fb5: 53 push %ebx 122fb6: 83 ec 2c sub $0x2c,%esp 122fb9: 8b 75 08 mov 0x8(%ebp),%esi 122fbc: 8b 5d 0c mov 0xc(%ebp),%ebx 122fbf: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122fc2: 85 db test %ebx,%ebx 122fc4: 74 5e je 123024 return RTEMS_INVALID_ADDRESS; errno = 0; 122fc6: e8 d9 f8 01 00 call 1428a4 <__errno> 122fcb: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122fd1: 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 ); 122fd7: 50 push %eax 122fd8: ff 75 14 pushl 0x14(%ebp) 122fdb: 8d 45 e4 lea -0x1c(%ebp),%eax 122fde: 50 push %eax 122fdf: 56 push %esi 122fe0: e8 1f 6b 02 00 call 149b04 122fe5: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122fe7: 83 c4 10 add $0x10,%esp 122fea: 85 ff test %edi,%edi 122fec: 74 05 je 122ff3 *endptr = end; 122fee: 8b 45 e4 mov -0x1c(%ebp),%eax 122ff1: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122ff3: 39 75 e4 cmp %esi,-0x1c(%ebp) 122ff6: 74 3c je 123034 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122ff8: 83 fa ff cmp $0xffffffff,%edx 122ffb: 74 0f je 12300c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122ffd: 89 13 mov %edx,(%ebx) 122fff: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 123001: 8d 65 f4 lea -0xc(%ebp),%esp 123004: 5b pop %ebx 123005: 5e pop %esi 123006: 5f pop %edi 123007: c9 leave 123008: c3 ret 123009: 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)) 12300c: 89 55 d4 mov %edx,-0x2c(%ebp) 12300f: e8 90 f8 01 00 call 1428a4 <__errno> 123014: 83 38 22 cmpl $0x22,(%eax) 123017: 8b 55 d4 mov -0x2c(%ebp),%edx 12301a: 75 e1 jne 122ffd 12301c: b8 0a 00 00 00 mov $0xa,%eax 123021: eb de jmp 123001 123023: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 123024: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 123029: 8d 65 f4 lea -0xc(%ebp),%esp 12302c: 5b pop %ebx 12302d: 5e pop %esi 12302e: 5f pop %edi 12302f: c9 leave 123030: c3 ret 123031: 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 ) 123034: b8 0b 00 00 00 mov $0xb,%eax 123039: eb c6 jmp 123001 001111bc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 1111bc: 55 push %ebp 1111bd: 89 e5 mov %esp,%ebp 1111bf: 57 push %edi 1111c0: 56 push %esi 1111c1: 53 push %ebx 1111c2: 83 ec 2c sub $0x2c,%esp 1111c5: 8b 7d 08 mov 0x8(%ebp),%edi 1111c8: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 1111cb: 85 db test %ebx,%ebx 1111cd: 74 6d je 11123c return RTEMS_INVALID_ADDRESS; errno = 0; 1111cf: e8 3c 2b 00 00 call 113d10 <__errno> 1111d4: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 1111da: c7 03 00 00 00 00 movl $0x0,(%ebx) 1111e0: 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 ); 1111e7: 52 push %edx 1111e8: ff 75 14 pushl 0x14(%ebp) 1111eb: 8d 45 e4 lea -0x1c(%ebp),%eax 1111ee: 50 push %eax 1111ef: 57 push %edi 1111f0: e8 eb 5b 00 00 call 116de0 1111f5: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 1111f7: 83 c4 10 add $0x10,%esp 1111fa: 8b 45 10 mov 0x10(%ebp),%eax 1111fd: 85 c0 test %eax,%eax 1111ff: 74 08 je 111209 *endptr = end; 111201: 8b 45 e4 mov -0x1c(%ebp),%eax 111204: 8b 4d 10 mov 0x10(%ebp),%ecx 111207: 89 01 mov %eax,(%ecx) /* nothing was converted */ if ( end == s ) 111209: 39 7d e4 cmp %edi,-0x1c(%ebp) 11120c: 74 3e je 11124c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 11120e: 89 f0 mov %esi,%eax 111210: 21 d0 and %edx,%eax 111212: 40 inc %eax 111213: 74 0f je 111224 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 111215: 89 33 mov %esi,(%ebx) 111217: 89 53 04 mov %edx,0x4(%ebx) 11121a: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 11121c: 8d 65 f4 lea -0xc(%ebp),%esp 11121f: 5b pop %ebx 111220: 5e pop %esi 111221: 5f pop %edi 111222: c9 leave 111223: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 111224: 89 55 d4 mov %edx,-0x2c(%ebp) 111227: e8 e4 2a 00 00 call 113d10 <__errno> 11122c: 83 38 22 cmpl $0x22,(%eax) 11122f: 8b 55 d4 mov -0x2c(%ebp),%edx 111232: 75 e1 jne 111215 111234: b8 0a 00 00 00 mov $0xa,%eax 111239: eb e1 jmp 11121c 11123b: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 11123c: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 111241: 8d 65 f4 lea -0xc(%ebp),%esp 111244: 5b pop %ebx 111245: 5e pop %esi 111246: 5f pop %edi 111247: c9 leave 111248: c3 ret 111249: 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 ) 11124c: b8 0b 00 00 00 mov $0xb,%eax 111251: eb c9 jmp 11121c 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 34 35 12 00 movzbl 0x123534,%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 d0 77 12 00 pushl 0x1277d0 10b78c: 89 4d e4 mov %ecx,-0x1c(%ebp) 10b78f: e8 ac 06 00 00 call 10be40 <_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 a0 76 12 00 movl $0x1276a0,(%esp) 10b79b: e8 30 10 00 00 call 10c7d0 <_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 a0 76 12 00 push $0x1276a0 10b7e2: 89 55 e4 mov %edx,-0x1c(%ebp) 10b7e5: e8 a6 1d 00 00 call 10d590 <_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 f4 00 00 00 mov 0xf4(%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 d0 77 12 00 pushl 0x1277d0 10b817: e8 6c 06 00 00 call 10be88 <_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 79 13 00 00 call 10cbc0 <_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 fd 12 00 00 call 10cb50 <_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 d0 77 12 00 pushl 0x1277d0 10b85a: e8 29 06 00 00 call 10be88 <_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 d0 77 12 00 pushl 0x1277d0 10b879: e8 0a 06 00 00 call 10be88 <_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 d0 77 12 00 pushl 0x1277d0 10b8a9: e8 92 05 00 00 call 10be40 <_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 5c 1c 00 00 call 10d518 <_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 ed 12 00 00 call 10cbc0 <_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 04 19 00 00 call 10d1e0 <_Thread_Close> 10b8dc: 58 pop %eax 10b8dd: ff 73 08 pushl 0x8(%ebx) 10b8e0: e8 db 12 00 00 call 10cbc0 <_Objects_Get_information_id> 10b8e5: 5a pop %edx 10b8e6: 59 pop %ecx 10b8e7: 53 push %ebx 10b8e8: 50 push %eax 10b8e9: e8 62 12 00 00 call 10cb50 <_Objects_Free> _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 10b8ee: 58 pop %eax 10b8ef: ff 35 d0 77 12 00 pushl 0x1277d0 10b8f5: e8 8e 05 00 00 call 10be88 <_API_Mutex_Unlock> _Thread_Enable_dispatch(); 10b8fa: e8 f5 1b 00 00 call 10d4f4 <_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 d0 77 12 00 pushl 0x1277d0 10b915: e8 6e 05 00 00 call 10be88 <_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 04 6e 12 00 00 cmpb $0x0,0x126e04 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 b8 b3 12 00 mov 0x12b3b8,%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 45 1f 00 00 call 10f26c <_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 f4 00 00 00 mov 0xf4(%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 06 1f 00 00 call 10f248 <_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 b8 b3 12 00 mov 0x12b3b8,%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 f4 00 00 00 mov 0xf4(%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 d8 77 12 00 mov 0x1277d8,%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 a0 76 12 00 push $0x1276a0 10b956: e8 a9 14 00 00 call 10ce04 <_Objects_Name_to_id_u32> return _Status_Object_name_errors_to_status[ status ]; 10b95b: 8b 04 85 ac 0e 12 00 mov 0x120eac(,%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 8e 38 00 00 call 11b5cc <_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 21 38 00 00 call 11b57c <_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 13 38 00 00 call 11b57c <_Thread_Enable_dispatch> 117d69: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117d6b: c9 leave 117d6c: c3 ret 001129c8 : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { 1129c8: 55 push %ebp 1129c9: 89 e5 mov %esp,%ebp 1129cb: 57 push %edi 1129cc: 56 push %esi 1129cd: 53 push %ebx 1129ce: 83 ec 1c sub $0x1c,%esp 1129d1: 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 ) 1129d4: 85 c9 test %ecx,%ecx 1129d6: 0f 84 1c 01 00 00 je 112af8 return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; 1129dc: 8b 1d d8 77 12 00 mov 0x1277d8,%ebx api = executing->API_Extensions[ THREAD_API_RTEMS ]; 1129e2: 8b bb f4 00 00 00 mov 0xf4(%ebx),%edi asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 1129e8: 80 7b 75 01 cmpb $0x1,0x75(%ebx) 1129ec: 19 f6 sbb %esi,%esi 1129ee: 81 e6 00 01 00 00 and $0x100,%esi if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) 1129f4: 8b 53 7c mov 0x7c(%ebx),%edx 1129f7: 85 d2 test %edx,%edx 1129f9: 0f 85 b5 00 00 00 jne 112ab4 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 1129ff: 80 7f 08 01 cmpb $0x1,0x8(%edi) 112a03: 19 d2 sbb %edx,%edx 112a05: 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(); 112a0b: 89 55 e4 mov %edx,-0x1c(%ebp) 112a0e: 89 4d e0 mov %ecx,-0x20(%ebp) 112a11: e8 d6 be ff ff call 10e8ec <_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; 112a16: 8b 55 e4 mov -0x1c(%ebp),%edx 112a19: 09 d0 or %edx,%eax old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; 112a1b: 09 f0 or %esi,%eax 112a1d: 8b 4d e0 mov -0x20(%ebp),%ecx 112a20: 89 01 mov %eax,(%ecx) /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 112a22: f7 45 0c 00 01 00 00 testl $0x100,0xc(%ebp) 112a29: 74 0f je 112a3a executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; 112a2b: 8b 45 08 mov 0x8(%ebp),%eax 112a2e: c1 e8 08 shr $0x8,%eax 112a31: 83 f0 01 xor $0x1,%eax 112a34: 83 e0 01 and $0x1,%eax 112a37: 88 43 75 mov %al,0x75(%ebx) if ( mask & RTEMS_TIMESLICE_MASK ) { 112a3a: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp) 112a41: 74 18 je 112a5b if ( _Modes_Is_timeslice(mode_set) ) { 112a43: f7 45 08 00 02 00 00 testl $0x200,0x8(%ebp) 112a4a: 74 74 je 112ac0 executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 112a4c: c7 43 7c 01 00 00 00 movl $0x1,0x7c(%ebx) executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 112a53: a1 e4 76 12 00 mov 0x1276e4,%eax 112a58: 89 43 78 mov %eax,0x78(%ebx) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 112a5b: f6 45 0c 01 testb $0x1,0xc(%ebp) 112a5f: 74 07 je 112a68 */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); 112a61: f6 45 08 01 testb $0x1,0x8(%ebp) 112a65: 74 69 je 112ad0 112a67: fa cli */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { 112a68: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp) 112a6f: 74 2c je 112a9d * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( 112a71: 8b 45 08 mov 0x8(%ebp),%eax 112a74: c1 e8 0a shr $0xa,%eax 112a77: 83 f0 01 xor $0x1,%eax 112a7a: 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; 112a7d: 38 47 08 cmp %al,0x8(%edi) 112a80: 74 1b je 112a9d 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; 112a82: 88 47 08 mov %al,0x8(%edi) ) { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); 112a85: 9c pushf 112a86: fa cli 112a87: 58 pop %eax _signals = information->signals_pending; 112a88: 8b 57 18 mov 0x18(%edi),%edx information->signals_pending = information->signals_posted; 112a8b: 8b 4f 14 mov 0x14(%edi),%ecx 112a8e: 89 4f 18 mov %ecx,0x18(%edi) information->signals_posted = _signals; 112a91: 89 57 14 mov %edx,0x14(%edi) _ISR_Enable( _level ); 112a94: 50 push %eax 112a95: 9d popf if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 112a96: 8b 47 14 mov 0x14(%edi),%eax 112a99: 85 c0 test %eax,%eax 112a9b: 75 53 jne 112af0 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; 112a9d: 31 db xor %ebx,%ebx } } } if ( _System_state_Is_up( _System_state_Get() ) ) 112a9f: 83 3d e0 78 12 00 03 cmpl $0x3,0x1278e0 112aa6: 74 2c je 112ad4 if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); 112aa8: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 112aaa: 83 c4 1c add $0x1c,%esp 112aad: 5b pop %ebx 112aae: 5e pop %esi 112aaf: 5f pop %edi 112ab0: c9 leave 112ab1: c3 ret 112ab2: 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; 112ab4: 81 ce 00 02 00 00 or $0x200,%esi 112aba: e9 40 ff ff ff jmp 1129ff 112abf: 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; 112ac0: c7 43 7c 00 00 00 00 movl $0x0,0x7c(%ebx) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 112ac7: f6 45 0c 01 testb $0x1,0xc(%ebp) 112acb: 74 9b je 112a68 112acd: eb 92 jmp 112a61 112acf: 90 nop <== NOT EXECUTED 112ad0: fb sti 112ad1: eb 95 jmp 112a68 112ad3: 90 nop <== NOT EXECUTED } } } if ( _System_state_Is_up( _System_state_Get() ) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) 112ad4: e8 a7 02 00 00 call 112d80 <_Thread_Evaluate_mode> 112ad9: 84 c0 test %al,%al 112adb: 75 04 jne 112ae1 112add: 84 db test %bl,%bl 112adf: 74 c7 je 112aa8 _Thread_Dispatch(); 112ae1: e8 b2 a8 ff ff call 10d398 <_Thread_Dispatch> 112ae6: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 112ae8: 83 c4 1c add $0x1c,%esp 112aeb: 5b pop %ebx 112aec: 5e pop %esi 112aed: 5f pop %edi 112aee: c9 leave 112aef: 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; 112af0: c6 43 74 01 movb $0x1,0x74(%ebx) 112af4: b3 01 mov $0x1,%bl 112af6: eb a7 jmp 112a9f ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) 112af8: 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; } 112afd: 83 c4 1c add $0x1c,%esp 112b00: 5b pop %ebx 112b01: 5e pop %esi 112b02: 5f pop %edi 112b03: c9 leave 112b04: 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 32 1c 00 00 call 10dff0 <_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 50 24 00 00 call 10e824 <_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 ec 1b 00 00 call 10dfcc <_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 d7 1b 00 00 call 10dfcc <_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 12 1d 00 00 call 110e40 <_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 a5 1c 00 00 call 110df0 <_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 15 25 00 00 call 111674 <_Thread_Resume> _Thread_Enable_dispatch(); 10f15f: e8 8c 1c 00 00 call 110df0 <_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 04 6e 12 00 00 cmpb $0x0,0x126e04 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 b8 b3 12 00 mov 0x12b3b8,%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 d1 1d 00 00 call 10f26c <_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 f4 00 00 00 mov 0xf4(%eax),%eax 10d4ab: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4) _Thread_Enable_dispatch(); 10d4af: e8 94 1d 00 00 call 10f248 <_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 b8 b3 12 00 mov 0x12b3b8,%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 f4 00 00 00 mov 0xf4(%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 34 8e 12 00 movzbl 0x128e34,%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 68 1e 00 00 call 111c70 <_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 04 19 00 00 call 111738 <_Thread_Change_priority> 10fe34: 83 c4 10 add $0x10,%esp } _Thread_Enable_dispatch(); 10fe37: e8 e4 1d 00 00 call 111c20 <_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 1b 1b 00 00 call 10d518 <_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 ec 25 00 00 call 10e004 <_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 d0 1a 00 00 call 10d4f4 <_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 a7 1a 00 00 call 10d4f4 <_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 001108f8 : */ rtems_status_code rtems_task_suspend( rtems_id id ) { 1108f8: 55 push %ebp 1108f9: 89 e5 mov %esp,%ebp 1108fb: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 1108fe: 8d 45 f4 lea -0xc(%ebp),%eax 110901: 50 push %eax 110902: ff 75 08 pushl 0x8(%ebp) 110905: e8 0e cc ff ff call 10d518 <_Thread_Get> switch ( location ) { 11090a: 83 c4 10 add $0x10,%esp 11090d: 8b 55 f4 mov -0xc(%ebp),%edx 110910: 85 d2 test %edx,%edx 110912: 74 08 je 11091c 110914: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 110919: c9 leave 11091a: c3 ret 11091b: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 11091c: f6 40 10 02 testb $0x2,0x10(%eax) 110920: 74 0e je 110930 _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 110922: e8 cd cb ff ff call 10d4f4 <_Thread_Enable_dispatch> 110927: b8 0f 00 00 00 mov $0xf,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11092c: c9 leave 11092d: c3 ret 11092e: 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 ); 110930: 83 ec 0c sub $0xc,%esp 110933: 50 push %eax 110934: e8 5b 0a 00 00 call 111394 <_Thread_Suspend> _Thread_Enable_dispatch(); 110939: e8 b6 cb ff ff call 10d4f4 <_Thread_Enable_dispatch> 11093e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 110940: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 110943: c9 leave 110944: c3 ret 0012e47c : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 12e47c: 55 push %ebp 12e47d: 89 e5 mov %esp,%ebp 12e47f: 57 push %edi 12e480: 56 push %esi 12e481: 53 push %ebx 12e482: 83 ec 1c sub $0x1c,%esp 12e485: 8b 5d 0c mov 0xc(%ebp),%ebx 12e488: 8b 7d 10 mov 0x10(%ebp),%edi Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 12e48b: 85 db test %ebx,%ebx 12e48d: 0f 84 9d 00 00 00 je 12e530 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 12e493: 83 ec 08 sub $0x8,%esp 12e496: 8d 45 e4 lea -0x1c(%ebp),%eax 12e499: 50 push %eax 12e49a: ff 75 08 pushl 0x8(%ebp) 12e49d: e8 9a 54 fe ff call 11393c <_Thread_Get> 12e4a2: 89 c6 mov %eax,%esi switch (location) { 12e4a4: 83 c4 10 add $0x10,%esp 12e4a7: 8b 45 e4 mov -0x1c(%ebp),%eax 12e4aa: 85 c0 test %eax,%eax 12e4ac: 74 0e je 12e4bc 12e4ae: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e4b3: 8d 65 f4 lea -0xc(%ebp),%esp 12e4b6: 5b pop %ebx 12e4b7: 5e pop %esi 12e4b8: 5f pop %edi 12e4b9: c9 leave 12e4ba: c3 ret 12e4bb: 90 nop <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; 12e4bc: 8b 86 04 01 00 00 mov 0x104(%esi),%eax while (tvp) { 12e4c2: 85 c0 test %eax,%eax 12e4c4: 75 44 jne 12e50a 12e4c6: 66 90 xchg %ax,%ax } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) 12e4c8: 83 ec 0c sub $0xc,%esp 12e4cb: 6a 14 push $0x14 12e4cd: e8 ce 65 fe ff call 114aa0 <_Workspace_Allocate> _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 12e4d2: 83 c4 10 add $0x10,%esp 12e4d5: 85 c0 test %eax,%eax 12e4d7: 74 4b je 12e524 _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 12e4d9: 8b 13 mov (%ebx),%edx 12e4db: 89 50 08 mov %edx,0x8(%eax) new->ptr = ptr; 12e4de: 89 58 04 mov %ebx,0x4(%eax) new->dtor = dtor; 12e4e1: 89 78 10 mov %edi,0x10(%eax) new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 12e4e4: 8b 96 04 01 00 00 mov 0x104(%esi),%edx 12e4ea: 89 10 mov %edx,(%eax) the_thread->task_variables = new; 12e4ec: 89 86 04 01 00 00 mov %eax,0x104(%esi) _Thread_Enable_dispatch(); 12e4f2: e8 21 54 fe ff call 113918 <_Thread_Enable_dispatch> 12e4f7: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e4f9: 8d 65 f4 lea -0xc(%ebp),%esp 12e4fc: 5b pop %ebx 12e4fd: 5e pop %esi 12e4fe: 5f pop %edi 12e4ff: c9 leave 12e500: c3 ret 12e501: 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; 12e504: 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) { 12e506: 85 c0 test %eax,%eax 12e508: 74 be je 12e4c8 if (tvp->ptr == ptr) { 12e50a: 39 58 04 cmp %ebx,0x4(%eax) 12e50d: 75 f5 jne 12e504 tvp->dtor = dtor; 12e50f: 89 78 10 mov %edi,0x10(%eax) _Thread_Enable_dispatch(); 12e512: e8 01 54 fe ff call 113918 <_Thread_Enable_dispatch> 12e517: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e519: 8d 65 f4 lea -0xc(%ebp),%esp 12e51c: 5b pop %ebx 12e51d: 5e pop %esi 12e51e: 5f pop %edi 12e51f: c9 leave 12e520: c3 ret 12e521: 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(); 12e524: e8 ef 53 fe ff call 113918 <_Thread_Enable_dispatch> 12e529: b8 1a 00 00 00 mov $0x1a,%eax return RTEMS_NO_MEMORY; 12e52e: eb 83 jmp 12e4b3 { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 12e530: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e535: 8d 65 f4 lea -0xc(%ebp),%esp 12e538: 5b pop %ebx 12e539: 5e pop %esi 12e53a: 5f pop %edi 12e53b: c9 leave 12e53c: c3 ret 0012e540 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 12e540: 55 push %ebp 12e541: 89 e5 mov %esp,%ebp 12e543: 53 push %ebx 12e544: 83 ec 14 sub $0x14,%esp 12e547: 8b 5d 0c mov 0xc(%ebp),%ebx Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 12e54a: 85 db test %ebx,%ebx 12e54c: 74 4c je 12e59a return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 12e54e: 83 ec 08 sub $0x8,%esp 12e551: 8d 45 f4 lea -0xc(%ebp),%eax 12e554: 50 push %eax 12e555: ff 75 08 pushl 0x8(%ebp) 12e558: e8 df 53 fe ff call 11393c <_Thread_Get> switch (location) { 12e55d: 83 c4 10 add $0x10,%esp 12e560: 8b 55 f4 mov -0xc(%ebp),%edx 12e563: 85 d2 test %edx,%edx 12e565: 74 0d je 12e574 12e567: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e56c: 8b 5d fc mov -0x4(%ebp),%ebx 12e56f: c9 leave 12e570: c3 ret 12e571: 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; 12e574: 8b 90 04 01 00 00 mov 0x104(%eax),%edx while (tvp) { 12e57a: 85 d2 test %edx,%edx 12e57c: 74 17 je 12e595 if (tvp->ptr == ptr) { 12e57e: 39 5a 04 cmp %ebx,0x4(%edx) 12e581: 75 0a jne 12e58d 12e583: eb 3c jmp 12e5c1 12e585: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12e588: 39 5a 04 cmp %ebx,0x4(%edx) 12e58b: 74 17 je 12e5a4 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; 12e58d: 89 d1 mov %edx,%ecx } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 12e58f: 8b 12 mov (%edx),%edx the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 12e591: 85 d2 test %edx,%edx 12e593: 75 f3 jne 12e588 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 12e595: e8 7e 53 fe ff call 113918 <_Thread_Enable_dispatch> 12e59a: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e59f: 8b 5d fc mov -0x4(%ebp),%ebx 12e5a2: c9 leave 12e5a3: c3 ret case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; 12e5a4: 8b 1a mov (%edx),%ebx 12e5a6: 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 ); 12e5a8: 83 ec 08 sub $0x8,%esp 12e5ab: 52 push %edx 12e5ac: 50 push %eax 12e5ad: e8 a2 00 00 00 call 12e654 <_RTEMS_Tasks_Invoke_task_variable_dtor> _Thread_Enable_dispatch(); 12e5b2: e8 61 53 fe ff call 113918 <_Thread_Enable_dispatch> 12e5b7: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12e5b9: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e5bc: 8b 5d fc mov -0x4(%ebp),%ebx 12e5bf: c9 leave 12e5c0: 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; 12e5c1: 8b 0a mov (%edx),%ecx 12e5c3: 89 88 04 01 00 00 mov %ecx,0x104(%eax) 12e5c9: eb dd jmp 12e5a8 0012e5cc : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 12e5cc: 55 push %ebp 12e5cd: 89 e5 mov %esp,%ebp 12e5cf: 56 push %esi 12e5d0: 53 push %ebx 12e5d1: 83 ec 10 sub $0x10,%esp 12e5d4: 8b 5d 0c mov 0xc(%ebp),%ebx 12e5d7: 8b 75 10 mov 0x10(%ebp),%esi Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 12e5da: 85 db test %ebx,%ebx 12e5dc: 74 56 je 12e634 return RTEMS_INVALID_ADDRESS; if ( !result ) 12e5de: 85 f6 test %esi,%esi 12e5e0: 74 52 je 12e634 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 12e5e2: 83 ec 08 sub $0x8,%esp 12e5e5: 8d 45 f4 lea -0xc(%ebp),%eax 12e5e8: 50 push %eax 12e5e9: ff 75 08 pushl 0x8(%ebp) 12e5ec: e8 4b 53 fe ff call 11393c <_Thread_Get> switch (location) { 12e5f1: 83 c4 10 add $0x10,%esp 12e5f4: 8b 55 f4 mov -0xc(%ebp),%edx 12e5f7: 85 d2 test %edx,%edx 12e5f9: 75 2d jne 12e628 case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; 12e5fb: 8b 80 04 01 00 00 mov 0x104(%eax),%eax while (tvp) { 12e601: 85 c0 test %eax,%eax 12e603: 75 09 jne 12e60e 12e605: eb 39 jmp 12e640 12e607: 90 nop <== NOT EXECUTED */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 12e608: 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) { 12e60a: 85 c0 test %eax,%eax 12e60c: 74 32 je 12e640 if (tvp->ptr == ptr) { 12e60e: 39 58 04 cmp %ebx,0x4(%eax) 12e611: 75 f5 jne 12e608 /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 12e613: 8b 40 0c mov 0xc(%eax),%eax 12e616: 89 06 mov %eax,(%esi) _Thread_Enable_dispatch(); 12e618: e8 fb 52 fe ff call 113918 <_Thread_Enable_dispatch> 12e61d: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e61f: 8d 65 f8 lea -0x8(%ebp),%esp 12e622: 5b pop %ebx 12e623: 5e pop %esi 12e624: c9 leave 12e625: c3 ret 12e626: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 12e628: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e62d: 8d 65 f8 lea -0x8(%ebp),%esp 12e630: 5b pop %ebx 12e631: 5e pop %esi 12e632: c9 leave 12e633: c3 ret return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; 12e634: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e639: 8d 65 f8 lea -0x8(%ebp),%esp 12e63c: 5b pop %ebx 12e63d: 5e pop %esi 12e63e: c9 leave 12e63f: c3 ret _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 12e640: e8 d3 52 fe ff call 113918 <_Thread_Enable_dispatch> 12e645: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12e64a: 8d 65 f8 lea -0x8(%ebp),%esp 12e64d: 5b pop %ebx 12e64e: 5e pop %esi 12e64f: c9 leave 12e650: 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 18 77 12 00 mov 0x127718,%eax 10ba63: 40 inc %eax 10ba64: a3 18 77 12 00 mov %eax,0x127718 _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 d8 77 12 00 pushl 0x1277d8 10ba78: e8 3b 23 00 00 call 10ddb8 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 10ba7d: a1 d8 77 12 00 mov 0x1277d8,%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 5c d3 10 00 movl $0x10d35c,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 f8 77 12 00 push $0x1277f8 10baab: e8 90 29 00 00 call 10e440 <_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 3c 1a 00 00 call 10d4f4 <_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 0b 26 00 00 call 10e0d0 <_Thread_Yield_processor> _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 10bac5: e8 2a 1a 00 00 call 10d4f4 <_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 9f 12 00 00 cmpb $0x0,0x129f4c 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 9f 12 00 cmp 0x129fcc,%eax 10c8a2: 76 e2 jbe 10c886 10c8a4: 8b 15 38 9f 12 00 mov 0x129f38,%edx 10c8aa: 42 inc %edx 10c8ab: 89 15 38 9f 12 00 mov %edx,0x129f38 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 9f 12 00 pushl 0x129ff8 10c8bc: 89 45 f4 mov %eax,-0xc(%ebp) 10c8bf: e8 34 24 00 00 call 10ecf8 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 10c8c4: 8b 15 f8 9f 12 00 mov 0x129ff8,%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 9c e2 10 00 movl $0x10e29c,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 9f 12 00 sub 0x129fcc,%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 a0 12 00 push $0x12a00c 10c8fc: e8 f7 2a 00 00 call 10f3f8 <_Watchdog_Insert> ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); 10c901: e8 2e 1b 00 00 call 10e434 <_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 28 53 12 00 mov %eax,0x125328 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 108eef: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 108ef2: a3 2c 53 12 00 mov %eax,0x12532c <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 108ef7: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 108efa: a3 30 53 12 00 mov %eax,0x125330 <== 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 d8 75 12 00 pushl 0x1275d8 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 44 72 12 00 mov 0x127244(%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 d8 75 12 00 pushl 0x1275d8 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 dc 75 12 00 mov %eax,0x1275dc 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 e0 75 12 00 mov %eax,0x1275e0 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 89 16 00 00 call 10bbdc <== 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 e0 75 12 00 00 movl $0x0,0x1275e0 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 f4 72 12 00 mov 0x1272f4,%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 1c 2a 00 00 call 10bbdc <== 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 50 72 12 00 mov 0x127250(%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 50 72 12 00 mov 0x127250(%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 d8 75 12 00 mov 0x1275d8,%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 d8 75 12 00 push $0x1275d8 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 f8 2c 00 00 call 10bbdc <== 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 58 72 12 00 mov 0x127258(%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 44 72 12 00 mov 0x127244(%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 40 72 12 00 mov 0x127240(%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 d8 75 12 00 pushl 0x1275d8 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 e0 75 12 00 mov 0x1275e0,%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 d8 75 12 00 pushl 0x1275d8 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 b6 52 00 00 call 10f90c 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 2c 53 12 00 mov 0x12532c,%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 30 53 12 00 mov 0x125330,%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 28 53 12 00 pushl 0x125328 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 e0 75 12 00 mov 0x1275e0,%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 e0 75 12 00 mov %esi,0x1275e0 if (rtems_termios_ttyTail == NULL) 10a746: 8b 3d dc 75 12 00 mov 0x1275dc,%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 34 53 12 00 movsbl 0x125334,%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 34 53 12 00 movsbl 0x125334,%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 34 53 12 00 movsbl 0x125334,%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 34 53 12 00 mov 0x125334,%al 10a8c5: 8d 48 01 lea 0x1(%eax),%ecx 10a8c8: 88 0d 34 53 12 00 mov %cl,0x125334 10a8ce: 3c 7a cmp $0x7a,%al 10a8d0: 0f 85 e2 fc ff ff jne 10a5b8 c = 'a'; 10a8d6: c6 05 34 53 12 00 61 movb $0x61,0x125334 <== 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 d8 75 12 00 pushl 0x1275d8 <== 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 d8 75 12 00 pushl 0x1275d8 <== 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 34 53 12 00 movsbl 0x125334,%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 6f 12 00 00 call 10bbdc <== 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 34 53 12 00 movsbl 0x125334,%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 34 53 12 00 movsbl 0x125334,%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 dc 75 12 00 mov %esi,0x1275dc 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 d8 25 00 00 call 10bbdc <== 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 48 72 12 00 mov 0x127248(%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 28 53 12 00 mov 0x125328,%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 54 72 12 00 mov 0x127254(%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 4c 72 12 00 mov 0x12724c(%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 0010bd8c : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { 10bd8c: 55 push %ebp 10bd8d: 89 e5 mov %esp,%ebp 10bd8f: 57 push %edi 10bd90: 56 push %esi 10bd91: 53 push %ebx 10bd92: 83 ec 0c sub $0xc,%esp 10bd95: 8b 5d 08 mov 0x8(%ebp),%ebx 10bd98: 8b 75 0c mov 0xc(%ebp),%esi Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 10bd9b: 85 db test %ebx,%ebx 10bd9d: 74 6d je 10be0c return RTEMS_INVALID_NAME; if ( !id ) 10bd9f: 85 f6 test %esi,%esi 10bda1: 0f 84 89 00 00 00 je 10be30 10bda7: a1 f8 89 12 00 mov 0x1289f8,%eax 10bdac: 40 inc %eax 10bdad: a3 f8 89 12 00 mov %eax,0x1289f8 * 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 ); 10bdb2: 83 ec 0c sub $0xc,%esp 10bdb5: 68 e0 93 12 00 push $0x1293e0 10bdba: e8 5d 0e 00 00 call 10cc1c <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { 10bdbf: 83 c4 10 add $0x10,%esp 10bdc2: 85 c0 test %eax,%eax 10bdc4: 74 56 je 10be1c _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; 10bdc6: 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; 10bdcd: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_watchdog->routine = routine; 10bdd4: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) the_watchdog->id = id; 10bddb: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) the_watchdog->user_data = user_data; 10bde2: 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; 10bde9: 8b 50 08 mov 0x8(%eax),%edx 10bdec: 0f b7 fa movzwl %dx,%edi 10bdef: 8b 0d fc 93 12 00 mov 0x1293fc,%ecx 10bdf5: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10bdf8: 89 58 0c mov %ebx,0xc(%eax) &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; 10bdfb: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 10bdfd: e8 3e 1b 00 00 call 10d940 <_Thread_Enable_dispatch> 10be02: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10be04: 8d 65 f4 lea -0xc(%ebp),%esp 10be07: 5b pop %ebx 10be08: 5e pop %esi 10be09: 5f pop %edi 10be0a: c9 leave 10be0b: c3 ret rtems_id *id ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 10be0c: b8 03 00 00 00 mov $0x3,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10be11: 8d 65 f4 lea -0xc(%ebp),%esp 10be14: 5b pop %ebx 10be15: 5e pop %esi 10be16: 5f pop %edi 10be17: c9 leave 10be18: c3 ret 10be19: 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(); 10be1c: e8 1f 1b 00 00 call 10d940 <_Thread_Enable_dispatch> 10be21: b8 05 00 00 00 mov $0x5,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10be26: 8d 65 f4 lea -0xc(%ebp),%esp 10be29: 5b pop %ebx 10be2a: 5e pop %esi 10be2b: 5f pop %edi 10be2c: c9 leave 10be2d: c3 ret 10be2e: 66 90 xchg %ax,%ax <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 10be30: b8 09 00 00 00 mov $0x9,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10be35: 8d 65 f4 lea -0xc(%ebp),%esp 10be38: 5b pop %ebx 10be39: 5e pop %esi 10be3a: 5f pop %edi 10be3b: c9 leave 10be3c: 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 e0 26 14 00 push $0x1426e0 1183a7: e8 ec 28 00 00 call 11ac98 <_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 e0 26 14 00 push $0x1426e0 1183c1: e8 62 24 00 00 call 11a828 <_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 ef 45 00 00 call 11c9c0 <_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 e0 26 14 00 push $0x1426e0 1183d9: e8 4e 27 00 00 call 11ab2c <_Objects_Free> _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 1183de: e8 99 31 00 00 call 11b57c <_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 0010be40 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 10be40: 55 push %ebp 10be41: 89 e5 mov %esp,%ebp 10be43: 57 push %edi 10be44: 56 push %esi 10be45: 53 push %ebx 10be46: 83 ec 2c sub $0x2c,%esp 10be49: 8b 5d 0c mov 0xc(%ebp),%ebx 10be4c: 8b 75 10 mov 0x10(%ebp),%esi Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 10be4f: 85 db test %ebx,%ebx 10be51: 0f 84 99 00 00 00 je 10bef0 return RTEMS_INVALID_NUMBER; if ( !routine ) 10be57: 85 f6 test %esi,%esi 10be59: 0f 84 b1 00 00 00 je 10bf10 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 10be5f: 57 push %edi 10be60: 8d 45 e4 lea -0x1c(%ebp),%eax 10be63: 50 push %eax 10be64: ff 75 08 pushl 0x8(%ebp) 10be67: 68 e0 93 12 00 push $0x1293e0 10be6c: e8 5b 12 00 00 call 10d0cc <_Objects_Get> 10be71: 89 c7 mov %eax,%edi return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 10be73: 83 c4 10 add $0x10,%esp 10be76: 8b 4d e4 mov -0x1c(%ebp),%ecx 10be79: 85 c9 test %ecx,%ecx 10be7b: 74 0f je 10be8c 10be7d: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10be82: 8d 65 f4 lea -0xc(%ebp),%esp 10be85: 5b pop %ebx 10be86: 5e pop %esi 10be87: 5f pop %edi 10be88: c9 leave 10be89: c3 ret 10be8a: 66 90 xchg %ax,%ax <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 10be8c: 8d 50 10 lea 0x10(%eax),%edx 10be8f: 83 ec 0c sub $0xc,%esp 10be92: 52 push %edx 10be93: 89 55 d4 mov %edx,-0x2c(%ebp) 10be96: e8 29 2b 00 00 call 10e9c4 <_Watchdog_Remove> _ISR_Disable( level ); 10be9b: 9c pushf 10be9c: fa cli 10be9d: 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 ) { 10be9e: 83 c4 10 add $0x10,%esp 10bea1: 8b 57 18 mov 0x18(%edi),%edx 10bea4: 85 d2 test %edx,%edx 10bea6: 8b 55 d4 mov -0x2c(%ebp),%edx 10bea9: 75 55 jne 10bf00 /* * 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; 10beab: 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; 10beb2: c7 47 18 00 00 00 00 movl $0x0,0x18(%edi) the_watchdog->routine = routine; 10beb9: 89 77 2c mov %esi,0x2c(%edi) the_watchdog->id = id; 10bebc: 8b 4d 08 mov 0x8(%ebp),%ecx 10bebf: 89 4f 30 mov %ecx,0x30(%edi) the_watchdog->user_data = user_data; 10bec2: 8b 4d 14 mov 0x14(%ebp),%ecx 10bec5: 89 4f 34 mov %ecx,0x34(%edi) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 10bec8: 50 push %eax 10bec9: 9d popf Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10beca: 89 5f 1c mov %ebx,0x1c(%edi) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10becd: 83 ec 08 sub $0x8,%esp 10bed0: 52 push %edx 10bed1: 68 d8 8a 12 00 push $0x128ad8 10bed6: e8 b1 29 00 00 call 10e88c <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 10bedb: e8 60 1a 00 00 call 10d940 <_Thread_Enable_dispatch> 10bee0: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10bee2: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10bee5: 8d 65 f4 lea -0xc(%ebp),%esp 10bee8: 5b pop %ebx 10bee9: 5e pop %esi 10beea: 5f pop %edi 10beeb: c9 leave 10beec: c3 ret 10beed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 10bef0: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10bef5: 8d 65 f4 lea -0xc(%ebp),%esp 10bef8: 5b pop %ebx 10bef9: 5e pop %esi 10befa: 5f pop %edi 10befb: c9 leave 10befc: c3 ret 10befd: 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 ); 10bf00: 50 push %eax 10bf01: 9d popf _Thread_Enable_dispatch(); 10bf02: e8 39 1a 00 00 call 10d940 <_Thread_Enable_dispatch> 10bf07: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10bf09: e9 74 ff ff ff jmp 10be82 10bf0e: 66 90 xchg %ax,%ax <== NOT EXECUTED ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) 10bf10: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10bf15: 8d 65 f4 lea -0xc(%ebp),%esp 10bf18: 5b pop %ebx 10bf19: 5e pop %esi 10bf1a: 5f pop %edi 10bf1b: c9 leave 10bf1c: 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 0c 1d 14 00 00 cmpb $0x0,0x141d0c 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 8c 1d 14 00 cmp 0x141d8c,%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 e0 26 14 00 push $0x1426e0 11854b: e8 48 27 00 00 call 11ac98 <_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 54 44 00 00 call 11c9c0 <_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 8c 1d 14 00 sub 0x141d8c,%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 cc 1d 14 00 push $0x141dcc 11859d: e8 e6 42 00 00 call 11c888 <_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 d5 2f 00 00 call 11b57c <_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 e0 26 14 00 push $0x1426e0 1185e7: e8 ac 26 00 00 call 11ac98 <_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 60 2f 00 00 call 11b57c <_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 f4 96 13 00 movzbl 0x1396f4,%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 f8 1c 14 00 mov 0x141cf8,%edx 11890e: 42 inc %edx 11890f: 89 15 f8 1c 14 00 mov %edx,0x141cf8 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 118915: 8a 1d 60 d5 13 00 mov 0x13d560,%bl initialized = true; 11891b: c6 05 60 d5 13 00 01 movb $0x1,0x13d560 _Thread_Enable_dispatch(); 118922: e8 55 2c 00 00 call 11b57c <_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 60 d5 13 00 00 movb $0x0,0x13d560 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 9c 1c 14 00 mov 0x141c9c,%edx 118980: 8b 14 8a mov (%edx,%ecx,4),%edx 118983: 89 15 80 d5 13 00 mov %edx,0x13d580 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 118989: c7 05 b0 d5 13 00 b4 movl $0x13d5b4,0x13d5b0 118990: d5 13 00 the_chain->permanent_null = NULL; 118993: c7 05 b4 d5 13 00 00 movl $0x0,0x13d5b4 11899a: 00 00 00 the_chain->last = _Chain_Head(the_chain); 11899d: c7 05 b8 d5 13 00 b0 movl $0x13d5b0,0x13d5b8 1189a4: d5 13 00 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 1189a7: c7 05 e8 d5 13 00 ec movl $0x13d5ec,0x13d5e8 1189ae: d5 13 00 the_chain->permanent_null = NULL; 1189b1: c7 05 ec d5 13 00 00 movl $0x0,0x13d5ec 1189b8: 00 00 00 the_chain->last = _Chain_Head(the_chain); 1189bb: c7 05 f0 d5 13 00 e8 movl $0x13d5e8,0x13d5f0 1189c2: d5 13 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 1189c5: c7 05 90 d5 13 00 00 movl $0x0,0x13d590 1189cc: 00 00 00 the_watchdog->routine = routine; 1189cf: c7 05 a4 d5 13 00 e4 movl $0x11b3e4,0x13d5a4 1189d6: b3 11 00 the_watchdog->id = id; 1189d9: a3 a8 d5 13 00 mov %eax,0x13d5a8 the_watchdog->user_data = user_data; 1189de: c7 05 ac d5 13 00 00 movl $0x0,0x13d5ac 1189e5: 00 00 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 1189e8: c7 05 c8 d5 13 00 00 movl $0x0,0x13d5c8 1189ef: 00 00 00 the_watchdog->routine = routine; 1189f2: c7 05 dc d5 13 00 e4 movl $0x11b3e4,0x13d5dc 1189f9: b3 11 00 the_watchdog->id = id; 1189fc: a3 e0 d5 13 00 mov %eax,0x13d5e0 the_watchdog->user_data = user_data; 118a01: c7 05 e4 d5 13 00 00 movl $0x0,0x13d5e4 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 84 d5 13 00 b0 movl $0x118cb0,0x13d584 118a12: 8c 11 00 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; 118a15: 8b 15 64 1e 14 00 mov 0x141e64,%edx 118a1b: 89 15 bc d5 13 00 mov %edx,0x13d5bc ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 118a21: 8b 15 8c 1d 14 00 mov 0x141d8c,%edx 118a27: 89 15 f4 d5 13 00 mov %edx,0x13d5f4 ts->insert_chain = NULL; 118a2d: c7 05 f8 d5 13 00 00 movl $0x0,0x13d5f8 118a34: 00 00 00 ts->active = false; 118a37: c6 05 fc d5 13 00 00 movb $0x0,0x13d5fc /* * The default timer server is now available. */ _Timer_server = ts; 118a3e: c7 05 20 27 14 00 80 movl $0x13d580,0x142720 118a45: d5 13 00 /* * Start the timer server */ status = rtems_task_start( 118a48: 52 push %edx 118a49: 68 80 d5 13 00 push $0x13d580 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 e0 26 14 00 push $0x1426e0 118668: e8 2b 26 00 00 call 11ac98 <_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 dd 2e 00 00 call 11b57c <_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 08 43 00 00 call 11c9c0 <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 1186b8: 59 pop %ecx 1186b9: 5e pop %esi 1186ba: 53 push %ebx 1186bb: 68 d8 1d 14 00 push $0x141dd8 1186c0: e8 c3 41 00 00 call 11c888 <_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 20 27 14 00 mov 0x142720,%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 e2 42 00 00 call 11c9c0 <_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 20 27 14 00 mov 0x142720,%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 e0 26 14 00 push $0x1426e0 118731: e8 62 25 00 00 call 11ac98 <_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 6f 42 00 00 call 11c9c0 <_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 ec 2d 00 00 call 11b57c <_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 b5 2d 00 00 call 11b57c <_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 20 27 14 00 mov 0x142720,%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 0c 1d 14 00 00 cmpb $0x0,0x141d0c 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 8c 1d 14 00 cmp 0x141d8c,%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 e0 26 14 00 push $0x1426e0 118843: e8 50 24 00 00 call 11ac98 <_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 5d 41 00 00 call 11c9c0 <_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 8c 1d 14 00 sub 0x141d8c,%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 e4 2c 00 00 call 11b57c <_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 c0 f7 12 00 mov 0x12f7c0,%edx <== NOT EXECUTED 10cac9: 8d 42 01 lea 0x1(%edx),%eax <== NOT EXECUTED 10cacc: a3 c0 f7 12 00 mov %eax,0x12f7c0 <== 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 58 f9 12 00 mov 0x12f958,%eax <== NOT EXECUTED 10cada: 40 inc %eax <== NOT EXECUTED 10cadb: a3 58 f9 12 00 mov %eax,0x12f958 <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 10cae0: a1 c0 f7 12 00 mov 0x12f7c0,%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 80 d5 12 00 mov 0x12d580,%eax <== NOT EXECUTED 10caf6: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10caf9: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED 10cafc: e8 0b d7 00 00 call 11a20c <== 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 80 d5 12 00 mov 0x12d580,%eax <== NOT EXECUTED 10cb27: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb2a: e8 ed 31 01 00 call 11fd1c <== 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 81 e1 00 00 call 11acd0 <== 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 09 80 12 00 push $0x128009 <== NOT EXECUTED 10cb62: a1 80 d5 12 00 mov 0x12d580,%eax <== NOT EXECUTED 10cb67: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb6a: e8 e5 d9 00 00 call 11a554 <== 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 eb 72 12 00 push $0x1272eb <== NOT EXECUTED 10cb7c: a1 80 d5 12 00 mov 0x12d580,%eax <== NOT EXECUTED 10cb81: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb84: e8 cb d9 00 00 call 11a554 <== NOT EXECUTED 10cb89: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED (void) fflush(stderr); 10cb8c: 5a pop %edx <== NOT EXECUTED 10cb8d: a1 80 d5 12 00 mov 0x12d580,%eax <== NOT EXECUTED 10cb92: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb95: e8 72 d6 00 00 call 11a20c <== 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 1d 80 12 00 push $0x12801d <== 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 32 80 12 00 push $0x128032 <== NOT EXECUTED 10cbe8: 6a 00 push $0x0 <== NOT EXECUTED 10cbea: e8 75 00 00 00 call 10cc64 <== NOT EXECUTED abort(); 10cbef: e8 68 d2 00 00 call 119e5c <== 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 94 d2 00 00 call 119e90 <__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 ee 7f 12 00 push $0x127fee <== NOT EXECUTED 10cc1c: a1 80 d5 12 00 mov 0x12d580,%eax <== NOT EXECUTED 10cc21: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cc24: e8 2b d9 00 00 call 11a554 <== 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 93 e0 00 00 call 11acd0 <== NOT EXECUTED 10cc3d: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10cc40: 50 push %eax <== NOT EXECUTED 10cc41: 68 fc 7f 12 00 push $0x127ffc <== NOT EXECUTED 10cc46: e9 17 ff ff ff jmp 10cb62 <== NOT EXECUTED 0012b958 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 12b958: 55 push %ebp 12b959: 89 e5 mov %esp,%ebp 12b95b: 57 push %edi 12b95c: 56 push %esi 12b95d: 53 push %ebx 12b95e: 83 ec 1c sub $0x1c,%esp 12b961: 89 c6 mov %eax,%esi 12b963: 89 55 e0 mov %edx,-0x20(%ebp) 12b966: 31 db xor %ebx,%ebx 12b968: 31 ff xor %edi,%edi 12b96a: c7 45 e4 ff ff ff 7f movl $0x7fffffff,-0x1c(%ebp) unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 12b971: 8b 46 04 mov 0x4(%esi),%eax 12b974: 48 dec %eax 12b975: 89 46 04 mov %eax,0x4(%esi) 12b978: 85 c0 test %eax,%eax 12b97a: 78 52 js 12b9ce 12b97c: 8b 06 mov (%esi),%eax 12b97e: 0f b6 08 movzbl (%eax),%ecx 12b981: 40 inc %eax 12b982: 89 06 mov %eax,(%esi) if (c == ':') 12b984: 83 f9 3a cmp $0x3a,%ecx 12b987: 74 5f je 12b9e8 break; if (sign == 0) { 12b989: 85 ff test %edi,%edi 12b98b: 75 0e jne 12b99b if (c == '-') { 12b98d: 83 f9 2d cmp $0x2d,%ecx 12b990: 0f 84 8a 00 00 00 je 12ba20 sign = -1; limit++; continue; 12b996: bf 01 00 00 00 mov $0x1,%edi } sign = 1; } if (!isdigit(c)) 12b99b: a1 08 9b 16 00 mov 0x169b08,%eax 12b9a0: f6 44 08 01 04 testb $0x4,0x1(%eax,%ecx,1) 12b9a5: 74 6d je 12ba14 return 0; d = c - '0'; if ((i > (limit / 10)) 12b9a7: b8 cd cc cc cc mov $0xcccccccd,%eax 12b9ac: f7 65 e4 mull -0x1c(%ebp) 12b9af: c1 ea 03 shr $0x3,%edx 12b9b2: 39 d3 cmp %edx,%ebx 12b9b4: 77 5e ja 12ba14 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 12b9b6: 83 e9 30 sub $0x30,%ecx if ((i > (limit / 10)) 12b9b9: 39 d3 cmp %edx,%ebx 12b9bb: 74 47 je 12ba04 || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 12b9bd: 8d 04 9b lea (%ebx,%ebx,4),%eax 12b9c0: 8d 1c 41 lea (%ecx,%eax,2),%ebx unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 12b9c3: 8b 46 04 mov 0x4(%esi),%eax 12b9c6: 48 dec %eax 12b9c7: 89 46 04 mov %eax,0x4(%esi) 12b9ca: 85 c0 test %eax,%eax 12b9cc: 79 ae jns 12b97c 12b9ce: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b9d1: 56 push %esi <== NOT EXECUTED 12b9d2: ff 35 20 9b 16 00 pushl 0x169b20 <== NOT EXECUTED 12b9d8: e8 2b bb 01 00 call 147508 <__srget_r> <== NOT EXECUTED 12b9dd: 89 c1 mov %eax,%ecx <== NOT EXECUTED 12b9df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if (c == ':') 12b9e2: 83 f9 3a cmp $0x3a,%ecx <== NOT EXECUTED 12b9e5: 75 a2 jne 12b989 <== NOT EXECUTED 12b9e7: 90 nop <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 12b9e8: 85 ff test %edi,%edi 12b9ea: 74 28 je 12ba14 return 0; *val = i * sign; 12b9ec: 0f af df imul %edi,%ebx 12b9ef: 8b 45 e0 mov -0x20(%ebp),%eax 12b9f2: 89 18 mov %ebx,(%eax) 12b9f4: b8 01 00 00 00 mov $0x1,%eax return 1; } 12b9f9: 8d 65 f4 lea -0xc(%ebp),%esp 12b9fc: 5b pop %ebx 12b9fd: 5e pop %esi 12b9fe: 5f pop %edi 12b9ff: c9 leave 12ba00: c3 ret 12ba01: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 12ba04: 8d 04 9b lea (%ebx,%ebx,4),%eax <== NOT EXECUTED 12ba07: d1 e0 shl %eax <== NOT EXECUTED 12ba09: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 12ba0c: 29 c2 sub %eax,%edx <== NOT EXECUTED 12ba0e: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 12ba10: 76 ab jbe 12b9bd <== NOT EXECUTED 12ba12: 66 90 xchg %ax,%ax <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; 12ba14: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12ba16: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12ba19: 5b pop %ebx <== NOT EXECUTED 12ba1a: 5e pop %esi <== NOT EXECUTED 12ba1b: 5f pop %edi <== NOT EXECUTED 12ba1c: c9 leave <== NOT EXECUTED 12ba1d: c3 ret <== NOT EXECUTED 12ba1e: 66 90 xchg %ax,%ax <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 12ba20: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED 12ba23: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED continue; 12ba28: e9 44 ff ff ff jmp 12b971 <== NOT EXECUTED 0012ba30 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 12ba30: 55 push %ebp 12ba31: 89 e5 mov %esp,%ebp 12ba33: 57 push %edi 12ba34: 56 push %esi 12ba35: 53 push %ebx 12ba36: 83 ec 0c sub $0xc,%esp 12ba39: 89 c3 mov %eax,%ebx 12ba3b: 89 ce mov %ecx,%esi 12ba3d: 8b 7d 08 mov 0x8(%ebp),%edi int c; *name = *bufp; 12ba40: 8b 01 mov (%ecx),%eax 12ba42: 89 02 mov %eax,(%edx) 12ba44: eb 26 jmp 12ba6c 12ba46: 66 90 xchg %ax,%ax <== NOT EXECUTED for (;;) { c = getc(fp); 12ba48: 8b 13 mov (%ebx),%edx 12ba4a: 0f b6 02 movzbl (%edx),%eax 12ba4d: 42 inc %edx 12ba4e: 89 13 mov %edx,(%ebx) if (c == ':') { 12ba50: 83 f8 3a cmp $0x3a,%eax 12ba53: 74 3b je 12ba90 if (nlFlag) return 0; break; } if (c == '\n') { 12ba55: 83 f8 0a cmp $0xa,%eax 12ba58: 74 56 je 12bab0 if (!nlFlag) return 0; break; } if (c == EOF) 12ba5a: 83 f8 ff cmp $0xffffffff,%eax 12ba5d: 74 59 je 12bab8 return 0; if (*nleft < 2) 12ba5f: 83 3f 01 cmpl $0x1,(%edi) 12ba62: 76 54 jbe 12bab8 return 0; **bufp = c; 12ba64: 8b 16 mov (%esi),%edx 12ba66: 88 02 mov %al,(%edx) ++(*bufp); 12ba68: ff 06 incl (%esi) --(*nleft); 12ba6a: ff 0f decl (%edi) { int c; *name = *bufp; for (;;) { c = getc(fp); 12ba6c: 8b 43 04 mov 0x4(%ebx),%eax 12ba6f: 48 dec %eax 12ba70: 89 43 04 mov %eax,0x4(%ebx) 12ba73: 85 c0 test %eax,%eax 12ba75: 79 d1 jns 12ba48 12ba77: 83 ec 08 sub $0x8,%esp 12ba7a: 53 push %ebx 12ba7b: ff 35 20 9b 16 00 pushl 0x169b20 12ba81: e8 82 ba 01 00 call 147508 <__srget_r> 12ba86: 83 c4 10 add $0x10,%esp if (c == ':') { 12ba89: 83 f8 3a cmp $0x3a,%eax 12ba8c: 75 c7 jne 12ba55 12ba8e: 66 90 xchg %ax,%ax <== NOT EXECUTED if (nlFlag) 12ba90: 8b 55 0c mov 0xc(%ebp),%edx 12ba93: 85 d2 test %edx,%edx 12ba95: 75 21 jne 12bab8 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 12ba97: 8b 06 mov (%esi),%eax 12ba99: c6 00 00 movb $0x0,(%eax) ++(*bufp); 12ba9c: ff 06 incl (%esi) --(*nleft); 12ba9e: ff 0f decl (%edi) 12baa0: b8 01 00 00 00 mov $0x1,%eax return 1; } 12baa5: 8d 65 f4 lea -0xc(%ebp),%esp 12baa8: 5b pop %ebx 12baa9: 5e pop %esi 12baaa: 5f pop %edi 12baab: c9 leave 12baac: c3 ret 12baad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 12bab0: 8b 45 0c mov 0xc(%ebp),%eax 12bab3: 85 c0 test %eax,%eax 12bab5: 75 e0 jne 12ba97 12bab7: 90 nop <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 12bab8: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12baba: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12babd: 5b pop %ebx <== NOT EXECUTED 12babe: 5e pop %esi <== NOT EXECUTED 12babf: 5f pop %edi <== NOT EXECUTED 12bac0: c9 leave <== NOT EXECUTED 12bac1: c3 ret <== NOT EXECUTED 0012bac4 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 12bac4: 55 push %ebp 12bac5: 89 e5 mov %esp,%ebp 12bac7: 57 push %edi 12bac8: 56 push %esi 12bac9: 53 push %ebx 12baca: 83 ec 34 sub $0x34,%esp 12bacd: 89 c6 mov %eax,%esi 12bacf: 89 d3 mov %edx,%ebx 12bad1: 89 4d d4 mov %ecx,-0x2c(%ebp) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12bad4: 8d 7d d4 lea -0x2c(%ebp),%edi 12bad7: 6a 00 push $0x0 12bad9: 8d 45 08 lea 0x8(%ebp),%eax 12badc: 50 push %eax 12badd: 89 f9 mov %edi,%ecx 12badf: 89 f0 mov %esi,%eax 12bae1: e8 4a ff ff ff call 12ba30 12bae6: 83 c4 10 add $0x10,%esp 12bae9: 85 c0 test %eax,%eax 12baeb: 75 0b jne 12baf8 *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 12baed: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12baef: 8d 65 f4 lea -0xc(%ebp),%esp 12baf2: 5b pop %ebx 12baf3: 5e pop %esi 12baf4: 5f pop %edi 12baf5: c9 leave 12baf6: c3 ret 12baf7: 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) 12baf8: 83 ec 08 sub $0x8,%esp 12bafb: 8d 53 04 lea 0x4(%ebx),%edx 12bafe: 6a 00 push $0x0 12bb00: 8d 45 08 lea 0x8(%ebp),%eax 12bb03: 50 push %eax 12bb04: 89 f9 mov %edi,%ecx 12bb06: 89 f0 mov %esi,%eax 12bb08: e8 23 ff ff ff call 12ba30 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12bb0d: 83 c4 10 add $0x10,%esp 12bb10: 85 c0 test %eax,%eax 12bb12: 74 d9 je 12baed || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 12bb14: 8d 55 e4 lea -0x1c(%ebp),%edx 12bb17: 89 f0 mov %esi,%eax 12bb19: e8 3a fe ff ff call 12b958 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12bb1e: 85 c0 test %eax,%eax 12bb20: 74 cb je 12baed || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 12bb22: 83 ec 08 sub $0x8,%esp 12bb25: 8d 55 e0 lea -0x20(%ebp),%edx 12bb28: 6a 01 push $0x1 12bb2a: 8d 45 08 lea 0x8(%ebp),%eax 12bb2d: 50 push %eax 12bb2e: 89 f9 mov %edi,%ecx 12bb30: 89 f0 mov %esi,%eax 12bb32: e8 f9 fe ff ff call 12ba30 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12bb37: 83 c4 10 add $0x10,%esp 12bb3a: 85 c0 test %eax,%eax 12bb3c: 74 af je 12baed || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 12bb3e: 8b 45 e4 mov -0x1c(%ebp),%eax 12bb41: 66 89 43 08 mov %ax,0x8(%ebx) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12bb45: 8b 75 e0 mov -0x20(%ebp),%esi 12bb48: 8a 06 mov (%esi),%al 12bb4a: 84 c0 test %al,%al 12bb4c: 74 7d je 12bbcb 12bb4e: 89 f2 mov %esi,%edx 12bb50: b9 01 00 00 00 mov $0x1,%ecx 12bb55: eb 08 jmp 12bb5f 12bb57: 90 nop <== NOT EXECUTED 12bb58: 42 inc %edx 12bb59: 8a 02 mov (%edx),%al 12bb5b: 84 c0 test %al,%al 12bb5d: 74 09 je 12bb68 if(*cp == ',') 12bb5f: 3c 2c cmp $0x2c,%al 12bb61: 75 f5 jne 12bb58 memcount++; 12bb63: 41 inc %ecx <== NOT EXECUTED 12bb64: eb f2 jmp 12bb58 <== NOT EXECUTED 12bb66: 66 90 xchg %ax,%ax <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12bb68: 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)) 12bb6f: 39 45 08 cmp %eax,0x8(%ebp) 12bb72: 0f 82 75 ff ff ff jb 12baed return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 12bb78: 8b 45 d4 mov -0x2c(%ebp),%eax 12bb7b: 83 c0 0f add $0xf,%eax 12bb7e: 83 e0 f0 and $0xfffffff0,%eax 12bb81: 89 43 0c mov %eax,0xc(%ebx) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 12bb84: 89 30 mov %esi,(%eax) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12bb86: 8b 45 e0 mov -0x20(%ebp),%eax 12bb89: 8a 10 mov (%eax),%dl 12bb8b: 84 d2 test %dl,%dl 12bb8d: 74 43 je 12bbd2 12bb8f: 40 inc %eax 12bb90: b9 01 00 00 00 mov $0x1,%ecx 12bb95: eb 08 jmp 12bb9f 12bb97: 90 nop <== NOT EXECUTED 12bb98: 8a 10 mov (%eax),%dl 12bb9a: 40 inc %eax 12bb9b: 84 d2 test %dl,%dl 12bb9d: 74 15 je 12bbb4 if(*cp == ',') { 12bb9f: 80 fa 2c cmp $0x2c,%dl 12bba2: 75 f4 jne 12bb98 *cp = '\0'; 12bba4: c6 40 ff 00 movb $0x0,-0x1(%eax) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 12bba8: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 12bbab: 89 04 8a mov %eax,(%edx,%ecx,4) <== NOT EXECUTED 12bbae: 41 inc %ecx <== NOT EXECUTED 12bbaf: eb e7 jmp 12bb98 <== NOT EXECUTED 12bbb1: 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++) { 12bbb4: c1 e1 02 shl $0x2,%ecx if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 12bbb7: 8b 43 0c mov 0xc(%ebx),%eax 12bbba: c7 04 08 00 00 00 00 movl $0x0,(%eax,%ecx,1) 12bbc1: b8 01 00 00 00 mov $0x1,%eax return 1; 12bbc6: e9 24 ff ff ff jmp 12baef grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12bbcb: b8 17 00 00 00 mov $0x17,%eax <== NOT EXECUTED 12bbd0: eb 9d jmp 12bb6f <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12bbd2: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED 12bbd7: eb de jmp 12bbb7 <== NOT EXECUTED 0012bc18 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 12bc18: 55 push %ebp 12bc19: 89 e5 mov %esp,%ebp 12bc1b: 57 push %edi 12bc1c: 56 push %esi 12bc1d: 53 push %ebx 12bc1e: 83 ec 34 sub $0x34,%esp 12bc21: 89 c6 mov %eax,%esi 12bc23: 89 d3 mov %edx,%ebx 12bc25: 89 4d d4 mov %ecx,-0x2c(%ebp) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bc28: 8d 7d d4 lea -0x2c(%ebp),%edi 12bc2b: 6a 00 push $0x0 12bc2d: 8d 45 08 lea 0x8(%ebp),%eax 12bc30: 50 push %eax 12bc31: 89 f9 mov %edi,%ecx 12bc33: 89 f0 mov %esi,%eax 12bc35: e8 f6 fd ff ff call 12ba30 12bc3a: 83 c4 10 add $0x10,%esp 12bc3d: 85 c0 test %eax,%eax 12bc3f: 75 0b jne 12bc4c || !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; 12bc41: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12bc43: 8d 65 f4 lea -0xc(%ebp),%esp 12bc46: 5b pop %ebx 12bc47: 5e pop %esi 12bc48: 5f pop %edi 12bc49: c9 leave 12bc4a: c3 ret 12bc4b: 90 nop <== NOT EXECUTED ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 12bc4c: 83 ec 08 sub $0x8,%esp 12bc4f: 8d 53 04 lea 0x4(%ebx),%edx 12bc52: 6a 00 push $0x0 12bc54: 8d 45 08 lea 0x8(%ebp),%eax 12bc57: 50 push %eax 12bc58: 89 f9 mov %edi,%ecx 12bc5a: 89 f0 mov %esi,%eax 12bc5c: e8 cf fd ff ff call 12ba30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bc61: 83 c4 10 add $0x10,%esp 12bc64: 85 c0 test %eax,%eax 12bc66: 74 d9 je 12bc41 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 12bc68: 8d 55 e4 lea -0x1c(%ebp),%edx 12bc6b: 89 f0 mov %esi,%eax 12bc6d: e8 e6 fc ff ff call 12b958 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bc72: 85 c0 test %eax,%eax 12bc74: 74 cb je 12bc41 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 12bc76: 8d 55 e0 lea -0x20(%ebp),%edx 12bc79: 89 f0 mov %esi,%eax 12bc7b: e8 d8 fc ff ff call 12b958 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bc80: 85 c0 test %eax,%eax 12bc82: 74 bd je 12bc41 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 12bc84: 83 ec 08 sub $0x8,%esp 12bc87: 8d 53 0c lea 0xc(%ebx),%edx 12bc8a: 6a 00 push $0x0 12bc8c: 8d 45 08 lea 0x8(%ebp),%eax 12bc8f: 50 push %eax 12bc90: 89 f9 mov %edi,%ecx 12bc92: 89 f0 mov %esi,%eax 12bc94: e8 97 fd ff ff call 12ba30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bc99: 83 c4 10 add $0x10,%esp 12bc9c: 85 c0 test %eax,%eax 12bc9e: 74 a1 je 12bc41 || !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) 12bca0: 83 ec 08 sub $0x8,%esp 12bca3: 8d 53 10 lea 0x10(%ebx),%edx 12bca6: 6a 00 push $0x0 12bca8: 8d 45 08 lea 0x8(%ebp),%eax 12bcab: 50 push %eax 12bcac: 89 f9 mov %edi,%ecx 12bcae: 89 f0 mov %esi,%eax 12bcb0: e8 7b fd ff ff call 12ba30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bcb5: 83 c4 10 add $0x10,%esp 12bcb8: 85 c0 test %eax,%eax 12bcba: 74 85 je 12bc41 || !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) 12bcbc: 83 ec 08 sub $0x8,%esp 12bcbf: 8d 53 14 lea 0x14(%ebx),%edx 12bcc2: 6a 00 push $0x0 12bcc4: 8d 45 08 lea 0x8(%ebp),%eax 12bcc7: 50 push %eax 12bcc8: 89 f9 mov %edi,%ecx 12bcca: 89 f0 mov %esi,%eax 12bccc: e8 5f fd ff ff call 12ba30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bcd1: 83 c4 10 add $0x10,%esp 12bcd4: 85 c0 test %eax,%eax 12bcd6: 0f 84 65 ff ff ff je 12bc41 || !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)) 12bcdc: 83 ec 08 sub $0x8,%esp 12bcdf: 8d 53 18 lea 0x18(%ebx),%edx 12bce2: 6a 01 push $0x1 12bce4: 8d 45 08 lea 0x8(%ebp),%eax 12bce7: 50 push %eax 12bce8: 89 f9 mov %edi,%ecx 12bcea: 89 f0 mov %esi,%eax 12bcec: e8 3f fd ff ff call 12ba30 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12bcf1: 83 c4 10 add $0x10,%esp 12bcf4: 85 c0 test %eax,%eax 12bcf6: 0f 84 45 ff ff ff je 12bc41 || !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; 12bcfc: 8b 45 e4 mov -0x1c(%ebp),%eax 12bcff: 66 89 43 08 mov %ax,0x8(%ebx) pwd->pw_gid = pwgid; 12bd03: 8b 45 e0 mov -0x20(%ebp),%eax 12bd06: 66 89 43 0a mov %ax,0xa(%ebx) 12bd0a: b8 01 00 00 00 mov $0x1,%eax return 1; 12bd0f: e9 2f ff ff ff jmp 12bc43 0010bd18 : #include int sched_get_priority_max( int policy ) { 10bd18: 55 push %ebp 10bd19: 89 e5 mov %esp,%ebp 10bd1b: 83 ec 08 sub $0x8,%esp 10bd1e: 8b 45 08 mov 0x8(%ebp),%eax switch ( policy ) { 10bd21: 85 c0 test %eax,%eax 10bd23: 78 0a js 10bd2f 10bd25: 83 f8 02 cmp $0x2,%eax 10bd28: 7e 1a jle 10bd44 10bd2a: 83 f8 04 cmp $0x4,%eax 10bd2d: 74 15 je 10bd44 case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 10bd2f: e8 dc 87 00 00 call 114510 <__errno> 10bd34: c7 00 16 00 00 00 movl $0x16,(%eax) 10bd3a: b8 ff ff ff ff mov $0xffffffff,%eax } return POSIX_SCHEDULER_MAXIMUM_PRIORITY; } 10bd3f: c9 leave 10bd40: c3 ret 10bd41: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( EINVAL ); } return POSIX_SCHEDULER_MAXIMUM_PRIORITY; 10bd44: 0f b6 05 bc 46 12 00 movzbl 0x1246bc,%eax 10bd4b: 48 dec %eax } 10bd4c: c9 leave 10bd4d: c3 ret 0010bd50 : #include int sched_get_priority_min( int policy ) { 10bd50: 55 push %ebp 10bd51: 89 e5 mov %esp,%ebp 10bd53: 83 ec 08 sub $0x8,%esp 10bd56: 8b 45 08 mov 0x8(%ebp),%eax switch ( policy ) { 10bd59: 85 c0 test %eax,%eax 10bd5b: 78 0a js 10bd67 10bd5d: 83 f8 02 cmp $0x2,%eax 10bd60: 7e 1a jle 10bd7c 10bd62: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED 10bd65: 74 15 je 10bd7c <== NOT EXECUTED case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 10bd67: e8 a4 87 00 00 call 114510 <__errno> 10bd6c: c7 00 16 00 00 00 movl $0x16,(%eax) 10bd72: b8 ff ff ff ff mov $0xffffffff,%eax } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } 10bd77: c9 leave 10bd78: c3 ret 10bd79: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED int sched_get_priority_min( int policy ) { switch ( policy ) { 10bd7c: b8 01 00 00 00 mov $0x1,%eax default: rtems_set_errno_and_return_minus_one( EINVAL ); } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } 10bd81: c9 leave 10bd82: c3 ret 0010bd84 : int sched_rr_get_interval( pid_t pid, struct timespec *interval ) { 10bd84: 55 push %ebp 10bd85: 89 e5 mov %esp,%ebp 10bd87: 56 push %esi 10bd88: 53 push %ebx 10bd89: 8b 75 08 mov 0x8(%ebp),%esi 10bd8c: 8b 5d 0c mov 0xc(%ebp),%ebx /* * Only supported for the "calling process" (i.e. this node). */ if ( pid && pid != getpid() ) 10bd8f: 85 f6 test %esi,%esi 10bd91: 75 21 jne 10bdb4 rtems_set_errno_and_return_minus_one( ESRCH ); if ( !interval ) 10bd93: 85 db test %ebx,%ebx 10bd95: 74 38 je 10bdcf rtems_set_errno_and_return_minus_one( EINVAL ); _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval ); 10bd97: 83 ec 08 sub $0x8,%esp 10bd9a: 53 push %ebx 10bd9b: ff 35 44 88 12 00 pushl 0x128844 10bda1: e8 f2 33 00 00 call 10f198 <_Timespec_From_ticks> 10bda6: 31 c0 xor %eax,%eax return 0; 10bda8: 83 c4 10 add $0x10,%esp } 10bdab: 8d 65 f8 lea -0x8(%ebp),%esp 10bdae: 5b pop %ebx 10bdaf: 5e pop %esi 10bdb0: c9 leave 10bdb1: c3 ret 10bdb2: 66 90 xchg %ax,%ax <== NOT EXECUTED { /* * Only supported for the "calling process" (i.e. this node). */ if ( pid && pid != getpid() ) 10bdb4: e8 7f c9 ff ff call 108738 10bdb9: 39 f0 cmp %esi,%eax 10bdbb: 74 d6 je 10bd93 rtems_set_errno_and_return_minus_one( ESRCH ); 10bdbd: e8 4e 87 00 00 call 114510 <__errno> 10bdc2: c7 00 03 00 00 00 movl $0x3,(%eax) 10bdc8: b8 ff ff ff ff mov $0xffffffff,%eax 10bdcd: eb dc jmp 10bdab if ( !interval ) rtems_set_errno_and_return_minus_one( EINVAL ); 10bdcf: e8 3c 87 00 00 call 114510 <__errno> 10bdd4: c7 00 16 00 00 00 movl $0x16,(%eax) 10bdda: b8 ff ff ff ff mov $0xffffffff,%eax 10bddf: eb ca jmp 10bdab 0010e214 : */ int sem_close( sem_t *sem ) { 10e214: 55 push %ebp 10e215: 89 e5 mov %esp,%ebp 10e217: 83 ec 1c sub $0x1c,%esp RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( sem_t *id, Objects_Locations *location ) { return (POSIX_Semaphore_Control *) 10e21a: 8d 45 f4 lea -0xc(%ebp),%eax 10e21d: 50 push %eax 10e21e: 8b 45 08 mov 0x8(%ebp),%eax 10e221: ff 30 pushl (%eax) 10e223: 68 c0 d4 12 00 push $0x12d4c0 10e228: e8 0b 21 00 00 call 110338 <_Objects_Get> register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { 10e22d: 83 c4 10 add $0x10,%esp 10e230: 8b 55 f4 mov -0xc(%ebp),%edx 10e233: 85 d2 test %edx,%edx 10e235: 74 15 je 10e24c #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10e237: e8 44 96 00 00 call 117880 <__errno> 10e23c: c7 00 16 00 00 00 movl $0x16,(%eax) 10e242: b8 ff ff ff ff mov $0xffffffff,%eax } 10e247: c9 leave 10e248: c3 ret 10e249: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: the_semaphore->open_count -= 1; 10e24c: ff 48 18 decl 0x18(%eax) _POSIX_Semaphore_Delete( the_semaphore ); 10e24f: 83 ec 0c sub $0xc,%esp 10e252: 50 push %eax 10e253: e8 34 5d 00 00 call 113f8c <_POSIX_Semaphore_Delete> _Thread_Enable_dispatch(); 10e258: e8 9f 29 00 00 call 110bfc <_Thread_Enable_dispatch> 10e25d: 31 c0 xor %eax,%eax return 0; 10e25f: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10e262: c9 leave 10e263: c3 ret 0010e264 : */ int sem_destroy( sem_t *sem ) { 10e264: 55 push %ebp 10e265: 89 e5 mov %esp,%ebp 10e267: 83 ec 1c sub $0x1c,%esp 10e26a: 8d 45 f4 lea -0xc(%ebp),%eax 10e26d: 50 push %eax 10e26e: 8b 45 08 mov 0x8(%ebp),%eax 10e271: ff 30 pushl (%eax) 10e273: 68 c0 d4 12 00 push $0x12d4c0 10e278: e8 bb 20 00 00 call 110338 <_Objects_Get> register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { 10e27d: 83 c4 10 add $0x10,%esp 10e280: 8b 55 f4 mov -0xc(%ebp),%edx 10e283: 85 d2 test %edx,%edx 10e285: 74 15 je 10e29c #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10e287: e8 f4 95 00 00 call 117880 <__errno> 10e28c: c7 00 16 00 00 00 movl $0x16,(%eax) 10e292: b8 ff ff ff ff mov $0xffffffff,%eax } 10e297: c9 leave 10e298: c3 ret 10e299: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case OBJECTS_LOCAL: /* * Undefined operation on a named semaphore. */ if ( the_semaphore->named == true ) { 10e29c: 80 78 14 00 cmpb $0x0,0x14(%eax) 10e2a0: 75 16 jne 10e2b8 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } _POSIX_Semaphore_Delete( the_semaphore ); 10e2a2: 83 ec 0c sub $0xc,%esp 10e2a5: 50 push %eax 10e2a6: e8 e1 5c 00 00 call 113f8c <_POSIX_Semaphore_Delete> _Thread_Enable_dispatch(); 10e2ab: e8 4c 29 00 00 call 110bfc <_Thread_Enable_dispatch> 10e2b0: 31 c0 xor %eax,%eax return 0; 10e2b2: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10e2b5: c9 leave 10e2b6: c3 ret 10e2b7: 90 nop <== NOT EXECUTED /* * Undefined operation on a named semaphore. */ if ( the_semaphore->named == true ) { _Thread_Enable_dispatch(); 10e2b8: e8 3f 29 00 00 call 110bfc <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EINVAL ); 10e2bd: e8 be 95 00 00 call 117880 <__errno> 10e2c2: c7 00 16 00 00 00 movl $0x16,(%eax) 10e2c8: b8 ff ff ff ff mov $0xffffffff,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10e2cd: c9 leave 10e2ce: c3 ret 0010e2d0 : int sem_getvalue( sem_t *sem, int *sval ) { 10e2d0: 55 push %ebp 10e2d1: 89 e5 mov %esp,%ebp 10e2d3: 83 ec 1c sub $0x1c,%esp 10e2d6: 8d 45 f4 lea -0xc(%ebp),%eax 10e2d9: 50 push %eax 10e2da: 8b 45 08 mov 0x8(%ebp),%eax 10e2dd: ff 30 pushl (%eax) 10e2df: 68 c0 d4 12 00 push $0x12d4c0 10e2e4: e8 4f 20 00 00 call 110338 <_Objects_Get> register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { 10e2e9: 83 c4 10 add $0x10,%esp 10e2ec: 8b 55 f4 mov -0xc(%ebp),%edx 10e2ef: 85 d2 test %edx,%edx 10e2f1: 74 15 je 10e308 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10e2f3: e8 88 95 00 00 call 117880 <__errno> 10e2f8: c7 00 16 00 00 00 movl $0x16,(%eax) 10e2fe: b8 ff ff ff ff mov $0xffffffff,%eax } 10e303: c9 leave 10e304: c3 ret 10e305: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: *sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore ); 10e308: 8b 50 64 mov 0x64(%eax),%edx 10e30b: 8b 45 0c mov 0xc(%ebp),%eax 10e30e: 89 10 mov %edx,(%eax) _Thread_Enable_dispatch(); 10e310: e8 e7 28 00 00 call 110bfc <_Thread_Enable_dispatch> 10e315: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10e317: c9 leave 10e318: c3 ret 0010e364 : int oflag, ... /* mode_t mode, */ /* unsigned int value */ ) { 10e364: 55 push %ebp 10e365: 89 e5 mov %esp,%ebp 10e367: 57 push %edi 10e368: 56 push %esi 10e369: 53 push %ebx 10e36a: 83 ec 2c sub $0x2c,%esp 10e36d: 8b 75 08 mov 0x8(%ebp),%esi rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10e370: a1 78 d1 12 00 mov 0x12d178,%eax 10e375: 40 inc %eax 10e376: a3 78 d1 12 00 mov %eax,0x12d178 POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { 10e37b: 8b 7d 0c mov 0xc(%ebp),%edi 10e37e: 81 e7 00 02 00 00 and $0x200,%edi 10e384: 0f 85 86 00 00 00 jne 10e410 10e38a: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) mode = (mode_t) va_arg( arg, unsigned int ); value = va_arg( arg, unsigned int ); va_end(arg); } status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id ); 10e391: 83 ec 08 sub $0x8,%esp 10e394: 8d 45 e4 lea -0x1c(%ebp),%eax 10e397: 50 push %eax 10e398: 56 push %esi 10e399: e8 3e 5c 00 00 call 113fdc <_POSIX_Semaphore_Name_to_id> 10e39e: 89 c3 mov %eax,%ebx * and we can just return a pointer to the id. Otherwise we may * need to check to see if this is a "semaphore does not exist" * or some other miscellaneous error on the name. */ if ( status ) { 10e3a0: 83 c4 10 add $0x10,%esp 10e3a3: 85 c0 test %eax,%eax 10e3a5: 74 25 je 10e3cc /* * Unless provided a valid name that did not already exist * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { 10e3a7: 83 f8 02 cmp $0x2,%eax 10e3aa: 75 04 jne 10e3b0 10e3ac: 85 ff test %edi,%edi 10e3ae: 75 6c jne 10e41c _Thread_Enable_dispatch(); 10e3b0: e8 47 28 00 00 call 110bfc <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one_cast( status, sem_t * ); 10e3b5: e8 c6 94 00 00 call 117880 <__errno> 10e3ba: 89 18 mov %ebx,(%eax) 10e3bc: b8 ff ff ff ff mov $0xffffffff,%eax id = &the_semaphore->Semaphore_id; #else id = (sem_t *)&the_semaphore->Object.id; #endif return id; } 10e3c1: 8d 65 f4 lea -0xc(%ebp),%esp 10e3c4: 5b pop %ebx 10e3c5: 5e pop %esi 10e3c6: 5f pop %edi 10e3c7: c9 leave 10e3c8: c3 ret 10e3c9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { 10e3cc: 8b 45 0c mov 0xc(%ebp),%eax 10e3cf: 25 00 0a 00 00 and $0xa00,%eax 10e3d4: 3d 00 0a 00 00 cmp $0xa00,%eax 10e3d9: 74 65 je 10e440 10e3db: 50 push %eax 10e3dc: 8d 45 dc lea -0x24(%ebp),%eax 10e3df: 50 push %eax 10e3e0: ff 75 e4 pushl -0x1c(%ebp) 10e3e3: 68 c0 d4 12 00 push $0x12d4c0 10e3e8: e8 4b 1f 00 00 call 110338 <_Objects_Get> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * ); } the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location ); 10e3ed: 89 45 e0 mov %eax,-0x20(%ebp) the_semaphore->open_count += 1; 10e3f0: ff 40 18 incl 0x18(%eax) _Thread_Enable_dispatch(); 10e3f3: e8 04 28 00 00 call 110bfc <_Thread_Enable_dispatch> _Thread_Enable_dispatch(); 10e3f8: e8 ff 27 00 00 call 110bfc <_Thread_Enable_dispatch> goto return_id; 10e3fd: 83 c4 10 add $0x10,%esp return_id: #if defined(RTEMS_USE_16_BIT_OBJECT) the_semaphore->Semaphore_id = the_semaphore->Object.id; id = &the_semaphore->Semaphore_id; #else id = (sem_t *)&the_semaphore->Object.id; 10e400: 8b 45 e0 mov -0x20(%ebp),%eax 10e403: 83 c0 08 add $0x8,%eax #endif return id; } 10e406: 8d 65 f4 lea -0xc(%ebp),%esp 10e409: 5b pop %ebx 10e40a: 5e pop %esi 10e40b: 5f pop %edi 10e40c: c9 leave 10e40d: c3 ret 10e40e: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); mode = (mode_t) va_arg( arg, unsigned int ); value = va_arg( arg, unsigned int ); 10e410: 8b 45 14 mov 0x14(%ebp),%eax 10e413: 89 45 d4 mov %eax,-0x2c(%ebp) 10e416: e9 76 ff ff ff jmp 10e391 10e41b: 90 nop <== NOT EXECUTED /* * At this point, the semaphore does not exist and everything has been * checked. We should go ahead and create a semaphore. */ status =_POSIX_Semaphore_Create_support( 10e41c: 8d 45 e0 lea -0x20(%ebp),%eax 10e41f: 50 push %eax 10e420: ff 75 d4 pushl -0x2c(%ebp) 10e423: 6a 00 push $0x0 10e425: 56 push %esi 10e426: e8 55 5a 00 00 call 113e80 <_POSIX_Semaphore_Create_support> 10e42b: 89 c3 mov %eax,%ebx /* * errno was set by Create_support, so don't set it again. */ _Thread_Enable_dispatch(); 10e42d: e8 ca 27 00 00 call 110bfc <_Thread_Enable_dispatch> if ( status == -1 ) 10e432: 83 c4 10 add $0x10,%esp 10e435: 43 inc %ebx 10e436: 75 c8 jne 10e400 10e438: b8 ff ff ff ff mov $0xffffffff,%eax 10e43d: eb c7 jmp 10e406 10e43f: 90 nop <== NOT EXECUTED /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { _Thread_Enable_dispatch(); 10e440: e8 b7 27 00 00 call 110bfc <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * ); 10e445: e8 36 94 00 00 call 117880 <__errno> 10e44a: c7 00 11 00 00 00 movl $0x11,(%eax) 10e450: b8 ff ff ff ff mov $0xffffffff,%eax 10e455: eb af jmp 10e406 0010e458 : */ int sem_post( sem_t *sem ) { 10e458: 55 push %ebp 10e459: 89 e5 mov %esp,%ebp 10e45b: 83 ec 1c sub $0x1c,%esp 10e45e: 8d 45 f4 lea -0xc(%ebp),%eax 10e461: 50 push %eax 10e462: 8b 45 08 mov 0x8(%ebp),%eax 10e465: ff 30 pushl (%eax) 10e467: 68 c0 d4 12 00 push $0x12d4c0 10e46c: e8 c7 1e 00 00 call 110338 <_Objects_Get> register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { 10e471: 83 c4 10 add $0x10,%esp 10e474: 8b 4d f4 mov -0xc(%ebp),%ecx 10e477: 85 c9 test %ecx,%ecx 10e479: 74 15 je 10e490 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10e47b: e8 00 94 00 00 call 117880 <__errno> 10e480: c7 00 16 00 00 00 movl $0x16,(%eax) 10e486: b8 ff ff ff ff mov $0xffffffff,%eax } 10e48b: c9 leave 10e48c: c3 ret 10e48d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_semaphore_Surrender( 10e490: 52 push %edx 10e491: 6a 00 push $0x0 10e493: ff 70 08 pushl 0x8(%eax) 10e496: 83 c0 1c add $0x1c,%eax 10e499: 50 push %eax 10e49a: e8 3d 15 00 00 call 10f9dc <_CORE_semaphore_Surrender> NULL /* XXX need to define a routine to handle this case */ #else NULL #endif ); _Thread_Enable_dispatch(); 10e49f: e8 58 27 00 00 call 110bfc <_Thread_Enable_dispatch> 10e4a4: 31 c0 xor %eax,%eax return 0; 10e4a6: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10e4a9: c9 leave 10e4aa: c3 ret 0010e4ac : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { 10e4ac: 55 push %ebp 10e4ad: 89 e5 mov %esp,%ebp 10e4af: 53 push %ebx 10e4b0: 83 ec 1c sub $0x1c,%esp 10e4b3: 8b 5d 08 mov 0x8(%ebp),%ebx * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); 10e4b6: 8d 45 f4 lea -0xc(%ebp),%eax 10e4b9: 50 push %eax 10e4ba: ff 75 0c pushl 0xc(%ebp) 10e4bd: e8 e6 50 00 00 call 1135a8 <_POSIX_Absolute_timeout_to_ticks> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) 10e4c2: 83 c4 10 add $0x10,%esp 10e4c5: 83 f8 03 cmp $0x3,%eax 10e4c8: 74 16 je 10e4e0 do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 10e4ca: 50 push %eax <== NOT EXECUTED 10e4cb: ff 75 f4 pushl -0xc(%ebp) <== NOT EXECUTED 10e4ce: 6a 00 push $0x0 <== NOT EXECUTED 10e4d0: 53 push %ebx <== NOT EXECUTED 10e4d1: e8 72 5b 00 00 call 114048 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED 10e4d6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED break; } } return lock_status; } 10e4d9: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10e4dc: c9 leave <== NOT EXECUTED 10e4dd: c3 ret <== NOT EXECUTED 10e4de: 66 90 xchg %ax,%ax <== NOT EXECUTED */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 10e4e0: 52 push %edx 10e4e1: ff 75 f4 pushl -0xc(%ebp) 10e4e4: 6a 01 push $0x1 10e4e6: 53 push %ebx 10e4e7: e8 5c 5b 00 00 call 114048 <_POSIX_Semaphore_Wait_support> 10e4ec: 83 c4 10 add $0x10,%esp break; } } return lock_status; } 10e4ef: 8b 5d fc mov -0x4(%ebp),%ebx 10e4f2: c9 leave 10e4f3: c3 ret 0012b8ec : */ int setgid( gid_t gid ) { 12b8ec: 55 push %ebp <== NOT EXECUTED 12b8ed: 89 e5 mov %esp,%ebp <== NOT EXECUTED _POSIX_types_Gid = gid; 12b8ef: a1 84 92 16 00 mov 0x169284,%eax <== NOT EXECUTED 12b8f4: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12b8f7: 66 89 50 34 mov %dx,0x34(%eax) <== NOT EXECUTED return 0; } 12b8fb: 31 c0 xor %eax,%eax <== NOT EXECUTED 12b8fd: c9 leave <== NOT EXECUTED 12b8fe: c3 ret <== NOT EXECUTED 0012be50 : return NULL; return &grent; } void setgrent(void) { 12be50: 55 push %ebp <== NOT EXECUTED 12be51: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12be53: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED init_etc_passwd_group(); 12be56: e8 f5 fe ff ff call 12bd50 <== NOT EXECUTED if (group_fp != NULL) 12be5b: a1 44 e9 16 00 mov 0x16e944,%eax <== NOT EXECUTED 12be60: 85 c0 test %eax,%eax <== NOT EXECUTED 12be62: 74 0c je 12be70 <== NOT EXECUTED fclose(group_fp); 12be64: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12be67: 50 push %eax <== NOT EXECUTED 12be68: e8 83 6b 01 00 call 1429f0 <== NOT EXECUTED 12be6d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 12be70: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12be73: 68 6d c2 15 00 push $0x15c26d <== NOT EXECUTED 12be78: 68 57 8f 15 00 push $0x158f57 <== NOT EXECUTED 12be7d: e8 86 73 01 00 call 143208 <== NOT EXECUTED 12be82: a3 44 e9 16 00 mov %eax,0x16e944 <== NOT EXECUTED 12be87: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12be8a: c9 leave <== NOT EXECUTED 12be8b: c3 ret <== NOT EXECUTED 0010b1f0 : int setitimer( int which, const struct itimerval *value, struct itimerval *ovalue ) { 10b1f0: 55 push %ebp 10b1f1: 89 e5 mov %esp,%ebp 10b1f3: 83 ec 08 sub $0x8,%esp if ( !value ) 10b1f6: 8b 55 0c mov 0xc(%ebp),%edx 10b1f9: 85 d2 test %edx,%edx 10b1fb: 74 33 je 10b230 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !ovalue ) 10b1fd: 8b 45 10 mov 0x10(%ebp),%eax 10b200: 85 c0 test %eax,%eax 10b202: 74 2c je 10b230 rtems_set_errno_and_return_minus_one( EFAULT ); switch ( which ) { 10b204: 83 7d 08 02 cmpl $0x2,0x8(%ebp) 10b208: 76 12 jbe 10b21c case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10b20a: e8 a1 8d 00 00 call 113fb0 <__errno> 10b20f: c7 00 16 00 00 00 movl $0x16,(%eax) } 10b215: b8 ff ff ff ff mov $0xffffffff,%eax 10b21a: c9 leave 10b21b: c3 ret switch ( which ) { case ITIMER_REAL: case ITIMER_VIRTUAL: case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); 10b21c: e8 8f 8d 00 00 call 113fb0 <__errno> 10b221: c7 00 58 00 00 00 movl $0x58,(%eax) default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10b227: b8 ff ff ff ff mov $0xffffffff,%eax 10b22c: c9 leave 10b22d: c3 ret 10b22e: 66 90 xchg %ax,%ax <== NOT EXECUTED { if ( !value ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !ovalue ) rtems_set_errno_and_return_minus_one( EFAULT ); 10b230: e8 7b 8d 00 00 call 113fb0 <__errno> 10b235: c7 00 0e 00 00 00 movl $0xe,(%eax) 10b23b: eb d8 jmp 10b215 0012c01c : return NULL; return &pwent; } void setpwent(void) { 12c01c: 55 push %ebp <== NOT EXECUTED 12c01d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c01f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED init_etc_passwd_group(); 12c022: e8 29 fd ff ff call 12bd50 <== NOT EXECUTED if (passwd_fp != NULL) 12c027: a1 44 e8 16 00 mov 0x16e844,%eax <== NOT EXECUTED 12c02c: 85 c0 test %eax,%eax <== NOT EXECUTED 12c02e: 74 0c je 12c03c <== NOT EXECUTED fclose(passwd_fp); 12c030: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c033: 50 push %eax <== NOT EXECUTED 12c034: e8 b7 69 01 00 call 1429f0 <== NOT EXECUTED 12c039: 83 c4 10 add $0x10,%esp <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 12c03c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c03f: 68 6d c2 15 00 push $0x15c26d <== NOT EXECUTED 12c044: 68 4b 8f 15 00 push $0x158f4b <== NOT EXECUTED 12c049: e8 ba 71 01 00 call 143208 <== NOT EXECUTED 12c04e: a3 44 e8 16 00 mov %eax,0x16e844 <== NOT EXECUTED 12c053: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12c056: c9 leave <== NOT EXECUTED 12c057: 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 84 92 16 00 mov 0x169284,%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 0010bc58 : int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) { 10bc58: 55 push %ebp 10bc59: 89 e5 mov %esp,%ebp 10bc5b: 57 push %edi 10bc5c: 56 push %esi 10bc5d: 53 push %ebx 10bc5e: 83 ec 1c sub $0x1c,%esp 10bc61: 8b 5d 08 mov 0x8(%ebp),%ebx 10bc64: 8b 45 0c mov 0xc(%ebp),%eax 10bc67: 8b 55 10 mov 0x10(%ebp),%edx ISR_Level level; if ( oact ) 10bc6a: 85 d2 test %edx,%edx 10bc6c: 74 13 je 10bc81 *oact = _POSIX_signals_Vectors[ sig ]; 10bc6e: 8d 0c 5b lea (%ebx,%ebx,2),%ecx 10bc71: 8d 34 8d e0 9a 12 00 lea 0x129ae0(,%ecx,4),%esi 10bc78: b9 03 00 00 00 mov $0x3,%ecx 10bc7d: 89 d7 mov %edx,%edi 10bc7f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !sig ) 10bc81: 85 db test %ebx,%ebx 10bc83: 74 6f je 10bcf4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) 10bc85: 8d 53 ff lea -0x1(%ebx),%edx 10bc88: 83 fa 1f cmp $0x1f,%edx 10bc8b: 77 67 ja 10bcf4 * * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) 10bc8d: 83 fb 09 cmp $0x9,%ebx 10bc90: 74 62 je 10bcf4 /* * Evaluate the new action structure and set the global signal vector * appropriately. */ if ( act ) { 10bc92: 85 c0 test %eax,%eax 10bc94: 74 37 je 10bccd /* * Unless the user is installing the default signal actions, then * we can just copy the provided sigaction structure into the vectors. */ _ISR_Disable( level ); 10bc96: 9c pushf 10bc97: fa cli 10bc98: 8f 45 e4 popl -0x1c(%ebp) if ( act->sa_handler == SIG_DFL ) { 10bc9b: 8b 50 08 mov 0x8(%eax),%edx 10bc9e: 85 d2 test %edx,%edx 10bca0: 74 36 je 10bcd8 _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; } else { _POSIX_signals_Clear_process_signals( sig ); 10bca2: 83 ec 0c sub $0xc,%esp 10bca5: 53 push %ebx 10bca6: 89 45 e0 mov %eax,-0x20(%ebp) 10bca9: e8 e6 53 00 00 call 111094 <_POSIX_signals_Clear_process_signals> _POSIX_signals_Vectors[ sig ] = *act; 10bcae: 8d 14 5b lea (%ebx,%ebx,2),%edx 10bcb1: 8d 3c 95 e0 9a 12 00 lea 0x129ae0(,%edx,4),%edi 10bcb8: b9 03 00 00 00 mov $0x3,%ecx 10bcbd: 8b 45 e0 mov -0x20(%ebp),%eax 10bcc0: 89 c6 mov %eax,%esi 10bcc2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10bcc4: 83 c4 10 add $0x10,%esp } _ISR_Enable( level ); 10bcc7: ff 75 e4 pushl -0x1c(%ebp) 10bcca: 9d popf 10bccb: 31 c0 xor %eax,%eax * + If we are now ignoring a signal that was previously pending, * we clear the pending signal indicator. */ return 0; } 10bccd: 8d 65 f4 lea -0xc(%ebp),%esp 10bcd0: 5b pop %ebx 10bcd1: 5e pop %esi 10bcd2: 5f pop %edi 10bcd3: c9 leave 10bcd4: c3 ret 10bcd5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED * we can just copy the provided sigaction structure into the vectors. */ _ISR_Disable( level ); if ( act->sa_handler == SIG_DFL ) { _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; 10bcd8: 8d 34 5b lea (%ebx,%ebx,2),%esi 10bcdb: c1 e6 02 shl $0x2,%esi 10bcde: 8d be e0 9a 12 00 lea 0x129ae0(%esi),%edi 10bce4: 81 c6 60 30 12 00 add $0x123060,%esi 10bcea: b9 03 00 00 00 mov $0x3,%ecx 10bcef: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10bcf1: eb d4 jmp 10bcc7 10bcf3: 90 nop <== NOT EXECUTED * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) rtems_set_errno_and_return_minus_one( EINVAL ); 10bcf4: e8 8b 89 00 00 call 114684 <__errno> 10bcf9: c7 00 16 00 00 00 movl $0x16,(%eax) 10bcff: b8 ff ff ff ff mov $0xffffffff,%eax 10bd04: eb c7 jmp 10bccd 0010bd08 : int sigaddset( sigset_t *set, int signo ) { 10bd08: 55 push %ebp 10bd09: 89 e5 mov %esp,%ebp 10bd0b: 83 ec 08 sub $0x8,%esp 10bd0e: 8b 45 08 mov 0x8(%ebp),%eax 10bd11: 8b 4d 0c mov 0xc(%ebp),%ecx if ( !set ) 10bd14: 85 c0 test %eax,%eax 10bd16: 74 18 je 10bd30 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) 10bd18: 85 c9 test %ecx,%ecx 10bd1a: 74 14 je 10bd30 10bd1c: 49 dec %ecx rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(signo) ) 10bd1d: 83 f9 1f cmp $0x1f,%ecx 10bd20: 77 0e ja 10bd30 rtems_set_errno_and_return_minus_one( EINVAL ); *set |= signo_to_mask(signo); 10bd22: ba 01 00 00 00 mov $0x1,%edx 10bd27: d3 e2 shl %cl,%edx 10bd29: 09 10 or %edx,(%eax) 10bd2b: 31 c0 xor %eax,%eax return 0; } 10bd2d: c9 leave 10bd2e: c3 ret 10bd2f: 90 nop <== NOT EXECUTED if ( !signo ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); 10bd30: e8 4f 89 00 00 call 114684 <__errno> 10bd35: c7 00 16 00 00 00 movl $0x16,(%eax) 10bd3b: b8 ff ff ff ff mov $0xffffffff,%eax *set |= signo_to_mask(signo); return 0; } 10bd40: c9 leave 10bd41: c3 ret 0010d690 : int sigdelset( sigset_t *set, int signo ) { 10d690: 55 push %ebp 10d691: 89 e5 mov %esp,%ebp 10d693: 83 ec 08 sub $0x8,%esp 10d696: 8b 45 08 mov 0x8(%ebp),%eax 10d699: 8b 4d 0c mov 0xc(%ebp),%ecx if ( !set ) 10d69c: 85 c0 test %eax,%eax 10d69e: 74 18 je 10d6b8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) 10d6a0: 85 c9 test %ecx,%ecx 10d6a2: 74 0f je 10d6b3 10d6a4: 49 dec %ecx return 0; if ( !is_valid_signo(signo) ) 10d6a5: 83 f9 1f cmp $0x1f,%ecx 10d6a8: 77 0e ja 10d6b8 rtems_set_errno_and_return_minus_one( EINVAL ); *set &= ~signo_to_mask(signo); 10d6aa: ba fe ff ff ff mov $0xfffffffe,%edx 10d6af: d3 c2 rol %cl,%edx 10d6b1: 21 10 and %edx,(%eax) 10d6b3: 31 c0 xor %eax,%eax return 0; } 10d6b5: c9 leave 10d6b6: c3 ret 10d6b7: 90 nop <== NOT EXECUTED if ( !signo ) return 0; if ( !is_valid_signo(signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); 10d6b8: e8 f3 89 00 00 call 1160b0 <__errno> 10d6bd: c7 00 16 00 00 00 movl $0x16,(%eax) 10d6c3: b8 ff ff ff ff mov $0xffffffff,%eax *set &= ~signo_to_mask(signo); return 0; } 10d6c8: c9 leave 10d6c9: c3 ret 0010d724 : int sigismember( const sigset_t *set, int signo ) { 10d724: 55 push %ebp 10d725: 89 e5 mov %esp,%ebp 10d727: 83 ec 08 sub $0x8,%esp 10d72a: 8b 45 08 mov 0x8(%ebp),%eax 10d72d: 8b 4d 0c mov 0xc(%ebp),%ecx if ( !set ) 10d730: 85 c0 test %eax,%eax 10d732: 74 20 je 10d754 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) 10d734: 85 c9 test %ecx,%ecx 10d736: 74 18 je 10d750 10d738: 49 dec %ecx return 0; if ( !is_valid_signo(signo) ) 10d739: 83 f9 1f cmp $0x1f,%ecx 10d73c: 77 16 ja 10d754 rtems_set_errno_and_return_minus_one( EINVAL ); 10d73e: ba 01 00 00 00 mov $0x1,%edx 10d743: d3 e2 shl %cl,%edx 10d745: 85 10 test %edx,(%eax) 10d747: 0f 95 c0 setne %al 10d74a: 0f b6 c0 movzbl %al,%eax if ( *set & signo_to_mask(signo) ) return 1; return 0; } 10d74d: c9 leave 10d74e: c3 ret 10d74f: 90 nop <== NOT EXECUTED ) { if ( !set ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) 10d750: 31 c0 xor %eax,%eax if ( *set & signo_to_mask(signo) ) return 1; return 0; } 10d752: c9 leave 10d753: c3 ret if ( !signo ) return 0; if ( !is_valid_signo(signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); 10d754: e8 57 89 00 00 call 1160b0 <__errno> 10d759: c7 00 16 00 00 00 movl $0x16,(%eax) 10d75f: b8 ff ff ff ff mov $0xffffffff,%eax if ( *set & signo_to_mask(signo) ) return 1; return 0; } 10d764: c9 leave 10d765: c3 ret 0010d7c8 : #include int sigsuspend( const sigset_t *sigmask ) { 10d7c8: 55 push %ebp 10d7c9: 89 e5 mov %esp,%ebp 10d7cb: 56 push %esi 10d7cc: 53 push %ebx 10d7cd: 83 ec 14 sub $0x14,%esp int status; POSIX_API_Control *api; api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); 10d7d0: 8d 5d f4 lea -0xc(%ebp),%ebx 10d7d3: 53 push %ebx 10d7d4: ff 75 08 pushl 0x8(%ebp) 10d7d7: 6a 01 push $0x1 10d7d9: e8 c6 ff ff ff call 10d7a4 (void) sigfillset( &all_signals ); 10d7de: 8d 75 f0 lea -0x10(%ebp),%esi 10d7e1: 89 34 24 mov %esi,(%esp) 10d7e4: e8 0f ff ff ff call 10d6f8 status = sigtimedwait( &all_signals, NULL, NULL ); 10d7e9: 83 c4 0c add $0xc,%esp 10d7ec: 6a 00 push $0x0 10d7ee: 6a 00 push $0x0 10d7f0: 56 push %esi 10d7f1: e8 76 00 00 00 call 10d86c 10d7f6: 89 c6 mov %eax,%esi (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); 10d7f8: 83 c4 0c add $0xc,%esp 10d7fb: 6a 00 push $0x0 10d7fd: 53 push %ebx 10d7fe: 6a 00 push $0x0 10d800: e8 9f ff ff ff call 10d7a4 /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) 10d805: 83 c4 10 add $0x10,%esp 10d808: 46 inc %esi 10d809: 75 0d jne 10d818 rtems_set_errno_and_return_minus_one( EINTR ); return status; } 10d80b: b8 ff ff ff ff mov $0xffffffff,%eax 10d810: 8d 65 f8 lea -0x8(%ebp),%esp 10d813: 5b pop %ebx 10d814: 5e pop %esi 10d815: c9 leave 10d816: c3 ret 10d817: 90 nop <== NOT EXECUTED /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) rtems_set_errno_and_return_minus_one( EINTR ); 10d818: e8 93 88 00 00 call 1160b0 <__errno> 10d81d: c7 00 04 00 00 00 movl $0x4,(%eax) 10d823: eb e6 jmp 10d80b 0010c004 : int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) { 10c004: 55 push %ebp 10c005: 89 e5 mov %esp,%ebp 10c007: 57 push %edi 10c008: 56 push %esi 10c009: 53 push %ebx 10c00a: 83 ec 2c sub $0x2c,%esp 10c00d: 8b 75 08 mov 0x8(%ebp),%esi 10c010: 8b 5d 0c mov 0xc(%ebp),%ebx 10c013: 8b 7d 10 mov 0x10(%ebp),%edi ISR_Level level; /* * Error check parameters before disabling interrupts. */ if ( !set ) 10c016: 85 f6 test %esi,%esi 10c018: 0f 84 7a 01 00 00 je 10c198 /* NOTE: This is very specifically a RELATIVE not ABSOLUTE time * in the Open Group specification. */ interval = 0; if ( timeout ) { 10c01e: 85 ff test %edi,%edi 10c020: 0f 84 1e 01 00 00 je 10c144 if ( !_Timespec_Is_valid( timeout ) ) 10c026: 83 ec 0c sub $0xc,%esp 10c029: 57 push %edi 10c02a: e8 91 34 00 00 call 10f4c0 <_Timespec_Is_valid> 10c02f: 83 c4 10 add $0x10,%esp 10c032: 84 c0 test %al,%al 10c034: 0f 84 5e 01 00 00 je 10c198 rtems_set_errno_and_return_minus_one( EINVAL ); interval = _Timespec_To_ticks( timeout ); 10c03a: 83 ec 0c sub $0xc,%esp 10c03d: 57 push %edi 10c03e: e8 e1 34 00 00 call 10f524 <_Timespec_To_ticks> if ( !interval ) 10c043: 83 c4 10 add $0x10,%esp 10c046: 85 c0 test %eax,%eax 10c048: 0f 84 4a 01 00 00 je 10c198 /* * Initialize local variables. */ the_info = ( info ) ? info : &signal_information; 10c04e: 85 db test %ebx,%ebx 10c050: 0f 84 f8 00 00 00 je 10c14e the_thread = _Thread_Executing; 10c056: 8b 15 98 99 12 00 mov 0x129998,%edx api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 10c05c: 8b ba f8 00 00 00 mov 0xf8(%edx),%edi * What if they are already pending? */ /* API signals pending? */ _ISR_Disable( level ); 10c062: 9c pushf 10c063: fa cli 10c064: 8f 45 d0 popl -0x30(%ebp) if ( *set & api->signals_pending ) { 10c067: 8b 0e mov (%esi),%ecx 10c069: 89 4d d4 mov %ecx,-0x2c(%ebp) 10c06c: 8b 8f d0 00 00 00 mov 0xd0(%edi),%ecx 10c072: 85 4d d4 test %ecx,-0x2c(%ebp) 10c075: 0f 85 dd 00 00 00 jne 10c158 return the_info->si_signo; } /* Process pending signals? */ if ( *set & _POSIX_signals_Pending ) { 10c07b: 8b 0d a0 a0 12 00 mov 0x12a0a0,%ecx 10c081: 85 4d d4 test %ecx,-0x2c(%ebp) 10c084: 75 7e jne 10c104 the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; return signo; } the_info->si_signo = -1; 10c086: c7 03 ff ff ff ff movl $0xffffffff,(%ebx) 10c08c: 8b 0d d8 98 12 00 mov 0x1298d8,%ecx 10c092: 41 inc %ecx 10c093: 89 0d d8 98 12 00 mov %ecx,0x1298d8 _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; 10c099: c7 42 44 60 a0 12 00 movl $0x12a060,0x44(%edx) the_thread->Wait.return_code = EINTR; 10c0a0: c7 42 34 04 00 00 00 movl $0x4,0x34(%edx) the_thread->Wait.option = *set; 10c0a7: 8b 0e mov (%esi),%ecx 10c0a9: 89 4a 30 mov %ecx,0x30(%edx) the_thread->Wait.return_argument = the_info; 10c0ac: 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; 10c0af: c7 05 90 a0 12 00 01 movl $0x1,0x12a090 10c0b6: 00 00 00 _Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue ); _ISR_Enable( level ); 10c0b9: ff 75 d0 pushl -0x30(%ebp) 10c0bc: 9d popf _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval ); 10c0bd: 52 push %edx 10c0be: 68 64 f0 10 00 push $0x10f064 10c0c3: 50 push %eax 10c0c4: 68 60 a0 12 00 push $0x12a060 10c0c9: e8 86 2c 00 00 call 10ed54 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 10c0ce: e8 71 27 00 00 call 10e844 <_Thread_Enable_dispatch> /* * When the thread is set free by a signal, it is need to eliminate * the signal. */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); 10c0d3: c7 04 24 00 00 00 00 movl $0x0,(%esp) 10c0da: 6a 00 push $0x0 10c0dc: 53 push %ebx 10c0dd: ff 33 pushl (%ebx) 10c0df: 57 push %edi 10c0e0: e8 3b 56 00 00 call 111720 <_POSIX_signals_Clear_signals> errno = _Thread_Executing->Wait.return_code; 10c0e5: 83 c4 20 add $0x20,%esp 10c0e8: e8 df 88 00 00 call 1149cc <__errno> 10c0ed: 8b 15 98 99 12 00 mov 0x129998,%edx 10c0f3: 8b 52 34 mov 0x34(%edx),%edx 10c0f6: 89 10 mov %edx,(%eax) return the_info->si_signo; 10c0f8: 8b 33 mov (%ebx),%esi } 10c0fa: 89 f0 mov %esi,%eax 10c0fc: 8d 65 f4 lea -0xc(%ebp),%esp 10c0ff: 5b pop %ebx 10c100: 5e pop %esi 10c101: 5f pop %edi 10c102: c9 leave 10c103: c3 ret } /* Process pending signals? */ if ( *set & _POSIX_signals_Pending ) { signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending ); 10c104: 83 ec 0c sub $0xc,%esp 10c107: 51 push %ecx 10c108: e8 b3 fe ff ff call 10bfc0 <_POSIX_signals_Get_highest> 10c10d: 89 c6 mov %eax,%esi _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); 10c10f: c7 04 24 00 00 00 00 movl $0x0,(%esp) 10c116: 6a 01 push $0x1 10c118: 53 push %ebx 10c119: 50 push %eax 10c11a: 57 push %edi 10c11b: e8 00 56 00 00 call 111720 <_POSIX_signals_Clear_signals> _ISR_Enable( level ); 10c120: ff 75 d0 pushl -0x30(%ebp) 10c123: 9d popf the_info->si_signo = signo; 10c124: 89 33 mov %esi,(%ebx) the_info->si_code = SI_USER; 10c126: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx) the_info->si_value.sival_int = 0; 10c12d: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) return signo; 10c134: 83 c4 20 add $0x20,%esp */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); errno = _Thread_Executing->Wait.return_code; return the_info->si_signo; } 10c137: 89 f0 mov %esi,%eax 10c139: 8d 65 f4 lea -0xc(%ebp),%esp 10c13c: 5b pop %ebx 10c13d: 5e pop %esi 10c13e: 5f pop %edi 10c13f: c9 leave 10c140: c3 ret 10c141: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); interval = _Timespec_To_ticks( timeout ); if ( !interval ) rtems_set_errno_and_return_minus_one( EINVAL ); 10c144: 31 c0 xor %eax,%eax /* * Initialize local variables. */ the_info = ( info ) ? info : &signal_information; 10c146: 85 db test %ebx,%ebx 10c148: 0f 85 08 ff ff ff jne 10c056 10c14e: 8d 5d dc lea -0x24(%ebp),%ebx 10c151: e9 00 ff ff ff jmp 10c056 10c156: 66 90 xchg %ax,%ax <== NOT EXECUTED /* API signals pending? */ _ISR_Disable( level ); if ( *set & api->signals_pending ) { /* XXX real info later */ the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending ); 10c158: 83 ec 0c sub $0xc,%esp 10c15b: 51 push %ecx 10c15c: e8 5f fe ff ff call 10bfc0 <_POSIX_signals_Get_highest> 10c161: 89 03 mov %eax,(%ebx) _POSIX_signals_Clear_signals( 10c163: c7 04 24 00 00 00 00 movl $0x0,(%esp) 10c16a: 6a 00 push $0x0 10c16c: 53 push %ebx 10c16d: 50 push %eax 10c16e: 57 push %edi 10c16f: e8 ac 55 00 00 call 111720 <_POSIX_signals_Clear_signals> the_info->si_signo, the_info, false, false ); _ISR_Enable( level ); 10c174: ff 75 d0 pushl -0x30(%ebp) 10c177: 9d popf the_info->si_code = SI_USER; 10c178: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx) the_info->si_value.sival_int = 0; 10c17f: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) return the_info->si_signo; 10c186: 8b 33 mov (%ebx),%esi 10c188: 83 c4 20 add $0x20,%esp */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); errno = _Thread_Executing->Wait.return_code; return the_info->si_signo; } 10c18b: 89 f0 mov %esi,%eax 10c18d: 8d 65 f4 lea -0xc(%ebp),%esp 10c190: 5b pop %ebx 10c191: 5e pop %esi 10c192: 5f pop %edi 10c193: c9 leave 10c194: c3 ret 10c195: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); interval = _Timespec_To_ticks( timeout ); if ( !interval ) rtems_set_errno_and_return_minus_one( EINVAL ); 10c198: e8 2f 88 00 00 call 1149cc <__errno> 10c19d: c7 00 16 00 00 00 movl $0x16,(%eax) 10c1a3: be ff ff ff ff mov $0xffffffff,%esi 10c1a8: e9 4d ff ff ff jmp 10c0fa 0010da30 : int sigwait( const sigset_t *set, int *sig ) { 10da30: 55 push %ebp 10da31: 89 e5 mov %esp,%ebp 10da33: 53 push %ebx 10da34: 83 ec 08 sub $0x8,%esp 10da37: 8b 5d 0c mov 0xc(%ebp),%ebx int status; status = sigtimedwait( set, NULL, NULL ); 10da3a: 6a 00 push $0x0 10da3c: 6a 00 push $0x0 10da3e: ff 75 08 pushl 0x8(%ebp) 10da41: e8 26 fe ff ff call 10d86c if ( status != -1 ) { 10da46: 83 c4 10 add $0x10,%esp 10da49: 83 f8 ff cmp $0xffffffff,%eax 10da4c: 74 0e je 10da5c if ( sig ) 10da4e: 85 db test %ebx,%ebx 10da50: 74 02 je 10da54 *sig = status; 10da52: 89 03 mov %eax,(%ebx) 10da54: 31 c0 xor %eax,%eax return 0; } return errno; } 10da56: 8b 5d fc mov -0x4(%ebp),%ebx 10da59: c9 leave 10da5a: c3 ret 10da5b: 90 nop <== NOT EXECUTED if ( sig ) *sig = status; return 0; } return errno; 10da5c: e8 4f 86 00 00 call 1160b0 <__errno> 10da61: 8b 00 mov (%eax),%eax } 10da63: 8b 5d fc mov -0x4(%ebp),%ebx 10da66: c9 leave 10da67: c3 ret 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 bb 44 03 00 call 1428a4 <__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 9f 44 03 00 call 1428a4 <__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 0012cbe0 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 12cbe0: 55 push %ebp <== NOT EXECUTED 12cbe1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12cbe3: 57 push %edi <== NOT EXECUTED 12cbe4: 56 push %esi <== NOT EXECUTED 12cbe5: 53 push %ebx <== NOT EXECUTED 12cbe6: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED 12cbe9: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12cbec: 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 ) ) 12cbef: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12cbf4: 89 d7 mov %edx,%edi <== NOT EXECUTED 12cbf6: 31 c0 xor %eax,%eax <== NOT EXECUTED 12cbf8: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12cbfa: f7 d1 not %ecx <== NOT EXECUTED 12cbfc: 49 dec %ecx <== NOT EXECUTED 12cbfd: 6a 01 push $0x1 <== NOT EXECUTED 12cbff: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12cc02: 53 push %ebx <== NOT EXECUTED 12cc03: 6a 00 push $0x0 <== NOT EXECUTED 12cc05: 51 push %ecx <== NOT EXECUTED 12cc06: 52 push %edx <== NOT EXECUTED 12cc07: e8 a0 01 fe ff call 10cdac <== NOT EXECUTED 12cc0c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12cc0f: 85 c0 test %eax,%eax <== NOT EXECUTED 12cc11: 75 59 jne 12cc6c <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 12cc13: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 12cc16: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12cc19: 8b 40 44 mov 0x44(%eax),%eax <== NOT EXECUTED 12cc1c: 85 c0 test %eax,%eax <== NOT EXECUTED 12cc1e: 74 3f je 12cc5f <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); 12cc20: b9 38 00 00 00 mov $0x38,%ecx <== NOT EXECUTED 12cc25: 89 f7 mov %esi,%edi <== NOT EXECUTED 12cc27: 31 c0 xor %eax,%eax <== NOT EXECUTED 12cc29: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 12cc2b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12cc2e: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12cc31: 56 push %esi <== NOT EXECUTED 12cc32: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED 12cc35: 52 push %edx <== NOT EXECUTED 12cc36: ff 50 44 call *0x44(%eax) <== NOT EXECUTED 12cc39: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 12cc3b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12cc3e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12cc41: 85 c0 test %eax,%eax <== NOT EXECUTED 12cc43: 74 10 je 12cc55 <== NOT EXECUTED 12cc45: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12cc48: 85 c0 test %eax,%eax <== NOT EXECUTED 12cc4a: 74 09 je 12cc55 <== NOT EXECUTED 12cc4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cc4f: 53 push %ebx <== NOT EXECUTED 12cc50: ff d0 call *%eax <== NOT EXECUTED 12cc52: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return result; } 12cc55: 89 f0 mov %esi,%eax <== NOT EXECUTED 12cc57: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12cc5a: 5b pop %ebx <== NOT EXECUTED 12cc5b: 5e pop %esi <== NOT EXECUTED 12cc5c: 5f pop %edi <== NOT EXECUTED 12cc5d: c9 leave <== NOT EXECUTED 12cc5e: 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 ); 12cc5f: e8 40 5c 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12cc64: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12cc6a: 66 90 xchg %ax,%ax <== NOT EXECUTED 12cc6c: 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; } 12cc71: 89 f0 mov %esi,%eax <== NOT EXECUTED 12cc73: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12cc76: 5b pop %ebx <== NOT EXECUTED 12cc77: 5e pop %esi <== NOT EXECUTED 12cc78: 5f pop %edi <== NOT EXECUTED 12cc79: c9 leave <== NOT EXECUTED 12cc7a: c3 ret <== NOT EXECUTED 0012cc7c : int symlink( const char *actualpath, const char *sympath ) { 12cc7c: 55 push %ebp 12cc7d: 89 e5 mov %esp,%ebp 12cc7f: 57 push %edi 12cc80: 56 push %esi 12cc81: 53 push %ebx 12cc82: 83 ec 2c sub $0x2c,%esp 12cc85: 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 ); 12cc88: 8a 10 mov (%eax),%dl 12cc8a: 80 fa 2f cmp $0x2f,%dl 12cc8d: 74 09 je 12cc98 12cc8f: 80 fa 5c cmp $0x5c,%dl 12cc92: 74 04 je 12cc98 12cc94: 84 d2 test %dl,%dl 12cc96: 75 70 jne 12cd08 12cc98: 8d 5d d0 lea -0x30(%ebp),%ebx 12cc9b: 8b 35 84 92 16 00 mov 0x169284,%esi 12cca1: 83 c6 18 add $0x18,%esi 12cca4: b9 05 00 00 00 mov $0x5,%ecx 12cca9: 89 df mov %ebx,%edi 12ccab: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12ccad: b1 01 mov $0x1,%cl if ( !loc.ops->evalformake_h ) { 12ccaf: 8b 55 dc mov -0x24(%ebp),%edx 12ccb2: 8b 52 04 mov 0x4(%edx),%edx 12ccb5: 85 d2 test %edx,%edx 12ccb7: 74 6e je 12cd27 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 12ccb9: 56 push %esi 12ccba: 8d 75 e4 lea -0x1c(%ebp),%esi 12ccbd: 56 push %esi 12ccbe: 53 push %ebx 12ccbf: 01 c8 add %ecx,%eax 12ccc1: 50 push %eax 12ccc2: ff d2 call *%edx if ( result != 0 ) 12ccc4: 83 c4 10 add $0x10,%esp 12ccc7: 85 c0 test %eax,%eax 12ccc9: 75 67 jne 12cd32 return -1; if ( !loc.ops->symlink_h ) { 12cccb: 8b 55 dc mov -0x24(%ebp),%edx 12ccce: 8b 42 38 mov 0x38(%edx),%eax 12ccd1: 85 c0 test %eax,%eax 12ccd3: 74 6c je 12cd41 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 12ccd5: 52 push %edx 12ccd6: ff 75 e4 pushl -0x1c(%ebp) 12ccd9: ff 75 08 pushl 0x8(%ebp) 12ccdc: 53 push %ebx 12ccdd: ff d0 call *%eax 12ccdf: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &loc ); 12cce1: 8b 45 dc mov -0x24(%ebp),%eax 12cce4: 83 c4 10 add $0x10,%esp 12cce7: 85 c0 test %eax,%eax 12cce9: 74 10 je 12ccfb 12cceb: 8b 40 1c mov 0x1c(%eax),%eax 12ccee: 85 c0 test %eax,%eax 12ccf0: 74 09 je 12ccfb 12ccf2: 83 ec 0c sub $0xc,%esp 12ccf5: 53 push %ebx 12ccf6: ff d0 call *%eax 12ccf8: 83 c4 10 add $0x10,%esp return result; } 12ccfb: 89 f0 mov %esi,%eax 12ccfd: 8d 65 f4 lea -0xc(%ebp),%esp 12cd00: 5b pop %ebx 12cd01: 5e pop %esi 12cd02: 5f pop %edi 12cd03: c9 leave 12cd04: c3 ret 12cd05: 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 ); 12cd08: 8d 5d d0 lea -0x30(%ebp),%ebx 12cd0b: 8b 35 84 92 16 00 mov 0x169284,%esi 12cd11: 83 c6 04 add $0x4,%esi 12cd14: b9 05 00 00 00 mov $0x5,%ecx 12cd19: 89 df mov %ebx,%edi 12cd1b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->evalformake_h ) { 12cd1d: 8b 55 dc mov -0x24(%ebp),%edx 12cd20: 8b 52 04 mov 0x4(%edx),%edx 12cd23: 85 d2 test %edx,%edx 12cd25: 75 92 jne 12ccb9 if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 12cd27: e8 78 5b 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12cd2c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12cd32: be ff ff ff ff mov $0xffffffff,%esi result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } 12cd37: 89 f0 mov %esi,%eax 12cd39: 8d 65 f4 lea -0xc(%ebp),%esp 12cd3c: 5b pop %ebx 12cd3d: 5e pop %esi 12cd3e: 5f pop %edi 12cd3f: c9 leave 12cd40: 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 ); 12cd41: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12cd44: 85 c0 test %eax,%eax <== NOT EXECUTED 12cd46: 74 df je 12cd27 <== NOT EXECUTED 12cd48: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cd4b: 53 push %ebx <== NOT EXECUTED 12cd4c: ff d0 call *%eax <== NOT EXECUTED 12cd4e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12cd51: eb d4 jmp 12cd27 <== NOT EXECUTED 0010b0b0 : */ long sysconf( int name ) { 10b0b0: 55 push %ebp 10b0b1: 89 e5 mov %esp,%ebp 10b0b3: 83 ec 08 sub $0x8,%esp 10b0b6: 8b 45 08 mov 0x8(%ebp),%eax if ( name == _SC_CLK_TCK ) 10b0b9: 83 f8 02 cmp $0x2,%eax 10b0bc: 74 16 je 10b0d4 return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); if ( name == _SC_OPEN_MAX ) 10b0be: 83 f8 04 cmp $0x4,%eax 10b0c1: 74 21 je 10b0e4 return rtems_libio_number_iops; if ( name == _SC_GETPW_R_SIZE_MAX ) 10b0c3: 83 f8 33 cmp $0x33,%eax 10b0c6: 74 24 je 10b0ec return 1024; if ( name == _SC_PAGESIZE ) 10b0c8: 83 f8 08 cmp $0x8,%eax 10b0cb: 75 27 jne 10b0f4 10b0cd: 66 b8 00 10 mov $0x1000,%ax if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); } 10b0d1: c9 leave 10b0d2: c3 ret 10b0d3: 90 nop <== NOT EXECUTED long sysconf( int name ) { if ( name == _SC_CLK_TCK ) return (TOD_MICROSECONDS_PER_SECOND / 10b0d4: b8 40 42 0f 00 mov $0xf4240,%eax 10b0d9: 31 d2 xor %edx,%edx 10b0db: f7 35 4c 46 12 00 divl 0x12464c if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); } 10b0e1: c9 leave 10b0e2: c3 ret 10b0e3: 90 nop <== NOT EXECUTED if ( name == _SC_CLK_TCK ) return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); if ( name == _SC_OPEN_MAX ) return rtems_libio_number_iops; 10b0e4: a1 2c 45 12 00 mov 0x12452c,%eax if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); } 10b0e9: c9 leave 10b0ea: c3 ret 10b0eb: 90 nop <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick()); if ( name == _SC_OPEN_MAX ) return rtems_libio_number_iops; if ( name == _SC_GETPW_R_SIZE_MAX ) 10b0ec: 66 b8 00 04 mov $0x400,%ax if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); } 10b0f0: c9 leave 10b0f1: c3 ret 10b0f2: 66 90 xchg %ax,%ax <== NOT EXECUTED #if defined(__sparc__) if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); 10b0f4: e8 77 8d 00 00 call 113e70 <__errno> 10b0f9: c7 00 16 00 00 00 movl $0x16,(%eax) 10b0ff: b8 ff ff ff ff mov $0xffffffff,%eax } 10b104: c9 leave 10b105: c3 ret 00117250 : int tcsetattr( int fd, int opt, struct termios *tp ) { 117250: 55 push %ebp 117251: 89 e5 mov %esp,%ebp 117253: 56 push %esi 117254: 53 push %ebx 117255: 8b 5d 08 mov 0x8(%ebp),%ebx 117258: 8b 45 0c mov 0xc(%ebp),%eax 11725b: 8b 75 10 mov 0x10(%ebp),%esi switch (opt) { 11725e: 85 c0 test %eax,%eax 117260: 74 2c je 11728e 117262: 48 dec %eax <== NOT EXECUTED 117263: 74 17 je 11727c <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 117265: e8 3a 4c 00 00 call 11bea4 <__errno> <== NOT EXECUTED 11726a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 117270: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 117275: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 117278: 5b pop %ebx <== NOT EXECUTED 117279: 5e pop %esi <== NOT EXECUTED 11727a: c9 leave <== NOT EXECUTED 11727b: 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) 11727c: 50 push %eax <== NOT EXECUTED 11727d: 6a 00 push $0x0 <== NOT EXECUTED 11727f: 6a 03 push $0x3 <== NOT EXECUTED 117281: 53 push %ebx <== NOT EXECUTED 117282: e8 b9 36 00 00 call 11a940 <== NOT EXECUTED 117287: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11728a: 85 c0 test %eax,%eax <== NOT EXECUTED 11728c: 78 e2 js 117270 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 11728e: 89 75 10 mov %esi,0x10(%ebp) 117291: c7 45 0c 02 00 00 00 movl $0x2,0xc(%ebp) 117298: 89 5d 08 mov %ebx,0x8(%ebp) } } 11729b: 8d 65 f8 lea -0x8(%ebp),%esp 11729e: 5b pop %ebx 11729f: 5e pop %esi 1172a0: c9 leave return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 1172a1: e9 9a 36 00 00 jmp 11a940 0010b3e0 : int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) { 10b3e0: 55 push %ebp 10b3e1: 89 e5 mov %esp,%ebp 10b3e3: 56 push %esi 10b3e4: 53 push %ebx 10b3e5: 8b 5d 0c mov 0xc(%ebp),%ebx 10b3e8: 8b 75 10 mov 0x10(%ebp),%esi POSIX_Timer_Control *ptimer; if ( clock_id != CLOCK_REALTIME ) 10b3eb: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 10b3ef: 0f 85 db 00 00 00 jne 10b4d0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !timerid ) 10b3f5: 85 f6 test %esi,%esi 10b3f7: 0f 84 d3 00 00 00 je 10b4d0 /* * The data of the structure evp are checked in order to verify if they * are coherent. */ if (evp != NULL) { 10b3fd: 85 db test %ebx,%ebx 10b3ff: 74 21 je 10b422 /* The structure has data */ if ( ( evp->sigev_notify != SIGEV_NONE ) && 10b401: 8b 03 mov (%ebx),%eax 10b403: 48 dec %eax 10b404: 83 f8 01 cmp $0x1,%eax 10b407: 0f 87 c3 00 00 00 ja 10b4d0 ( evp->sigev_notify != SIGEV_SIGNAL ) ) { /* The value of the field sigev_notify is not valid */ rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !evp->sigev_signo ) 10b40d: 8b 43 04 mov 0x4(%ebx),%eax 10b410: 85 c0 test %eax,%eax 10b412: 0f 84 b8 00 00 00 je 10b4d0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(evp->sigev_signo) ) 10b418: 48 dec %eax 10b419: 83 f8 1f cmp $0x1f,%eax 10b41c: 0f 87 ae 00 00 00 ja 10b4d0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10b422: a1 18 95 12 00 mov 0x129518,%eax 10b427: 40 inc %eax 10b428: a3 18 95 12 00 mov %eax,0x129518 * the inactive chain of free timer control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void ) { return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information ); 10b42d: 83 ec 0c sub $0xc,%esp 10b430: 68 a0 98 12 00 push $0x1298a0 10b435: e8 2a 1e 00 00 call 10d264 <_Objects_Allocate> /* * Allocate a timer */ ptimer = _POSIX_Timer_Allocate(); if ( !ptimer ) { 10b43a: 83 c4 10 add $0x10,%esp 10b43d: 85 c0 test %eax,%eax 10b43f: 0f 84 a2 00 00 00 je 10b4e7 rtems_set_errno_and_return_minus_one( EAGAIN ); } /* The data of the created timer are stored to use them later */ ptimer->state = POSIX_TIMER_STATE_CREATE_NEW; 10b445: c6 40 3c 02 movb $0x2,0x3c(%eax) ptimer->thread_id = _Thread_Executing->Object.id; 10b449: 8b 15 d8 95 12 00 mov 0x1295d8,%edx 10b44f: 8b 52 08 mov 0x8(%edx),%edx 10b452: 89 50 38 mov %edx,0x38(%eax) if ( evp != NULL ) { 10b455: 85 db test %ebx,%ebx 10b457: 74 11 je 10b46a ptimer->inf.sigev_notify = evp->sigev_notify; 10b459: 8b 13 mov (%ebx),%edx 10b45b: 89 50 40 mov %edx,0x40(%eax) ptimer->inf.sigev_signo = evp->sigev_signo; 10b45e: 8b 53 04 mov 0x4(%ebx),%edx 10b461: 89 50 44 mov %edx,0x44(%eax) ptimer->inf.sigev_value = evp->sigev_value; 10b464: 8b 53 08 mov 0x8(%ebx),%edx 10b467: 89 50 48 mov %edx,0x48(%eax) } ptimer->overrun = 0; 10b46a: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) ptimer->timer_data.it_value.tv_sec = 0; 10b471: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) ptimer->timer_data.it_value.tv_nsec = 0; 10b478: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax) ptimer->timer_data.it_interval.tv_sec = 0; 10b47f: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) ptimer->timer_data.it_interval.tv_nsec = 0; 10b486: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10b48d: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_watchdog->routine = routine; 10b494: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) the_watchdog->id = id; 10b49b: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) the_watchdog->user_data = user_data; 10b4a2: 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; 10b4a9: 8b 50 08 mov 0x8(%eax),%edx 10b4ac: 0f b7 da movzwl %dx,%ebx 10b4af: 8b 0d bc 98 12 00 mov 0x1298bc,%ecx 10b4b5: 89 04 99 mov %eax,(%ecx,%ebx,4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 10b4b8: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) _Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL ); _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0); *timerid = ptimer->Object.id; 10b4bf: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 10b4c1: e8 c2 2a 00 00 call 10df88 <_Thread_Enable_dispatch> 10b4c6: 31 c0 xor %eax,%eax return 0; } 10b4c8: 8d 65 f8 lea -0x8(%ebp),%esp 10b4cb: 5b pop %ebx 10b4cc: 5e pop %esi 10b4cd: c9 leave 10b4ce: c3 ret 10b4cf: 90 nop <== NOT EXECUTED if ( !evp->sigev_signo ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(evp->sigev_signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); 10b4d0: e8 e3 8e 00 00 call 1143b8 <__errno> 10b4d5: c7 00 16 00 00 00 movl $0x16,(%eax) 10b4db: b8 ff ff ff ff mov $0xffffffff,%eax _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0); *timerid = ptimer->Object.id; _Thread_Enable_dispatch(); return 0; } 10b4e0: 8d 65 f8 lea -0x8(%ebp),%esp 10b4e3: 5b pop %ebx 10b4e4: 5e pop %esi 10b4e5: c9 leave 10b4e6: c3 ret /* * Allocate a timer */ ptimer = _POSIX_Timer_Allocate(); if ( !ptimer ) { _Thread_Enable_dispatch(); 10b4e7: e8 9c 2a 00 00 call 10df88 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EAGAIN ); 10b4ec: e8 c7 8e 00 00 call 1143b8 <__errno> 10b4f1: c7 00 0b 00 00 00 movl $0xb,(%eax) 10b4f7: b8 ff ff ff ff mov $0xffffffff,%eax 10b4fc: eb ca jmp 10b4c8 0010b8d0 : int timer_delete( timer_t timerid ) { 10b8d0: 55 push %ebp 10b8d1: 89 e5 mov %esp,%ebp 10b8d3: 53 push %ebx 10b8d4: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( timer_t id, Objects_Locations *location ) { return (POSIX_Timer_Control *) 10b8d7: 8d 45 f4 lea -0xc(%ebp),%eax 10b8da: 50 push %eax 10b8db: ff 75 08 pushl 0x8(%ebp) 10b8de: 68 c0 99 12 00 push $0x1299c0 10b8e3: e8 34 21 00 00 call 10da1c <_Objects_Get> 10b8e8: 89 c3 mov %eax,%ebx */ POSIX_Timer_Control *ptimer; Objects_Locations location; ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { 10b8ea: 83 c4 10 add $0x10,%esp 10b8ed: 8b 4d f4 mov -0xc(%ebp),%ecx 10b8f0: 85 c9 test %ecx,%ecx 10b8f2: 74 18 je 10b90c #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10b8f4: e8 8b 91 00 00 call 114a84 <__errno> 10b8f9: c7 00 16 00 00 00 movl $0x16,(%eax) 10b8ff: b8 ff ff ff ff mov $0xffffffff,%eax } 10b904: 8b 5d fc mov -0x4(%ebp),%ebx 10b907: c9 leave 10b908: c3 ret 10b909: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Timer_Information, &ptimer->Object ); 10b90c: 83 ec 08 sub $0x8,%esp 10b90f: 50 push %eax 10b910: 68 c0 99 12 00 push $0x1299c0 10b915: e8 ce 1c 00 00 call 10d5e8 <_Objects_Close> ptimer->state = POSIX_TIMER_STATE_FREE; 10b91a: c6 43 3c 01 movb $0x1,0x3c(%ebx) (void) _Watchdog_Remove( &ptimer->Timer ); 10b91e: 8d 43 10 lea 0x10(%ebx),%eax 10b921: 89 04 24 mov %eax,(%esp) 10b924: e8 ab 3a 00 00 call 10f3d4 <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _POSIX_Timer_Free ( POSIX_Timer_Control *the_timer ) { _Objects_Free( &_POSIX_Timer_Information, &the_timer->Object ); 10b929: 58 pop %eax 10b92a: 5a pop %edx 10b92b: 53 push %ebx 10b92c: 68 c0 99 12 00 push $0x1299c0 10b931: e8 b6 1f 00 00 call 10d8ec <_Objects_Free> _POSIX_Timer_Free( ptimer ); _Thread_Enable_dispatch(); 10b936: e8 55 29 00 00 call 10e290 <_Thread_Enable_dispatch> 10b93b: 31 c0 xor %eax,%eax return 0; 10b93d: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10b940: 8b 5d fc mov -0x4(%ebp),%ebx 10b943: c9 leave 10b944: c3 ret 0010c7f8 : * its execution, _POSIX_Timer_TSR will have to set this counter to 0. */ int timer_getoverrun( timer_t timerid ) { 10c7f8: 55 push %ebp 10c7f9: 89 e5 mov %esp,%ebp 10c7fb: 53 push %ebx 10c7fc: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( timer_t id, Objects_Locations *location ) { return (POSIX_Timer_Control *) 10c7ff: 8d 45 f4 lea -0xc(%ebp),%eax 10c802: 50 push %eax 10c803: ff 75 08 pushl 0x8(%ebp) 10c806: 68 c0 b1 12 00 push $0x12b1c0 10c80b: e8 bc 20 00 00 call 10e8cc <_Objects_Get> int overrun; POSIX_Timer_Control *ptimer; Objects_Locations location; ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { 10c810: 83 c4 10 add $0x10,%esp 10c813: 8b 55 f4 mov -0xc(%ebp),%edx 10c816: 85 d2 test %edx,%edx 10c818: 74 1a je 10c834 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10c81a: e8 49 8d 00 00 call 115568 <__errno> 10c81f: c7 00 16 00 00 00 movl $0x16,(%eax) 10c825: bb ff ff ff ff mov $0xffffffff,%ebx } 10c82a: 89 d8 mov %ebx,%eax 10c82c: 8b 5d fc mov -0x4(%ebp),%ebx 10c82f: c9 leave 10c830: c3 ret 10c831: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { case OBJECTS_LOCAL: overrun = ptimer->overrun; 10c834: 8b 58 68 mov 0x68(%eax),%ebx ptimer->overrun = 0; 10c837: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) _Thread_Enable_dispatch(); 10c83e: e8 fd 28 00 00 call 10f140 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10c843: 89 d8 mov %ebx,%eax 10c845: 8b 5d fc mov -0x4(%ebp),%ebx 10c848: c9 leave 10c849: c3 ret 0010c84c : int timer_gettime( timer_t timerid, struct itimerspec *value ) { 10c84c: 55 push %ebp 10c84d: 89 e5 mov %esp,%ebp 10c84f: 56 push %esi 10c850: 53 push %ebx 10c851: 83 ec 10 sub $0x10,%esp 10c854: 8b 5d 0c mov 0xc(%ebp),%ebx POSIX_Timer_Control *ptimer; Objects_Locations location; struct timespec current_time; Watchdog_Interval left; if ( !value ) 10c857: 85 db test %ebx,%ebx 10c859: 74 65 je 10c8c0 rtems_set_errno_and_return_minus_one( EINVAL ); /* Reads the current time */ _TOD_Get( ¤t_time ); 10c85b: 83 ec 0c sub $0xc,%esp 10c85e: 8d 45 ec lea -0x14(%ebp),%eax 10c861: 50 push %eax 10c862: e8 cd 16 00 00 call 10df34 <_TOD_Get> 10c867: 83 c4 0c add $0xc,%esp 10c86a: 8d 45 f4 lea -0xc(%ebp),%eax 10c86d: 50 push %eax 10c86e: ff 75 08 pushl 0x8(%ebp) 10c871: 68 c0 b1 12 00 push $0x12b1c0 10c876: e8 51 20 00 00 call 10e8cc <_Objects_Get> 10c87b: 89 c6 mov %eax,%esi ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { 10c87d: 83 c4 10 add $0x10,%esp 10c880: 8b 45 f4 mov -0xc(%ebp),%eax 10c883: 85 c0 test %eax,%eax 10c885: 75 39 jne 10c8c0 case OBJECTS_LOCAL: /* Calculates the time left before the timer finishes */ left = (ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */ 10c887: a1 a4 af 12 00 mov 0x12afa4,%eax _Watchdog_Ticks_since_boot; /* now */ _Timespec_From_ticks( left, &value->it_value ); 10c88c: 83 ec 08 sub $0x8,%esp 10c88f: 8d 53 08 lea 0x8(%ebx),%edx 10c892: 52 push %edx 10c893: 8b 56 1c mov 0x1c(%esi),%edx 10c896: 03 56 24 add 0x24(%esi),%edx 10c899: 29 c2 sub %eax,%edx 10c89b: 52 push %edx 10c89c: e8 1b 35 00 00 call 10fdbc <_Timespec_From_ticks> value->it_interval = ptimer->timer_data.it_interval; 10c8a1: 8b 46 54 mov 0x54(%esi),%eax 10c8a4: 8b 56 58 mov 0x58(%esi),%edx 10c8a7: 89 03 mov %eax,(%ebx) 10c8a9: 89 53 04 mov %edx,0x4(%ebx) _Thread_Enable_dispatch(); 10c8ac: e8 8f 28 00 00 call 10f140 <_Thread_Enable_dispatch> 10c8b1: 31 c0 xor %eax,%eax return 0; 10c8b3: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10c8b6: 8d 65 f8 lea -0x8(%ebp),%esp 10c8b9: 5b pop %ebx 10c8ba: 5e pop %esi 10c8bb: c9 leave 10c8bc: c3 ret 10c8bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10c8c0: e8 a3 8c 00 00 call 115568 <__errno> 10c8c5: c7 00 16 00 00 00 movl $0x16,(%eax) 10c8cb: b8 ff ff ff ff mov $0xffffffff,%eax 10c8d0: eb e4 jmp 10c8b6 0010b500 : timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) { 10b500: 55 push %ebp 10b501: 89 e5 mov %esp,%ebp 10b503: 57 push %edi 10b504: 56 push %esi 10b505: 53 push %ebx 10b506: 83 ec 3c sub $0x3c,%esp 10b509: 8b 4d 0c mov 0xc(%ebp),%ecx 10b50c: 8b 5d 10 mov 0x10(%ebp),%ebx Objects_Locations location; bool activated; uint32_t initial_period; struct itimerspec normalize; if ( !value ) 10b50f: 85 db test %ebx,%ebx 10b511: 0f 84 39 01 00 00 je 10b650 rtems_set_errno_and_return_minus_one( EINVAL ); /* First, it verifies if the structure "value" is correct */ if ( ( value->it_value.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) || 10b517: 81 7b 0c ff c9 9a 3b cmpl $0x3b9ac9ff,0xc(%ebx) 10b51e: 0f 87 2c 01 00 00 ja 10b650 ( value->it_value.tv_nsec < 0 ) || ( value->it_interval.tv_nsec >= TOD_NANOSECONDS_PER_SECOND) || 10b524: 81 7b 04 ff c9 9a 3b cmpl $0x3b9ac9ff,0x4(%ebx) 10b52b: 0f 87 1f 01 00 00 ja 10b650 ( value->it_interval.tv_nsec < 0 )) { /* The number of nanoseconds is not correct */ rtems_set_errno_and_return_minus_one( EINVAL ); } if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) { 10b531: 83 f9 04 cmp $0x4,%ecx 10b534: 0f 84 da 00 00 00 je 10b614 10b53a: 85 c9 test %ecx,%ecx 10b53c: 0f 85 0e 01 00 00 jne 10b650 rtems_set_errno_and_return_minus_one( EINVAL ); } normalize = *value; 10b542: 8d 45 cc lea -0x34(%ebp),%eax 10b545: 89 45 c4 mov %eax,-0x3c(%ebp) 10b548: b9 04 00 00 00 mov $0x4,%ecx 10b54d: 89 c7 mov %eax,%edi 10b54f: 89 de mov %ebx,%esi 10b551: f3 a5 rep movsl %ds:(%esi),%es:(%edi) RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( timer_t id, Objects_Locations *location ) { return (POSIX_Timer_Control *) 10b553: 50 push %eax 10b554: 8d 45 e4 lea -0x1c(%ebp),%eax 10b557: 50 push %eax 10b558: ff 75 08 pushl 0x8(%ebp) 10b55b: 68 a0 98 12 00 push $0x1298a0 10b560: e8 af 21 00 00 call 10d714 <_Objects_Get> 10b565: 89 c2 mov %eax,%edx * something with the structure of times of the timer: to stop, start * or start it again */ ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { 10b567: 83 c4 10 add $0x10,%esp 10b56a: 8b 7d e4 mov -0x1c(%ebp),%edi 10b56d: 85 ff test %edi,%edi 10b56f: 0f 85 db 00 00 00 jne 10b650 case OBJECTS_LOCAL: /* First, it verifies if the timer must be stopped */ if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) { 10b575: 8b 75 d4 mov -0x2c(%ebp),%esi 10b578: 85 f6 test %esi,%esi 10b57a: 75 0b jne 10b587 10b57c: 8b 4d d8 mov -0x28(%ebp),%ecx 10b57f: 85 c9 test %ecx,%ecx 10b581: 0f 84 e1 00 00 00 je 10b668 _Thread_Enable_dispatch(); return 0; } /* Convert from seconds and nanoseconds to ticks */ ptimer->ticks = _Timespec_To_ticks( &value->it_interval ); 10b587: 83 ec 0c sub $0xc,%esp 10b58a: 53 push %ebx 10b58b: 89 55 c0 mov %edx,-0x40(%ebp) 10b58e: e8 d1 36 00 00 call 10ec64 <_Timespec_To_ticks> 10b593: 8b 55 c0 mov -0x40(%ebp),%edx 10b596: 89 42 64 mov %eax,0x64(%edx) initial_period = _Timespec_To_ticks( &normalize.it_value ); 10b599: 8d 45 d4 lea -0x2c(%ebp),%eax 10b59c: 89 04 24 mov %eax,(%esp) 10b59f: e8 c0 36 00 00 call 10ec64 <_Timespec_To_ticks> activated = _POSIX_Timer_Insert_helper( 10b5a4: 8b 55 c0 mov -0x40(%ebp),%edx 10b5a7: 89 14 24 mov %edx,(%esp) 10b5aa: 68 d4 b6 10 00 push $0x10b6d4 10b5af: ff 72 08 pushl 0x8(%edx) 10b5b2: 50 push %eax 10b5b3: 8d 42 10 lea 0x10(%edx),%eax 10b5b6: 50 push %eax 10b5b7: e8 cc 5a 00 00 call 111088 <_POSIX_Timer_Insert_helper> initial_period, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) { 10b5bc: 83 c4 20 add $0x20,%esp 10b5bf: 84 c0 test %al,%al 10b5c1: 8b 55 c0 mov -0x40(%ebp),%edx 10b5c4: 0f 84 ea 00 00 00 je 10b6b4 /* * The timer has been started and is running. So we return the * old ones in "ovalue" */ if ( ovalue ) 10b5ca: 8b 45 14 mov 0x14(%ebp),%eax 10b5cd: 85 c0 test %eax,%eax 10b5cf: 0f 84 ef 00 00 00 je 10b6c4 *ovalue = ptimer->timer_data; 10b5d5: 8d 42 54 lea 0x54(%edx),%eax 10b5d8: b9 04 00 00 00 mov $0x4,%ecx 10b5dd: 8b 7d 14 mov 0x14(%ebp),%edi 10b5e0: 89 c6 mov %eax,%esi 10b5e2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) ptimer->timer_data = normalize; 10b5e4: b9 04 00 00 00 mov $0x4,%ecx 10b5e9: 89 c7 mov %eax,%edi 10b5eb: 8b 75 c4 mov -0x3c(%ebp),%esi 10b5ee: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* Indicate that the time is running */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; 10b5f0: c6 42 3c 03 movb $0x3,0x3c(%edx) _TOD_Get( &ptimer->time ); 10b5f4: 83 ec 0c sub $0xc,%esp 10b5f7: 83 c2 6c add $0x6c,%edx 10b5fa: 52 push %edx 10b5fb: e8 a0 17 00 00 call 10cda0 <_TOD_Get> _Thread_Enable_dispatch(); 10b600: e8 83 29 00 00 call 10df88 <_Thread_Enable_dispatch> 10b605: 31 c0 xor %eax,%eax return 0; 10b607: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10b60a: 8d 65 f4 lea -0xc(%ebp),%esp 10b60d: 5b pop %ebx 10b60e: 5e pop %esi 10b60f: 5f pop %edi 10b610: c9 leave 10b611: c3 ret 10b612: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) { rtems_set_errno_and_return_minus_one( EINVAL ); } normalize = *value; 10b614: 8d 45 cc lea -0x34(%ebp),%eax 10b617: 89 45 c4 mov %eax,-0x3c(%ebp) 10b61a: 89 c7 mov %eax,%edi 10b61c: 89 de mov %ebx,%esi 10b61e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* Convert absolute to relative time */ if (flags == TIMER_ABSTIME) { struct timespec now; _TOD_Get( &now ); 10b620: 83 ec 0c sub $0xc,%esp 10b623: 8d 75 dc lea -0x24(%ebp),%esi 10b626: 56 push %esi 10b627: e8 74 17 00 00 call 10cda0 <_TOD_Get> /* Check for seconds in the past */ if ( _Timespec_Greater_than( &now, &normalize.it_value ) ) 10b62c: 59 pop %ecx 10b62d: 5f pop %edi 10b62e: 8d 7d d4 lea -0x2c(%ebp),%edi 10b631: 57 push %edi 10b632: 56 push %esi 10b633: e8 cc 35 00 00 call 10ec04 <_Timespec_Greater_than> 10b638: 83 c4 10 add $0x10,%esp 10b63b: 84 c0 test %al,%al 10b63d: 75 11 jne 10b650 rtems_set_errno_and_return_minus_one( EINVAL ); _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value ); 10b63f: 52 push %edx 10b640: 57 push %edi 10b641: 57 push %edi 10b642: 56 push %esi 10b643: e8 e0 35 00 00 call 10ec28 <_Timespec_Subtract> 10b648: 83 c4 10 add $0x10,%esp 10b64b: e9 03 ff ff ff jmp 10b553 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); 10b650: e8 63 8d 00 00 call 1143b8 <__errno> 10b655: c7 00 16 00 00 00 movl $0x16,(%eax) 10b65b: b8 ff ff ff ff mov $0xffffffff,%eax } 10b660: 8d 65 f4 lea -0xc(%ebp),%esp 10b663: 5b pop %ebx 10b664: 5e pop %esi 10b665: 5f pop %edi 10b666: c9 leave 10b667: c3 ret case OBJECTS_LOCAL: /* First, it verifies if the timer must be stopped */ if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) { /* Stop the timer */ (void) _Watchdog_Remove( &ptimer->Timer ); 10b668: 83 ec 0c sub $0xc,%esp 10b66b: 8d 40 10 lea 0x10(%eax),%eax 10b66e: 50 push %eax 10b66f: 89 55 c0 mov %edx,-0x40(%ebp) 10b672: e8 0d 3a 00 00 call 10f084 <_Watchdog_Remove> /* The old data of the timer are returned */ if ( ovalue ) 10b677: 83 c4 10 add $0x10,%esp 10b67a: 8b 55 14 mov 0x14(%ebp),%edx 10b67d: 85 d2 test %edx,%edx 10b67f: 8b 55 c0 mov -0x40(%ebp),%edx 10b682: 74 48 je 10b6cc *ovalue = ptimer->timer_data; 10b684: 8d 42 54 lea 0x54(%edx),%eax 10b687: b9 04 00 00 00 mov $0x4,%ecx 10b68c: 8b 7d 14 mov 0x14(%ebp),%edi 10b68f: 89 c6 mov %eax,%esi 10b691: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* The new data are set */ ptimer->timer_data = normalize; 10b693: b9 04 00 00 00 mov $0x4,%ecx 10b698: 89 c7 mov %eax,%edi 10b69a: 8b 75 c4 mov -0x3c(%ebp),%esi 10b69d: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* Indicates that the timer is created and stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; 10b69f: c6 42 3c 04 movb $0x4,0x3c(%edx) /* Returns with success */ _Thread_Enable_dispatch(); 10b6a3: e8 e0 28 00 00 call 10df88 <_Thread_Enable_dispatch> 10b6a8: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10b6aa: 8d 65 f4 lea -0xc(%ebp),%esp 10b6ad: 5b pop %ebx 10b6ae: 5e pop %esi 10b6af: 5f pop %edi 10b6b0: c9 leave 10b6b1: c3 ret 10b6b2: 66 90 xchg %ax,%ax <== NOT EXECUTED ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) { _Thread_Enable_dispatch(); 10b6b4: e8 cf 28 00 00 call 10df88 <_Thread_Enable_dispatch> 10b6b9: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } 10b6bb: 8d 65 f4 lea -0xc(%ebp),%esp 10b6be: 5b pop %ebx 10b6bf: 5e pop %esi 10b6c0: 5f pop %edi 10b6c1: c9 leave 10b6c2: c3 ret 10b6c3: 90 nop <== NOT EXECUTED 10b6c4: 8d 42 54 lea 0x54(%edx),%eax 10b6c7: e9 18 ff ff ff jmp 10b5e4 10b6cc: 8d 42 54 lea 0x54(%edx),%eax 10b6cf: eb c2 jmp 10b693 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 54 5f 00 00 call 113328 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 00110428 : useconds_t ualarm( useconds_t useconds, useconds_t interval ) { 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 2c sub $0x2c,%esp 110431: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { 110434: 8b 0d 9c 80 12 00 mov 0x12809c,%ecx 11043a: 85 c9 test %ecx,%ecx 11043c: 0f 84 8e 00 00 00 je 1104d0 _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); 110442: 83 ec 0c sub $0xc,%esp 110445: 68 80 80 12 00 push $0x128080 11044a: e8 29 e1 ff ff call 10e578 <_Watchdog_Remove> if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { 11044f: 83 e8 02 sub $0x2,%eax 110452: 83 c4 10 add $0x10,%esp 110455: 83 f8 01 cmp $0x1,%eax 110458: 0f 86 a2 00 00 00 jbe 110500 11045e: 31 f6 xor %esi,%esi <== NOT EXECUTED /* * If useconds is non-zero, then the caller wants to schedule * the alarm repeatedly at that interval. If the interval is * less than a single clock tick, then fudge it to a clock tick. */ if ( useconds ) { 110460: 85 db test %ebx,%ebx 110462: 74 62 je 1104c6 Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; 110464: ba 83 de 1b 43 mov $0x431bde83,%edx 110469: 89 d8 mov %ebx,%eax 11046b: f7 e2 mul %edx 11046d: c1 ea 12 shr $0x12,%edx 110470: 89 55 e0 mov %edx,-0x20(%ebp) tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; 110473: 8d 04 92 lea (%edx,%edx,4),%eax 110476: 8d 04 80 lea (%eax,%eax,4),%eax 110479: 8d 04 80 lea (%eax,%eax,4),%eax 11047c: 8d 04 80 lea (%eax,%eax,4),%eax 11047f: 8d 04 80 lea (%eax,%eax,4),%eax 110482: 8d 04 80 lea (%eax,%eax,4),%eax 110485: c1 e0 06 shl $0x6,%eax 110488: 29 c3 sub %eax,%ebx 11048a: 8d 04 9b lea (%ebx,%ebx,4),%eax 11048d: 8d 04 80 lea (%eax,%eax,4),%eax 110490: 8d 04 80 lea (%eax,%eax,4),%eax 110493: c1 e0 03 shl $0x3,%eax 110496: 89 45 e4 mov %eax,-0x1c(%ebp) ticks = _Timespec_To_ticks( &tp ); 110499: 83 ec 0c sub $0xc,%esp 11049c: 8d 5d e0 lea -0x20(%ebp),%ebx 11049f: 53 push %ebx 1104a0: e8 17 10 00 00 call 1114bc <_Timespec_To_ticks> if ( ticks == 0 ) ticks = 1; _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) ); 1104a5: 89 1c 24 mov %ebx,(%esp) 1104a8: e8 0f 10 00 00 call 1114bc <_Timespec_To_ticks> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 1104ad: a3 8c 80 12 00 mov %eax,0x12808c _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 1104b2: 58 pop %eax 1104b3: 5a pop %edx 1104b4: 68 80 80 12 00 push $0x128080 1104b9: 68 f8 77 12 00 push $0x1277f8 1104be: e8 7d df ff ff call 10e440 <_Watchdog_Insert> 1104c3: 83 c4 10 add $0x10,%esp } return remaining; } 1104c6: 89 f0 mov %esi,%eax 1104c8: 8d 65 f4 lea -0xc(%ebp),%esp 1104cb: 5b pop %ebx 1104cc: 5e pop %esi 1104cd: 5f pop %edi 1104ce: c9 leave 1104cf: c3 ret Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 1104d0: c7 05 88 80 12 00 00 movl $0x0,0x128088 1104d7: 00 00 00 the_watchdog->routine = routine; 1104da: c7 05 9c 80 12 00 5c movl $0x11055c,0x12809c 1104e1: 05 11 00 the_watchdog->id = id; 1104e4: c7 05 a0 80 12 00 00 movl $0x0,0x1280a0 1104eb: 00 00 00 the_watchdog->user_data = user_data; 1104ee: c7 05 a4 80 12 00 00 movl $0x0,0x1280a4 1104f5: 00 00 00 1104f8: 31 f6 xor %esi,%esi 1104fa: e9 61 ff ff ff jmp 110460 1104ff: 90 nop <== NOT EXECUTED * boot. Since alarm() is dealing in seconds, we must account for * this. */ ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); 110500: a1 94 80 12 00 mov 0x128094,%eax 110505: 03 05 8c 80 12 00 add 0x12808c,%eax /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); 11050b: 83 ec 08 sub $0x8,%esp 11050e: 8d 55 e0 lea -0x20(%ebp),%edx 110511: 52 push %edx 110512: 2b 05 98 80 12 00 sub 0x128098,%eax 110518: 50 push %eax 110519: e8 56 0f 00 00 call 111474 <_Timespec_From_ticks> remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; 11051e: 8b 45 e0 mov -0x20(%ebp),%eax 110521: 8d 04 80 lea (%eax,%eax,4),%eax 110524: 8d 04 80 lea (%eax,%eax,4),%eax 110527: 8d 04 80 lea (%eax,%eax,4),%eax 11052a: 8d 04 80 lea (%eax,%eax,4),%eax 11052d: 8d 04 80 lea (%eax,%eax,4),%eax 110530: 8d 3c 80 lea (%eax,%eax,4),%edi 110533: c1 e7 06 shl $0x6,%edi remaining += tp.tv_nsec / 1000; 110536: b9 d3 4d 62 10 mov $0x10624dd3,%ecx 11053b: 8b 45 e4 mov -0x1c(%ebp),%eax 11053e: f7 e9 imul %ecx 110540: 89 45 d0 mov %eax,-0x30(%ebp) 110543: 89 55 d4 mov %edx,-0x2c(%ebp) 110546: 8b 75 d4 mov -0x2c(%ebp),%esi 110549: c1 fe 06 sar $0x6,%esi 11054c: 8b 45 e4 mov -0x1c(%ebp),%eax 11054f: 99 cltd 110550: 29 d6 sub %edx,%esi 110552: 01 fe add %edi,%esi 110554: 83 c4 10 add $0x10,%esp 110557: e9 04 ff ff ff jmp 110460 001130cc : #include int unlink( const char *path ) { 1130cc: 55 push %ebp 1130cd: 89 e5 mov %esp,%ebp 1130cf: 57 push %edi 1130d0: 56 push %esi 1130d1: 53 push %ebx 1130d2: 83 ec 58 sub $0x58,%esp 1130d5: 8b 55 08 mov 0x8(%ebp),%edx /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 1130d8: 52 push %edx 1130d9: 89 55 ac mov %edx,-0x54(%ebp) 1130dc: e8 63 4d ff ff call 107e44 1130e1: 89 c3 mov %eax,%ebx if ( parentpathlen == 0 ) 1130e3: 83 c4 10 add $0x10,%esp 1130e6: 85 c0 test %eax,%eax 1130e8: 8b 55 ac mov -0x54(%ebp),%edx 1130eb: 0f 85 7b 01 00 00 jne 11326c rtems_filesystem_get_start_loc( path, &i, &parentloc ); 1130f1: 8a 02 mov (%edx),%al 1130f3: 3c 2f cmp $0x2f,%al 1130f5: 74 0c je 113103 1130f7: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 1130f9: 74 08 je 113103 <== NOT EXECUTED 1130fb: 84 c0 test %al,%al <== NOT EXECUTED 1130fd: 0f 85 ed 00 00 00 jne 1131f0 <== NOT EXECUTED 113103: 8d 45 d4 lea -0x2c(%ebp),%eax 113106: 89 45 b4 mov %eax,-0x4c(%ebp) 113109: 8b 35 38 53 12 00 mov 0x125338,%esi 11310f: 83 c6 18 add $0x18,%esi 113112: b9 05 00 00 00 mov $0x5,%ecx 113117: 89 c7 mov %eax,%edi 113119: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 11311b: c6 45 b3 00 movb $0x0,-0x4d(%ebp) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 11311f: 8d 7d c0 lea -0x40(%ebp),%edi 113122: b9 05 00 00 00 mov $0x5,%ecx 113127: 8b 75 b4 mov -0x4c(%ebp),%esi 11312a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) name = path + parentpathlen; 11312c: 8d 1c 1a lea (%edx,%ebx,1),%ebx name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 11312f: be ff ff ff ff mov $0xffffffff,%esi 113134: 89 f1 mov %esi,%ecx 113136: 89 df mov %ebx,%edi 113138: 31 c0 xor %eax,%eax 11313a: f2 ae repnz scas %es:(%edi),%al 11313c: f7 d1 not %ecx 11313e: 49 dec %ecx 11313f: 83 ec 08 sub $0x8,%esp 113142: 51 push %ecx 113143: 53 push %ebx 113144: e8 bf 4c ff ff call 107e08 113149: 01 c3 add %eax,%ebx result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 11314b: 89 f1 mov %esi,%ecx 11314d: 89 df mov %ebx,%edi 11314f: 31 c0 xor %eax,%eax 113151: f2 ae repnz scas %es:(%edi),%al 113153: f7 d1 not %ecx 113155: 49 dec %ecx 113156: c7 04 24 00 00 00 00 movl $0x0,(%esp) 11315d: 8d 75 c0 lea -0x40(%ebp),%esi 113160: 56 push %esi 113161: 6a 00 push $0x0 113163: 51 push %ecx 113164: 53 push %ebx 113165: e8 2a 4d ff ff call 107e94 0, &loc, false ); if ( result != 0 ) { 11316a: 83 c4 20 add $0x20,%esp 11316d: 85 c0 test %eax,%eax 11316f: 0f 85 9f 00 00 00 jne 113214 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { 113175: 8b 55 cc mov -0x34(%ebp),%edx 113178: 8b 42 10 mov 0x10(%edx),%eax 11317b: 85 c0 test %eax,%eax 11317d: 0f 84 a5 00 00 00 je 113228 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 ) { 113183: 83 ec 0c sub $0xc,%esp 113186: 56 push %esi 113187: ff d0 call *%eax 113189: 83 c4 10 add $0x10,%esp 11318c: 48 dec %eax 11318d: 0f 84 05 01 00 00 je 113298 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 113193: 8b 55 cc mov -0x34(%ebp),%edx 113196: 8b 42 0c mov 0xc(%edx),%eax 113199: 85 c0 test %eax,%eax 11319b: 0f 84 87 00 00 00 je 113228 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 1131a1: 83 ec 08 sub $0x8,%esp 1131a4: 56 push %esi 1131a5: ff 75 b4 pushl -0x4c(%ebp) 1131a8: ff d0 call *%eax 1131aa: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 1131ac: 8b 45 cc mov -0x34(%ebp),%eax 1131af: 83 c4 10 add $0x10,%esp 1131b2: 85 c0 test %eax,%eax 1131b4: 74 10 je 1131c6 1131b6: 8b 40 1c mov 0x1c(%eax),%eax 1131b9: 85 c0 test %eax,%eax 1131bb: 74 09 je 1131c6 1131bd: 83 ec 0c sub $0xc,%esp 1131c0: 56 push %esi 1131c1: ff d0 call *%eax 1131c3: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 1131c6: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 1131ca: 74 19 je 1131e5 rtems_filesystem_freenode( &parentloc ); 1131cc: 8b 45 e0 mov -0x20(%ebp),%eax 1131cf: 85 c0 test %eax,%eax 1131d1: 74 12 je 1131e5 1131d3: 8b 40 1c mov 0x1c(%eax),%eax 1131d6: 85 c0 test %eax,%eax 1131d8: 74 0b je 1131e5 1131da: 83 ec 0c sub $0xc,%esp 1131dd: ff 75 b4 pushl -0x4c(%ebp) 1131e0: ff d0 call *%eax 1131e2: 83 c4 10 add $0x10,%esp return result; } 1131e5: 89 d8 mov %ebx,%eax 1131e7: 8d 65 f4 lea -0xc(%ebp),%esp 1131ea: 5b pop %ebx 1131eb: 5e pop %esi 1131ec: 5f pop %edi 1131ed: c9 leave 1131ee: c3 ret 1131ef: 90 nop <== NOT EXECUTED */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); 1131f0: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED 1131f3: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED 1131f6: 8b 35 38 53 12 00 mov 0x125338,%esi <== NOT EXECUTED 1131fc: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 1131ff: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 113204: 89 c7 mov %eax,%edi <== NOT EXECUTED 113206: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 113208: c6 45 b3 00 movb $0x0,-0x4d(%ebp) <== NOT EXECUTED 11320c: e9 0e ff ff ff jmp 11311f <== NOT EXECUTED 113211: 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 ) 113214: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 113218: 0f 85 c5 00 00 00 jne 1132e3 result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 11321e: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 113223: eb c0 jmp 1131e5 <== NOT EXECUTED 113225: 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 ); 113228: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 11322b: 85 c0 test %eax,%eax <== NOT EXECUTED 11322d: 74 09 je 113238 <== NOT EXECUTED 11322f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 113232: 56 push %esi <== NOT EXECUTED 113233: ff d0 call *%eax <== NOT EXECUTED 113235: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_parentloc ) 113238: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED 11323c: 74 19 je 113257 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 11323e: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 113241: 85 c0 test %eax,%eax <== NOT EXECUTED 113243: 74 12 je 113257 <== NOT EXECUTED 113245: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 113248: 85 c0 test %eax,%eax <== NOT EXECUTED 11324a: 74 0b je 113257 <== NOT EXECUTED 11324c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11324f: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 113252: ff d0 call *%eax <== NOT EXECUTED 113254: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 113257: e8 38 06 00 00 call 113894 <__errno> <== NOT EXECUTED 11325c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 113262: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 113267: e9 79 ff ff ff jmp 1131e5 <== 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, 11326c: 83 ec 0c sub $0xc,%esp 11326f: 6a 00 push $0x0 113271: 8d 45 d4 lea -0x2c(%ebp),%eax 113274: 89 45 b4 mov %eax,-0x4c(%ebp) 113277: 50 push %eax 113278: 6a 02 push $0x2 11327a: 53 push %ebx 11327b: 52 push %edx 11327c: 89 55 ac mov %edx,-0x54(%ebp) 11327f: e8 e4 4c ff ff call 107f68 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 113284: 83 c4 20 add $0x20,%esp 113287: 85 c0 test %eax,%eax 113289: 8b 55 ac mov -0x54(%ebp),%edx 11328c: 75 90 jne 11321e 11328e: c6 45 b3 01 movb $0x1,-0x4d(%ebp) 113292: e9 88 fe ff ff jmp 11311f 113297: 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 ); 113298: 8b 45 cc mov -0x34(%ebp),%eax 11329b: 85 c0 test %eax,%eax 11329d: 74 10 je 1132af 11329f: 8b 40 1c mov 0x1c(%eax),%eax 1132a2: 85 c0 test %eax,%eax 1132a4: 74 09 je 1132af 1132a6: 83 ec 0c sub $0xc,%esp 1132a9: 56 push %esi 1132aa: ff d0 call *%eax 1132ac: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 1132af: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 1132b3: 74 19 je 1132ce rtems_filesystem_freenode( &parentloc ); 1132b5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1132b8: 85 c0 test %eax,%eax <== NOT EXECUTED 1132ba: 74 12 je 1132ce <== NOT EXECUTED 1132bc: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1132bf: 85 c0 test %eax,%eax <== NOT EXECUTED 1132c1: 74 0b je 1132ce <== NOT EXECUTED 1132c3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1132c6: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 1132c9: ff d0 call *%eax <== NOT EXECUTED 1132cb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 1132ce: e8 c1 05 00 00 call 113894 <__errno> 1132d3: c7 00 15 00 00 00 movl $0x15,(%eax) 1132d9: bb ff ff ff ff mov $0xffffffff,%ebx 1132de: e9 02 ff ff ff jmp 1131e5 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 1132e3: 8b 45 e0 mov -0x20(%ebp),%eax 1132e6: 85 c0 test %eax,%eax 1132e8: 0f 84 30 ff ff ff je 11321e 1132ee: 8b 40 1c mov 0x1c(%eax),%eax 1132f1: 85 c0 test %eax,%eax 1132f3: 0f 84 25 ff ff ff je 11321e 1132f9: 83 ec 0c sub $0xc,%esp 1132fc: ff 75 b4 pushl -0x4c(%ebp) 1132ff: ff d0 call *%eax 113301: 83 cb ff or $0xffffffff,%ebx 113304: 83 c4 10 add $0x10,%esp 113307: e9 d9 fe ff ff jmp 1131e5 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 84 92 16 00 mov 0x169284,%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 ed 16 00 mov 0x16edac,%eax 1104dd: 3d b0 ed 16 00 cmp $0x16edb0,%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 ed 16 00 cmp $0x16edb0,%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 73 23 03 00 call 1428a4 <__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 44 23 03 00 call 1428a4 <__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 96 18 00 00 call 111e24 <_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 44 15 00 00 call 111b24 <== 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 bf 22 03 00 call 1428a4 <__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 0012cdec : int utime( const char *path, const struct utimbuf *times ) { 12cdec: 55 push %ebp 12cded: 89 e5 mov %esp,%ebp 12cdef: 57 push %edi 12cdf0: 56 push %esi 12cdf1: 53 push %ebx 12cdf2: 83 ec 38 sub $0x38,%esp 12cdf5: 8b 55 08 mov 0x8(%ebp),%edx 12cdf8: 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 ) ) 12cdfb: 31 c0 xor %eax,%eax 12cdfd: b9 ff ff ff ff mov $0xffffffff,%ecx 12ce02: 89 d7 mov %edx,%edi 12ce04: f2 ae repnz scas %es:(%edi),%al 12ce06: f7 d1 not %ecx 12ce08: 49 dec %ecx 12ce09: 6a 01 push $0x1 12ce0b: 8d 75 d4 lea -0x2c(%ebp),%esi 12ce0e: 56 push %esi 12ce0f: 6a 00 push $0x0 12ce11: 51 push %ecx 12ce12: 52 push %edx 12ce13: e8 94 ff fd ff call 10cdac 12ce18: 83 c4 20 add $0x20,%esp 12ce1b: 85 c0 test %eax,%eax 12ce1d: 75 55 jne 12ce74 return -1; if ( !temp_loc.ops->utime_h ){ 12ce1f: 8b 55 e0 mov -0x20(%ebp),%edx 12ce22: 8b 42 30 mov 0x30(%edx),%eax 12ce25: 85 c0 test %eax,%eax 12ce27: 74 2f je 12ce58 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 ); 12ce29: 52 push %edx 12ce2a: ff 73 04 pushl 0x4(%ebx) 12ce2d: ff 33 pushl (%ebx) 12ce2f: 56 push %esi 12ce30: ff d0 call *%eax 12ce32: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &temp_loc ); 12ce34: 8b 45 e0 mov -0x20(%ebp),%eax 12ce37: 83 c4 10 add $0x10,%esp 12ce3a: 85 c0 test %eax,%eax 12ce3c: 74 10 je 12ce4e 12ce3e: 8b 40 1c mov 0x1c(%eax),%eax 12ce41: 85 c0 test %eax,%eax 12ce43: 74 09 je 12ce4e 12ce45: 83 ec 0c sub $0xc,%esp 12ce48: 56 push %esi 12ce49: ff d0 call *%eax 12ce4b: 83 c4 10 add $0x10,%esp return result; } 12ce4e: 89 d8 mov %ebx,%eax 12ce50: 8d 65 f4 lea -0xc(%ebp),%esp 12ce53: 5b pop %ebx 12ce54: 5e pop %esi 12ce55: 5f pop %edi 12ce56: c9 leave 12ce57: 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 ); 12ce58: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12ce5b: 85 c0 test %eax,%eax <== NOT EXECUTED 12ce5d: 74 09 je 12ce68 <== NOT EXECUTED 12ce5f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ce62: 56 push %esi <== NOT EXECUTED 12ce63: ff d0 call *%eax <== NOT EXECUTED 12ce65: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12ce68: e8 37 5a 01 00 call 1428a4 <__errno> <== NOT EXECUTED 12ce6d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12ce73: 90 nop <== NOT EXECUTED 12ce74: 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; } 12ce79: 89 d8 mov %ebx,%eax 12ce7b: 8d 65 f4 lea -0xc(%ebp),%esp 12ce7e: 5b pop %ebx 12ce7f: 5e pop %esi 12ce80: 5f pop %edi 12ce81: c9 leave 12ce82: 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 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 1a 0e 12 00 movsbl 0x120e1a(%eax),%eax 10acb1: 50 push %eax 10acb2: ff 15 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 a4 35 12 00 call *0x1235a4 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 19 0e 12 00 mov $0x120e19,%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 0011ef70 : ssize_t write( int fd, const void *buffer, size_t count ) { 11ef70: 55 push %ebp 11ef71: 89 e5 mov %esp,%ebp 11ef73: 53 push %ebx 11ef74: 83 ec 04 sub $0x4,%esp 11ef77: 8b 5d 08 mov 0x8(%ebp),%ebx 11ef7a: 8b 45 0c mov 0xc(%ebp),%eax 11ef7d: 8b 55 10 mov 0x10(%ebp),%edx ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 11ef80: 3b 1d 6c 34 12 00 cmp 0x12346c,%ebx 11ef86: 73 50 jae 11efd8 iop = rtems_libio_iop( fd ); 11ef88: c1 e3 06 shl $0x6,%ebx 11ef8b: 03 1d 80 75 12 00 add 0x127580,%ebx rtems_libio_check_is_open( iop ); 11ef91: 8b 4b 14 mov 0x14(%ebx),%ecx 11ef94: f6 c5 01 test $0x1,%ch 11ef97: 74 3f je 11efd8 rtems_libio_check_buffer( buffer ); 11ef99: 85 c0 test %eax,%eax 11ef9b: 74 4f je 11efec rtems_libio_check_count( count ); 11ef9d: 85 d2 test %edx,%edx 11ef9f: 74 2f je 11efd0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 11efa1: 83 e1 04 and $0x4,%ecx 11efa4: 74 46 je 11efec /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 11efa6: 8b 4b 3c mov 0x3c(%ebx),%ecx 11efa9: 8b 49 0c mov 0xc(%ecx),%ecx 11efac: 85 c9 test %ecx,%ecx 11efae: 74 4e je 11effe rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 11efb0: 83 ec 04 sub $0x4,%esp 11efb3: 52 push %edx 11efb4: 50 push %eax 11efb5: 53 push %ebx 11efb6: ff d1 call *%ecx if ( rc > 0 ) 11efb8: 83 c4 10 add $0x10,%esp 11efbb: 85 c0 test %eax,%eax 11efbd: 7e 0b jle 11efca iop->offset += rc; 11efbf: 89 c1 mov %eax,%ecx 11efc1: c1 f9 1f sar $0x1f,%ecx 11efc4: 01 43 0c add %eax,0xc(%ebx) 11efc7: 11 4b 10 adc %ecx,0x10(%ebx) return rc; } 11efca: 8b 5d fc mov -0x4(%ebp),%ebx 11efcd: c9 leave 11efce: c3 ret 11efcf: 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 ); 11efd0: 31 c0 xor %eax,%eax if ( rc > 0 ) iop->offset += rc; return rc; } 11efd2: 8b 5d fc mov -0x4(%ebp),%ebx 11efd5: c9 leave 11efd6: c3 ret 11efd7: 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 ); 11efd8: e8 b7 48 ff ff call 113894 <__errno> <== NOT EXECUTED 11efdd: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 11efe3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11efe8: eb e0 jmp 11efca <== NOT EXECUTED 11efea: 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 ); 11efec: e8 a3 48 ff ff call 113894 <__errno> <== NOT EXECUTED 11eff1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11eff7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11effc: eb cc jmp 11efca <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11effe: e8 91 48 ff ff call 113894 <__errno> <== NOT EXECUTED 11f003: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11f009: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11f00e: eb ba jmp 11efca <== 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 6c 73 12 00 cmp 0x12736c,%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 80 bc 12 00 mov 0x12bc80,%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 c0 xor %eax,%eax 10c2eb: 31 c9 xor %ecx,%ecx 10c2ed: be 01 00 00 00 mov $0x1,%esi 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 f6 xor %esi,%esi <== NOT EXECUTED 10c323: 31 d2 xor %edx,%edx <== 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 7b 98 00 00 call 115bc4 <__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 23 98 00 00 call 115bc4 <__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 11 98 00 00 call 115bc4 <__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