000078d4 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 78d4: e5903000 ldr r3, [r0] 78d8: e593304c ldr r3, [r3, #76] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 78dc: e590200c ldr r2, [r0, #12] switch( node->type ) { 78e0: e2433001 sub r3, r3, #1 ; 0x1 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 78e4: e592202c ldr r2, [r2, #44] switch( node->type ) { 78e8: e3530005 cmp r3, #5 ; 0x5 78ec: 979ff103 ldrls pc, [pc, r3, lsl #2] 78f0: ea00000d b 792c <== NOT EXECUTED 78f4: 0000790c .word 0x0000790c <== NOT EXECUTED 78f8: 00007914 .word 0x00007914 <== NOT EXECUTED 78fc: 0000791c .word 0x0000791c <== NOT EXECUTED 7900: 0000791c .word 0x0000791c <== NOT EXECUTED 7904: 00007924 .word 0x00007924 <== NOT EXECUTED 7908: 00007924 .word 0x00007924 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 790c: e5923008 ldr r3, [r2, #8] 7910: ea000004 b 7928 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 7914: e59f3018 ldr r3, [pc, #24] ; 7934 7918: ea000002 b 7928 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 791c: e59f3014 ldr r3, [pc, #20] ; 7938 <== NOT EXECUTED 7920: ea000000 b 7928 <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 7924: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 7928: e5803004 str r3, [r0, #4] break; } return 0; } 792c: e3a00000 mov r0, #0 ; 0x0 7930: e12fff1e bx lr 7934: 00014510 .word 0x00014510 7938: 00014548 .word 0x00014548 0001a300 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 1a300: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 1a304: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 1a308: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 1a30c: e1c413bc strh r1, [r4, #60] <== NOT EXECUTED jnode->st_gid = group; 1a310: e1c423be strh r2, [r4, #62] <== NOT EXECUTED IMFS_update_ctime( jnode ); 1a314: e1a0000d mov r0, sp <== NOT EXECUTED 1a318: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1a31c: ebffa6c2 bl 3e2c <== NOT EXECUTED 1a320: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 1a324: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 1a328: e5843048 str r3, [r4, #72] <== NOT EXECUTED return 0; } 1a32c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1a330: e8bd8010 pop {r4, pc} <== NOT EXECUTED 0000a000 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} IMFS_jnode_t *node; struct timeval tv; IMFS_jnode_t *parent = NULL; IMFS_fs_info_t *fs_info; if ( parent_loc != NULL ) a004: e2508000 subs r8, r0, #0 ; 0x0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a008: e24dd008 sub sp, sp, #8 ; 0x8 a00c: e1a0a001 mov sl, r1 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); a010: e3a00001 mov r0, #1 ; 0x1 a014: e3a01060 mov r1, #96 ; 0x60 IMFS_jnode_t *node; struct timeval tv; IMFS_jnode_t *parent = NULL; IMFS_fs_info_t *fs_info; if ( parent_loc != NULL ) a018: 01a06008 moveq r6, r8 parent = parent_loc->node_access; a01c: 15986000 ldrne r6, [r8] IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a020: e1a05002 mov r5, r2 a024: e1a09003 mov r9, r3 a028: e59d7028 ldr r7, [sp, #40] /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); a02c: ebfff94f bl 8570 if ( !node ) a030: e2504000 subs r4, r0, #0 ; 0x0 a034: 0a000047 beq a158 /* * Fill in the basic information */ node->st_nlink = 1; a038: e3a03001 mov r3, #1 ; 0x1 node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); a03c: e3a02020 mov r2, #32 ; 0x20 a040: e1a01005 mov r1, r5 /* * Fill in the basic information */ node->st_nlink = 1; a044: e1c433b4 strh r3, [r4, #52] node->type = type; a048: e584a04c str sl, [r4, #76] strncpy( node->name, name, IMFS_NAME_MAX ); a04c: e284000c add r0, r4, #12 ; 0xc a050: eb000731 bl bd1c /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; a054: e59f3108 ldr r3, [pc, #264] ; a164 a058: e5933000 ldr r3, [r3] a05c: e5933024 ldr r3, [r3, #36] a060: e1c93003 bic r3, r9, r3 a064: e5843030 str r3, [r4, #48] #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; a068: e3a03000 mov r3, #0 ; 0x0 a06c: e1c433bc strh r3, [r4, #60] node->st_gid = 0; a070: e1c433be strh r3, [r4, #62] /* * Now set all the times. */ gettimeofday( &tv, 0 ); a074: e1a0000d mov r0, sp a078: e3a01000 mov r1, #0 ; 0x0 a07c: ebfff9d6 bl 87dc node->stat_atime = (time_t) tv.tv_sec; a080: e59d3000 ldr r3, [sp] /* * Set the type specific information */ switch (type) { a084: e24a2001 sub r2, sl, #1 ; 0x1 gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; a088: e5843048 str r3, [r4, #72] * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; a08c: e5843040 str r3, [r4, #64] node->stat_mtime = (time_t) tv.tv_sec; a090: e5843044 str r3, [r4, #68] /* * Set the type specific information */ switch (type) { a094: e3520005 cmp r2, #5 ; 0x5 a098: 979ff102 ldrls pc, [pc, r2, lsl #2] a09c: ea00001c b a114 <== NOT EXECUTED a0a0: 0000a0b8 .word 0x0000a0b8 <== NOT EXECUTED a0a4: 0000a0e0 .word 0x0000a0e0 <== NOT EXECUTED a0a8: 0000a0d4 .word 0x0000a0d4 <== NOT EXECUTED a0ac: 0000a0d4 .word 0x0000a0d4 <== NOT EXECUTED a0b0: 0000a0fc .word 0x0000a0fc <== NOT EXECUTED a0b4: 0000a0f0 .word 0x0000a0f0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a0b8: e2843054 add r3, r4, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); a0bc: e2842050 add r2, r4, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a0c0: e5843050 str r3, [r4, #80] the_chain->permanent_null = NULL; a0c4: e3a03000 mov r3, #0 ; 0x0 a0c8: e5843054 str r3, [r4, #84] the_chain->last = _Chain_Head(the_chain); a0cc: e5842058 str r2, [r4, #88] a0d0: ea000014 b a128 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; a0d4: e5973000 ldr r3, [r7] <== NOT EXECUTED a0d8: e5843050 str r3, [r4, #80] <== NOT EXECUTED a0dc: ea000011 b a128 <== NOT EXECUTED break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; a0e0: e897000c ldm r7, {r2, r3} a0e4: e5843054 str r3, [r4, #84] case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; a0e8: e5842050 str r2, [r4, #80] a0ec: ea00000d b a128 node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; a0f0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.linearfile.direct = 0; a0f4: e5843054 str r3, [r4, #84] <== 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; a0f8: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; a0fc: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; a100: e584305c str r3, [r4, #92] <== NOT EXECUTED case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; a104: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.file.indirect = 0; a108: e5843054 str r3, [r4, #84] <== NOT EXECUTED node->info.file.doubly_indirect = 0; a10c: e5843058 str r3, [r4, #88] <== NOT EXECUTED a110: ea000004 b a128 <== NOT EXECUTED node->info.file.triply_indirect = 0; break; default: assert(0); a114: e59f004c ldr r0, [pc, #76] ; a168 <== NOT EXECUTED a118: e3a01074 mov r1, #116 ; 0x74 <== NOT EXECUTED a11c: e59f2048 ldr r2, [pc, #72] ; a16c <== NOT EXECUTED a120: e59f3048 ldr r3, [pc, #72] ; a170 <== NOT EXECUTED a124: ebfff8b8 bl 840c <__assert_func> <== NOT EXECUTED /* * If this node has a parent, then put it in that directory list. */ if ( parent ) { a128: e3560000 cmp r6, #0 ; 0x0 a12c: 0a000009 beq a158 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); a130: e2860050 add r0, r6, #80 ; 0x50 a134: e1a01004 mov r1, r4 a138: ebffeaf7 bl 4d1c <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; fs_info = parent_loc->mt_entry->fs_info; a13c: e598300c ldr r3, [r8, #12] a140: e593202c ldr r2, [r3, #44] node->st_ino = ++fs_info->ino_count; a144: e5923000 ldr r3, [r2] a148: e2833001 add r3, r3, #1 ; 0x1 a14c: e5823000 str r3, [r2] * If this node has a parent, then put it in that directory list. */ if ( parent ) { rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; a150: e5846008 str r6, [r4, #8] fs_info = parent_loc->mt_entry->fs_info; node->st_ino = ++fs_info->ino_count; a154: e5843038 str r3, [r4, #56] } return node; } a158: e1a00004 mov r0, r4 a15c: e28dd008 add sp, sp, #8 ; 0x8 a160: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} a164: 00013dc8 .word 0x00013dc8 a168: 00014e3b .word 0x00014e3b a16c: 00014694 .word 0x00014694 a170: 00014b97 .word 0x00014b97 00007a98 : int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 7a98: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 7a9c: e24dd038 sub sp, sp, #56 ; 0x38 7aa0: e1a05002 mov r5, r2 7aa4: e1a08000 mov r8, r0 7aa8: e1a0a001 mov sl, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 7aac: e5924000 ldr r4, [r2] 7ab0: e3a07000 mov r7, #0 ; 0x0 7ab4: e3a06001 mov r6, #1 ; 0x1 * 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], token, &len ); 7ab8: e28d9003 add r9, sp, #3 ; 0x3 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 7abc: e59fb1f4 ldr fp, [pc, #500] ; 7cb8 7ac0: ea000057 b 7c24 * 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], token, &len ); 7ac4: e28d2034 add r2, sp, #52 ; 0x34 7ac8: e0880007 add r0, r8, r7 7acc: e1a01009 mov r1, r9 7ad0: eb000156 bl 8030 i += len; if ( !pathloc->node_access ) 7ad4: e5952000 ldr r2, [r5] 7ad8: e3520000 cmp r2, #0 ; 0x0 * 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], token, &len ); 7adc: e1a06000 mov r6, r0 i += len; 7ae0: e59de034 ldr lr, [sp, #52] if ( !pathloc->node_access ) 7ae4: 0a000046 beq 7c04 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 7ae8: e3500000 cmp r0, #0 ; 0x0 7aec: 0a000005 beq 7b08 if ( node->type == IMFS_DIRECTORY ) 7af0: e594304c ldr r3, [r4, #76] 7af4: e3530001 cmp r3, #1 ; 0x1 7af8: 1a000002 bne 7b08 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 7afc: e5923030 ldr r3, [r2, #48] 7b00: e3130040 tst r3, #64 ; 0x40 7b04: 0a000067 beq 7ca8 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 7b08: e3560003 cmp r6, #3 ; 0x3 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], token, &len ); i += len; 7b0c: e087700e add r7, r7, lr 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; 7b10: e1a04002 mov r4, r2 switch( type ) { 7b14: 0a000018 beq 7b7c 7b18: e3560004 cmp r6, #4 ; 0x4 7b1c: 0a00003d beq 7c18 7b20: e3560002 cmp r6, #2 ; 0x2 7b24: 1a00003e bne 7c24 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 7b28: e59b3000 ldr r3, [fp] <== NOT EXECUTED 7b2c: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 7b30: e1520003 cmp r2, r3 <== NOT EXECUTED 7b34: 0a00003a beq 7c24 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 7b38: e595100c ldr r1, [r5, #12] <== NOT EXECUTED 7b3c: e5913018 ldr r3, [r1, #24] <== NOT EXECUTED 7b40: e1520003 cmp r2, r3 <== NOT EXECUTED 7b44: 1a000005 bne 7b60 <== 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; 7b48: e2813008 add r3, r1, #8 ; 0x8 <== NOT EXECUTED 7b4c: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 7b50: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 7b54: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); 7b58: e06ec007 rsb ip, lr, r7 <== NOT EXECUTED 7b5c: ea00003f b 7c60 <== NOT EXECUTED } } else { if ( !node->Parent ) 7b60: e5924008 ldr r4, [r2, #8] <== NOT EXECUTED 7b64: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 7b68: 1a000028 bne 7c10 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 7b6c: eb000b0d bl a7a8 <__errno> <== NOT EXECUTED 7b70: e5806000 str r6, [r0] <== NOT EXECUTED 7b74: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 7b78: ea000048 b 7ca0 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 7b7c: e592304c ldr r3, [r2, #76] 7b80: e3530003 cmp r3, #3 ; 0x3 7b84: 1a000006 bne 7ba4 IMFS_evaluate_hard_link( pathloc, 0 ); 7b88: e1a00005 mov r0, r5 <== NOT EXECUTED 7b8c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 7b90: ebffff71 bl 795c <== NOT EXECUTED node = pathloc->node_access; 7b94: e5954000 ldr r4, [r5] <== NOT EXECUTED if ( !node ) 7b98: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 7b9c: 1a000009 bne 7bc8 <== NOT EXECUTED 7ba0: ea00000b b 7bd4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 7ba4: e3530004 cmp r3, #4 ; 0x4 7ba8: 1a000006 bne 7bc8 result = IMFS_evaluate_sym_link( pathloc, 0 ); 7bac: e1a00005 mov r0, r5 <== NOT EXECUTED 7bb0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 7bb4: ebffff81 bl 79c0 <== NOT EXECUTED node = pathloc->node_access; if ( result == -1 ) 7bb8: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 7bbc: e5953000 ldr r3, [r5] <== NOT EXECUTED if ( result == -1 ) 7bc0: 0a000036 beq 7ca0 <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 7bc4: e1a04003 mov r4, r3 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 7bc8: e594304c ldr r3, [r4, #76] 7bcc: e3530001 cmp r3, #1 ; 0x1 7bd0: 0a000002 beq 7be0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 7bd4: eb000af3 bl a7a8 <__errno> <== NOT EXECUTED 7bd8: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 7bdc: ea000033 b 7cb0 <== NOT EXECUTED /* * 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 ) { 7be0: e594305c ldr r3, [r4, #92] 7be4: e3530000 cmp r3, #0 ; 0x0 newloc = node->info.directory.mt_fs->mt_fs_root; 7be8: 12833018 addne r3, r3, #24 ; 0x18 7bec: 1a000016 bne 7c4c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 7bf0: e1a00004 mov r0, r4 7bf4: e1a01009 mov r1, r9 7bf8: eb0000e4 bl 7f90 if ( !node ) 7bfc: e2504000 subs r4, r0, #0 ; 0x0 7c00: 1a000002 bne 7c10 rtems_set_errno_and_return_minus_one( ENOENT ); 7c04: eb000ae7 bl a7a8 <__errno> <== NOT EXECUTED 7c08: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 7c0c: ea000027 b 7cb0 <== NOT EXECUTED /* * Set the node access to the point we have found. */ pathloc->node_access = node; 7c10: e5854000 str r4, [r5] 7c14: ea000002 b 7c24 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 7c18: eb000ae2 bl a7a8 <__errno> <== NOT EXECUTED 7c1c: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 7c20: ea000022 b 7cb0 <== NOT EXECUTED /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 7c24: e3560000 cmp r6, #0 ; 0x0 7c28: 13560004 cmpne r6, #4 ; 0x4 7c2c: 1affffa4 bne 7ac4 * 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 ) { 7c30: e594304c ldr r3, [r4, #76] 7c34: e3530001 cmp r3, #1 ; 0x1 7c38: 1a000010 bne 7c80 if ( node->info.directory.mt_fs != NULL ) { 7c3c: e594005c ldr r0, [r4, #92] 7c40: e3500000 cmp r0, #0 ; 0x0 7c44: 0a00000d beq 7c80 newloc = node->info.directory.mt_fs->mt_fs_root; 7c48: e2803018 add r3, r0, #24 ; 0x18 <== NOT EXECUTED 7c4c: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 7c50: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 7c54: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 7c58: e59dc034 ldr ip, [sp, #52] <== NOT EXECUTED 7c5c: e06cc007 rsb ip, ip, r7 <== NOT EXECUTED */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 7c60: e885000f stm r5, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 7c64: e5923000 ldr r3, [r2] <== NOT EXECUTED 7c68: e088000c add r0, r8, ip <== NOT EXECUTED 7c6c: e1a0100a mov r1, sl <== NOT EXECUTED 7c70: e1a02005 mov r2, r5 <== NOT EXECUTED 7c74: e1a0e00f mov lr, pc <== NOT EXECUTED 7c78: e12fff13 bx r3 <== NOT EXECUTED 7c7c: ea000007 b 7ca0 <== NOT EXECUTED } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 7c80: e1a00005 mov r0, r5 7c84: ebffff12 bl 78d4 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 7c88: e5953000 ldr r3, [r5] 7c8c: e5933030 ldr r3, [r3, #48] 7c90: e1a0230a lsl r2, sl, #6 7c94: e0023003 and r3, r2, r3 7c98: e1530002 cmp r3, r2 7c9c: 1a000001 bne 7ca8 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 7ca0: e28dd038 add sp, sp, #56 ; 0x38 7ca4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 7ca8: eb000abe bl a7a8 <__errno> <== NOT EXECUTED 7cac: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 7cb0: e5803000 str r3, [r0] <== NOT EXECUTED 7cb4: eaffffae b 7b74 <== NOT EXECUTED 7cb8: 00013dc8 .word 0x00013dc8 00007d70 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 7d70: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 7d74: e5915000 ldr r5, [r1] int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 7d78: e24dd038 sub sp, sp, #56 ; 0x38 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 7d7c: e59fb208 ldr fp, [pc, #520] ; 7f8c int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 7d80: e1a04001 mov r4, r1 7d84: e1a07000 mov r7, r0 7d88: e1a08002 mov r8, r2 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 7d8c: e3a06000 mov r6, #0 ; 0x0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 7d90: e28da003 add sl, sp, #3 ; 0x3 7d94: e28d9034 add r9, sp, #52 ; 0x34 7d98: e1a02009 mov r2, r9 7d9c: e0870006 add r0, r7, r6 7da0: e1a0100a mov r1, sl 7da4: eb0000a1 bl 8030 i += len; if ( !pathloc->node_access ) 7da8: e5942000 ldr r2, [r4] 7dac: e3520000 cmp r2, #0 ; 0x0 */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 7db0: e59de034 ldr lr, [sp, #52] if ( !pathloc->node_access ) 7db4: 0a000059 beq 7f20 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 7db8: e3500000 cmp r0, #0 ; 0x0 7dbc: 0a000005 beq 7dd8 if ( node->type == IMFS_DIRECTORY ) 7dc0: e595304c ldr r3, [r5, #76] 7dc4: e3530001 cmp r3, #1 ; 0x1 7dc8: 1a000002 bne 7dd8 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 7dcc: e5923030 ldr r3, [r2, #48] 7dd0: e3130040 tst r3, #64 ; 0x40 7dd4: 0a000067 beq 7f78 */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 7dd8: e086600e add r6, r6, lr 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; 7ddc: e1a05002 mov r5, r2 switch( type ) { 7de0: e3500004 cmp r0, #4 ; 0x4 7de4: 979ff100 ldrls pc, [pc, r0, lsl #2] 7de8: eaffffea b 7d98 <== NOT EXECUTED 7dec: 00007ee4 .word 0x00007ee4 <== NOT EXECUTED 7df0: 00007d98 .word 0x00007d98 <== NOT EXECUTED 7df4: 00007e00 .word 0x00007e00 <== NOT EXECUTED 7df8: 00007e48 .word 0x00007e48 <== NOT EXECUTED 7dfc: 00007ef0 .word 0x00007ef0 <== 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 ) 7e00: e59b3000 ldr r3, [fp] <== NOT EXECUTED 7e04: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 7e08: e1520003 cmp r2, r3 <== NOT EXECUTED 7e0c: 0affffe1 beq 7d98 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 7e10: e594100c ldr r1, [r4, #12] <== NOT EXECUTED 7e14: e5913018 ldr r3, [r1, #24] <== NOT EXECUTED 7e18: e1520003 cmp r2, r3 <== NOT EXECUTED 7e1c: 1a000005 bne 7e38 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 7e20: e2813008 add r3, r1, #8 ; 0x8 <== NOT EXECUTED 7e24: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 7e28: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 7e2c: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 7e30: e06ec006 rsb ip, lr, r6 <== NOT EXECUTED 7e34: ea00001c b 7eac <== NOT EXECUTED } } else { if ( !node->Parent ) 7e38: e5925008 ldr r5, [r2, #8] <== NOT EXECUTED 7e3c: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 7e40: 1a000025 bne 7edc <== NOT EXECUTED 7e44: ea000035 b 7f20 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 7e48: e592304c ldr r3, [r2, #76] 7e4c: e3530003 cmp r3, #3 ; 0x3 7e50: 0a000001 beq 7e5c result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 7e54: e3530004 cmp r3, #4 ; 0x4 7e58: 1a000004 bne 7e70 result = IMFS_evaluate_link( pathloc, 0 ); 7e5c: e1a00004 mov r0, r4 <== NOT EXECUTED 7e60: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 7e64: ebffff94 bl 7cbc <== NOT EXECUTED if ( result == -1 ) 7e68: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 7e6c: 0a00003f beq 7f70 <== NOT EXECUTED return -1; } node = pathloc->node_access; 7e70: e5940000 ldr r0, [r4] if ( !node ) 7e74: e3500000 cmp r0, #0 ; 0x0 7e78: 0a000035 beq 7f54 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 7e7c: e590304c ldr r3, [r0, #76] 7e80: e3530001 cmp r3, #1 ; 0x1 7e84: 1a000032 bne 7f54 /* * 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 ) { 7e88: e590305c ldr r3, [r0, #92] 7e8c: e3530000 cmp r3, #0 ; 0x0 7e90: 0a00000d beq 7ecc newloc = node->info.directory.mt_fs->mt_fs_root; 7e94: e2833018 add r3, r3, #24 ; 0x18 <== NOT EXECUTED 7e98: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 7e9c: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 7ea0: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 7ea4: e59dc034 ldr ip, [sp, #52] <== NOT EXECUTED 7ea8: e06cc006 rsb ip, ip, r6 <== NOT EXECUTED * 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; *pathloc = newloc; 7eac: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 7eb0: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 7eb4: e087000c add r0, r7, ip <== NOT EXECUTED 7eb8: e1a01004 mov r1, r4 <== NOT EXECUTED 7ebc: e1a02008 mov r2, r8 <== NOT EXECUTED 7ec0: e1a0e00f mov lr, pc <== NOT EXECUTED 7ec4: e12fff13 bx r3 <== NOT EXECUTED 7ec8: ea000028 b 7f70 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 7ecc: e1a0100a mov r1, sl 7ed0: eb00002e bl 7f90 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 7ed4: e2505000 subs r5, r0, #0 ; 0x0 7ed8: 0a000007 beq 7efc done = true; else pathloc->node_access = node; 7edc: e5845000 str r5, [r4] 7ee0: eaffffac b 7d98 break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 7ee4: eb000a2f bl a7a8 <__errno> <== NOT EXECUTED 7ee8: e3a03011 mov r3, #17 ; 0x11 <== NOT EXECUTED 7eec: ea000023 b 7f80 <== NOT EXECUTED break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 7ef0: eb000a2c bl a7a8 <__errno> <== NOT EXECUTED 7ef4: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 7ef8: ea000020 b 7f80 <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 7efc: e59d3034 ldr r3, [sp, #52] 7f00: e0633006 rsb r3, r3, r6 7f04: e0873003 add r3, r7, r3 7f08: e5883000 str r3, [r8] 7f0c: e0870006 add r0, r7, r6 7f10: ea000005 b 7f2c * 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++) { if ( !IMFS_is_separator( path[ i ] ) ) 7f14: e352002f cmp r2, #47 ; 0x2f <== NOT EXECUTED 7f18: 1352005c cmpne r2, #92 ; 0x5c <== NOT EXECUTED 7f1c: 0a000002 beq 7f2c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 7f20: eb000a20 bl a7a8 <__errno> <== NOT EXECUTED 7f24: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 7f28: ea000014 b 7f80 <== NOT EXECUTED /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { 7f2c: e5d02000 ldrb r2, [r0] 7f30: e3520000 cmp r2, #0 ; 0x0 7f34: e2800001 add r0, r0, #1 ; 0x1 7f38: 1afffff5 bne 7f14 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 7f3c: e1a00004 mov r0, r4 7f40: ebfffe63 bl 78d4 /* * The returned node must be a directory */ node = pathloc->node_access; 7f44: e5941000 ldr r1, [r4] if ( node->type != IMFS_DIRECTORY ) 7f48: e591304c ldr r3, [r1, #76] 7f4c: e3530001 cmp r3, #1 ; 0x1 7f50: 0a000002 beq 7f60 rtems_set_errno_and_return_minus_one( ENOTDIR ); 7f54: eb000a13 bl a7a8 <__errno> <== NOT EXECUTED 7f58: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 7f5c: ea000007 b 7f80 <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 7f60: e5913030 ldr r3, [r1, #48] 7f64: e20330c0 and r3, r3, #192 ; 0xc0 7f68: e35300c0 cmp r3, #192 ; 0xc0 7f6c: 1a000001 bne 7f78 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 7f70: e28dd038 add sp, sp, #56 ; 0x38 7f74: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} */ 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 ); 7f78: eb000a0a bl a7a8 <__errno> <== NOT EXECUTED 7f7c: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 7f80: e5803000 str r3, [r0] <== NOT EXECUTED 7f84: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 7f88: eafffff8 b 7f70 <== NOT EXECUTED 7f8c: 00013dc8 .word 0x00013dc8 0000795c : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 795c: e5902000 ldr r2, [r0] <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 7960: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 7964: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 7968: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 796c: e1a04000 mov r4, r0 <== NOT EXECUTED 7970: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 7974: 159f0040 ldrne r0, [pc, #64] ; 79bc <== NOT EXECUTED 7978: 1bfff41e blne 49f8 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 797c: e5923050 ldr r3, [r2, #80] <== NOT EXECUTED 7980: e5803000 str r3, [r0] <== NOT EXECUTED IMFS_Set_handlers( node ); 7984: ebffffd2 bl 78d4 <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 7988: e5943000 ldr r3, [r4] <== NOT EXECUTED 798c: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 7990: e1a02305 lsl r2, r5, #6 <== NOT EXECUTED 7994: e0023003 and r3, r2, r3 <== NOT EXECUTED 7998: e1530002 cmp r3, r2 <== NOT EXECUTED 799c: 1a000001 bne 79a8 <== NOT EXECUTED 79a0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 79a4: e8bd8030 pop {r4, r5, pc} <== 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 ); 79a8: eb000b7e bl a7a8 <__errno> <== NOT EXECUTED 79ac: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 79b0: e5803000 str r3, [r0] <== NOT EXECUTED 79b4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 79b8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 79bc: abcd0000 .word 0xabcd0000 00007cbc : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 7cbc: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 7cc0: e59f70a4 ldr r7, [pc, #164] ; 7d6c <== NOT EXECUTED int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 7cc4: e1a04000 mov r4, r0 <== NOT EXECUTED 7cc8: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 7ccc: e5972000 ldr r2, [r7] <== NOT EXECUTED 7cd0: e1d232b8 ldrh r3, [r2, #40] <== NOT EXECUTED 7cd4: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 7cd8: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED 7cdc: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 7ce0: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 7ce4: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 7ce8: e5945000 ldr r5, [r4] <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 7cec: 9a000006 bls 7d0c <== NOT EXECUTED rtems_filesystem_link_counts = 0; 7cf0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 7cf4: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); 7cf8: eb000aaa bl a7a8 <__errno> <== NOT EXECUTED 7cfc: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED 7d00: e5803000 str r3, [r0] <== NOT EXECUTED 7d04: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 7d08: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 7d0c: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 7d10: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 7d14: 1a000003 bne 7d28 <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); 7d18: e1a00004 mov r0, r4 <== NOT EXECUTED 7d1c: e1a01006 mov r1, r6 <== NOT EXECUTED 7d20: ebffff0d bl 795c <== NOT EXECUTED 7d24: ea000004 b 7d3c <== NOT EXECUTED else if (jnode->type == IMFS_SYM_LINK ) 7d28: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 7d2c: 1a000004 bne 7d44 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); 7d30: e1a00004 mov r0, r4 <== NOT EXECUTED 7d34: e1a01006 mov r1, r6 <== NOT EXECUTED 7d38: ebffff20 bl 79c0 <== NOT EXECUTED } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 7d3c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 7d40: 1a000004 bne 7d58 <== NOT EXECUTED 7d44: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 7d48: e2433003 sub r3, r3, #3 ; 0x3 <== NOT EXECUTED 7d4c: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 7d50: 9affffdd bls 7ccc <== NOT EXECUTED 7d54: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 7d58: e59f300c ldr r3, [pc, #12] ; 7d6c <== NOT EXECUTED 7d5c: e5933000 ldr r3, [r3] <== NOT EXECUTED 7d60: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 7d64: e1c322b8 strh r2, [r3, #40] <== NOT EXECUTED return result; } 7d68: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 7d6c: 00013dc8 .word 0x00013dc8 0000793c : /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 793c: e5903000 ldr r3, [r0] <== NOT EXECUTED 7940: e5930030 ldr r0, [r3, #48] <== NOT EXECUTED 7944: e1a01301 lsl r1, r1, #6 <== NOT EXECUTED 7948: e0010000 and r0, r1, r0 <== NOT EXECUTED return 1; return 0; } 794c: e1500001 cmp r0, r1 <== NOT EXECUTED 7950: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 7954: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 7958: e12fff1e bx lr <== NOT EXECUTED 000079c0 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 79c0: e590c000 ldr ip, [r0] <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 79c4: e59c304c ldr r3, [ip, #76] <== NOT EXECUTED 79c8: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 79cc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 79d0: e1a04000 mov r4, r0 <== NOT EXECUTED 79d4: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 79d8: 159f00ac ldrne r0, [pc, #172] ; 7a8c <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 79dc: 1a000003 bne 79f0 <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 79e0: e59c3008 ldr r3, [ip, #8] <== NOT EXECUTED 79e4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 79e8: 1a000001 bne 79f4 <== NOT EXECUTED rtems_fatal_error_occurred( 0xBAD00000 ); 79ec: e59f009c ldr r0, [pc, #156] ; 7a90 <== NOT EXECUTED 79f0: ebfff400 bl 49f8 <== NOT EXECUTED /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 79f4: e5843000 str r3, [r4] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( 79f8: e59c3050 ldr r3, [ip, #80] <== NOT EXECUTED 79fc: e5d33000 ldrb r3, [r3] <== NOT EXECUTED 7a00: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 7a04: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 7a08: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 7a0c: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 7a10: 0a000002 beq 7a20 <== NOT EXECUTED 7a14: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 7a18: 11a03002 movne r3, r2 <== NOT EXECUTED 7a1c: 1a000005 bne 7a38 <== NOT EXECUTED 7a20: e59f306c ldr r3, [pc, #108] ; 7a94 <== NOT EXECUTED 7a24: e5933000 ldr r3, [r3] <== NOT EXECUTED 7a28: e2833014 add r3, r3, #20 ; 0x14 <== NOT EXECUTED 7a2c: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 7a30: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 7a34: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 7a38: e59c0050 ldr r0, [ip, #80] <== NOT EXECUTED 7a3c: e1a02004 mov r2, r4 <== NOT EXECUTED 7a40: e0800003 add r0, r0, r3 <== NOT EXECUTED 7a44: e1a01006 mov r1, r6 <== NOT EXECUTED 7a48: eb000012 bl 7a98 <== NOT EXECUTED 7a4c: e1a05000 mov r5, r0 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 7a50: e1a00004 mov r0, r4 <== NOT EXECUTED 7a54: ebffff9e bl 78d4 <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 7a58: e5943000 ldr r3, [r4] <== NOT EXECUTED 7a5c: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 7a60: e1a02306 lsl r2, r6, #6 <== NOT EXECUTED 7a64: e0023003 and r3, r2, r3 <== NOT EXECUTED 7a68: e1530002 cmp r3, r2 <== NOT EXECUTED 7a6c: 1a000001 bne 7a78 <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 7a70: e1a00005 mov r0, r5 <== NOT EXECUTED 7a74: e8bd8070 pop {r4, r5, r6, pc} <== 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 ); 7a78: eb000b4a bl a7a8 <__errno> <== NOT EXECUTED 7a7c: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 7a80: e5803000 str r3, [r0] <== NOT EXECUTED 7a84: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 7a88: eafffff8 b 7a70 <== NOT EXECUTED 7a8c: abcd0000 .word 0xabcd0000 7a90: bad00000 .word 0xbad00000 7a94: 00013dc8 .word 0x00013dc8 0000a174 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a174: e92d4030 push {r4, r5, lr} <== NOT EXECUTED #endif /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) a178: e3c14f7f bic r4, r1, #508 ; 0x1fc <== NOT EXECUTED a17c: e3c44003 bic r4, r4, #3 ; 0x3 <== NOT EXECUTED a180: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a184: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; a188: e5905000 ldr r5, [r0] <== NOT EXECUTED #endif /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) a18c: 0a000004 beq a1a4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); a190: eb000184 bl a7a8 <__errno> <== NOT EXECUTED a194: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED a198: e5803000 str r3, [r0] <== NOT EXECUTED a19c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED a1a0: ea00000a b a1d0 <== NOT EXECUTED jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; a1a4: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED a1a8: e3c33f7f bic r3, r3, #508 ; 0x1fc <== NOT EXECUTED a1ac: e3c33003 bic r3, r3, #3 ; 0x3 <== NOT EXECUTED a1b0: e1813003 orr r3, r1, r3 <== NOT EXECUTED a1b4: e5853030 str r3, [r5, #48] <== NOT EXECUTED IMFS_update_ctime( jnode ); a1b8: e1a0000d mov r0, sp <== NOT EXECUTED a1bc: e1a01004 mov r1, r4 <== NOT EXECUTED a1c0: ebfff985 bl 87dc <== NOT EXECUTED a1c4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a1c8: e5853048 str r3, [r5, #72] <== NOT EXECUTED a1cc: e1a00004 mov r0, r4 <== NOT EXECUTED return 0; } a1d0: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED a1d4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00026fa0 : int cmd, rtems_libio_t *iop ) { return 0; } 26fa0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 26fa4: e12fff1e bx lr <== NOT EXECUTED 00026fa8 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } 26fa8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 26fac: e12fff1e bx lr <== NOT EXECUTED 0001ab64 : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } 1ab64: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1ab68: e12fff1e bx lr <== NOT EXECUTED 0001ab6c : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 1ab6c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * 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; 1ab70: e1a03000 mov r3, r0 <== NOT EXECUTED 1ab74: e5b34018 ldr r4, [r3, #24]! <== NOT EXECUTED ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 1ab78: e1a0e000 mov lr, r0 <== NOT EXECUTED * 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; loc = temp_mt_entry->mt_fs_root; 1ab7c: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 1ab80: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED * 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; loc = temp_mt_entry->mt_fs_root; 1ab84: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 1ab88: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1ab8c: e58e3018 str r3, [lr, #24] <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 1ab90: e1a0500d mov r5, sp <== NOT EXECUTED 1ab94: e1a0000d mov r0, sp <== NOT EXECUTED temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; 1ab98: e58d4000 str r4, [sp] <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 1ab9c: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 1aba0: ebfffe40 bl 1a4a8 <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { 1aba4: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 1aba8: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 1abac: e2842054 add r2, r4, #84 ; 0x54 <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { 1abb0: 1a000002 bne 1abc0 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 1abb4: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 1abb8: e1530002 cmp r3, r2 <== NOT EXECUTED 1abbc: 1a000004 bne 1abd4 <== NOT EXECUTED result = IMFS_unlink( &loc ); 1abc0: e1a0000d mov r0, sp <== NOT EXECUTED 1abc4: ebffa2f0 bl 378c <== NOT EXECUTED if (result != 0) 1abc8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1abcc: 1a00000c bne 1ac04 <== NOT EXECUTED 1abd0: e1a04006 mov r4, r6 <== NOT EXECUTED return -1; jnode = next; } if ( jnode != NULL ) { 1abd4: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 1abd8: 0a00000b beq 1ac0c <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { 1abdc: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 1abe0: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 1abe4: 1affffea bne 1ab94 <== NOT EXECUTED if ( jnode_has_children( jnode ) ) 1abe8: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 1abec: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 1abf0: e1520003 cmp r2, r3 <== NOT EXECUTED 1abf4: 0affffe6 beq 1ab94 <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 1abf8: e2524000 subs r4, r2, #0 ; 0x0 <== NOT EXECUTED 1abfc: 1affffe4 bne 1ab94 <== NOT EXECUTED 1ac00: ea000001 b 1ac0c <== NOT EXECUTED 1ac04: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1ac08: ea000000 b 1ac10 <== NOT EXECUTED 1ac0c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 1ac10: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1ac14: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 00008030 : IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 8030: e92d4010 push {r4, lr} register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 8034: e3a0c000 mov ip, #0 ; 0x0 IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 8038: e1a04001 mov r4, r1 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 803c: e5d01000 ldrb r1, [r0] 8040: ea000006 b 8060 while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 8044: e35c0020 cmp ip, #32 ; 0x20 * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; 8048: e7c4100c strb r1, [r4, ip] return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 804c: e28cc001 add ip, ip, #1 ; 0x1 c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 8050: 1a000001 bne 805c 8054: e3a00004 mov r0, #4 ; 0x4 <== NOT EXECUTED 8058: e8bd8010 pop {r4, pc} <== NOT EXECUTED return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 805c: e7d0100c ldrb r1, [r0, ip] /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 8060: e351002f cmp r1, #47 ; 0x2f 8064: 1351005c cmpne r1, #92 ; 0x5c 8068: 0a000005 beq 8084 806c: e2513000 subs r3, r1, #0 ; 0x0 8070: 13a03001 movne r3, #1 ; 0x1 8074: e35c0020 cmp ip, #32 ; 0x20 8078: c3a03000 movgt r3, #0 ; 0x0 807c: e3530000 cmp r3, #0 ; 0x0 8080: 1affffef bne 8044 /* * Copy a seperator into token. */ if ( i == 0 ) { 8084: e35c0000 cmp ip, #0 ; 0x0 8088: 1a000004 bne 80a0 token[i] = c; if ( token[i] != '\0' ) { 808c: e3510000 cmp r1, #0 ; 0x0 8090: 128cc001 addne ip, ip, #1 ; 0x1 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 8094: e5c41000 strb r1, [r4] if ( token[i] != '\0' ) { 8098: e1a0000c mov r0, ip 809c: ea000005 b 80b8 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 80a0: e084300c add r3, r4, ip 80a4: e5533001 ldrb r3, [r3, #-1] 80a8: e3530000 cmp r3, #0 ; 0x0 token[i] = '\0'; 80ac: 13a03000 movne r3, #0 ; 0x0 80b0: 17c4300c strbne r3, [r4, ip] 80b4: e3a00003 mov r0, #3 ; 0x3 /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 80b8: e3500003 cmp r0, #3 ; 0x3 /* * Set token_len to the number of characters copied. */ *token_len = i; 80bc: e582c000 str ip, [r2] /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 80c0: 18bd8010 popne {r4, pc} if ( strcmp( token, "..") == 0 ) 80c4: e1a00004 mov r0, r4 80c8: e59f1028 ldr r1, [pc, #40] ; 80f8 80cc: eb000e83 bl bae0 80d0: e3500000 cmp r0, #0 ; 0x0 80d4: 02800002 addeq r0, r0, #2 ; 0x2 80d8: 08bd8010 popeq {r4, pc} type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 80dc: e1a00004 mov r0, r4 80e0: e59f1014 ldr r1, [pc, #20] ; 80fc 80e4: eb000e7d bl bae0 80e8: e3500000 cmp r0, #0 ; 0x0 80ec: 13a00003 movne r0, #3 ; 0x3 80f0: 03a00001 moveq r0, #1 ; 0x1 type = IMFS_CURRENT_DIR; } return type; } 80f4: e8bd8010 pop {r4, pc} 80f8: 00014b99 .word 0x00014b99 80fc: 00014b9a .word 0x00014b9a 0000340c : int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 340c: e59f1008 ldr r1, [pc, #8] ; 341c <== NOT EXECUTED 3410: e59f2008 ldr r2, [pc, #8] ; 3420 <== NOT EXECUTED 3414: e59f3008 ldr r3, [pc, #8] ; 3424 <== NOT EXECUTED 3418: ea000002 b 3428 <== NOT EXECUTED 341c: 0003cac4 .word 0x0003cac4 3420: 0003ce88 .word 0x0003ce88 3424: 0003ce18 .word 0x0003ce18 00008100 : 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 ) { 8100: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 8104: e59fc0e4 ldr ip, [pc, #228] ; 81f0 8108: e59cc000 ldr ip, [ip] 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 ) { 810c: e1a07003 mov r7, r3 8110: e24dd004 sub sp, sp, #4 ; 0x4 8114: e1a05000 mov r5, r0 8118: e1a08001 mov r8, r1 811c: e1a0a002 mov sl, r2 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 8120: e3a0e010 mov lr, #16 ; 0x10 8124: e3a03000 mov r3, #0 ; 0x0 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 8128: e15e000c cmp lr, ip bit_mask <<= 1) { 812c: e2833001 add r3, r3, #1 ; 0x1 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 8130: 0a000003 beq 8144 8134: e3530006 cmp r3, #6 ; 0x6 bit_mask <<= 1) { 8138: e1a0e08e lsl lr, lr, #1 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 813c: 1afffff9 bne 8128 8140: e3a0e080 mov lr, #128 ; 0x80 <== NOT EXECUTED bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 8144: e59fc0a8 ldr ip, [pc, #168] ; 81f4 * 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_node( 8148: e3a06000 mov r6, #0 ; 0x0 bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 814c: e58ce000 str lr, [ip] * 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_node( 8150: e3a01001 mov r1, #1 ; 0x1 8154: e59f209c ldr r2, [pc, #156] ; 81f8 8158: e59f309c ldr r3, [pc, #156] ; 81fc 815c: e1a00006 mov r0, r6 8160: e58d6000 str r6, [sp] 8164: eb0007a5 bl a000 NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 8168: e59f3090 ldr r3, [pc, #144] ; 8200 816c: e1a04003 mov r4, r3 * 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_node( 8170: e5850018 str r0, [r5, #24] NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 8174: e8b4000f ldm r4!, {r0, r1, r2, r3} 8178: e285c030 add ip, r5, #48 ; 0x30 817c: e8ac000f stmia ip!, {r0, r1, r2, r3} 8180: e8b4000f ldm r4!, {r0, r1, r2, r3} 8184: e8ac000f stmia ip!, {r0, r1, r2, r3} 8188: e894000f ldm r4, {r0, r1, r2, r3} ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; 818c: e5858020 str r8, [r5, #32] temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 8190: e88c000f stm ip, {r0, r1, r2, r3} "", ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 8194: e585701c str r7, [r5, #28] temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 8198: e3a00001 mov r0, #1 ; 0x1 819c: e3a0100c mov r1, #12 ; 0xc 81a0: eb0000f2 bl 8570 if ( !fs_info ){ 81a4: e3500000 cmp r0, #0 ; 0x0 81a8: 1a000006 bne 81c8 free(temp_mt_entry->mt_fs_root.node_access); 81ac: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 81b0: eb00012b bl 8664 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 81b4: eb00097b bl a7a8 <__errno> <== NOT EXECUTED 81b8: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 81bc: e5803000 str r3, [r0] <== NOT EXECUTED 81c0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 81c4: ea000007 b 81e8 <== NOT EXECUTED fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 81c8: e5952018 ldr r2, [r5, #24] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 81cc: e3a03001 mov r3, #1 ; 0x1 81d0: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 81d4: e5823038 str r3, [r2, #56] * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 81d8: e5807008 str r7, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 81dc: e580a004 str sl, [r0, #4] fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ){ free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); } temp_mt_entry->fs_info = fs_info; 81e0: e585002c str r0, [r5, #44] fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 81e4: e1a00006 mov r0, r6 return 0; } 81e8: e28dd004 add sp, sp, #4 ; 0x4 81ec: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 81f0: 000137f8 .word 0x000137f8 81f4: 0001519c .word 0x0001519c 81f8: 00014bbb .word 0x00014bbb 81fc: 000041ed .word 0x000041ed 8200: 00014664 .word 0x00014664 0000352c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 352c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 3530: e5903000 ldr r3, [r0] <== NOT EXECUTED int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 3534: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 3538: e58d3028 str r3, [sp, #40] <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 353c: e1d333b4 ldrh r3, [r3, #52] <== NOT EXECUTED 3540: e3530007 cmp r3, #7 ; 0x7 <== NOT EXECUTED int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 3544: e1a05001 mov r5, r1 <== NOT EXECUTED 3548: e1a00002 mov r0, r2 <== 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 ) 354c: 9a000002 bls 355c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EMLINK ); 3550: eb0097e3 bl 294e4 <__errno> <== NOT EXECUTED 3554: e3a0301f mov r3, #31 ; 0x1f <== NOT EXECUTED 3558: ea00000e b 3598 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, new_name, &i ); 355c: e28d4007 add r4, sp, #7 ; 0x7 <== NOT EXECUTED 3560: e1a01004 mov r1, r4 <== NOT EXECUTED 3564: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 3568: ebffff73 bl 333c <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 356c: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 3570: e1a00005 mov r0, r5 <== NOT EXECUTED 3574: e1a02004 mov r2, r4 <== NOT EXECUTED 3578: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 357c: e59f3054 ldr r3, [pc, #84] ; 35d8 <== NOT EXECUTED 3580: e58dc000 str ip, [sp] <== NOT EXECUTED 3584: eb005b6a bl 1a334 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 3588: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 358c: 1a000004 bne 35a4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 3590: eb0097d3 bl 294e4 <__errno> <== NOT EXECUTED 3594: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3598: e5803000 str r3, [r0] <== NOT EXECUTED 359c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 35a0: ea00000a b 35d0 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 35a4: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED 35a8: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED 35ac: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 35b0: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 35b4: e28d0038 add r0, sp, #56 ; 0x38 <== NOT EXECUTED 35b8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 35bc: eb00021a bl 3e2c <== NOT EXECUTED 35c0: e59d2038 ldr r2, [sp, #56] <== NOT EXECUTED 35c4: e59d3028 ldr r3, [sp, #40] <== NOT EXECUTED 35c8: e5832048 str r2, [r3, #72] <== NOT EXECUTED 35cc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 35d0: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 35d4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 35d8: 0000a1ff .word 0x0000a1ff 00021808 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 21808: e2503000 subs r3, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 2180c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 21810: 059f0060 ldreq r0, [pc, #96] ; 21878 <== NOT EXECUTED 21814: 059f1060 ldreq r1, [pc, #96] ; 2187c <== NOT EXECUTED 21818: 059f2060 ldreq r2, [pc, #96] ; 21880 <== NOT EXECUTED 2181c: 059f3060 ldreq r3, [pc, #96] ; 21884 <== NOT EXECUTED 21820: 0a000006 beq 21840 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 21824: e593304c ldr r3, [r3, #76] <== NOT EXECUTED 21828: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 2182c: 0a000004 beq 21844 <== NOT EXECUTED 21830: e59f0040 ldr r0, [pc, #64] ; 21878 <== NOT EXECUTED 21834: e59f104c ldr r1, [pc, #76] ; 21888 <== NOT EXECUTED 21838: e59f2040 ldr r2, [pc, #64] ; 21880 <== NOT EXECUTED 2183c: e59f3048 ldr r3, [pc, #72] ; 2188c <== NOT EXECUTED 21840: ebffe58f bl 1ae84 <__assert_func> <== NOT EXECUTED 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 ); 21844: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 21848: ebfffeab bl 212fc <== NOT EXECUTED if ( *block_entry_ptr ) 2184c: e5905000 ldr r5, [r0] <== NOT EXECUTED 21850: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); 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 ); 21854: e1a04000 mov r4, r0 <== NOT EXECUTED if ( *block_entry_ptr ) 21858: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 2185c: 18bd8030 popne {r4, r5, pc} <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 21860: ebfffe98 bl 212c8 <== NOT EXECUTED if ( !memory ) 21864: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 21868: 15840000 strne r0, [r4] <== NOT EXECUTED fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 2186c: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 21870: 11a00005 movne r0, r5 <== NOT EXECUTED return 0; } 21874: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 21878: 000402ee .word 0x000402ee 2187c: 00000169 .word 0x00000169 21880: 0003d09d .word 0x0003d09d 21884: 00040337 .word 0x00040337 21888: 0000016d .word 0x0000016d 2188c: 00040341 .word 0x00040341 00021890 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 21890: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 21894: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 21898: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2189c: 059f00f8 ldreq r0, [pc, #248] ; 2199c <== NOT EXECUTED 218a0: 059f10f8 ldreq r1, [pc, #248] ; 219a0 <== NOT EXECUTED 218a4: 059f20f8 ldreq r2, [pc, #248] ; 219a4 <== NOT EXECUTED 218a8: 059f30f8 ldreq r3, [pc, #248] ; 219a8 <== NOT EXECUTED 218ac: 0a000006 beq 218cc <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 218b0: e597304c ldr r3, [r7, #76] <== NOT EXECUTED 218b4: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 218b8: 0a000004 beq 218d0 <== NOT EXECUTED 218bc: e59f00d8 ldr r0, [pc, #216] ; 2199c <== NOT EXECUTED 218c0: e59f10e4 ldr r1, [pc, #228] ; 219ac <== NOT EXECUTED 218c4: e59f20d8 ldr r2, [pc, #216] ; 219a4 <== NOT EXECUTED 218c8: e59f30e0 ldr r3, [pc, #224] ; 219b0 <== NOT EXECUTED 218cc: ebffe56c bl 1ae84 <__assert_func> <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 218d0: e59f30dc ldr r3, [pc, #220] ; 219b4 <== NOT EXECUTED 218d4: e5934000 ldr r4, [r3] <== NOT EXECUTED 218d8: e1a02124 lsr r2, r4, #2 <== NOT EXECUTED 218dc: e2823001 add r3, r2, #1 ; 0x1 <== NOT EXECUTED 218e0: e0030392 mul r3, r2, r3 <== NOT EXECUTED 218e4: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 218e8: e0030392 mul r3, r2, r3 <== NOT EXECUTED 218ec: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 218f0: e0030394 mul r3, r4, r3 <== NOT EXECUTED 218f4: e1510003 cmp r1, r3 <== NOT EXECUTED 218f8: 3a000002 bcc 21908 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 218fc: eb001ef8 bl 294e4 <__errno> <== NOT EXECUTED 21900: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 21904: ea00001b b 21978 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 21908: e5975050 ldr r5, [r7, #80] <== NOT EXECUTED 2190c: e1510005 cmp r1, r5 <== NOT EXECUTED 21910: d3a00000 movle r0, #0 ; 0x0 <== NOT EXECUTED 21914: d8bd81f0 pople {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 21918: e1a00001 mov r0, r1 <== NOT EXECUTED 2191c: e1a01004 mov r1, r4 <== NOT EXECUTED 21920: eb005fb5 bl 397fc <__aeabi_idiv> <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 21924: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 21928: e1a08000 mov r8, r0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 2192c: e1a00005 mov r0, r5 <== NOT EXECUTED 21930: eb005fb1 bl 397fc <__aeabi_idiv> <== NOT EXECUTED 21934: e1a05000 mov r5, r0 <== NOT EXECUTED 21938: e1a04000 mov r4, r0 <== NOT EXECUTED 2193c: ea000011 b 21988 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { 21940: e1a00007 mov r0, r7 <== NOT EXECUTED 21944: e1a01004 mov r1, r4 <== NOT EXECUTED 21948: ebffffae bl 21808 <== NOT EXECUTED 2194c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21950: 0a00000b beq 21984 <== NOT EXECUTED 21954: ea000003 b 21968 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 21958: e1a01004 mov r1, r4 <== NOT EXECUTED 2195c: e1a00007 mov r0, r7 <== NOT EXECUTED 21960: ebfffef4 bl 21538 <== 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-- ) { 21964: e2444001 sub r4, r4, #1 ; 0x1 <== NOT EXECUTED 21968: e1540005 cmp r4, r5 <== NOT EXECUTED 2196c: 2afffff9 bcs 21958 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 21970: eb001edb bl 294e4 <__errno> <== NOT EXECUTED 21974: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 21978: e5803000 str r3, [r0] <== NOT EXECUTED 2197c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 21980: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 21984: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED 21988: e1540008 cmp r4, r8 <== NOT EXECUTED 2198c: 9affffeb bls 21940 <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 21990: e5876050 str r6, [r7, #80] <== NOT EXECUTED 21994: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 21998: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 2199c: 000402ee .word 0x000402ee 219a0: 00000131 .word 0x00000131 219a4: 0003d0b3 .word 0x0003d0b3 219a8: 00040337 .word 0x00040337 219ac: 00000135 .word 0x00000135 219b0: 00040341 .word 0x00040341 219b4: 0004209c .word 0x0004209c 000212fc : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 212fc: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 21300: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 21304: e1a04001 mov r4, r1 <== NOT EXECUTED 21308: e1a08002 mov r8, r2 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2130c: 059f0208 ldreq r0, [pc, #520] ; 2151c <== NOT EXECUTED 21310: 059f1208 ldreq r1, [pc, #520] ; 21520 <== NOT EXECUTED 21314: 059f2208 ldreq r2, [pc, #520] ; 21524 <== NOT EXECUTED 21318: 059f3208 ldreq r3, [pc, #520] ; 21528 <== NOT EXECUTED 2131c: 0a000006 beq 2133c <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 21320: e597304c ldr r3, [r7, #76] <== NOT EXECUTED 21324: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 21328: 0a000004 beq 21340 <== NOT EXECUTED 2132c: e59f01e8 ldr r0, [pc, #488] ; 2151c <== NOT EXECUTED 21330: e59f11f4 ldr r1, [pc, #500] ; 2152c <== NOT EXECUTED 21334: e59f21e8 ldr r2, [pc, #488] ; 21524 <== NOT EXECUTED 21338: e59f31f0 ldr r3, [pc, #496] ; 21530 <== NOT EXECUTED 2133c: ebffe6d0 bl 1ae84 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 21340: e59f31ec ldr r3, [pc, #492] ; 21534 <== NOT EXECUTED 21344: e5933000 ldr r3, [r3] <== NOT EXECUTED 21348: e1a05123 lsr r5, r3, #2 <== NOT EXECUTED 2134c: e2453001 sub r3, r5, #1 ; 0x1 <== NOT EXECUTED 21350: e1510003 cmp r1, r3 <== NOT EXECUTED 21354: 8a00000f bhi 21398 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 21358: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 2135c: e5970054 ldr r0, [r7, #84] <== NOT EXECUTED if ( malloc_it ) { 21360: 0a000008 beq 21388 <== NOT EXECUTED if ( !p ) { 21364: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21368: 1a000003 bne 2137c <== NOT EXECUTED p = memfile_alloc_block(); 2136c: ebffffd5 bl 212c8 <== NOT EXECUTED if ( !p ) 21370: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21374: 0a000066 beq 21514 <== NOT EXECUTED return 0; info->indirect = p; 21378: e5870054 str r0, [r7, #84] <== NOT EXECUTED } return &info->indirect[ my_block ]; 2137c: e5973054 ldr r3, [r7, #84] <== NOT EXECUTED 21380: e0830104 add r0, r3, r4, lsl #2 <== NOT EXECUTED 21384: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if ( !p ) 21388: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 0; return &info->indirect[ my_block ]; 2138c: 10800101 addne r0, r0, r1, lsl #2 <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 21390: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 21394: ea00005e b 21514 <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 21398: e2853001 add r3, r5, #1 ; 0x1 <== NOT EXECUTED 2139c: e0000395 mul r0, r5, r3 <== NOT EXECUTED 213a0: e2403001 sub r3, r0, #1 ; 0x1 <== NOT EXECUTED 213a4: e1510003 cmp r1, r3 <== NOT EXECUTED 213a8: 8a000022 bhi 21438 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 213ac: e0654001 rsb r4, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 213b0: e1a00004 mov r0, r4 <== NOT EXECUTED 213b4: e1a01005 mov r1, r5 <== NOT EXECUTED 213b8: eb00615f bl 3993c <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 213bc: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 213c0: e1a06000 mov r6, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 213c4: e1a00004 mov r0, r4 <== NOT EXECUTED 213c8: eb0060c7 bl 396ec <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 213cc: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 213d0: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->doubly_indirect; 213d4: e5970058 ldr r0, [r7, #88] <== NOT EXECUTED if ( malloc_it ) { 213d8: 0a00000f beq 2141c <== NOT EXECUTED if ( !p ) { 213dc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 213e0: 1a000003 bne 213f4 <== NOT EXECUTED p = memfile_alloc_block(); 213e4: ebffffb7 bl 212c8 <== NOT EXECUTED if ( !p ) 213e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 213ec: 0a000048 beq 21514 <== NOT EXECUTED return 0; info->doubly_indirect = p; 213f0: e5870058 str r0, [r7, #88] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 213f4: e7901104 ldr r1, [r0, r4, lsl #2] <== NOT EXECUTED if ( !p1 ) { 213f8: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 213fc: e0804104 add r4, r0, r4, lsl #2 <== NOT EXECUTED if ( !p1 ) { 21400: 1a000003 bne 21414 <== NOT EXECUTED p1 = memfile_alloc_block(); 21404: ebffffaf bl 212c8 <== NOT EXECUTED if ( !p1 ) 21408: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 2140c: 0a000040 beq 21514 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 21410: e5841000 str r1, [r4] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 21414: e0810106 add r0, r1, r6, lsl #2 <== NOT EXECUTED 21418: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if ( !p ) 2141c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21420: 0a00003b beq 21514 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 21424: e7900104 ldr r0, [r0, r4, lsl #2] <== NOT EXECUTED if ( !p ) 21428: e3500000 cmp r0, #0 ; 0x0 <== 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 ]; 2142c: 10800106 addne r0, r0, r6, lsl #2 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 21430: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 21434: ea000036 b 21514 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 21438: e2803001 add r3, r0, #1 ; 0x1 <== NOT EXECUTED 2143c: e0030395 mul r3, r5, r3 <== NOT EXECUTED 21440: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 21444: e1510003 cmp r1, r3 <== NOT EXECUTED 21448: 8a000031 bhi 21514 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 2144c: e0604001 rsb r4, r0, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 21450: e1a00004 mov r0, r4 <== NOT EXECUTED 21454: e1a01005 mov r1, r5 <== NOT EXECUTED 21458: eb006137 bl 3993c <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2145c: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 21460: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 21464: e1a00004 mov r0, r4 <== NOT EXECUTED 21468: eb00609f bl 396ec <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 2146c: e1a01005 mov r1, r5 <== NOT EXECUTED if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 21470: e1a04000 mov r4, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 21474: eb00609c bl 396ec <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 21478: e1a01005 mov r1, r5 <== NOT EXECUTED if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 2147c: e1a06000 mov r6, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 21480: e1a00004 mov r0, r4 <== NOT EXECUTED 21484: eb00612c bl 3993c <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 21488: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 2148c: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; 21490: e597005c ldr r0, [r7, #92] <== NOT EXECUTED if ( malloc_it ) { 21494: 0a000017 beq 214f8 <== NOT EXECUTED if ( !p ) { 21498: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2149c: 1a000003 bne 214b0 <== NOT EXECUTED p = memfile_alloc_block(); 214a0: ebffff88 bl 212c8 <== NOT EXECUTED if ( !p ) 214a4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 214a8: 0a000019 beq 21514 <== NOT EXECUTED return 0; info->triply_indirect = p; 214ac: e587005c str r0, [r7, #92] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 214b0: e7903106 ldr r3, [r0, r6, lsl #2] <== NOT EXECUTED if ( !p1 ) { 214b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 214b8: e0804106 add r4, r0, r6, lsl #2 <== NOT EXECUTED if ( !p1 ) { 214bc: 1a000003 bne 214d0 <== NOT EXECUTED p1 = memfile_alloc_block(); 214c0: ebffff80 bl 212c8 <== NOT EXECUTED if ( !p1 ) 214c4: e2503000 subs r3, r0, #0 ; 0x0 <== NOT EXECUTED 214c8: 0a000011 beq 21514 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 214cc: e5843000 str r3, [r4] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 214d0: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED if ( !p2 ) { 214d4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 214d8: e0834105 add r4, r3, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { 214dc: 1a000003 bne 214f0 <== NOT EXECUTED p2 = memfile_alloc_block(); 214e0: ebffff78 bl 212c8 <== NOT EXECUTED if ( !p2 ) 214e4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 214e8: 0a000009 beq 21514 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 214ec: e5840000 str r0, [r4] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 214f0: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED 214f4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if ( !p ) 214f8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 214fc: 0a000004 beq 21514 <== 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 ]; 21500: e7900106 ldr r0, [r0, r6, lsl #2] <== NOT EXECUTED if ( !p1 ) 21504: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 21508: 17903105 ldrne r3, [r0, r5, lsl #2] <== NOT EXECUTED 2150c: 1083010a addne r0, r3, sl, lsl #2 <== 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 ]; if ( !p1 ) 21510: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 21514: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 21518: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 2151c: 000402ee .word 0x000402ee 21520: 00000386 .word 0x00000386 21524: 0003d028 .word 0x0003d028 21528: 00040337 .word 0x00040337 2152c: 0000038a .word 0x0000038a 21530: 00040341 .word 0x00040341 21534: 0004209c .word 0x0004209c 00021d3c : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 21d3c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 21d40: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 21d44: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 21d48: e1a06001 mov r6, r1 <== NOT EXECUTED 21d4c: e1a08002 mov r8, r2 <== NOT EXECUTED 21d50: e1a00003 mov r0, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 21d54: 059f0204 ldreq r0, [pc, #516] ; 21f60 <== NOT EXECUTED 21d58: 059f1204 ldreq r1, [pc, #516] ; 21f64 <== NOT EXECUTED 21d5c: 059f2204 ldreq r2, [pc, #516] ; 21f68 <== NOT EXECUTED 21d60: 059f3204 ldreq r3, [pc, #516] ; 21f6c <== NOT EXECUTED 21d64: 0a000007 beq 21d88 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 21d68: e59a204c ldr r2, [sl, #76] <== NOT EXECUTED 21d6c: e2423005 sub r3, r2, #5 ; 0x5 <== NOT EXECUTED 21d70: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 21d74: 9a000004 bls 21d8c <== NOT EXECUTED 21d78: e59f01e0 ldr r0, [pc, #480] ; 21f60 <== NOT EXECUTED 21d7c: e59f11ec ldr r1, [pc, #492] ; 21f70 <== NOT EXECUTED 21d80: e59f21e0 ldr r2, [pc, #480] ; 21f68 <== NOT EXECUTED 21d84: e59f31e8 ldr r3, [pc, #488] ; 21f74 <== NOT EXECUTED 21d88: ebffe43d bl 1ae84 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 21d8c: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 21d90: 059f01c8 ldreq r0, [pc, #456] ; 21f60 <== NOT EXECUTED 21d94: 03a01f96 moveq r1, #600 ; 0x258 <== NOT EXECUTED 21d98: 059f21c8 ldreq r2, [pc, #456] ; 21f68 <== NOT EXECUTED 21d9c: 059f31d4 ldreq r3, [pc, #468] ; 21f78 <== NOT EXECUTED 21da0: 0afffff8 beq 21d88 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 21da4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21da8: 1a000004 bne 21dc0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 21dac: eb001dcc bl 294e4 <__errno> <== NOT EXECUTED 21db0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 21db4: e5803000 str r3, [r0] <== NOT EXECUTED 21db8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 21dbc: ea000065 b 21f58 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 21dc0: e3520006 cmp r2, #6 ; 0x6 <== NOT EXECUTED 21dc4: 1a00000f bne 21e08 <== NOT EXECUTED unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 21dc8: e59a4050 ldr r4, [sl, #80] <== NOT EXECUTED 21dcc: e0614004 rsb r4, r1, r4 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 21dd0: e59a1054 ldr r1, [sl, #84] <== 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)) 21dd4: e1540000 cmp r4, r0 <== NOT EXECUTED 21dd8: 21a04000 movcs r4, r0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 21ddc: e0811006 add r1, r1, r6 <== NOT EXECUTED 21de0: e1a02004 mov r2, r4 <== NOT EXECUTED 21de4: e1a00008 mov r0, r8 <== NOT EXECUTED 21de8: eb002735 bl 2bac4 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 21dec: e1a0000d mov r0, sp <== NOT EXECUTED 21df0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 21df4: ebff880c bl 3e2c <== NOT EXECUTED 21df8: e59d3000 ldr r3, [sp] <== NOT EXECUTED return my_length; 21dfc: e1a00004 mov r0, r4 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); IMFS_update_atime( the_jnode ); 21e00: e58a3040 str r3, [sl, #64] <== NOT EXECUTED 21e04: ea000053 b 21f58 <== 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 ) 21e08: e59a2050 ldr r2, [sl, #80] <== NOT EXECUTED 21e0c: e0803001 add r3, r0, r1 <== NOT EXECUTED 21e10: e1530002 cmp r3, r2 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 21e14: e59f3160 ldr r3, [pc, #352] ; 21f7c <== NOT EXECUTED 21e18: e5934000 ldr r4, [r3] <== 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 ) 21e1c: 91a07000 movls r7, r0 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 21e20: 80617002 rsbhi r7, r1, r2 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 21e24: e1a00001 mov r0, r1 <== NOT EXECUTED 21e28: e1a01004 mov r1, r4 <== NOT EXECUTED 21e2c: eb005ef5 bl 39a08 <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 21e30: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 21e34: e1a05000 mov r5, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 21e38: e1a00006 mov r0, r6 <== NOT EXECUTED 21e3c: eb005e6e bl 397fc <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 21e40: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 21e44: e1a06000 mov r6, r0 <== NOT EXECUTED if ( start_offset ) { 21e48: 0a000013 beq 21e9c <== NOT EXECUTED 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 ); 21e4c: e1a01006 mov r1, r6 <== NOT EXECUTED 21e50: e1a0000a mov r0, sl <== NOT EXECUTED 21e54: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 21e58: ebfffd27 bl 212fc <== NOT EXECUTED assert( block_ptr ); 21e5c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21e60: 059f00f8 ldreq r0, [pc, #248] ; 21f60 <== NOT EXECUTED 21e64: 03a01fa5 moveq r1, #660 ; 0x294 <== NOT EXECUTED 21e68: 0a00002c beq 21f20 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 21e6c: e5901000 ldr r1, [r0] <== 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; 21e70: e0654004 rsb r4, r5, r4 <== NOT EXECUTED 21e74: e1570004 cmp r7, r4 <== NOT EXECUTED 21e78: 31a04007 movcc r4, r7 <== NOT EXECUTED 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 ); 21e7c: e0811005 add r1, r1, r5 <== NOT EXECUTED 21e80: e1a00008 mov r0, r8 <== NOT EXECUTED 21e84: e1a02004 mov r2, r4 <== NOT EXECUTED 21e88: eb00270d bl 2bac4 <== NOT EXECUTED dest += to_copy; 21e8c: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; 21e90: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 21e94: e0647007 rsb r7, r4, r7 <== NOT EXECUTED 21e98: e1a05004 mov r5, r4 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 21e9c: e59f30d8 ldr r3, [pc, #216] ; 21f7c <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 21ea0: e1a09003 mov r9, r3 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 21ea4: e5934000 ldr r4, [r3] <== NOT EXECUTED 21ea8: ea00000f b 21eec <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 21eac: e1a0000a mov r0, sl <== NOT EXECUTED 21eb0: e1a01006 mov r1, r6 <== NOT EXECUTED 21eb4: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 21eb8: ebfffd0f bl 212fc <== NOT EXECUTED assert( block_ptr ); 21ebc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21ec0: 059f0098 ldreq r0, [pc, #152] ; 21f60 <== NOT EXECUTED 21ec4: 059f10b4 ldreq r1, [pc, #180] ; 21f80 <== NOT EXECUTED 21ec8: 0a000014 beq 21f20 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 21ecc: e5901000 ldr r1, [r0] <== NOT EXECUTED 21ed0: e1a02004 mov r2, r4 <== NOT EXECUTED 21ed4: e1a00008 mov r0, r8 <== NOT EXECUTED 21ed8: eb0026f9 bl 2bac4 <== NOT EXECUTED dest += to_copy; 21edc: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; 21ee0: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 21ee4: e0647007 rsb r7, r4, r7 <== NOT EXECUTED copied += to_copy; 21ee8: e0855004 add r5, r5, r4 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 21eec: e5993000 ldr r3, [r9] <== NOT EXECUTED 21ef0: e1570003 cmp r7, r3 <== NOT EXECUTED 21ef4: 2affffec bcs 21eac <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 21ef8: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 21efc: 0a00000f beq 21f40 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 21f00: e1a01006 mov r1, r6 <== NOT EXECUTED 21f04: e1a0000a mov r0, sl <== NOT EXECUTED 21f08: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 21f0c: ebfffcfa bl 212fc <== NOT EXECUTED assert( block_ptr ); 21f10: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 21f14: 1a000004 bne 21f2c <== NOT EXECUTED 21f18: e59f0040 ldr r0, [pc, #64] ; 21f60 <== NOT EXECUTED 21f1c: e59f1060 ldr r1, [pc, #96] ; 21f84 <== NOT EXECUTED 21f20: e59f2040 ldr r2, [pc, #64] ; 21f68 <== NOT EXECUTED 21f24: e59f305c ldr r3, [pc, #92] ; 21f88 <== NOT EXECUTED 21f28: eaffff96 b 21d88 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 21f2c: e1a00008 mov r0, r8 <== NOT EXECUTED 21f30: e5911000 ldr r1, [r1] <== NOT EXECUTED 21f34: e1a02007 mov r2, r7 <== NOT EXECUTED 21f38: eb0026e1 bl 2bac4 <== NOT EXECUTED copied += my_length; 21f3c: e0875005 add r5, r7, r5 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); 21f40: e1a0000d mov r0, sp <== NOT EXECUTED 21f44: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 21f48: ebff87b7 bl 3e2c <== NOT EXECUTED 21f4c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 21f50: e58a3040 str r3, [sl, #64] <== NOT EXECUTED return copied; 21f54: e1a00005 mov r0, r5 <== NOT EXECUTED } 21f58: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 21f5c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 21f60: 000402ee .word 0x000402ee 21f64: 0000024a .word 0x0000024a 21f68: 0003d05a .word 0x0003d05a 21f6c: 00040337 .word 0x00040337 21f70: 0000024f .word 0x0000024f 21f74: 000403a4 .word 0x000403a4 21f78: 000403ef .word 0x000403ef 21f7c: 0004209c .word 0x0004209c 21f80: 000002a5 .word 0x000002a5 21f84: 000002b7 .word 0x000002b7 21f88: 00040371 .word 0x00040371 000215dc : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 215dc: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 215e0: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 215e4: 059f0130 ldreq r0, [pc, #304] ; 2171c <== NOT EXECUTED 215e8: 03a01f7b moveq r1, #492 ; 0x1ec <== NOT EXECUTED 215ec: 059f212c ldreq r2, [pc, #300] ; 21720 <== NOT EXECUTED 215f0: 059f312c ldreq r3, [pc, #300] ; 21724 <== NOT EXECUTED 215f4: 0a000006 beq 21614 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 215f8: e596304c ldr r3, [r6, #76] <== NOT EXECUTED 215fc: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 21600: 0a000004 beq 21618 <== NOT EXECUTED 21604: e59f0110 ldr r0, [pc, #272] ; 2171c <== NOT EXECUTED 21608: e59f2110 ldr r2, [pc, #272] ; 21720 <== NOT EXECUTED 2160c: e59f3114 ldr r3, [pc, #276] ; 21728 <== NOT EXECUTED 21610: e3a01e1f mov r1, #496 ; 0x1f0 <== NOT EXECUTED 21614: ebffe61a bl 1ae84 <__assert_func> <== NOT EXECUTED /* * 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; 21618: e59f210c ldr r2, [pc, #268] ; 2172c <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 2161c: e5963054 ldr r3, [r6, #84] <== NOT EXECUTED /* * 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; 21620: e5922000 ldr r2, [r2] <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 21624: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED /* * 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; 21628: e1a08122 lsr r8, r2, #2 <== NOT EXECUTED */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 2162c: 12860054 addne r0, r6, #84 ; 0x54 <== NOT EXECUTED 21630: 11a01008 movne r1, r8 <== NOT EXECUTED 21634: 1bffffc9 blne 21560 <== NOT EXECUTED } if ( info->doubly_indirect ) { 21638: e5963058 ldr r3, [r6, #88] <== NOT EXECUTED 2163c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 21640: 13a04000 movne r4, #0 ; 0x0 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { 21648: 1a000008 bne 21670 <== NOT EXECUTED 2164c: ea00000d b 21688 <== NOT EXECUTED for ( i=0 ; idoubly_indirect[i] ) { 21650: e5960058 ldr r0, [r6, #88] <== NOT EXECUTED 21654: e7903104 ldr r3, [r0, r4, lsl #2] <== NOT EXECUTED 21658: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2165c: e1a03104 lsl r3, r4, #2 <== NOT EXECUTED memfile_free_blocks_in_table( 21660: 10800003 addne r0, r0, r3 <== NOT EXECUTED 21664: 11a01008 movne r1, r8 <== NOT EXECUTED 21668: 1bffffbc blne 21560 <== 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 ); 2167c: e2860058 add r0, r6, #88 ; 0x58 <== NOT EXECUTED 21680: e1a01008 mov r1, r8 <== NOT EXECUTED 21684: ebffffb5 bl 21560 <== NOT EXECUTED } if ( info->triply_indirect ) { 21688: e596305c ldr r3, [r6, #92] <== NOT EXECUTED 2168c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 21690: 13a07000 movne r7, #0 ; 0x0 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED } memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { 21698: 1a000017 bne 216fc <== NOT EXECUTED 2169c: ea00001c b 21714 <== NOT EXECUTED for ( i=0 ; itriply_indirect[i]; 216a0: e596305c ldr r3, [r6, #92] <== NOT EXECUTED 216a4: e7930107 ldr r0, [r3, r7, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 216a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED } memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { 216ac: e1a0a107 lsl sl, r7, #2 <== NOT EXECUTED for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ 216b0: 0a000014 beq 21708 <== NOT EXECUTED break; 216b4: e1a04000 mov r4, r0 <== NOT EXECUTED 216b8: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 216bc: ea000006 b 216dc <== NOT EXECUTED for ( j=0 ; j <== 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( 216e8: e596005c ldr r0, [r6, #92] <== NOT EXECUTED 216ec: e1a01008 mov r1, r8 <== NOT EXECUTED 216f0: e080000a add r0, r0, sl <== NOT EXECUTED 216f4: ebffff99 bl 21560 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 21708: e286005c add r0, r6, #92 ; 0x5c <== NOT EXECUTED 2170c: e1a01008 mov r1, r8 <== NOT EXECUTED 21710: ebffff92 bl 21560 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 21714: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 21718: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 2171c: 000402ee .word 0x000402ee 21720: 0003d06c .word 0x0003d06c 21724: 00040337 .word 0x00040337 21728: 00040341 .word 0x00040341 2172c: 0004209c .word 0x0004209c 00021538 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 21538: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED block_p *block_entry_ptr; block_p ptr; block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 2153c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 21540: ebffff6d bl 212fc <== NOT EXECUTED ptr = *block_entry_ptr; 21544: e5902000 ldr r2, [r0] <== NOT EXECUTED *block_entry_ptr = 0; 21548: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 2154c: e5803000 str r3, [r0] <== NOT EXECUTED memfile_free_block( ptr ); 21550: e1a00002 mov r0, r2 <== NOT EXECUTED 21554: ebffff53 bl 212a8 <== NOT EXECUTED return 1; } 21558: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 2155c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00021a68 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 21a68: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 21a6c: e2509000 subs r9, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 21a70: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 21a74: e1a05001 mov r5, r1 <== NOT EXECUTED 21a78: e1a08002 mov r8, r2 <== NOT EXECUTED 21a7c: e1a0a003 mov sl, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 21a80: 059f01d4 ldreq r0, [pc, #468] ; 21c5c <== NOT EXECUTED 21a84: 059f11d4 ldreq r1, [pc, #468] ; 21c60 <== NOT EXECUTED 21a88: 059f21d4 ldreq r2, [pc, #468] ; 21c64 <== NOT EXECUTED 21a8c: 059f31d4 ldreq r3, [pc, #468] ; 21c68 <== NOT EXECUTED 21a90: 0a000006 beq 21ab0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 21a94: e599304c ldr r3, [r9, #76] <== NOT EXECUTED 21a98: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 21a9c: 0a000004 beq 21ab4 <== NOT EXECUTED 21aa0: e59f01b4 ldr r0, [pc, #436] ; 21c5c <== NOT EXECUTED 21aa4: e59f11c0 ldr r1, [pc, #448] ; 21c6c <== NOT EXECUTED 21aa8: e59f21b4 ldr r2, [pc, #436] ; 21c64 <== NOT EXECUTED 21aac: e59f31bc ldr r3, [pc, #444] ; 21c70 <== NOT EXECUTED 21ab0: ebffe4f3 bl 1ae84 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 21ab4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 21ab8: 059f019c ldreq r0, [pc, #412] ; 21c5c <== NOT EXECUTED 21abc: 059f11b0 ldreq r1, [pc, #432] ; 21c74 <== NOT EXECUTED 21ac0: 059f219c ldreq r2, [pc, #412] ; 21c64 <== NOT EXECUTED 21ac4: 059f31ac ldreq r3, [pc, #428] ; 21c78 <== NOT EXECUTED 21ac8: 0afffff8 beq 21ab0 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 21acc: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED 21ad0: 1a000002 bne 21ae0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 21ad4: eb001e82 bl 294e4 <__errno> <== NOT EXECUTED 21ad8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 21adc: ea000008 b 21b04 <== NOT EXECUTED * 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 ) { 21ae0: e5993050 ldr r3, [r9, #80] <== NOT EXECUTED /* * 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; 21ae4: e08a1001 add r1, sl, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { 21ae8: e1510003 cmp r1, r3 <== NOT EXECUTED 21aec: 9a000007 bls 21b10 <== NOT EXECUTED status = IMFS_memfile_extend( the_jnode, last_byte ); 21af0: ebffff66 bl 21890 <== NOT EXECUTED if ( status ) 21af4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21af8: 0a000004 beq 21b10 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 21afc: eb001e78 bl 294e4 <__errno> <== NOT EXECUTED 21b00: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 21b04: e5803000 str r3, [r0] <== NOT EXECUTED 21b08: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 21b0c: ea00004f b 21c50 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 21b10: e59f3164 ldr r3, [pc, #356] ; 21c7c <== NOT EXECUTED 21b14: e5934000 ldr r4, [r3] <== NOT EXECUTED 21b18: e1a00005 mov r0, r5 <== NOT EXECUTED 21b1c: e1a01004 mov r1, r4 <== NOT EXECUTED 21b20: eb005fb8 bl 39a08 <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 21b24: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 21b28: e1a06000 mov r6, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 21b2c: e1a00005 mov r0, r5 <== NOT EXECUTED 21b30: eb005f31 bl 397fc <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 21b34: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 21b38: e1a07000 mov r7, r0 <== NOT EXECUTED if ( start_offset ) { 21b3c: 01a0500a moveq r5, sl <== NOT EXECUTED 21b40: 01a04006 moveq r4, r6 <== NOT EXECUTED 21b44: 0a000012 beq 21b94 <== NOT EXECUTED 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 ); 21b48: e1a00009 mov r0, r9 <== NOT EXECUTED 21b4c: e1a01007 mov r1, r7 <== NOT EXECUTED 21b50: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 21b54: ebfffde8 bl 212fc <== NOT EXECUTED assert( block_ptr ); 21b58: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21b5c: 059f00f8 ldreq r0, [pc, #248] ; 21c5c <== NOT EXECUTED 21b60: 059f1118 ldreq r1, [pc, #280] ; 21c80 <== NOT EXECUTED 21b64: 0a00002b beq 21c18 <== NOT EXECUTED 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 ); 21b68: e5900000 ldr r0, [r0] <== 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; 21b6c: e0664004 rsb r4, r6, r4 <== NOT EXECUTED 21b70: e154000a cmp r4, sl <== NOT EXECUTED 21b74: 21a0400a movcs r4, sl <== NOT EXECUTED 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 ); 21b78: e1a01008 mov r1, r8 <== NOT EXECUTED 21b7c: e0800006 add r0, r0, r6 <== NOT EXECUTED 21b80: e1a02004 mov r2, r4 <== NOT EXECUTED 21b84: eb0027ce bl 2bac4 <== NOT EXECUTED src += to_copy; 21b88: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; 21b8c: e2877001 add r7, r7, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 21b90: e064500a rsb r5, r4, sl <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 21b94: e59f30e0 ldr r3, [pc, #224] ; 21c7c <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 21b98: e1a0a003 mov sl, r3 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 21b9c: e5936000 ldr r6, [r3] <== NOT EXECUTED 21ba0: ea00000f b 21be4 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 21ba4: e1a00009 mov r0, r9 <== NOT EXECUTED 21ba8: e1a01007 mov r1, r7 <== NOT EXECUTED 21bac: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 21bb0: ebfffdd1 bl 212fc <== NOT EXECUTED assert( block_ptr ); 21bb4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21bb8: 059f009c ldreq r0, [pc, #156] ; 21c5c <== NOT EXECUTED 21bbc: 059f10c0 ldreq r1, [pc, #192] ; 21c84 <== NOT EXECUTED 21bc0: 0a000014 beq 21c18 <== NOT EXECUTED 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 ); 21bc4: e1a01008 mov r1, r8 <== NOT EXECUTED 21bc8: e5900000 ldr r0, [r0] <== NOT EXECUTED 21bcc: e1a02006 mov r2, r6 <== NOT EXECUTED 21bd0: eb0027bb bl 2bac4 <== NOT EXECUTED src += to_copy; 21bd4: e0888006 add r8, r8, r6 <== NOT EXECUTED block++; 21bd8: e2877001 add r7, r7, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 21bdc: e0665005 rsb r5, r6, r5 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 21be0: e0844006 add r4, r4, r6 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 21be4: e59a3000 ldr r3, [sl] <== NOT EXECUTED 21be8: e1550003 cmp r5, r3 <== NOT EXECUTED 21bec: 2affffec bcs 21ba4 <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 21bf0: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 21bf4: 0a00000f beq 21c38 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 21bf8: e1a01007 mov r1, r7 <== NOT EXECUTED 21bfc: e1a00009 mov r0, r9 <== NOT EXECUTED 21c00: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 21c04: ebfffdbc bl 212fc <== NOT EXECUTED assert( block_ptr ); 21c08: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21c0c: 1a000004 bne 21c24 <== NOT EXECUTED 21c10: e59f0044 ldr r0, [pc, #68] ; 21c5c <== NOT EXECUTED 21c14: e3a01fd1 mov r1, #836 ; 0x344 <== NOT EXECUTED 21c18: e59f2044 ldr r2, [pc, #68] ; 21c64 <== NOT EXECUTED 21c1c: e59f3064 ldr r3, [pc, #100] ; 21c88 <== NOT EXECUTED 21c20: eaffffa2 b 21ab0 <== NOT EXECUTED 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 ); 21c24: e5900000 ldr r0, [r0] <== NOT EXECUTED 21c28: e1a01008 mov r1, r8 <== NOT EXECUTED 21c2c: e1a02005 mov r2, r5 <== NOT EXECUTED 21c30: eb0027a3 bl 2bac4 <== NOT EXECUTED my_length = 0; copied += to_copy; 21c34: e0844005 add r4, r4, r5 <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); 21c38: e1a0000d mov r0, sp <== NOT EXECUTED 21c3c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 21c40: ebff8879 bl 3e2c <== NOT EXECUTED 21c44: e59d3000 ldr r3, [sp] <== NOT EXECUTED 21c48: e5893040 str r3, [r9, #64] <== NOT EXECUTED 21c4c: e5893044 str r3, [r9, #68] <== NOT EXECUTED return copied; } 21c50: e1a00004 mov r0, r4 <== NOT EXECUTED 21c54: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 21c58: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 21c5c: 000402ee .word 0x000402ee 21c60: 000002e1 .word 0x000002e1 21c64: 0003d047 .word 0x0003d047 21c68: 00040337 .word 0x00040337 21c6c: 000002e5 .word 0x000002e5 21c70: 00040341 .word 0x00040341 21c74: 02ed .short 0x02ed 21c76: 00 .byte 0x00 21c77: 00 .byte 0x00 21c78: 0003ffac .word 0x0003ffac 21c7c: 0004209c .word 0x0004209c 21c80: 0000031a .word 0x0000031a 21c84: 0000032e .word 0x0000032e 21c88: 00040371 .word 0x00040371 00008204 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 8204: e92d4070 push {r4, r5, r6, lr} 8208: e24dd03c sub sp, sp, #60 ; 0x3c 820c: e1a06001 mov r6, r1 8210: e1a05002 mov r5, r2 IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, new_name, &result ); 8214: e28d1007 add r1, sp, #7 ; 0x7 8218: e28d2038 add r2, sp, #56 ; 0x38 const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 821c: e1a04003 mov r4, r3 IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, new_name, &result ); 8220: ebffff82 bl 8030 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 8224: e2063a0f and r3, r6, #61440 ; 0xf000 8228: e3530901 cmp r3, #16384 ; 0x4000 822c: 0a00000b beq 8260 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 8230: e3530902 cmp r3, #32768 ; 0x8000 8234: 03a01005 moveq r1, #5 ; 0x5 8238: 0a000009 beq 8264 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 823c: e3530a02 cmp r3, #8192 ; 0x2000 8240: 13530a06 cmpne r3, #24576 ; 0x6000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 8244: 058d5028 streq r5, [sp, #40] 8248: 058d402c streq r4, [sp, #44] 824c: 03a01002 moveq r1, #2 ; 0x2 if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 8250: 0a000003 beq 8264 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else { rtems_set_errno_and_return_minus_one( EINVAL ); 8254: eb000953 bl a7a8 <__errno> <== NOT EXECUTED 8258: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 825c: ea00000b b 8290 <== NOT EXECUTED 8260: e3a01001 mov r1, #1 ; 0x1 /* * Allocate and fill in an IMFS jnode */ new_node = IMFS_create_node( 8264: e28dc028 add ip, sp, #40 ; 0x28 8268: e59d004c ldr r0, [sp, #76] 826c: e1a03006 mov r3, r6 8270: e28d2007 add r2, sp, #7 ; 0x7 8274: e58dc000 str ip, [sp] 8278: eb000760 bl a000 new_name, mode, &info ); if ( !new_node ) 827c: e3500000 cmp r0, #0 ; 0x0 8280: 13a00000 movne r0, #0 ; 0x0 8284: 1a000003 bne 8298 rtems_set_errno_and_return_minus_one( ENOMEM ); 8288: eb000946 bl a7a8 <__errno> <== NOT EXECUTED 828c: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 8290: e5803000 str r3, [r0] <== NOT EXECUTED 8294: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 8298: e28dd03c add sp, sp, #60 ; 0x3c 829c: e8bd8070 pop {r4, r5, r6, pc} 00003678 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 3678: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 367c: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 3680: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 3684: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 3688: 0a000004 beq 36a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 368c: eb009794 bl 294e4 <__errno> <== NOT EXECUTED 3690: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3694: e5803000 str r3, [r0] <== NOT EXECUTED 3698: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 369c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 36a0: e582005c str r0, [r2, #92] <== NOT EXECUTED 36a4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 36a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 000036b8 : ) { IMFS_jnode_t *node; int i; node = loc->node_access; 36b8: e590c000 ldr ip, [r0] <== NOT EXECUTED if ( node->type != IMFS_SYM_LINK ) 36bc: e59c304c ldr r3, [ip, #76] <== NOT EXECUTED 36c0: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 36c4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 36c8: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED 36cc: 0a000006 beq 36ec <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 36d0: eb009783 bl 294e4 <__errno> <== NOT EXECUTED 36d4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 36d8: e5803000 str r3, [r0] <== NOT EXECUTED 36dc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 36e0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 36e4: e7c13000 strb r3, [r1, r0] <== NOT EXECUTED 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++ ) 36e8: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 36ec: e1500002 cmp r0, r2 <== NOT EXECUTED 36f0: 249df004 popcs {pc} ; (ldrcs pc, [sp], #4) <== NOT EXECUTED 36f4: e59c3050 ldr r3, [ip, #80] <== NOT EXECUTED 36f8: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED 36fc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3700: 1afffff7 bne 36e4 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 3704: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 000082ac : */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 82ac: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 82b0: e5904000 ldr r4, [r0] <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 82b4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 82b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 82bc: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 82c0: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 82c4: 0a000003 beq 82d8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 82c8: e1a00004 mov r0, r4 <== NOT EXECUTED 82cc: eb00045c bl 9444 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 82d0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 82d4: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 82d8: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED 82dc: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 82e0: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 82e4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 82e8: e1a0000d mov r0, sp <== NOT EXECUTED 82ec: eb00013a bl 87dc <== NOT EXECUTED 82f0: e59d3000 ldr r3, [sp] <== NOT EXECUTED /* * 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) ) { 82f4: e1a00004 mov r0, r4 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; IMFS_update_ctime( the_jnode ); 82f8: e5843048 str r3, [r4, #72] <== NOT EXECUTED /* * 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) ) { 82fc: eb000162 bl 888c <== NOT EXECUTED 8300: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 8304: 1a000010 bne 834c <== NOT EXECUTED 8308: e1d403b4 ldrh r0, [r4, #52] <== NOT EXECUTED 830c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 8310: 1a00000d bne 834c <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 8314: e59f303c ldr r3, [pc, #60] ; 8358 <== NOT EXECUTED 8318: e5931000 ldr r1, [r3] <== NOT EXECUTED 831c: e5952000 ldr r2, [r5] <== NOT EXECUTED 8320: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED 8324: e1530002 cmp r3, r2 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 8328: e594304c ldr r3, [r4, #76] <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; 832c: 05810004 streq r0, [r1, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 8330: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 8334: 1a000002 bne 8344 <== NOT EXECUTED if ( the_jnode->info.sym_link.name ) 8338: e5940050 ldr r0, [r4, #80] <== NOT EXECUTED 833c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED free( (void*) the_jnode->info.sym_link.name ); 8340: 1b0000c7 blne 8664 <== NOT EXECUTED } free( the_jnode ); 8344: e1a00004 mov r0, r4 <== NOT EXECUTED 8348: eb0000c5 bl 8664 <== NOT EXECUTED } return 0; } 834c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 8350: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 8354: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 8358: 00013dc8 .word 0x00013dc8 0000835c : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 835c: e5900000 ldr r0, [r0] switch ( the_jnode->type ) { 8360: e590304c ldr r3, [r0, #76] 8364: e2433002 sub r3, r3, #2 ; 0x2 int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 8368: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 836c: e3530004 cmp r3, #4 ; 0x4 8370: 979ff103 ldrls pc, [pc, r3, lsl #2] 8374: ea00000d b 83b0 <== NOT EXECUTED 8378: 0000838c .word 0x0000838c <== NOT EXECUTED 837c: 000083b0 .word 0x000083b0 <== NOT EXECUTED 8380: 000083a4 .word 0x000083a4 <== NOT EXECUTED 8384: 0000839c .word 0x0000839c <== NOT EXECUTED 8388: 0000839c .word 0x0000839c <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); 838c: e2802050 add r2, r0, #80 ; 0x50 8390: e892000c ldm r2, {r2, r3} 8394: e881000c stm r1, {r2, r3} 8398: ea000009 b 83c4 break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 839c: e5903050 ldr r3, [r0, #80] <== NOT EXECUTED 83a0: ea000000 b 83a8 <== NOT EXECUTED break; case IMFS_SYM_LINK: buf->st_size = 0; 83a4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 83a8: e5813020 str r3, [r1, #32] <== NOT EXECUTED 83ac: ea000004 b 83c4 <== NOT EXECUTED break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 83b0: eb0008fc bl a7a8 <__errno> <== NOT EXECUTED 83b4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 83b8: e5803000 str r3, [r0] <== NOT EXECUTED 83bc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 83c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 83c4: e5903038 ldr r3, [r0, #56] 83c8: e5813008 str r3, [r1, #8] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 83cc: e5903040 ldr r3, [r0, #64] 83d0: e5813024 str r3, [r1, #36] buf->st_mtime = the_jnode->stat_mtime; 83d4: e5903044 ldr r3, [r0, #68] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 83d8: e1d0c3b4 ldrh ip, [r0, #52] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 83dc: e581302c str r3, [r1, #44] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 83e0: e1c1c1b0 strh ip, [r1, #16] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 83e4: e5903048 ldr r3, [r0, #72] 83e8: e5813034 str r3, [r1, #52] } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 83ec: e1d033bc ldrh r3, [r0, #60] 83f0: e1c131b2 strh r3, [r1, #18] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 83f4: e5902030 ldr r2, [r0, #48] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 83f8: e1d003be ldrh r0, [r0, #62] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 83fc: e581200c str r2, [r1, #12] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 8400: e1c101b4 strh r0, [r1, #20] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 8404: e3a00000 mov r0, #0 ; 0x0 return 0; } 8408: e49df004 pop {pc} ; (ldr pc, [sp], #4) 00003708 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 3708: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 370c: e24dd03c sub sp, sp, #60 ; 0x3c <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, new_name, &i ); 3710: e28d6007 add r6, sp, #7 ; 0x7 <== NOT EXECUTED int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 3714: e1a04001 mov r4, r1 <== NOT EXECUTED 3718: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, new_name, &i ); 371c: e1a01006 mov r1, r6 <== NOT EXECUTED 3720: e1a00002 mov r0, r2 <== NOT EXECUTED 3724: e28d2038 add r2, sp, #56 ; 0x38 <== NOT EXECUTED 3728: ebffff03 bl 333c <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 372c: e1a00004 mov r0, r4 <== NOT EXECUTED 3730: eb00ac42 bl 2e840 <== NOT EXECUTED if (info.sym_link.name == NULL) { 3734: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 3738: e58d0028 str r0, [sp, #40] <== NOT EXECUTED if (info.sym_link.name == NULL) { 373c: 0a00000b beq 3770 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 3740: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 3744: e1a00005 mov r0, r5 <== NOT EXECUTED 3748: e1a02006 mov r2, r6 <== NOT EXECUTED 374c: e3a01004 mov r1, #4 ; 0x4 <== NOT EXECUTED 3750: e59f3030 ldr r3, [pc, #48] ; 3788 <== NOT EXECUTED 3754: e58dc000 str ip, [sp] <== NOT EXECUTED 3758: eb005af5 bl 1a334 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 375c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3760: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3764: 1a000005 bne 3780 <== NOT EXECUTED free( info.sym_link.name); 3768: e59d0028 ldr r0, [sp, #40] <== NOT EXECUTED 376c: eb000186 bl 3d8c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 3770: eb00975b bl 294e4 <__errno> <== NOT EXECUTED 3774: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3778: e5803000 str r3, [r0] <== NOT EXECUTED 377c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 3780: e28dd03c add sp, sp, #60 ; 0x3c <== NOT EXECUTED 3784: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3788: 0000a1ff .word 0x0000a1ff 0000378c : #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 378c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 3790: e5906000 ldr r6, [r0] <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 3794: e596304c ldr r3, [r6, #76] <== NOT EXECUTED 3798: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 379c: e24dd018 sub sp, sp, #24 ; 0x18 <== NOT EXECUTED 37a0: e1a04000 mov r4, r0 <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 37a4: 1a000020 bne 382c <== NOT EXECUTED if ( !node->info.hard_link.link_node ) 37a8: e596c050 ldr ip, [r6, #80] <== NOT EXECUTED 37ac: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 37b0: 1a000003 bne 37c4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 37b4: eb00974a bl 294e4 <__errno> <== NOT EXECUTED 37b8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 37bc: e5803000 str r3, [r0] <== NOT EXECUTED 37c0: ea00000f b 3804 <== NOT EXECUTED the_link = *loc; 37c4: e890000f ldm r0, {r0, r1, r2, r3} <== NOT EXECUTED 37c8: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 37cc: e1a0000d mov r0, sp <== NOT EXECUTED if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; the_link.node_access = node->info.hard_link.link_node; 37d0: e58dc000 str ip, [sp] <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 37d4: eb005b33 bl 1a4a8 <== NOT EXECUTED /* * 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) 37d8: e5962050 ldr r2, [r6, #80] <== NOT EXECUTED 37dc: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED 37e0: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 37e4: e1a0500d mov r5, sp <== NOT EXECUTED /* * 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) 37e8: 1a000007 bne 380c <== NOT EXECUTED { result = (*the_link.handlers->rmnod_h)( &the_link ); 37ec: e1a0000d mov r0, sp <== NOT EXECUTED 37f0: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 37f4: e1a0e00f mov lr, pc <== NOT EXECUTED 37f8: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED if ( result != 0 ) 37fc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3800: 0a000009 beq 382c <== NOT EXECUTED 3804: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3808: ea00000b b 383c <== NOT EXECUTED return -1; } else { node->info.hard_link.link_node->st_nlink --; 380c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3810: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 3814: e28d0010 add r0, sp, #16 ; 0x10 <== NOT EXECUTED 3818: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 381c: eb000182 bl 3e2c <== NOT EXECUTED 3820: e5962050 ldr r2, [r6, #80] <== NOT EXECUTED 3824: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 3828: e5823048 str r3, [r2, #72] <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( loc ); 382c: e1a00004 mov r0, r4 <== NOT EXECUTED 3830: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 3834: e1a0e00f mov lr, pc <== NOT EXECUTED 3838: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED return result; } 383c: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED 3840: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 00003844 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 3844: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 3848: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 384c: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 3850: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 3854: 0a000002 beq 3864 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 3858: eb009721 bl 294e4 <__errno> <== NOT EXECUTED 385c: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3860: ea000004 b 3878 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 3864: e592305c ldr r3, [r2, #92] <== NOT EXECUTED 3868: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 386c: 1a000004 bne 3884 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 3870: eb00971b bl 294e4 <__errno> <== NOT EXECUTED 3874: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3878: e5803000 str r3, [r0] <== NOT EXECUTED 387c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3880: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * 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; 3884: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3888: e582305c str r3, [r2, #92] <== NOT EXECUTED 388c: e1a00003 mov r0, r3 <== NOT EXECUTED return 0; } 3890: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00003894 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 3894: e5903000 ldr r3, [r0] <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } 3898: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; 389c: e5832044 str r2, [r3, #68] <== NOT EXECUTED { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; 38a0: e5831040 str r1, [r3, #64] <== NOT EXECUTED the_jnode->stat_mtime = modtime; return 0; } 38a4: e12fff1e bx lr <== NOT EXECUTED 000014f4 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 14f4: e59f3094 ldr r3, [pc, #148] ; 1590 14f8: e5933000 ldr r3, [r3] 14fc: e3530000 cmp r3, #0 ; 0x0 void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 1500: e92d4070 push {r4, r5, r6, lr} 1504: e1a04000 mov r4, r0 1508: e1a05001 mov r5, r1 150c: e1a06002 mov r6, r2 /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->initialize)(); 1510: 11a0e00f movne lr, pc 1514: 1593f000 ldrne pc, [r3] /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 1518: eb001d80 bl 8b20 starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 151c: e59f3070 ldr r3, [pc, #112] ; 1594 1520: e5933000 ldr r3, [r3] 1524: e3530000 cmp r3, #0 ; 0x0 1528: 0a000004 beq 1540 starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 152c: e1a00004 mov r0, r4 <== NOT EXECUTED 1530: e1a01006 mov r1, r6 <== NOT EXECUTED 1534: e1a0e00f mov lr, pc <== NOT EXECUTED 1538: e593f000 ldr pc, [r3] <== NOT EXECUTED 153c: e1a04000 mov r4, r0 <== 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 ( rtems_configuration_get_do_zero_of_workspace() ) 1540: e59f3050 ldr r3, [pc, #80] ; 1598 1544: e5933000 ldr r3, [r3] 1548: e5d33028 ldrb r3, [r3, #40] 154c: e3530000 cmp r3, #0 ; 0x0 memset( starting_address, 0, length ); 1550: 11a00004 movne r0, r4 1554: 13a01000 movne r1, #0 ; 0x0 1558: 11a02005 movne r2, r5 155c: 1b00269a blne afcc void *starting_address, size_t size, uint32_t page_size ) { return _Heap_Initialize( the_heap, starting_address, size, page_size ); 1560: e1a01004 mov r1, r4 1564: e59f0030 ldr r0, [pc, #48] ; 159c 1568: e1a02005 mov r2, r5 156c: e3a03004 mov r3, #4 ; 0x4 1570: eb000f2d bl 522c <_Heap_Initialize> &RTEMS_Malloc_Heap, starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) 1574: e3500000 cmp r0, #0 ; 0x0 rtems_fatal_error_occurred( status ); 1578: 0b000d1e bleq 49f8 rtems_print_buffer( (start + length) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif MSBUMP(space_available, length); 157c: e59f201c ldr r2, [pc, #28] ; 15a0 1580: e5923000 ldr r3, [r2] 1584: e0853003 add r3, r5, r3 1588: e5823000 str r3, [r2] } 158c: e8bd8070 pop {r4, r5, r6, pc} 1590: 00015084 .word 0x00015084 1594: 00015088 .word 0x00015088 1598: 0001541c .word 0x0001541c 159c: 00015224 .word 0x00015224 15a0: 0001527c .word 0x0001527c 00002844 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2844: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 2848: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 284c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 2850: 0a000047 beq 2974 <== NOT EXECUTED return; if ( !print_handler ) 2854: e59f3120 ldr r3, [pc, #288] ; 297c <== NOT EXECUTED 2858: e5938000 ldr r8, [r3] <== NOT EXECUTED 285c: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 2860: 0a000043 beq 2974 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2864: e3740001 cmn r4, #1 ; 0x1 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 2868: 159490f4 ldrne r9, [r4, #244] <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 286c: 128460c4 addne r6, r4, #196 ; 0xc4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2870: 1a000006 bne 2890 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 2874: e59f2104 ldr r2, [pc, #260] ; 2980 <== NOT EXECUTED 2878: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 287c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 2880: 12844001 addne r4, r4, #1 ; 0x1 <== NOT EXECUTED 2884: 11a06002 movne r6, r2 <== NOT EXECUTED 2888: 11a09004 movne r9, r4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 288c: 0a000038 beq 2974 <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 2890: e896000c ldm r6, {r2, r3} <== NOT EXECUTED 2894: e2835010 add r5, r3, #16 ; 0x10 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2898: e2427010 sub r7, r2, #16 ; 0x10 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 289c: e1a00005 mov r0, r5 <== NOT EXECUTED 28a0: e1a01007 mov r1, r7 <== NOT EXECUTED 28a4: ebffffd8 bl 280c <== NOT EXECUTED if ( high_water_mark ) 28a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 28ac: 10853007 addne r3, r5, r7 <== 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 ) 28b0: 01a0a000 moveq sl, r0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 28b4: 1060a003 rsbne sl, r0, r3 <== NOT EXECUTED else used = 0; if ( the_thread ) { 28b8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 28bc: e59f00c0 ldr r0, [pc, #192] ; 2984 <== NOT EXECUTED 28c0: 0a00000c beq 28f8 <== NOT EXECUTED (*print_handler)( 28c4: e5944008 ldr r4, [r4, #8] <== NOT EXECUTED 28c8: e5905000 ldr r5, [r0] <== NOT EXECUTED 28cc: e28d200b add r2, sp, #11 ; 0xb <== NOT EXECUTED 28d0: e1a00004 mov r0, r4 <== NOT EXECUTED 28d4: e3a01005 mov r1, #5 ; 0x5 <== NOT EXECUTED 28d8: eb00131e bl 7558 <== NOT EXECUTED 28dc: e1a02004 mov r2, r4 <== NOT EXECUTED 28e0: e1a03000 mov r3, r0 <== NOT EXECUTED 28e4: e59f109c ldr r1, [pc, #156] ; 2988 <== NOT EXECUTED 28e8: e1a00005 mov r0, r5 <== NOT EXECUTED 28ec: e1a0e00f mov lr, pc <== NOT EXECUTED 28f0: e12fff18 bx r8 <== NOT EXECUTED 28f4: ea000004 b 290c <== 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 ); 28f8: e5900000 ldr r0, [r0] <== NOT EXECUTED 28fc: e59f1088 ldr r1, [pc, #136] ; 298c <== NOT EXECUTED 2900: e3e02000 mvn r2, #0 ; 0x0 <== NOT EXECUTED 2904: e1a0e00f mov lr, pc <== NOT EXECUTED 2908: e12fff18 bx r8 <== NOT EXECUTED } (*print_handler)( 290c: e5963000 ldr r3, [r6] <== NOT EXECUTED 2910: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED 2914: e59f5068 ldr r5, [pc, #104] ; 2984 <== NOT EXECUTED 2918: e58d9000 str r9, [sp] <== NOT EXECUTED 291c: e58d7004 str r7, [sp, #4] <== NOT EXECUTED 2920: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 2924: e0823003 add r3, r2, r3 <== NOT EXECUTED 2928: e59f404c ldr r4, [pc, #76] ; 297c <== NOT EXECUTED 292c: e5950000 ldr r0, [r5] <== NOT EXECUTED 2930: e59f1058 ldr r1, [pc, #88] ; 2990 <== NOT EXECUTED 2934: e1a0e00f mov lr, pc <== NOT EXECUTED 2938: e594f000 ldr pc, [r4] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 293c: e59f3050 ldr r3, [pc, #80] ; 2994 <== NOT EXECUTED 2940: e5933000 ldr r3, [r3] <== NOT EXECUTED 2944: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2948: 1a000004 bne 2960 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 294c: e5950000 ldr r0, [r5] <== NOT EXECUTED 2950: e59f1040 ldr r1, [pc, #64] ; 2998 <== NOT EXECUTED 2954: e1a0e00f mov lr, pc <== NOT EXECUTED 2958: e594f000 ldr pc, [r4] <== NOT EXECUTED 295c: ea000004 b 2974 <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 2960: e5950000 ldr r0, [r5] <== NOT EXECUTED 2964: e1a0200a mov r2, sl <== NOT EXECUTED 2968: e59f102c ldr r1, [pc, #44] ; 299c <== NOT EXECUTED 296c: e1a0e00f mov lr, pc <== NOT EXECUTED 2970: e594f000 ldr pc, [r4] <== NOT EXECUTED } } 2974: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 2978: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 297c: 00042098 .word 0x00042098 2980: 000550ec .word 0x000550ec 2984: 00042094 .word 0x00042094 2988: 0003e124 .word 0x0003e124 298c: 0003e131 .word 0x0003e131 2990: 0003e13f .word 0x0003e13f 2994: 00042090 .word 0x00042090 2998: 0003e15d .word 0x0003e15d 299c: 0003e16a .word 0x0003e16a 0000280c : * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 280c: e3c11003 bic r1, r1, #3 ; 0x3 <== NOT EXECUTED /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 2810: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 2814: e0802001 add r2, r0, r1 <== NOT EXECUTED if (*base != U32_PATTERN) 2818: e59f1020 ldr r1, [pc, #32] ; 2840 <== NOT EXECUTED 281c: ea000003 b 2830 <== NOT EXECUTED 2820: e5903000 ldr r3, [r0] <== NOT EXECUTED 2824: e1530001 cmp r3, r1 <== NOT EXECUTED 2828: 112fff1e bxne lr <== 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++) 282c: e2800004 add r0, r0, #4 ; 0x4 <== NOT EXECUTED 2830: e1500002 cmp r0, r2 <== NOT EXECUTED 2834: 3afffff9 bcc 2820 <== NOT EXECUTED 2838: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 283c: e12fff1e bx lr <== NOT EXECUTED 2840: a5a5a5a5 .word 0xa5a5a5a5 00011a98 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 11a98: e590304c ldr r3, [r0, #76] size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, uint32_t *count ) { 11a9c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 11aa0: e1520003 cmp r2, r3 size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, uint32_t *count ) { 11aa4: e1a07000 mov r7, r0 11aa8: e1a06002 mov r6, r2 11aac: e1a08001 mov r8, r1 11ab0: e59da020 ldr sl, [sp, #32] Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 11ab4: 83a00001 movhi r0, #1 ; 0x1 11ab8: 88bd85f0 pophi {r4, r5, r6, r7, r8, sl, pc} * 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 ) { 11abc: e5973048 ldr r3, [r7, #72] 11ac0: e3530000 cmp r3, #0 ; 0x0 *count = 0; 11ac4: 13a03000 movne r3, #0 ; 0x0 * 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))) { 11ac8: 01a05003 moveq r5, r3 * 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; 11acc: 158a3000 strne r3, [sl] 11ad0: 11a00003 movne r0, r3 * 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 ) { 11ad4: 0a000005 beq 11af0 <_CORE_message_queue_Broadcast+0x58> 11ad8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 11adc: e594002c ldr r0, [r4, #44] 11ae0: eb001c44 bl 18bf8 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 11ae4: e5943028 ldr r3, [r4, #40] 11ae8: e5836000 str r6, [r3] */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; 11aec: e2855001 add r5, r5, #1 ; 0x1 * 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))) { 11af0: e1a00007 mov r0, r7 11af4: eb00092d bl 13fb0 <_Thread_queue_Dequeue> 11af8: e2504000 subs r4, r0, #0 ; 0x0 11afc: e1a01008 mov r1, r8 11b00: e1a02006 mov r2, r6 11b04: 1afffff4 bne 11adc <_CORE_message_queue_Broadcast+0x44> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 11b08: e58a5000 str r5, [sl] 11b0c: e1a00004 mov r0, r4 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 11b10: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 000124e8 <_CORE_message_queue_Insert_message>: ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 124e8: e3520102 cmp r2, #-2147483648 ; 0x80000000 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 ) { 124ec: e92d4030 push {r4, r5, lr} ISR_Level level; bool notify = false; the_message->priority = submit_type; 124f0: e5812008 str r2, [r1, #8] 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 ) { 124f4: e1a05001 mov r5, r1 124f8: e1a04000 mov r4, r0 ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 124fc: 0a000012 beq 1254c <_CORE_message_queue_Insert_message+0x64> 12500: e3720106 cmn r2, #-2147483647 ; 0x80000001 12504: e280c054 add ip, r0, #84 ; 0x54 CORE_message_queue_Buffer_control *this_message; Chain_Node *the_node; Chain_Control *the_header; the_header = &the_message_queue->Pending_messages; the_node = the_header->first; 12508: 15901050 ldrne r1, [r0, #80] ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 1250c: 1a000022 bne 1259c <_CORE_message_queue_Insert_message+0xb4> case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); 12510: e10f0000 mrs r0, CPSR 12514: e38030c0 orr r3, r0, #192 ; 0xc0 12518: e129f003 msr CPSR_fc, r3 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 1251c: e585c000 str ip, [r5] if ( the_message_queue->number_of_pending_messages++ == 0 ) 12520: e5942048 ldr r2, [r4, #72] old_last_node = the_chain->last; 12524: e5941058 ldr r1, [r4, #88] 12528: e2823001 add r3, r2, #1 ; 0x1 the_chain->last = the_node; 1252c: e5845058 str r5, [r4, #88] 12530: e5843048 str r3, [r4, #72] 12534: e2722001 rsbs r2, r2, #1 ; 0x1 12538: 33a02000 movcc r2, #0 ; 0x0 old_last_node->next = the_node; the_node->previous = old_last_node; 1253c: e5851004 str r1, [r5, #4] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 12540: e5815000 str r5, [r1] notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 12544: e129f000 msr CPSR_fc, r0 12548: ea000024 b 125e0 <_CORE_message_queue_Insert_message+0xf8> break; case CORE_MESSAGE_QUEUE_URGENT_REQUEST: _ISR_Disable( level ); 1254c: e10fc000 mrs ip, CPSR 12550: e38c30c0 orr r3, ip, #192 ; 0xc0 12554: e129f003 msr CPSR_fc, r3 if ( the_message_queue->number_of_pending_messages++ == 0 ) 12558: e5901048 ldr r1, [r0, #72] ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 1255c: e5900050 ldr r0, [r0, #80] 12560: e2812001 add r2, r1, #1 ; 0x1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 12564: e2843050 add r3, r4, #80 ; 0x50 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 12568: e5853004 str r3, [r5, #4] 1256c: e5842048 str r2, [r4, #72] before_node = after_node->next; after_node->next = the_node; 12570: e5845050 str r5, [r4, #80] the_node->next = before_node; before_node->previous = the_node; 12574: e5805004 str r5, [r0, #4] 12578: e2712001 rsbs r2, r1, #1 ; 0x1 1257c: 33a02000 movcc r2, #0 ; 0x0 Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 12580: e5850000 str r0, [r5] notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 12584: e129f00c msr CPSR_fc, ip 12588: ea000014 b 125e0 <_CORE_message_queue_Insert_message+0xf8> the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { 1258c: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 12590: e1530002 cmp r3, r2 <== NOT EXECUTED 12594: ca000002 bgt 125a4 <_CORE_message_queue_Insert_message+0xbc> <== NOT EXECUTED the_node = the_node->next; 12598: e5911000 ldr r1, [r1] <== NOT EXECUTED Chain_Node *the_node; Chain_Control *the_header; the_header = &the_message_queue->Pending_messages; the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { 1259c: e151000c cmp r1, ip <== NOT EXECUTED 125a0: 1afffff9 bne 1258c <_CORE_message_queue_Insert_message+0xa4> <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 125a4: e10fc000 mrs ip, CPSR <== NOT EXECUTED 125a8: e38c30c0 orr r3, ip, #192 ; 0xc0 <== NOT EXECUTED 125ac: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages++ == 0 ) notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); 125b0: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 125b4: e5941048 ldr r1, [r4, #72] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 125b8: e5930000 ldr r0, [r3] <== NOT EXECUTED 125bc: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED after_node->next = the_node; 125c0: e5835000 str r5, [r3] <== NOT EXECUTED 125c4: e5842048 str r2, [r4, #72] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 125c8: e5853004 str r3, [r5, #4] <== NOT EXECUTED 125cc: e2712001 rsbs r2, r1, #1 ; 0x1 <== NOT EXECUTED 125d0: 33a02000 movcc r2, #0 ; 0x0 <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 125d4: e5805004 str r5, [r0, #4] <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 125d8: e5850000 str r0, [r5] <== NOT EXECUTED notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 125dc: e129f00c msr CPSR_fc, ip <== NOT EXECUTED * 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 ) 125e0: e3520000 cmp r2, #0 ; 0x0 125e4: 08bd8030 popeq {r4, r5, pc} 125e8: e5943060 ldr r3, [r4, #96] 125ec: e3530000 cmp r3, #0 ; 0x0 125f0: 08bd8030 popeq {r4, r5, pc} (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 125f4: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 125f8: e1a0e00f mov lr, pc <== NOT EXECUTED 125fc: e12fff13 bx r3 <== NOT EXECUTED 12600: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0000f990 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { f990: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; f994: e59fc128 ldr ip, [pc, #296] ; fac4 <_CORE_message_queue_Seize+0x134> f998: e59cc000 ldr ip, [ip] void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { f99c: e1a05000 mov r5, r0 f9a0: e1a00003 mov r0, r3 CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; f9a4: e3a03000 mov r3, #0 ; 0x0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { f9a8: e59da020 ldr sl, [sp, #32] f9ac: e1a07001 mov r7, r1 f9b0: e1a08002 mov r8, r2 CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; f9b4: e58c3034 str r3, [ip, #52] void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { f9b8: e5dd601c ldrb r6, [sp, #28] Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); f9bc: e10f1000 mrs r1, CPSR f9c0: e38130c0 orr r3, r1, #192 ; 0xc0 f9c4: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); f9c8: e5954050 ldr r4, [r5, #80] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) f9cc: e2853054 add r3, r5, #84 ; 0x54 f9d0: e1540003 cmp r4, r3 f9d4: 0a000028 beq fa7c <_CORE_message_queue_Seize+0xec> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; f9d8: e5942000 ldr r2, [r4] the_chain->first = new_first; f9dc: e1a03005 mov r3, r5 f9e0: e5a32050 str r2, [r3, #80]! the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { f9e4: e3540000 cmp r4, #0 ; 0x0 new_first->previous = _Chain_Head(the_chain); f9e8: e5823004 str r3, [r2, #4] f9ec: 0a000022 beq fa7c <_CORE_message_queue_Seize+0xec> the_message_queue->number_of_pending_messages -= 1; f9f0: e5953048 ldr r3, [r5, #72] f9f4: e2433001 sub r3, r3, #1 ; 0x1 f9f8: e5853048 str r3, [r5, #72] _ISR_Enable( level ); f9fc: e129f001 msr CPSR_fc, r1 *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = the_message->priority; fa00: e59f30bc ldr r3, [pc, #188] ; fac4 <_CORE_message_queue_Seize+0x134> fa04: e5942008 ldr r2, [r4, #8] fa08: e5931000 ldr r1, [r3] the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; fa0c: e594300c ldr r3, [r4, #12] fa10: e5803000 str r3, [r0] _Thread_Executing->Wait.count = the_message->priority; fa14: e5812024 str r2, [r1, #36] _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size_p); fa18: e2846010 add r6, r4, #16 ; 0x10 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); fa1c: e5902000 ldr r2, [r0] fa20: e1a01006 mov r1, r6 fa24: e1a00008 mov r0, r8 fa28: eb001210 bl 14270 * * 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 ); fa2c: e1a00005 mov r0, r5 fa30: ebffec45 bl ab4c <_Thread_queue_Dequeue> if ( !the_thread ) { fa34: e2501000 subs r1, r0, #0 ; 0x0 fa38: 1a000003 bne fa4c <_CORE_message_queue_Seize+0xbc> 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 ); fa3c: e2850068 add r0, r5, #104 ; 0x68 fa40: e1a01004 mov r1, r4 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 ); } fa44: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} fa48: eaffe5eb b 91fc <_Chain_Append> * There was a thread waiting to send a message. This code * puts the messages in the message queue on behalf of the * waiting task. */ the_message->priority = the_thread->Wait.count; fa4c: e5913024 ldr r3, [r1, #36] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; fa50: e5912030 ldr r2, [r1, #48] <== NOT EXECUTED * There was a thread waiting to send a message. This code * puts the messages in the message queue on behalf of the * waiting task. */ the_message->priority = the_thread->Wait.count; fa54: e5843008 str r3, [r4, #8] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; fa58: e584200c str r2, [r4, #12] <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); fa5c: e1a00006 mov r0, r6 <== NOT EXECUTED fa60: e591102c ldr r1, [r1, #44] <== NOT EXECUTED fa64: eb001201 bl 14270 <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( fa68: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED fa6c: e1a00005 mov r0, r5 <== NOT EXECUTED fa70: e1a01004 mov r1, r4 <== NOT EXECUTED 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 ); } fa74: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( fa78: ea000a9a b 124e8 <_CORE_message_queue_Insert_message> <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { fa7c: e3560000 cmp r6, #0 ; 0x0 fa80: 1a000003 bne fa94 <_CORE_message_queue_Seize+0x104> _ISR_Enable( level ); fa84: e129f001 msr CPSR_fc, r1 executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; fa88: e3a03004 mov r3, #4 ; 0x4 fa8c: e58c3034 str r3, [ip, #52] 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 ); } fa90: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} fa94: e3a03001 mov r3, #1 ; 0x1 fa98: e5853030 str r3, [r5, #48] _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; fa9c: e58c0028 str r0, [ip, #40] return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; faa0: e58c7020 str r7, [ip, #32] executing->Wait.return_argument_second.mutable_object = buffer; faa4: e58c802c str r8, [ip, #44] 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; faa8: e58c5044 str r5, [ip, #68] executing->Wait.id = id; 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 ); faac: e129f001 msr CPSR_fc, r1 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); fab0: e59f2010 ldr r2, [pc, #16] ; fac8 <_CORE_message_queue_Seize+0x138> fab4: e1a00005 mov r0, r5 fab8: e1a0100a mov r1, sl } fabc: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} 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 ); fac0: eaffec7a b acb0 <_Thread_queue_Enqueue_with_handler> fac4: 000230c4 .word 0x000230c4 fac8: 0000b088 .word 0x0000b088 0000facc <_CORE_message_queue_Submit>: CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { facc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { fad0: e590c04c ldr ip, [r0, #76] fad4: e152000c cmp r2, ip CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { fad8: e1a05000 mov r5, r0 fadc: e1a06002 mov r6, r2 fae0: e1a07001 mov r7, r1 fae4: e1a0b003 mov fp, r3 fae8: e59d9028 ldr r9, [sp, #40] faec: e5dda02c ldrb sl, [sp, #44] ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { faf0: 83a00001 movhi r0, #1 ; 0x1 faf4: 88bd8ff0 pophi {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { faf8: e5958048 ldr r8, [r5, #72] fafc: e3580000 cmp r8, #0 ; 0x0 fb00: 1a00000b bne fb34 <_CORE_message_queue_Submit+0x68> the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); fb04: ebffec10 bl ab4c <_Thread_queue_Dequeue> if ( the_thread ) { fb08: e2504000 subs r4, r0, #0 ; 0x0 fb0c: 0a000008 beq fb34 <_CORE_message_queue_Submit+0x68> fb10: e1a01007 mov r1, r7 fb14: e594002c ldr r0, [r4, #44] fb18: e1a02006 mov r2, r6 fb1c: eb0011d3 bl 14270 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; fb20: e5943028 ldr r3, [r4, #40] the_thread->Wait.count = submit_type; fb24: e1a00008 mov r0, r8 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; fb28: e5836000 str r6, [r3] the_thread->Wait.count = submit_type; fb2c: e5849024 str r9, [r4, #36] fb30: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * 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 < fb34: e5952048 ldr r2, [r5, #72] fb38: e5953044 ldr r3, [r5, #68] fb3c: e1520003 cmp r2, r3 fb40: 2a00000f bcs fb84 <_CORE_message_queue_Submit+0xb8> 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 *) fb44: e2850068 add r0, r5, #104 ; 0x68 fb48: ebffe5b6 bl 9228 <_Chain_Get> /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { fb4c: e2504000 subs r4, r0, #0 ; 0x0 fb50: 0a000025 beq fbec <_CORE_message_queue_Submit+0x120> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); fb54: e1a01007 mov r1, r7 fb58: e1a02006 mov r2, r6 fb5c: e2840010 add r0, r4, #16 ; 0x10 fb60: eb0011c2 bl 14270 size ); the_message->Contents.size = size; the_message->priority = submit_type; _CORE_message_queue_Insert_message( fb64: e1a00005 mov r0, r5 _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; fb68: e584600c str r6, [r4, #12] the_message->priority = submit_type; fb6c: e5849008 str r9, [r4, #8] _CORE_message_queue_Insert_message( fb70: e1a01004 mov r1, r4 fb74: e1a02009 mov r2, r9 fb78: eb000a5a bl 124e8 <_CORE_message_queue_Insert_message> fb7c: e3a00000 mov r0, #0 ; 0x0 fb80: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * 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 ) { fb84: e35a0000 cmp sl, #0 ; 0x0 fb88: 03a00002 moveq r0, #2 ; 0x2 fb8c: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * 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() ) { fb90: e59f305c ldr r3, [pc, #92] ; fbf4 <_CORE_message_queue_Submit+0x128> <== NOT EXECUTED fb94: e5933000 ldr r3, [r3] <== NOT EXECUTED fb98: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED fb9c: 1a000012 bne fbec <_CORE_message_queue_Submit+0x120> <== NOT EXECUTED * it as a variable. Doing this emphasizes how dangerous it * would be to use this variable prior to here. */ { Thread_Control *executing = _Thread_Executing; fba0: e59f3050 ldr r3, [pc, #80] ; fbf8 <_CORE_message_queue_Submit+0x12c> <== NOT EXECUTED fba4: e5932000 ldr r2, [r3] <== NOT EXECUTED _ISR_Disable( level ); fba8: e10f1000 mrs r1, CPSR <== NOT EXECUTED fbac: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED fbb0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED fbb4: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED fbb8: e5853030 str r3, [r5, #48] <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; fbbc: e5829024 str r9, [r2, #36] <== NOT EXECUTED Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; fbc0: e582b020 str fp, [r2, #32] <== NOT EXECUTED executing->Wait.return_argument_second.immutable_object = buffer; fbc4: e582702c str r7, [r2, #44] <== NOT EXECUTED executing->Wait.option = (uint32_t) size; fbc8: e5826030 str r6, [r2, #48] <== NOT EXECUTED { Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; fbcc: e5825044 str r5, [r2, #68] <== NOT EXECUTED executing->Wait.id = id; executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; _ISR_Enable( level ); fbd0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); fbd4: e59f2020 ldr r2, [pc, #32] ; fbfc <_CORE_message_queue_Submit+0x130> <== NOT EXECUTED fbd8: e1a00005 mov r0, r5 <== NOT EXECUTED fbdc: e59d1030 ldr r1, [sp, #48] <== NOT EXECUTED fbe0: ebffec32 bl acb0 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED fbe4: e3a00007 mov r0, #7 ; 0x7 <== NOT EXECUTED fbe8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; fbec: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED } fbf0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED fbf4: 000230a0 .word 0x000230a0 fbf8: 000230c4 .word 0x000230c4 fbfc: 0000b088 .word 0x0000b088 000094dc <_CORE_mutex_Seize_interrupt_trylock>: Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 94dc: e59f3130 ldr r3, [pc, #304] ; 9614 <_CORE_mutex_Seize_interrupt_trylock+0x138> 94e0: e593c000 ldr ip, [r3] executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 94e4: e3a02000 mov r2, #0 ; 0x0 CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 94e8: e5911000 ldr r1, [r1] /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 94ec: e58c2034 str r2, [ip, #52] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 94f0: e5903050 ldr r3, [r0, #80] 94f4: e1530002 cmp r3, r2 #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 94f8: e52de004 push {lr} ; (str lr, [sp, #-4]!) 94fc: 0a00002f beq 95c0 <_CORE_mutex_Seize_interrupt_trylock+0xe4> the_mutex->lock = CORE_MUTEX_LOCKED; 9500: e5802050 str r2, [r0, #80] */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 9504: e5902048 ldr r2, [r0, #72] executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 9508: e59c3008 ldr r3, [ip, #8] the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 950c: e3520002 cmp r2, #2 ; 0x2 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 9510: e5803060 str r3, [r0, #96] the_mutex->nest_count = 1; 9514: e3a03001 mov r3, #1 ; 0x1 9518: e5803054 str r3, [r0, #84] executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; 951c: e580c05c str ip, [r0, #92] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 9520: 0a000001 beq 952c <_CORE_mutex_Seize_interrupt_trylock+0x50> 9524: e3520003 cmp r2, #3 ; 0x3 <== NOT EXECUTED 9528: 1a000002 bne 9538 <_CORE_mutex_Seize_interrupt_trylock+0x5c> <== 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++; 952c: e59c301c ldr r3, [ip, #28] 9530: e2833001 add r3, r3, #1 ; 0x1 9534: e58c301c str r3, [ip, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 9538: e5903048 ldr r3, [r0, #72] 953c: e3530003 cmp r3, #3 ; 0x3 9540: 0a000001 beq 954c <_CORE_mutex_Seize_interrupt_trylock+0x70> _ISR_Enable( level ); 9544: e129f001 msr CPSR_fc, r1 9548: ea00002d b 9604 <_CORE_mutex_Seize_interrupt_trylock+0x128> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 954c: e590204c ldr r2, [r0, #76] <== NOT EXECUTED current = executing->current_priority; 9550: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED if ( current == ceiling ) { 9554: e1530002 cmp r3, r2 <== NOT EXECUTED 9558: 1a000001 bne 9564 <_CORE_mutex_Seize_interrupt_trylock+0x88> <== NOT EXECUTED _ISR_Enable( level ); 955c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 9560: ea000027 b 9604 <_CORE_mutex_Seize_interrupt_trylock+0x128> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 9564: 9a00000a bls 9594 <_CORE_mutex_Seize_interrupt_trylock+0xb8> <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 9568: e59f20a8 ldr r2, [pc, #168] ; 9618 <_CORE_mutex_Seize_interrupt_trylock+0x13c> <== NOT EXECUTED 956c: e5923000 ldr r3, [r2] <== NOT EXECUTED 9570: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 9574: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 9578: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_Change_priority( 957c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 9580: e590104c ldr r1, [r0, #76] <== NOT EXECUTED 9584: e590005c ldr r0, [r0, #92] <== NOT EXECUTED 9588: ebfff1ac bl 5c40 <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 958c: ebfff313 bl 61e0 <_Thread_Enable_dispatch> <== NOT EXECUTED 9590: ea00001b b 9604 <_CORE_mutex_Seize_interrupt_trylock+0x128> <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 9594: e3a03006 mov r3, #6 ; 0x6 <== NOT EXECUTED 9598: e58c3034 str r3, [ip, #52] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 959c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 95a0: e5803054 str r3, [r0, #84] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 95a4: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 95a8: e5803050 str r3, [r0, #80] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 95ac: e59c301c ldr r3, [ip, #28] <== NOT EXECUTED 95b0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 95b4: e58c301c str r3, [ip, #28] <== NOT EXECUTED _ISR_Enable( level ); 95b8: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 95bc: ea000010 b 9604 <_CORE_mutex_Seize_interrupt_trylock+0x128> <== 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 ) ) { 95c0: e590205c ldr r2, [r0, #92] 95c4: e152000c cmp r2, ip 95c8: 1a00000f bne 960c <_CORE_mutex_Seize_interrupt_trylock+0x130> switch ( the_mutex->Attributes.lock_nesting_behavior ) { 95cc: e5903040 ldr r3, [r0, #64] 95d0: e3530000 cmp r3, #0 ; 0x0 95d4: 0a000002 beq 95e4 <_CORE_mutex_Seize_interrupt_trylock+0x108> 95d8: e3530001 cmp r3, #1 ; 0x1 95dc: 1a00000a bne 960c <_CORE_mutex_Seize_interrupt_trylock+0x130> 95e0: ea000004 b 95f8 <_CORE_mutex_Seize_interrupt_trylock+0x11c> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 95e4: e5903054 ldr r3, [r0, #84] 95e8: e2833001 add r3, r3, #1 ; 0x1 95ec: e5803054 str r3, [r0, #84] _ISR_Enable( level ); 95f0: e129f001 msr CPSR_fc, r1 95f4: ea000002 b 9604 <_CORE_mutex_Seize_interrupt_trylock+0x128> return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 95f8: e3a03002 mov r3, #2 ; 0x2 95fc: e5823034 str r3, [r2, #52] _ISR_Enable( level ); 9600: e129f001 msr CPSR_fc, r1 9604: e3a00000 mov r0, #0 ; 0x0 9608: e49df004 pop {pc} ; (ldr pc, [sp], #4) 960c: e3a00001 mov r0, #1 ; 0x1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 9610: e49df004 pop {pc} ; (ldr pc, [sp], #4) 9614: 00015444 .word 0x00015444 9618: 0001538c .word 0x0001538c 00004f2c <_CORE_mutex_Surrender>: * 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 ) { 4f2c: e5d03044 ldrb r3, [r0, #68] 4f30: e3530000 cmp r3, #0 ; 0x0 CORE_mutex_Status _CORE_mutex_Surrender( CORE_mutex_Control *the_mutex, Objects_Id id, CORE_mutex_API_mp_support_callout api_mutex_mp_support ) { 4f34: e92d4010 push {r4, lr} 4f38: e1a04000 mov r4, r0 Thread_Control *the_thread; Thread_Control *holder; #ifdef __RTEMS_STRICT_ORDER_MUTEX__ Chain_Node *first_node; #endif holder = the_mutex->holder; 4f3c: e590005c ldr r0, [r0, #92] * 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 ) { 4f40: 0a000004 beq 4f58 <_CORE_mutex_Surrender+0x2c> if ( !_Thread_Is_executing( holder ) ) 4f44: e59f312c ldr r3, [pc, #300] ; 5078 <_CORE_mutex_Surrender+0x14c> 4f48: e5933000 ldr r3, [r3] 4f4c: e1500003 cmp r0, r3 4f50: 13a00003 movne r0, #3 ; 0x3 4f54: 18bd8010 popne {r4, pc} return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 4f58: e5943054 ldr r3, [r4, #84] 4f5c: e3530000 cmp r3, #0 ; 0x0 4f60: 0a000042 beq 5070 <_CORE_mutex_Surrender+0x144> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 4f64: e2433001 sub r3, r3, #1 ; 0x1 if ( the_mutex->nest_count != 0 ) { 4f68: e3530000 cmp r3, #0 ; 0x0 /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 4f6c: e5843054 str r3, [r4, #84] if ( the_mutex->nest_count != 0 ) { 4f70: 0a000005 beq 4f8c <_CORE_mutex_Surrender+0x60> switch ( the_mutex->Attributes.lock_nesting_behavior ) { 4f74: e5943040 ldr r3, [r4, #64] 4f78: e3530000 cmp r3, #0 ; 0x0 4f7c: 0a00003b beq 5070 <_CORE_mutex_Surrender+0x144> 4f80: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 4f84: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 4f88: 08bd8010 popeq {r4, pc} <== NOT EXECUTED 4f8c: e5943048 ldr r3, [r4, #72] /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4f90: e3530002 cmp r3, #2 ; 0x2 4f94: 0a000001 beq 4fa0 <_CORE_mutex_Surrender+0x74> 4f98: e3530003 cmp r3, #3 ; 0x3 4f9c: 1a000002 bne 4fac <_CORE_mutex_Surrender+0x80> the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; 4fa0: e590301c ldr r3, [r0, #28] 4fa4: e2433001 sub r3, r3, #1 ; 0x1 4fa8: e580301c str r3, [r0, #28] 4fac: e5942048 ldr r2, [r4, #72] } the_mutex->holder = NULL; 4fb0: e3a03000 mov r3, #0 ; 0x0 /* * 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 ) || 4fb4: e3520002 cmp r2, #2 ; 0x2 first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; the_mutex->holder_id = 0; 4fb8: e5843060 str r3, [r4, #96] } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 4fbc: e584305c str r3, [r4, #92] /* * 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 ) || 4fc0: 0a000001 beq 4fcc <_CORE_mutex_Surrender+0xa0> 4fc4: e3520003 cmp r2, #3 ; 0x3 4fc8: 1a000007 bne 4fec <_CORE_mutex_Surrender+0xc0> _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 && 4fcc: e590301c ldr r3, [r0, #28] 4fd0: e3530000 cmp r3, #0 ; 0x0 4fd4: 1a000004 bne 4fec <_CORE_mutex_Surrender+0xc0> 4fd8: e5901018 ldr r1, [r0, #24] 4fdc: e5903014 ldr r3, [r0, #20] 4fe0: e1510003 cmp r1, r3 holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 4fe4: 13a02001 movne r2, #1 ; 0x1 4fe8: 1b000314 blne 5c40 <_Thread_Change_priority> /* * 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 ) ) ) { 4fec: e1a00004 mov r0, r4 4ff0: eb00055c bl 6568 <_Thread_queue_Dequeue> 4ff4: e2502000 subs r2, r0, #0 ; 0x0 } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 4ff8: 03a03001 moveq r3, #1 ; 0x1 4ffc: 05843050 streq r3, [r4, #80] 5000: 01a00002 moveq r0, r2 /* * 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 ) ) ) { 5004: 08bd8010 popeq {r4, pc} } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 5008: e5923008 ldr r3, [r2, #8] the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 500c: e5941048 ldr r1, [r4, #72] } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 5010: e5843060 str r3, [r4, #96] the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 5014: e3510002 cmp r1, #2 ; 0x2 #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 5018: e3a03001 mov r3, #1 ; 0x1 501c: e5843054 str r3, [r4, #84] } else #endif { the_mutex->holder = the_thread; 5020: e584205c str r2, [r4, #92] the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 5024: 0a000002 beq 5034 <_CORE_mutex_Surrender+0x108> 5028: e3510003 cmp r1, #3 ; 0x3 502c: 1a00000f bne 5070 <_CORE_mutex_Surrender+0x144> 5030: ea000003 b 5044 <_CORE_mutex_Surrender+0x118> <== NOT EXECUTED 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++; 5034: e592301c ldr r3, [r2, #28] 5038: e2833001 add r3, r3, #1 ; 0x1 503c: e582301c str r3, [r2, #28] 5040: ea000008 b 5068 <_CORE_mutex_Surrender+0x13c> 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++; 5044: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 5048: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 504c: e582301c str r3, [r2, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 5050: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 5054: e594104c ldr r1, [r4, #76] <== NOT EXECUTED 5058: e1510003 cmp r1, r3 <== NOT EXECUTED 505c: 2a000003 bcs 5070 <_CORE_mutex_Surrender+0x144> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 5060: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 5064: eb0002f5 bl 5c40 <_Thread_Change_priority> <== NOT EXECUTED 5068: e3a00000 mov r0, #0 ; 0x0 506c: e8bd8010 pop {r4, pc} } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 5070: e3a00000 mov r0, #0 ; 0x0 return CORE_MUTEX_STATUS_SUCCESSFUL; } 5074: e8bd8010 pop {r4, pc} 5078: 00015444 .word 0x00015444 0001e850 <_Chain_Insert>: Chain_Node *node ) { ISR_Level level; _ISR_Disable( level ); 1e850: e10f2000 mrs r2, CPSR <== NOT EXECUTED 1e854: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 1e858: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 1e85c: e5903000 ldr r3, [r0] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 1e860: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 1e864: e5801000 str r1, [r0] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 1e868: e5831004 str r1, [r3, #4] <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 1e86c: e5813000 str r3, [r1] <== NOT EXECUTED _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); 1e870: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } 1e874: e12fff1e bx lr <== NOT EXECUTED 000093d8 <_Debug_Is_enabled>: */ bool _Debug_Is_enabled( rtems_debug_control level ) { 93d8: e59f3010 ldr r3, [pc, #16] ; 93f0 <_Debug_Is_enabled+0x18> <== NOT EXECUTED 93dc: e5933000 ldr r3, [r3] <== NOT EXECUTED 93e0: e1100003 tst r0, r3 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; } 93e4: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED 93e8: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 93ec: e12fff1e bx lr <== NOT EXECUTED 93f0: 00015448 .word 0x00015448 00003d54 <_Event_Seize>: rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; 3d54: e59fc104 ldr ip, [pc, #260] ; 3e60 <_Event_Seize+0x10c> rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 3d58: e92d40f0 push {r4, r5, r6, r7, lr} rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; 3d5c: e59c4000 ldr r4, [ip] executing->Wait.return_code = RTEMS_SUCCESSFUL; 3d60: e3a0c000 mov ip, #0 ; 0x0 3d64: e584c034 str ip, [r4, #52] rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 3d68: e1a07002 mov r7, r2 3d6c: e1a05003 mov r5, r3 Thread_blocking_operation_States sync_state; executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 3d70: e5946104 ldr r6, [r4, #260] _ISR_Disable( level ); 3d74: e10fc000 mrs ip, CPSR 3d78: e38c30c0 orr r3, ip, #192 ; 0xc0 3d7c: e129f003 msr CPSR_fc, r3 pending_events = api->pending_events; 3d80: e5963000 ldr r3, [r6] seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 3d84: e0102003 ands r2, r0, r3 3d88: 0a000007 beq 3dac <_Event_Seize+0x58> 3d8c: e1520000 cmp r2, r0 3d90: 0a000001 beq 3d9c <_Event_Seize+0x48> 3d94: e3110002 tst r1, #2 ; 0x2 3d98: 0a000003 beq 3dac <_Event_Seize+0x58> (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = 3d9c: e1c33002 bic r3, r3, r2 3da0: e5863000 str r3, [r6] _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 3da4: e129f00c msr CPSR_fc, ip 3da8: ea000004 b 3dc0 <_Event_Seize+0x6c> *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 3dac: e3110001 tst r1, #1 ; 0x1 3db0: 0a000004 beq 3dc8 <_Event_Seize+0x74> _ISR_Enable( level ); 3db4: e129f00c msr CPSR_fc, ip executing->Wait.return_code = RTEMS_UNSATISFIED; 3db8: e3a0300d mov r3, #13 ; 0xd 3dbc: e5843034 str r3, [r4, #52] *event_out = seized_events; 3dc0: e5852000 str r2, [r5] 3dc4: e8bd80f0 pop {r4, r5, r6, r7, pc} return; } _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 3dc8: e59f3094 ldr r3, [pc, #148] ; 3e64 <_Event_Seize+0x110> 3dcc: e3a02001 mov r2, #1 ; 0x1 3dd0: e5832000 str r2, [r3] executing->Wait.option = (uint32_t) option_set; 3dd4: e5841030 str r1, [r4, #48] executing->Wait.count = (uint32_t) event_in; 3dd8: e5840024 str r0, [r4, #36] executing->Wait.return_argument = event_out; 3ddc: e5845028 str r5, [r4, #40] _ISR_Enable( level ); 3de0: e129f00c msr CPSR_fc, ip if ( ticks ) { 3de4: e3570000 cmp r7, #0 ; 0x0 3de8: 0a00000a beq 3e18 <_Event_Seize+0xc4> _Watchdog_Initialize( 3dec: e5943008 ldr r3, [r4, #8] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 3df0: e59f2070 ldr r2, [pc, #112] ; 3e68 <_Event_Seize+0x114> Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 3df4: e3a01000 mov r1, #0 ; 0x0 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 3df8: e584106c str r1, [r4, #108] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 3dfc: e5841050 str r1, [r4, #80] the_watchdog->routine = routine; 3e00: e5842064 str r2, [r4, #100] the_watchdog->id = id; 3e04: e5843068 str r3, [r4, #104] Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 3e08: e5847054 str r7, [r4, #84] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 3e0c: e59f0058 ldr r0, [pc, #88] ; 3e6c <_Event_Seize+0x118> 3e10: e2841048 add r1, r4, #72 ; 0x48 3e14: eb000d2c bl 72cc <_Watchdog_Insert> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 3e18: e1a00004 mov r0, r4 3e1c: e3a01c01 mov r1, #256 ; 0x100 3e20: eb000b4b bl 6b54 <_Thread_Set_state> _ISR_Disable( level ); 3e24: e10fc000 mrs ip, CPSR 3e28: e38c30c0 orr r3, ip, #192 ; 0xc0 3e2c: e129f003 msr CPSR_fc, r3 sync_state = _Event_Sync_state; 3e30: e59f202c ldr r2, [pc, #44] ; 3e64 <_Event_Seize+0x110> 3e34: e5920000 ldr r0, [r2] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 3e38: e3a03000 mov r3, #0 ; 0x0 if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 3e3c: e3500001 cmp r0, #1 ; 0x1 _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 3e40: e5823000 str r3, [r2] if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 3e44: 1a000001 bne 3e50 <_Event_Seize+0xfc> _ISR_Enable( level ); 3e48: e129f00c msr CPSR_fc, ip 3e4c: e8bd80f0 pop {r4, r5, r6, r7, pc} * 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 ); 3e50: e1a01004 mov r1, r4 <== NOT EXECUTED 3e54: e1a0200c mov r2, ip <== NOT EXECUTED } 3e58: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED * 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 ); 3e5c: ea000764 b 5bf4 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED 3e60: 00015444 .word 0x00015444 3e64: 000155e4 .word 0x000155e4 3e68: 00004004 .word 0x00004004 3e6c: 00015464 .word 0x00015464 00003ec8 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 3ec8: e92d40f0 push {r4, r5, r6, r7, lr} 3ecc: e1a04000 mov r4, r0 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 ]; 3ed0: e5906104 ldr r6, [r0, #260] option_set = (rtems_option) the_thread->Wait.option; 3ed4: e5907030 ldr r7, [r0, #48] _ISR_Disable( level ); 3ed8: e10f5000 mrs r5, CPSR 3edc: e38530c0 orr r3, r5, #192 ; 0xc0 3ee0: e129f003 msr CPSR_fc, r3 pending_events = api->pending_events; 3ee4: e596c000 ldr ip, [r6] event_condition = (rtems_event_set) the_thread->Wait.count; 3ee8: e5902024 ldr r2, [r0, #36] seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 3eec: e012000c ands r0, r2, ip 3ef0: 1a000001 bne 3efc <_Event_Surrender+0x34> _ISR_Enable( level ); 3ef4: e129f005 msr CPSR_fc, r5 3ef8: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * 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() && 3efc: e59f30f0 ldr r3, [pc, #240] ; 3ff4 <_Event_Surrender+0x12c> 3f00: e5933000 ldr r3, [r3] 3f04: e3530000 cmp r3, #0 ; 0x0 3f08: 0a000019 beq 3f74 <_Event_Surrender+0xac> 3f0c: e59f30e4 ldr r3, [pc, #228] ; 3ff8 <_Event_Surrender+0x130> 3f10: e5933000 ldr r3, [r3] 3f14: e1540003 cmp r4, r3 3f18: 1a000015 bne 3f74 <_Event_Surrender+0xac> 3f1c: e59f10d8 ldr r1, [pc, #216] ; 3ffc <_Event_Surrender+0x134> <== NOT EXECUTED 3f20: e5913000 ldr r3, [r1] <== NOT EXECUTED 3f24: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3f28: 0a000002 beq 3f38 <_Event_Surrender+0x70> <== NOT EXECUTED 3f2c: e5913000 ldr r3, [r1] <== NOT EXECUTED 3f30: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 3f34: 1a00000e bne 3f74 <_Event_Surrender+0xac> <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 3f38: e1500002 cmp r0, r2 <== NOT EXECUTED 3f3c: 0a000001 beq 3f48 <_Event_Surrender+0x80> <== NOT EXECUTED 3f40: e3170002 tst r7, #2 ; 0x2 <== NOT EXECUTED 3f44: 0a000008 beq 3f6c <_Event_Surrender+0xa4> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 3f48: e1cc3000 bic r3, ip, r0 <== NOT EXECUTED 3f4c: e5863000 str r3, [r6] <== NOT EXECUTED the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 3f50: e59f30a4 ldr r3, [pc, #164] ; 3ffc <_Event_Surrender+0x134> <== NOT EXECUTED ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 3f54: e5941028 ldr r1, [r4, #40] <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 3f58: e3a02003 mov r2, #3 ; 0x3 <== NOT EXECUTED 3f5c: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 3f60: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3f64: e5843024 str r3, [r4, #36] <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 3f68: e5810000 str r0, [r1] <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; } _ISR_Enable( level ); 3f6c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 3f70: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 3f74: e5943010 ldr r3, [r4, #16] 3f78: e3130c01 tst r3, #256 ; 0x100 3f7c: 0a00001a beq 3fec <_Event_Surrender+0x124> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 3f80: e1500002 cmp r0, r2 3f84: 0a000001 beq 3f90 <_Event_Surrender+0xc8> 3f88: e3170002 tst r7, #2 ; 0x2 3f8c: 0a000016 beq 3fec <_Event_Surrender+0x124> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 3f90: e1cc3000 bic r3, ip, r0 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 3f94: e5942028 ldr r2, [r4, #40] /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 3f98: e5863000 str r3, [r6] the_thread->Wait.count = 0; 3f9c: e3a03000 mov r3, #0 ; 0x0 3fa0: e5843024 str r3, [r4, #36] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 3fa4: e5820000 str r0, [r2] _ISR_Flash( level ); 3fa8: e10f3000 mrs r3, CPSR 3fac: e129f005 msr CPSR_fc, r5 3fb0: e129f003 msr CPSR_fc, r3 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 3fb4: e5943050 ldr r3, [r4, #80] 3fb8: e3530002 cmp r3, #2 ; 0x2 3fbc: 0a000001 beq 3fc8 <_Event_Surrender+0x100> _ISR_Enable( level ); 3fc0: e129f005 msr CPSR_fc, r5 3fc4: ea000004 b 3fdc <_Event_Surrender+0x114> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 3fc8: e3a03003 mov r3, #3 ; 0x3 3fcc: e5843050 str r3, [r4, #80] _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 3fd0: e129f005 msr CPSR_fc, r5 (void) _Watchdog_Remove( &the_thread->Timer ); 3fd4: e2840048 add r0, r4, #72 ; 0x48 3fd8: eb000d17 bl 743c <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 3fdc: e59f101c ldr r1, [pc, #28] ; 4000 <_Event_Surrender+0x138> 3fe0: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } 3fe4: e8bd40f0 pop {r4, r5, r6, r7, lr} 3fe8: ea00077c b 5de0 <_Thread_Clear_state> _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 3fec: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 3ff0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 3ff4: 00015420 .word 0x00015420 3ff8: 00015444 .word 0x00015444 3ffc: 000155e4 .word 0x000155e4 4000: 1003fff8 .word 0x1003fff8 00004004 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 4004: e52de004 push {lr} ; (str lr, [sp, #-4]!) 4008: e24dd004 sub sp, sp, #4 ; 0x4 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 400c: e1a0100d mov r1, sp 4010: eb00087b bl 6204 <_Thread_Get> switch ( location ) { 4014: e59d2000 ldr r2, [sp] 4018: e3520000 cmp r2, #0 ; 0x0 401c: 1a00001e bne 409c <_Event_Timeout+0x98> * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 4020: e10f1000 mrs r1, CPSR 4024: e38130c0 orr r3, r1, #192 ; 0xc0 4028: e129f003 msr CPSR_fc, r3 if ( !the_thread->Wait.count ) { /* verify thread is waiting */ 402c: e5903024 ldr r3, [r0, #36] 4030: e3530000 cmp r3, #0 ; 0x0 4034: 1a000005 bne 4050 <_Event_Timeout+0x4c> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4038: e59f2064 ldr r2, [pc, #100] ; 40a4 <_Event_Timeout+0xa0> <== NOT EXECUTED 403c: e5923000 ldr r3, [r2] <== NOT EXECUTED 4040: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 4044: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Unnest_dispatch(); _ISR_Enable( level ); 4048: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 404c: ea000012 b 409c <_Event_Timeout+0x98> <== NOT EXECUTED return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 4050: e59f3050 ldr r3, [pc, #80] ; 40a8 <_Event_Timeout+0xa4> 4054: e5933000 ldr r3, [r3] 4058: e1500003 cmp r0, r3 _Thread_Unnest_dispatch(); _ISR_Enable( level ); return; } the_thread->Wait.count = 0; 405c: e5802024 str r2, [r0, #36] if ( _Thread_Is_executing( the_thread ) ) { 4060: 1a000004 bne 4078 <_Event_Timeout+0x74> Thread_blocking_operation_States sync = _Event_Sync_state; 4064: e59f2040 ldr r2, [pc, #64] ; 40ac <_Event_Timeout+0xa8> <== NOT EXECUTED 4068: e5923000 ldr r3, [r2] <== NOT EXECUTED if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || 406c: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 4070: 93a03002 movls r3, #2 ; 0x2 <== NOT EXECUTED 4074: 95823000 strls r3, [r2] <== NOT EXECUTED } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 4078: e3a03006 mov r3, #6 ; 0x6 407c: e5803034 str r3, [r0, #52] _ISR_Enable( level ); 4080: e129f001 msr CPSR_fc, r1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4084: e59f1024 ldr r1, [pc, #36] ; 40b0 <_Event_Timeout+0xac> 4088: eb000754 bl 5de0 <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 408c: e59f2010 ldr r2, [pc, #16] ; 40a4 <_Event_Timeout+0xa0> 4090: e5923000 ldr r3, [r2] 4094: e2433001 sub r3, r3, #1 ; 0x1 4098: e5823000 str r3, [r2] case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 409c: e28dd004 add sp, sp, #4 ; 0x4 40a0: e8bd8000 pop {pc} 40a4: 0001538c .word 0x0001538c 40a8: 00015444 .word 0x00015444 40ac: 000155e4 .word 0x000155e4 40b0: 1003fff8 .word 0x1003fff8 00009688 <_Heap_Allocate>: void *_Heap_Allocate( Heap_Control *the_heap, size_t size ) { 9688: e92d4070 push {r4, r5, r6, lr} 968c: e1a04000 mov r4, r0 Heap_Block *the_block; void *ptr = NULL; Heap_Statistics *const stats = &the_heap->stats; Heap_Block *const tail = _Heap_Tail(the_heap); the_size = 9690: e5942014 ldr r2, [r4, #20] 9694: e1a00001 mov r0, r1 9698: e5941010 ldr r1, [r4, #16] 969c: ebffef2c bl 5354 <_Heap_Calc_block_size> _Heap_Calc_block_size(size, the_heap->page_size, the_heap->min_block_size); if(the_size == 0) 96a0: e3500000 cmp r0, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 96a4: 15945008 ldrne r5, [r4, #8] 96a8: 13a06000 movne r6, #0 ; 0x0 96ac: 1a000012 bne 96fc <_Heap_Allocate+0x74> 96b0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); /* Don't bother to mask out the HEAP_PREV_USED bit as it won't change the result of the comparison. */ if(the_block->size >= the_size) { 96b4: e5953004 ldr r3, [r5, #4] 96b8: e1530000 cmp r3, r0 96bc: 3a00000c bcc 96f4 <_Heap_Allocate+0x6c> (void)_Heap_Block_allocate(the_heap, the_block, the_size ); 96c0: e1a02000 mov r2, r0 96c4: e1a01005 mov r1, r5 96c8: e1a00004 mov r0, r4 96cc: ebffef30 bl 5394 <_Heap_Block_allocate> ptr = _Heap_User_area(the_block); stats->allocs += 1; stats->searches += search_count + 1; 96d0: e2842048 add r2, r4, #72 ; 0x48 96d4: e892000c ldm r2, {r2, r3} 96d8: e2833001 add r3, r3, #1 ; 0x1 if(the_block->size >= the_size) { (void)_Heap_Block_allocate(the_heap, the_block, the_size ); ptr = _Heap_User_area(the_block); stats->allocs += 1; 96dc: e2822001 add r2, r2, #1 ; 0x1 stats->searches += search_count + 1; 96e0: e0833006 add r3, r3, r6 if(the_block->size >= the_size) { (void)_Heap_Block_allocate(the_heap, the_block, the_size ); ptr = _Heap_User_area(the_block); stats->allocs += 1; 96e4: e5842048 str r2, [r4, #72] stats->searches += search_count + 1; 96e8: e584304c str r3, [r4, #76] 96ec: e2850008 add r0, r5, #8 ; 0x8 96f0: ea000004 b 9708 <_Heap_Allocate+0x80> return NULL; /* Find large enough free block. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; the_block = the_block->next, ++search_count) 96f4: e5955008 ldr r5, [r5, #8] 96f8: e2866001 add r6, r6, #1 ; 0x1 if(the_size == 0) return NULL; /* Find large enough free block. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 96fc: e1550004 cmp r5, r4 9700: 1affffeb bne 96b4 <_Heap_Allocate+0x2c> 9704: e3a00000 mov r0, #0 ; 0x0 _HAssert(_Heap_Is_aligned_ptr(ptr, the_heap->page_size)); break; } } if(stats->max_search < search_count) 9708: e5943044 ldr r3, [r4, #68] 970c: e1530006 cmp r3, r6 stats->max_search = search_count; 9710: 35846044 strcc r6, [r4, #68] return ptr; } 9714: e8bd8070 pop {r4, r5, r6, pc} 00027bd0 <_Heap_Get_information>: Heap_Block *const end = the_heap->final; _HAssert(the_block->prev_size == HEAP_PREV_USED); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; 27bd0: e3a03000 mov r3, #0 ; 0x0 Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 27bd4: e92d4030 push {r4, r5, lr} 27bd8: e1a0c001 mov ip, r1 the_info->Free.number = 0; the_info->Free.total = 0; the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; 27bdc: e5813010 str r3, [r1, #16] Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; 27be0: e5905024 ldr r5, [r0, #36] _HAssert(the_block->prev_size == HEAP_PREV_USED); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; 27be4: e5813000 str r3, [r1] the_info->Free.total = 0; 27be8: e5813008 str r3, [r1, #8] the_info->Free.largest = 0; 27bec: e5813004 str r3, [r1, #4] the_info->Used.number = 0; 27bf0: e581300c str r3, [r1, #12] the_info->Used.total = 0; 27bf4: e5813014 str r3, [r1, #20] Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->start; 27bf8: e5902020 ldr r2, [r0, #32] 27bfc: ea00001e b 27c7c <_Heap_Get_information+0xac> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 27c00: e5923004 ldr r3, [r2, #4] 27c04: e3c30001 bic r0, r3, #1 ; 0x1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 27c08: e0824000 add r4, r2, r0 while ( the_block != end ) { uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { 27c0c: e5943004 ldr r3, [r4, #4] 27c10: e3130001 tst r3, #1 ; 0x1 27c14: 0a000009 beq 27c40 <_Heap_Get_information+0x70> the_info->Used.number++; 27c18: e59c300c ldr r3, [ip, #12] the_info->Used.total += the_size; 27c1c: e59c1014 ldr r1, [ip, #20] if ( the_info->Used.largest < the_size ) 27c20: e59c2010 ldr r2, [ip, #16] while ( the_block != end ) { uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { the_info->Used.number++; 27c24: e2833001 add r3, r3, #1 ; 0x1 the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) 27c28: e1520000 cmp r2, r0 uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { the_info->Used.number++; the_info->Used.total += the_size; 27c2c: e0811000 add r1, r1, r0 while ( the_block != end ) { uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { the_info->Used.number++; 27c30: e58c300c str r3, [ip, #12] the_info->Used.total += the_size; 27c34: e58c1014 str r1, [ip, #20] if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; 27c38: 358c0010 strcc r0, [ip, #16] 27c3c: ea00000d b 27c78 <_Heap_Get_information+0xa8> } else { the_info->Free.number++; 27c40: e59c3000 ldr r3, [ip] the_info->Free.total += the_size; 27c44: e59c1008 ldr r1, [ip, #8] if ( the_info->Free.largest < the_size ) 27c48: e59c2004 ldr r2, [ip, #4] the_info->Used.number++; the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; } else { the_info->Free.number++; 27c4c: e2833001 add r3, r3, #1 ; 0x1 the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) 27c50: e1520000 cmp r2, r0 the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; } else { the_info->Free.number++; the_info->Free.total += the_size; 27c54: e0811000 add r1, r1, r0 if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; 27c58: 358c0004 strcc r0, [ip, #4] the_info->Used.number++; the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; } else { the_info->Free.number++; 27c5c: e58c3000 str r3, [ip] the_info->Free.total += the_size; 27c60: e58c1008 str r1, [ip, #8] if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; if ( the_size != next_block->prev_size ) 27c64: e5943000 ldr r3, [r4] 27c68: e1500003 cmp r0, r3 27c6c: 0a000001 beq 27c78 <_Heap_Get_information+0xa8> 27c70: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 27c74: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 27c78: e1a02004 mov r2, r4 the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 27c7c: e1520005 cmp r2, r5 27c80: 1affffde bne 27c00 <_Heap_Get_information+0x30> } /* 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_OVERHEAD; 27c84: e59c3014 ldr r3, [ip, #20] 27c88: e2833008 add r3, r3, #8 ; 0x8 27c8c: e58c3014 str r3, [ip, #20] 27c90: e3a00000 mov r0, #0 ; 0x0 return HEAP_GET_INFORMATION_SUCCESSFUL; } 27c94: e8bd8030 pop {r4, r5, pc} 000131f4 <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 131f4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 131f8: e1a05000 mov r5, r0 Heap_Block *next_next_block; uint32_t old_block_size; uint32_t old_user_size; uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; 131fc: e5900014 ldr r0, [r0, #20] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 13200: e24dd00c sub sp, sp, #12 ; 0xc Heap_Block *next_next_block; uint32_t old_block_size; uint32_t old_user_size; uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; 13204: e58d0004 str r0, [sp, #4] uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; *avail_mem_size = 0; 13208: e59d0030 ldr r0, [sp, #48] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 1320c: e1a09003 mov r9, r3 uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; 13210: e3a03000 mov r3, #0 ; 0x0 uint32_t old_block_size; uint32_t old_user_size; uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; uint32_t const page_size = the_heap->page_size; 13214: e595c010 ldr ip, [r5, #16] *old_mem_size = 0; 13218: e5893000 str r3, [r9] *avail_mem_size = 0; 1321c: e5803000 str r3, [r0] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 13220: e1a04001 mov r4, r1 /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 13224: e1a00001 mov r0, r1 13228: e5951010 ldr r1, [r5, #16] 1322c: e1a08002 mov r8, r2 uint32_t old_block_size; uint32_t old_user_size; uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; uint32_t const page_size = the_heap->page_size; 13230: e58dc008 str ip, [sp, #8] 13234: ebfff8ca bl 11564 <__umodsi3> 13238: e2443008 sub r3, r4, #8 ; 0x8 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in ( Heap_Control *the_heap, Heap_Block *the_block ) { return _Addresses_Is_in_range( the_block, the_heap->start, the_heap->final ); 1323c: e2851020 add r1, r5, #32 ; 0x20 13240: e8910006 ldm r1, {r1, r2} /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 13244: e0607003 rsb r7, r0, r3 *old_mem_size = 0; *avail_mem_size = 0; _Heap_Start_of_block(the_heap, starting_address, &the_block); _HAssert(_Heap_Is_block_in(the_heap, the_block)); if (!_Heap_Is_block_in(the_heap, the_block)) 13248: e1570001 cmp r7, r1 1324c: 33a03000 movcc r3, #0 ; 0x0 13250: 23a03001 movcs r3, #1 ; 0x1 13254: e1570002 cmp r7, r2 13258: 83a03000 movhi r3, #0 ; 0x0 1325c: e3530000 cmp r3, #0 ; 0x0 13260: 0a000075 beq 1343c <_Heap_Resize_block+0x248> return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 13264: e597c004 ldr ip, [r7, #4] */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 13268: e3cc3001 bic r3, ip, #1 ; 0x1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 1326c: e0876003 add r6, r7, r3 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 13270: e58d3000 str r3, [sp] old_block_size = _Heap_Block_size(the_block); next_block = _Heap_Block_at(the_block, old_block_size); _HAssert(_Heap_Is_block_in(the_heap, next_block)); _HAssert(_Heap_Is_prev_used(next_block)); if ( !_Heap_Is_block_in(the_heap, next_block) || 13274: e1560001 cmp r6, r1 13278: 33a03000 movcc r3, #0 ; 0x0 1327c: 23a03001 movcs r3, #1 ; 0x1 13280: e1560002 cmp r6, r2 13284: 83a03000 movhi r3, #0 ; 0x0 13288: e3530000 cmp r3, #0 ; 0x0 1328c: 0a00006a beq 1343c <_Heap_Resize_block+0x248> */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 13290: e5963004 ldr r3, [r6, #4] 13294: e3130001 tst r3, #1 ; 0x1 13298: 0a000067 beq 1343c <_Heap_Resize_block+0x248> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 1329c: e3c3a001 bic sl, r3, #1 ; 0x1 !_Heap_Is_prev_used(next_block)) return HEAP_RESIZE_FATAL_ERROR; next_block_size = _Heap_Block_size(next_block); next_next_block = _Heap_Block_at(next_block, next_block_size); next_is_used = (next_block == the_heap->final) || 132a0: e1560002 cmp r6, r2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 132a4: e086300a add r3, r6, sl 132a8: 15933004 ldrne r3, [r3, #4] 132ac: 12032001 andne r2, r3, #1 ; 0x1 _Heap_Is_prev_used(next_next_block); /* See _Heap_Size_of_user_area() source for explanations */ old_user_size = _Addresses_Subtract(next_block, starting_address) 132b0: e0643006 rsb r3, r4, r6 132b4: e2830004 add r0, r3, #4 ; 0x4 !_Heap_Is_prev_used(next_block)) return HEAP_RESIZE_FATAL_ERROR; next_block_size = _Heap_Block_size(next_block); next_next_block = _Heap_Block_at(next_block, next_block_size); next_is_used = (next_block == the_heap->final) || 132b8: 03a02001 moveq r2, #1 ; 0x1 old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 132bc: e1580000 cmp r8, r0 /* See _Heap_Size_of_user_area() source for explanations */ old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; 132c0: e5890000 str r0, [r9] !_Heap_Is_prev_used(next_block)) return HEAP_RESIZE_FATAL_ERROR; next_block_size = _Heap_Block_size(next_block); next_next_block = _Heap_Block_at(next_block, next_block_size); next_is_used = (next_block == the_heap->final) || 132c4: e202b0ff and fp, r2, #255 ; 0xff _Heap_Start_of_block(the_heap, starting_address, &the_block); _HAssert(_Heap_Is_block_in(the_heap, the_block)); if (!_Heap_Is_block_in(the_heap, the_block)) return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 132c8: e20c9001 and r9, ip, #1 ; 0x1 old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 132cc: 9a000019 bls 13338 <_Heap_Resize_block+0x144> /* Need to extend the block: allocate part of the next block and then merge 'the_block' and allocated block together. */ if (next_is_used) /* Next block is in use, -- no way to extend */ 132d0: e35b0000 cmp fp, #0 ; 0x0 132d4: 1a00005a bne 13444 <_Heap_Resize_block+0x250> return HEAP_RESIZE_UNSATISFIED; else { uint32_t add_block_size = size - old_user_size; 132d8: e0604008 rsb r4, r0, r8 uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 132dc: e1a00004 mov r0, r4 132e0: e59d1008 ldr r1, [sp, #8] 132e4: ebfff89e bl 11564 <__umodsi3> *value = r ? v - r + a : v; 132e8: e3500000 cmp r0, #0 ; 0x0 132ec: 159dc008 ldrne ip, [sp, #8] 132f0: e59d2004 ldr r2, [sp, #4] 132f4: 1084300c addne r3, r4, ip 132f8: 10604003 rsbne r4, r0, r3 132fc: e1540002 cmp r4, r2 13300: 21a02004 movcs r2, r4 _Heap_Align_up(&add_block_size, page_size); if (add_block_size < min_block_size) add_block_size = min_block_size; if (add_block_size > next_block_size) 13304: e152000a cmp r2, sl 13308: 8a00004d bhi 13444 <_Heap_Resize_block+0x250> return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = 1330c: e1a01006 mov r1, r6 13310: e1a00005 mov r0, r5 13314: ebffc81e bl 5394 <_Heap_Block_allocate> _Heap_Block_allocate(the_heap, next_block, add_block_size); /* Merge two subsequent blocks */ the_block->size = (old_block_size + add_block_size) | prev_used_flag; 13318: e59d2000 ldr r2, [sp] 1331c: e0800002 add r0, r0, r2 13320: e1800009 orr r0, r0, r9 13324: e5870004 str r0, [r7, #4] --stats->used_blocks; 13328: e5953040 ldr r3, [r5, #64] 1332c: e2433001 sub r3, r3, #1 ; 0x1 13330: e5853040 str r3, [r5, #64] 13334: ea00003b b 13428 <_Heap_Resize_block+0x234> } } else { /* Calculate how much memory we could free */ uint32_t free_block_size = old_user_size - size; 13338: e0684000 rsb r4, r8, r0 uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 1333c: e1a00004 mov r0, r4 13340: e59d1008 ldr r1, [sp, #8] 13344: ebfff886 bl 11564 <__umodsi3> _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 13348: e0544000 subs r4, r4, r0 1334c: 0a000035 beq 13428 <_Heap_Resize_block+0x234> /* To free some memory the block should be shortened so that it can can hold 'size' user bytes and still remain not shorter than 'min_block_size'. */ uint32_t new_block_size = old_block_size - free_block_size; 13350: e89d1008 ldm sp, {r3, ip} 13354: e0640003 rsb r0, r4, r3 if (new_block_size < min_block_size) { 13358: e150000c cmp r0, ip 1335c: 2a000007 bcs 13380 <_Heap_Resize_block+0x18c> uint32_t delta = min_block_size - new_block_size; 13360: e060300c rsb r3, r0, ip _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 13364: e0544003 subs r4, r4, r3 ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } new_block_size += delta; 13368: 10800003 addne r0, r0, r3 if (new_block_size < min_block_size) { uint32_t delta = min_block_size - new_block_size; _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { ++stats->resizes; 1336c: 05953054 ldreq r3, [r5, #84] 13370: 02833001 addeq r3, r3, #1 ; 0x1 13374: 05853054 streq r3, [r5, #84] 13378: 01a00004 moveq r0, r4 1337c: 0a000031 beq 13448 <_Heap_Resize_block+0x254> _HAssert(new_block_size >= min_block_size); _HAssert(new_block_size + free_block_size == old_block_size); _HAssert(_Heap_Is_aligned(new_block_size, page_size)); _HAssert(_Heap_Is_aligned(free_block_size, page_size)); if (!next_is_used) { 13380: e35b0000 cmp fp, #0 ; 0x0 13384: 1a000013 bne 133d8 <_Heap_Resize_block+0x1e4> /* Extend the next block to the low addresses by 'free_block_size' */ Heap_Block *const new_next_block = _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; 13388: e084200a add r2, r4, sl RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 1338c: e0871000 add r1, r7, r0 _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 13390: e1803009 orr r3, r0, r9 new_next_block->size = new_next_block_size | HEAP_PREV_USED; 13394: e3820001 orr r0, r2, #1 ; 0x1 Heap_Block *const new_next_block = _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 13398: e5873004 str r3, [r7, #4] new_next_block->size = new_next_block_size | HEAP_PREV_USED; next_next_block->prev_size = new_next_block_size; 1339c: e786200a str r2, [r6, sl] _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; new_next_block->size = new_next_block_size | HEAP_PREV_USED; 133a0: e5810004 str r0, [r1, #4] next_next_block->prev_size = new_next_block_size; _Heap_Block_replace(next_block, new_next_block); the_heap->stats.free_size += free_block_size; 133a4: e5953030 ldr r3, [r5, #48] 133a8: e0833004 add r3, r3, r4 Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 133ac: e596000c ldr r0, [r6, #12] Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 133b0: e596c008 ldr ip, [r6, #8] 133b4: e5853030 str r3, [r5, #48] *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 133b8: e59d3030 ldr r3, [sp, #48] 133bc: e2422004 sub r2, r2, #4 ; 0x4 Heap_Block *prev = block->prev; block = new_block; block->next = next; 133c0: e581c008 str ip, [r1, #8] block->prev = prev; 133c4: e581000c str r0, [r1, #12] 133c8: e5832000 str r2, [r3] next->prev = prev->next = block; 133cc: e5801008 str r1, [r0, #8] 133d0: e58c100c str r1, [ip, #12] 133d4: ea000013 b 13428 <_Heap_Resize_block+0x234> } else if (free_block_size >= min_block_size) { 133d8: e59dc004 ldr ip, [sp, #4] <== NOT EXECUTED 133dc: e154000c cmp r4, ip <== NOT EXECUTED 133e0: 3a000010 bcc 13428 <_Heap_Resize_block+0x234> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 133e4: e0871000 add r1, r7, r0 <== NOT EXECUTED /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; 133e8: e1803009 orr r3, r0, r9 <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 133ec: e3842001 orr r2, r4, #1 ; 0x1 <== NOT EXECUTED the_heap->stats.free_size += free_block_size; *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; } else if (free_block_size >= min_block_size) { /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; 133f0: e5873004 str r3, [r7, #4] <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 133f4: e5812004 str r2, [r1, #4] <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 133f8: e5953040 ldr r3, [r5, #64] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 133fc: e5952050 ldr r2, [r5, #80] <== NOT EXECUTED } else if (free_block_size >= min_block_size) { /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; ++stats->used_blocks; /* We have created used block */ 13400: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 13404: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED } else if (free_block_size >= min_block_size) { /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; ++stats->used_blocks; /* We have created used block */ 13408: e5853040 str r3, [r5, #64] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 1340c: e5852050 str r2, [r5, #80] <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 13410: e2811008 add r1, r1, #8 ; 0x8 <== NOT EXECUTED 13414: e1a00005 mov r0, r5 <== NOT EXECUTED 13418: ebffd8be bl 9718 <_Heap_Free> <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 1341c: e59d0030 ldr r0, [sp, #48] <== NOT EXECUTED 13420: e2443004 sub r3, r4, #4 ; 0x4 <== NOT EXECUTED 13424: e5803000 str r3, [r0] <== NOT EXECUTED } } } ++stats->resizes; 13428: e5953054 ldr r3, [r5, #84] 1342c: e2833001 add r3, r3, #1 ; 0x1 13430: e5853054 str r3, [r5, #84] 13434: e3a00000 mov r0, #0 ; 0x0 13438: ea000002 b 13448 <_Heap_Resize_block+0x254> return HEAP_RESIZE_SUCCESSFUL; 1343c: e3a00002 mov r0, #2 ; 0x2 13440: ea000000 b 13448 <_Heap_Resize_block+0x254> 13444: e3a00001 mov r0, #1 ; 0x1 } 13448: e28dd00c add sp, sp, #12 ; 0xc 1344c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 0000cd08 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { cd08: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Heap_Block *the_block = the_heap->start; cd0c: e5907020 ldr r7, [r0, #32] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { cd10: e5973004 ldr r3, [r7, #4] /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) cd14: e2516000 subs r6, r1, #0 ; 0x0 source = the_heap->stats.instance; cd18: b5906028 ldrlt r6, [r0, #40] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { cd1c: e3130001 tst r3, #1 ; 0x1 bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { cd20: e1a05000 mov r5, r0 Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; cd24: e590b024 ldr fp, [r0, #36] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { cd28: 13a04000 movne r4, #0 ; 0x0 cd2c: 1a000003 bne cd40 <_Heap_Walk+0x38> printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); cd30: e59f01a0 ldr r0, [pc, #416] ; ced8 <_Heap_Walk+0x1d0> <== NOT EXECUTED cd34: e1a01006 mov r1, r6 <== NOT EXECUTED cd38: ebffde35 bl 4614 <== NOT EXECUTED cd3c: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED error = 1; } if (the_block->prev_size != the_heap->page_size) { cd40: e5972000 ldr r2, [r7] cd44: e5953010 ldr r3, [r5, #16] cd48: e1520003 cmp r2, r3 cd4c: 0a00004c beq ce84 <_Heap_Walk+0x17c> printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); cd50: e59f0184 ldr r0, [pc, #388] ; cedc <_Heap_Walk+0x1d4> <== NOT EXECUTED cd54: e1a01006 mov r1, r6 <== NOT EXECUTED cd58: ebffde2d bl 4614 <== NOT EXECUTED cd5c: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED cd60: ea000047 b ce84 <_Heap_Walk+0x17c> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); cd64: e5979004 ldr r9, [r7, #4] printk(" prev_size %d", the_block->prev_size); else printk(" (prev_size) %d", the_block->prev_size); } if (!_Heap_Is_block_in(the_heap, next_block)) { cd68: e5952020 ldr r2, [r5, #32] cd6c: e3c9a001 bic sl, r9, #1 ; 0x1 cd70: e5953024 ldr r3, [r5, #36] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); cd74: e087800a add r8, r7, sl cd78: e1580002 cmp r8, r2 cd7c: 33a01000 movcc r1, #0 ; 0x0 cd80: 23a01001 movcs r1, #1 ; 0x1 cd84: e1580003 cmp r8, r3 cd88: 83a01000 movhi r1, #0 ; 0x0 cd8c: e3510000 cmp r1, #0 ; 0x0 cd90: 1a000004 bne cda8 <_Heap_Walk+0xa0> if (do_dump) printk("\n"); printk("PASS: %d !block %p is out of heap\n", source, next_block); cd94: e1a02008 mov r2, r8 <== NOT EXECUTED cd98: e59f0140 ldr r0, [pc, #320] ; cee0 <_Heap_Walk+0x1d8> <== NOT EXECUTED cd9c: e1a01006 mov r1, r6 <== NOT EXECUTED cda0: ebffde1b bl 4614 <== NOT EXECUTED cda4: ea000039 b ce90 <_Heap_Walk+0x188> <== NOT EXECUTED error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { cda8: e5983004 ldr r3, [r8, #4] cdac: e3130001 tst r3, #1 ; 0x1 cdb0: 1a00001e bne ce30 <_Heap_Walk+0x128> if (do_dump) printk( " prev %p next %p", the_block->prev, the_block->next); if (_Heap_Block_size(the_block) != next_block->prev_size) { cdb4: e5983000 ldr r3, [r8] cdb8: e15a0003 cmp sl, r3 cdbc: 0a000003 beq cdd0 <_Heap_Walk+0xc8> if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); cdc0: e59f011c ldr r0, [pc, #284] ; cee4 <_Heap_Walk+0x1dc> <== NOT EXECUTED cdc4: e1a01006 mov r1, r6 <== NOT EXECUTED cdc8: ebffde11 bl 4614 <== NOT EXECUTED cdcc: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED error = 1; } if (!prev_used) { cdd0: e3190001 tst r9, #1 ; 0x1 cdd4: 1a000006 bne cdf4 <_Heap_Walk+0xec> if (do_dump || error) printk("\n"); cdd8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED cddc: 159f0104 ldrne r0, [pc, #260] ; cee8 <_Heap_Walk+0x1e0> <== NOT EXECUTED cde0: 1bffde0b blne 4614 <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); cde4: e59f0100 ldr r0, [pc, #256] ; ceec <_Heap_Walk+0x1e4> <== NOT EXECUTED cde8: e1a01006 mov r1, r6 <== NOT EXECUTED cdec: ebffde08 bl 4614 <== NOT EXECUTED cdf0: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; cdf4: e5953008 ldr r3, [r5, #8] cdf8: ea000000 b ce00 <_Heap_Walk+0xf8> } { /* Check if 'the_block' is in the free block list */ Heap_Block* block = _Heap_First(the_heap); while(block != the_block && block != tail) block = block->next; cdfc: e5933008 ldr r3, [r3, #8] error = 1; } { /* Check if 'the_block' is in the free block list */ Heap_Block* block = _Heap_First(the_heap); while(block != the_block && block != tail) ce00: e1530007 cmp r3, r7 ce04: 11530005 cmpne r3, r5 ce08: 1afffffb bne cdfc <_Heap_Walk+0xf4> block = block->next; if(block != the_block) { ce0c: e1530007 cmp r3, r7 ce10: 0a000006 beq ce30 <_Heap_Walk+0x128> if (do_dump || error) printk("\n"); ce14: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED ce18: 159f00c8 ldrne r0, [pc, #200] ; cee8 <_Heap_Walk+0x1e0> <== NOT EXECUTED ce1c: 1bffddfc blne 4614 <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); ce20: e59f00c8 ldr r0, [pc, #200] ; cef0 <_Heap_Walk+0x1e8> <== NOT EXECUTED ce24: e1a01006 mov r1, r6 <== NOT EXECUTED ce28: ebffddf9 bl 4614 <== NOT EXECUTED ce2c: ea000001 b ce38 <_Heap_Walk+0x130> <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); ce30: e3540000 cmp r4, #0 ; 0x0 ce34: 0a000002 beq ce44 <_Heap_Walk+0x13c> ce38: e59f00a8 ldr r0, [pc, #168] ; cee8 <_Heap_Walk+0x1e0> <== NOT EXECUTED ce3c: ebffddf4 bl 4614 <== NOT EXECUTED ce40: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { ce44: e5953014 ldr r3, [r5, #20] ce48: e15a0003 cmp sl, r3 printk("PASS: %d !block size is too small\n", source); ce4c: 359f00a0 ldrcc r0, [pc, #160] ; cef4 <_Heap_Walk+0x1ec> ce50: 3a000005 bcc ce6c <_Heap_Walk+0x164> error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { ce54: e1a0000a mov r0, sl ce58: e5951010 ldr r1, [r5, #16] ce5c: eb0025b9 bl 16548 <__umodsi3> ce60: e3500000 cmp r0, #0 ; 0x0 ce64: 0a000003 beq ce78 <_Heap_Walk+0x170> printk("PASS: %d !block size is misaligned\n", source); ce68: e59f0088 ldr r0, [pc, #136] ; cef8 <_Heap_Walk+0x1f0> <== NOT EXECUTED ce6c: e1a01006 mov r1, r6 <== NOT EXECUTED ce70: ebffdde7 bl 4614 <== NOT EXECUTED ce74: ea000005 b ce90 <_Heap_Walk+0x188> <== NOT EXECUTED error = 1; } if (++passes > (do_dump ? 10 : 0) && error) ce78: e3540000 cmp r4, #0 ; 0x0 ce7c: 1a000003 bne ce90 <_Heap_Walk+0x188> break; ce80: e1a07008 mov r7, r8 if (the_block->prev_size != the_heap->page_size) { printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); error = 1; } while ( the_block != end ) { ce84: e157000b cmp r7, fp ce88: 1affffb5 bne cd64 <_Heap_Walk+0x5c> ce8c: ea000005 b cea8 <_Heap_Walk+0x1a0> the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", ce90: e1a0300b mov r3, fp <== NOT EXECUTED ce94: e59f0060 ldr r0, [pc, #96] ; cefc <_Heap_Walk+0x1f4> <== NOT EXECUTED ce98: e1a01006 mov r1, r6 <== NOT EXECUTED ce9c: e1a02007 mov r2, r7 <== NOT EXECUTED cea0: ebffdddb bl 4614 <== NOT EXECUTED cea4: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); cea8: e5973004 ldr r3, [r7, #4] source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { ceac: e5950010 ldr r0, [r5, #16] ceb0: e3c32001 bic r2, r3, #1 ; 0x1 ceb4: e1520000 cmp r2, r0 ceb8: 0a000004 beq ced0 <_Heap_Walk+0x1c8> printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, cebc: e1a03000 mov r3, r0 <== NOT EXECUTED cec0: e1a01006 mov r1, r6 <== NOT EXECUTED cec4: e59f0034 ldr r0, [pc, #52] ; cf00 <_Heap_Walk+0x1f8> <== NOT EXECUTED cec8: ebffddd1 bl 4614 <== NOT EXECUTED cecc: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } ced0: e1a00004 mov r0, r4 ced4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} ced8: 00019a2e .word 0x00019a2e cedc: 00019a64 .word 0x00019a64 cee0: 00019a96 .word 0x00019a96 cee4: 00019ab9 .word 0x00019ab9 cee8: 00019431 .word 0x00019431 ceec: 00019ae4 .word 0x00019ae4 cef0: 00019b0e .word 0x00019b0e cef4: 00019b37 .word 0x00019b37 cef8: 00019b5a .word 0x00019b5a cefc: 00019b7e .word 0x00019b7e cf00: 00019bb9 .word 0x00019bb9 0000990c <_Objects_API_maximum_class>: int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 990c: e2400001 sub r0, r0, #1 ; 0x1 9910: e3500003 cmp r0, #3 ; 0x3 9914: 979ff100 ldrls pc, [pc, r0, lsl #2] 9918: ea00000b b 994c <_Objects_API_maximum_class+0x40> 991c: 00009934 .word 0x00009934 <== NOT EXECUTED 9920: 0000992c .word 0x0000992c <== NOT EXECUTED 9924: 0000993c .word 0x0000993c <== NOT EXECUTED 9928: 00009944 .word 0x00009944 <== NOT EXECUTED 992c: e3a0000a mov r0, #10 ; 0xa 9930: e12fff1e bx lr 9934: e3a00002 mov r0, #2 ; 0x2 9938: e12fff1e bx lr 993c: e3a0000c mov r0, #12 ; 0xc <== NOT EXECUTED 9940: e12fff1e bx lr <== NOT EXECUTED case OBJECTS_INTERNAL_API: return OBJECTS_INTERNAL_CLASSES_LAST; case OBJECTS_CLASSIC_API: return OBJECTS_RTEMS_CLASSES_LAST; case OBJECTS_POSIX_API: return OBJECTS_POSIX_CLASSES_LAST; 9944: e3a00008 mov r0, #8 ; 0x8 9948: e12fff1e bx lr case OBJECTS_ITRON_API: return OBJECTS_ITRON_CLASSES_LAST; 994c: e3e00000 mvn r0, #0 ; 0x0 case OBJECTS_NO_API: default: break; } return -1; } 9950: e12fff1e bx lr 00005548 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 5548: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( Objects_Id id ) { return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS; 554c: e1d060b8 ldrh r6, [r0, #8] minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 5550: e1d041b0 ldrh r4, [r0, #16] 5554: e1540006 cmp r4, r6 5558: 33a07000 movcc r7, #0 ; 0x0 */ void _Objects_Extend_information( Objects_Information *information ) { 555c: e24dd014 sub sp, sp, #20 ; 0x14 5560: e1a05000 mov r5, r0 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 5564: 31a0a006 movcc sl, r6 5568: 31a08007 movcc r8, r7 556c: 3a00000f bcc 55b0 <_Objects_Extend_information+0x68> block_count = 0; else { block_count = information->maximum / information->allocation_size; 5570: e5909014 ldr r9, [r0, #20] 5574: e1a00004 mov r0, r4 5578: e1a01009 mov r1, r9 557c: eb002fb4 bl 11454 <__aeabi_uidiv> 5580: e1a0a006 mov sl, r6 5584: e1a07000 mov r7, r0 5588: e3a08000 mov r8, #0 ; 0x0 558c: ea000005 b 55a8 <_Objects_Extend_information+0x60> for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 5590: e5953034 ldr r3, [r5, #52] 5594: e7933108 ldr r3, [r3, r8, lsl #2] 5598: e3530000 cmp r3, #0 ; 0x0 559c: 0a000003 beq 55b0 <_Objects_Extend_information+0x68> break; else index_base += information->allocation_size; 55a0: e08aa009 add sl, sl, r9 if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 55a4: e2888001 add r8, r8, #1 ; 0x1 55a8: e1580007 cmp r8, r7 55ac: 3afffff7 bcc 5590 <_Objects_Extend_information+0x48> /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 55b0: e15a0004 cmp sl, r4 55b4: 3a000056 bcc 5714 <_Objects_Extend_information+0x1cc> /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 55b8: e5d52012 ldrb r2, [r5, #18] * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 55bc: e5953014 ldr r3, [r5, #20] /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 55c0: e3520000 cmp r2, #0 ; 0x0 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 55c4: e0843003 add r3, r4, r3 55c8: e58d3004 str r3, [sp, #4] /* * Up the block count and maximum */ block_count++; 55cc: e2874001 add r4, r7, #1 ; 0x1 55d0: e0832006 add r2, r3, r6 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 55d4: 0a000007 beq 55f8 <_Objects_Extend_information+0xb0> object_blocks = (void**) 55d8: e3a03003 mov r3, #3 ; 0x3 55dc: e0202493 mla r0, r3, r4, r2 55e0: e1a00100 lsl r0, r0, #2 55e4: eb0007e6 bl 7584 <_Workspace_Allocate> block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 55e8: e3500000 cmp r0, #0 ; 0x0 55ec: e58d0000 str r0, [sp] 55f0: 1a000005 bne 560c <_Objects_Extend_information+0xc4> 55f4: ea000078 b 57dc <_Objects_Extend_information+0x294> <== NOT EXECUTED return; } else { object_blocks = (void**) 55f8: e3a03003 mov r3, #3 ; 0x3 55fc: e0202493 mla r0, r3, r4, r2 5600: e1a00100 lsl r0, r0, #2 5604: eb0007e2 bl 7594 <_Workspace_Allocate_or_fatal_error> 5608: e58d0000 str r0, [sp] * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 560c: e1d531b0 ldrh r3, [r5, #16] /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 5610: e59d1000 ldr r1, [sp] 5614: e1a02104 lsl r2, r4, #2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 5618: e1530006 cmp r3, r6 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 561c: e081b002 add fp, r1, r2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 5620: 93a03000 movls r3, #0 ; 0x0 5624: e08b9002 add r9, fp, r2 /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; 5628: 91a02003 movls r2, r3 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 562c: 9a000011 bls 5678 <_Objects_Extend_information+0x130> /* * 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, 5630: e1a04107 lsl r4, r7, #2 5634: e5951034 ldr r1, [r5, #52] 5638: e1a02004 mov r2, r4 563c: e59d0000 ldr r0, [sp] 5640: eb001622 bl aed0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 5644: e1a02004 mov r2, r4 5648: e5951030 ldr r1, [r5, #48] 564c: e1a0000b mov r0, fp 5650: eb00161e bl aed0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 5654: e1d521b0 ldrh r2, [r5, #16] 5658: e0862002 add r2, r6, r2 565c: e1a02102 lsl r2, r2, #2 5660: e1a00009 mov r0, r9 5664: e595101c ldr r1, [r5, #28] 5668: eb001618 bl aed0 566c: ea000003 b 5680 <_Objects_Extend_information+0x138> /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; 5670: e7892103 str r2, [r9, r3, lsl #2] else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 5674: e2833001 add r3, r3, #1 ; 0x1 5678: e1530006 cmp r3, r6 567c: 3afffffb bcc 5670 <_Objects_Extend_information+0x128> /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 5680: e3a03000 mov r3, #0 ; 0x0 inactive_per_block[block_count] = 0; 5684: e78b3107 str r3, [fp, r7, lsl #2] /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 5688: e59dc000 ldr ip, [sp] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 568c: e5952014 ldr r2, [r5, #20] /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 5690: e78c3107 str r3, [ip, r7, lsl #2] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 5694: e08a0002 add r0, sl, r2 5698: e089110a add r1, r9, sl, lsl #2 569c: e1a0200a mov r2, sl 56a0: ea000000 b 56a8 <_Objects_Extend_information+0x160> index++ ) { local_table[ index ] = NULL; 56a4: e5013004 str r3, [r1, #-4] object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 56a8: e1520000 cmp r2, r0 index++ ) { 56ac: e2811004 add r1, r1, #4 ; 0x4 56b0: e2822001 add r2, r2, #1 ; 0x1 object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 56b4: 3afffffa bcc 56a4 <_Objects_Extend_information+0x15c> index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 56b8: e10f0000 mrs r0, CPSR 56bc: e38030c0 orr r3, r0, #192 ; 0xc0 56c0: e129f003 msr CPSR_fc, r3 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 56c4: e5953000 ldr r3, [r5] old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; 56c8: e59dc004 ldr ip, [sp, #4] information->maximum_id = _Objects_Build_id( 56cc: e1d510b4 ldrh r1, [r5, #4] 56d0: e1a03c03 lsl r3, r3, #24 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; 56d4: e1a0280c lsl r2, ip, #16 information->maximum_id = _Objects_Build_id( 56d8: e3833801 orr r3, r3, #65536 ; 0x10000 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; 56dc: e1a02822 lsr r2, r2, #16 information->maximum_id = _Objects_Build_id( 56e0: e1833d81 orr r3, r3, r1, lsl #27 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 56e4: e59d1000 ldr r1, [sp] information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 56e8: e1833002 orr r3, r3, r2 56ec: e585300c str r3, [r5, #12] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 56f0: e585b030 str fp, [r5, #48] local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 56f4: e5953034 ldr r3, [r5, #52] information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; 56f8: e585901c str r9, [r5, #28] information->maximum = maximum; 56fc: e1c521b0 strh r2, [r5, #16] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 5700: e5851034 str r1, [r5, #52] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 5704: e129f000 msr CPSR_fc, r0 if ( old_tables ) 5708: e3530000 cmp r3, #0 ; 0x0 _Workspace_Free( old_tables ); 570c: 11a00003 movne r0, r3 5710: 1b000797 blne 7574 <_Workspace_Free> /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 5714: e5d53012 ldrb r3, [r5, #18] 5718: e3530000 cmp r3, #0 ; 0x0 571c: e5952014 ldr r2, [r5, #20] 5720: e5954034 ldr r4, [r5, #52] 5724: e5953018 ldr r3, [r5, #24] 5728: 0a000007 beq 574c <_Objects_Extend_information+0x204> information->object_blocks[ block ] = 572c: e0000392 mul r0, r2, r3 5730: eb000793 bl 7584 <_Workspace_Allocate> _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 5734: e5953034 ldr r3, [r5, #52] /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 5738: e7840108 str r0, [r4, r8, lsl #2] _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 573c: e7933108 ldr r3, [r3, r8, lsl #2] 5740: e3530000 cmp r3, #0 ; 0x0 5744: 1a000003 bne 5758 <_Objects_Extend_information+0x210> 5748: ea000023 b 57dc <_Objects_Extend_information+0x294> <== NOT EXECUTED return; } else { information->object_blocks[ block ] = 574c: e0000392 mul r0, r2, r3 5750: eb00078f bl 7594 <_Workspace_Allocate_or_fatal_error> 5754: e7840108 str r0, [r4, r8, lsl #2] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 5758: e5953034 ldr r3, [r5, #52] 575c: e28d4008 add r4, sp, #8 ; 0x8 5760: e7931108 ldr r1, [r3, r8, lsl #2] 5764: e1a00004 mov r0, r4 5768: e2852014 add r2, r5, #20 ; 0x14 576c: e892000c ldm r2, {r2, r3} 5770: eb000f49 bl 949c <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 5774: e1a0600a mov r6, sl /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 5778: e1a08108 lsl r8, r8, #2 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 577c: e2857020 add r7, r5, #32 ; 0x20 5780: ea000008 b 57a8 <_Objects_Extend_information+0x260> index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 5784: e5953000 ldr r3, [r5] 5788: e1d520b4 ldrh r2, [r5, #4] 578c: e1a03c03 lsl r3, r3, #24 5790: e3833801 orr r3, r3, #65536 ; 0x10000 5794: e1833d82 orr r3, r3, r2, lsl #27 5798: e1833006 orr r3, r3, r6 579c: e58c3008 str r3, [ip, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 57a0: ebfffd5d bl 4d1c <_Chain_Append> index++; 57a4: e2866001 add r6, r6, #1 ; 0x1 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 57a8: e1a00004 mov r0, r4 57ac: eb000f2d bl 9468 <_Chain_Get> 57b0: e250c000 subs ip, r0, #0 ; 0x0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 57b4: e1a0100c mov r1, ip 57b8: e1a00007 mov r0, r7 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 57bc: 1afffff0 bne 5784 <_Objects_Extend_information+0x23c> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 57c0: e5952030 ldr r2, [r5, #48] 57c4: e5953014 ldr r3, [r5, #20] 57c8: e7823008 str r3, [r2, r8] information->inactive += information->allocation_size; 57cc: e1d522bc ldrh r2, [r5, #44] 57d0: e5953014 ldr r3, [r5, #20] 57d4: e0833002 add r3, r3, r2 57d8: e1c532bc strh r3, [r5, #44] } 57dc: e28dd014 add sp, sp, #20 ; 0x14 57e0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 000058e0 <_Objects_Get_isr_disable>: #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 58e0: e1a01801 lsl r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 58e4: e92d4010 push {r4, lr} #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 58e8: e1a01821 lsr r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 58ec: e1a04003 mov r4, r3 index = id & 0x0000ffff; /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 58f0: e10fc000 mrs ip, CPSR 58f4: e38c30c0 orr r3, ip, #192 ; 0xc0 58f8: e129f003 msr CPSR_fc, r3 if ( information->maximum >= index ) { 58fc: e1d031b0 ldrh r3, [r0, #16] 5900: e1530001 cmp r3, r1 5904: 3a00000a bcc 5934 <_Objects_Get_isr_disable+0x54> if ( (the_object = information->local_table[ index ]) != NULL ) { 5908: e590301c ldr r3, [r0, #28] 590c: e7930101 ldr r0, [r3, r1, lsl #2] 5910: e3500000 cmp r0, #0 ; 0x0 *location = OBJECTS_LOCAL; 5914: 13a03000 movne r3, #0 ; 0x0 5918: 15823000 strne r3, [r2] *level_p = level; 591c: 1584c000 strne ip, [r4] /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { 5920: 18bd8010 popne {r4, pc} *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); 5924: e129f00c msr CPSR_fc, ip <== NOT EXECUTED *location = OBJECTS_ERROR; 5928: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 592c: e5823000 str r3, [r2] <== NOT EXECUTED 5930: e8bd8010 pop {r4, pc} <== NOT EXECUTED return NULL; } _ISR_Enable( level ); 5934: e129f00c msr CPSR_fc, ip *location = OBJECTS_ERROR; 5938: e3a03001 mov r3, #1 ; 0x1 593c: e5823000 str r3, [r2] 5940: e3a00000 mov r0, #0 ; 0x0 _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 5944: e8bd8010 pop {r4, pc} 00010078 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 10078: e92d40f0 push {r4, r5, r6, r7, lr} char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 1007c: e2517000 subs r7, r1, #0 ; 0x0 char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 10080: e24dd00c sub sp, sp, #12 ; 0xc 10084: e1a05002 mov r5, r2 char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 10088: 0a000036 beq 10168 <_Objects_Get_name_as_string+0xf0> return NULL; if ( name == NULL ) 1008c: e3520000 cmp r2, #0 ; 0x0 10090: 0a000035 beq 1016c <_Objects_Get_name_as_string+0xf4> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 10094: e3500000 cmp r0, #0 ; 0x0 10098: 059f30d8 ldreq r3, [pc, #216] ; 10178 <_Objects_Get_name_as_string+0x100> 1009c: 05933000 ldreq r3, [r3] 100a0: 05934008 ldreq r4, [r3, #8] 100a4: 11a04000 movne r4, r0 information = _Objects_Get_information_id( tmpId ); 100a8: e1a00004 mov r0, r4 100ac: ebffe72e bl 9d6c <_Objects_Get_information_id> if ( !information ) 100b0: e2506000 subs r6, r0, #0 ; 0x0 100b4: 0a00002b beq 10168 <_Objects_Get_name_as_string+0xf0> return NULL; the_object = _Objects_Get( information, tmpId, &location ); 100b8: e1a01004 mov r1, r4 100bc: e28d2008 add r2, sp, #8 ; 0x8 100c0: ebffe765 bl 9e5c <_Objects_Get> switch ( location ) { 100c4: e59d3008 ldr r3, [sp, #8] 100c8: e3530000 cmp r3, #0 ; 0x0 100cc: 1a000025 bne 10168 <_Objects_Get_name_as_string+0xf0> case OBJECTS_ERROR: return NULL; case OBJECTS_LOCAL: if ( information->is_string ) { 100d0: e5d6c038 ldrb ip, [r6, #56] 100d4: e35c0000 cmp ip, #0 ; 0x0 100d8: 0a000004 beq 100f0 <_Objects_Get_name_as_string+0x78> s = the_object->name.name_p; 100dc: e590000c ldr r0, [r0, #12] lname[ 4 ] = '\0'; s = lname; } d = name; if ( s ) { 100e0: e3500000 cmp r0, #0 ; 0x0 100e4: 01a0e005 moveq lr, r5 100e8: 1a00000a bne 10118 <_Objects_Get_name_as_string+0xa0> 100ec: ea000019 b 10158 <_Objects_Get_name_as_string+0xe0> <== NOT EXECUTED case OBJECTS_LOCAL: if ( information->is_string ) { s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; 100f0: e590300c ldr r3, [r0, #12] lname[ 0 ] = (u32_name >> 24) & 0xff; 100f4: e1a02c23 lsr r2, r3, #24 lname[ 1 ] = (u32_name >> 16) & 0xff; 100f8: e1a01823 lsr r1, r3, #16 lname[ 2 ] = (u32_name >> 8) & 0xff; 100fc: e1a00423 lsr r0, r3, #8 if ( information->is_string ) { s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 10100: e5cd2003 strb r2, [sp, #3] lname[ 1 ] = (u32_name >> 16) & 0xff; 10104: e5cd1004 strb r1, [sp, #4] lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; 10108: e5cd3006 strb r3, [sp, #6] lname[ 4 ] = '\0'; 1010c: e5cdc007 strb ip, [sp, #7] } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; 10110: e5cd0005 strb r0, [sp, #5] lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 10114: e28d0003 add r0, sp, #3 ; 0x3 s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 10118: e2471001 sub r1, r7, #1 ; 0x1 lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 1011c: e3a0c000 mov ip, #0 ; 0x0 } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { *d = (isprint(*s)) ? *s : '*'; 10120: e59f4054 ldr r4, [pc, #84] ; 1017c <_Objects_Get_name_as_string+0x104> 10124: ea000005 b 10140 <_Objects_Get_name_as_string+0xc8> 10128: e5943000 ldr r3, [r4] 1012c: e7d33002 ldrb r3, [r3, r2] 10130: e3130097 tst r3, #151 ; 0x97 10134: 03a0202a moveq r2, #42 ; 0x2a 10138: e7c5200c strb r2, [r5, ip] s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 1013c: e28cc001 add ip, ip, #1 ; 0x1 10140: e15c0001 cmp ip, r1 10144: e085e00c add lr, r5, ip 10148: 2a000002 bcs 10158 <_Objects_Get_name_as_string+0xe0> 1014c: e7d0200c ldrb r2, [r0, ip] 10150: e3520000 cmp r2, #0 ; 0x0 10154: 1afffff3 bne 10128 <_Objects_Get_name_as_string+0xb0> *d = (isprint(*s)) ? *s : '*'; } } *d = '\0'; 10158: e3a03000 mov r3, #0 ; 0x0 1015c: e5ce3000 strb r3, [lr] _Thread_Enable_dispatch(); 10160: ebffe981 bl a76c <_Thread_Enable_dispatch> 10164: ea000000 b 1016c <_Objects_Get_name_as_string+0xf4> return name; 10168: e3a05000 mov r5, #0 ; 0x0 } return NULL; /* unreachable path */ } 1016c: e1a00005 mov r0, r5 10170: e28dd00c add sp, sp, #12 ; 0xc 10174: e8bd80f0 pop {r4, r5, r6, r7, pc} 10178: 000230c4 .word 0x000230c4 1017c: 0001ea78 .word 0x0001ea78 00012910 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 12910: e1a0c001 mov ip, r1 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 12914: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 12918: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 1291c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 12920: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) next_id = information->minimum_id; 12924: 05904008 ldreq r4, [r0, #8] <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 12928: e1a05000 mov r5, r0 <== NOT EXECUTED 1292c: e1a06002 mov r6, r2 <== NOT EXECUTED 12930: e1a07003 mov r7, r3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 12934: 11a0400c movne r4, ip <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 12938: e1a03804 lsl r3, r4, #16 <== NOT EXECUTED 1293c: e1d5c1b0 ldrh ip, [r5, #16] <== NOT EXECUTED 12940: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED 12944: e153000c cmp r3, ip <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 12948: e1a01004 mov r1, r4 <== NOT EXECUTED 1294c: e1a00005 mov r0, r5 <== NOT EXECUTED 12950: e1a02006 mov r2, r6 <== NOT EXECUTED next_id++; 12954: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 12958: 9a000005 bls 12974 <_Objects_Get_next+0x64> <== NOT EXECUTED { *location_p = OBJECTS_ERROR; 1295c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 12960: e5863000 str r3, [r6] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 12964: e3e03000 mvn r3, #0 ; 0x0 <== NOT EXECUTED 12968: e5873000 str r3, [r7] <== NOT EXECUTED 1296c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 12970: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 12974: ebffdd38 bl 9e5c <_Objects_Get> <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 12978: e5963000 ldr r3, [r6] <== NOT EXECUTED 1297c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12980: 1affffec bne 12938 <_Objects_Get_next+0x28> <== NOT EXECUTED *next_id_p = next_id; 12984: e5874000 str r4, [r7] <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 12988: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 00006d9c <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 6d9c: e92d4030 push {r4, r5, lr} Objects_Id tmpId; Objects_Information *information; Objects_Control *the_object = (Objects_Control *) 0; Objects_Locations ignored_location; if ( !name ) 6da0: e2515000 subs r5, r1, #0 ; 0x0 Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 6da4: e24dd004 sub sp, sp, #4 ; 0x4 Objects_Id tmpId; Objects_Information *information; Objects_Control *the_object = (Objects_Control *) 0; Objects_Locations ignored_location; if ( !name ) 6da8: 03a00001 moveq r0, #1 ; 0x1 6dac: 0a00001b beq 6e20 <_Objects_Id_to_name+0x84> return OBJECTS_INVALID_NAME; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 6db0: e3500000 cmp r0, #0 ; 0x0 6db4: 059f3080 ldreq r3, [pc, #128] ; 6e3c <_Objects_Id_to_name+0xa0> 6db8: 05933000 ldreq r3, [r3] 6dbc: 05931008 ldreq r1, [r3, #8] 6dc0: 11a01000 movne r1, r0 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 6dc4: e1a03c21 lsr r3, r1, #24 6dc8: e2030007 and r0, r3, #7 ; 0x7 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 6dcc: e2403001 sub r3, r0, #1 ; 0x1 6dd0: e3530003 cmp r3, #3 ; 0x3 6dd4: 8a000010 bhi 6e1c <_Objects_Id_to_name+0x80> 6dd8: ea000012 b 6e28 <_Objects_Id_to_name+0x8c> if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 6ddc: e1a03da1 lsr r3, r1, #27 6de0: e7900103 ldr r0, [r0, r3, lsl #2] if ( !information ) 6de4: e3500000 cmp r0, #0 ; 0x0 6de8: 0a00000b beq 6e1c <_Objects_Id_to_name+0x80> return OBJECTS_INVALID_ID; if ( information->is_string ) 6dec: e5d04038 ldrb r4, [r0, #56] 6df0: e3540000 cmp r4, #0 ; 0x0 6df4: 1a000008 bne 6e1c <_Objects_Id_to_name+0x80> return OBJECTS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &ignored_location ); 6df8: e1a0200d mov r2, sp 6dfc: ebffffcb bl 6d30 <_Objects_Get> if ( !the_object ) 6e00: e3500000 cmp r0, #0 ; 0x0 6e04: 0a000004 beq 6e1c <_Objects_Id_to_name+0x80> return OBJECTS_INVALID_ID; *name = the_object->name; 6e08: e590300c ldr r3, [r0, #12] 6e0c: e5853000 str r3, [r5] _Thread_Enable_dispatch(); 6e10: eb000216 bl 7670 <_Thread_Enable_dispatch> 6e14: e1a00004 mov r0, r4 6e18: ea000000 b 6e20 <_Objects_Id_to_name+0x84> return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 6e1c: e3a00003 mov r0, #3 ; 0x3 } 6e20: e28dd004 add sp, sp, #4 ; 0x4 6e24: e8bd8030 pop {r4, r5, pc} the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 6e28: e59f3010 ldr r3, [pc, #16] ; 6e40 <_Objects_Id_to_name+0xa4> 6e2c: e7930100 ldr r0, [r3, r0, lsl #2] 6e30: e3500000 cmp r0, #0 ; 0x0 6e34: 1affffe8 bne 6ddc <_Objects_Id_to_name+0x40> 6e38: eafffff7 b 6e1c <_Objects_Id_to_name+0x80> <== NOT EXECUTED 6e3c: 000193c4 .word 0x000193c4 6e40: 000192c8 .word 0x000192c8 00005a70 <_Objects_Namespace_remove>: ) { /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 5a70: e5d03038 ldrb r3, [r0, #56] 5a74: e3530000 cmp r3, #0 ; 0x0 void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 5a78: e92d4010 push {r4, lr} 5a7c: e1a04001 mov r4, r1 /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 5a80: 0a000002 beq 5a90 <_Objects_Namespace_remove+0x20> 5a84: e591000c ldr r0, [r1, #12] <== NOT EXECUTED 5a88: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 5a8c: 1b0006b8 blne 7574 <_Workspace_Free> <== NOT EXECUTED /* * Clear out either format. */ the_object->name.name_p = NULL; 5a90: e3a03000 mov r3, #0 ; 0x0 the_object->name.name_u32 = 0; 5a94: e584300c str r3, [r4, #12] } 5a98: e8bd8010 pop {r4, pc} 0000770c <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 770c: e92d40f0 push {r4, r5, r6, r7, lr} 7710: e1a04000 mov r4, r0 7714: e1a07001 mov r7, r1 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 7718: e1a00002 mov r0, r2 771c: e1d413ba ldrh r1, [r4, #58] bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 7720: e1a06002 mov r6, r2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 7724: eb001acd bl e260 if ( information->is_string ) { 7728: e5d43038 ldrb r3, [r4, #56] 772c: e3530000 cmp r3, #0 ; 0x0 { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 7730: e2804001 add r4, r0, #1 ; 0x1 if ( information->is_string ) { 7734: 0a000013 beq 7788 <_Objects_Set_name+0x7c> char *d; d = _Workspace_Allocate( length ); 7738: e1a00004 mov r0, r4 <== NOT EXECUTED 773c: eb0006c3 bl 9250 <_Workspace_Allocate> <== NOT EXECUTED if ( !d ) 7740: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 7744: 01a00005 moveq r0, r5 <== NOT EXECUTED 7748: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return FALSE; if ( the_object->name.name_p ) { 774c: e597000c ldr r0, [r7, #12] <== NOT EXECUTED 7750: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 7754: 0a000002 beq 7764 <_Objects_Set_name+0x58> <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 7758: eb0006b8 bl 9240 <_Workspace_Free> <== NOT EXECUTED the_object->name.name_p = NULL; 775c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 7760: e587300c str r3, [r7, #12] <== NOT EXECUTED } strncpy( d, name, length ); 7764: e1a01006 mov r1, r6 <== NOT EXECUTED 7768: e1a00005 mov r0, r5 <== NOT EXECUTED 776c: e1a02004 mov r2, r4 <== NOT EXECUTED 7770: eb001a77 bl e154 <== NOT EXECUTED d[ length ] = '\0'; 7774: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 7778: e7c53004 strb r3, [r5, r4] <== NOT EXECUTED the_object->name.name_p = d; 777c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 7780: e587500c str r5, [r7, #12] <== NOT EXECUTED 7784: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } else { the_object->name.name_u32 = _Objects_Build_name( 7788: e3540000 cmp r4, #0 ; 0x0 778c: 03a0c202 moveq ip, #536870912 ; 0x20000000 7790: 0a000015 beq 77ec <_Objects_Set_name+0xe0> 7794: e5d63000 ldrb r3, [r6] 7798: e3540001 cmp r4, #1 ; 0x1 779c: e1a0cc03 lsl ip, r3, #24 77a0: 0a000011 beq 77ec <_Objects_Set_name+0xe0> 77a4: e5d63001 ldrb r3, [r6, #1] 77a8: e3540002 cmp r4, #2 ; 0x2 77ac: e1a01803 lsl r1, r3, #16 77b0: 9a00000a bls 77e0 <_Objects_Set_name+0xd4> 77b4: e3540003 cmp r4, #3 ; 0x3 77b8: e5d63002 ldrb r3, [r6, #2] 77bc: 85d60003 ldrbhi r0, [r6, #3] 77c0: e1a02403 lsl r2, r3, #8 77c4: 93a00020 movls r0, #32 ; 0x20 77c8: e18c3001 orr r3, ip, r1 77cc: e1833002 orr r3, r3, r2 77d0: e1833000 orr r3, r3, r0 77d4: e587300c str r3, [r7, #12] 77d8: e3a00001 mov r0, #1 ; 0x1 ); } return TRUE; } 77dc: e8bd80f0 pop {r4, r5, r6, r7, pc} strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 77e0: e3a00020 mov r0, #32 ; 0x20 77e4: e3a02a02 mov r2, #8192 ; 0x2000 77e8: eafffff6 b 77c8 <_Objects_Set_name+0xbc> 77ec: e3a01602 mov r1, #2097152 ; 0x200000 77f0: eafffffa b 77e0 <_Objects_Set_name+0xd4> 0001ef40 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 1ef40: e92d4070 push {r4, r5, r6, lr} Heap_Get_information_status status; if ( !the_heap ) 1ef44: e2506000 subs r6, r0, #0 ; 0x0 bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 1ef48: e1a04001 mov r4, r1 Heap_Get_information_status status; if ( !the_heap ) 1ef4c: 0a00000d beq 1ef88 <_Protected_heap_Get_information+0x48> return false; if ( !the_info ) 1ef50: e3510000 cmp r1, #0 ; 0x0 1ef54: 0a00000b beq 1ef88 <_Protected_heap_Get_information+0x48> return false; _RTEMS_Lock_allocator(); 1ef58: e59f5030 ldr r5, [pc, #48] ; 1ef90 <_Protected_heap_Get_information+0x50> 1ef5c: e5950000 ldr r0, [r5] 1ef60: ebffa459 bl 80cc <_API_Mutex_Lock> status = _Heap_Get_information( the_heap, the_info ); 1ef64: e1a01004 mov r1, r4 1ef68: e1a00006 mov r0, r6 1ef6c: eb002317 bl 27bd0 <_Heap_Get_information> 1ef70: e1a04000 mov r4, r0 _RTEMS_Unlock_allocator(); 1ef74: e5950000 ldr r0, [r5] 1ef78: ebffa46f bl 813c <_API_Mutex_Unlock> if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 1ef7c: e2740001 rsbs r0, r4, #1 ; 0x1 1ef80: 33a00000 movcc r0, #0 ; 0x0 1ef84: e8bd8070 pop {r4, r5, r6, pc} 1ef88: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; return false; } 1ef8c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 1ef90: 0005533c .word 0x0005533c 000046e8 <_RTEMS_tasks_Initialize_user_tasks_body>: rtems_status_code return_value; rtems_initialization_tasks_table *user_tasks; rtems_api_configuration_table *api_configuration; api_configuration = _Configuration_Table->RTEMS_api_configuration; 46e8: e59f3094 ldr r3, [pc, #148] ; 4784 <_RTEMS_tasks_Initialize_user_tasks_body+0x9c> 46ec: e5933000 ldr r3, [r3] * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 46f0: e92d40f0 push {r4, r5, r6, r7, lr} rtems_status_code return_value; rtems_initialization_tasks_table *user_tasks; rtems_api_configuration_table *api_configuration; api_configuration = _Configuration_Table->RTEMS_api_configuration; 46f4: e5933040 ldr r3, [r3, #64] /* * NOTE: This is slightly different from the Ada implementation. */ user_tasks = api_configuration->User_initialization_tasks_table; 46f8: e593002c ldr r0, [r3, #44] maximum = api_configuration->number_of_initialization_tasks; 46fc: e5936028 ldr r6, [r3, #40] if ( !user_tasks || maximum == 0 ) 4700: e3560000 cmp r6, #0 ; 0x0 4704: 13500000 cmpne r0, #0 ; 0x0 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 4708: e24dd00c sub sp, sp, #12 ; 0xc */ user_tasks = api_configuration->User_initialization_tasks_table; maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) 470c: 13a03000 movne r3, #0 ; 0x0 4710: 03a03001 moveq r3, #1 ; 0x1 return; 4714: 11a04000 movne r4, r0 4718: 11a05003 movne r5, r3 for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 471c: 128d7008 addne r7, sp, #8 ; 0x8 */ user_tasks = api_configuration->User_initialization_tasks_table; maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) 4720: 1a000013 bne 4774 <_RTEMS_tasks_Initialize_user_tasks_body+0x8c> 4724: ea000014 b 477c <_RTEMS_tasks_Initialize_user_tasks_body+0x94> <== NOT EXECUTED return; for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 4728: e594300c ldr r3, [r4, #12] 472c: e88d0088 stm sp, {r3, r7} 4730: e8940005 ldm r4, {r0, r2} 4734: e5941008 ldr r1, [r4, #8] 4738: e5943014 ldr r3, [r4, #20] 473c: ebffff63 bl 44d0 user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) 4740: e2502000 subs r2, r0, #0 ; 0x0 4744: 1a000006 bne 4764 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); return_value = rtems_task_start( 4748: e5942018 ldr r2, [r4, #24] 474c: e5941010 ldr r1, [r4, #16] 4750: e59d0008 ldr r0, [sp, #8] 4754: eb00000b bl 4788 id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 4758: e2502000 subs r2, r0, #0 ; 0x0 ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); return_value = rtems_task_start( 475c: e284401c add r4, r4, #28 ; 0x1c id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 4760: 0a000002 beq 4770 <_RTEMS_tasks_Initialize_user_tasks_body+0x88> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); 4764: e3a00001 mov r0, #1 ; 0x1 4768: e1a01000 mov r1, r0 476c: eb000333 bl 5440 <_Internal_error_Occurred> maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) return; for ( index=0 ; index < maximum ; index++ ) { 4770: e2855001 add r5, r5, #1 ; 0x1 4774: e1550006 cmp r5, r6 4778: 3affffea bcc 4728 <_RTEMS_tasks_Initialize_user_tasks_body+0x40> ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); } } 477c: e28dd00c add sp, sp, #12 ; 0xc 4780: e8bd80f0 pop {r4, r5, r6, r7, pc} 4784: 0001541c .word 0x0001541c 000050f0 <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) { 50f0: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 50f4: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get( struct timespec *time ) { 50f8: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; 50fc: e58d3004 str r3, [sp, #4] */ void _TOD_Get( struct timespec *time ) { 5100: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 5104: e58d3000 str r3, [sp] offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); 5108: e10f6000 mrs r6, CPSR 510c: e38630c0 orr r3, r6, #192 ; 0xc0 5110: e129f003 msr CPSR_fc, r3 *time = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) 5114: e59f3038 ldr r3, [pc, #56] ; 5154 <_TOD_Get+0x64> 5118: e5932000 ldr r2, [r3] offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); *time = _TOD_Now; 511c: e59f3034 ldr r3, [pc, #52] ; 5158 <_TOD_Get+0x68> 5120: e8930018 ldm r3, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 5124: e3520000 cmp r2, #0 ; 0x0 offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); *time = _TOD_Now; 5128: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 512c: 0a000002 beq 513c <_TOD_Get+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 5130: e1a0e00f mov lr, pc <== NOT EXECUTED 5134: e12fff12 bx r2 <== NOT EXECUTED 5138: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); 513c: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( time, &offset ); 5140: e1a00005 mov r0, r5 5144: e1a0100d mov r1, sp 5148: eb000794 bl 6fa0 <_Timespec_Add_to> } 514c: e28dd008 add sp, sp, #8 ; 0x8 5150: e8bd8070 pop {r4, r5, r6, pc} 5154: 00015538 .word 0x00015538 5158: 00015414 .word 0x00015414 0000961c <_TOD_Get_uptime>: */ void _TOD_Get_uptime( struct timespec *uptime ) { 961c: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; 9620: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get_uptime( struct timespec *uptime ) { 9624: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; 9628: e58d3004 str r3, [sp, #4] */ void _TOD_Get_uptime( struct timespec *uptime ) { 962c: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; 9630: e58d3000 str r3, [sp] offset.tv_nsec = 0; _ISR_Disable( level ); 9634: e10f6000 mrs r6, CPSR 9638: e38630c0 orr r3, r6, #192 ; 0xc0 963c: e129f003 msr CPSR_fc, r3 *uptime = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) 9640: e59f3038 ldr r3, [pc, #56] ; 9680 <_TOD_Get_uptime+0x64> 9644: e5932000 ldr r2, [r3] offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 9648: e59f3034 ldr r3, [pc, #52] ; 9684 <_TOD_Get_uptime+0x68> 964c: e8930018 ldm r3, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 9650: e3520000 cmp r2, #0 ; 0x0 offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 9654: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 9658: 0a000002 beq 9668 <_TOD_Get_uptime+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 965c: e1a0e00f mov lr, pc <== NOT EXECUTED 9660: e12fff12 bx r2 <== NOT EXECUTED 9664: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); 9668: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( uptime, &offset ); 966c: e1a00005 mov r0, r5 9670: e1a0100d mov r1, sp 9674: ebfff649 bl 6fa0 <_Timespec_Add_to> } 9678: e28dd008 add sp, sp, #8 ; 0x8 967c: e8bd8070 pop {r4, r5, r6, pc} 9680: 00015538 .word 0x00015538 9684: 00015404 .word 0x00015404 0000a5ec <_Thread_Handler>: #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; a5ec: e59f30b0 ldr r3, [pc, #176] ; a6a4 <_Thread_Handler+0xb8> * * Output parameters: NONE */ void _Thread_Handler( void ) { a5f0: e92d4030 push {r4, r5, lr} #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; a5f4: e5935000 ldr r5, [r3] /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; a5f8: e59530b8 ldr r3, [r5, #184] _ISR_Set_level(level); a5fc: e3a02000 mov r2, #0 ; 0x0 a600: e10f2000 mrs r2, CPSR a604: e3c220c0 bic r2, r2, #192 ; 0xc0 a608: e1822003 orr r2, r2, r3 a60c: e121f002 msr CPSR_c, r2 #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; a610: e59f2090 ldr r2, [pc, #144] ; a6a8 <_Thread_Handler+0xbc> doneConstructors = 1; a614: e3a03001 mov r3, #1 ; 0x1 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; a618: e5d24000 ldrb r4, [r2] * 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 ); a61c: e1a00005 mov r0, r5 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; doneConstructors = 1; a620: e5c23000 strb r3, [r2] * 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 ); a624: ebfff2ab bl 70d8 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); a628: ebffeeec bl 61e0 <_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) */ a62c: e3540000 cmp r4, #0 ; 0x0 { _init (); a630: 0bffd6ba bleq 120 <_init> #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { a634: e59530a0 ldr r3, [r5, #160] a638: e3530003 cmp r3, #3 ; 0x3 a63c: 979ff103 ldrls pc, [pc, r3, lsl #2] a640: ea000011 b a68c <_Thread_Handler+0xa0> <== NOT EXECUTED a644: 0000a654 .word 0x0000a654 <== NOT EXECUTED a648: 0000a65c .word 0x0000a65c <== NOT EXECUTED a64c: 0000a66c .word 0x0000a66c <== NOT EXECUTED a650: 0000a678 .word 0x0000a678 <== NOT EXECUTED case THREAD_START_NUMERIC: executing->Wait.return_argument = a654: e59500a8 ldr r0, [r5, #168] a658: ea000000 b a660 <_Thread_Handler+0x74> (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); break; case THREAD_START_POINTER: executing->Wait.return_argument = a65c: e59500a4 ldr r0, [r5, #164] <== NOT EXECUTED a660: e1a0e00f mov lr, pc a664: e595f09c ldr pc, [r5, #156] a668: ea000006 b a688 <_Thread_Handler+0x9c> (*(Thread_Entry_pointer) executing->Start.entry_point)( executing->Start.pointer_argument ); break; case THREAD_START_BOTH_POINTER_FIRST: executing->Wait.return_argument = a66c: e28500a4 add r0, r5, #164 ; 0xa4 <== NOT EXECUTED a670: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED a674: ea000001 b a680 <_Thread_Handler+0x94> <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = a678: e59500a8 ldr r0, [r5, #168] <== NOT EXECUTED a67c: e59510a4 ldr r1, [r5, #164] <== NOT EXECUTED a680: e1a0e00f mov lr, pc <== NOT EXECUTED a684: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED a688: e5850028 str r0, [r5, #40] * 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 ); a68c: e1a00005 mov r0, r5 a690: ebfff29f bl 7114 <_User_extensions_Thread_exitted> _Internal_error_Occurred( a694: e3a00000 mov r0, #0 ; 0x0 a698: e3a01001 mov r1, #1 ; 0x1 a69c: e3a02006 mov r2, #6 ; 0x6 a6a0: ebffeb66 bl 5440 <_Internal_error_Occurred> a6a4: 00015444 .word 0x00015444 a6a8: 000151d8 .word 0x000151d8 000062ac <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 62ac: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 62b0: e2526000 subs r6, r2, #0 ; 0x0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 62b4: e1a09000 mov r9, r0 62b8: e1a05001 mov r5, r1 62bc: e1a04003 mov r4, r3 62c0: e59d8024 ldr r8, [sp, #36] 62c4: e59da02c ldr sl, [sp, #44] 62c8: e5dd7028 ldrb r7, [sp, #40] /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 62cc: 1a00000e bne 630c <_Thread_Initialize+0x60> actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 62d0: e1a00001 mov r0, r1 62d4: e1a01003 mov r1, r3 62d8: eb000292 bl 6d28 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 62dc: e1500004 cmp r0, r4 62e0: 23a03000 movcs r3, #0 ; 0x0 62e4: 33a03001 movcc r3, #1 ; 0x1 62e8: e3500000 cmp r0, #0 ; 0x0 62ec: 03833001 orreq r3, r3, #1 ; 0x1 62f0: e3530000 cmp r3, #0 ; 0x0 return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = TRUE; 62f4: 03a03001 moveq r3, #1 ; 0x1 if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) 62f8: e1a01000 mov r1, r0 return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = TRUE; 62fc: 05c530c0 strbeq r3, [r5, #192] actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; 6300: 059520cc ldreq r2, [r5, #204] if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) 6304: 0a000004 beq 631c <_Thread_Initialize+0x70> 6308: ea000017 b 636c <_Thread_Initialize+0xc0> 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; 630c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 6310: e5c130c0 strb r3, [r1, #192] <== NOT EXECUTED 6314: e1a02006 mov r2, r6 <== NOT EXECUTED 6318: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 631c: e59f3128 ldr r3, [pc, #296] ; 644c <_Thread_Initialize+0x1a0> 6320: e5930000 ldr r0, [r3] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 6324: e3a03000 mov r3, #0 ; 0x0 6328: e3500000 cmp r0, #0 ; 0x0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 632c: e58520c8 str r2, [r5, #200] the_stack->size = size; 6330: e58510c4 str r1, [r5, #196] /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 6334: e5853100 str r3, [r5, #256] 6338: e5853050 str r3, [r5, #80] the_watchdog->routine = routine; 633c: e5853064 str r3, [r5, #100] the_watchdog->id = id; 6340: e5853068 str r3, [r5, #104] the_watchdog->user_data = user_data; 6344: e585306c str r3, [r5, #108] (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return FALSE; 6348: 01a06000 moveq r6, r0 /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 634c: 0a000008 beq 6374 <_Thread_Initialize+0xc8> extensions_area = _Workspace_Allocate( 6350: e2800001 add r0, r0, #1 ; 0x1 6354: e1a00100 lsl r0, r0, #2 6358: eb000489 bl 7584 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 635c: e2506000 subs r6, r0, #0 ; 0x0 6360: 1a000003 bne 6374 <_Thread_Initialize+0xc8> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); 6364: e1a00005 mov r0, r5 <== NOT EXECUTED 6368: eb000289 bl 6d94 <_Thread_Stack_Free> <== NOT EXECUTED 636c: e1a00006 mov r0, r6 6370: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { 6374: e3560000 cmp r6, #0 ; 0x0 return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 6378: e5856110 str r6, [r5, #272] * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { 637c: 0a00000a beq 63ac <_Thread_Initialize+0x100> 6380: e3a02000 mov r2, #0 ; 0x0 uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 6384: e59f00c0 ldr r0, [pc, #192] ; 644c <_Thread_Initialize+0x1a0> the_thread->extensions[i] = NULL; 6388: e1a01002 mov r1, r2 638c: ea000002 b 639c <_Thread_Initialize+0xf0> 6390: e5953110 ldr r3, [r5, #272] 6394: e7831102 str r1, [r3, r2, lsl #2] * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 6398: e2822001 add r2, r2, #1 ; 0x1 639c: e5903000 ldr r3, [r0] 63a0: e2833001 add r3, r3, #1 ; 0x1 63a4: e1520003 cmp r2, r3 63a8: 3afffff8 bcc 6390 <_Thread_Initialize+0xe4> * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 63ac: e59d3030 ldr r3, [sp, #48] switch ( budget_algorithm ) { 63b0: e35a0002 cmp sl, #2 ; 0x2 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 63b4: e58530b4 str r3, [r5, #180] switch ( budget_algorithm ) { case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 63b8: 059f3090 ldreq r3, [pc, #144] ; 6450 <_Thread_Initialize+0x1a4> 63bc: 05933000 ldreq r3, [r3] 63c0: 05853078 streq r3, [r5, #120] break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 63c4: e59d3034 ldr r3, [sp, #52] the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; 63c8: e3a04000 mov r4, #0 ; 0x0 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 63cc: e5c570ac strb r7, [r5, #172] break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 63d0: e3a07001 mov r7, #1 ; 0x1 break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 63d4: e58530b8 str r3, [r5, #184] the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 63d8: e1a01008 mov r1, r8 63dc: e1a00005 mov r0, r5 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 63e0: e585a0b0 str sl, [r5, #176] break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 63e4: e5857010 str r7, [r5, #16] the_thread->Wait.queue = NULL; 63e8: e5854044 str r4, [r5, #68] the_thread->resource_count = 0; 63ec: e585401c str r4, [r5, #28] the_thread->suspend_count = 0; 63f0: e5854070 str r4, [r5, #112] the_thread->real_priority = priority; 63f4: e5858018 str r8, [r5, #24] the_thread->Start.initial_priority = priority; 63f8: e58580bc str r8, [r5, #188] _Thread_Set_priority( the_thread, priority ); 63fc: eb0001b7 bl 6ae0 <_Thread_Set_priority> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 6400: e1d530b8 ldrh r3, [r5, #8] 6404: e599201c ldr r2, [r9, #28] * Initialize the CPU usage statistics */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; the_thread->cpu_time_used.tv_nsec = 0; 6408: e5854088 str r4, [r5, #136] 640c: e7825103 str r5, [r2, r3, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 6410: e59d3038 ldr r3, [sp, #56] * 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 ); 6414: e1a00005 mov r0, r5 6418: e585300c str r3, [r5, #12] /* * Initialize the CPU usage statistics */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; 641c: e5854084 str r4, [r5, #132] * 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 ); 6420: eb00035f bl 71a4 <_User_extensions_Thread_create> if ( !extension_status ) { 6424: e1500004 cmp r0, r4 6428: 11a00007 movne r0, r7 642c: 18bd87f0 popne {r4, r5, r6, r7, r8, r9, sl, pc} if ( extensions_area ) 6430: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 6434: 11a00006 movne r0, r6 <== NOT EXECUTED 6438: 1b00044d blne 7574 <_Workspace_Free> <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); 643c: e1a00005 mov r0, r5 <== NOT EXECUTED 6440: eb000253 bl 6d94 <_Thread_Stack_Free> <== NOT EXECUTED 6444: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return FALSE; } return TRUE; } 6448: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 644c: 00015424 .word 0x00015424 6450: 00015344 .word 0x00015344 00007718 <_Thread_Restart>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 7718: e5903010 ldr r3, [r0, #16] 771c: e3130001 tst r3, #1 ; 0x1 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 7720: e92d4070 push {r4, r5, r6, lr} 7724: e1a04000 mov r4, r0 7728: e1a05001 mov r5, r1 772c: e1a06002 mov r6, r2 if ( !_States_Is_dormant( the_thread->current_state ) ) { 7730: 13a00000 movne r0, #0 ; 0x0 7734: 18bd8070 popne {r4, r5, r6, pc} _Thread_Set_transient( the_thread ); 7738: eb000081 bl 7944 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 773c: e1a01005 mov r1, r5 7740: e1a02006 mov r2, r6 7744: e1a00004 mov r0, r4 7748: eb000cdc bl aac0 <_Thread_Reset> _Thread_Load_environment( the_thread ); 774c: e1a00004 mov r0, r4 7750: eb000bfc bl a748 <_Thread_Load_environment> _Thread_Ready( the_thread ); 7754: e1a00004 mov r0, r4 7758: eb000c95 bl a9b4 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 775c: e1a00004 mov r0, r4 7760: eb0001e3 bl 7ef4 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 7764: e59f301c ldr r3, [pc, #28] ; 7788 <_Thread_Restart+0x70> 7768: e5933000 ldr r3, [r3] 776c: e1540003 cmp r4, r3 7770: 13a00001 movne r0, #1 ; 0x1 7774: 18bd8070 popne {r4, r5, r6, pc} #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 ); 7778: e28400d0 add r0, r4, #208 ; 0xd0 777c: eb0002ec bl 8334 <_CPU_Context_restore> 7780: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return TRUE; } return FALSE; } 7784: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 7788: 00018844 .word 0x00018844 00008448 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 8448: e92d4030 push {r4, r5, lr} 844c: e20110ff and r1, r1, #255 ; 0xff 8450: e1a04000 mov r4, r0 ISR_Level level; States_Control current_state; _ISR_Disable( level ); 8454: e10f5000 mrs r5, CPSR 8458: e38530c0 orr r3, r5, #192 ; 0xc0 845c: e129f003 msr CPSR_fc, r3 if ( force == TRUE ) 8460: e3510000 cmp r1, #0 ; 0x0 the_thread->suspend_count = 0; else the_thread->suspend_count--; 8464: 05903070 ldreq r3, [r0, #112] States_Control current_state; _ISR_Disable( level ); if ( force == TRUE ) the_thread->suspend_count = 0; 8468: 13a03000 movne r3, #0 ; 0x0 else the_thread->suspend_count--; 846c: 02433001 subeq r3, r3, #1 ; 0x1 8470: e5803070 str r3, [r0, #112] if ( the_thread->suspend_count > 0 ) { 8474: e5903070 ldr r3, [r0, #112] 8478: e3530000 cmp r3, #0 ; 0x0 847c: 0a000001 beq 8488 <_Thread_Resume+0x40> _ISR_Enable( level ); 8480: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 8484: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED return; } current_state = the_thread->current_state; 8488: e5903010 ldr r3, [r0, #16] if ( current_state & STATES_SUSPENDED ) { 848c: e3130002 tst r3, #2 ; 0x2 8490: 0a000028 beq 8538 <_Thread_Resume+0xf0> 8494: e3c33002 bic r3, r3, #2 ; 0x2 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 8498: e3530000 cmp r3, #0 ; 0x0 return; } current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = 849c: e5803010 str r3, [r0, #16] the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 84a0: 1a000024 bne 8538 <_Thread_Resume+0xf0> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 84a4: e5900090 ldr r0, [r0, #144] 84a8: e1d429b6 ldrh r2, [r4, #150] 84ac: e1d030b0 ldrh r3, [r0] _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 84b0: e594108c ldr r1, [r4, #140] 84b4: e1833002 orr r3, r3, r2 84b8: e1c030b0 strh r3, [r0] _Priority_Major_bit_map |= the_priority_map->ready_major; 84bc: e59fc07c ldr ip, [pc, #124] ; 8540 <_Thread_Resume+0xf8> Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 84c0: e2813004 add r3, r1, #4 ; 0x4 84c4: e5843000 str r3, [r4] 84c8: e1d429b4 ldrh r2, [r4, #148] 84cc: e1dc30b0 ldrh r3, [ip] old_last_node = the_chain->last; 84d0: e5910008 ldr r0, [r1, #8] 84d4: e1833002 orr r3, r3, r2 the_chain->last = the_node; 84d8: e5814008 str r4, [r1, #8] 84dc: e1cc30b0 strh r3, [ip] old_last_node->next = the_node; the_node->previous = old_last_node; 84e0: e5840004 str r0, [r4, #4] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 84e4: e5804000 str r4, [r0] _ISR_Flash( level ); 84e8: e10f3000 mrs r3, CPSR 84ec: e129f005 msr CPSR_fc, r5 84f0: e129f003 msr CPSR_fc, r3 if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 84f4: e59f1048 ldr r1, [pc, #72] ; 8544 <_Thread_Resume+0xfc> 84f8: e5913000 ldr r3, [r1] 84fc: e5942014 ldr r2, [r4, #20] 8500: e5933014 ldr r3, [r3, #20] 8504: e1520003 cmp r2, r3 8508: 2a00000a bcs 8538 <_Thread_Resume+0xf0> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 850c: e59f3034 ldr r3, [pc, #52] ; 8548 <_Thread_Resume+0x100> 8510: e5933000 ldr r3, [r3] 8514: e5d33076 ldrb r3, [r3, #118] 8518: e3530000 cmp r3, #0 ; 0x0 _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; 851c: e5814000 str r4, [r1] if ( _Thread_Executing->is_preemptible || 8520: 1a000001 bne 852c <_Thread_Resume+0xe4> 8524: e3520000 cmp r2, #0 ; 0x0 8528: 1a000002 bne 8538 <_Thread_Resume+0xf0> the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 852c: e59f3018 ldr r3, [pc, #24] ; 854c <_Thread_Resume+0x104> 8530: e3a02001 mov r2, #1 ; 0x1 8534: e5c32000 strb r2, [r3] } } } _ISR_Enable( level ); 8538: e129f005 msr CPSR_fc, r5 853c: e8bd8030 pop {r4, r5, pc} 8540: 00021558 .word 0x00021558 8544: 00021530 .word 0x00021530 8548: 00021564 .word 0x00021564 854c: 00021574 .word 0x00021574 00006d28 <_Thread_Stack_Allocate>: * 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_Table->stack_allocate_hook ) { 6d28: e59f305c ldr r3, [pc, #92] ; 6d8c <_Thread_Stack_Allocate+0x64> 6d2c: e5933000 ldr r3, [r3] 6d30: e5932020 ldr r2, [r3, #32] size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 6d34: e59f3054 ldr r3, [pc, #84] ; 6d90 <_Thread_Stack_Allocate+0x68> 6d38: e5933000 ldr r3, [r3] 6d3c: e92d4030 push {r4, r5, lr} 6d40: e1510003 cmp r1, r3 6d44: 21a04001 movcs r4, r1 6d48: 31a04003 movcc r4, r3 * 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_Table->stack_allocate_hook ) { 6d4c: e3520000 cmp r2, #0 ; 0x0 size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 6d50: e1a05000 mov r5, r0 * 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_Table->stack_allocate_hook ) { 6d54: 0a000003 beq 6d68 <_Thread_Stack_Allocate+0x40> stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 6d58: e1a00004 mov r0, r4 <== NOT EXECUTED 6d5c: e1a0e00f mov lr, pc <== NOT EXECUTED 6d60: e12fff12 bx r2 <== NOT EXECUTED 6d64: ea000002 b 6d74 <_Thread_Stack_Allocate+0x4c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; 6d68: e2844004 add r4, r4, #4 ; 0x4 * 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 ); 6d6c: e1a00004 mov r0, r4 6d70: eb000203 bl 7584 <_Workspace_Allocate> 6d74: e1a03000 mov r3, r0 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 6d78: e3500000 cmp r0, #0 ; 0x0 6d7c: 11a00004 movne r0, r4 6d80: 03a00000 moveq r0, #0 ; 0x0 } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 6d84: e58530cc str r3, [r5, #204] return the_stack_size; } 6d88: e8bd8030 pop {r4, r5, pc} 6d8c: 0001541c .word 0x0001541c 6d90: 0001389c .word 0x0001389c 00006d94 <_Thread_Stack_Free>: { /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 6d94: e5d030c0 ldrb r3, [r0, #192] 6d98: e3530000 cmp r3, #0 ; 0x0 */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 6d9c: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 6da0: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) * 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_Table->stack_free_hook ) 6da4: e59f3028 ldr r3, [pc, #40] ; 6dd4 <_Thread_Stack_Free+0x40> 6da8: e5933000 ldr r3, [r3] 6dac: e5933024 ldr r3, [r3, #36] 6db0: e3530000 cmp r3, #0 ; 0x0 6db4: 0a000003 beq 6dc8 <_Thread_Stack_Free+0x34> (*_Configuration_Table->stack_free_hook)( 6db8: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 6dbc: e1a0e00f mov lr, pc <== NOT EXECUTED 6dc0: e12fff13 bx r3 <== NOT EXECUTED 6dc4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 6dc8: e59000c8 ldr r0, [r0, #200] } 6dcc: e49de004 pop {lr} ; (ldr lr, [sp], #4) if ( _Configuration_Table->stack_free_hook ) (*_Configuration_Table->stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 6dd0: ea0001e7 b 7574 <_Workspace_Free> 6dd4: 0001541c .word 0x0001541c 00006e68 <_Thread_Tickle_timeslice>: void _Thread_Tickle_timeslice( void ) { Thread_Control *executing; executing = _Thread_Executing; 6e68: e59f3088 ldr r3, [pc, #136] ; 6ef8 <_Thread_Tickle_timeslice+0x90> * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 6e6c: e92d4010 push {r4, lr} Thread_Control *executing; executing = _Thread_Executing; 6e70: e5934000 ldr r4, [r3] /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 6e74: e5d43076 ldrb r3, [r4, #118] 6e78: e3530000 cmp r3, #0 ; 0x0 6e7c: 08bd8010 popeq {r4, pc} return; if ( !_States_Is_ready( executing->current_state ) ) 6e80: e5943010 ldr r3, [r4, #16] 6e84: e3530000 cmp r3, #0 ; 0x0 6e88: 18bd8010 popne {r4, pc} /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 6e8c: e594307c ldr r3, [r4, #124] 6e90: e3530001 cmp r3, #1 ; 0x1 6e94: 38bd8010 popcc {r4, pc} 6e98: e3530002 cmp r3, #2 ; 0x2 6e9c: 9a000002 bls 6eac <_Thread_Tickle_timeslice+0x44> 6ea0: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 6ea4: 18bd8010 popne {r4, pc} <== NOT EXECUTED 6ea8: ea000009 b 6ed4 <_Thread_Tickle_timeslice+0x6c> <== NOT EXECUTED case THREAD_CPU_BUDGET_ALGORITHM_NONE: break; case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: if ( (int)(--executing->cpu_time_budget) <= 0 ) { 6eac: e5943078 ldr r3, [r4, #120] 6eb0: e2433001 sub r3, r3, #1 ; 0x1 6eb4: e3530000 cmp r3, #0 ; 0x0 6eb8: e5843078 str r3, [r4, #120] 6ebc: c8bd8010 popgt {r4, pc} _Thread_Reset_timeslice(); 6ec0: eb000b9f bl 9d44 <_Thread_Reset_timeslice> executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 6ec4: e59f3030 ldr r3, [pc, #48] ; 6efc <_Thread_Tickle_timeslice+0x94> 6ec8: e5933000 ldr r3, [r3] 6ecc: e5843078 str r3, [r4, #120] 6ed0: e8bd8010 pop {r4, pc} } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 6ed4: e5943078 ldr r3, [r4, #120] <== NOT EXECUTED 6ed8: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 6edc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 6ee0: e5843078 str r3, [r4, #120] <== NOT EXECUTED 6ee4: 18bd8010 popne {r4, pc} <== NOT EXECUTED (*executing->budget_callout)( executing ); 6ee8: e1a00004 mov r0, r4 <== NOT EXECUTED 6eec: e1a0e00f mov lr, pc <== NOT EXECUTED 6ef0: e594f080 ldr pc, [r4, #128] <== NOT EXECUTED 6ef4: e8bd8010 pop {r4, pc} <== NOT EXECUTED 6ef8: 00015444 .word 0x00015444 6efc: 00015344 .word 0x00015344 00005bf4 <_Thread_blocking_operation_Cancel>: /* * 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 ) ) { 5bf4: e5913050 ldr r3, [r1, #80] <== NOT EXECUTED 5bf8: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 5bfc: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED void _Thread_blocking_operation_Cancel( Thread_blocking_operation_States sync_state, Thread_Control *the_thread, ISR_Level level ) { 5c00: e92d4010 push {r4, lr} <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 5c04: e5813044 str r3, [r1, #68] <== NOT EXECUTED void _Thread_blocking_operation_Cancel( Thread_blocking_operation_States sync_state, Thread_Control *the_thread, ISR_Level level ) { 5c08: e1a04001 mov r4, r1 <== NOT EXECUTED /* * 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 ) ) { 5c0c: 1a000005 bne 5c28 <_Thread_blocking_operation_Cancel+0x34> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 5c10: e2833003 add r3, r3, #3 ; 0x3 <== NOT EXECUTED 5c14: e5813050 str r3, [r1, #80] <== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 5c18: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 5c1c: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED 5c20: eb000605 bl 743c <_Watchdog_Remove> <== NOT EXECUTED 5c24: ea000000 b 5c2c <_Thread_blocking_operation_Cancel+0x38> <== NOT EXECUTED } else _ISR_Enable( level ); 5c28: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 5c2c: e59f1008 ldr r1, [pc, #8] ; 5c3c <_Thread_blocking_operation_Cancel+0x48> <== NOT EXECUTED 5c30: e1a00004 mov r0, r4 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 5c34: e8bd4010 pop {r4, lr} <== NOT EXECUTED 5c38: ea000068 b 5de0 <_Thread_Clear_state> <== NOT EXECUTED 5c3c: 1003fff8 .word 0x1003fff8 00006774 <_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 ) { 6774: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 6778: e1a0c001 mov ip, r1 Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 677c: e5915014 ldr r5, [r1, #20] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 6780: e281303c add r3, r1, #60 ; 0x3c 6784: e58c3038 str r3, [ip, #56] the_chain->permanent_null = NULL; 6788: e3a03000 mov r3, #0 ; 0x0 Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 678c: e1a04000 mov r4, r0 6790: e58c303c str r3, [ip, #60] RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); 6794: e1a00325 lsr r0, r5, #6 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 6798: e283300c add r3, r3, #12 ; 0xc 679c: e0264093 mla r6, r3, r0, r4 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 67a0: e3150020 tst r5, #32 ; 0x20 the_chain->last = _Chain_Head(the_chain); 67a4: e2811038 add r1, r1, #56 ; 0x38 67a8: e58c1040 str r1, [ip, #64] Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 67ac: e1a09002 mov r9, r2 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; 67b0: e5948038 ldr r8, [r4, #56] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 67b4: 159fa19c ldrne sl, [pc, #412] ; 6958 <_Thread_queue_Enqueue_priority+0x1e4> _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 67b8: 12860008 addne r0, r6, #8 ; 0x8 priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 67bc: 1a00002d bne 6878 <_Thread_queue_Enqueue_priority+0x104> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 67c0: e3a03003 mov r3, #3 ; 0x3 67c4: e0030390 mul r3, r0, r3 67c8: e2833001 add r3, r3, #1 ; 0x1 67cc: e0840103 add r0, r4, r3, lsl #2 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; 67d0: e1a07006 mov r7, r6 if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 67d4: e10f6000 mrs r6, CPSR 67d8: e38630c0 orr r3, r6, #192 ; 0xc0 67dc: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->first; 67e0: e3e02000 mvn r2, #0 ; 0x0 67e4: e5971000 ldr r1, [r7] 67e8: ea000011 b 6834 <_Thread_queue_Enqueue_priority+0xc0> while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; 67ec: e5912014 ldr r2, [r1, #20] if ( priority <= search_priority ) 67f0: e1550002 cmp r5, r2 67f4: 9a000010 bls 683c <_Thread_queue_Enqueue_priority+0xc8> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.next; 67f8: e5911000 ldr r1, [r1] if ( _Chain_Is_tail( header, (Chain_Node *)search_thread ) ) 67fc: e1510000 cmp r1, r0 6800: 0a00000d beq 683c <_Thread_queue_Enqueue_priority+0xc8> break; search_priority = search_thread->current_priority; 6804: e5912014 ldr r2, [r1, #20] if ( priority <= search_priority ) 6808: e1550002 cmp r5, r2 680c: 9a00000a bls 683c <_Thread_queue_Enqueue_priority+0xc8> break; #endif _ISR_Flash( level ); 6810: e10f3000 mrs r3, CPSR 6814: e129f006 msr CPSR_fc, r6 6818: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 681c: e5913010 ldr r3, [r1, #16] 6820: e1180003 tst r8, r3 6824: 1a000001 bne 6830 <_Thread_queue_Enqueue_priority+0xbc> _ISR_Enable( level ); 6828: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 682c: eaffffe8 b 67d4 <_Thread_queue_Enqueue_priority+0x60> <== NOT EXECUTED goto restart_forward_search; } search_thread = 6830: e5911000 ldr r1, [r1] 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 ) ) { 6834: e1510000 cmp r1, r0 6838: 1affffeb bne 67ec <_Thread_queue_Enqueue_priority+0x78> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 683c: e5943030 ldr r3, [r4, #48] 6840: e3530001 cmp r3, #1 ; 0x1 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 ) ) { 6844: e1a00006 mov r0, r6 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 6848: 1a00003f bne 694c <_Thread_queue_Enqueue_priority+0x1d8> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 684c: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 6850: e1550002 cmp r5, r2 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 6854: e5843030 str r3, [r4, #48] if ( priority == search_priority ) 6858: 0a000031 beq 6924 <_Thread_queue_Enqueue_priority+0x1b0> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 685c: e5913004 ldr r3, [r1, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 6860: e88c000a stm ip, {r1, r3} the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 6864: e58c4044 str r4, [ip, #68] previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 6868: e583c000 str ip, [r3] search_node->previous = the_node; 686c: e581c004 str ip, [r1, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 6870: e129f006 msr CPSR_fc, r6 6874: ea000032 b 6944 <_Thread_queue_Enqueue_priority+0x1d0> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 6878: e5da3000 ldrb r3, [sl] 687c: e2832001 add r2, r3, #1 ; 0x1 _ISR_Disable( level ); 6880: e10f7000 mrs r7, CPSR 6884: e38730c0 orr r3, r7, #192 ; 0xc0 6888: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->last; 688c: e5901000 ldr r1, [r0] 6890: ea000011 b 68dc <_Thread_queue_Enqueue_priority+0x168> while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; 6894: e5912014 ldr r2, [r1, #20] if ( priority >= search_priority ) 6898: e1550002 cmp r5, r2 689c: 2a000010 bcs 68e4 <_Thread_queue_Enqueue_priority+0x170> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 68a0: e5911004 ldr r1, [r1, #4] if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 68a4: e1510006 cmp r1, r6 68a8: 0a00000d beq 68e4 <_Thread_queue_Enqueue_priority+0x170> break; search_priority = search_thread->current_priority; 68ac: e5912014 ldr r2, [r1, #20] if ( priority >= search_priority ) 68b0: e1550002 cmp r5, r2 68b4: 2a00000a bcs 68e4 <_Thread_queue_Enqueue_priority+0x170> break; #endif _ISR_Flash( level ); 68b8: e10f3000 mrs r3, CPSR 68bc: e129f007 msr CPSR_fc, r7 68c0: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 68c4: e5913010 ldr r3, [r1, #16] 68c8: e1180003 tst r8, r3 68cc: 1a000001 bne 68d8 <_Thread_queue_Enqueue_priority+0x164> _ISR_Enable( level ); 68d0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED 68d4: eaffffe7 b 6878 <_Thread_queue_Enqueue_priority+0x104> <== NOT EXECUTED goto restart_reverse_search; } search_thread = (Thread_Control *) 68d8: e5911004 ldr r1, [r1, #4] 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 ) ) { 68dc: e1510006 cmp r1, r6 68e0: 1affffeb bne 6894 <_Thread_queue_Enqueue_priority+0x120> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 68e4: e5943030 ldr r3, [r4, #48] 68e8: e3530001 cmp r3, #1 ; 0x1 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 ) ) { 68ec: e1a00007 mov r0, r7 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 68f0: 1a000015 bne 694c <_Thread_queue_Enqueue_priority+0x1d8> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 68f4: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 68f8: e1550002 cmp r5, r2 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 68fc: e5843030 str r3, [r4, #48] if ( priority == search_priority ) 6900: 0a000007 beq 6924 <_Thread_queue_Enqueue_priority+0x1b0> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 6904: e5913000 ldr r3, [r1] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 6908: e58c1004 str r1, [ip, #4] search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 690c: e58c3000 str r3, [ip] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 6910: e58c4044 str r4, [ip, #68] next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; 6914: e581c000 str ip, [r1] next_node->previous = the_node; 6918: e583c004 str ip, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 691c: e129f007 msr CPSR_fc, r7 6920: ea000007 b 6944 <_Thread_queue_Enqueue_priority+0x1d0> 6924: e281303c add r3, r1, #60 ; 0x3c 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; 6928: e5932004 ldr r2, [r3, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 692c: e58c3000 str r3, [ip] the_node->previous = previous_node; 6930: e58c2004 str r2, [ip, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 6934: e58c4044 str r4, [ip, #68] previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 6938: e582c000 str ip, [r2] search_node->previous = the_node; 693c: e583c004 str ip, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 6940: e129f000 msr CPSR_fc, r0 6944: e3a00001 mov r0, #1 ; 0x1 6948: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} * 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; 694c: e5890000 str r0, [r9] <== NOT EXECUTED return the_thread_queue->sync_state; 6950: e5940030 ldr r0, [r4, #48] <== NOT EXECUTED } 6954: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 6958: 000138a0 .word 0x000138a0 0000a6ac <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { a6ac: e92d4010 push {r4, lr} a6b0: e1a04001 mov r4, r1 ISR_Level level; _ISR_Disable( level ); a6b4: e10f0000 mrs r0, CPSR a6b8: e38030c0 orr r3, r0, #192 ; 0xc0 a6bc: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { a6c0: e59f3064 ldr r3, [pc, #100] ; a72c <_Thread_queue_Extract_fifo+0x80> a6c4: e5912010 ldr r2, [r1, #16] a6c8: e0023003 and r3, r2, r3 a6cc: e3530000 cmp r3, #0 ; 0x0 a6d0: 1a000001 bne a6dc <_Thread_queue_Extract_fifo+0x30> _ISR_Enable( level ); a6d4: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a6d8: e8bd8010 pop {r4, pc} <== NOT EXECUTED _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a6dc: e5913050 ldr r3, [r1, #80] { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a6e0: e5942004 ldr r2, [r4, #4] ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a6e4: e5911000 ldr r1, [r1] a6e8: e3530002 cmp r3, #2 ; 0x2 return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; a6ec: e3a03000 mov r3, #0 ; 0x0 previous = the_node->previous; next->previous = previous; previous->next = next; a6f0: e5821000 str r1, [r2] a6f4: e5843044 str r3, [r4, #68] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; a6f8: e5812004 str r2, [r1, #4] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a6fc: 0a000001 beq a708 <_Thread_queue_Extract_fifo+0x5c> _ISR_Enable( level ); a700: e129f000 msr CPSR_fc, r0 a704: ea000004 b a71c <_Thread_queue_Extract_fifo+0x70> a708: e3a03003 mov r3, #3 ; 0x3 a70c: e5843050 str r3, [r4, #80] } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); a710: e129f000 msr CPSR_fc, r0 (void) _Watchdog_Remove( &the_thread->Timer ); a714: e2840048 add r0, r4, #72 ; 0x48 a718: ebfff347 bl 743c <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a71c: e59f100c ldr r1, [pc, #12] ; a730 <_Thread_queue_Extract_fifo+0x84> a720: e1a00004 mov r0, r4 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a724: e8bd4010 pop {r4, lr} a728: eaffedac b 5de0 <_Thread_Clear_state> a72c: 0003bee0 .word 0x0003bee0 a730: 1003fff8 .word 0x1003fff8 00009b0c <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { 9b0c: e92d4070 push {r4, r5, r6, lr} 9b10: e1a04001 mov r4, r1 9b14: e20260ff and r6, r2, #255 ; 0xff Chain_Node *new_first_node; Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); 9b18: e10fc000 mrs ip, CPSR 9b1c: e38c30c0 orr r3, ip, #192 ; 0xc0 9b20: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 9b24: e59f30b4 ldr r3, [pc, #180] ; 9be0 <_Thread_queue_Extract_priority_helper+0xd4> 9b28: e5912010 ldr r2, [r1, #16] 9b2c: e0023003 and r3, r2, r3 9b30: e3530000 cmp r3, #0 ; 0x0 9b34: 1a000001 bne 9b40 <_Thread_queue_Extract_priority_helper+0x34> _ISR_Enable( level ); 9b38: e129f00c msr CPSR_fc, ip <== NOT EXECUTED 9b3c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 9b40: e5911038 ldr r1, [r1, #56] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 9b44: e284303c add r3, r4, #60 ; 0x3c 9b48: e1510003 cmp r1, r3 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 9b4c: e894000c ldm r4, {r2, r3} new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; next_node->previous = previous_node; 9b50: 05823004 streq r3, [r2, #4] new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 9b54: 05832000 streq r2, [r3] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 9b58: 0a00000e beq 9b98 <_Thread_queue_Extract_priority_helper+0x8c> new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; 9b5c: e5945040 ldr r5, [r4, #64] new_second_node = new_first_node->next; 9b60: e5910000 ldr r0, [r1] previous_node->next = new_first_node; next_node->previous = new_first_node; 9b64: e5821004 str r1, [r2, #4] new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; 9b68: e5831000 str r1, [r3] next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 9b6c: e881000c stm r1, {r2, r3} if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 9b70: e5942038 ldr r2, [r4, #56] 9b74: e5943040 ldr r3, [r4, #64] 9b78: e1520003 cmp r2, r3 9b7c: 0a000005 beq 9b98 <_Thread_queue_Extract_priority_helper+0x8c> new_second_node->previous = _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 9b80: e281203c add r2, r1, #60 ; 0x3c new_first_node->next = next_node; new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ new_second_node->previous = 9b84: e2813038 add r3, r1, #56 ; 0x38 9b88: e5803004 str r3, [r0, #4] _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 9b8c: e5810038 str r0, [r1, #56] new_first_thread->Wait.Block2n.last = last_node; 9b90: e5815040 str r5, [r1, #64] last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 9b94: e5852000 str r2, [r5] /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 9b98: e3560000 cmp r6, #0 ; 0x0 9b9c: 0a000001 beq 9ba8 <_Thread_queue_Extract_priority_helper+0x9c> _ISR_Enable( level ); 9ba0: e129f00c msr CPSR_fc, ip 9ba4: e8bd8070 pop {r4, r5, r6, pc} return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 9ba8: e5943050 ldr r3, [r4, #80] 9bac: e3530002 cmp r3, #2 ; 0x2 9bb0: 0a000001 beq 9bbc <_Thread_queue_Extract_priority_helper+0xb0> _ISR_Enable( level ); 9bb4: e129f00c msr CPSR_fc, ip 9bb8: ea000004 b 9bd0 <_Thread_queue_Extract_priority_helper+0xc4> 9bbc: e3a03003 mov r3, #3 ; 0x3 <== NOT EXECUTED 9bc0: e5843050 str r3, [r4, #80] <== NOT EXECUTED } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 9bc4: e129f00c msr CPSR_fc, ip <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 9bc8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED 9bcc: ebfff61a bl 743c <_Watchdog_Remove> <== NOT EXECUTED 9bd0: e59f100c ldr r1, [pc, #12] ; 9be4 <_Thread_queue_Extract_priority_helper+0xd8> 9bd4: e1a00004 mov r0, r4 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 9bd8: e8bd4070 pop {r4, r5, r6, lr} 9bdc: eafff07f b 5de0 <_Thread_Clear_state> 9be0: 0003bee0 .word 0x0003bee0 9be4: 1003fff8 .word 0x1003fff8 00009be8 <_Thread_queue_Process_timeout>: void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 9be8: e5902044 ldr r2, [r0, #68] * 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 && 9bec: e5921030 ldr r1, [r2, #48] 9bf0: e3510000 cmp r1, #0 ; 0x0 9bf4: 0a000009 beq 9c20 <_Thread_queue_Process_timeout+0x38> 9bf8: e59f3034 ldr r3, [pc, #52] ; 9c34 <_Thread_queue_Process_timeout+0x4c> <== NOT EXECUTED 9bfc: e5933000 ldr r3, [r3] <== NOT EXECUTED 9c00: e1500003 cmp r0, r3 <== NOT EXECUTED 9c04: 1a000005 bne 9c20 <_Thread_queue_Process_timeout+0x38> <== NOT EXECUTED _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { 9c08: e3510003 cmp r1, #3 ; 0x3 <== NOT EXECUTED the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 9c0c: 1592303c ldrne r3, [r2, #60] <== NOT EXECUTED 9c10: 15803034 strne r3, [r0, #52] <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 9c14: 13a03002 movne r3, #2 ; 0x2 <== NOT EXECUTED 9c18: 15823030 strne r3, [r2, #48] <== NOT EXECUTED 9c1c: e12fff1e bx lr <== NOT EXECUTED } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 9c20: e592303c ldr r3, [r2, #60] _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 9c24: e1a01000 mov r1, r0 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; 9c28: e5803034 str r3, [r0, #52] _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 9c2c: e5900044 ldr r0, [r0, #68] 9c30: eaffffaf b 9af4 <_Thread_queue_Extract> 9c34: 00015444 .word 0x00015444 0001f458 <_Timespec_Divide_by_integer>: /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; 1f458: e5903000 ldr r3, [r0] <== NOT EXECUTED t *= TOD_NANOSECONDS_PER_SECOND; 1f45c: e59fc06c ldr ip, [pc, #108] ; 1f4d0 <_Timespec_Divide_by_integer+0x78> <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 1f460: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; 1f464: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED t *= TOD_NANOSECONDS_PER_SECOND; 1f468: e086539c umull r5, r6, ip, r3 <== NOT EXECUTED 1f46c: e026649c mla r6, ip, r4, r6 <== NOT EXECUTED t += time->tv_nsec; 1f470: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 1f474: e0957000 adds r7, r5, r0 <== NOT EXECUTED 1f478: e0a68fc0 adc r8, r6, r0, asr #31 <== NOT EXECUTED 1f47c: e1a03001 mov r3, r1 <== NOT EXECUTED 1f480: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 1f484: e1a06002 mov r6, r2 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 1f488: e1a00007 mov r0, r7 <== NOT EXECUTED 1f48c: e1a02003 mov r2, r3 <== NOT EXECUTED 1f490: e1a01008 mov r1, r8 <== NOT EXECUTED 1f494: e1a03004 mov r3, r4 <== NOT EXECUTED 1f498: eb006a32 bl 39d68 <__udivdi3> <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 1f49c: e59f202c ldr r2, [pc, #44] ; 1f4d0 <_Timespec_Divide_by_integer+0x78> <== NOT EXECUTED 1f4a0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 1f4a4: e1a04000 mov r4, r0 <== NOT EXECUTED 1f4a8: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 1f4ac: eb006a2d bl 39d68 <__udivdi3> <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 1f4b0: e1a01005 mov r1, r5 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 1f4b4: e5860000 str r0, [r6] <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 1f4b8: e59f2010 ldr r2, [pc, #16] ; 1f4d0 <_Timespec_Divide_by_integer+0x78> <== NOT EXECUTED 1f4bc: e1a00004 mov r0, r4 <== NOT EXECUTED 1f4c0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1f4c4: eb006b6f bl 3a288 <__umoddi3> <== NOT EXECUTED 1f4c8: e5860004 str r0, [r6, #4] <== NOT EXECUTED } 1f4cc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 1f4d0: 3b9aca00 .word 0x3b9aca00 00010630 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 10630: e59f3038 ldr r3, [pc, #56] ; 10670 <_Timespec_From_ticks+0x40> <== NOT EXECUTED 10634: e5933000 ldr r3, [r3] <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 10638: e92d4030 push {r4, r5, lr} <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 1063c: e0040093 mul r4, r3, r0 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 10640: e1a05001 mov r5, r1 <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 10644: e1a00004 mov r0, r4 <== NOT EXECUTED 10648: e59f1024 ldr r1, [pc, #36] ; 10674 <_Timespec_From_ticks+0x44> <== NOT EXECUTED 1064c: ebffc0ae bl 90c <__aeabi_uidiv> <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 10650: e59f101c ldr r1, [pc, #28] ; 10674 <_Timespec_From_ticks+0x44> <== NOT EXECUTED { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 10654: e5850000 str r0, [r5] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 10658: e1a00004 mov r0, r4 <== NOT EXECUTED 1065c: eb002e0b bl 1be90 <__umodsi3> <== NOT EXECUTED 10660: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED 10664: e0030390 mul r3, r0, r3 <== NOT EXECUTED 10668: e5853004 str r3, [r5, #4] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 1066c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 10670: 000231b0 .word 0x000231b0 10674: 000f4240 .word 0x000f4240 00010678 <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) 10678: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1067c: 0a00000a beq 106ac <_Timespec_Is_valid+0x34> <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 10680: e5903000 ldr r3, [r0] <== NOT EXECUTED 10684: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 10688: ba000007 blt 106ac <_Timespec_Is_valid+0x34> <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 1068c: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED 10690: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 10694: ba000004 blt 106ac <_Timespec_Is_valid+0x34> <== NOT EXECUTED 10698: e59f3014 ldr r3, [pc, #20] ; 106b4 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED 1069c: e1500003 cmp r0, r3 <== NOT EXECUTED 106a0: 83a00000 movhi r0, #0 ; 0x0 <== NOT EXECUTED 106a4: 93a00001 movls r0, #1 ; 0x1 <== NOT EXECUTED 106a8: e12fff1e bx lr <== NOT EXECUTED 106ac: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 106b0: e12fff1e bx lr <== NOT EXECUTED 106b4: 3b9ac9ff .word 0x3b9ac9ff 000106b8 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 106b8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 106bc: e5907000 ldr r7, [r0] <== NOT EXECUTED 106c0: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 106c4: e1a06000 mov r6, r0 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 106c8: 1a000002 bne 106d8 <_Timespec_To_ticks+0x20> <== NOT EXECUTED 106cc: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED 106d0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 106d4: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 106d8: e59f3030 ldr r3, [pc, #48] ; 10710 <_Timespec_To_ticks+0x58> <== NOT EXECUTED 106dc: e5935000 ldr r5, [r3] <== NOT EXECUTED 106e0: e59f002c ldr r0, [pc, #44] ; 10714 <_Timespec_To_ticks+0x5c> <== NOT EXECUTED 106e4: e1a01005 mov r1, r5 <== NOT EXECUTED 106e8: ebffc087 bl 90c <__aeabi_uidiv> <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 106ec: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 106f0: e0040097 mul r4, r7, r0 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 106f4: e5960004 ldr r0, [r6, #4] <== NOT EXECUTED 106f8: ebffc083 bl 90c <__aeabi_uidiv> <== NOT EXECUTED 106fc: e1a01005 mov r1, r5 <== NOT EXECUTED 10700: ebffc081 bl 90c <__aeabi_uidiv> <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 10704: e0900004 adds r0, r0, r4 <== NOT EXECUTED 10708: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return ticks; return 1; } 1070c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 10710: 000231b0 .word 0x000231b0 10714: 000f4240 .word 0x000f4240 0000b714 <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { b714: e92d4010 push {r4, lr} b718: e1a04000 mov r4, r0 _Chain_Extract( &the_extension->Node ); b71c: eb001061 bl f8a8 <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) b720: e5943024 ldr r3, [r4, #36] b724: e3530000 cmp r3, #0 ; 0x0 b728: 08bd8010 popeq {r4, pc} _Chain_Extract( &the_extension->Switch.Node ); b72c: e2840008 add r0, r4, #8 ; 0x8 <== NOT EXECUTED } b730: e8bd4010 pop {r4, lr} <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node ); b734: ea00105b b f8a8 <_Chain_Extract> <== NOT EXECUTED 000072cc <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 72cc: e59f30fc ldr r3, [pc, #252] ; 73d0 <_Watchdog_Insert+0x104> void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 72d0: e92d41f0 push {r4, r5, r6, r7, r8, lr} 72d4: e1a0c001 mov ip, r1 72d8: e1a07000 mov r7, r0 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 72dc: e5934000 ldr r4, [r3] _ISR_Disable( level ); 72e0: e10f5000 mrs r5, CPSR 72e4: e38530c0 orr r3, r5, #192 ; 0xc0 72e8: e129f003 msr CPSR_fc, r3 /* * 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 ) { 72ec: e5913008 ldr r3, [r1, #8] 72f0: e3530000 cmp r3, #0 ; 0x0 72f4: 0a000001 beq 7300 <_Watchdog_Insert+0x34> _ISR_Enable( level ); 72f8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 72fc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 7300: e59f30cc ldr r3, [pc, #204] ; 73d4 <_Watchdog_Insert+0x108> 7304: e5932000 ldr r2, [r3] 7308: e2822001 add r2, r2, #1 ; 0x1 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 730c: e59f60c4 ldr r6, [pc, #196] ; 73d8 <_Watchdog_Insert+0x10c> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 7310: e5832000 str r2, [r3] if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 7314: e3a03001 mov r3, #1 ; 0x1 7318: e5813008 str r3, [r1, #8] if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 731c: e1a08006 mov r8, r6 the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 7320: e59c000c ldr r0, [ip, #12] * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 7324: e5971000 ldr r1, [r7] ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 7328: e3500000 cmp r0, #0 ; 0x0 732c: 0a000014 beq 7384 <_Watchdog_Insert+0xb8> 7330: e5913000 ldr r3, [r1] 7334: e3530000 cmp r3, #0 ; 0x0 7338: 0a000011 beq 7384 <_Watchdog_Insert+0xb8> break; if ( delta_interval < after->delta_interval ) { 733c: e5912010 ldr r2, [r1, #16] 7340: e1500002 cmp r0, r2 after->delta_interval -= delta_interval; 7344: 30603002 rsbcc r3, r0, r2 7348: 35813010 strcc r3, [r1, #16] 734c: 3a00000c bcc 7384 <_Watchdog_Insert+0xb8> * 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 ); 7350: e10f3000 mrs r3, CPSR 7354: e129f005 msr CPSR_fc, r5 7358: e129f003 msr CPSR_fc, r3 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 735c: e59c3008 ldr r3, [ip, #8] 7360: e3530001 cmp r3, #1 ; 0x1 if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 7364: e0620000 rsb r0, r2, r0 * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 7368: 1a000010 bne 73b0 <_Watchdog_Insert+0xe4> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 736c: e5963000 ldr r3, [r6] 7370: e1530004 cmp r3, r4 _Watchdog_Sync_level = insert_isr_nest_level; 7374: 85884000 strhi r4, [r8] 7378: 8affffe8 bhi 7320 <_Watchdog_Insert+0x54> RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 737c: e5911000 ldr r1, [r1] 7380: eaffffe8 b 7328 <_Watchdog_Insert+0x5c> the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; 7384: e59f3050 ldr r3, [pc, #80] ; 73dc <_Watchdog_Insert+0x110> _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 7388: e5912004 ldr r2, [r1, #4] the_watchdog->start_time = _Watchdog_Ticks_since_boot; 738c: e5933000 ldr r3, [r3] ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 7390: e5921000 ldr r1, [r2] 7394: e58c3014 str r3, [ip, #20] RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 7398: e3a03002 mov r3, #2 ; 0x2 after_node->next = the_node; 739c: e582c000 str ip, [r2] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 73a0: e98c000c stmib ip, {r2, r3} } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 73a4: e58c0010 str r0, [ip, #16] before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 73a8: e581c004 str ip, [r1, #4] Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 73ac: e58c1000 str r1, [ip] _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; 73b0: e59f3020 ldr r3, [pc, #32] ; 73d8 <_Watchdog_Insert+0x10c> _Watchdog_Sync_count--; 73b4: e59f2018 ldr r2, [pc, #24] ; 73d4 <_Watchdog_Insert+0x108> _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; 73b8: e5834000 str r4, [r3] _Watchdog_Sync_count--; 73bc: e5923000 ldr r3, [r2] 73c0: e2433001 sub r3, r3, #1 ; 0x1 73c4: e5823000 str r3, [r2] _ISR_Enable( level ); 73c8: e129f005 msr CPSR_fc, r5 73cc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 73d0: 00015420 .word 0x00015420 73d4: 000154e0 .word 0x000154e0 73d8: 00015440 .word 0x00015440 73dc: 000154e4 .word 0x000154e4 000075bc <_Workspace_Handler_initialization>: */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 75bc: e92d4030 push {r4, r5, lr} uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 75c0: e2504000 subs r4, r0, #0 ; 0x0 */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 75c4: e1a05001 mov r5, r1 uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 75c8: 0a000001 beq 75d4 <_Workspace_Handler_initialization+0x18> 75cc: e2141003 ands r1, r4, #3 ; 0x3 75d0: 0a000003 beq 75e4 <_Workspace_Handler_initialization+0x28> _Internal_error_Occurred( 75d4: e3a00000 mov r0, #0 ; 0x0 75d8: e3a01001 mov r1, #1 ; 0x1 75dc: e3a02002 mov r2, #2 ; 0x2 75e0: ea00000e b 7620 <_Workspace_Handler_initialization+0x64> INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) 75e4: e59f3038 ldr r3, [pc, #56] ; 7624 <_Workspace_Handler_initialization+0x68> 75e8: e5933000 ldr r3, [r3] 75ec: e5d33028 ldrb r3, [r3, #40] 75f0: e3530000 cmp r3, #0 ; 0x0 memset( starting_address, 0, size ); 75f4: 11a02005 movne r2, r5 75f8: 1b000e73 blne afcc memory_available = _Heap_Initialize( 75fc: e1a01004 mov r1, r4 7600: e1a02005 mov r2, r5 7604: e59f001c ldr r0, [pc, #28] ; 7628 <_Workspace_Handler_initialization+0x6c> 7608: e3a03004 mov r3, #4 ; 0x4 760c: ebfff706 bl 522c <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 7610: e3500000 cmp r0, #0 ; 0x0 7614: 18bd8030 popne {r4, r5, pc} _Internal_error_Occurred( 7618: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 761c: e3a02003 mov r2, #3 ; 0x3 <== NOT EXECUTED 7620: ebfff786 bl 5440 <_Internal_error_Occurred> 7624: 0001541c .word 0x0001541c 7628: 000153ac .word 0x000153ac 00008458 <__assert>: void __assert( const char *file, int line, const char *failedexpr ) { 8458: e1a03002 mov r3, r2 <== NOT EXECUTED __assert_func (file, line, NULL, failedexpr); 845c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 8460: eaffffe9 b 840c <__assert_func> <== NOT EXECUTED 0000840c <__assert_func>: const char *file, int line, const char *func, const char *failedexpr ) { 840c: e92d4010 push {r4, lr} <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 8410: e252c000 subs ip, r2, #0 ; 0x0 <== NOT EXECUTED 8414: 059fc030 ldreq ip, [pc, #48] ; 844c <__assert_func+0x40> <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 8418: e1a04001 mov r4, r1 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 841c: 159fe02c ldrne lr, [pc, #44] ; 8450 <__assert_func+0x44> <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 8420: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 8424: e1a01003 mov r1, r3 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 8428: 01a0e00c moveq lr, ip <== NOT EXECUTED 842c: e1a02000 mov r2, r0 <== NOT EXECUTED 8430: e1a03004 mov r3, r4 <== NOT EXECUTED 8434: e59f0018 ldr r0, [pc, #24] ; 8454 <__assert_func+0x48> <== NOT EXECUTED 8438: e58de000 str lr, [sp] <== NOT EXECUTED 843c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 8440: ebffe6a9 bl 1eec <== NOT EXECUTED file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 8444: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 8448: ebfff16a bl 49f8 <== NOT EXECUTED 844c: 00014bbb .word 0x00014bbb 8450: 00014d2d .word 0x00014d2d 8454: 00014d3a .word 0x00014d3a 0001d7f8 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 1d7f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1d7fc: e12fff1e bx lr <== NOT EXECUTED 00012e38 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) _fini(); 12e38: e1a04000 mov r4, r0 12e3c: eb000263 bl 137d0 <___DTOR_END__> * 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(); 12e40: ebffffe1 bl 12dcc rtems_shutdown_executive(status); 12e44: e1a00004 mov r0, r4 12e48: eb00003a bl 12f38 12e4c: eafffffe b 12e4c <_exit+0x14> <== NOT EXECUTED 000273b4 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 273b4: e1a00001 mov r0, r1 <== NOT EXECUTED 273b8: e1a01002 mov r1, r2 <== NOT EXECUTED 273bc: e1a02003 mov r2, r3 <== NOT EXECUTED 273c0: eaffff88 b 271e8 <== NOT EXECUTED 0001d6bc <_getpid_r>: pid_t _getpid_r( struct _reent *ptr ) { return getpid(); } 1d6bc: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 1d6c0: e12fff1e bx lr <== NOT EXECUTED 0000883c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 883c: eaffffe6 b 87dc <== NOT EXECUTED 0001d7f0 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 1d7f0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1d7f4: e12fff1e bx lr <== NOT EXECUTED 0001c970 <_link_r>: struct _reent *ptr, const char *existing, const char *new ) { return link( existing, new ); 1c970: e1a00001 mov r0, r1 <== NOT EXECUTED 1c974: e1a01002 mov r1, r2 <== NOT EXECUTED 1c978: eaffff73 b 1c74c <== NOT EXECUTED 00012db4 <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 12db4: e1a00001 mov r0, r1 <== NOT EXECUTED 12db8: e1a01002 mov r1, r2 <== NOT EXECUTED 12dbc: e1a02003 mov r2, r3 <== NOT EXECUTED 12dc0: eaffffc6 b 12ce0 <== NOT EXECUTED 0001cb30 <_lstat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 1cb30: e1a00001 mov r0, r1 <== NOT EXECUTED 1cb34: e1a01002 mov r1, r2 <== NOT EXECUTED 1cb38: eaffffc8 b 1ca60 <== NOT EXECUTED 00001c00 <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 1c00: e1a00001 mov r0, r1 <== NOT EXECUTED 1c04: e1a01002 mov r1, r2 <== NOT EXECUTED 1c08: e1a02003 mov r2, r3 <== NOT EXECUTED 1c0c: eaffff6c b 19c4 <== NOT EXECUTED 00012f0c <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 12f0c: e1a00001 mov r0, r1 <== NOT EXECUTED 12f10: e1a01002 mov r1, r2 <== NOT EXECUTED 12f14: e1a02003 mov r2, r3 <== NOT EXECUTED 12f18: eaffffcc b 12e50 <== NOT EXECUTED 00012f1c <_realloc_r>: struct _reent *ignored, void *ptr, size_t size ) { return realloc( ptr, size ); 12f1c: e1a00001 mov r0, r1 <== NOT EXECUTED 12f20: e1a01002 mov r1, r2 <== NOT EXECUTED 12f24: ea000011 b 12f70 <== NOT EXECUTED 0003a99c <_rename_r>: int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3a99c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3a9a0: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3a9a4: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3a9a8: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3a9ac: e1a0100d mov r1, sp <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3a9b0: e1a05002 mov r5, r2 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3a9b4: ebff2a17 bl 5218 <== NOT EXECUTED if ( s < 0 ) 3a9b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3a9bc: ba00000d blt 3a9f8 <_rename_r+0x5c> <== NOT EXECUTED return s; s = link( old, new ); 3a9c0: e1a01005 mov r1, r5 <== NOT EXECUTED 3a9c4: e1a00004 mov r0, r4 <== NOT EXECUTED 3a9c8: ebff875f bl 1c74c <== NOT EXECUTED if ( s < 0 ) 3a9cc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3a9d0: ba000008 blt 3a9f8 <_rename_r+0x5c> <== NOT EXECUTED return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 3a9d4: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3a9d8: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 3a9dc: e3530901 cmp r3, #16384 ; 0x4000 <== NOT EXECUTED 3a9e0: 1a000002 bne 3a9f0 <_rename_r+0x54> <== NOT EXECUTED 3a9e4: e1a00004 mov r0, r4 <== NOT EXECUTED 3a9e8: ebff8a1d bl 1d264 <== NOT EXECUTED 3a9ec: ea000001 b 3a9f8 <_rename_r+0x5c> <== NOT EXECUTED 3a9f0: e1a00004 mov r0, r4 <== NOT EXECUTED 3a9f4: ebff8b16 bl 1d654 <== NOT EXECUTED } 3a9f8: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 3a9fc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 000052e8 <_stat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 52e8: e1a00001 mov r0, r1 <== NOT EXECUTED 52ec: e1a01002 mov r1, r2 <== NOT EXECUTED 52f0: eaffffc8 b 5218 <== NOT EXECUTED 0001d78c <_unlink_r>: int _unlink_r( struct _reent *ptr, const char *path ) { return unlink( path ); 1d78c: e1a00001 mov r0, r1 <== NOT EXECUTED 1d790: eaffffaf b 1d654 <== NOT EXECUTED 0001ae18 : int access( const char *path, int amode ) { 1ae18: e92d4010 push {r4, lr} <== NOT EXECUTED 1ae1c: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED 1ae20: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 1ae24: e1a0100d mov r1, sp <== NOT EXECUTED 1ae28: ebffa8fa bl 5218 <== NOT EXECUTED 1ae2c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ae30: 1a00000e bne 1ae70 <== NOT EXECUTED return -1; if ( amode & R_OK ) { 1ae34: e3140004 tst r4, #4 ; 0x4 <== NOT EXECUTED 1ae38: 0a000002 beq 1ae48 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) 1ae3c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1ae40: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 1ae44: 0a000009 beq 1ae70 <== NOT EXECUTED return -1; } if ( amode & W_OK ) { 1ae48: e3140002 tst r4, #2 ; 0x2 <== NOT EXECUTED 1ae4c: 0a000002 beq 1ae5c <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) 1ae50: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1ae54: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED 1ae58: 0a000004 beq 1ae70 <== NOT EXECUTED return -1; } if ( amode & X_OK ) { 1ae5c: e3140001 tst r4, #1 ; 0x1 <== NOT EXECUTED 1ae60: 0a000004 beq 1ae78 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) 1ae64: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1ae68: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED 1ae6c: 1a000001 bne 1ae78 <== NOT EXECUTED 1ae70: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1ae74: ea000000 b 1ae7c <== NOT EXECUTED 1ae78: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return -1; } return 0; } 1ae7c: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 1ae80: e8bd8010 pop {r4, pc} <== NOT EXECUTED 0001b0a4 : #include int chdir( const char *pathname ) { 1b0a4: e92d4010 push {r4, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 1b0a8: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED #include int chdir( const char *pathname ) { 1b0ac: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 1b0b0: e1a0200d mov r2, sp <== NOT EXECUTED 1b0b4: e1a03001 mov r3, r1 <== NOT EXECUTED 1b0b8: ebffa2e2 bl 3c48 <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 1b0bc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 1b0c0: e1a0400d mov r4, sp <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 1b0c4: 1a00000b bne 1b0f8 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 1b0c8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1b0cc: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 1b0d0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b0d4: 1a000009 bne 1b100 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1b0d8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1b0dc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b0e0: 11a0000d movne r0, sp <== NOT EXECUTED 1b0e4: 11a0e00f movne lr, pc <== NOT EXECUTED 1b0e8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1b0ec: eb0038fc bl 294e4 <__errno> <== NOT EXECUTED 1b0f0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1b0f4: e5803000 str r3, [r0] <== NOT EXECUTED 1b0f8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1b0fc: ea00001f b 1b180 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 1b100: e1a0000d mov r0, sp <== NOT EXECUTED 1b104: e1a0e00f mov lr, pc <== NOT EXECUTED 1b108: e12fff13 bx r3 <== NOT EXECUTED 1b10c: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 1b110: 0a00000a beq 1b140 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1b114: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1b118: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b11c: 0a000004 beq 1b134 <== NOT EXECUTED 1b120: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1b124: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b128: 11a0000d movne r0, sp <== NOT EXECUTED 1b12c: 11a0e00f movne lr, pc <== NOT EXECUTED 1b130: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 1b134: eb0038ea bl 294e4 <__errno> <== NOT EXECUTED 1b138: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 1b13c: eaffffec b 1b0f4 <== NOT EXECUTED } rtems_filesystem_freenode( &rtems_filesystem_current ); 1b140: e59f3040 ldr r3, [pc, #64] ; 1b188 <== NOT EXECUTED 1b144: e5930000 ldr r0, [r3] <== NOT EXECUTED 1b148: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 1b14c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1b150: 0a000004 beq 1b168 <== NOT EXECUTED 1b154: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 1b158: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1b15c: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 1b160: 11a0e00f movne lr, pc <== NOT EXECUTED 1b164: 112fff12 bxne r2 <== NOT EXECUTED rtems_filesystem_current = loc; 1b168: e59f3018 ldr r3, [pc, #24] ; 1b188 <== NOT EXECUTED 1b16c: e593c000 ldr ip, [r3] <== NOT EXECUTED 1b170: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1b174: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 1b178: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1b17c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 1b180: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1b184: e8bd8010 pop {r4, pc} <== NOT EXECUTED 1b188: 0003b5c8 .word 0x0003b5c8 00003a24 : int chmod( const char *path, mode_t mode ) { 3a24: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3a28: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3a2c: e1a04001 mov r4, r1 <== NOT EXECUTED int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); 3a30: e1a0200d mov r2, sp <== NOT EXECUTED 3a34: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3a38: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3a3c: eb000081 bl 3c48 <== NOT EXECUTED if ( status != 0 ) 3a40: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED { int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); 3a44: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 3a48: 1a00000d bne 3a84 <== NOT EXECUTED return -1; if ( !loc.handlers ){ 3a4c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3a50: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3a54: 1a00000c bne 3a8c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3a58: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3a5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3a60: 0a000004 beq 3a78 <== NOT EXECUTED 3a64: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3a68: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3a6c: 11a0000d movne r0, sp <== NOT EXECUTED 3a70: 11a0e00f movne lr, pc <== NOT EXECUTED 3a74: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 3a78: eb009699 bl 294e4 <__errno> <== NOT EXECUTED 3a7c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3a80: e5803000 str r3, [r0] <== NOT EXECUTED 3a84: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3a88: ea00001a b 3af8 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 3a8c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3a90: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3a94: 1a00000a bne 3ac4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3a98: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3a9c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3aa0: 0a000004 beq 3ab8 <== NOT EXECUTED 3aa4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3aa8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3aac: 11a0000d movne r0, sp <== NOT EXECUTED 3ab0: 11a0e00f movne lr, pc <== NOT EXECUTED 3ab4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3ab8: eb009689 bl 294e4 <__errno> <== NOT EXECUTED 3abc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3ac0: eaffffee b 3a80 <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); 3ac4: e1a01004 mov r1, r4 <== NOT EXECUTED 3ac8: e1a0000d mov r0, sp <== NOT EXECUTED 3acc: e1a0e00f mov lr, pc <== NOT EXECUTED 3ad0: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3ad4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3ad8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 3adc: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3ae0: 0a000004 beq 3af8 <== NOT EXECUTED 3ae4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3ae8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3aec: 11a0000d movne r0, sp <== NOT EXECUTED 3af0: 11a0e00f movne lr, pc <== NOT EXECUTED 3af4: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3af8: e1a00004 mov r0, r4 <== NOT EXECUTED 3afc: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3b00: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0001b18c : int chown( const char *path, uid_t owner, gid_t group ) { 1b18c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 1b190: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1b194: e1a0c801 lsl ip, r1, #16 <== NOT EXECUTED 1b198: e1a0e802 lsl lr, r2, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 1b19c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1b1a0: e1a0200d mov r2, sp <== NOT EXECUTED 1b1a4: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 1b1a8: e1a0482c lsr r4, ip, #16 <== NOT EXECUTED 1b1ac: e1a0582e lsr r5, lr, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 1b1b0: ebffa2a4 bl 3c48 <== NOT EXECUTED 1b1b4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1b1b8: e1a0600d mov r6, sp <== NOT EXECUTED 1b1bc: 1a00000b bne 1b1f0 <== NOT EXECUTED return -1; if ( !loc.ops->chown_h ) { 1b1c0: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1b1c4: e593c018 ldr ip, [r3, #24] <== NOT EXECUTED 1b1c8: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 1b1cc: 1a000009 bne 1b1f8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1b1d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1b1d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b1d8: 11a0000d movne r0, sp <== NOT EXECUTED 1b1dc: 11a0e00f movne lr, pc <== NOT EXECUTED 1b1e0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1b1e4: eb0038be bl 294e4 <__errno> <== NOT EXECUTED 1b1e8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1b1ec: e5803000 str r3, [r0] <== NOT EXECUTED 1b1f0: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1b1f4: ea00000d b 1b230 <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); 1b1f8: e1a01004 mov r1, r4 <== NOT EXECUTED 1b1fc: e1a02005 mov r2, r5 <== NOT EXECUTED 1b200: e1a0000d mov r0, sp <== NOT EXECUTED 1b204: e1a0e00f mov lr, pc <== NOT EXECUTED 1b208: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1b20c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1b210: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 1b214: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1b218: 0a000004 beq 1b230 <== NOT EXECUTED 1b21c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1b220: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b224: 11a0000d movne r0, sp <== NOT EXECUTED 1b228: 11a0e00f movne lr, pc <== NOT EXECUTED 1b22c: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1b230: e1a00004 mov r0, r4 <== NOT EXECUTED 1b234: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1b238: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 0001b23c : #include int chroot( const char *pathname ) { 1b23c: e92d4070 push {r4, r5, r6, lr} <== 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) { 1b240: e59f60c4 ldr r6, [pc, #196] ; 1b30c <== NOT EXECUTED 1b244: e59f30c4 ldr r3, [pc, #196] ; 1b310 <== NOT EXECUTED 1b248: e5964000 ldr r4, [r6] <== NOT EXECUTED 1b24c: e1540003 cmp r4, r3 <== NOT EXECUTED #include int chroot( const char *pathname ) { 1b250: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1b254: e1a05000 mov r5, r0 <== 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) { 1b258: 1a000007 bne 1b27c <== NOT EXECUTED rtems_libio_set_private_env(); /* try to set a new private env*/ 1b25c: eb000702 bl 1ce6c <== NOT EXECUTED if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 1b260: e5963000 ldr r3, [r6] <== NOT EXECUTED 1b264: e1530004 cmp r3, r4 <== NOT EXECUTED 1b268: 1a000003 bne 1b27c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1b26c: eb00389c bl 294e4 <__errno> <== NOT EXECUTED 1b270: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1b274: e5803000 str r3, [r0] <== NOT EXECUTED 1b278: ea000008 b 1b2a0 <== NOT EXECUTED } result = chdir(pathname); 1b27c: e1a00005 mov r0, r5 <== NOT EXECUTED 1b280: ebffff87 bl 1b0a4 <== NOT EXECUTED if (result) { 1b284: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1b288: 0a000006 beq 1b2a8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( errno ); 1b28c: eb003894 bl 294e4 <__errno> <== NOT EXECUTED 1b290: e1a04000 mov r4, r0 <== NOT EXECUTED 1b294: eb003892 bl 294e4 <__errno> <== NOT EXECUTED 1b298: e5903000 ldr r3, [r0] <== NOT EXECUTED 1b29c: e5843000 str r3, [r4] <== NOT EXECUTED 1b2a0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1b2a4: ea000016 b 1b304 <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 1b2a8: e1a01000 mov r1, r0 <== NOT EXECUTED 1b2ac: e1a0200d mov r2, sp <== NOT EXECUTED 1b2b0: e59f005c ldr r0, [pc, #92] ; 1b314 <== NOT EXECUTED 1b2b4: e1a03001 mov r3, r1 <== NOT EXECUTED 1b2b8: ebffa262 bl 3c48 <== NOT EXECUTED 1b2bc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1b2c0: 1afffff1 bne 1b28c <== NOT EXECUTED /* 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); 1b2c4: e59f3040 ldr r3, [pc, #64] ; 1b30c <== NOT EXECUTED 1b2c8: e5930000 ldr r0, [r3] <== NOT EXECUTED 1b2cc: e590201c ldr r2, [r0, #28] <== NOT EXECUTED 1b2d0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1b2d4: 0a000004 beq 1b2ec <== NOT EXECUTED 1b2d8: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 1b2dc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1b2e0: 12800014 addne r0, r0, #20 ; 0x14 <== NOT EXECUTED 1b2e4: 11a0e00f movne lr, pc <== NOT EXECUTED 1b2e8: 112fff12 bxne r2 <== NOT EXECUTED rtems_filesystem_root = loc; 1b2ec: e59f3018 ldr r3, [pc, #24] ; 1b30c <== NOT EXECUTED 1b2f0: e593c000 ldr ip, [r3] <== NOT EXECUTED 1b2f4: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1b2f8: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 1b2fc: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1b300: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 1b304: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1b308: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 1b30c: 0003b5c8 .word 0x0003b5c8 1b310: 000555c0 .word 0x000555c0 1b314: 0003e796 .word 0x0003e796 000085bc : ) { rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 85bc: e59f3090 ldr r3, [pc, #144] ; 8654 85c0: e5933000 ldr r3, [r3] 85c4: e1500003 cmp r0, r3 #include int close( int fd ) { 85c8: e92d4030 push {r4, r5, lr} rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 85cc: 2a000006 bcs 85ec iop = rtems_libio_iop(fd); 85d0: e59f3080 ldr r3, [pc, #128] ; 8658 85d4: e5932000 ldr r2, [r3] 85d8: e3a03034 mov r3, #52 ; 0x34 85dc: e0242093 mla r4, r3, r0, r2 rtems_libio_check_is_open(iop); 85e0: e594300c ldr r3, [r4, #12] 85e4: e3130c01 tst r3, #256 ; 0x100 85e8: 1a000004 bne 8600 85ec: eb00086d bl a7a8 <__errno> <== NOT EXECUTED 85f0: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 85f4: e5803000 str r3, [r0] <== NOT EXECUTED 85f8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 85fc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 8600: e5943030 ldr r3, [r4, #48] 8604: e5933004 ldr r3, [r3, #4] 8608: e3530000 cmp r3, #0 ; 0x0 860c: 01a05003 moveq r5, r3 8610: 0a000003 beq 8624 rc = (*iop->handlers->close_h)( iop ); 8614: e1a00004 mov r0, r4 8618: e1a0e00f mov lr, pc 861c: e12fff13 bx r3 8620: e1a05000 mov r5, r0 rtems_filesystem_freenode( &iop->pathinfo ); 8624: e5943018 ldr r3, [r4, #24] 8628: e3530000 cmp r3, #0 ; 0x0 862c: 0a000004 beq 8644 8630: e593301c ldr r3, [r3, #28] 8634: e3530000 cmp r3, #0 ; 0x0 8638: 12840010 addne r0, r4, #16 ; 0x10 863c: 11a0e00f movne lr, pc 8640: 112fff13 bxne r3 rtems_libio_free( iop ); 8644: e1a00004 mov r0, r4 8648: eb0000d1 bl 8994 return rc; 864c: e1a00005 mov r0, r5 } 8650: e8bd8030 pop {r4, r5, pc} 8654: 000137f4 .word 0x000137f4 8658: 00015218 .word 0x00015218 0002704c : * close a directory. */ int closedir( DIR *dirp ) { 2704c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int fd; if ( !dirp ) 27050: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 27054: 1a000004 bne 2706c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 27058: eb000921 bl 294e4 <__errno> <== NOT EXECUTED 2705c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 27060: e5803000 str r3, [r0] <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); return(close(fd)); } 27064: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 27068: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; dirp->dd_loc = 0; 2706c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 27070: e5853004 str r3, [r5, #4] <== NOT EXECUTED if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; 27074: e3e03000 mvn r3, #0 ; 0x0 <== NOT EXECUTED int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; 27078: e5954000 ldr r4, [r5] <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 2707c: e595000c ldr r0, [r5, #12] <== NOT EXECUTED if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; 27080: e5853000 str r3, [r5] <== NOT EXECUTED dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 27084: ebff7340 bl 3d8c <== NOT EXECUTED (void)free((void *)dirp); 27088: e1a00005 mov r0, r5 <== NOT EXECUTED 2708c: ebff733e bl 3d8c <== NOT EXECUTED return(close(fd)); 27090: e1a00004 mov r0, r4 <== NOT EXECUTED } 27094: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED fd = dirp->dd_fd; dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); return(close(fd)); 27098: eaff7299 b 3b04 <== NOT EXECUTED 00009e78 : rtems_libio_t *iop, off_t length ) { return 0; } 9e78: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 9e7c: e12fff1e bx lr <== NOT EXECUTED 00009eac : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 9eac: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 9eb0: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; 9eb4: e88d0007 stm sp, {r0, r1, r2} <== NOT EXECUTED the_jnode = iop->file_info; 9eb8: e590302c ldr r3, [r0, #44] <== NOT EXECUTED status = rtems_io_control( 9ebc: e1a0200d mov r2, sp <== NOT EXECUTED 9ec0: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED 9ec4: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 9ec8: eb000161 bl a454 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 9ecc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; 9ed0: 059d000c ldreq r0, [sp, #12] <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 9ed4: 1bffffe9 blne 9e80 <== NOT EXECUTED return args.ioctl_return; } 9ed8: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 9edc: e8bd8000 pop {pc} <== NOT EXECUTED 00009e70 : off_t offset, int whence ) { return offset; } 9e70: e1a00001 mov r0, r1 <== NOT EXECUTED 9e74: e12fff1e bx lr <== NOT EXECUTED 00009f34 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 9f34: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 9f38: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 9f3c: e24dd018 sub sp, sp, #24 ; 0x18 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 9f40: e590c00c ldr ip, [r0, #12] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 9f44: e58d3004 str r3, [sp, #4] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 9f48: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; 9f4c: e58d200c str r2, [sp, #12] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; 9f50: e58d3014 str r3, [sp, #20] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 9f54: e58d1008 str r1, [sp, #8] <== NOT EXECUTED args.count = count; args.flags = iop->flags; 9f58: e58dc010 str ip, [sp, #16] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 9f5c: e58d0000 str r0, [sp] <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 9f60: e590302c ldr r3, [r0, #44] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 9f64: e1a0200d mov r2, sp <== NOT EXECUTED 9f68: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED 9f6c: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 9f70: eb00015f bl a4f4 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 9f74: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 9f78: 059d0014 ldreq r0, [sp, #20] <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 9f7c: 1bffffbf blne 9e80 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 9f80: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED 9f84: e8bd8000 pop {pc} <== NOT EXECUTED 00002c10 : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2c10: e59030b4 ldr r3, [r0, #180] 2c14: e3530000 cmp r3, #0 ; 0x0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2c18: e92d4030 push {r4, r5, lr} 2c1c: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2c20: 08bd8030 popeq {r4, r5, pc} rtems_interrupt_disable (level); 2c24: e10f1000 mrs r1, CPSR <== NOT EXECUTED 2c28: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 2c2c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; 2c30: e3a05002 mov r5, #2 ; 0x2 <== NOT EXECUTED 2c34: ea00000a b 2c64 <== NOT EXECUTED 2c38: e5845094 str r5, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 2c3c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2c40: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2c44: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 2c48: e1a02001 mov r2, r1 <== NOT EXECUTED 2c4c: eb0005b1 bl 4318 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2c50: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2c54: 1b000767 blne 49f8 <== NOT EXECUTED rtems_interrupt_disable (level); 2c58: e10f1000 mrs r1, CPSR <== NOT EXECUTED 2c5c: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 2c60: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 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) { 2c64: e5942084 ldr r2, [r4, #132] <== NOT EXECUTED 2c68: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 2c6c: e1520003 cmp r2, r3 <== NOT EXECUTED 2c70: 1afffff0 bne 2c38 <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 2c74: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 2c78: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00002714 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2714: e92d4010 push {r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 2718: e591303c ldr r3, [r1, #60] <== NOT EXECUTED 271c: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2720: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 2724: e1a04001 mov r4, r1 <== NOT EXECUTED 2728: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 272c: 0a000014 beq 2784 <== NOT EXECUTED 2730: e59f305c ldr r3, [pc, #92] ; 2794 <== NOT EXECUTED 2734: e5933000 ldr r3, [r3] <== NOT EXECUTED 2738: e7d32000 ldrb r2, [r3, r0] <== NOT EXECUTED 273c: e2503009 subs r3, r0, #9 ; 0x9 <== NOT EXECUTED 2740: 13a03001 movne r3, #1 ; 0x1 <== NOT EXECUTED 2744: e01332a2 ands r3, r3, r2, lsr #5 <== NOT EXECUTED 2748: 0a00000d beq 2784 <== NOT EXECUTED 274c: e350000a cmp r0, #10 ; 0xa <== NOT EXECUTED 2750: 0a00000b beq 2784 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 2754: e220c040 eor ip, r0, #64 ; 0x40 <== 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] = '^'; 2758: e3a0305e mov r3, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 275c: e28d0002 add r0, sp, #2 ; 0x2 <== NOT EXECUTED 2760: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 2764: e1a02004 mov r2, r4 <== 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] = '^'; 2768: e5cd3002 strb r3, [sp, #2] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 276c: e5cdc003 strb ip, [sp, #3] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 2770: ebffff4e bl 24b0 <== NOT EXECUTED tty->column += 2; 2774: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2778: e2833002 add r3, r3, #2 ; 0x2 <== NOT EXECUTED 277c: e5843028 str r3, [r4, #40] <== NOT EXECUTED 2780: ea000001 b 278c <== NOT EXECUTED } else { oproc (c, tty); 2784: e1a01004 mov r1, r4 <== NOT EXECUTED 2788: ebffff8c bl 25c0 <== NOT EXECUTED } } 278c: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 2790: e8bd8010 pop {r4, pc} <== NOT EXECUTED 2794: 00013e14 .word 0x00013e14 0001bce0 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 1bce0: e59f300c ldr r3, [pc, #12] ; 1bcf4 <== NOT EXECUTED 1bce4: e5930000 ldr r0, [r3] <== NOT EXECUTED 1bce8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1bcec: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 1bcf0: ea00364c b 29628 <== NOT EXECUTED 1bcf4: 000548ec .word 0x000548ec 0001bcf8 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 1bcf8: e59f300c ldr r3, [pc, #12] ; 1bd0c <== NOT EXECUTED 1bcfc: e5930000 ldr r0, [r3] <== NOT EXECUTED 1bd00: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1bd04: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 1bd08: ea003646 b 29628 <== NOT EXECUTED 1bd0c: 00054804 .word 0x00054804 00002798 : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) 2798: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED 279c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED * 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) { 27a0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 27a4: e1a04000 mov r4, r0 <== NOT EXECUTED 27a8: e1a06001 mov r6, r1 <== NOT EXECUTED if (tty->ccount == 0) 27ac: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return; if (lineFlag) { 27b0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 27b4: 0a000060 beq 293c <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 27b8: e590303c ldr r3, [r0, #60] <== NOT EXECUTED 27bc: e2132008 ands r2, r3, #8 ; 0x8 <== NOT EXECUTED tty->ccount = 0; 27c0: 05802020 streq r2, [r0, #32] <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 27c4: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 27c8: e2133010 ands r3, r3, #16 ; 0x10 <== NOT EXECUTED 27cc: 1a00005a bne 293c <== NOT EXECUTED tty->ccount = 0; 27d0: e5803020 str r3, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 27d4: e1a01004 mov r1, r4 <== NOT EXECUTED 27d8: e5d00044 ldrb r0, [r0, #68] <== NOT EXECUTED 27dc: ebffffcc bl 2714 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 27e0: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 27e4: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED echo ('\n', tty); 27e8: 11a01004 movne r1, r4 <== NOT EXECUTED 27ec: 13a0000a movne r0, #10 ; 0xa <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) 27f0: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED 27f4: ea00000c b 282c <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 27f8: e2431001 sub r1, r3, #1 ; 0x1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 27fc: e594203c ldr r2, [r4, #60] <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 2800: e5841020 str r1, [r4, #32] <== NOT EXECUTED 2804: e594301c ldr r3, [r4, #28] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2808: e3120008 tst r2, #8 ; 0x8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 280c: e7d35001 ldrb r5, [r3, r1] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2810: 0a000046 beq 2930 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 2814: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 2818: 1a000005 bne 2834 <== NOT EXECUTED 281c: e3120010 tst r2, #16 ; 0x10 <== NOT EXECUTED 2820: 1a000003 bne 2834 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 2824: e5d40043 ldrb r0, [r4, #67] <== NOT EXECUTED 2828: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } 282c: e8bd40f0 pop {r4, r5, r6, r7, lr} <== 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); 2830: eaffffb7 b 2714 <== NOT EXECUTED } else if (c == '\t') { 2834: e3550009 cmp r5, #9 ; 0x9 <== NOT EXECUTED 2838: 1a00001f bne 28bc <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 283c: e202cc02 and ip, r2, #512 ; 0x200 <== 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; 2840: e594502c ldr r5, [r4, #44] <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2844: e5970000 ldr r0, [r7] <== NOT EXECUTED 2848: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 284c: ea00000c b 2884 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2850: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 2854: e7d33002 ldrb r3, [r3, r2] <== NOT EXECUTED if (c == '\t') { 2858: e3530009 cmp r3, #9 ; 0x9 <== NOT EXECUTED col = (col | 7) + 1; 285c: 03853007 orreq r3, r5, #7 ; 0x7 <== NOT EXECUTED 2860: 02835001 addeq r5, r3, #1 ; 0x1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { 2864: 0a000005 beq 2880 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 2868: e7d03003 ldrb r3, [r0, r3] <== NOT EXECUTED 286c: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 2870: 02855001 addeq r5, r5, #1 ; 0x1 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2874: 0a000001 beq 2880 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2878: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED col += 2; 287c: 12855002 addne r5, r5, #2 ; 0x2 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2880: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2884: e1520001 cmp r2, r1 <== NOT EXECUTED 2888: 1afffff0 bne 2850 <== NOT EXECUTED 288c: ea000003 b 28a0 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 2890: ebffff06 bl 24b0 <== NOT EXECUTED tty->column--; 2894: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2898: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 289c: e5843028 str r3, [r4, #40] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 28a0: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 28a4: e1530005 cmp r3, r5 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 28a8: e59f00a0 ldr r0, [pc, #160] ; 2950 <== NOT EXECUTED 28ac: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 28b0: e1a02004 mov r2, r4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 28b4: cafffff5 bgt 2890 <== NOT EXECUTED 28b8: ea00001c b 2930 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 28bc: e5973000 ldr r3, [r7] <== NOT EXECUTED 28c0: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 28c4: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 28c8: 0a000009 beq 28f4 <== NOT EXECUTED 28cc: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED 28d0: 0a000007 beq 28f4 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 28d4: e59f0078 ldr r0, [pc, #120] ; 2954 <== NOT EXECUTED 28d8: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 28dc: e1a02004 mov r2, r4 <== NOT EXECUTED 28e0: ebfffef2 bl 24b0 <== NOT EXECUTED if (tty->column) 28e4: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 28e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 28ec: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 28f0: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 28f4: e5973000 ldr r3, [r7] <== NOT EXECUTED 28f8: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 28fc: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 2900: 0a000002 beq 2910 <== NOT EXECUTED 2904: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 2908: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED 290c: 0a000007 beq 2930 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2910: e59f003c ldr r0, [pc, #60] ; 2954 <== NOT EXECUTED 2914: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 2918: e1a02004 mov r2, r4 <== NOT EXECUTED 291c: ebfffee3 bl 24b0 <== NOT EXECUTED if (tty->column) 2920: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2924: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 2928: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 292c: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } } } if (!lineFlag) 2930: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 2934: 1a000001 bne 2940 <== NOT EXECUTED 2938: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 293c: e59f7014 ldr r7, [pc, #20] ; 2958 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 2940: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2944: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2948: 1affffaa bne 27f8 <== NOT EXECUTED 294c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 2950: 00014bba .word 0x00014bba 2954: 00014bb8 .word 0x00014bb8 2958: 00013e14 .word 0x00013e14 0002709c : #include int fchdir( int fd ) { 2709c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 270a0: e59f3130 ldr r3, [pc, #304] ; 271d8 <== NOT EXECUTED 270a4: e5933000 ldr r3, [r3] <== NOT EXECUTED 270a8: e1500003 cmp r0, r3 <== NOT EXECUTED #include int fchdir( int fd ) { 270ac: e24dd020 sub sp, sp, #32 ; 0x20 <== NOT EXECUTED 270b0: e1a01000 mov r1, r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 270b4: 2a000006 bcs 270d4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 270b8: e59f311c ldr r3, [pc, #284] ; 271dc <== NOT EXECUTED 270bc: e5932000 ldr r2, [r3] <== NOT EXECUTED 270c0: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 270c4: e0202193 mla r0, r3, r1, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 270c8: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 270cc: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 270d0: 1a000002 bne 270e0 <== NOT EXECUTED 270d4: eb000902 bl 294e4 <__errno> <== NOT EXECUTED 270d8: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 270dc: ea000015 b 27138 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 270e0: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 270e4: 1a000002 bne 270f4 <== NOT EXECUTED 270e8: eb0008fd bl 294e4 <__errno> <== NOT EXECUTED 270ec: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 270f0: ea000010 b 27138 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 270f4: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED 270f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 270fc: 0a000002 beq 2710c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 27100: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 27104: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 27108: 1a000002 bne 27118 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 2710c: eb0008f4 bl 294e4 <__errno> <== NOT EXECUTED 27110: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 27114: ea000007 b 27138 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 27118: e2804010 add r4, r0, #16 ; 0x10 <== NOT EXECUTED 2711c: e1a00004 mov r0, r4 <== NOT EXECUTED 27120: e1a0e00f mov lr, pc <== NOT EXECUTED 27124: e12fff13 bx r3 <== NOT EXECUTED 27128: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 2712c: 0a000003 beq 27140 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 27130: eb0008eb bl 294e4 <__errno> <== NOT EXECUTED 27134: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 27138: e5803000 str r3, [r0] <== NOT EXECUTED 2713c: ea000012 b 2718c <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 27140: e59f6098 ldr r6, [pc, #152] ; 271e0 <== NOT EXECUTED 27144: e596c000 ldr ip, [r6] <== NOT EXECUTED 27148: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 2714c: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 27150: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 27154: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 27158: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 2715c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 27160: e59f007c ldr r0, [pc, #124] ; 271e4 <== NOT EXECUTED 27164: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 27168: e1a03001 mov r3, r1 <== NOT EXECUTED 2716c: ebff72b5 bl 3c48 <== NOT EXECUTED 27170: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 27174: e1a0500d mov r5, sp <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 27178: 0a000005 beq 27194 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 2717c: e596c000 ldr ip, [r6] <== NOT EXECUTED 27180: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 27184: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 27188: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 2718c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 27190: ea00000e b 271d0 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 27194: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 27198: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2719c: 0a000004 beq 271b4 <== NOT EXECUTED 271a0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 271a4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 271a8: 11a0000d movne r0, sp <== NOT EXECUTED 271ac: 11a0e00f movne lr, pc <== NOT EXECUTED 271b0: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 271b4: e59f3024 ldr r3, [pc, #36] ; 271e0 <== NOT EXECUTED 271b8: e593c000 ldr ip, [r3] <== NOT EXECUTED 271bc: e28d3010 add r3, sp, #16 ; 0x10 <== NOT EXECUTED 271c0: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 271c4: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 271c8: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 271cc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 271d0: e28dd020 add sp, sp, #32 ; 0x20 <== NOT EXECUTED 271d4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 271d8: 0003aa94 .word 0x0003aa94 271dc: 000550f4 .word 0x000550f4 271e0: 0003b5c8 .word 0x0003b5c8 271e4: 0003e796 .word 0x0003e796 0001b51c : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1b51c: e59f3080 ldr r3, [pc, #128] ; 1b5a4 <== NOT EXECUTED 1b520: e5933000 ldr r3, [r3] <== NOT EXECUTED 1b524: e1500003 cmp r0, r3 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 1b528: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1b52c: 2a000006 bcs 1b54c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 1b530: e59f3070 ldr r3, [pc, #112] ; 1b5a8 <== NOT EXECUTED 1b534: e5932000 ldr r2, [r3] <== NOT EXECUTED 1b538: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 1b53c: e02c2093 mla ip, r3, r0, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 1b540: e59c300c ldr r3, [ip, #12] <== NOT EXECUTED 1b544: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 1b548: 1a000002 bne 1b558 <== NOT EXECUTED 1b54c: eb0037e4 bl 294e4 <__errno> <== NOT EXECUTED 1b550: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 1b554: ea00000a b 1b584 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1b558: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 1b55c: 1a000002 bne 1b56c <== NOT EXECUTED 1b560: eb0037df bl 294e4 <__errno> <== NOT EXECUTED 1b564: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1b568: ea000005 b 1b584 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 1b56c: e59c3030 ldr r3, [ip, #48] <== NOT EXECUTED 1b570: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1b574: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b578: 1a000004 bne 1b590 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1b57c: eb0037d8 bl 294e4 <__errno> <== NOT EXECUTED 1b580: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1b584: e5803000 str r3, [r0] <== NOT EXECUTED 1b588: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1b58c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 1b590: e28c0010 add r0, ip, #16 ; 0x10 <== NOT EXECUTED 1b594: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED 1b598: e1a0e00f mov lr, pc <== NOT EXECUTED 1b59c: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 1b5a0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1b5a4: 0003aa94 .word 0x0003aa94 1b5a8: 000550f4 .word 0x000550f4 0001b5ac : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1b5ac: e59f3094 ldr r3, [pc, #148] ; 1b648 <== NOT EXECUTED 1b5b0: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 1b5b4: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 1b5b8: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1b5bc: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 1b5c0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1b5c4: e1a0c000 mov ip, r0 <== NOT EXECUTED 1b5c8: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 1b5cc: e1a0e822 lsr lr, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1b5d0: 2a000006 bcs 1b5f0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 1b5d4: e59f3070 ldr r3, [pc, #112] ; 1b64c <== NOT EXECUTED 1b5d8: e5932000 ldr r2, [r3] <== NOT EXECUTED 1b5dc: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 1b5e0: e0202c93 mla r0, r3, ip, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 1b5e4: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 1b5e8: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 1b5ec: 1a000002 bne 1b5fc <== NOT EXECUTED 1b5f0: eb0037bb bl 294e4 <__errno> <== NOT EXECUTED 1b5f4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 1b5f8: ea00000a b 1b628 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1b5fc: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 1b600: 1a000002 bne 1b610 <== NOT EXECUTED 1b604: eb0037b6 bl 294e4 <__errno> <== NOT EXECUTED 1b608: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1b60c: ea000005 b 1b628 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 1b610: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED 1b614: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 1b618: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b61c: 1a000004 bne 1b634 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1b620: eb0037af bl 294e4 <__errno> <== NOT EXECUTED 1b624: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1b628: e5803000 str r3, [r0] <== NOT EXECUTED 1b62c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1b630: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 1b634: e1a0200e mov r2, lr <== NOT EXECUTED 1b638: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED 1b63c: e1a0e00f mov lr, pc <== NOT EXECUTED 1b640: e12fff13 bx r3 <== NOT EXECUTED } 1b644: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1b648: 0003aa94 .word 0x0003aa94 1b64c: 000550f4 .word 0x000550f4 000271e8 : int fcntl( int fd, int cmd, ... ) { 271e8: e92d000e push {r1, r2, r3} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 271ec: e59f31b0 ldr r3, [pc, #432] ; 273a4 <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 271f0: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 271f4: e593c000 ldr ip, [r3] <== NOT EXECUTED 271f8: e150000c cmp r0, ip <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 271fc: e59d9020 ldr r9, [sp, #32] <== NOT EXECUTED 27200: e28d2024 add r2, sp, #36 ; 0x24 <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 27204: 2a000006 bcs 27224 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 27208: e59f3198 ldr r3, [pc, #408] ; 273a8 <== NOT EXECUTED 2720c: e5931000 ldr r1, [r3] <== NOT EXECUTED 27210: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 27214: e02a1093 mla sl, r3, r0, r1 <== NOT EXECUTED rtems_libio_check_is_open(iop); 27218: e59a000c ldr r0, [sl, #12] <== NOT EXECUTED 2721c: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED 27220: 1a000002 bne 27230 <== NOT EXECUTED 27224: eb0008ae bl 294e4 <__errno> <== NOT EXECUTED 27228: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 2722c: ea000047 b 27350 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 27230: e3590009 cmp r9, #9 ; 0x9 <== NOT EXECUTED 27234: 979ff109 ldrls pc, [pc, r9, lsl #2] <== NOT EXECUTED 27238: ea000042 b 27348 <== NOT EXECUTED 2723c: 00027264 .word 0x00027264 <== NOT EXECUTED 27240: 000272d4 .word 0x000272d4 <== NOT EXECUTED 27244: 000272e0 .word 0x000272e0 <== NOT EXECUTED 27248: 00027304 .word 0x00027304 <== NOT EXECUTED 2724c: 00027310 .word 0x00027310 <== NOT EXECUTED 27250: 0002733c .word 0x0002733c <== NOT EXECUTED 27254: 0002733c .word 0x0002733c <== NOT EXECUTED 27258: 0002733c .word 0x0002733c <== NOT EXECUTED 2725c: 0002733c .word 0x0002733c <== NOT EXECUTED 27260: 0002733c .word 0x0002733c <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 27264: e5920000 ldr r0, [r2] <== NOT EXECUTED if ( fd2 ) 27268: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2726c: 0a000004 beq 27284 <== NOT EXECUTED diop = rtems_libio_iop( fd2 ); 27270: e150000c cmp r0, ip <== NOT EXECUTED 27274: 33a03034 movcc r3, #52 ; 0x34 <== NOT EXECUTED 27278: 23a08000 movcs r8, #0 ; 0x0 <== NOT EXECUTED 2727c: 30281093 mlacc r8, r3, r0, r1 <== NOT EXECUTED 27280: ea000002 b 27290 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 27284: ebff73a6 bl 4124 <== NOT EXECUTED if ( diop == 0 ) { 27288: e2508000 subs r8, r0, #0 ; 0x0 <== NOT EXECUTED 2728c: 0a00003f beq 27390 <== NOT EXECUTED diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 27290: e59f3110 ldr r3, [pc, #272] ; 273a8 <== NOT EXECUTED 27294: e5934000 ldr r4, [r3] <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 27298: e28a3010 add r3, sl, #16 ; 0x10 <== NOT EXECUTED 2729c: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 272a0: e288c010 add ip, r8, #16 ; 0x10 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 272a4: e59a5030 ldr r5, [sl, #48] <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 272a8: e0644008 rsb r4, r4, r8 <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 272ac: e59a602c ldr r6, [sl, #44] <== NOT EXECUTED diop->flags = iop->flags; 272b0: e59a700c ldr r7, [sl, #12] <== NOT EXECUTED diop->pathinfo = iop->pathinfo; 272b4: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 272b8: e59f30ec ldr r3, [pc, #236] ; 273ac <== NOT EXECUTED 272bc: e1a04144 asr r4, r4, #2 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 272c0: e5885030 str r5, [r8, #48] <== NOT EXECUTED diop->file_info = iop->file_info; 272c4: e588602c str r6, [r8, #44] <== NOT EXECUTED diop->flags = iop->flags; 272c8: e588700c str r7, [r8, #12] <== NOT EXECUTED diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 272cc: e0050493 mul r5, r3, r4 <== NOT EXECUTED 272d0: ea000020 b 27358 <== NOT EXECUTED break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 272d4: e1a035a0 lsr r3, r0, #11 <== NOT EXECUTED 272d8: e2035001 and r5, r3, #1 ; 0x1 <== NOT EXECUTED 272dc: ea00001f b 27360 <== 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 ) ) 272e0: e5922000 ldr r2, [r2] <== NOT EXECUTED 272e4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 272e8: 13803b02 orrne r3, r0, #2048 ; 0x800 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 272ec: 03c03b02 biceq r3, r0, #2048 ; 0x800 <== NOT EXECUTED * processes, then we can ignore this one except to make * F_GETFD work. */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 272f0: 158a300c strne r3, [sl, #12] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 272f4: 058a300c streq r3, [sl, #12] <== NOT EXECUTED 272f8: 01a05002 moveq r5, r2 <== 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 ) ) 272fc: 0a000017 beq 27360 <== NOT EXECUTED 27300: ea00000b b 27334 <== 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 ); 27304: ebff731d bl 3f80 <== NOT EXECUTED 27308: e1a05000 mov r5, r0 <== NOT EXECUTED 2730c: ea000011 b 27358 <== NOT EXECUTED break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 27310: e5920000 ldr r0, [r2] <== NOT EXECUTED 27314: ebff73b5 bl 41f0 <== NOT EXECUTED /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 27318: e59a300c ldr r3, [sl, #12] <== NOT EXECUTED 2731c: e59f208c ldr r2, [pc, #140] ; 273b0 <== NOT EXECUTED 27320: e3c33c02 bic r3, r3, #512 ; 0x200 <== NOT EXECUTED 27324: e0002002 and r2, r0, r2 <== NOT EXECUTED 27328: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 2732c: e1822003 orr r2, r2, r3 <== NOT EXECUTED 27330: e58a200c str r2, [sl, #12] <== NOT EXECUTED 27334: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 27338: ea000008 b 27360 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 2733c: eb000868 bl 294e4 <__errno> <== NOT EXECUTED 27340: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 27344: ea000001 b 27350 <== NOT EXECUTED ret = -1; break; default: errno = EINVAL; 27348: eb000865 bl 294e4 <__errno> <== NOT EXECUTED 2734c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 27350: e5803000 str r3, [r0] <== NOT EXECUTED 27354: ea00000d b 27390 <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 27358: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 2735c: ba00000c blt 27394 <== NOT EXECUTED if (iop->handlers->fcntl_h) { 27360: e59a3030 ldr r3, [sl, #48] <== NOT EXECUTED 27364: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 27368: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2736c: 0a000008 beq 27394 <== NOT EXECUTED int err = (*iop->handlers->fcntl_h)( cmd, iop ); 27370: e1a00009 mov r0, r9 <== NOT EXECUTED 27374: e1a0100a mov r1, sl <== NOT EXECUTED 27378: e1a0e00f mov lr, pc <== NOT EXECUTED 2737c: e12fff13 bx r3 <== NOT EXECUTED if (err) { 27380: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 27384: 0a000002 beq 27394 <== NOT EXECUTED errno = err; 27388: eb000855 bl 294e4 <__errno> <== NOT EXECUTED 2738c: e5804000 str r4, [r0] <== NOT EXECUTED 27390: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 27394: e1a00005 mov r0, r5 <== NOT EXECUTED 27398: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED 2739c: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 273a0: e12fff1e bx lr <== NOT EXECUTED 273a4: 0003aa94 .word 0x0003aa94 273a8: 000550f4 .word 0x000550f4 273ac: c4ec4ec5 .word 0xc4ec4ec5 273b0: 00000201 .word 0x00000201 0001d7ac : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 1d7ac: e59fc030 ldr ip, [pc, #48] ; 1d7e4 <== NOT EXECUTED 1d7b0: e49c0004 ldr r0, [ip], #4 <== NOT EXECUTED 1d7b4: ea000006 b 1d7d4 <== 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 ) { 1d7b8: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED 1d7bc: e591300c ldr r3, [r1, #12] <== NOT EXECUTED 1d7c0: e1520003 cmp r2, r3 <== NOT EXECUTED 1d7c4: 1a000001 bne 1d7d0 <== NOT EXECUTED 1d7c8: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 1d7cc: e12fff1e bx lr <== 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 ) { 1d7d0: e5900000 ldr r0, [r0] <== NOT EXECUTED * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 1d7d4: e150000c cmp r0, ip <== NOT EXECUTED 1d7d8: 1afffff6 bne 1d7b8 <== NOT EXECUTED 1d7dc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; } } return false; } 1d7e0: e12fff1e bx lr <== NOT EXECUTED 1d7e4: 00055190 .word 0x00055190 00008664 : void free( void *ptr ) { MSBUMP(free_calls, 1); 8664: e59f2084 ldr r2, [pc, #132] ; 86f0 8668: e592300c ldr r3, [r2, #12] 866c: e92d4030 push {r4, r5, lr} 8670: e2833001 add r3, r3, #1 ; 0x1 if ( !ptr ) 8674: e2504000 subs r4, r0, #0 ; 0x0 void free( void *ptr ) { MSBUMP(free_calls, 1); 8678: e582300c str r3, [r2, #12] if ( !ptr ) 867c: 08bd8030 popeq {r4, r5, pc} /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 8680: e59f306c ldr r3, [pc, #108] ; 86f4 8684: e5933000 ldr r3, [r3] 8688: e3530003 cmp r3, #3 ; 0x3 868c: 1a000005 bne 86a8 8690: eb000116 bl 8af0 8694: e3500000 cmp r0, #0 ; 0x0 8698: 1a000002 bne 86a8 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 869c: e1a00004 mov r0, r4 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 86a0: e8bd4030 pop {r4, r5, lr} <== 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); 86a4: ea000124 b 8b3c <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 86a8: e59f3048 ldr r3, [pc, #72] ; 86f8 86ac: e5933000 ldr r3, [r3] 86b0: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 86b4: 11a00004 movne r0, r4 86b8: 11a0e00f movne lr, pc 86bc: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { 86c0: e59f5034 ldr r5, [pc, #52] ; 86fc 86c4: e1a01004 mov r1, r4 86c8: e1a00005 mov r0, r5 86cc: eb0004af bl 9990 <_Protected_heap_Free> 86d0: e3500000 cmp r0, #0 ; 0x0 86d4: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 86d8: e595301c ldr r3, [r5, #28] <== NOT EXECUTED 86dc: e59f001c ldr r0, [pc, #28] ; 8700 <== NOT EXECUTED 86e0: e5952018 ldr r2, [r5, #24] <== NOT EXECUTED 86e4: e1a01004 mov r1, r4 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 86e8: e8bd4030 pop {r4, r5, lr} <== 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", 86ec: eaffe5fe b 1eec <== NOT EXECUTED 86f0: 0001527c .word 0x0001527c 86f4: 00015534 .word 0x00015534 86f8: 00015084 .word 0x00015084 86fc: 00015224 .word 0x00015224 8700: 00014d70 .word 0x00014d70 0001cd5c : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 1cd5c: e59f3058 ldr r3, [pc, #88] ; 1cdbc <== NOT EXECUTED 1cd60: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 1cd64: e92d4010 push {r4, lr} <== NOT EXECUTED 1cd68: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 1cd6c: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 1cd70: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 1cd74: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cd78: 0a000004 beq 1cd90 <== NOT EXECUTED 1cd7c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1cd80: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cd84: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 1cd88: 11a0e00f movne lr, pc <== NOT EXECUTED 1cd8c: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 1cd90: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 1cd94: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cd98: 0a000004 beq 1cdb0 <== NOT EXECUTED 1cd9c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1cda0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cda4: 12840014 addne r0, r4, #20 ; 0x14 <== NOT EXECUTED 1cda8: 11a0e00f movne lr, pc <== NOT EXECUTED 1cdac: 112fff13 bxne r3 <== NOT EXECUTED free(env); 1cdb0: e1a00004 mov r0, r4 <== NOT EXECUTED } } 1cdb4: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 1cdb8: eaff9bf3 b 3d8c <== NOT EXECUTED 1cdbc: 000555c0 .word 0x000555c0 00012bf0 : int fstat( int fd, struct stat *sbuf ) { 12bf0: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 12bf4: e2515000 subs r5, r1, #0 ; 0x0 12bf8: 1a000002 bne 12c08 rtems_set_errno_and_return_minus_one( EFAULT ); 12bfc: ebffdee9 bl a7a8 <__errno> <== NOT EXECUTED 12c00: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 12c04: ea00001f b 12c88 <== NOT EXECUTED /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 12c08: e59f3084 ldr r3, [pc, #132] ; 12c94 12c0c: e5933000 ldr r3, [r3] 12c10: e1500003 cmp r0, r3 12c14: 2a000019 bcs 12c80 12c18: e59f3078 ldr r3, [pc, #120] ; 12c98 12c1c: e5932000 ldr r2, [r3] 12c20: e3a03034 mov r3, #52 ; 0x34 12c24: e0242093 mla r4, r3, r0, r2 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 12c28: e594300c ldr r3, [r4, #12] 12c2c: e3130c01 tst r3, #256 ; 0x100 12c30: 0a000012 beq 12c80 if ( !iop->handlers ) 12c34: e5943030 ldr r3, [r4, #48] 12c38: e3530000 cmp r3, #0 ; 0x0 12c3c: 0a00000f beq 12c80 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 12c40: e5933018 ldr r3, [r3, #24] 12c44: e3530000 cmp r3, #0 ; 0x0 12c48: 1a000002 bne 12c58 rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c4c: ebffded5 bl a7a8 <__errno> <== NOT EXECUTED 12c50: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 12c54: ea00000b b 12c88 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 12c58: e3a01000 mov r1, #0 ; 0x0 12c5c: e3a0204c mov r2, #76 ; 0x4c 12c60: e1a00005 mov r0, r5 12c64: ebffe0d8 bl afcc return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 12c68: e2840010 add r0, r4, #16 ; 0x10 12c6c: e1a01005 mov r1, r5 12c70: e5943030 ldr r3, [r4, #48] 12c74: e1a0e00f mov lr, pc 12c78: e593f018 ldr pc, [r3, #24] } 12c7c: e8bd8030 pop {r4, r5, pc} /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 12c80: ebffdec8 bl a7a8 <__errno> <== NOT EXECUTED 12c84: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 12c88: e5803000 str r3, [r0] <== NOT EXECUTED 12c8c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 12c90: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 12c94: 000137f4 .word 0x000137f4 12c98: 00015218 .word 0x00015218 0001b708 : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1b708: e59f3084 ldr r3, [pc, #132] ; 1b794 <== NOT EXECUTED 1b70c: e5933000 ldr r3, [r3] <== NOT EXECUTED 1b710: e1500003 cmp r0, r3 <== NOT EXECUTED #include int fsync( int fd ) { 1b714: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1b718: e1a01000 mov r1, r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1b71c: 2a00000e bcs 1b75c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 1b720: e59f3070 ldr r3, [pc, #112] ; 1b798 <== NOT EXECUTED 1b724: e5932000 ldr r2, [r3] <== NOT EXECUTED 1b728: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 1b72c: e0202193 mla r0, r3, r1, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 1b730: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 1b734: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 1b738: 0a000007 beq 1b75c <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1b73c: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 1b740: 1a000002 bne 1b750 <== NOT EXECUTED 1b744: eb003766 bl 294e4 <__errno> <== NOT EXECUTED 1b748: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1b74c: ea00000a b 1b77c <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) 1b750: e5903030 ldr r3, [r0, #48] <== NOT EXECUTED 1b754: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b758: 1a000002 bne 1b768 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 1b75c: eb003760 bl 294e4 <__errno> <== NOT EXECUTED 1b760: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 1b764: ea000004 b 1b77c <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 1b768: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 1b76c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b770: 1a000004 bne 1b788 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1b774: eb00375a bl 294e4 <__errno> <== NOT EXECUTED 1b778: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1b77c: e5803000 str r3, [r0] <== NOT EXECUTED 1b780: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1b784: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->handlers->fsync_h)( iop ); 1b788: e1a0e00f mov lr, pc <== NOT EXECUTED 1b78c: e12fff13 bx r3 <== NOT EXECUTED } 1b790: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1b794: 0003aa94 .word 0x0003aa94 1b798: 000550f4 .word 0x000550f4 00008704 : int ftruncate( int fd, off_t length ) { 8704: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 8708: e59f30c4 ldr r3, [pc, #196] ; 87d4 <== NOT EXECUTED 870c: e5933000 ldr r3, [r3] <== NOT EXECUTED 8710: e1500003 cmp r0, r3 <== NOT EXECUTED int ftruncate( int fd, off_t length ) { 8714: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 8718: e1a05001 mov r5, r1 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 871c: 2a000006 bcs 873c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 8720: e59f30b0 ldr r3, [pc, #176] ; 87d8 <== NOT EXECUTED 8724: e5932000 ldr r2, [r3] <== NOT EXECUTED 8728: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 872c: e0242093 mla r4, r3, r0, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 8730: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 8734: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 8738: 1a000002 bne 8748 <== NOT EXECUTED 873c: eb000819 bl a7a8 <__errno> <== NOT EXECUTED 8740: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 8744: ea000019 b 87b0 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 8748: e2843010 add r3, r4, #16 ; 0x10 <== NOT EXECUTED 874c: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 8750: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 8754: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 8758: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 875c: 0a000011 beq 87a8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 8760: e1a0000d mov r0, sp <== NOT EXECUTED 8764: e1a0e00f mov lr, pc <== NOT EXECUTED 8768: e12fff13 bx r3 <== NOT EXECUTED 876c: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 8770: 1a000002 bne 8780 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 8774: eb00080b bl a7a8 <__errno> <== NOT EXECUTED 8778: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 877c: ea00000b b 87b0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 8780: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 8784: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 8788: 1a000002 bne 8798 <== NOT EXECUTED 878c: eb000805 bl a7a8 <__errno> <== NOT EXECUTED 8790: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 8794: ea000005 b 87b0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 8798: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 879c: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 87a0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 87a4: 1a000004 bne 87bc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 87a8: eb0007fe bl a7a8 <__errno> <== NOT EXECUTED 87ac: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 87b0: e5803000 str r3, [r0] <== NOT EXECUTED 87b4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 87b8: ea000003 b 87cc <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); 87bc: e1a00004 mov r0, r4 <== NOT EXECUTED 87c0: e1a01005 mov r1, r5 <== NOT EXECUTED 87c4: e1a0e00f mov lr, pc <== NOT EXECUTED 87c8: e12fff13 bx r3 <== NOT EXECUTED } 87cc: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 87d0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 87d4: 000137f4 .word 0x000137f4 87d8: 00015218 .word 0x00015218 0001b874 : char * getcwd ( char *pt, size_t size) { 1b874: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED * If no buffer specified by the user, allocate one as necessary. * If a buffer is specified, the size has to be non-zero. The path * is built from the end of the buffer backwards. */ if (pt) 1b878: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED char * getcwd ( char *pt, size_t size) { 1b87c: e24dd07c sub sp, sp, #124 ; 0x7c <== NOT EXECUTED 1b880: e1a04001 mov r4, r1 <== NOT EXECUTED * If no buffer specified by the user, allocate one as necessary. * If a buffer is specified, the size has to be non-zero. The path * is built from the end of the buffer backwards. */ if (pt) 1b884: 0a000008 beq 1b8ac <== NOT EXECUTED { ptsize = 0; if (!size) 1b888: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED { errno = EINVAL; return (char *) NULL; } ept = pt + size; 1b88c: 108a9001 addne r9, sl, r1 <== NOT EXECUTED 1b890: 13a0b000 movne fp, #0 ; 0x0 <== NOT EXECUTED */ if (pt) { ptsize = 0; if (!size) 1b894: 1a00000a bne 1b8c4 <== NOT EXECUTED { errno = EINVAL; 1b898: eb003711 bl 294e4 <__errno> <== NOT EXECUTED 1b89c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1b8a0: e5803000 str r3, [r0] <== NOT EXECUTED 1b8a4: e1a0a004 mov sl, r4 <== NOT EXECUTED 1b8a8: ea0000f0 b 1bc70 <== NOT EXECUTED } ept = pt + size; } else { if (!(pt = (char *) malloc (ptsize = 1024 - 4))) 1b8ac: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 1b8b0: ebffa2b0 bl 4378 <== NOT EXECUTED 1b8b4: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 1b8b8: 0a0000ec beq 1bc70 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; 1b8bc: e28a9fff add r9, sl, #1020 ; 0x3fc <== NOT EXECUTED 1b8c0: e3a0bfff mov fp, #1020 ; 0x3fc <== NOT EXECUTED } bpt = ept - 1; *bpt = '\0'; 1b8c4: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 1b8c8: e5494001 strb r4, [r9, #-1] <== NOT EXECUTED * Allocate bytes (1024 - malloc space) for the string of "../"'s. * Should always be enough (it's 340 levels). If it's not, allocate * as necessary. Special * case the first stat, it's ".", not "..". */ if (!(up = (char *) malloc (upsize = 1024 - 4))) 1b8cc: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 1b8d0: ebffa2a8 bl 4378 <== NOT EXECUTED 1b8d4: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; 1b8d8: e2498001 sub r8, r9, #1 ; 0x1 <== NOT EXECUTED * Allocate bytes (1024 - malloc space) for the string of "../"'s. * Should always be enough (it's 340 levels). If it's not, allocate * as necessary. Special * case the first stat, it's ".", not "..". */ if (!(up = (char *) malloc (upsize = 1024 - 4))) 1b8dc: 0a0000dd beq 1bc58 <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 1b8e0: e3a0602e mov r6, #46 ; 0x2e <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 1b8e4: e28d5030 add r5, sp, #48 ; 0x30 <== NOT EXECUTED goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; up[1] = '\0'; 1b8e8: e5c74001 strb r4, [r7, #1] <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 1b8ec: e5c76000 strb r6, [r7] <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 1b8f0: e59f0390 ldr r0, [pc, #912] ; 1bc88 <== NOT EXECUTED 1b8f4: e1a01005 mov r1, r5 <== NOT EXECUTED 1b8f8: ebffa646 bl 5218 <== NOT EXECUTED 1b8fc: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1b900: 1a0000d4 bne 1bc58 <== NOT EXECUTED goto err; root_dev = s.st_dev; 1b904: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 1b908: e891000e ldm r1, {r1, r2, r3} <== NOT EXECUTED 1b90c: e58d100c str r1, [sp, #12] <== NOT EXECUTED 1b910: e58d2008 str r2, [sp, #8] <== NOT EXECUTED root_ino = s.st_ino; 1b914: e58d3020 str r3, [sp, #32] <== NOT EXECUTED errno = 0; /* XXX readdir has no error return. */ 1b918: eb0036f1 bl 294e4 <__errno> <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 1b91c: e2871b01 add r1, r7, #1024 ; 0x400 <== NOT EXECUTED if (stat ("/", &s)) goto err; root_dev = s.st_dev; root_ino = s.st_ino; errno = 0; /* XXX readdir has no error return. */ 1b920: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 1b924: e3a03fff mov r3, #1020 ; 0x3fc <== NOT EXECUTED 1b928: e5804000 str r4, [r0] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 1b92c: e58d1028 str r1, [sp, #40] <== NOT EXECUTED if (stat ("/", &s)) goto err; root_dev = s.st_dev; root_ino = s.st_ino; errno = 0; /* XXX readdir has no error return. */ 1b930: e58d701c str r7, [sp, #28] <== NOT EXECUTED 1b934: e58d2018 str r2, [sp, #24] <== NOT EXECUTED 1b938: e58d3024 str r3, [sp, #36] <== NOT EXECUTED for (first = 1;; first = 0) { /* Stat the current level. */ if (_stat (up, &s)) 1b93c: e1a00007 mov r0, r7 <== NOT EXECUTED 1b940: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 1b944: ebffa633 bl 5218 <== NOT EXECUTED 1b948: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1b94c: 1a0000c1 bne 1bc58 <== NOT EXECUTED goto err; /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; 1b950: e59d1030 ldr r1, [sp, #48] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 1b954: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; 1b958: e58d1004 str r1, [sp, #4] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 1b95c: e1520001 cmp r2, r1 <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 1b960: e28d1034 add r1, sp, #52 ; 0x34 <== NOT EXECUTED 1b964: e891000a ldm r1, {r1, r3} <== NOT EXECUTED 1b968: e58d3014 str r3, [sp, #20] <== NOT EXECUTED dev = s.st_dev; 1b96c: e58d1000 str r1, [sp] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 1b970: 1a000002 bne 1b980 <== NOT EXECUTED 1b974: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1b978: e1520001 cmp r2, r1 <== NOT EXECUTED 1b97c: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 1b980: e59d1020 ldr r1, [sp, #32] <== NOT EXECUTED 1b984: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 1b988: e1510002 cmp r1, r2 <== NOT EXECUTED 1b98c: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED 1b990: 02003001 andeq r3, r0, #1 ; 0x1 <== NOT EXECUTED 1b994: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b998: 0a000008 beq 1b9c0 <== NOT EXECUTED { *--bpt = '/'; 1b99c: e2481001 sub r1, r8, #1 ; 0x1 <== NOT EXECUTED 1b9a0: e3a0302f mov r3, #47 ; 0x2f <== NOT EXECUTED 1b9a4: e5483001 strb r3, [r8, #-1] <== NOT EXECUTED /* * It's unclear that it's a requirement to copy the * path to the beginning of the buffer, but it's always * been that way and stuff would probably break. */ (void) bcopy (bpt, pt, ept - bpt); 1b9a8: e0612009 rsb r2, r1, r9 <== NOT EXECUTED 1b9ac: e1a0000a mov r0, sl <== NOT EXECUTED 1b9b0: eb004082 bl 2bbc0 <== NOT EXECUTED free (up); 1b9b4: e1a00007 mov r0, r7 <== NOT EXECUTED 1b9b8: ebffa0f3 bl 3d8c <== NOT EXECUTED 1b9bc: ea0000ab b 1bc70 <== NOT EXECUTED * Build pointer to the parent directory, allocating memory * as necessary. Max length is 3 for "../", the largest * possible component name, plus a trailing NULL. */ if (bup + 3 + MAXNAMLEN + 1 >= eup) 1b9c0: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED 1b9c4: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED 1b9c8: e2813b01 add r3, r1, #1024 ; 0x400 <== NOT EXECUTED 1b9cc: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 1b9d0: e1520003 cmp r2, r3 <== NOT EXECUTED 1b9d4: 8a00000b bhi 1ba08 <== NOT EXECUTED { if (!(up = (char *) realloc (up, upsize *= 2))) 1b9d8: e59d3024 ldr r3, [sp, #36] <== NOT EXECUTED 1b9dc: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED 1b9e0: e1a00007 mov r0, r7 <== NOT EXECUTED 1b9e4: e1a01003 mov r1, r3 <== NOT EXECUTED 1b9e8: e58d3024 str r3, [sp, #36] <== NOT EXECUTED 1b9ec: eb0005d2 bl 1d13c <== NOT EXECUTED 1b9f0: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED 1b9f4: 0a000097 beq 1bc58 <== NOT EXECUTED { goto err; } bup = up; eup = up + upsize; 1b9f8: e59d1024 ldr r1, [sp, #36] <== NOT EXECUTED 1b9fc: e0871001 add r1, r7, r1 <== NOT EXECUTED 1ba00: e58d1028 str r1, [sp, #40] <== NOT EXECUTED 1ba04: e58d701c str r7, [sp, #28] <== NOT EXECUTED } *bup++ = '.'; 1ba08: e59d401c ldr r4, [sp, #28] <== NOT EXECUTED 1ba0c: e3a0202e mov r2, #46 ; 0x2e <== NOT EXECUTED 1ba10: e4c42001 strb r2, [r4], #1 <== NOT EXECUTED *bup++ = '.'; 1ba14: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED *bup = '\0'; 1ba18: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 1ba1c: e5c32001 strb r2, [r3, #1] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1ba20: e1a00007 mov r0, r7 <== NOT EXECUTED bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; *bup = '\0'; 1ba24: e5c41001 strb r1, [r4, #1] <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1ba28: eb0004a6 bl 1ccc8 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 1ba2c: e2842001 add r2, r4, #1 ; 0x1 <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1ba30: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ba34: e58d0010 str r0, [sp, #16] <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 1ba38: e58d202c str r2, [sp, #44] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1ba3c: 0a000085 beq 1bc58 <== NOT EXECUTED 1ba40: e5900000 ldr r0, [r0] <== NOT EXECUTED 1ba44: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 1ba48: ebffff00 bl 1b650 <== NOT EXECUTED 1ba4c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ba50: 1a000089 bne 1bc7c <== NOT EXECUTED goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 1ba54: e3a0302f mov r3, #47 ; 0x2f <== NOT EXECUTED 1ba58: e5c43001 strb r3, [r4, #1] <== NOT EXECUTED * the inode number in the directory is for the entry in the * parent directory, not the inode number of the mounted file. */ save_errno = 0; if (s.st_dev == dev) 1ba5c: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 1ba60: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 1ba64: e59d202c ldr r2, [sp, #44] <== NOT EXECUTED * the inode number in the directory is for the entry in the * parent directory, not the inode number of the mounted file. */ save_errno = 0; if (s.st_dev == dev) 1ba68: e1530001 cmp r3, r1 <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 1ba6c: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED 1ba70: e58d201c str r2, [sp, #28] <== NOT EXECUTED * the inode number in the directory is for the entry in the * parent directory, not the inode number of the mounted file. */ save_errno = 0; if (s.st_dev == dev) 1ba74: 1a000003 bne 1ba88 <== NOT EXECUTED 1ba78: e59d3034 ldr r3, [sp, #52] <== NOT EXECUTED 1ba7c: e59d1000 ldr r1, [sp] <== NOT EXECUTED 1ba80: e1530001 cmp r3, r1 <== NOT EXECUTED 1ba84: 0a000001 beq 1ba90 <== NOT EXECUTED 1ba88: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 1ba8c: ea000008 b 1bab4 <== NOT EXECUTED { for (;;) { if (!(dp = _readdir (dir))) 1ba90: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 1ba94: eb000540 bl 1cf9c <== NOT EXECUTED 1ba98: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1ba9c: 0a000063 beq 1bc30 <== NOT EXECUTED goto notfound; if (dp->d_ino == ino) 1baa0: e5953000 ldr r3, [r5] <== NOT EXECUTED 1baa4: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 1baa8: e1530002 cmp r3, r2 <== NOT EXECUTED 1baac: 1afffff7 bne 1ba90 <== NOT EXECUTED 1bab0: ea00002e b 1bb70 <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 1bab4: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 1bab8: eb000537 bl 1cf9c <== NOT EXECUTED 1babc: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1bac0: 0a00005b beq 1bc34 <== NOT EXECUTED goto notfound; if (ISDOT (dp)) 1bac4: e5d5300c ldrb r3, [r5, #12] <== NOT EXECUTED 1bac8: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 1bacc: 1a000007 bne 1baf0 <== NOT EXECUTED 1bad0: e5d5300d ldrb r3, [r5, #13] <== NOT EXECUTED 1bad4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1bad8: 0afffff5 beq 1bab4 <== NOT EXECUTED 1badc: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 1bae0: 1a000002 bne 1baf0 <== NOT EXECUTED 1bae4: e5d5300e ldrb r3, [r5, #14] <== NOT EXECUTED 1bae8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1baec: 0afffff0 beq 1bab4 <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 1baf0: e285400c add r4, r5, #12 ; 0xc <== NOT EXECUTED 1baf4: e1a00004 mov r0, r4 <== NOT EXECUTED 1baf8: eb004d0f bl 2ef3c <== NOT EXECUTED 1bafc: e1a01004 mov r1, r4 <== NOT EXECUTED 1bb00: e2802001 add r2, r0, #1 ; 0x1 <== NOT EXECUTED 1bb04: e59d001c ldr r0, [sp, #28] <== NOT EXECUTED 1bb08: eb00402c bl 2bbc0 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 1bb0c: e1a00007 mov r0, r7 <== NOT EXECUTED 1bb10: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 1bb14: ebffa5bf bl 5218 <== NOT EXECUTED 1bb18: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1bb1c: 0a000007 beq 1bb40 <== NOT EXECUTED { if (!save_errno) 1bb20: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1bb24: 1a000001 bne 1bb30 <== NOT EXECUTED save_errno = errno; 1bb28: eb00366d bl 294e4 <__errno> <== NOT EXECUTED 1bb2c: e5906000 ldr r6, [r0] <== NOT EXECUTED errno = 0; 1bb30: eb00366b bl 294e4 <__errno> <== NOT EXECUTED 1bb34: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1bb38: e5803000 str r3, [r0] <== NOT EXECUTED 1bb3c: eaffffdc b 1bab4 <== NOT EXECUTED continue; } if (s.st_dev == dev && s.st_ino == ino) 1bb40: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 1bb44: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 1bb48: e1530001 cmp r3, r1 <== NOT EXECUTED 1bb4c: 1affffd8 bne 1bab4 <== NOT EXECUTED 1bb50: e59d3034 ldr r3, [sp, #52] <== NOT EXECUTED 1bb54: e59d2000 ldr r2, [sp] <== NOT EXECUTED 1bb58: e1530002 cmp r3, r2 <== NOT EXECUTED 1bb5c: 1affffd4 bne 1bab4 <== NOT EXECUTED 1bb60: e59d3038 ldr r3, [sp, #56] <== NOT EXECUTED 1bb64: e59d1014 ldr r1, [sp, #20] <== NOT EXECUTED 1bb68: e1530001 cmp r3, r1 <== NOT EXECUTED 1bb6c: 1affffd0 bne 1bab4 <== NOT EXECUTED /* * Check for length of the current name, preceding slash, * leading slash. */ if (bpt - pt <= strlen (dp->d_name) + (first ? 1 : 2)) 1bb70: e285400c add r4, r5, #12 ; 0xc <== NOT EXECUTED 1bb74: e1a00004 mov r0, r4 <== NOT EXECUTED 1bb78: eb004cef bl 2ef3c <== NOT EXECUTED 1bb7c: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED 1bb80: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1bb84: 13a03001 movne r3, #1 ; 0x1 <== NOT EXECUTED 1bb88: 03a03002 moveq r3, #2 ; 0x2 <== NOT EXECUTED 1bb8c: e0833000 add r3, r3, r0 <== NOT EXECUTED 1bb90: e06a5008 rsb r5, sl, r8 <== NOT EXECUTED 1bb94: e1550003 cmp r5, r3 <== NOT EXECUTED 1bb98: 8a000011 bhi 1bbe4 <== NOT EXECUTED { size_t len, off; if (!ptsize) 1bb9c: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED 1bba0: 1a000003 bne 1bbb4 <== NOT EXECUTED { errno = ERANGE; 1bba4: eb00364e bl 294e4 <__errno> <== NOT EXECUTED 1bba8: e3a03022 mov r3, #34 ; 0x22 <== NOT EXECUTED 1bbac: e5803000 str r3, [r0] <== NOT EXECUTED 1bbb0: ea000031 b 1bc7c <== NOT EXECUTED goto err; } off = bpt - pt; len = ept - bpt; if (!(pt = (char *) realloc (pt, ptsize *= 2))) 1bbb4: e1a0b08b lsl fp, fp, #1 <== NOT EXECUTED 1bbb8: e1a0000a mov r0, sl <== NOT EXECUTED 1bbbc: e1a0100b mov r1, fp <== NOT EXECUTED 1bbc0: eb00055d bl 1d13c <== NOT EXECUTED 1bbc4: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 1bbc8: 0a00002b beq 1bc7c <== NOT EXECUTED { errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; 1bbcc: e0682009 rsb r2, r8, r9 <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 1bbd0: e08a900b add r9, sl, fp <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); 1bbd4: e0628009 rsb r8, r2, r9 <== NOT EXECUTED 1bbd8: e08a1005 add r1, sl, r5 <== NOT EXECUTED 1bbdc: e1a00008 mov r0, r8 <== NOT EXECUTED 1bbe0: eb003ff6 bl 2bbc0 <== NOT EXECUTED bpt = ept - len; } if (!first) 1bbe4: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1bbe8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED *--bpt = '/'; 1bbec: 03a0102f moveq r1, #47 ; 0x2f <== NOT EXECUTED 1bbf0: 05681001 strbeq r1, [r8, #-1]! <== NOT EXECUTED bpt -= strlen (dp->d_name); 1bbf4: e1a00004 mov r0, r4 <== NOT EXECUTED 1bbf8: eb004ccf bl 2ef3c <== NOT EXECUTED 1bbfc: e0608008 rsb r8, r0, r8 <== NOT EXECUTED 1bc00: e1a02000 mov r2, r0 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); 1bc04: e1a01004 mov r1, r4 <== NOT EXECUTED 1bc08: e1a00008 mov r0, r8 <== NOT EXECUTED 1bc0c: eb003feb bl 2bbc0 <== NOT EXECUTED (void) _closedir (dir); 1bc10: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 1bc14: eb002d0c bl 2704c <== NOT EXECUTED dir = 0; /* Truncate any file name. */ *bup = '\0'; 1bc18: e59d202c ldr r2, [sp, #44] <== NOT EXECUTED 1bc1c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1bc20: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1bc24: e5c23001 strb r3, [r2, #1] <== NOT EXECUTED 1bc28: e58d1018 str r1, [sp, #24] <== NOT EXECUTED 1bc2c: eaffff42 b 1b93c <== NOT EXECUTED } 1bc30: e1a06005 mov r6, r5 <== NOT EXECUTED * If readdir set errno, use it, not any saved error; otherwise, * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) 1bc34: eb00362a bl 294e4 <__errno> <== NOT EXECUTED 1bc38: e5903000 ldr r3, [r0] <== NOT EXECUTED 1bc3c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1bc40: 1a00000d bne 1bc7c <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; 1bc44: eb003626 bl 294e4 <__errno> <== NOT EXECUTED 1bc48: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1bc4c: 03a06002 moveq r6, #2 ; 0x2 <== NOT EXECUTED 1bc50: e5806000 str r6, [r0] <== NOT EXECUTED 1bc54: ea000008 b 1bc7c <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); if (ptsize) 1bc58: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED free (pt); 1bc5c: 11a0000a movne r0, sl <== NOT EXECUTED 1bc60: 1bffa049 blne 3d8c <== NOT EXECUTED free (up); 1bc64: e1a00007 mov r0, r7 <== NOT EXECUTED 1bc68: ebffa047 bl 3d8c <== NOT EXECUTED 1bc6c: e3a0a000 mov sl, #0 ; 0x0 <== NOT EXECUTED return (char *) NULL; } 1bc70: e1a0000a mov r0, sl <== NOT EXECUTED 1bc74: e28dd07c add sp, sp, #124 ; 0x7c <== NOT EXECUTED 1bc78: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 1bc7c: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 1bc80: eb002cf1 bl 2704c <== NOT EXECUTED 1bc84: eafffff3 b 1bc58 <== NOT EXECUTED 1bc88: 0004018b .word 0x0004018b 000273c4 : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 273c4: e59f30a0 ldr r3, [pc, #160] ; 2746c <== NOT EXECUTED 273c8: e5933000 ldr r3, [r3] <== NOT EXECUTED 273cc: e1500003 cmp r0, r3 <== NOT EXECUTED 273d0: 359f3098 ldrcc r3, [pc, #152] ; 27470 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 273d4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 273d8: e1a06002 mov r6, r2 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 273dc: 35932000 ldrcc r2, [r3] <== NOT EXECUTED 273e0: 33a03034 movcc r3, #52 ; 0x34 <== NOT EXECUTED 273e4: 30242093 mlacc r4, r3, r0, r2 <== NOT EXECUTED 273e8: 23a04000 movcs r4, #0 ; 0x0 <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 273ec: e2843010 add r3, r4, #16 ; 0x10 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 273f0: e1a05001 mov r5, r1 <== NOT EXECUTED iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 273f4: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 273f8: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 273fc: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 27400: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 27404: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 27408: 0a00000d beq 27444 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 2740c: e1a0000d mov r0, sp <== NOT EXECUTED 27410: e1a0e00f mov lr, pc <== NOT EXECUTED 27414: e12fff13 bx r3 <== NOT EXECUTED 27418: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 2741c: 0a000004 beq 27434 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 27420: eb00082f bl 294e4 <__errno> <== NOT EXECUTED 27424: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 27428: e5803000 str r3, [r0] <== NOT EXECUTED 2742c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 27430: ea00000b b 27464 <== NOT EXECUTED /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 27434: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 27438: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 2743c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 27440: 1a000002 bne 27450 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 27444: eb000826 bl 294e4 <__errno> <== NOT EXECUTED 27448: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 2744c: eafffff5 b 27428 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 27450: e1a00004 mov r0, r4 <== NOT EXECUTED 27454: e1a01005 mov r1, r5 <== NOT EXECUTED 27458: e1a02006 mov r2, r6 <== NOT EXECUTED 2745c: e1a0e00f mov lr, pc <== NOT EXECUTED 27460: e12fff13 bx r3 <== NOT EXECUTED } 27464: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 27468: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 2746c: 0003aa94 .word 0x0003aa94 27470: 000550f4 .word 0x000550f4 0001bc8c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { 1bc8c: e59f3008 ldr r3, [pc, #8] ; 1bc9c <== NOT EXECUTED 1bc90: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Egid; } 1bc94: e1d303b0 ldrh r0, [r3, #48] <== NOT EXECUTED 1bc98: e12fff1e bx lr <== NOT EXECUTED 1bc9c: 0003b5c8 .word 0x0003b5c8 0001bca0 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { 1bca0: e59f3008 ldr r3, [pc, #8] ; 1bcb0 <== NOT EXECUTED 1bca4: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Euid; } 1bca8: e1d302be ldrh r0, [r3, #46] <== NOT EXECUTED 1bcac: e12fff1e bx lr <== NOT EXECUTED 1bcb0: 0003b5c8 .word 0x0003b5c8 0001bcb4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 1bcb4: e59f3008 ldr r3, [pc, #8] ; 1bcc4 <== NOT EXECUTED 1bcb8: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 1bcbc: e1d302bc ldrh r0, [r3, #44] <== NOT EXECUTED 1bcc0: e12fff1e bx lr <== NOT EXECUTED 1bcc4: 0003b5c8 .word 0x0003b5c8 0001c2cc : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 1c2cc: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 1c2d0: e59da01c ldr sl, [sp, #28] <== NOT EXECUTED 1c2d4: e1a06000 mov r6, r0 <== NOT EXECUTED 1c2d8: e1a08001 mov r8, r1 <== NOT EXECUTED 1c2dc: e1a04002 mov r4, r2 <== NOT EXECUTED 1c2e0: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 1c2e4: ebffffb7 bl 1c1c8 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { 1c2e8: e59f00a4 ldr r0, [pc, #164] ; 1c394 <== NOT EXECUTED 1c2ec: e59f10a4 ldr r1, [pc, #164] ; 1c398 <== NOT EXECUTED 1c2f0: eb0036bf bl 29df4 <== NOT EXECUTED 1c2f4: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1c2f8: 1a000003 bne 1c30c <== NOT EXECUTED errno = EINVAL; 1c2fc: eb003478 bl 294e4 <__errno> <== NOT EXECUTED 1c300: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1c304: e5803000 str r3, [r0] <== NOT EXECUTED 1c308: ea00000c b 1c340 <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 1c30c: e1a01004 mov r1, r4 <== NOT EXECUTED 1c310: e1a02007 mov r2, r7 <== NOT EXECUTED 1c314: e1a0300a mov r3, sl <== NOT EXECUTED 1c318: e1a00005 mov r0, r5 <== NOT EXECUTED 1c31c: ebfffeec bl 1bed4 <== NOT EXECUTED 1c320: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 1c324: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 1c328: 1a000006 bne 1c348 <== NOT EXECUTED errno = EINVAL; 1c32c: eb00346c bl 294e4 <__errno> <== NOT EXECUTED 1c330: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1c334: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 1c338: e1a00005 mov r0, r5 <== NOT EXECUTED 1c33c: eb0034b9 bl 29628 <== NOT EXECUTED 1c340: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1c344: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED return -1; } if (name) { 1c348: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1c34c: 0a000004 beq 1c364 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 1c350: e5940000 ldr r0, [r4] <== NOT EXECUTED 1c354: eb0048d1 bl 2e6a0 <== NOT EXECUTED 1c358: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 1c35c: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED 1c360: ea000003 b 1c374 <== NOT EXECUTED } else { match = (grp->gr_gid == gid); 1c364: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 1c368: e1530008 cmp r3, r8 <== NOT EXECUTED 1c36c: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 1c370: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 1c374: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c378: 0affffe3 beq 1c30c <== NOT EXECUTED fclose(fp); 1c37c: e1a00005 mov r0, r5 <== NOT EXECUTED 1c380: eb0034a8 bl 29628 <== NOT EXECUTED *result = grp; 1c384: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 1c388: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1c38c: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 1c390: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 1c394: 000400ac .word 0x000400ac 1c398: 0003e845 .word 0x0003e845 0001c014 : return p; } struct group *getgrent() { if (group_fp == NULL) 1c014: e59f3030 ldr r3, [pc, #48] ; 1c04c <== NOT EXECUTED 1c018: e5930000 ldr r0, [r3] <== NOT EXECUTED 1c01c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent() { 1c020: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (group_fp == NULL) 1c024: 0a000006 beq 1c044 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 1c028: e59f1020 ldr r1, [pc, #32] ; 1c050 <== NOT EXECUTED 1c02c: e59f2020 ldr r2, [pc, #32] ; 1c054 <== NOT EXECUTED 1c030: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1c034: ebffffa6 bl 1bed4 <== NOT EXECUTED 1c038: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c03c: 159f000c ldrne r0, [pc, #12] ; 1c050 <== NOT EXECUTED 1c040: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 1c044: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &grent; } 1c048: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1c04c: 000548ec .word 0x000548ec 1c050: 000549b8 .word 0x000549b8 1c054: 000548f0 .word 0x000548f0 0001c3d8 : struct group *getgrgid( gid_t gid ) { 1c3d8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c3dc: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 1c3e0: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 1c3e4: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1c3e8: e59f1024 ldr r1, [pc, #36] ; 1c414 <== NOT EXECUTED 1c3ec: e59f2024 ldr r2, [pc, #36] ; 1c418 <== NOT EXECUTED 1c3f0: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1c3f4: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 1c3f8: e58dc000 str ip, [sp] <== NOT EXECUTED 1c3fc: ebffffe6 bl 1c39c <== NOT EXECUTED 1c400: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c404: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1c408: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1c40c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c410: e8bd8000 pop {pc} <== NOT EXECUTED 1c414: 000549b8 .word 0x000549b8 1c418: 000548f0 .word 0x000548f0 0001c39c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 1c39c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c3a0: e1a0c001 mov ip, r1 <== NOT EXECUTED 1c3a4: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c3a8: e1a0e002 mov lr, r2 <== NOT EXECUTED 1c3ac: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 1c3b0: e1a0200c mov r2, ip <== NOT EXECUTED 1c3b4: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1c3b8: e58d3000 str r3, [sp] <== NOT EXECUTED 1c3bc: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 1c3c0: e1a0300e mov r3, lr <== NOT EXECUTED 1c3c4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1c3c8: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1c3cc: ebffffbe bl 1c2cc <== NOT EXECUTED } 1c3d0: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c3d4: e8bd8000 pop {pc} <== NOT EXECUTED 0001c44c : struct group *getgrnam( const char *name ) { 1c44c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c450: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 1c454: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1c458: e59f1020 ldr r1, [pc, #32] ; 1c480 <== NOT EXECUTED 1c45c: e59f2020 ldr r2, [pc, #32] ; 1c484 <== NOT EXECUTED 1c460: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1c464: e58dc000 str ip, [sp] <== NOT EXECUTED 1c468: ebffffeb bl 1c41c <== NOT EXECUTED 1c46c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c470: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1c474: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1c478: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c47c: e8bd8000 pop {pc} <== NOT EXECUTED 1c480: 000549b8 .word 0x000549b8 1c484: 000548f0 .word 0x000548f0 0001c41c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 1c41c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c420: e1a0c002 mov ip, r2 <== NOT EXECUTED 1c424: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getgr_r(name, 0, grp, buffer, bufsize, result); 1c428: e58d3000 str r3, [sp] <== NOT EXECUTED 1c42c: e1a0300c mov r3, ip <== NOT EXECUTED 1c430: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1c434: e1a02001 mov r2, r1 <== NOT EXECUTED 1c438: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1c43c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1c440: ebffffa1 bl 1c2cc <== NOT EXECUTED } 1c444: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c448: e8bd8000 pop {pc} <== NOT EXECUTED 0001d6b4 : */ pid_t getpid( void ) { return _Objects_Local_node; } 1d6b4: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 1d6b8: e12fff1e bx lr <== NOT EXECUTED 0001c4c4 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 1c4c4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 1c4c8: e59da01c ldr sl, [sp, #28] <== NOT EXECUTED 1c4cc: e1a06000 mov r6, r0 <== NOT EXECUTED 1c4d0: e1a08001 mov r8, r1 <== NOT EXECUTED 1c4d4: e1a04002 mov r4, r2 <== NOT EXECUTED 1c4d8: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 1c4dc: ebffff39 bl 1c1c8 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { 1c4e0: e59f00a4 ldr r0, [pc, #164] ; 1c58c <== NOT EXECUTED 1c4e4: e59f10a4 ldr r1, [pc, #164] ; 1c590 <== NOT EXECUTED 1c4e8: eb003641 bl 29df4 <== NOT EXECUTED 1c4ec: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1c4f0: 1a000003 bne 1c504 <== NOT EXECUTED errno = EINVAL; 1c4f4: eb0033fa bl 294e4 <__errno> <== NOT EXECUTED 1c4f8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1c4fc: e5803000 str r3, [r0] <== NOT EXECUTED 1c500: ea00000c b 1c538 <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 1c504: e1a01004 mov r1, r4 <== NOT EXECUTED 1c508: e1a02007 mov r2, r7 <== NOT EXECUTED 1c50c: e1a0300a mov r3, sl <== NOT EXECUTED 1c510: e1a00005 mov r0, r5 <== NOT EXECUTED 1c514: ebfffecf bl 1c058 <== NOT EXECUTED 1c518: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 1c51c: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 1c520: 1a000006 bne 1c540 <== NOT EXECUTED errno = EINVAL; 1c524: eb0033ee bl 294e4 <__errno> <== NOT EXECUTED 1c528: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1c52c: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 1c530: e1a00005 mov r0, r5 <== NOT EXECUTED 1c534: eb00343b bl 29628 <== NOT EXECUTED 1c538: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1c53c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED return -1; } if (name) { 1c540: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1c544: 0a000004 beq 1c55c <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 1c548: e5940000 ldr r0, [r4] <== NOT EXECUTED 1c54c: eb004853 bl 2e6a0 <== NOT EXECUTED 1c550: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 1c554: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED 1c558: ea000003 b 1c56c <== NOT EXECUTED } else { match = (pwd->pw_uid == uid); 1c55c: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 1c560: e1530008 cmp r3, r8 <== NOT EXECUTED 1c564: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 1c568: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 1c56c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c570: 0affffe3 beq 1c504 <== NOT EXECUTED fclose(fp); 1c574: e1a00005 mov r0, r5 <== NOT EXECUTED 1c578: eb00342a bl 29628 <== NOT EXECUTED *result = pwd; 1c57c: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 1c580: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1c584: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 1c588: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 1c58c: 00040039 .word 0x00040039 1c590: 0003e845 .word 0x0003e845 0001c184 : return p; } struct passwd *getpwent() { if (passwd_fp == NULL) 1c184: e59f3030 ldr r3, [pc, #48] ; 1c1bc <== NOT EXECUTED 1c188: e5930000 ldr r0, [r3] <== NOT EXECUTED 1c18c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent() { 1c190: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (passwd_fp == NULL) 1c194: 0a000006 beq 1c1b4 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 1c198: e59f1020 ldr r1, [pc, #32] ; 1c1c0 <== NOT EXECUTED 1c19c: e59f2020 ldr r2, [pc, #32] ; 1c1c4 <== NOT EXECUTED 1c1a0: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1c1a4: ebffffab bl 1c058 <== NOT EXECUTED 1c1a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c1ac: 159f000c ldrne r0, [pc, #12] ; 1c1c0 <== NOT EXECUTED 1c1b0: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 1c1b4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &pwent; } 1c1b8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1c1bc: 00054804 .word 0x00054804 1c1c0: 000548d0 .word 0x000548d0 1c1c4: 00054808 .word 0x00054808 0001c644 : struct passwd *getpwnam( const char *name ) { 1c644: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c648: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 1c64c: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1c650: e59f1020 ldr r1, [pc, #32] ; 1c678 <== NOT EXECUTED 1c654: e59f2020 ldr r2, [pc, #32] ; 1c67c <== NOT EXECUTED 1c658: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1c65c: e58dc000 str ip, [sp] <== NOT EXECUTED 1c660: ebffffeb bl 1c614 <== NOT EXECUTED 1c664: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c668: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1c66c: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1c670: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c674: e8bd8000 pop {pc} <== NOT EXECUTED 1c678: 000548d0 .word 0x000548d0 1c67c: 00054808 .word 0x00054808 0001c614 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 1c614: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c618: e1a0c002 mov ip, r2 <== NOT EXECUTED 1c61c: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getpw_r(name, 0, pwd, buffer, bufsize, result); 1c620: e58d3000 str r3, [sp] <== NOT EXECUTED 1c624: e1a0300c mov r3, ip <== NOT EXECUTED 1c628: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1c62c: e1a02001 mov r2, r1 <== NOT EXECUTED 1c630: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1c634: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1c638: ebffffa1 bl 1c4c4 <== NOT EXECUTED } 1c63c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c640: e8bd8000 pop {pc} <== NOT EXECUTED 0001c5d0 : struct passwd *getpwuid( uid_t uid ) { 1c5d0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c5d4: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 1c5d8: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 1c5dc: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1c5e0: e59f1024 ldr r1, [pc, #36] ; 1c60c <== NOT EXECUTED 1c5e4: e59f2024 ldr r2, [pc, #36] ; 1c610 <== NOT EXECUTED 1c5e8: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1c5ec: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 1c5f0: e58dc000 str ip, [sp] <== NOT EXECUTED 1c5f4: ebffffe6 bl 1c594 <== NOT EXECUTED 1c5f8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c5fc: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1c600: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1c604: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c608: e8bd8000 pop {pc} <== NOT EXECUTED 1c60c: 000548d0 .word 0x000548d0 1c610: 00054808 .word 0x00054808 0001c594 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 1c594: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1c598: e1a0c001 mov ip, r1 <== NOT EXECUTED 1c59c: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c5a0: e1a0e002 mov lr, r2 <== NOT EXECUTED 1c5a4: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 1c5a8: e1a0200c mov r2, ip <== NOT EXECUTED 1c5ac: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1c5b0: e58d3000 str r3, [sp] <== NOT EXECUTED 1c5b4: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 1c5b8: e1a0300e mov r3, lr <== NOT EXECUTED 1c5bc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1c5c0: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1c5c4: ebffffbe bl 1c4c4 <== NOT EXECUTED } 1c5c8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1c5cc: e8bd8000 pop {pc} <== NOT EXECUTED 000087dc : int gettimeofday( struct timeval *tp, void * __tz ) { 87dc: e92d4030 push {r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 87e0: e2505000 subs r5, r0, #0 ; 0x0 int gettimeofday( struct timeval *tp, void * __tz ) { 87e4: e24dd008 sub sp, sp, #8 ; 0x8 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 87e8: 1a000004 bne 8800 errno = EFAULT; 87ec: eb0007ed bl a7a8 <__errno> <== NOT EXECUTED 87f0: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 87f4: e5803000 str r3, [r0] <== NOT EXECUTED 87f8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 87fc: ea00000c b 8834 <== NOT EXECUTED ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 8800: e10f4000 mrs r4, CPSR 8804: e38430c0 orr r3, r4, #192 ; 0xc0 8808: e129f003 msr CPSR_fc, r3 _TOD_Get( &now ); 880c: e1a0000d mov r0, sp 8810: ebfff236 bl 50f0 <_TOD_Get> _ISR_Enable(level); 8814: e129f004 msr CPSR_fc, r4 time->tv_sec = now.tv_sec; 8818: e59d3000 ldr r3, [sp] 881c: e5853000 str r3, [r5] time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 8820: e59d0004 ldr r0, [sp, #4] 8824: e3a01ffa mov r1, #1000 ; 0x3e8 8828: eb002309 bl 11454 <__aeabi_uidiv> 882c: e5850004 str r0, [r5, #4] 8830: e3a00000 mov r0, #0 ; 0x0 * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 8834: e28dd008 add sp, sp, #8 ; 0x8 8838: e8bd8030 pop {r4, r5, pc} 00003e9c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 3e9c: e59f3008 ldr r3, [pc, #8] ; 3eac <== NOT EXECUTED 3ea0: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } 3ea4: e1d302ba ldrh r0, [r3, #42] <== NOT EXECUTED 3ea8: e12fff1e bx lr <== NOT EXECUTED 3eac: 0003b5c8 .word 0x0003b5c8 00026c98 : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } 26c98: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 26c9c: e12fff1e bx lr <== NOT EXECUTED 00026ca0 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 26ca0: e5902000 ldr r2, [r0] <== NOT EXECUTED buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 26ca4: e5923038 ldr r3, [r2, #56] <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 26ca8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 26cac: e1a05001 mov r5, r1 <== NOT EXECUTED buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; 26cb0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 26cb4: e585103c str r1, [r5, #60] <== NOT EXECUTED buf->st_blocks = 0; 26cb8: e5851040 str r1, [r5, #64] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 26cbc: e5853008 str r3, [r5, #8] <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; 26cc0: e5923040 ldr r3, [r2, #64] <== NOT EXECUTED 26cc4: e5853024 str r3, [r5, #36] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 26cc8: e1d263b4 ldrh r6, [r2, #52] <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 26ccc: e5923044 ldr r3, [r2, #68] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 26cd0: e1c561b0 strh r6, [r5, #16] <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 26cd4: e585302c str r3, [r5, #44] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 26cd8: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 26cdc: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; 26ce0: e5853018 str r3, [r5, #24] <== NOT EXECUTED 26ce4: e585401c str r4, [r5, #28] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 26ce8: e8850018 stm r5, {r3, r4} <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; 26cec: e1d233bc ldrh r3, [r2, #60] <== NOT EXECUTED 26cf0: e1c531b2 strh r3, [r5, #18] <== NOT EXECUTED buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 26cf4: e592c048 ldr ip, [r2, #72] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; 26cf8: e5920030 ldr r0, [r2, #48] <== NOT EXECUTED buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 26cfc: e1d263be ldrh r6, [r2, #62] <== NOT EXECUTED buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; buf->st_size = 0; 26d00: e5851020 str r1, [r5, #32] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; 26d04: e585000c str r0, [r5, #12] <== NOT EXECUTED buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 26d08: e585c034 str ip, [r5, #52] <== NOT EXECUTED buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 26d0c: e1c561b4 strh r6, [r5, #20] <== NOT EXECUTED 26d10: e2821054 add r1, r2, #84 ; 0x54 <== NOT EXECUTED the_chain = &the_jnode->info.directory.Entries; /* Run through the chain and count the number of directory entries */ /* that are subordinate to this directory node */ for ( the_node = the_chain->first ; 26d14: e5922050 ldr r2, [r2, #80] <== NOT EXECUTED 26d18: ea000003 b 26d2c <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { buf->st_size = buf->st_size + sizeof( struct dirent ); 26d1c: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 26d20: e2833f43 add r3, r3, #268 ; 0x10c <== NOT EXECUTED 26d24: e5853020 str r3, [r5, #32] <== NOT EXECUTED /* Run through the chain and count the number of directory entries */ /* that are subordinate to this directory node */ for ( the_node = the_chain->first ; !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 26d28: e5922000 ldr r2, [r2] <== NOT EXECUTED the_chain = &the_jnode->info.directory.Entries; /* Run through the chain and count the number of directory entries */ /* that are subordinate to this directory node */ for ( the_node = the_chain->first ; !rtems_chain_is_tail( the_chain, the_node ) ; 26d2c: e1520001 cmp r2, r1 <== NOT EXECUTED 26d30: 1afffff9 bne 26d1c <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } 26d34: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 26d38: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 00026d3c : rtems_libio_t *iop, off_t offset, int whence ) { switch( whence ) { 26d3c: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED off_t imfs_dir_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 26d40: e92d4010 push {r4, lr} <== NOT EXECUTED 26d44: e1a04000 mov r4, r0 <== NOT EXECUTED switch( whence ) { 26d48: 8a000007 bhi 26d6c <== NOT EXECUTED case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) * 26d4c: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED 26d50: e3a01f43 mov r1, #268 ; 0x10c <== NOT EXECUTED 26d54: eb004a64 bl 396ec <__aeabi_uidiv> <== NOT EXECUTED 26d58: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 26d5c: e0030390 mul r3, r0, r3 <== NOT EXECUTED 26d60: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 26d64: e5843008 str r3, [r4, #8] <== NOT EXECUTED 26d68: e8bd8010 pop {r4, pc} <== NOT EXECUTED 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 ); 26d6c: eb0009dc bl 294e4 <__errno> <== NOT EXECUTED 26d70: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 26d74: e5803000 str r3, [r0] <== NOT EXECUTED 26d78: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED break; } return 0; } 26d7c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 00026c78 : IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 26c78: e590302c ldr r3, [r0, #44] <== NOT EXECUTED 26c7c: e593304c ldr r3, [r3, #76] <== NOT EXECUTED 26c80: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 26c84: 03a03000 moveq r3, #0 ; 0x0 <== NOT EXECUTED 26c88: 05803008 streq r3, [r0, #8] <== NOT EXECUTED IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 26c8c: 13e00000 mvnne r0, #0 ; 0x0 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 26c90: 01a00003 moveq r0, r3 <== NOT EXECUTED return 0; } 26c94: e12fff1e bx lr <== NOT EXECUTED 00026e60 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 26e60: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED int current_entry; int first_entry; int last_entry; struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; 26e64: e590302c ldr r3, [r0, #44] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 26e68: e5937050 ldr r7, [r3, #80] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 26e6c: e283b054 add fp, r3, #84 ; 0x54 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 26e70: e24ddf45 sub sp, sp, #276 ; 0x114 <== NOT EXECUTED struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 26e74: e157000b cmp r7, fp <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 26e78: e1a08000 mov r8, r0 <== NOT EXECUTED 26e7c: e58d1000 str r1, [sp] <== NOT EXECUTED 26e80: e1a00002 mov r0, r2 <== NOT EXECUTED struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 26e84: 03a06000 moveq r6, #0 ; 0x0 <== NOT EXECUTED 26e88: 0a000028 beq 26f30 <== NOT EXECUTED bytes_transferred = 0; first_entry = iop->offset; /* 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); 26e8c: e3a01f43 mov r1, #268 ; 0x10c <== NOT EXECUTED 26e90: eb004a15 bl 396ec <__aeabi_uidiv> <== NOT EXECUTED /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 26e94: e598a008 ldr sl, [r8, #8] <== 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); 26e98: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 26e9c: e020a093 mla r0, r3, r0, sl <== NOT EXECUTED 26ea0: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 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 ); 26ea4: e28d3008 add r3, sp, #8 ; 0x8 <== NOT EXECUTED bytes_transferred = 0; first_entry = iop->offset; /* 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); 26ea8: e58d0004 str r0, [sp, #4] <== NOT EXECUTED 26eac: e1a05006 mov r5, r6 <== NOT EXECUTED 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 ); 26eb0: e283900c add r9, r3, #12 ; 0xc <== NOT EXECUTED 26eb4: ea00001a b 26f24 <== NOT EXECUTED for ( current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 26eb8: e157000b cmp r7, fp <== NOT EXECUTED 26ebc: 0a00001b beq 26f30 <== NOT EXECUTED /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 26ec0: e155000a cmp r5, sl <== NOT EXECUTED 26ec4: ba000014 blt 26f1c <== NOT EXECUTED /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 26ec8: e58d500c str r5, [sp, #12] <== NOT EXECUTED tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 26ecc: e5973038 ldr r3, [r7, #56] <== NOT EXECUTED tmp_dirent.d_namlen = strlen( the_jnode->name ); 26ed0: e287400c add r4, r7, #12 ; 0xc <== NOT EXECUTED if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ 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; 26ed4: e58d3008 str r3, [sp, #8] <== NOT EXECUTED } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); 26ed8: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 26edc: e1cd31b0 strh r3, [sp, #16] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); 26ee0: e1a00004 mov r0, r4 <== NOT EXECUTED 26ee4: eb002014 bl 2ef3c <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 26ee8: e1a01004 mov r1, r4 <== NOT EXECUTED /* Move the entry to the return buffer */ 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 ); 26eec: e1cd01b2 strh r0, [sp, #18] <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 26ef0: e1a00009 mov r0, r9 <== NOT EXECUTED 26ef4: eb001e23 bl 2e788 <== NOT EXECUTED memcpy( 26ef8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 26efc: e28d1008 add r1, sp, #8 ; 0x8 <== NOT EXECUTED 26f00: e0830006 add r0, r3, r6 <== NOT EXECUTED 26f04: e3a02f43 mov r2, #268 ; 0x10c <== NOT EXECUTED 26f08: eb0012ed bl 2bac4 <== NOT EXECUTED buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 26f0c: e5983008 ldr r3, [r8, #8] <== NOT EXECUTED 26f10: e2833f43 add r3, r3, #268 ; 0x10c <== NOT EXECUTED 26f14: e5883008 str r3, [r8, #8] <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); 26f18: e2866f43 add r6, r6, #268 ; 0x10c <== NOT EXECUTED } the_node = the_node->next; 26f1c: e5977000 ldr r7, [r7] <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 26f20: e2855f43 add r5, r5, #268 ; 0x10c <== NOT EXECUTED 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 ( current_entry = 0; current_entry < last_entry; 26f24: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 26f28: e1550003 cmp r5, r3 <== NOT EXECUTED 26f2c: baffffe1 blt 26eb8 <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 26f30: e1a00006 mov r0, r6 <== NOT EXECUTED 26f34: e28ddf45 add sp, sp, #276 ; 0x114 <== NOT EXECUTED 26f38: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 00026d80 : */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 26d80: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 26d84: e5904000 ldr r4, [r0] <== NOT EXECUTED /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 26d88: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 26d8c: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 26d90: e1520003 cmp r2, r3 <== NOT EXECUTED */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 26d94: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 26d98: e1a06000 mov r6, r0 <== NOT EXECUTED /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 26d9c: 0a000002 beq 26dac <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTEMPTY ); 26da0: eb0009cf bl 294e4 <__errno> <== NOT EXECUTED 26da4: e3a0305a mov r3, #90 ; 0x5a <== NOT EXECUTED 26da8: ea000008 b 26dd0 <== NOT EXECUTED /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 26dac: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 26db0: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 26db4: e1530004 cmp r3, r4 <== NOT EXECUTED 26db8: 0a000002 beq 26dc8 <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 26dbc: e594505c ldr r5, [r4, #92] <== NOT EXECUTED 26dc0: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 26dc4: 0a000004 beq 26ddc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBUSY ); 26dc8: eb0009c5 bl 294e4 <__errno> <== NOT EXECUTED 26dcc: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 26dd0: e5803000 str r3, [r0] <== NOT EXECUTED 26dd4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 26dd8: ea00001d b 26e54 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 26ddc: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 26de0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 26de4: 0a000002 beq 26df4 <== NOT EXECUTED 26de8: e1a00004 mov r0, r4 <== NOT EXECUTED 26dec: ebffde8e bl 1e82c <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 26df0: e5845008 str r5, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 26df4: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED 26df8: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 26dfc: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 26e00: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 26e04: e1a0000d mov r0, sp <== NOT EXECUTED 26e08: ebff7407 bl 3e2c <== NOT EXECUTED 26e0c: e59d3000 ldr r3, [sp] <== NOT EXECUTED /* * 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) ) { 26e10: e1a00004 mov r0, r4 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; IMFS_update_ctime( the_jnode ); 26e14: e5843048 str r3, [r4, #72] <== NOT EXECUTED /* * 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) ) { 26e18: ebff7468 bl 3fc0 <== NOT EXECUTED 26e1c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 26e20: 1a00000a bne 26e50 <== NOT EXECUTED 26e24: e1d403b4 ldrh r0, [r4, #52] <== NOT EXECUTED 26e28: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 26e2c: 1a000007 bne 26e50 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 26e30: e59f3024 ldr r3, [pc, #36] ; 26e5c <== NOT EXECUTED 26e34: e5931000 ldr r1, [r3] <== NOT EXECUTED 26e38: e5962000 ldr r2, [r6] <== NOT EXECUTED 26e3c: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED 26e40: e1530002 cmp r3, r2 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; 26e44: 05810004 streq r0, [r1, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 26e48: e1a00004 mov r0, r4 <== NOT EXECUTED 26e4c: ebff73ce bl 3d8c <== NOT EXECUTED 26e50: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 26e54: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 26e58: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 26e5c: 0003b5c8 .word 0x0003b5c8 0001c1c8 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 1c1c8: e92d4010 push {r4, lr} <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 1c1cc: e59f2098 ldr r2, [pc, #152] ; 1c26c <== NOT EXECUTED 1c1d0: e5d23000 ldrb r3, [r2] <== NOT EXECUTED 1c1d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c1d8: 18bd8010 popne {r4, pc} <== NOT EXECUTED return; etc_passwd_initted = 1; 1c1dc: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED mkdir("/etc", 0777); 1c1e0: e59f1088 ldr r1, [pc, #136] ; 1c270 <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 1c1e4: e5c23000 strb r3, [r2] <== NOT EXECUTED mkdir("/etc", 0777); 1c1e8: e59f0084 ldr r0, [pc, #132] ; 1c274 <== NOT EXECUTED 1c1ec: ebffa0d3 bl 4540 <== NOT EXECUTED /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 1c1f0: e59f0080 ldr r0, [pc, #128] ; 1c278 <== NOT EXECUTED 1c1f4: e59f1080 ldr r1, [pc, #128] ; 1c27c <== NOT EXECUTED 1c1f8: eb0036fd bl 29df4 <== NOT EXECUTED 1c1fc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c200: 1a000008 bne 1c228 <== NOT EXECUTED fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 1c204: e59f006c ldr r0, [pc, #108] ; 1c278 <== NOT EXECUTED 1c208: e59f1070 ldr r1, [pc, #112] ; 1c280 <== NOT EXECUTED 1c20c: eb0036f8 bl 29df4 <== NOT EXECUTED 1c210: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1c214: 0a000004 beq 1c22c <== NOT EXECUTED fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 1c218: e59f0064 ldr r0, [pc, #100] ; 1c284 <== NOT EXECUTED 1c21c: e1a01004 mov r1, r4 <== NOT EXECUTED 1c220: eb003745 bl 29f3c <== NOT EXECUTED "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 1c224: e1a00004 mov r0, r4 <== NOT EXECUTED 1c228: eb0034fe bl 29628 <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 1c22c: e59f0054 ldr r0, [pc, #84] ; 1c288 <== NOT EXECUTED 1c230: e59f1044 ldr r1, [pc, #68] ; 1c27c <== NOT EXECUTED 1c234: eb0036ee bl 29df4 <== NOT EXECUTED 1c238: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c23c: 1a000008 bne 1c264 <== NOT EXECUTED fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 1c240: e59f0040 ldr r0, [pc, #64] ; 1c288 <== NOT EXECUTED 1c244: e59f1034 ldr r1, [pc, #52] ; 1c280 <== NOT EXECUTED 1c248: eb0036e9 bl 29df4 <== NOT EXECUTED 1c24c: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1c250: 08bd8010 popeq {r4, pc} <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" 1c254: e59f0030 ldr r0, [pc, #48] ; 1c28c <== NOT EXECUTED 1c258: e1a01004 mov r1, r4 <== NOT EXECUTED 1c25c: eb003736 bl 29f3c <== NOT EXECUTED "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 1c260: e1a00004 mov r0, r4 <== NOT EXECUTED } } 1c264: e8bd4010 pop {r4, lr} <== NOT EXECUTED } else if ((fp = fopen("/etc/group", "w")) != NULL) { fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 1c268: ea0034ee b 29628 <== NOT EXECUTED 1c26c: 00054800 .word 0x00054800 1c270: 000001ff .word 0x000001ff 1c274: 00040034 .word 0x00040034 1c278: 00040039 .word 0x00040039 1c27c: 0003e845 .word 0x0003e845 1c280: 0003e4f1 .word 0x0003e4f1 1c284: 00040045 .word 0x00040045 1c288: 000400ac .word 0x000400ac 1c28c: 000400b7 .word 0x000400b7 000122c4 : int ioctl( int fd, ioctl_command_t command, ... ) { 122c4: e92d000e push {r1, r2, r3} <== NOT EXECUTED va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 122c8: e59f3080 ldr r3, [pc, #128] ; 12350 <== NOT EXECUTED 122cc: e5933000 ldr r3, [r3] <== NOT EXECUTED 122d0: e1500003 cmp r0, r3 <== NOT EXECUTED int ioctl( int fd, ioctl_command_t command, ... ) { 122d4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 122d8: e1a01000 mov r1, r0 <== NOT EXECUTED va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 122dc: 2a00000a bcs 1230c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 122e0: e59f306c ldr r3, [pc, #108] ; 12354 <== NOT EXECUTED 122e4: e5932000 ldr r2, [r3] <== NOT EXECUTED 122e8: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 122ec: e0202193 mla r0, r3, r1, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 122f0: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 122f4: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 122f8: 0a000003 beq 1230c <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 122fc: e5903030 ldr r3, [r0, #48] <== NOT EXECUTED 12300: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 12304: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 12308: 1a000002 bne 12318 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 1230c: eb0001f9 bl 12af8 <__errno> <== NOT EXECUTED 12310: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 12314: ea000004 b 1232c <== NOT EXECUTED if ( !iop->handlers->ioctl_h ) 12318: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 1231c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12320: 1a000004 bne 12338 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12324: eb0001f3 bl 12af8 <__errno> <== NOT EXECUTED 12328: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1232c: e5803000 str r3, [r0] <== NOT EXECUTED 12330: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 12334: ea000002 b 12344 <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 12338: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 1233c: e1a0e00f mov lr, pc <== NOT EXECUTED 12340: e12fff13 bx r3 <== NOT EXECUTED return rc; } 12344: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 12348: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 1234c: e12fff1e bx lr <== NOT EXECUTED 12350: 0001da54 .word 0x0001da54 12354: 00022e98 .word 0x00022e98 0000295c : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) 295c: e5912030 ldr r2, [r1, #48] <== NOT EXECUTED 2960: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2964: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2968: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; 296c: 1200407f andne r4, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 2970: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2974: e1a05001 mov r5, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) 2978: 0a000006 beq 2998 <== NOT EXECUTED c = tolower (c); 297c: e59f3164 ldr r3, [pc, #356] ; 2ae8 <== NOT EXECUTED 2980: e5933000 ldr r3, [r3] <== NOT EXECUTED 2984: e7d33004 ldrb r3, [r3, r4] <== NOT EXECUTED 2988: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 298c: e1a00004 mov r0, r4 <== NOT EXECUTED 2990: 12840020 addne r0, r4, #32 ; 0x20 <== NOT EXECUTED 2994: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { 2998: e354000d cmp r4, #13 ; 0xd <== NOT EXECUTED 299c: 1a000005 bne 29b8 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 29a0: e3120080 tst r2, #128 ; 0x80 <== NOT EXECUTED 29a4: 1a00004d bne 2ae0 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 29a8: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 29ac: 03a0400d moveq r4, #13 ; 0xd <== NOT EXECUTED 29b0: 13a0400a movne r4, #10 ; 0xa <== NOT EXECUTED 29b4: ea000007 b 29d8 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 29b8: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 29bc: 1a000003 bne 29d0 <== 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; 29c0: e3120040 tst r2, #64 ; 0x40 <== NOT EXECUTED 29c4: 03a0400a moveq r4, #10 ; 0xa <== NOT EXECUTED 29c8: 13a0400d movne r4, #13 ; 0xd <== NOT EXECUTED 29cc: ea000001 b 29d8 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 29d0: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 29d4: 0a00002f beq 2a98 <== NOT EXECUTED 29d8: e595203c ldr r2, [r5, #60] <== NOT EXECUTED 29dc: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 29e0: 0a00002c beq 2a98 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 29e4: e5d53043 ldrb r3, [r5, #67] <== NOT EXECUTED 29e8: e1530004 cmp r3, r4 <== NOT EXECUTED erase (tty, 0); 29ec: 01a00005 moveq r0, r5 <== NOT EXECUTED 29f0: 03a01000 moveq r1, #0 ; 0x0 <== 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]) { 29f4: 0a000004 beq 2a0c <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 29f8: e5d53044 ldrb r3, [r5, #68] <== NOT EXECUTED 29fc: e1530004 cmp r3, r4 <== NOT EXECUTED 2a00: 1a000003 bne 2a14 <== NOT EXECUTED erase (tty, 1); 2a04: e1a00005 mov r0, r5 <== NOT EXECUTED 2a08: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 2a0c: ebffff61 bl 2798 <== NOT EXECUTED 2a10: ea000030 b 2ad8 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2a14: e5d53045 ldrb r3, [r5, #69] <== NOT EXECUTED 2a18: e1530004 cmp r3, r4 <== NOT EXECUTED 2a1c: 0a00001b beq 2a90 <== NOT EXECUTED return 1; } else if (c == '\n') { 2a20: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 2a24: 1a00000a bne 2a54 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 2a28: e3120048 tst r2, #72 ; 0x48 <== NOT EXECUTED echo (c, tty); 2a2c: 11a00004 movne r0, r4 <== NOT EXECUTED 2a30: 11a01005 movne r1, r5 <== NOT EXECUTED 2a34: 1bffff36 blne 2714 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2a38: e285101c add r1, r5, #28 ; 0x1c <== NOT EXECUTED 2a3c: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED 2a40: e2820001 add r0, r2, #1 ; 0x1 <== NOT EXECUTED 2a44: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED 2a48: e7c13002 strb r3, [r1, r2] <== NOT EXECUTED 2a4c: e5850020 str r0, [r5, #32] <== NOT EXECUTED 2a50: ea00000e b 2a90 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 2a54: e5d5304c ldrb r3, [r5, #76] <== NOT EXECUTED 2a58: e1530004 cmp r3, r4 <== NOT EXECUTED 2a5c: 0a000002 beq 2a6c <== NOT EXECUTED 2a60: e5d53051 ldrb r3, [r5, #81] <== NOT EXECUTED 2a64: e1530004 cmp r3, r4 <== NOT EXECUTED 2a68: 1a00000a bne 2a98 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) 2a6c: e3120008 tst r2, #8 ; 0x8 <== NOT EXECUTED echo (c, tty); 2a70: 11a00004 movne r0, r4 <== NOT EXECUTED 2a74: 11a01005 movne r1, r5 <== NOT EXECUTED 2a78: 1bffff25 blne 2714 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2a7c: e285201c add r2, r5, #28 ; 0x1c <== NOT EXECUTED 2a80: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 2a84: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 2a88: e7c24003 strb r4, [r2, r3] <== NOT EXECUTED 2a8c: e5851020 str r1, [r5, #32] <== NOT EXECUTED 2a90: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 2a94: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2a98: e59f304c ldr r3, [pc, #76] ; 2aec <== NOT EXECUTED 2a9c: e5933000 ldr r3, [r3] <== NOT EXECUTED 2aa0: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED 2aa4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 2aa8: e1520003 cmp r2, r3 <== NOT EXECUTED 2aac: aa00000b bge 2ae0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2ab0: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 2ab4: e3130008 tst r3, #8 ; 0x8 <== NOT EXECUTED echo (c, tty); 2ab8: 11a00004 movne r0, r4 <== NOT EXECUTED 2abc: 11a01005 movne r1, r5 <== NOT EXECUTED 2ac0: 1bffff13 blne 2714 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2ac4: e285201c add r2, r5, #28 ; 0x1c <== NOT EXECUTED 2ac8: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 2acc: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 2ad0: e7c24003 strb r4, [r2, r3] <== NOT EXECUTED 2ad4: e5851020 str r1, [r5, #32] <== NOT EXECUTED 2ad8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2adc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 2ae0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 2ae4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 2ae8: 00013e14 .word 0x00013e14 2aec: 00013db0 .word 0x00013db0 0001d7e8 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 1d7e8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1d7ec: e12fff1e bx lr <== NOT EXECUTED 0001c74c : int link( const char *existing, const char *new ) { 1c74c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 1c750: e24dd024 sub sp, sp, #36 ; 0x24 <== NOT EXECUTED 1c754: e1a04001 mov r4, r1 <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 1c758: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 1c75c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1c760: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 1c764: ebff9d37 bl 3c48 <== NOT EXECUTED if ( result != 0 ) 1c768: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c76c: 1a000024 bne 1c804 <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 1c770: e5d43000 ldrb r3, [r4] <== NOT EXECUTED 1c774: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 1c778: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 1c77c: 13a0e000 movne lr, #0 ; 0x0 <== NOT EXECUTED 1c780: 03a0e001 moveq lr, #1 ; 0x1 <== NOT EXECUTED 1c784: 0a000001 beq 1c790 <== NOT EXECUTED 1c788: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c78c: 1a000006 bne 1c7ac <== NOT EXECUTED 1c790: e59f31d4 ldr r3, [pc, #468] ; 1c96c <== NOT EXECUTED 1c794: e5933000 ldr r3, [r3] <== NOT EXECUTED 1c798: e2833014 add r3, r3, #20 ; 0x14 <== NOT EXECUTED 1c79c: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 1c7a0: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1c7a4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 1c7a8: ea000005 b 1c7c4 <== NOT EXECUTED 1c7ac: e59f31b8 ldr r3, [pc, #440] ; 1c96c <== NOT EXECUTED 1c7b0: e5933000 ldr r3, [r3] <== NOT EXECUTED 1c7b4: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 1c7b8: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 1c7bc: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1c7c0: e1a0200e mov r2, lr <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 1c7c4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1c7c8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 1c7cc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c7d0: 1a00000d bne 1c80c <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1c7d4: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1c7d8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c7dc: 0a000005 beq 1c7f8 <== NOT EXECUTED 1c7e0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c7e4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c7e8: 0a000002 beq 1c7f8 <== NOT EXECUTED 1c7ec: e28d0010 add r0, sp, #16 ; 0x10 <== NOT EXECUTED 1c7f0: e1a0e00f mov lr, pc <== NOT EXECUTED 1c7f4: e12fff13 bx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1c7f8: eb003339 bl 294e4 <__errno> <== NOT EXECUTED 1c7fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1c800: e5803000 str r3, [r0] <== NOT EXECUTED 1c804: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1c808: ea000054 b 1c960 <== NOT EXECUTED } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 1c80c: e0840002 add r0, r4, r2 <== NOT EXECUTED 1c810: e1a0100d mov r1, sp <== NOT EXECUTED 1c814: e28d2020 add r2, sp, #32 ; 0x20 <== NOT EXECUTED 1c818: e1a0e00f mov lr, pc <== NOT EXECUTED 1c81c: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 1c820: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 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 ); 1c824: e1a0600d mov r6, sp <== NOT EXECUTED if ( result != 0 ) { 1c828: 0a00000a beq 1c858 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1c82c: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1c830: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c834: 0a000004 beq 1c84c <== NOT EXECUTED 1c838: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c83c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c840: 128d0010 addne r0, sp, #16 ; 0x10 <== NOT EXECUTED 1c844: 11a0e00f movne lr, pc <== NOT EXECUTED 1c848: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 1c84c: eb003324 bl 294e4 <__errno> <== NOT EXECUTED 1c850: e5804000 str r4, [r0] <== NOT EXECUTED 1c854: eaffffea b 1c804 <== NOT EXECUTED /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 1c858: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 1c85c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1c860: e1530002 cmp r3, r2 <== NOT EXECUTED 1c864: 0a000012 beq 1c8b4 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1c868: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1c86c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c870: 0a000004 beq 1c888 <== NOT EXECUTED 1c874: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c878: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c87c: 128d0010 addne r0, sp, #16 ; 0x10 <== NOT EXECUTED 1c880: 11a0e00f movne lr, pc <== NOT EXECUTED 1c884: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 1c888: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1c88c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c890: 0a000004 beq 1c8a8 <== NOT EXECUTED 1c894: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c898: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c89c: 11a0000d movne r0, sp <== NOT EXECUTED 1c8a0: 11a0e00f movne lr, pc <== NOT EXECUTED 1c8a4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 1c8a8: eb00330d bl 294e4 <__errno> <== NOT EXECUTED 1c8ac: e3a03012 mov r3, #18 ; 0x12 <== NOT EXECUTED 1c8b0: eaffffd2 b 1c800 <== NOT EXECUTED } if ( !parent_loc.ops->link_h ) { 1c8b4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1c8b8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 1c8bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c8c0: 1a00000f bne 1c904 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1c8c4: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1c8c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c8cc: 0a000004 beq 1c8e4 <== NOT EXECUTED 1c8d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c8d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c8d8: 128d0010 addne r0, sp, #16 ; 0x10 <== NOT EXECUTED 1c8dc: 11a0e00f movne lr, pc <== NOT EXECUTED 1c8e0: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 1c8e4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1c8e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c8ec: 0affffc1 beq 1c7f8 <== NOT EXECUTED 1c8f0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c8f4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c8f8: 11a0000d movne r0, sp <== NOT EXECUTED 1c8fc: 1affffbb bne 1c7f0 <== NOT EXECUTED 1c900: eaffffbc b 1c7f8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 1c904: e28d5010 add r5, sp, #16 ; 0x10 <== NOT EXECUTED 1c908: e1a0100d mov r1, sp <== NOT EXECUTED 1c90c: e1a00005 mov r0, r5 <== NOT EXECUTED 1c910: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED 1c914: e1a0e00f mov lr, pc <== NOT EXECUTED 1c918: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1c91c: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1c920: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 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 ); 1c924: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1c928: 0a000004 beq 1c940 <== NOT EXECUTED 1c92c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c930: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c934: 11a00005 movne r0, r5 <== NOT EXECUTED 1c938: 11a0e00f movne lr, pc <== NOT EXECUTED 1c93c: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 1c940: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1c944: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c948: 0a000004 beq 1c960 <== NOT EXECUTED 1c94c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1c950: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1c954: 11a0000d movne r0, sp <== NOT EXECUTED 1c958: 11a0e00f movne lr, pc <== NOT EXECUTED 1c95c: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1c960: e1a00004 mov r0, r4 <== NOT EXECUTED 1c964: e28dd024 add sp, sp, #36 ; 0x24 <== NOT EXECUTED 1c968: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 1c96c: 0003b5c8 .word 0x0003b5c8 00012ce0 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 12ce0: e59f30c4 ldr r3, [pc, #196] ; 12dac <== NOT EXECUTED 12ce4: e5933000 ldr r3, [r3] <== NOT EXECUTED 12ce8: e1500003 cmp r0, r3 <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 12cec: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 12cf0: e1a0c002 mov ip, r2 <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 12cf4: 2a000006 bcs 12d14 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12cf8: e59f30b0 ldr r3, [pc, #176] ; 12db0 <== NOT EXECUTED 12cfc: e5932000 ldr r2, [r3] <== NOT EXECUTED 12d00: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 12d04: e0242093 mla r4, r3, r0, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 12d08: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 12d0c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 12d10: 1a000002 bne 12d20 <== NOT EXECUTED 12d14: ebffdea3 bl a7a8 <__errno> <== NOT EXECUTED 12d18: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 12d1c: ea000017 b 12d80 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 12d20: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 12d24: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 12d28: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12d2c: 1a000002 bne 12d3c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12d30: ebffde9c bl a7a8 <__errno> <== NOT EXECUTED 12d34: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 12d38: ea000010 b 12d80 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 12d3c: e35c0001 cmp ip, #1 ; 0x1 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; 12d40: e5945008 ldr r5, [r4, #8] <== NOT EXECUTED switch ( whence ) { 12d44: 0a000005 beq 12d60 <== NOT EXECUTED 12d48: e35c0002 cmp ip, #2 ; 0x2 <== NOT EXECUTED 12d4c: 0a000005 beq 12d68 <== NOT EXECUTED 12d50: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED case SEEK_SET: iop->offset = offset; 12d54: 05841008 streq r1, [r4, #8] <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 12d58: 0a00000b beq 12d8c <== NOT EXECUTED 12d5c: ea000005 b 12d78 <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 12d60: e0813005 add r3, r1, r5 <== NOT EXECUTED 12d64: ea000001 b 12d70 <== NOT EXECUTED break; case SEEK_END: iop->offset = iop->size + offset; 12d68: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 12d6c: e0813003 add r3, r1, r3 <== NOT EXECUTED 12d70: e5843008 str r3, [r4, #8] <== NOT EXECUTED 12d74: ea000004 b 12d8c <== NOT EXECUTED break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 12d78: ebffde8a bl a7a8 <__errno> <== NOT EXECUTED 12d7c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 12d80: e5803000 str r3, [r0] <== NOT EXECUTED 12d84: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 12d88: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 12d8c: e1a0200c mov r2, ip <== NOT EXECUTED 12d90: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 12d94: e1a00004 mov r0, r4 <== NOT EXECUTED 12d98: e1a0e00f mov lr, pc <== NOT EXECUTED 12d9c: e593f014 ldr pc, [r3, #20] <== NOT EXECUTED if ( status == (off_t) -1 ) 12da0: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED iop->offset = old_offset; 12da4: 05845008 streq r5, [r4, #8] <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 12da8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 12dac: 000137f4 .word 0x000137f4 12db0: 00015218 .word 0x00015218 0001ca60 : int _STAT_NAME( const char *path, struct stat *buf ) { 1ca60: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 1ca64: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 1ca68: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 1ca6c: 1a000002 bne 1ca7c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 1ca70: eb00329b bl 294e4 <__errno> <== NOT EXECUTED 1ca74: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 1ca78: ea000014 b 1cad0 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 1ca7c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1ca80: e1a0200d mov r2, sp <== NOT EXECUTED 1ca84: e1a03001 mov r3, r1 <== NOT EXECUTED 1ca88: ebff9c6e bl 3c48 <== NOT EXECUTED if ( status != 0 ) 1ca8c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 1ca90: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 1ca94: 1a00000e bne 1cad4 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 1ca98: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 1ca9c: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 1caa0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1caa4: 1a00000c bne 1cadc <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1caa8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1caac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cab0: 0a000004 beq 1cac8 <== NOT EXECUTED 1cab4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1cab8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cabc: 11a0000d movne r0, sp <== NOT EXECUTED 1cac0: 11a0e00f movne lr, pc <== NOT EXECUTED 1cac4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1cac8: eb003285 bl 294e4 <__errno> <== NOT EXECUTED 1cacc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1cad0: e5803000 str r3, [r0] <== NOT EXECUTED 1cad4: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1cad8: ea000011 b 1cb24 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 1cadc: e1a01000 mov r1, r0 <== NOT EXECUTED 1cae0: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 1cae4: e1a00004 mov r0, r4 <== NOT EXECUTED 1cae8: eb003c85 bl 2bd04 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 1caec: e1a01004 mov r1, r4 <== NOT EXECUTED 1caf0: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 1caf4: e1a0000d mov r0, sp <== NOT EXECUTED 1caf8: e1a0e00f mov lr, pc <== NOT EXECUTED 1cafc: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1cb00: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1cb04: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 1cb08: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1cb0c: 0a000004 beq 1cb24 <== NOT EXECUTED 1cb10: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1cb14: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cb18: 11a0000d movne r0, sp <== NOT EXECUTED 1cb1c: 11a0e00f movne lr, pc <== NOT EXECUTED 1cb20: 112fff13 bxne r3 <== NOT EXECUTED return status; } 1cb24: e1a00004 mov r0, r4 <== NOT EXECUTED 1cb28: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1cb2c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00008b70 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 8b70: e59f20cc ldr r2, [pc, #204] ; 8c44 8b74: e5923004 ldr r3, [r2, #4] 8b78: e2833001 add r3, r3, #1 ; 0x1 8b7c: e92d4030 push {r4, r5, lr} 8b80: e5823004 str r3, [r2, #4] 8b84: e1a05000 mov r5, r0 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 8b88: ebffffef bl 8b4c /* * Validate the parameters */ if ( !size ) 8b8c: e3550000 cmp r5, #0 ; 0x0 8b90: 0a000028 beq 8c38 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 8b94: e59f30ac ldr r3, [pc, #172] ; 8c48 8b98: e5933000 ldr r3, [r3] 8b9c: e3530003 cmp r3, #3 ; 0x3 8ba0: 1a000002 bne 8bb0 8ba4: ebffffd1 bl 8af0 8ba8: e3500000 cmp r0, #0 ; 0x0 8bac: 0a000021 beq 8c38 * Try to give a segment in the current heap if there is not * enough space then try to grow the heap. * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); 8bb0: e59f0094 ldr r0, [pc, #148] ; 8c4c 8bb4: e1a01005 mov r1, r5 8bb8: eb000365 bl 9954 <_Protected_heap_Allocate> if ( !return_this ) { 8bbc: e2504000 subs r4, r0, #0 ; 0x0 8bc0: 1a00000d bne 8bfc if (rtems_malloc_sbrk_helpers) 8bc4: e59f3084 ldr r3, [pc, #132] ; 8c50 8bc8: e5933000 ldr r3, [r3] 8bcc: e3530000 cmp r3, #0 ; 0x0 8bd0: 0a000005 beq 8bec return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 8bd4: e1a00005 mov r0, r5 <== NOT EXECUTED 8bd8: e1a0e00f mov lr, pc <== NOT EXECUTED 8bdc: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 8be0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = ENOMEM; return (void *) 0; 8be4: 11a04000 movne r4, r0 <== NOT EXECUTED return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { 8be8: 1a000003 bne 8bfc <== NOT EXECUTED errno = ENOMEM; 8bec: eb0006ed bl a7a8 <__errno> 8bf0: e3a0300c mov r3, #12 ; 0xc 8bf4: e5803000 str r3, [r0] 8bf8: ea00000f b 8c3c } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 8bfc: e59f3050 ldr r3, [pc, #80] ; 8c54 8c00: e5933000 ldr r3, [r3] 8c04: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_dirty_helper)( return_this, size ); 8c08: 11a01005 movne r1, r5 8c0c: 11a00004 movne r0, r4 8c10: 11a0e00f movne lr, pc 8c14: 112fff13 bxne r3 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 8c18: e59f3038 ldr r3, [pc, #56] ; 8c58 8c1c: e5933000 ldr r3, [r3] 8c20: e3530000 cmp r3, #0 ; 0x0 8c24: 0a000004 beq 8c3c (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 8c28: e1a00004 mov r0, r4 <== NOT EXECUTED 8c2c: e1a0e00f mov lr, pc <== NOT EXECUTED 8c30: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED 8c34: ea000000 b 8c3c <== NOT EXECUTED 8c38: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 8c3c: e1a00004 mov r0, r4 8c40: e8bd8030 pop {r4, r5, pc} 8c44: 0001527c .word 0x0001527c 8c48: 00015534 .word 0x00015534 8c4c: 00015224 .word 0x00015224 8c50: 00015088 .word 0x00015088 8c54: 0001508c .word 0x0001508c 8c58: 00015084 .word 0x00015084 00008b3c : } void malloc_deferred_free( void *pointer ) { 8b3c: e1a01000 mov r1, r0 <== 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 ); 8b40: e59f0000 ldr r0, [pc, #0] ; 8b48 <== NOT EXECUTED 8b44: eafff074 b 4d1c <_Chain_Append> <== NOT EXECUTED 8b48: 000155cc .word 0x000155cc 00008b4c : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 8b4c: e52de004 push {lr} ; (str lr, [sp, #-4]!) 8b50: ea000000 b 8b58 /* * If some free's have been deferred, then do them now. */ while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL) free(to_be_freed); 8b54: ebfffec2 bl 8664 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 8b58: e59f000c ldr r0, [pc, #12] ; 8b6c 8b5c: eb000241 bl 9468 <_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) 8b60: e3500000 cmp r0, #0 ; 0x0 8b64: 1afffffa bne 8b54 free(to_be_freed); } 8b68: e49df004 pop {pc} ; (ldr pc, [sp], #4) 8b6c: 000155cc .word 0x000155cc 000212c8 : void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 212c8: e59f3024 ldr r3, [pc, #36] ; 212f4 <== NOT EXECUTED */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 212cc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 212d0: e5931000 ldr r1, [r3] <== NOT EXECUTED 212d4: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 212d8: ebff89be bl 39d8 <== NOT EXECUTED if ( memory ) 212dc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED memfile_blocks_allocated++; 212e0: 159f2010 ldrne r2, [pc, #16] ; 212f8 <== NOT EXECUTED 212e4: 15923000 ldrne r3, [r2] <== NOT EXECUTED 212e8: 12833001 addne r3, r3, #1 ; 0x1 <== NOT EXECUTED 212ec: 15823000 strne r3, [r2] <== NOT EXECUTED return memory; } 212f0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 212f4: 0004209c .word 0x0004209c 212f8: 000549c8 .word 0x000549c8 00021730 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 21730: e92d4010 push {r4, lr} <== NOT EXECUTED 21734: e1a04000 mov r4, r0 <== NOT EXECUTED /* * 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) ) { 21738: ebff8a20 bl 3fc0 <== NOT EXECUTED 2173c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21740: 1a00000d bne 2177c <== NOT EXECUTED 21744: e1d413b4 ldrh r1, [r4, #52] <== NOT EXECUTED 21748: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 2174c: 1a00000a bne 2177c <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 21750: e59f302c ldr r3, [pc, #44] ; 21784 <== NOT EXECUTED 21754: e5932000 ldr r2, [r3] <== NOT EXECUTED 21758: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 2175c: e1530004 cmp r3, r4 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 21760: e594304c ldr r3, [r4, #76] <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) rtems_filesystem_current.node_access = NULL; 21764: 05821004 streq r1, [r2, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 21768: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED IMFS_memfile_remove( the_jnode ); 2176c: 11a00004 movne r0, r4 <== NOT EXECUTED 21770: 1bffff99 blne 215dc <== NOT EXECUTED free( the_jnode ); 21774: e1a00004 mov r0, r4 <== NOT EXECUTED 21778: ebff8983 bl 3d8c <== NOT EXECUTED } return 0; } 2177c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 21780: e8bd8010 pop {r4, pc} <== NOT EXECUTED 21784: 0003b5c8 .word 0x0003b5c8 000217e0 : */ int memfile_close( rtems_libio_t *iop ) { 217e0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (iop->flags & LIBIO_FLAGS_APPEND) 217e4: e590300c ldr r3, [r0, #12] <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 217e8: e590202c ldr r2, [r0, #44] <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) 217ec: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 217f0: 15923050 ldrne r3, [r2, #80] <== NOT EXECUTED 217f4: 15803008 strne r3, [r0, #8] <== NOT EXECUTED memfile_check_rmnod( the_jnode ); 217f8: e1a00002 mov r0, r2 <== NOT EXECUTED 217fc: ebffffcb bl 21730 <== NOT EXECUTED return 0; } 21800: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 21804: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 000212a8 : */ void memfile_free_block( void *memory ) { 212a8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); 212ac: ebff8ab6 bl 3d8c <== NOT EXECUTED memfile_blocks_allocated--; 212b0: e59f200c ldr r2, [pc, #12] ; 212c4 <== NOT EXECUTED 212b4: e5923000 ldr r3, [r2] <== NOT EXECUTED 212b8: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 212bc: e5823000 str r3, [r2] <== NOT EXECUTED } 212c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 212c4: 000549c8 .word 0x000549c8 00021560 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 21560: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 21564: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 21568: e1a08001 mov r8, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 2156c: 059f0058 ldreq r0, [pc, #88] ; 215cc <== NOT EXECUTED 21570: 059f1058 ldreq r1, [pc, #88] ; 215d0 <== NOT EXECUTED 21574: 059f2058 ldreq r2, [pc, #88] ; 215d4 <== NOT EXECUTED 21578: 059f3058 ldreq r3, [pc, #88] ; 215d8 <== NOT EXECUTED 2157c: 0bffe640 bleq 1ae84 <__assert_func> <== NOT EXECUTED /* * Now go through all the slots in the table and free the memory. */ b = *block_table; 21580: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 21584: e5967000 ldr r7, [r6] <== NOT EXECUTED 21588: e1a05004 mov r5, r4 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED memfile_free_block( b[i] ); 215a0: ebffff40 bl 212a8 <== NOT EXECUTED b[i] = 0; 215a4: e787a005 str sl, [r7, r5] <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 215b8: e5960000 ldr r0, [r6] <== NOT EXECUTED 215bc: ebffff39 bl 212a8 <== NOT EXECUTED *block_table = 0; 215c0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 215c4: e5863000 str r3, [r6] <== NOT EXECUTED } 215c8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 215cc: 000402ee .word 0x000402ee 215d0: 000001b1 .word 0x000001b1 215d4: 0003d080 .word 0x0003d080 215d8: 00040365 .word 0x00040365 000219b8 : int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 219b8: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 219bc: e590402c ldr r4, [r0, #44] <== 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 ) 219c0: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 219c4: e1510003 cmp r1, r3 <== NOT EXECUTED int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 219c8: e24dd008 sub sp, sp, #8 ; 0x8 <== 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 ) 219cc: da000002 ble 219dc <== NOT EXECUTED return IMFS_memfile_extend( the_jnode, length ); 219d0: e1a00004 mov r0, r4 <== NOT EXECUTED 219d4: ebffffad bl 21890 <== NOT EXECUTED 219d8: ea000007 b 219fc <== NOT EXECUTED * 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; 219dc: e5841050 str r1, [r4, #80] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 219e0: e5801004 str r1, [r0, #4] <== NOT EXECUTED IMFS_update_atime( the_jnode ); 219e4: e1a0000d mov r0, sp <== NOT EXECUTED 219e8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 219ec: ebff890e bl 3e2c <== NOT EXECUTED 219f0: e59d3000 ldr r3, [sp] <== NOT EXECUTED 219f4: e5843040 str r3, [r4, #64] <== NOT EXECUTED 219f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 219fc: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 21a00: e8bd8010 pop {r4, pc} <== NOT EXECUTED 000212a0 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } 212a0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 212a4: e12fff1e bx lr <== NOT EXECUTED 00021a04 : off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 21a04: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 21a08: e590402c ldr r4, [r0, #44] <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { 21a0c: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 21a10: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 21a14: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 21a18: 1a000004 bne 21a30 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) 21a1c: e5940050 ldr r0, [r4, #80] <== NOT EXECUTED 21a20: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED 21a24: e1530000 cmp r3, r0 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 21a28: c5850008 strgt r0, [r5, #8] <== NOT EXECUTED 21a2c: ea00000b b 21a60 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 21a30: e1a00004 mov r0, r4 <== NOT EXECUTED 21a34: e5951008 ldr r1, [r5, #8] <== NOT EXECUTED 21a38: ebffff94 bl 21890 <== NOT EXECUTED 21a3c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 21a40: 05943050 ldreq r3, [r4, #80] <== NOT EXECUTED 21a44: 05853004 streq r3, [r5, #4] <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { 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 )) 21a48: 0a000004 beq 21a60 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 21a4c: eb001ea4 bl 294e4 <__errno> <== NOT EXECUTED 21a50: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 21a54: e5803000 str r3, [r0] <== NOT EXECUTED 21a58: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 21a5c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED iop->size = the_jnode->info.file.size; } return iop->offset; 21a60: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED } 21a64: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00021cb8 : the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 21cb8: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 21cbc: e3130f81 tst r3, #516 ; 0x204 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 21cc0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 21cc4: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 21cc8: e590402c ldr r4, [r0, #44] <== NOT EXECUTED /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 21ccc: 0a000012 beq 21d1c <== NOT EXECUTED 21cd0: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 21cd4: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED 21cd8: 1a00000f bne 21d1c <== NOT EXECUTED && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; 21cdc: e5940050 ldr r0, [r4, #80] <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 21ce0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; 21ce4: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 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) 21ce8: e3500000 cmp r0, #0 ; 0x0 <== 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; const unsigned char *buffer = the_jnode->info.linearfile.direct; 21cec: e5942054 ldr r2, [r4, #84] <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 21cf0: e584304c str r3, [r4, #76] <== NOT EXECUTED the_jnode->info.file.size = 0; 21cf4: e5841050 str r1, [r4, #80] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 21cf8: e5841058 str r1, [r4, #88] <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 21cfc: e584105c str r1, [r4, #92] <== NOT EXECUTED uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 21d00: e5841054 str r1, [r4, #84] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 21d04: 0a000004 beq 21d1c <== NOT EXECUTED 21d08: e1a03000 mov r3, r0 <== NOT EXECUTED 21d0c: e1a00004 mov r0, r4 <== NOT EXECUTED 21d10: ebffff54 bl 21a68 <== NOT EXECUTED 21d14: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 21d18: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 21d1c: e595300c ldr r3, [r5, #12] <== NOT EXECUTED 21d20: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 21d24: 15943050 ldrne r3, [r4, #80] <== NOT EXECUTED 21d28: 15853008 strne r3, [r5, #8] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 21d2c: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 21d30: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 21d34: e5853004 str r3, [r5, #4] <== NOT EXECUTED return 0; } 21d38: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00021f8c : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 21f8c: e1a0c001 mov ip, r1 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); 21f90: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED 21f94: e590002c ldr r0, [r0, #44] <== NOT EXECUTED ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 21f98: e1a03002 mov r3, r2 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); 21f9c: e1a0200c mov r2, ip <== NOT EXECUTED 21fa0: eaffff65 b 21d3c <== NOT EXECUTED 00021788 : */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 21788: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2178c: e5904000 ldr r4, [r0] <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 21790: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 21794: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 21798: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 2179c: 0a000003 beq 217b0 <== NOT EXECUTED 217a0: e1a00004 mov r0, r4 <== NOT EXECUTED 217a4: ebfff420 bl 1e82c <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 217a8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 217ac: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 217b0: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED 217b4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 217b8: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 217bc: e1a0000d mov r0, sp <== NOT EXECUTED 217c0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 217c4: ebff8998 bl 3e2c <== NOT EXECUTED 217c8: e59d3000 ldr r3, [sp] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 217cc: e1a00004 mov r0, r4 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; IMFS_update_ctime( the_jnode ); 217d0: e5843048 str r3, [r4, #72] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 217d4: ebffffd5 bl 21730 <== NOT EXECUTED } 217d8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 217dc: e8bd8010 pop {r4, pc} <== NOT EXECUTED 00021c8c : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 21c8c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 21c90: e590502c ldr r5, [r0, #44] <== NOT EXECUTED ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 21c94: e1a04000 mov r4, r0 <== NOT EXECUTED 21c98: e1a03002 mov r3, r2 <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); 21c9c: e1a00005 mov r0, r5 <== NOT EXECUTED 21ca0: e1a02001 mov r2, r1 <== NOT EXECUTED 21ca4: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED 21ca8: ebffff6e bl 21a68 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 21cac: e5953050 ldr r3, [r5, #80] <== NOT EXECUTED 21cb0: e5843004 str r3, [r4, #4] <== NOT EXECUTED return status; } 21cb4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0001cc34 : int mkfifo( const char *path, mode_t mode ) { return mknod( path, mode | S_IFIFO, 0LL ); 1cc34: e3811a01 orr r1, r1, #4096 ; 0x1000 <== NOT EXECUTED 1cc38: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 1cc3c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1cc40: eaff9e42 b 4550 <== NOT EXECUTED 000015a4 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 15a4: e92d41f0 push {r4, r5, r6, r7, r8, lr} 15a8: e1a04001 mov r4, r1 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) ) ) 15ac: e2111a0f ands r1, r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 15b0: e24dd018 sub sp, sp, #24 ; 0x18 15b4: e1a06000 mov r6, r0 15b8: e1a07002 mov r7, r2 15bc: e1a08003 mov r8, r3 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) ) ) 15c0: 1a000002 bne 15d0 rtems_set_errno_and_return_minus_one( EINVAL ); 15c4: eb002477 bl a7a8 <__errno> <== NOT EXECUTED 15c8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 15cc: ea000003 b 15e0 <== NOT EXECUTED if ( S_ISFIFO(mode) ) 15d0: e3510a01 cmp r1, #4096 ; 0x1000 15d4: 1a000004 bne 15ec rtems_set_errno_and_return_minus_one( ENOTSUP ); 15d8: eb002472 bl a7a8 <__errno> <== NOT EXECUTED 15dc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 15e0: e5803000 str r3, [r0] <== NOT EXECUTED 15e4: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 15e8: ea00003d b 16e4 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 15ec: e5d03000 ldrb r3, [r0] 15f0: e353005c cmp r3, #92 ; 0x5c 15f4: 1353002f cmpne r3, #47 ; 0x2f 15f8: 13a0e000 movne lr, #0 ; 0x0 15fc: 03a0e001 moveq lr, #1 ; 0x1 1600: 0a000001 beq 160c 1604: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1608: 1a000007 bne 162c <== NOT EXECUTED 160c: e59f30dc ldr r3, [pc, #220] ; 16f0 1610: e5933000 ldr r3, [r3] 1614: e2833014 add r3, r3, #20 ; 0x14 1618: e893000f ldm r3, {r0, r1, r2, r3} 161c: e28dc004 add ip, sp, #4 ; 0x4 1620: e88c000f stm ip, {r0, r1, r2, r3} 1624: e3a02001 mov r2, #1 ; 0x1 1628: ea000006 b 1648 162c: e59f30bc ldr r3, [pc, #188] ; 16f0 <== NOT EXECUTED 1630: e5933000 ldr r3, [r3] <== NOT EXECUTED 1634: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 1638: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 163c: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1640: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1644: e1a0200e mov r2, lr <== NOT EXECUTED if ( !temp_loc.ops->evalformake_h ) { 1648: e59d300c ldr r3, [sp, #12] 164c: e5933004 ldr r3, [r3, #4] 1650: e3530000 cmp r3, #0 ; 0x0 1654: 0affffdf beq 15d8 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 1658: e28d5004 add r5, sp, #4 ; 0x4 165c: e0860002 add r0, r6, r2 1660: e1a01005 mov r1, r5 1664: e28d2014 add r2, sp, #20 ; 0x14 1668: e1a0e00f mov lr, pc 166c: e12fff13 bx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 1670: e3500000 cmp r0, #0 ; 0x0 1674: 1affffda bne 15e4 return -1; if ( !temp_loc.ops->mknod_h ) { 1678: e59d300c ldr r3, [sp, #12] 167c: e593c014 ldr ip, [r3, #20] 1680: e35c0000 cmp ip, #0 ; 0x0 1684: 1a000006 bne 16a4 rtems_filesystem_freenode( &temp_loc ); 1688: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 168c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1690: 0affffd0 beq 15d8 <== NOT EXECUTED 1694: e1a00005 mov r0, r5 <== NOT EXECUTED 1698: e1a0e00f mov lr, pc <== NOT EXECUTED 169c: e12fff13 bx r3 <== NOT EXECUTED 16a0: eaffffcc b 15d8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 16a4: e1a01004 mov r1, r4 16a8: e1a03008 mov r3, r8 16ac: e58d5000 str r5, [sp] 16b0: e1a02007 mov r2, r7 16b4: e59d0014 ldr r0, [sp, #20] 16b8: e1a0e00f mov lr, pc 16bc: e12fff1c bx ip rtems_filesystem_freenode( &temp_loc ); 16c0: e59d300c ldr r3, [sp, #12] 16c4: e3530000 cmp r3, #0 ; 0x0 if ( !temp_loc.ops->mknod_h ) { 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 ); 16c8: e1a04000 mov r4, r0 rtems_filesystem_freenode( &temp_loc ); 16cc: 0a000004 beq 16e4 16d0: e593301c ldr r3, [r3, #28] 16d4: e3530000 cmp r3, #0 ; 0x0 16d8: 11a00005 movne r0, r5 16dc: 11a0e00f movne lr, pc 16e0: 112fff13 bxne r3 return result; } 16e4: e1a00004 mov r0, r4 16e8: e28dd018 add sp, sp, #24 ; 0x18 16ec: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 16f0: 00013dc8 .word 0x00013dc8 00008c88 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 8c88: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 8c8c: e2519000 subs r9, r1, #0 ; 0x0 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 8c90: e24dd010 sub sp, sp, #16 ; 0x10 8c94: e1a08000 mov r8, r0 8c98: e1a07002 mov r7, r2 8c9c: e1a05003 mov r5, r3 8ca0: e59d6030 ldr r6, [sp, #48] /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 8ca4: 0a000001 beq 8cb0 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 8ca8: e3520001 cmp r2, #1 ; 0x1 8cac: 9a000002 bls 8cbc options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 8cb0: eb0006bc bl a7a8 <__errno> <== NOT EXECUTED 8cb4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 8cb8: ea000015 b 8d14 <== NOT EXECUTED return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 8cbc: e5994024 ldr r4, [r9, #36] 8cc0: e3540000 cmp r4, #0 ; 0x0 8cc4: 1a000005 bne 8ce0 errno = ENOTSUP; 8cc8: eb0006b6 bl a7a8 <__errno> <== NOT EXECUTED 8ccc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 8cd0: e1a0a004 mov sl, r4 <== NOT EXECUTED 8cd4: e5803000 str r3, [r0] <== NOT EXECUTED 8cd8: e1a05004 mov r5, r4 <== NOT EXECUTED 8cdc: ea000064 b 8e74 <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 8ce0: e3530000 cmp r3, #0 ; 0x0 8ce4: 03a00064 moveq r0, #100 ; 0x64 8ce8: 0a000002 beq 8cf8 size += strlen( device ) + 1; 8cec: e1a00003 mov r0, r3 <== NOT EXECUTED 8cf0: eb000be2 bl bc80 <== NOT EXECUTED 8cf4: e2800065 add r0, r0, #101 ; 0x65 <== NOT EXECUTED temp_mt_entry = malloc( size ); 8cf8: ebffff9c bl 8b70 if ( !temp_mt_entry ) { 8cfc: e3500000 cmp r0, #0 ; 0x0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 8d00: e1a04000 mov r4, r0 8d04: e1a0a000 mov sl, r0 if ( !temp_mt_entry ) { 8d08: 1a000003 bne 8d1c errno = ENOMEM; 8d0c: eb0006a5 bl a7a8 <__errno> <== NOT EXECUTED 8d10: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 8d14: e5803000 str r3, [r0] <== NOT EXECUTED 8d18: ea000061 b 8ea4 <== NOT EXECUTED return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 8d1c: e3550000 cmp r5, #0 ; 0x0 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 8d20: e5807028 str r7, [r0, #40] if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 8d24: e5840024 str r0, [r4, #36] 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; 8d28: 05805060 streq r5, [r0, #96] } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 8d2c: 12803064 addne r3, r0, #100 ; 0x64 (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 8d30: 11a00003 movne r0, r3 8d34: 11a01005 movne r1, r5 } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 8d38: 15843060 strne r3, [r4, #96] (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 8d3c: 1b000ba1 blne bbc8 /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 8d40: e3560000 cmp r6, #0 ; 0x0 8d44: 0a00002c beq 8dfc if ( rtems_filesystem_evaluate_path( 8d48: e1a00006 mov r0, r6 <== NOT EXECUTED 8d4c: e3a01007 mov r1, #7 ; 0x7 <== NOT EXECUTED 8d50: e1a0200d mov r2, sp <== NOT EXECUTED 8d54: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 8d58: ebffe166 bl 12f8 <== NOT EXECUTED 8d5c: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 8d60: 0a000042 beq 8e70 <== NOT EXECUTED /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 8d64: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 8d68: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 8d6c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 8d70: 0a000017 beq 8dd4 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 8d74: e1a0000d mov r0, sp <== NOT EXECUTED 8d78: e1a0e00f mov lr, pc <== NOT EXECUTED 8d7c: e12fff13 bx r3 <== NOT EXECUTED 8d80: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 8d84: 0a000004 beq 8d9c <== NOT EXECUTED errno = ENOTDIR; 8d88: eb000686 bl a7a8 <__errno> <== NOT EXECUTED 8d8c: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 8d90: e5803000 str r3, [r0] <== NOT EXECUTED 8d94: e1a0500d mov r5, sp <== NOT EXECUTED 8d98: ea000035 b 8e74 <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 8d9c: e59f1134 ldr r1, [pc, #308] ; 8ed8 <== 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_fs_root.node_access == loc->node_access ) 8da0: e59d0000 ldr r0, [sp] <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 8da4: e4912004 ldr r2, [r1], #4 <== NOT EXECUTED 8da8: ea000003 b 8dbc <== 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_fs_root.node_access == loc->node_access ) 8dac: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 8db0: e1530000 cmp r3, r0 <== NOT EXECUTED 8db4: 0a000003 beq 8dc8 <== NOT EXECUTED * 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 ) { 8db8: e5922000 ldr r2, [r2] <== NOT EXECUTED /* * 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 ); 8dbc: e1520001 cmp r2, r1 <== NOT EXECUTED 8dc0: 1afffff9 bne 8dac <== NOT EXECUTED 8dc4: ea000039 b 8eb0 <== NOT EXECUTED /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 8dc8: eb000676 bl a7a8 <__errno> <== NOT EXECUTED 8dcc: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 8dd0: eaffffee b 8d90 <== 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; 8dd4: eb000673 bl a7a8 <__errno> <== NOT EXECUTED 8dd8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 8ddc: eaffffeb b 8d90 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 8de0: e1a00004 mov r0, r4 <== NOT EXECUTED 8de4: e1a0e00f mov lr, pc <== NOT EXECUTED 8de8: e12fff11 bx r1 <== NOT EXECUTED 8dec: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 8df0: 01a0500d moveq r5, sp <== NOT EXECUTED 8df4: 0a000008 beq 8e1c <== NOT EXECUTED 8df8: eaffffe5 b 8d94 <== 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; 8dfc: e5846018 str r6, [r4, #24] temp_mt_entry->mt_fs_root.handlers = NULL; 8e00: e584601c str r6, [r4, #28] temp_mt_entry->mt_fs_root.ops = NULL; 8e04: e5846020 str r6, [r4, #32] temp_mt_entry->mt_point_node.node_access = NULL; 8e08: e5846008 str r6, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; 8e0c: e584600c str r6, [r4, #12] temp_mt_entry->mt_point_node.ops = NULL; 8e10: e5846010 str r6, [r4, #16] temp_mt_entry->mt_point_node.mt_entry = NULL; 8e14: e5846014 str r6, [r4, #20] 8e18: e1a05006 mov r5, r6 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 8e1c: e1a00004 mov r0, r4 8e20: e1a0e00f mov lr, pc 8e24: e599f024 ldr pc, [r9, #36] 8e28: e2506000 subs r6, r0, #0 ; 0x0 8e2c: 0a000007 beq 8e50 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 8e30: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 8e34: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 8e38: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 8e3c: 0a00000c beq 8e74 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 8e40: e1a00004 mov r0, r4 <== NOT EXECUTED 8e44: e1a0e00f mov lr, pc <== NOT EXECUTED 8e48: e12fff13 bx r3 <== NOT EXECUTED 8e4c: ea000008 b 8e74 <== 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 ); 8e50: e59f0080 ldr r0, [pc, #128] ; 8ed8 8e54: e1a01004 mov r1, r4 8e58: ebffefaf bl 4d1c <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 8e5c: e3580000 cmp r8, #0 ; 0x0 8e60: 01a00008 moveq r0, r8 *mt_entry = temp_mt_entry; 8e64: 15884000 strne r4, [r8] 8e68: 11a00006 movne r0, r6 8e6c: ea00000d b 8ea8 8e70: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 8e74: e1a0000a mov r0, sl <== NOT EXECUTED 8e78: ebfffdf9 bl 8664 <== NOT EXECUTED if ( loc_to_free ) 8e7c: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 8e80: 0a000007 beq 8ea4 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 8e84: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED 8e88: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 8e8c: 0a000004 beq 8ea4 <== NOT EXECUTED 8e90: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 8e94: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 8e98: 11a00005 movne r0, r5 <== NOT EXECUTED 8e9c: 11a0e00f movne lr, pc <== NOT EXECUTED 8ea0: 112fff13 bxne r3 <== NOT EXECUTED 8ea4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED return -1; } 8ea8: e28dd010 add sp, sp, #16 ; 0x10 8eac: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 8eb0: e99d000c ldmib sp, {r2, r3} <== 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 ){ 8eb4: e5931020 ldr r1, [r3, #32] <== NOT EXECUTED * 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; temp_mt_entry->mt_point_node.handlers = loc.handlers; 8eb8: e584200c str r2, [r4, #12] <== NOT EXECUTED temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 8ebc: e59d200c ldr r2, [sp, #12] <== 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 ){ 8ec0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED * 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; 8ec4: e5840008 str r0, [r4, #8] <== NOT EXECUTED temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 8ec8: e5842014 str r2, [r4, #20] <== NOT EXECUTED * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 8ecc: e5843010 str r3, [r4, #16] <== 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 ){ 8ed0: 1affffc2 bne 8de0 <== NOT EXECUTED 8ed4: eaffffbe b 8dd4 <== NOT EXECUTED 8ed8: 000155d8 .word 0x000155d8 00001780 : */ int newlib_free_buffers( FILE *fp ) { 1780: e92d4010 push {r4, lr} 1784: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 1788: eb0024d3 bl aadc 178c: e3500002 cmp r0, #2 ; 0x2 1790: 8a00000b bhi 17c4 case 0: case 1: case 2: if (fp->_flags & __SMBF) { 1794: e1d430bc ldrh r3, [r4, #12] 1798: e3130080 tst r3, #128 ; 0x80 179c: 0a00000a beq 17cc free( fp->_bf._base ); 17a0: e5940010 ldr r0, [r4, #16] 17a4: eb001bae bl 8664 fp->_flags &= ~__SMBF; 17a8: e1d430bc ldrh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 17ac: e3a02000 mov r2, #0 ; 0x0 case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 17b0: e3c33080 bic r3, r3, #128 ; 0x80 fp->_bf._base = fp->_p = (unsigned char *) NULL; 17b4: e5842010 str r2, [r4, #16] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 17b8: e1c430bc strh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 17bc: e5842000 str r2, [r4] 17c0: ea000001 b 17cc } break; default: fclose(fp); 17c4: e1a00004 mov r0, r4 <== NOT EXECUTED 17c8: eb002447 bl a8ec <== NOT EXECUTED } return 0; } 17cc: e3a00000 mov r0, #0 ; 0x0 17d0: e8bd8010 pop {r4, pc} 000019c4 : int open( const char *pathname, int flags, ... ) { 19c4: e92d000e push {r1, r2, r3} 19c8: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 19cc: e24dd010 sub sp, sp, #16 ; 0x10 19d0: e59da030 ldr sl, [sp, #48] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 19d4: e28a3001 add r3, sl, #1 ; 0x1 if ( ( status & _FREAD ) == _FREAD ) 19d8: e2132001 ands r2, r3, #1 ; 0x1 19dc: 01a04002 moveq r4, r2 19e0: 13a04004 movne r4, #4 ; 0x4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 19e4: e3130002 tst r3, #2 ; 0x2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 19e8: 13844002 orrne r4, r4, #2 ; 0x2 int open( const char *pathname, int flags, ... ) { 19ec: e1a08000 mov r8, r0 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); 19f0: e59d9034 ldr r9, [sp, #52] * 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(); 19f4: eb001bfd bl 89f0 if ( iop == 0 ) { 19f8: e2507000 subs r7, r0, #0 ; 0x0 19fc: 03a06017 moveq r6, #23 ; 0x17 1a00: 0a00006b beq 1bb4 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 1a04: e1a01004 mov r1, r4 1a08: e1a00008 mov r0, r8 1a0c: e1a0200d mov r2, sp 1a10: e3a03001 mov r3, #1 ; 0x1 1a14: ebfffe37 bl 12f8 pathname, eval_flags, &loc, true ); if ( status == -1 ) { 1a18: e3700001 cmn r0, #1 ; 0x1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 1a1c: e1a0500d mov r5, sp pathname, eval_flags, &loc, true ); if ( status == -1 ) { 1a20: 1a00001a bne 1a90 if ( errno != ENOENT ) { 1a24: eb00235f bl a7a8 <__errno> <== NOT EXECUTED 1a28: e5900000 ldr r0, [r0] <== NOT EXECUTED 1a2c: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 1a30: 1a00000a bne 1a60 <== 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) ) { 1a34: e21a3c02 ands r3, sl, #512 ; 0x200 <== NOT EXECUTED 1a38: 01a06000 moveq r6, r0 <== NOT EXECUTED 1a3c: 01a04003 moveq r4, r3 <== NOT EXECUTED 1a40: 0a00004e beq 1b80 <== NOT EXECUTED rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 1a44: e1a00008 mov r0, r8 <== NOT EXECUTED 1a48: e3891902 orr r1, r9, #32768 ; 0x8000 <== NOT EXECUTED 1a4c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 1a50: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1a54: ebfffed2 bl 15a4 <== NOT EXECUTED if ( rc ) { 1a58: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1a5c: 0a000002 beq 1a6c <== NOT EXECUTED rc = errno; 1a60: eb002350 bl a7a8 <__errno> <== NOT EXECUTED 1a64: e5906000 ldr r6, [r0] <== NOT EXECUTED 1a68: ea000041 b 1b74 <== NOT EXECUTED goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, 0x0, &loc, true ); 1a6c: e1a0200d mov r2, sp <== NOT EXECUTED 1a70: e1a00008 mov r0, r8 <== NOT EXECUTED 1a74: e1a01004 mov r1, r4 <== NOT EXECUTED 1a78: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 1a7c: ebfffe1d bl 12f8 <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ 1a80: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1a84: 13a0600d movne r6, #13 ; 0xd <== NOT EXECUTED 1a88: 1a00003c bne 1b80 <== NOT EXECUTED 1a8c: ea000004 b 1aa4 <== NOT EXECUTED rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 1a90: e20a3c0a and r3, sl, #2560 ; 0xa00 1a94: e3530c0a cmp r3, #2560 ; 0xa00 1a98: 01a0400d moveq r4, sp 1a9c: 03a06011 moveq r6, #17 ; 0x11 1aa0: 0a000036 beq 1b80 * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; 1aa4: e28d5010 add r5, sp, #16 ; 0x10 1aa8: e5353010 ldr r3, [r5, #-16]! 1aac: e587302c str r3, [r7, #44] /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 1ab0: e59d3004 ldr r3, [sp, #4] iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1ab4: e1a0000a mov r0, sl /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 1ab8: e5873030 str r3, [r7, #48] iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1abc: e597400c ldr r4, [r7, #12] 1ac0: eb001bfd bl 8abc iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 1ac4: e5973030 ldr r3, [r7, #48] 1ac8: e5936000 ldr r6, [r3] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1acc: e1804004 orr r4, r0, r4 iop->pathinfo = loc; 1ad0: e895000f ldm r5, {r0, r1, r2, r3} 1ad4: e287c010 add ip, r7, #16 ; 0x10 if ( !iop->handlers->open_h ) { 1ad8: e3560000 cmp r6, #0 ; 0x0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 1adc: e88c000f stm ip, {r0, r1, r2, r3} * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1ae0: e587400c str r4, [r7, #12] iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 1ae4: 0a000040 beq 1bec rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 1ae8: e1a01008 mov r1, r8 1aec: e1a03009 mov r3, r9 1af0: e1a00007 mov r0, r7 1af4: e1a0200a mov r2, sl 1af8: e1a0e00f mov lr, pc 1afc: e12fff16 bx r6 if ( rc ) 1b00: e2506000 subs r6, r0, #0 ; 0x0 1b04: 11a0400d movne r4, sp 1b08: 1a00001c bne 1b80 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 1b0c: e31a0b01 tst sl, #1024 ; 0x400 1b10: 0a00002b beq 1bc4 rc = ftruncate( iop - rtems_libio_iops, 0 ); 1b14: e59f30dc ldr r3, [pc, #220] ; 1bf8 <== NOT EXECUTED 1b18: e5933000 ldr r3, [r3] <== NOT EXECUTED 1b1c: e59f20d8 ldr r2, [pc, #216] ; 1bfc <== NOT EXECUTED 1b20: e0633007 rsb r3, r3, r7 <== NOT EXECUTED 1b24: e1a03143 asr r3, r3, #2 <== NOT EXECUTED 1b28: e1a01006 mov r1, r6 <== NOT EXECUTED 1b2c: e0000392 mul r0, r2, r3 <== NOT EXECUTED 1b30: eb001af3 bl 8704 <== NOT EXECUTED if ( rc ) { 1b34: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 1b38: 0a000021 beq 1bc4 <== NOT EXECUTED if(errno) rc = errno; 1b3c: eb002319 bl a7a8 <__errno> <== NOT EXECUTED 1b40: e5903000 ldr r3, [r0] <== NOT EXECUTED 1b44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b48: 0a000001 beq 1b54 <== NOT EXECUTED 1b4c: eb002315 bl a7a8 <__errno> <== NOT EXECUTED 1b50: e5906000 ldr r6, [r0] <== NOT EXECUTED close( iop - rtems_libio_iops ); 1b54: e59f309c ldr r3, [pc, #156] ; 1bf8 <== NOT EXECUTED 1b58: e5933000 ldr r3, [r3] <== NOT EXECUTED 1b5c: e59f2098 ldr r2, [pc, #152] ; 1bfc <== NOT EXECUTED 1b60: e0633007 rsb r3, r3, r7 <== NOT EXECUTED 1b64: e1a03143 asr r3, r3, #2 <== NOT EXECUTED 1b68: e0000392 mul r0, r2, r3 <== NOT EXECUTED 1b6c: eb001a92 bl 85bc <== NOT EXECUTED 1b70: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 1b74: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1b78: 0a000011 beq 1bc4 <== NOT EXECUTED 1b7c: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED if ( iop ) 1b80: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED rtems_libio_free( iop ); 1b84: 11a00007 movne r0, r7 <== NOT EXECUTED 1b88: 1b001b81 blne 8994 <== NOT EXECUTED if ( loc_to_free ) 1b8c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 1b90: 0a000007 beq 1bb4 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 1b94: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 1b98: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1b9c: 0a000004 beq 1bb4 <== NOT EXECUTED 1ba0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1ba4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ba8: 11a00004 movne r0, r4 <== NOT EXECUTED 1bac: 11a0e00f movne lr, pc <== NOT EXECUTED 1bb0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( rc ); 1bb4: eb0022fb bl a7a8 <__errno> 1bb8: e5806000 str r6, [r0] 1bbc: e3e00000 mvn r0, #0 ; 0x0 1bc0: ea000005 b 1bdc } return iop - rtems_libio_iops; 1bc4: e59f302c ldr r3, [pc, #44] ; 1bf8 1bc8: e5933000 ldr r3, [r3] 1bcc: e59f2028 ldr r2, [pc, #40] ; 1bfc 1bd0: e0633007 rsb r3, r3, r7 1bd4: e1a03143 asr r3, r3, #2 1bd8: e0000392 mul r0, r2, r3 } 1bdc: e28dd010 add sp, sp, #16 ; 0x10 1be0: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} 1be4: e28dd00c add sp, sp, #12 ; 0xc 1be8: e12fff1e bx lr if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 1bec: e1a0400d mov r4, sp <== NOT EXECUTED 1bf0: e3a06086 mov r6, #134 ; 0x86 <== NOT EXECUTED 1bf4: eaffffe1 b 1b80 <== NOT EXECUTED 1bf8: 00015218 .word 0x00015218 1bfc: c4ec4ec5 .word 0xc4ec4ec5 00001960 : int error_code = 'S' << 24 | 'T' << 16 | 'D' << 8; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 1960: e3a01000 mov r1, #0 ; 0x0 /* * This is a replaceable stub */ void open_dev_console(void) { 1964: e52de004 push {lr} ; (str lr, [sp, #-4]!) int error_code = 'S' << 24 | 'T' << 16 | 'D' << 8; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 1968: e59f0048 ldr r0, [pc, #72] ; 19b8 196c: e1a02001 mov r2, r1 1970: eb000013 bl 19c4 1974: e3700001 cmn r0, #1 ; 0x1 1978: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) /* * 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) 197c: e59f0034 ldr r0, [pc, #52] ; 19b8 1980: e3a01001 mov r1, #1 ; 0x1 1984: e3a02000 mov r2, #0 ; 0x0 1988: eb00000d bl 19c4 198c: e3700001 cmn r0, #1 ; 0x1 rtems_fatal_error_occurred( error_code | '1' ); 1990: 059f0024 ldreq r0, [pc, #36] ; 19bc /* * 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) 1994: 0a000006 beq 19b4 rtems_fatal_error_occurred( error_code | '1' ); if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 1998: e59f0018 ldr r0, [pc, #24] ; 19b8 199c: e3a01001 mov r1, #1 ; 0x1 19a0: e3a02000 mov r2, #0 ; 0x0 19a4: eb000006 bl 19c4 19a8: e3700001 cmn r0, #1 ; 0x1 19ac: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( error_code | '2' ); 19b0: e59f0008 ldr r0, [pc, #8] ; 19c0 <== NOT EXECUTED 19b4: eb000c0f bl 49f8 <== NOT EXECUTED 19b8: 00014b61 .word 0x00014b61 19bc: 53544431 .word 0x53544431 19c0: 53544432 .word 0x53544432 0001ccc8 : * open a directory. */ DIR * opendir( const char *name ) { 1ccc8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register DIR *dirp; register int fd; if ((fd = open(name, 0)) == -1) 1cccc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1ccd0: ebff9fc2 bl 4be0 <== NOT EXECUTED 1ccd4: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 1ccd8: e1a05000 mov r5, r0 <== NOT EXECUTED 1ccdc: 0a00000a beq 1cd0c <== NOT EXECUTED return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || 1cce0: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 1cce4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 1cce8: eb00293e bl 271e8 <== NOT EXECUTED 1ccec: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 1ccf0: 0a000003 beq 1cd04 <== NOT EXECUTED 1ccf4: e3a00018 mov r0, #24 ; 0x18 <== NOT EXECUTED 1ccf8: ebff9d9e bl 4378 <== NOT EXECUTED 1ccfc: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1cd00: 1a000003 bne 1cd14 <== NOT EXECUTED (dirp = (DIR *)malloc(sizeof(DIR))) == NULL) { close (fd); 1cd04: e1a00005 mov r0, r5 <== NOT EXECUTED 1cd08: ebff9b7d bl 3b04 <== NOT EXECUTED 1cd0c: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 1cd10: ea00000f b 1cd54 <== NOT EXECUTED * If CLSIZE is an exact multiple of DIRBLKSIZ, use a CLSIZE * buffer that it cluster boundary aligned. * Hopefully this can be a big win someday by allowing page trades * to user space to be done by getdirentries() */ dirp->dd_buf = malloc (512); 1cd14: e3a00c02 mov r0, #512 ; 0x200 <== NOT EXECUTED 1cd18: ebff9d96 bl 4378 <== NOT EXECUTED dirp->dd_len = 512; 1cd1c: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED if (dirp->dd_buf == NULL) { 1cd20: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED * If CLSIZE is an exact multiple of DIRBLKSIZ, use a CLSIZE * buffer that it cluster boundary aligned. * Hopefully this can be a big win someday by allowing page trades * to user space to be done by getdirentries() */ dirp->dd_buf = malloc (512); 1cd24: e1a02000 mov r2, r0 <== NOT EXECUTED dirp->dd_len = 512; 1cd28: e5843010 str r3, [r4, #16] <== NOT EXECUTED * If CLSIZE is an exact multiple of DIRBLKSIZ, use a CLSIZE * buffer that it cluster boundary aligned. * Hopefully this can be a big win someday by allowing page trades * to user space to be done by getdirentries() */ dirp->dd_buf = malloc (512); 1cd2c: e584000c str r0, [r4, #12] <== NOT EXECUTED dirp->dd_len = 512; if (dirp->dd_buf == NULL) { 1cd30: 1a000003 bne 1cd44 <== NOT EXECUTED close (fd); 1cd34: e1a00005 mov r0, r5 <== NOT EXECUTED 1cd38: e1a04002 mov r4, r2 <== NOT EXECUTED 1cd3c: ebff9b70 bl 3b04 <== NOT EXECUTED 1cd40: ea000003 b 1cd54 <== NOT EXECUTED return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 1cd44: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; 1cd48: e5845000 str r5, [r4] <== NOT EXECUTED dirp->dd_loc = 0; dirp->dd_seek = 0; 1cd4c: e5843014 str r3, [r4, #20] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 1cd50: e5843004 str r3, [r4, #4] <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 1cd54: e1a00004 mov r0, r4 <== NOT EXECUTED 1cd58: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 000025c0 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 25c0: e92d4010 push {r4, lr} int i; if (tty->termios.c_oflag & OPOST) { 25c4: e5912034 ldr r2, [r1, #52] /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 25c8: e24dd004 sub sp, sp, #4 ; 0x4 int i; if (tty->termios.c_oflag & OPOST) { 25cc: e3120001 tst r2, #1 ; 0x1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 25d0: e1a04001 mov r4, r1 25d4: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { 25d8: 0a000044 beq 26f0 switch (c) { 25dc: e5dd1000 ldrb r1, [sp] 25e0: e2413008 sub r3, r1, #8 ; 0x8 25e4: e3530005 cmp r3, #5 ; 0x5 25e8: 979ff103 ldrls pc, [pc, r3, lsl #2] 25ec: ea00002d b 26a8 25f0: 00002694 .word 0x00002694 <== NOT EXECUTED 25f4: 00002668 .word 0x00002668 <== NOT EXECUTED 25f8: 00002608 .word 0x00002608 <== NOT EXECUTED 25fc: 000026a8 .word 0x000026a8 <== NOT EXECUTED 2600: 000026a8 .word 0x000026a8 <== NOT EXECUTED 2604: 00002634 .word 0x00002634 <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) 2608: e3120020 tst r2, #32 ; 0x20 tty->column = 0; 260c: 13a03000 movne r3, #0 ; 0x0 2610: 15843028 strne r3, [r4, #40] if (tty->termios.c_oflag & ONLCR) { 2614: e5943034 ldr r3, [r4, #52] 2618: e3130004 tst r3, #4 ; 0x4 261c: 0a000033 beq 26f0 rtems_termios_puts ("\r", 1, tty); 2620: e59f00e0 ldr r0, [pc, #224] ; 2708 2624: e3a01001 mov r1, #1 ; 0x1 2628: e1a02004 mov r2, r4 262c: ebffff9f bl 24b0 2630: ea00000a b 2660 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 2634: e3120010 tst r2, #16 ; 0x10 <== NOT EXECUTED 2638: 0a000002 beq 2648 <== NOT EXECUTED 263c: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2640: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2644: 0a00002d beq 2700 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 2648: e2123008 ands r3, r2, #8 ; 0x8 <== NOT EXECUTED 264c: 0a000026 beq 26ec <== NOT EXECUTED c = '\n'; 2650: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 2654: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) return; if (tty->termios.c_oflag & OCRNL) { c = '\n'; 2658: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 265c: 0a000023 beq 26f0 <== NOT EXECUTED tty->column = 0; 2660: e3a03000 mov r3, #0 ; 0x0 2664: ea000020 b 26ec } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 2668: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 266c: e2022b06 and r2, r2, #6144 ; 0x1800 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 2670: e2031007 and r1, r3, #7 ; 0x7 <== NOT EXECUTED 2674: e2611008 rsb r1, r1, #8 ; 0x8 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 2678: e3520b06 cmp r2, #6144 ; 0x1800 <== NOT EXECUTED 267c: e0813003 add r3, r1, r3 <== NOT EXECUTED 2680: 1a000019 bne 26ec <== NOT EXECUTED tty->column += i; 2684: e5843028 str r3, [r4, #40] <== NOT EXECUTED rtems_termios_puts ( " ", i, tty); 2688: e1a02004 mov r2, r4 <== NOT EXECUTED 268c: e59f0078 ldr r0, [pc, #120] ; 270c <== NOT EXECUTED 2690: ea000019 b 26fc <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 2694: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2698: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 269c: c2433001 subgt r3, r3, #1 ; 0x1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 26a0: ca000011 bgt 26ec <== NOT EXECUTED 26a4: ea000011 b 26f0 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 26a8: e3120002 tst r2, #2 ; 0x2 26ac: 0a000006 beq 26cc c = toupper(c); 26b0: e59f3058 ldr r3, [pc, #88] ; 2710 <== NOT EXECUTED 26b4: e5933000 ldr r3, [r3] <== NOT EXECUTED 26b8: e7d33001 ldrb r3, [r3, r1] <== NOT EXECUTED 26bc: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 26c0: e1a02001 mov r2, r1 <== NOT EXECUTED 26c4: 12412020 subne r2, r1, #32 ; 0x20 <== NOT EXECUTED 26c8: e5cd2000 strb r2, [sp] <== NOT EXECUTED if (!iscntrl(c)) 26cc: e59f303c ldr r3, [pc, #60] ; 2710 26d0: e5932000 ldr r2, [r3] 26d4: e5dd3000 ldrb r3, [sp] 26d8: e7d23003 ldrb r3, [r2, r3] 26dc: e3130020 tst r3, #32 ; 0x20 26e0: 1a000002 bne 26f0 tty->column++; 26e4: e5943028 ldr r3, [r4, #40] 26e8: e2833001 add r3, r3, #1 ; 0x1 26ec: e5843028 str r3, [r4, #40] break; } } rtems_termios_puts (&c, 1, tty); 26f0: e1a02004 mov r2, r4 26f4: e1a0000d mov r0, sp 26f8: e3a01001 mov r1, #1 ; 0x1 26fc: ebffff6b bl 24b0 } 2700: e28dd004 add sp, sp, #4 ; 0x4 2704: e8bd8010 pop {r4, pc} 2708: 00014cd2 .word 0x00014cd2 270c: 00014baf .word 0x00014baf 2710: 00013e14 .word 0x00013e14 00012e50 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12e50: e59f30ac ldr r3, [pc, #172] ; 12f04 <== NOT EXECUTED 12e54: e5933000 ldr r3, [r3] <== NOT EXECUTED 12e58: e1500003 cmp r0, r3 <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 12e5c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 12e60: e1a0c000 mov ip, r0 <== NOT EXECUTED 12e64: e1a06001 mov r6, r1 <== NOT EXECUTED 12e68: e1a05002 mov r5, r2 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12e6c: 2a000006 bcs 12e8c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12e70: e59f3090 ldr r3, [pc, #144] ; 12f08 <== NOT EXECUTED 12e74: e5930000 ldr r0, [r3] <== NOT EXECUTED 12e78: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 12e7c: e0240c93 mla r4, r3, ip, r0 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 12e80: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 12e84: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 12e88: 1a000002 bne 12e98 <== NOT EXECUTED 12e8c: ebffde45 bl a7a8 <__errno> <== NOT EXECUTED 12e90: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 12e94: ea00000f b 12ed8 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 12e98: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 12e9c: 0a000004 beq 12eb4 <== NOT EXECUTED rtems_libio_check_count( count ); 12ea0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 12ea4: 01a00002 moveq r0, r2 <== NOT EXECUTED 12ea8: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 12eac: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 12eb0: 1a000002 bne 12ec0 <== NOT EXECUTED 12eb4: ebffde3b bl a7a8 <__errno> <== NOT EXECUTED 12eb8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 12ebc: ea000005 b 12ed8 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 12ec0: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 12ec4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 12ec8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12ecc: 1a000004 bne 12ee4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12ed0: ebffde34 bl a7a8 <__errno> <== NOT EXECUTED 12ed4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 12ed8: e5803000 str r3, [r0] <== NOT EXECUTED 12edc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 12ee0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rc = (*iop->handlers->read_h)( iop, buffer, count ); 12ee4: e1a00004 mov r0, r4 <== NOT EXECUTED 12ee8: e1a0e00f mov lr, pc <== NOT EXECUTED 12eec: e12fff13 bx r3 <== NOT EXECUTED if ( rc > 0 ) 12ef0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED iop->offset += rc; 12ef4: c5943008 ldrgt r3, [r4, #8] <== NOT EXECUTED 12ef8: c0833000 addgt r3, r3, r0 <== NOT EXECUTED 12efc: c5843008 strgt r3, [r4, #8] <== NOT EXECUTED return rc; } 12f00: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 12f04: 000137f4 .word 0x000137f4 12f08: 00015218 .word 0x00015218 0001cf9c : /* * get next entry in a directory. */ struct dirent * readdir( DIR *dirp ) { 1cf9c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register struct dirent *dp; if ( !dirp ) 1cfa0: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1cfa4: 0a000020 beq 1d02c <== NOT EXECUTED if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { dirp->dd_loc = 0; 1cfa8: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { 1cfac: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 1cfb0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1cfb4: 1a000006 bne 1cfd4 <== NOT EXECUTED dirp->dd_size = getdents (dirp->dd_fd, 1cfb8: e5940000 ldr r0, [r4] <== NOT EXECUTED 1cfbc: e284100c add r1, r4, #12 ; 0xc <== NOT EXECUTED 1cfc0: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED 1cfc4: eb0028fe bl 273c4 <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 1cfc8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 1cfcc: e5840008 str r0, [r4, #8] <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 1cfd0: da000015 ble 1d02c <== NOT EXECUTED return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 1cfd4: e994000a ldmib r4, {r1, r3} <== NOT EXECUTED 1cfd8: e1510003 cmp r1, r3 <== NOT EXECUTED dirp->dd_loc = 0; 1cfdc: a5846004 strge r6, [r4, #4] <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 1cfe0: aafffff1 bge 1cfac <== NOT EXECUTED dirp->dd_loc = 0; continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 1cfe4: e594500c ldr r5, [r4, #12] <== NOT EXECUTED 1cfe8: e0850001 add r0, r5, r1 <== NOT EXECUTED if ((intptr_t)dp & 03) /* bogus pointer check */ 1cfec: e3100003 tst r0, #3 ; 0x3 <== NOT EXECUTED 1cff0: 1a00000d bne 1d02c <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || 1cff4: e1d020b8 ldrh r2, [r0, #8] <== NOT EXECUTED 1cff8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 1cffc: e082c001 add ip, r2, r1 <== NOT EXECUTED continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); if ((intptr_t)dp & 03) /* bogus pointer check */ return NULL; if (dp->d_reclen <= 0 || 1d000: 0a000009 beq 1d02c <== NOT EXECUTED 1d004: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 1d008: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 1d00c: e0613003 rsb r3, r1, r3 <== NOT EXECUTED 1d010: e1520003 cmp r2, r3 <== NOT EXECUTED 1d014: ca000004 bgt 1d02c <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 1d018: e584c004 str ip, [r4, #4] <== NOT EXECUTED if (dp->d_ino == 0) 1d01c: e7953001 ldr r3, [r5, r1] <== NOT EXECUTED 1d020: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d024: 0affffe0 beq 1cfac <== NOT EXECUTED 1d028: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 1d02c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED continue; return (dp); } } 1d030: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 0001d034 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 1d034: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 1d038: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 1d03c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1d040: e1a06002 mov r6, r2 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 1d044: 1a000002 bne 1d054 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 1d048: eb003125 bl 294e4 <__errno> <== NOT EXECUTED 1d04c: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 1d050: ea000025 b 1d0ec <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1d054: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1d058: e1a0200d mov r2, sp <== NOT EXECUTED 1d05c: e1a03001 mov r3, r1 <== NOT EXECUTED 1d060: ebff9af8 bl 3c48 <== NOT EXECUTED if ( result != 0 ) 1d064: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1d068: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 1d06c: 1a00001f bne 1d0f0 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 1d070: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1d074: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 1d078: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d07c: 0592301c ldreq r3, [r2, #28] <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ 1d080: 0a000013 beq 1d0d4 <== 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 ){ 1d084: e1a0000d mov r0, sp <== NOT EXECUTED 1d088: e1a0e00f mov lr, pc <== NOT EXECUTED 1d08c: e12fff13 bx r3 <== NOT EXECUTED 1d090: e3500004 cmp r0, #4 ; 0x4 <== NOT EXECUTED 1d094: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d098: 0a000009 beq 1d0c4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d09c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d0a0: 0a000004 beq 1d0b8 <== NOT EXECUTED 1d0a4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d0a8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d0ac: 11a0000d movne r0, sp <== NOT EXECUTED 1d0b0: 11a0e00f movne lr, pc <== NOT EXECUTED 1d0b4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 1d0b8: eb003109 bl 294e4 <__errno> <== NOT EXECUTED 1d0bc: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1d0c0: ea000009 b 1d0ec <== NOT EXECUTED } if ( !loc.ops->readlink_h ){ 1d0c4: e593c03c ldr ip, [r3, #60] <== NOT EXECUTED 1d0c8: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 1d0cc: 1a000009 bne 1d0f8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d0d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d0d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d0d8: 11a0000d movne r0, sp <== NOT EXECUTED 1d0dc: 11a0e00f movne lr, pc <== NOT EXECUTED 1d0e0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1d0e4: eb0030fe bl 294e4 <__errno> <== NOT EXECUTED 1d0e8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1d0ec: e5803000 str r3, [r0] <== NOT EXECUTED 1d0f0: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1d0f4: ea00000d b 1d130 <== NOT EXECUTED } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 1d0f8: e1a01004 mov r1, r4 <== NOT EXECUTED 1d0fc: e1a02006 mov r2, r6 <== NOT EXECUTED 1d100: e1a0000d mov r0, sp <== NOT EXECUTED 1d104: e1a0e00f mov lr, pc <== NOT EXECUTED 1d108: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d10c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d110: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 1d114: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d118: 0a000004 beq 1d130 <== NOT EXECUTED 1d11c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d120: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d124: 11a0000d movne r0, sp <== NOT EXECUTED 1d128: 11a0e00f movne lr, pc <== NOT EXECUTED 1d12c: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1d130: e1a00004 mov r0, r4 <== NOT EXECUTED 1d134: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1d138: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 00012f70 : { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 12f70: e92d4070 push {r4, r5, r6, lr} 12f74: e59fc108 ldr ip, [pc, #264] ; 13084 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 12f78: e59f3108 ldr r3, [pc, #264] ; 13088 12f7c: e5932000 ldr r2, [r3] { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 12f80: e59c3010 ldr r3, [ip, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 12f84: e3520003 cmp r2, #3 ; 0x3 { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 12f88: e2833001 add r3, r3, #1 ; 0x1 12f8c: e24dd004 sub sp, sp, #4 ; 0x4 12f90: e58c3010 str r3, [ip, #16] 12f94: e1a04000 mov r4, r0 12f98: e1a05001 mov r5, r1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 12f9c: 1a000007 bne 12fc0 if (_Thread_Dispatch_disable_level > 0) 12fa0: e59f30e4 ldr r3, [pc, #228] ; 1308c 12fa4: e5933000 ldr r3, [r3] 12fa8: e3530000 cmp r3, #0 ; 0x0 12fac: 1a000030 bne 13074 return (void *) 0; if (_ISR_Nest_level > 0) 12fb0: e59f30d8 ldr r3, [pc, #216] ; 13090 12fb4: e5933000 ldr r3, [r3] 12fb8: e3530000 cmp r3, #0 ; 0x0 12fbc: 1a00002c bne 13074 } /* * Continue with realloc(). */ if ( !ptr ) 12fc0: e3540000 cmp r4, #0 ; 0x0 12fc4: 1a000003 bne 12fd8 return malloc( size ); 12fc8: e1a00005 mov r0, r5 <== NOT EXECUTED 12fcc: ebffd6e7 bl 8b70 <== NOT EXECUTED 12fd0: e1a04000 mov r4, r0 <== NOT EXECUTED 12fd4: ea000027 b 13078 <== NOT EXECUTED if ( !size ) { 12fd8: e3550000 cmp r5, #0 ; 0x0 12fdc: 1a000003 bne 12ff0 free( ptr ); 12fe0: e1a00004 mov r0, r4 <== NOT EXECUTED 12fe4: ebffd59e bl 8664 <== NOT EXECUTED 12fe8: e1a04005 mov r4, r5 <== NOT EXECUTED 12fec: ea000021 b 13078 <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { 12ff0: e59f009c ldr r0, [pc, #156] ; 13094 12ff4: e1a01004 mov r1, r4 12ff8: e1a0200d mov r2, sp 12ffc: eb000054 bl 13154 <_Protected_heap_Get_block_size> 13000: e2506000 subs r6, r0, #0 ; 0x0 13004: 1a000003 bne 13018 errno = EINVAL; 13008: ebffdde6 bl a7a8 <__errno> 1300c: e3a03016 mov r3, #22 ; 0x16 13010: e5803000 str r3, [r0] 13014: ea000014 b 1306c #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 ) ) { 13018: e59f0074 ldr r0, [pc, #116] ; 13094 1301c: e1a01004 mov r1, r4 13020: e1a02005 mov r2, r5 13024: eb00005b bl 13198 <_Protected_heap_Resize_block> 13028: e3500000 cmp r0, #0 ; 0x0 1302c: 1a000011 bne 13078 * 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 ); 13030: e1a00005 mov r0, r5 13034: ebffd6cd bl 8b70 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 13038: e59f2044 ldr r2, [pc, #68] ; 13084 1303c: e5923004 ldr r3, [r2, #4] if ( !new_area ) { 13040: e2506000 subs r6, r0, #0 ; 0x0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 13044: e2433001 sub r3, r3, #1 ; 0x1 13048: e5823004 str r3, [r2, #4] if ( !new_area ) { 1304c: 0a000008 beq 13074 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 13050: e59d2000 ldr r2, [sp] 13054: e1a01004 mov r1, r4 13058: e1550002 cmp r5, r2 1305c: 31a02005 movcc r2, r5 13060: ebffdf9a bl aed0 free( ptr ); 13064: e1a00004 mov r0, r4 13068: ebffd57d bl 8664 1306c: e1a04006 mov r4, r6 13070: ea000000 b 13078 return new_area; 13074: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED } 13078: e1a00004 mov r0, r4 1307c: e28dd004 add sp, sp, #4 ; 0x4 13080: e8bd8070 pop {r4, r5, r6, pc} 13084: 0001527c .word 0x0001527c 13088: 00015534 .word 0x00015534 1308c: 0001538c .word 0x0001538c 13090: 00015420 .word 0x00015420 13094: 00015224 .word 0x00015224 0001d264 : #include int rmdir( const char *pathname ) { 1d264: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1d268: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int rmdir( const char *pathname ) { 1d26c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1d270: e1a0200d mov r2, sp <== NOT EXECUTED 1d274: e1a03001 mov r3, r1 <== NOT EXECUTED 1d278: ebff9a72 bl 3c48 <== NOT EXECUTED if ( result != 0 ) 1d27c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1d280: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 1d284: 1a00003f bne 1d388 <== NOT EXECUTED return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 1d288: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 1d28c: e1a0100d mov r1, sp <== NOT EXECUTED 1d290: ebff9a45 bl 3bac <== NOT EXECUTED if (result != 0) { 1d294: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d298: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d29c: 0a000008 beq 1d2c4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d2a0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d2a4: 0a000037 beq 1d388 <== NOT EXECUTED 1d2a8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d2ac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d2b0: 0a000034 beq 1d388 <== NOT EXECUTED 1d2b4: e1a0000d mov r0, sp <== NOT EXECUTED 1d2b8: e1a0e00f mov lr, pc <== NOT EXECUTED 1d2bc: e12fff13 bx r3 <== NOT EXECUTED 1d2c0: ea000030 b 1d388 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 1d2c4: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED 1d2c8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1d2cc: 0a000016 beq 1d32c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 1d2d0: e1a0000d mov r0, sp <== NOT EXECUTED 1d2d4: e1a0e00f mov lr, pc <== NOT EXECUTED 1d2d8: e12fff12 bx r2 <== NOT EXECUTED 1d2dc: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 1d2e0: 0a00000a beq 1d310 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d2e4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d2e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d2ec: 0a000004 beq 1d304 <== NOT EXECUTED 1d2f0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d2f4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d2f8: 11a0000d movne r0, sp <== NOT EXECUTED 1d2fc: 11a0e00f movne lr, pc <== NOT EXECUTED 1d300: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 1d304: eb003076 bl 294e4 <__errno> <== NOT EXECUTED 1d308: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 1d30c: ea00000d b 1d348 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 1d310: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 1d314: e5933034 ldr r3, [r3, #52] <== NOT EXECUTED 1d318: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d31c: 1a00000b bne 1d350 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d320: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d324: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d328: 0a000004 beq 1d340 <== NOT EXECUTED 1d32c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d330: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d334: 11a0000d movne r0, sp <== NOT EXECUTED 1d338: 11a0e00f movne lr, pc <== NOT EXECUTED 1d33c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1d340: eb003067 bl 294e4 <__errno> <== NOT EXECUTED 1d344: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1d348: e5803000 str r3, [r0] <== NOT EXECUTED 1d34c: ea00000d b 1d388 <== NOT EXECUTED } result = (*loc.handlers->rmnod_h)( &loc ); 1d350: e1a0000d mov r0, sp <== NOT EXECUTED 1d354: e1a0e00f mov lr, pc <== NOT EXECUTED 1d358: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d35c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d360: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); 1d364: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d368: 0a000007 beq 1d38c <== NOT EXECUTED 1d36c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d370: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d374: 0a000004 beq 1d38c <== NOT EXECUTED 1d378: e1a0000d mov r0, sp <== NOT EXECUTED 1d37c: e1a0e00f mov lr, pc <== NOT EXECUTED 1d380: e12fff13 bx r3 <== NOT EXECUTED 1d384: ea000000 b 1d38c <== NOT EXECUTED 1d388: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 1d38c: e1a00004 mov r0, r4 <== NOT EXECUTED 1d390: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1d394: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0000a1d8 : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { a1d8: e92d41f0 push {r4, r5, r6, r7, r8, lr} a1dc: e3a06000 mov r6, #0 ; 0x0 a1e0: e1a08000 mov r8, r0 a1e4: e1a07001 mov r7, r1 a1e8: e3a04001 mov r4, #1 ; 0x1 a1ec: e1a05006 mov r5, r6 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) a1f0: e1140007 tst r4, r7 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { a1f4: e2855001 add r5, r5, #1 ; 0x1 if (b & remote_value) a1f8: 0a000003 beq a20c local_value |= rtems_assoc_local_by_remote(ap, b); a1fc: e1a01004 mov r1, r4 <== NOT EXECUTED a200: e1a00008 mov r0, r8 <== NOT EXECUTED a204: eb000005 bl a220 <== NOT EXECUTED a208: e1866000 orr r6, r6, r0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { a20c: e3550020 cmp r5, #32 ; 0x20 a210: e1a04084 lsl r4, r4, #1 a214: 1afffff5 bne a1f0 if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } a218: e1a00006 mov r0, r6 a21c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 00012244 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 12244: e59f0000 ldr r0, [pc, #0] ; 1224c <== NOT EXECUTED 12248: e12fff1e bx lr <== NOT EXECUTED 1224c: 0001ea50 .word 0x0001ea50 0000e5d4 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { e5d4: e92d4010 push {r4, lr} e5d8: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); e5dc: eb000006 bl e5fc if (nap) e5e0: e3500000 cmp r0, #0 ; 0x0 e5e4: 0a000001 beq e5f0 return nap->name; return rtems_assoc_name_bad(local_value); } e5e8: e5900000 ldr r0, [r0] e5ec: e8bd8010 pop {r4, pc} nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); e5f0: e1a00004 mov r0, r4 <== NOT EXECUTED } e5f4: e8bd4010 pop {r4, lr} <== NOT EXECUTED nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); e5f8: ea000f11 b 12244 <== NOT EXECUTED 0000a234 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { a234: e92d4030 push {r4, r5, lr} a238: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) a23c: e5900000 ldr r0, [r0] a240: e3500000 cmp r0, #0 ; 0x0 const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { a244: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) a248: 0a000004 beq a260 a24c: e59f103c ldr r1, [pc, #60] ; a290 a250: eb000622 bl bae0 a254: e3500000 cmp r0, #0 ; 0x0 default_ap = ap++; a258: 01a02004 moveq r2, r4 uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) a25c: 0a000004 beq a274 default_ap = ap++; a260: e3a02000 mov r2, #0 ; 0x0 a264: ea000003 b a278 for ( ; ap->name; ap++) if (ap->remote_value == remote_value) a268: e5943008 ldr r3, [r4, #8] a26c: e1530005 cmp r3, r5 a270: 0a000004 beq a288 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) a274: e284400c add r4, r4, #12 ; 0xc a278: e5943000 ldr r3, [r4] a27c: e3530000 cmp r3, #0 ; 0x0 a280: 1afffff8 bne a268 a284: e1a04002 mov r4, r2 <== NOT EXECUTED if (ap->remote_value == remote_value) return ap; return default_ap; } a288: e1a00004 mov r0, r4 a28c: e8bd8030 pop {r4, r5, pc} a290: 00014e87 .word 0x00014e87 0000a294 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { a294: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); a298: eb000125 bl a734 <== NOT EXECUTED if (nap) a29c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return nap->remote_value; a2a0: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } a2a4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00003aa0 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 3aa0: e92d4010 push {r4, lr} if ( !time_buffer ) 3aa4: e2514000 subs r4, r1, #0 ; 0x0 3aa8: 03a00009 moveq r0, #9 ; 0x9 3aac: 08bd8010 popeq {r4, pc} return RTEMS_INVALID_ADDRESS; switch ( option ) { 3ab0: e3500004 cmp r0, #4 ; 0x4 3ab4: 979ff100 ldrls pc, [pc, r0, lsl #2] 3ab8: ea000004 b 3ad0 3abc: 00003ad8 .word 0x00003ad8 <== NOT EXECUTED 3ac0: 00003ae4 .word 0x00003ae4 <== NOT EXECUTED 3ac4: 00003af0 .word 0x00003af0 <== NOT EXECUTED 3ac8: 00003af8 .word 0x00003af8 <== NOT EXECUTED 3acc: 00003b08 .word 0x00003b08 <== NOT EXECUTED 3ad0: e3a0000a mov r0, #10 ; 0xa 3ad4: e8bd8010 pop {r4, pc} case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 3ad8: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 3adc: e8bd4010 pop {r4, lr} if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; switch ( option ) { case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 3ae0: ea000025 b 3b7c case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 3ae4: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 3ae8: e8bd4010 pop {r4, lr} switch ( option ) { case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 3aec: ea000008 b 3b14 case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 3af0: eb00001d bl 3b6c 3af4: ea000000 b 3afc return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TICKS_PER_SECOND: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); 3af8: eb000013 bl 3b4c 3afc: e5840000 str r0, [r4] 3b00: e3a00000 mov r0, #0 ; 0x0 3b04: e8bd8010 pop {r4, pc} return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TIME_VALUE: return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 3b08: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 3b0c: e8bd4010 pop {r4, lr} *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TIME_VALUE: return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 3b10: ea00004b b 3c44 00001f8c : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 1f8c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} struct timespec uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 1f90: e251a000 subs sl, r1, #0 ; 0x0 void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 1f94: e24dd040 sub sp, sp, #64 ; 0x40 1f98: e1a08000 mov r8, r0 struct timespec uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 1f9c: 0a000058 beq 2104 * 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. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &uptime ); 1fa0: e28d4030 add r4, sp, #48 ; 0x30 1fa4: e1a00004 mov r0, r4 _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 1fa8: e28d5028 add r5, sp, #40 ; 0x28 * 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. */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _TOD_Get_uptime( &uptime ); 1fac: eb001239 bl 6898 <_TOD_Get_uptime> _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 1fb0: e1a01004 mov r1, r4 1fb4: e1a02005 mov r2, r5 1fb8: e59f014c ldr r0, [pc, #332] ; 210c 1fbc: eb001b27 bl 8c60 <_Timespec_Subtract> } } } #endif (*print)( context, "CPU Usage by thread\n" 1fc0: e1a00008 mov r0, r8 1fc4: e59f1144 ldr r1, [pc, #324] ; 2110 1fc8: e1a0e00f mov lr, pc 1fcc: e12fff1a bx sl 1fd0: e59f613c ldr r6, [pc, #316] ; 2114 _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 1fd4: e28db020 add fp, sp, #32 ; 0x20 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 1fd8: e5963004 ldr r3, [r6, #4] 1fdc: e3530000 cmp r3, #0 ; 0x0 1fe0: 0a00003a beq 20d0 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 1fe4: e5937004 ldr r7, [r3, #4] if ( information ) { 1fe8: e3570000 cmp r7, #0 ; 0x0 1fec: 13a05001 movne r5, #1 ; 0x1 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { struct timespec used; _Timespec_Subtract( 1ff0: 128d9018 addne r9, sp, #24 ; 0x18 api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { 1ff4: 1a000030 bne 20bc 1ff8: ea000034 b 20d0 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; 1ffc: e597301c ldr r3, [r7, #28] 2000: e7934105 ldr r4, [r3, r5, lsl #2] if ( !the_thread ) 2004: e3540000 cmp r4, #0 ; 0x0 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++ ) { 2008: e2855001 add r5, r5, #1 ; 0x1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 200c: 0a00002a beq 20bc continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 2010: e5940008 ldr r0, [r4, #8] 2014: eb000d59 bl 5580 (*print)( 2018: e28d300b add r3, sp, #11 ; 0xb 201c: e5942008 ldr r2, [r4, #8] 2020: e1a00008 mov r0, r8 2024: e59f10ec ldr r1, [pc, #236] ; 2118 2028: e1a0e00f mov lr, pc 202c: e12fff1a bx sl #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 2030: e5942088 ldr r2, [r4, #136] 2034: e5943084 ldr r3, [r4, #132] 2038: e58d2024 str r2, [sp, #36] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 203c: e59f20d8 ldr r2, [pc, #216] ; 211c #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 2040: e58d3020 str r3, [sp, #32] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 2044: e5923000 ldr r3, [r2] 2048: e5942008 ldr r2, [r4, #8] 204c: e5933008 ldr r3, [r3, #8] 2050: e1530002 cmp r3, r2 2054: 1a000006 bne 2074 struct timespec used; _Timespec_Subtract( 2058: e59f00c0 ldr r0, [pc, #192] ; 2120 205c: e28d1030 add r1, sp, #48 ; 0x30 2060: e1a02009 mov r2, r9 2064: eb001afd bl 8c60 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); 2068: e1a0000b mov r0, fp 206c: e1a01009 mov r1, r9 2070: eb001abb bl 8b64 <_Timespec_Add_to> }; _Timespec_Divide( &ran, &total, &ival, &fval ); 2074: e28d203c add r2, sp, #60 ; 0x3c 2078: e28d3038 add r3, sp, #56 ; 0x38 207c: e1a0000b mov r0, fp 2080: e28d1028 add r1, sp, #40 ; 0x28 2084: eb001acf bl 8bc8 <_Timespec_Divide> /* * Print the information */ (*print)( context, 2088: e3a01ffa mov r1, #1000 ; 0x3e8 208c: e59d0024 ldr r0, [sp, #36] 2090: eb004a42 bl 149a0 <__aeabi_uidiv> 2094: e59d203c ldr r2, [sp, #60] 2098: e58d2000 str r2, [sp] 209c: e59d2038 ldr r2, [sp, #56] 20a0: e1a03000 mov r3, r0 20a4: e58d2004 str r2, [sp, #4] 20a8: e1a00008 mov r0, r8 20ac: e59f1070 ldr r1, [pc, #112] ; 2124 20b0: e59d2020 ldr r2, [sp, #32] 20b4: e1a0e00f mov lr, pc 20b8: e12fff1a bx sl 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++ ) { 20bc: e1d731b0 ldrh r3, [r7, #16] 20c0: e1550003 cmp r5, r3 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 20c4: e3a0100d mov r1, #13 ; 0xd 20c8: e28d200b add r2, sp, #11 ; 0xb 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++ ) { 20cc: 9affffca bls 1ffc " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 20d0: e59f3050 ldr r3, [pc, #80] ; 2128 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++ ) { 20d4: e2866004 add r6, r6, #4 ; 0x4 " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 20d8: e1560003 cmp r6, r3 20dc: 1affffbd bne 1fd8 } } } #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS (*print)( context, "Time since last CPU Usage reset %" PRId32 20e0: e3a01ffa mov r1, #1000 ; 0x3e8 20e4: e59d002c ldr r0, [sp, #44] 20e8: eb004a2c bl 149a0 <__aeabi_uidiv> 20ec: e59f1038 ldr r1, [pc, #56] ; 212c 20f0: e1a03000 mov r3, r0 20f4: e59d2028 ldr r2, [sp, #40] 20f8: e1a00008 mov r0, r8 20fc: e1a0e00f mov lr, pc 2100: e12fff1a bx sl "Ticks since last reset = %" PRId32 "\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset ); (*print)( context, "Total Units = %" PRId32 "\n", total_units ); #endif } 2104: e28dd040 add sp, sp, #64 ; 0x40 2108: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 210c: 000216ec .word 0x000216ec 2110: 000183fc .word 0x000183fc 2114: 00021468 .word 0x00021468 2118: 00018441 .word 0x00018441 211c: 00021564 .word 0x00021564 2120: 0002156c .word 0x0002156c 2124: 00018454 .word 0x00018454 2128: 00021478 .word 0x00021478 212c: 0001846c .word 0x0001846c 00009e80 : { 0, 0, 0 }, }; static int rtems_deviceio_errno(rtems_status_code code) { 9e80: e92d4010 push {r4, lr} <== NOT EXECUTED 9e84: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) 9e88: e59f0018 ldr r0, [pc, #24] ; 9ea8 <== NOT EXECUTED 9e8c: eb000100 bl a294 <== NOT EXECUTED 9e90: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 9e94: 0a000001 beq 9ea0 <== NOT EXECUTED { errno = rc; 9e98: eb000242 bl a7a8 <__errno> <== NOT EXECUTED 9e9c: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } 9ea0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 9ea4: e8bd8010 pop {r4, pc} <== NOT EXECUTED 9ea8: 000145e0 .word 0x000145e0 00005110 : int rtems_error( int error_flag, const char *printf_format, ... ) { 5110: e92d000e push {r1, r2, r3} <== NOT EXECUTED 5114: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); chars_written = rtems_verror(error_flag, printf_format, arglist); 5118: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 511c: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 5120: ebffff85 bl 4f3c <== NOT EXECUTED va_end(arglist); return chars_written; } 5124: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 5128: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 512c: e12fff1e bx lr <== NOT EXECUTED 0000125c : int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 125c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 1260: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 1264: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1268: e1a0e000 mov lr, r0 <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 126c: 1a000002 bne 127c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 1270: eb00254c bl a7a8 <__errno> <== NOT EXECUTED 1274: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 1278: ea000005 b 1294 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 127c: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 1280: e593c000 ldr ip, [r3] <== NOT EXECUTED 1284: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 1288: 1a000004 bne 12a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 128c: eb002545 bl a7a8 <__errno> <== NOT EXECUTED 1290: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1294: e5803000 str r3, [r0] <== NOT EXECUTED 1298: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 129c: ea000011 b 12e8 <== NOT EXECUTED parent = *pathloc; 12a0: e891000f ldm r1, {r0, r1, r2, r3} <== NOT EXECUTED 12a4: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 12a8: e1a0100e mov r1, lr <== NOT EXECUTED 12ac: e59f0040 ldr r0, [pc, #64] ; 12f4 <== NOT EXECUTED 12b0: e1a0200d mov r2, sp <== NOT EXECUTED 12b4: e1a0e00f mov lr, pc <== NOT EXECUTED 12b8: e12fff1c bx ip <== NOT EXECUTED if (result != 0){ 12bc: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; 12c0: e1a0500d mov r5, sp <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); if (result != 0){ 12c4: 1afffff3 bne 1298 <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); 12c8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 12cc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12d0: 0a000004 beq 12e8 <== NOT EXECUTED 12d4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 12d8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12dc: 11a0000d movne r0, sp <== NOT EXECUTED 12e0: 11a0e00f movne lr, pc <== NOT EXECUTED 12e4: 112fff13 bxne r3 <== NOT EXECUTED return result; } 12e8: e1a00004 mov r0, r4 <== NOT EXECUTED 12ec: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 12f0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 12f4: 00014b99 .word 0x00014b99 000012f8 : const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 12f8: e92d4070 push {r4, r5, r6, lr} /* * Verify Input parameters. */ if ( !pathname ) 12fc: e250e000 subs lr, r0, #0 ; 0x0 const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 1300: e1a06001 mov r6, r1 1304: e1a04002 mov r4, r2 1308: e1a05003 mov r5, r3 /* * Verify Input parameters. */ if ( !pathname ) 130c: 1a000002 bne 131c rtems_set_errno_and_return_minus_one( EFAULT ); 1310: eb002524 bl a7a8 <__errno> <== NOT EXECUTED 1314: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 1318: ea00003e b 1418 <== NOT EXECUTED if ( !pathloc ) 131c: e3520000 cmp r2, #0 ; 0x0 1320: 1a000002 bne 1330 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 1324: eb00251f bl a7a8 <__errno> <== NOT EXECUTED 1328: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 132c: ea000039 b 1418 <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 1330: e5de3000 ldrb r3, [lr] 1334: e353005c cmp r3, #92 ; 0x5c 1338: 1353002f cmpne r3, #47 ; 0x2f 133c: 13a0c000 movne ip, #0 ; 0x0 1340: 03a0c001 moveq ip, #1 ; 0x1 1344: 0a000001 beq 1350 1348: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 134c: 1a000006 bne 136c <== NOT EXECUTED 1350: e59f30e0 ldr r3, [pc, #224] ; 1438 1354: e5933000 ldr r3, [r3] 1358: e2833014 add r3, r3, #20 ; 0x14 135c: e893000f ldm r3, {r0, r1, r2, r3} 1360: e884000f stm r4, {r0, r1, r2, r3} 1364: e3a02001 mov r2, #1 ; 0x1 1368: ea000005 b 1384 136c: e59f30c4 ldr r3, [pc, #196] ; 1438 <== NOT EXECUTED 1370: e5933000 ldr r3, [r3] <== NOT EXECUTED 1374: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 1378: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 137c: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 1380: e1a0200c mov r2, ip <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 1384: e5943008 ldr r3, [r4, #8] 1388: e5933000 ldr r3, [r3] 138c: e3530000 cmp r3, #0 ; 0x0 1390: 0a00001e beq 1410 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 1394: e08e0002 add r0, lr, r2 1398: e1a01006 mov r1, r6 139c: e1a02004 mov r2, r4 13a0: e1a0e00f mov lr, pc 13a4: e12fff13 bx r3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 13a8: e2703001 rsbs r3, r0, #1 ; 0x1 13ac: 33a03000 movcc r3, #0 ; 0x0 13b0: e3550000 cmp r5, #0 ; 0x0 13b4: 03a03000 moveq r3, #0 ; 0x0 13b8: e3530000 cmp r3, #0 ; 0x0 13bc: 08bd8070 popeq {r4, r5, r6, pc} if ( !pathloc->ops->node_type_h ){ 13c0: e5943008 ldr r3, [r4, #8] 13c4: e5932010 ldr r2, [r3, #16] 13c8: e3520000 cmp r2, #0 ; 0x0 13cc: 0a00000a beq 13fc rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 13d0: e1a00004 mov r0, r4 13d4: e1a0e00f mov lr, pc 13d8: e12fff12 bx r2 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 13dc: e2400003 sub r0, r0, #3 ; 0x3 13e0: e3500001 cmp r0, #1 ; 0x1 13e4: 83a00000 movhi r0, #0 ; 0x0 13e8: 88bd8070 pophi {r4, r5, r6, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 13ec: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 13f0: e5932034 ldr r2, [r3, #52] <== NOT EXECUTED 13f4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 13f8: 1a000009 bne 1424 <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); 13fc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1400: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1404: 11a00004 movne r0, r4 <== NOT EXECUTED 1408: 11a0e00f movne lr, pc <== NOT EXECUTED 140c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1410: eb0024e4 bl a7a8 <__errno> <== NOT EXECUTED 1414: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1418: e5803000 str r3, [r0] <== NOT EXECUTED 141c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1420: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED * 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 ); 1424: e1a00004 mov r0, r4 <== NOT EXECUTED 1428: e1a01006 mov r1, r6 <== NOT EXECUTED 142c: e1a0e00f mov lr, pc <== NOT EXECUTED 1430: e12fff12 bx r2 <== NOT EXECUTED } } return result; } 1434: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 1438: 00013dc8 .word 0x00013dc8 00008464 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 8464: e92d4030 push {r4, r5, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 8468: e59f50dc ldr r5, [pc, #220] ; 854c 846c: e5952000 ldr r2, [r5] 8470: e3a03012 mov r3, #18 ; 0x12 8474: e5823024 str r3, [r2, #36] * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 8478: e24dd018 sub sp, sp, #24 ; 0x18 */ rtems_filesystem_umask = 022; init_fs_mount_table(); 847c: eb0001fa bl 8c6c /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 8480: e59f30c8 ldr r3, [pc, #200] ; 8550 8484: e5933000 ldr r3, [r3] 8488: e3530000 cmp r3, #0 ; 0x0 rtems_fatal_error_occurred( 0xABCD0001 ); 848c: 059f00c0 ldreq r0, [pc, #192] ; 8554 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 8490: 0a000009 beq 84bc rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 8494: e59f30bc ldr r3, [pc, #188] ; 8558 8498: e5932000 ldr r2, [r3] status = mount( 849c: e592300c ldr r3, [r2, #12] 84a0: e58d3000 str r3, [sp] 84a4: e28d0014 add r0, sp, #20 ; 0x14 84a8: e892000e ldm r2, {r1, r2, r3} 84ac: eb0001f5 bl 8c88 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 84b0: e3700001 cmn r0, #1 ; 0x1 84b4: 1a000001 bne 84c0 rtems_fatal_error_occurred( 0xABCD0002 ); 84b8: e59f009c ldr r0, [pc, #156] ; 855c <== NOT EXECUTED 84bc: ebfff14d bl 49f8 <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 84c0: e59d3014 ldr r3, [sp, #20] &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 84c4: e595e000 ldr lr, [r5] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 84c8: e2833018 add r3, r3, #24 ; 0x18 84cc: e893000f ldm r3, {r0, r1, r2, r3} 84d0: e28ec014 add ip, lr, #20 ; 0x14 84d4: e88c000f stm ip, {r0, r1, r2, r3} /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 84d8: e28d4004 add r4, sp, #4 ; 0x4 84dc: e3a01000 mov r1, #0 ; 0x0 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 84e0: e3a03000 mov r3, #0 ; 0x0 84e4: e1ce32b8 strh r3, [lr, #40] * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 84e8: e1a02004 mov r2, r4 84ec: e1a03001 mov r3, r1 84f0: e59f0068 ldr r0, [pc, #104] ; 8560 84f4: ebffe37f bl 12f8 rtems_filesystem_root = loc; 84f8: e595c000 ldr ip, [r5] 84fc: e894000f ldm r4, {r0, r1, r2, r3} 8500: e28cc014 add ip, ip, #20 ; 0x14 8504: e88c000f stm ip, {r0, r1, r2, r3} /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 8508: e3a01000 mov r1, #0 ; 0x0 850c: e1a02004 mov r2, r4 8510: e1a03001 mov r3, r1 8514: e59f0044 ldr r0, [pc, #68] ; 8560 8518: ebffe376 bl 12f8 rtems_filesystem_current = loc; 851c: e595c000 ldr ip, [r5] 8520: e894000f ldm r4, {r0, r1, r2, r3} 8524: e28cc004 add ip, ip, #4 ; 0x4 8528: e88c000f stm ip, {r0, r1, r2, r3} * * 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); 852c: e59f0030 ldr r0, [pc, #48] ; 8564 8530: e59f1030 ldr r1, [pc, #48] ; 8568 8534: eb0001c8 bl 8c5c if ( status != 0 ) 8538: e3500000 cmp r0, #0 ; 0x0 rtems_fatal_error_occurred( 0xABCD0003 ); 853c: 159f0028 ldrne r0, [pc, #40] ; 856c * 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); if ( status != 0 ) 8540: 1affffdd bne 84bc * before device drivers are initialized. So we return via a base * filesystem image and nothing auto-mounted at this point. */ #endif } 8544: e28dd018 add sp, sp, #24 ; 0x18 8548: e8bd8030 pop {r4, r5, pc} 854c: 00013dc8 .word 0x00013dc8 8550: 00014310 .word 0x00014310 8554: abcd0001 .word 0xabcd0001 8558: 000137fc .word 0x000137fc 855c: abcd0002 .word 0xabcd0002 8560: 00014d69 .word 0x00014d69 8564: 00014d6b .word 0x00014d6b 8568: 000001ff .word 0x000001ff 856c: abcd0003 .word 0xabcd0003 0001d794 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 1d794: e5903000 ldr r3, [r0] <== NOT EXECUTED 1d798: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 1d79c: e1530000 cmp r3, r0 <== NOT EXECUTED 1d7a0: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 1d7a4: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 1d7a8: e12fff1e bx lr <== NOT EXECUTED 0000112c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 112c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 1130: e24dd010 sub sp, sp, #16 ; 0x10 <== 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, 0x00, &loc, true ); 1134: e1a0200d mov r2, sp <== NOT EXECUTED 1138: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 113c: e1a05001 mov r5, r1 <== 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, 0x00, &loc, true ); 1140: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 1144: e1a07000 mov r7, r0 <== 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, 0x00, &loc, true ); 1148: eb00006a bl 12f8 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 114c: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1150: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 1154: e3530000 cmp r3, #0 ; 0x0 <== 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, 0x00, &loc, true ); 1158: e1a0800d mov r8, sp <== NOT EXECUTED 115c: e1a04000 mov r4, r0 <== NOT EXECUTED the_jnode = loc.node_access; 1160: e59d6000 ldr r6, [sp] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 1164: 1a000009 bne 1190 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1168: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 116c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1170: 11a0000d movne r0, sp <== NOT EXECUTED 1174: 11a0e00f movne lr, pc <== NOT EXECUTED 1178: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 117c: eb002589 bl a7a8 <__errno> <== NOT EXECUTED 1180: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1184: e5803000 str r3, [r0] <== NOT EXECUTED 1188: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 118c: ea000026 b 122c <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 1190: e1a0000d mov r0, sp <== NOT EXECUTED 1194: e1a0e00f mov lr, pc <== NOT EXECUTED 1198: e12fff13 bx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 119c: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 11a0: 03540000 cmpeq r4, #0 ; 0x0 <== NOT EXECUTED 11a4: 03a0a000 moveq sl, #0 ; 0x0 <== NOT EXECUTED 11a8: 13a0a001 movne sl, #1 ; 0x1 <== NOT EXECUTED 11ac: e59d4008 ldr r4, [sp, #8] <== NOT EXECUTED 11b0: 0a000008 beq 11d8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 11b4: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 11b8: 0a000018 beq 1220 <== NOT EXECUTED 11bc: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 11c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 11c4: 0a000015 beq 1220 <== NOT EXECUTED 11c8: e1a0000d mov r0, sp <== NOT EXECUTED 11cc: e1a0e00f mov lr, pc <== NOT EXECUTED 11d0: e12fff13 bx r3 <== NOT EXECUTED 11d4: ea000011 b 1220 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 11d8: e5857000 str r7, [r5] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 11dc: e1a00007 mov r0, r7 <== NOT EXECUTED 11e0: eb002aa6 bl bc80 <== NOT EXECUTED 11e4: e5850004 str r0, [r5, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 11e8: e5963050 ldr r3, [r6, #80] <== NOT EXECUTED 11ec: e5853008 str r3, [r5, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 11f0: e5963054 ldr r3, [r6, #84] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 11f4: e3540000 cmp r4, #0 ; 0x0 <== 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; 11f8: e585300c str r3, [r5, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 11fc: 0a000009 beq 1228 <== NOT EXECUTED 1200: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 1204: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1208: 0a000006 beq 1228 <== NOT EXECUTED 120c: e1a0000d mov r0, sp <== NOT EXECUTED 1210: e1a0e00f mov lr, pc <== NOT EXECUTED 1214: e12fff13 bx r3 <== NOT EXECUTED 1218: e1a0000a mov r0, sl <== NOT EXECUTED 121c: ea000002 b 122c <== NOT EXECUTED 1220: e3a0000d mov r0, #13 ; 0xd <== NOT EXECUTED 1224: ea000000 b 122c <== NOT EXECUTED 1228: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 122c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1230: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 00006ccc : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 6ccc: e92d41f0 push {r4, r5, r6, r7, r8, lr} uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 6cd0: e2507000 subs r7, r0, #0 ; 0x0 6cd4: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} return; 6cd8: e59f6054 ldr r6, [pc, #84] ; 6d34 for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 6cdc: e2868010 add r8, r6, #16 ; 0x10 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 6ce0: e5963004 ldr r3, [r6, #4] 6ce4: e3530000 cmp r3, #0 ; 0x0 6ce8: 0a00000d beq 6d24 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 6cec: e5935004 ldr r5, [r3, #4] if ( information ) { 6cf0: e3550000 cmp r5, #0 ; 0x0 6cf4: 13a04001 movne r4, #1 ; 0x1 6cf8: 1a000006 bne 6d18 6cfc: ea000008 b 6d24 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; 6d00: e595301c ldr r3, [r5, #28] 6d04: e7933104 ldr r3, [r3, r4, lsl #2] if ( !the_thread ) 6d08: e2530000 subs r0, r3, #0 ; 0x0 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++ ) { 6d0c: e2844001 add r4, r4, #1 ; 0x1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; (*routine)(the_thread); 6d10: 11a0e00f movne lr, pc 6d14: 112fff17 bxne r7 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++ ) { 6d18: e1d531b0 ldrh r3, [r5, #16] 6d1c: e1540003 cmp r4, r3 6d20: 9afffff6 bls 6d00 6d24: e2866004 add r6, r6, #4 ; 0x4 if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 6d28: e1560008 cmp r6, r8 6d2c: 1affffeb bne 6ce0 6d30: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 6d34: 00021468 .word 0x00021468 0000143c : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 143c: e92d4010 push {r4, lr} rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 1440: e59f4098 ldr r4, [pc, #152] ; 14e0 1444: e5940000 ldr r0, [r4] 1448: e3500000 cmp r0, #0 ; 0x0 * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 144c: e24dd004 sub sp, sp, #4 ; 0x4 rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 1450: 0a000015 beq 14ac { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 1454: e3a01034 mov r1, #52 ; 0x34 1458: eb001c44 bl 8570 145c: e59f3080 ldr r3, [pc, #128] ; 14e4 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 1460: e3500000 cmp r0, #0 ; 0x0 int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 1464: e5830000 str r0, [r3] sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 1468: 0280001a addeq r0, r0, #26 ; 0x1a 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) 146c: 0a000017 beq 14d0 rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 1470: e59f3070 ldr r3, [pc, #112] ; 14e8 for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 1474: e5942000 ldr r2, [r4] 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); iop = rtems_libio_iop_freelist = rtems_libio_iops; 1478: e5830000 str r0, [r3] for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 147c: e3a01000 mov r1, #0 ; 0x0 1480: e1a03000 mov r3, r0 1484: ea000000 b 148c iop->data1 = iop + 1; 1488: e503300c str r3, [r3, #-12] 148c: e2811001 add r1, r1, #1 ; 0x1 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 < (rtems_libio_number_iops - 1) ; i++, iop++) 1490: e1510002 cmp r1, r2 iop->data1 = iop + 1; 1494: e2833034 add r3, r3, #52 ; 0x34 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 < (rtems_libio_number_iops - 1) ; i++, iop++) 1498: 1afffffa bne 1488 iop->data1 = iop + 1; iop->data1 = NULL; 149c: e3a03034 mov r3, #52 ; 0x34 14a0: e0220193 mla r2, r3, r1, r0 14a4: e3a03000 mov r3, #0 ; 0x0 14a8: e502300c str r3, [r2, #-12] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 14ac: e59fc038 ldr ip, [pc, #56] ; 14ec 14b0: e59f0038 ldr r0, [pc, #56] ; 14f0 14b4: e3a01001 mov r1, #1 ; 0x1 14b8: e3a02054 mov r2, #84 ; 0x54 14bc: e3a03000 mov r3, #0 ; 0x0 14c0: e58dc000 str ip, [sp] 14c4: eb000afa bl 40b4 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 14c8: e3500000 cmp r0, #0 ; 0x0 14cc: 0a000000 beq 14d4 rtems_fatal_error_occurred( rc ); 14d0: eb000d48 bl 49f8 <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); } 14d4: e28dd004 add sp, sp, #4 ; 0x4 14d8: e8bd4010 pop {r4, lr} /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); 14dc: ea001be0 b 8464 14e0: 000137f4 .word 0x000137f4 14e4: 00015218 .word 0x00015218 14e8: 0001521c .word 0x0001521c 14ec: 00015220 .word 0x00015220 14f0: 4c42494f .word 0x4c42494f 0000888c : { rtems_libio_t *iop; int result=0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 888c: e59f3070 ldr r3, [pc, #112] ; 8904 <== NOT EXECUTED 8890: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 8894: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_file_open( void *node_access ) { 8898: e92d4010 push {r4, lr} <== NOT EXECUTED 889c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_libio_t *iop; int result=0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 88a0: e5930000 ldr r0, [r3] <== NOT EXECUTED 88a4: ebffee9b bl 4318 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 88a8: e59f3058 ldr r3, [pc, #88] ; 8908 <== NOT EXECUTED 88ac: e5932000 ldr r2, [r3] <== NOT EXECUTED 88b0: e59f3054 ldr r3, [pc, #84] ; 890c <== NOT EXECUTED 88b4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 88b8: e5930000 ldr r0, [r3] <== NOT EXECUTED 88bc: ea000007 b 88e0 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 88c0: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 88c4: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 88c8: 0a000003 beq 88dc <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 88cc: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 88d0: e1530004 cmp r3, r4 <== NOT EXECUTED 88d4: 03a04001 moveq r4, #1 ; 0x1 <== NOT EXECUTED 88d8: 0a000004 beq 88f0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 88dc: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 88e0: e1510000 cmp r1, r0 <== NOT EXECUTED 88e4: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 88e8: 3afffff4 bcc 88c0 <== NOT EXECUTED 88ec: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 88f0: e59f300c ldr r3, [pc, #12] ; 8904 <== NOT EXECUTED 88f4: e5930000 ldr r0, [r3] <== NOT EXECUTED 88f8: ebffeecc bl 4430 <== NOT EXECUTED return result; } 88fc: e1a00004 mov r0, r4 <== NOT EXECUTED 8900: e8bd8010 pop {r4, pc} <== NOT EXECUTED 8904: 00015220 .word 0x00015220 8908: 00015218 .word 0x00015218 890c: 000137f4 .word 0x000137f4 00008910 : { rtems_libio_t *iop; int result = 0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 8910: e59f3070 ldr r3, [pc, #112] ; 8988 <== NOT EXECUTED 8914: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 8918: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 891c: e92d4010 push {r4, lr} <== NOT EXECUTED 8920: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_libio_t *iop; int result = 0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 8924: e5930000 ldr r0, [r3] <== NOT EXECUTED 8928: ebffee7a bl 4318 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 892c: e59f3058 ldr r3, [pc, #88] ; 898c <== NOT EXECUTED 8930: e5932000 ldr r2, [r3] <== NOT EXECUTED 8934: e59f3054 ldr r3, [pc, #84] ; 8990 <== NOT EXECUTED 8938: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 893c: e5930000 ldr r0, [r3] <== NOT EXECUTED 8940: ea000007 b 8964 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 8944: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 8948: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 894c: 0a000003 beq 8960 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { 8950: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 8954: e1530004 cmp r3, r4 <== NOT EXECUTED 8958: 03a04001 moveq r4, #1 ; 0x1 <== NOT EXECUTED 895c: 0a000004 beq 8974 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 8960: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 8964: e1510000 cmp r1, r0 <== NOT EXECUTED 8968: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 896c: 3afffff4 bcc 8944 <== NOT EXECUTED 8970: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 8974: e59f300c ldr r3, [pc, #12] ; 8988 <== NOT EXECUTED 8978: e5930000 ldr r0, [r3] <== NOT EXECUTED 897c: ebffeeab bl 4430 <== NOT EXECUTED return result; } 8980: e1a00004 mov r0, r4 <== NOT EXECUTED 8984: e8bd8010 pop {r4, pc} <== NOT EXECUTED 8988: 00015220 .word 0x00015220 898c: 00015218 .word 0x00015218 8990: 000137f4 .word 0x000137f4 0001ce6c : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 1ce6c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 1ce70: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 1ce74: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 1ce78: e1a01000 mov r1, r0 <== NOT EXECUTED 1ce7c: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 1ce80: eb0004b1 bl 1e14c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 1ce84: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED 1ce88: 1a00003b bne 1cf7c <== NOT EXECUTED /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 1ce8c: e59f60f4 ldr r6, [pc, #244] ; 1cf88 <== NOT EXECUTED 1ce90: e59f30f4 ldr r3, [pc, #244] ; 1cf8c <== NOT EXECUTED 1ce94: e5962000 ldr r2, [r6] <== NOT EXECUTED 1ce98: e1520003 cmp r2, r3 <== NOT EXECUTED 1ce9c: 1a00000f bne 1cee0 <== NOT EXECUTED rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 1cea0: e2800040 add r0, r0, #64 ; 0x40 <== NOT EXECUTED 1cea4: ebff9d33 bl 4378 <== NOT EXECUTED if (!tmp) 1cea8: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1ceac: 03a0701a moveq r7, #26 ; 0x1a <== NOT EXECUTED 1ceb0: 0a000031 beq 1cf7c <== NOT EXECUTED #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); 1ceb4: e1a00007 mov r0, r7 <== NOT EXECUTED 1ceb8: e1a01006 mov r1, r6 <== NOT EXECUTED 1cebc: e59f20cc ldr r2, [pc, #204] ; 1cf90 <== NOT EXECUTED 1cec0: eb0005a4 bl 1e558 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 1cec4: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 1cec8: 05865000 streq r5, [r6] <== NOT EXECUTED #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); if (sc != RTEMS_SUCCESSFUL) { 1cecc: 0a000003 beq 1cee0 <== NOT EXECUTED /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 1ced0: e1a00005 mov r0, r5 <== NOT EXECUTED 1ced4: ebff9bac bl 3d8c <== NOT EXECUTED 1ced8: e1a07004 mov r7, r4 <== NOT EXECUTED 1cedc: ea000026 b 1cf7c <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 1cee0: e59f50a0 ldr r5, [pc, #160] ; 1cf88 <== NOT EXECUTED 1cee4: e59f30a0 ldr r3, [pc, #160] ; 1cf8c <== NOT EXECUTED 1cee8: e5954000 ldr r4, [r5] <== NOT EXECUTED 1ceec: e1a0c003 mov ip, r3 <== NOT EXECUTED 1cef0: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 1cef4: e1a0e004 mov lr, r4 <== NOT EXECUTED 1cef8: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 1cefc: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 1cf00: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 1cf04: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 1cf08: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 1cf0c: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1cf10: e88e000f stm lr, {r0, r1, r2, r3} <== NOT EXECUTED rtems_current_user_env->task_id=task_id; /* mark the local values*/ 1cf14: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 1cf18: e4843014 str r3, [r4], #20 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 1cf1c: e59f3070 ldr r3, [pc, #112] ; 1cf94 <== NOT EXECUTED 1cf20: e5933000 ldr r3, [r3] <== NOT EXECUTED 1cf24: e2833018 add r3, r3, #24 ; 0x18 <== NOT EXECUTED 1cf28: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 1cf2c: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 1cf30: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1cf34: e1a0200d mov r2, sp <== NOT EXECUTED 1cf38: e1a03001 mov r3, r1 <== NOT EXECUTED 1cf3c: e59f0054 ldr r0, [pc, #84] ; 1cf98 <== NOT EXECUTED 1cf40: ebff9b40 bl 3c48 <== NOT EXECUTED rtems_filesystem_root = loc; 1cf44: e595c000 ldr ip, [r5] <== NOT EXECUTED 1cf48: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1cf4c: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 1cf50: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 1cf54: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1cf58: e1a0200d mov r2, sp <== NOT EXECUTED 1cf5c: e1a03001 mov r3, r1 <== NOT EXECUTED 1cf60: e59f0030 ldr r0, [pc, #48] ; 1cf98 <== NOT EXECUTED 1cf64: ebff9b37 bl 3c48 <== NOT EXECUTED rtems_filesystem_current = loc; 1cf68: e595c000 ldr ip, [r5] <== NOT EXECUTED 1cf6c: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1cf70: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 1cf74: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 1cf78: e1a0400d mov r4, sp <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 1cf7c: e1a00007 mov r0, r7 <== NOT EXECUTED 1cf80: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1cf84: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 1cf88: 0003b5c8 .word 0x0003b5c8 1cf8c: 000555c0 .word 0x000555c0 1cf90: 0001cd5c .word 0x0001cd5c 1cf94: 00055190 .word 0x00055190 1cf98: 0004018b .word 0x0004018b 0001cdc0 : * 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) { 1cdc0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 1cdc4: e1a05000 mov r5, r0 <== NOT EXECUTED 1cdc8: e24dd008 sub sp, sp, #8 ; 0x8 <== 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); 1cdcc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1cdd0: e1a01000 mov r1, r0 <== NOT EXECUTED 1cdd4: e1a0200d mov r2, sp <== NOT EXECUTED 1cdd8: eb0004db bl 1e14c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 1cddc: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 1cde0: 1a00001b bne 1ce54 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 1cde4: e59f1074 ldr r1, [pc, #116] ; 1ce60 <== NOT EXECUTED 1cde8: e5914000 ldr r4, [r1] <== NOT EXECUTED 1cdec: e59d3000 ldr r3, [sp] <== NOT EXECUTED 1cdf0: e5942000 ldr r2, [r4] <== NOT EXECUTED 1cdf4: e1520003 cmp r2, r3 <== NOT EXECUTED 1cdf8: 1a000004 bne 1ce10 <== NOT EXECUTED /* 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); 1cdfc: eb000600 bl 1e604 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 1ce00: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 1ce04: 1a000012 bne 1ce54 <== NOT EXECUTED free_user_env(tmp); 1ce08: e1a00004 mov r0, r4 <== NOT EXECUTED 1ce0c: ebffffd2 bl 1cd5c <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 1ce10: e59f4048 ldr r4, [pc, #72] ; 1ce60 <== NOT EXECUTED 1ce14: e1a00005 mov r0, r5 <== NOT EXECUTED 1ce18: e1a01004 mov r1, r4 <== NOT EXECUTED 1ce1c: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 1ce20: eb000617 bl 1e684 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 1ce24: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 1ce28: 1a000006 bne 1ce48 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 1ce2c: e1a01004 mov r1, r4 <== NOT EXECUTED 1ce30: e59f202c ldr r2, [pc, #44] ; 1ce64 <== NOT EXECUTED 1ce34: eb0005c7 bl 1e558 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 1ce38: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 1ce3c: 059d3004 ldreq r3, [sp, #4] <== NOT EXECUTED 1ce40: 05843000 streq r3, [r4] <== NOT EXECUTED (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); if (sc != RTEMS_SUCCESSFUL) 1ce44: 0a000002 beq 1ce54 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 1ce48: e59f2018 ldr r2, [pc, #24] ; 1ce68 <== NOT EXECUTED 1ce4c: e59f300c ldr r3, [pc, #12] ; 1ce60 <== NOT EXECUTED 1ce50: e5832000 str r2, [r3] <== NOT EXECUTED return sc; } 1ce54: e1a00001 mov r0, r1 <== NOT EXECUTED 1ce58: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1ce5c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 1ce60: 0003b5c8 .word 0x0003b5c8 1ce64: 0001cd5c .word 0x0001cd5c 1ce68: 000555c0 .word 0x000555c0 0000884c : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 884c: e2003006 and r3, r0, #6 ; 0x6 <== NOT EXECUTED 8850: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 8854: e1a02000 mov r2, r0 <== NOT EXECUTED uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 8858: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 885c: 0a000003 beq 8870 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 8860: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 8864: 01a03122 lsreq r3, r2, #2 <== NOT EXECUTED 8868: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 886c: 02030001 andeq r0, r3, #1 ; 0x1 <== 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 ) { 8870: e3120001 tst r2, #1 ; 0x1 <== NOT EXECUTED fcntl_flags |= O_NONBLOCK; 8874: 13800901 orrne r0, r0, #16384 ; 0x4000 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 8878: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED fcntl_flags |= O_APPEND; 887c: 13800008 orrne r0, r0, #8 ; 0x8 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 8880: e3120b01 tst r2, #1024 ; 0x400 <== NOT EXECUTED fcntl_flags |= O_CREAT; 8884: 13800c02 orrne r0, r0, #512 ; 0x200 <== NOT EXECUTED } return fcntl_flags; } 8888: e12fff1e bx lr <== NOT EXECUTED 00004464 : * size and thus we skip updating the statistics. */ void rtems_malloc_statistics_at_free( void *pointer ) { 4464: e92d4010 push {r4, lr} <== NOT EXECUTED 4468: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 446c: e1a01000 mov r1, r0 <== NOT EXECUTED size_t size; if (_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &size) ) { 4470: e1a0200d mov r2, sp <== NOT EXECUTED 4474: e59f0030 ldr r0, [pc, #48] ; 44ac <== NOT EXECUTED 4478: eb001357 bl 91dc <_Protected_heap_Get_block_size> <== NOT EXECUTED 447c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 4480: 0a000007 beq 44a4 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 4484: e59f1024 ldr r1, [pc, #36] ; 44b0 <== NOT EXECUTED 4488: e59d2000 ldr r2, [sp] <== NOT EXECUTED 448c: e2813024 add r3, r1, #36 ; 0x24 <== NOT EXECUTED 4490: e8930018 ldm r3, {r3, r4} <== NOT EXECUTED 4494: e0933002 adds r3, r3, r2 <== NOT EXECUTED 4498: e2a44000 adc r4, r4, #0 ; 0x0 <== NOT EXECUTED 449c: e5813024 str r3, [r1, #36] <== NOT EXECUTED 44a0: e5814028 str r4, [r1, #40] <== NOT EXECUTED } } 44a4: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 44a8: e8bd8010 pop {r4, pc} <== NOT EXECUTED 44ac: 0005510c .word 0x0005510c 44b0: 00055164 .word 0x00055164 000044b4 : } void rtems_malloc_statistics_at_malloc( void *pointer ) { 44b4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED size_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 44b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED } void rtems_malloc_statistics_at_malloc( void *pointer ) { 44bc: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED size_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 44c0: 0a000015 beq 451c <== NOT EXECUTED void rtems_malloc_statistics_at_malloc( void *pointer ) { size_t actual_size = 0; 44c4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 44c8: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 44cc: e5223004 str r3, [r2, #-4]! <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); 44d0: e1a01000 mov r1, r0 <== NOT EXECUTED 44d4: e1a0200d mov r2, sp <== NOT EXECUTED 44d8: e59f0044 ldr r0, [pc, #68] ; 4524 <== NOT EXECUTED 44dc: eb00133e bl 91dc <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 44e0: e59fc040 ldr ip, [pc, #64] ; 4528 <== NOT EXECUTED 44e4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 44e8: e28c101c add r1, ip, #28 ; 0x1c <== NOT EXECUTED 44ec: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 44f0: e59c0024 ldr r0, [ip, #36] <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 44f4: e0915003 adds r5, r1, r3 <== NOT EXECUTED 44f8: e2a26000 adc r6, r2, #0 ; 0x0 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 44fc: e59c2018 ldr r2, [ip, #24] <== NOT EXECUTED _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); current_depth = s->lifetime_allocated - s->lifetime_freed; 4500: e0601005 rsb r1, r0, r5 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 4504: e1a03005 mov r3, r5 <== NOT EXECUTED 4508: e1a04006 mov r4, r6 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 450c: e1510002 cmp r1, r2 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 4510: e58c301c str r3, [ip, #28] <== NOT EXECUTED 4514: e58c4020 str r4, [ip, #32] <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) s->max_depth = current_depth; 4518: 858c1018 strhi r1, [ip, #24] <== NOT EXECUTED } 451c: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 4520: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 4524: 0005510c .word 0x0005510c 4528: 00055164 .word 0x00055164 0000452c : void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 452c: e59f0008 ldr r0, [pc, #8] ; 453c <== NOT EXECUTED 4530: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 4534: e3a0202c mov r2, #44 ; 0x2c <== NOT EXECUTED 4538: ea009df1 b 2bd04 <== NOT EXECUTED 453c: 00055164 .word 0x00055164 000050ec : void rtems_panic( const char *printf_format, ... ) { 50ec: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED 50f0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 50f4: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 50f8: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 50fc: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED 5100: ebffff8d bl 4f3c <== NOT EXECUTED va_end(arglist); } 5104: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 5108: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 510c: e12fff1e bx lr <== NOT EXECUTED 00027630 : rtems_status_code rtems_rate_monotonic_get_statistics( Objects_Id id, rtems_rate_monotonic_period_statistics *statistics ) { 27630: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; if ( !statistics ) 27634: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_get_statistics( Objects_Id id, rtems_rate_monotonic_period_statistics *statistics ) { 27638: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; if ( !statistics ) 2763c: 03a00009 moveq r0, #9 ; 0x9 <== NOT EXECUTED 27640: 0a000013 beq 27694 <== NOT EXECUTED 27644: e1a01000 mov r1, r0 <== NOT EXECUTED 27648: e1a0200d mov r2, sp <== NOT EXECUTED 2764c: e59f0048 ldr r0, [pc, #72] ; 2769c <== NOT EXECUTED 27650: ebff863a bl 8f40 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 27654: e59d5000 ldr r5, [sp] <== NOT EXECUTED 27658: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 2765c: 13a00004 movne r0, #4 ; 0x4 <== NOT EXECUTED 27660: 1a00000b bne 27694 <== NOT EXECUTED case OBJECTS_LOCAL: *statistics = the_period->Statistics; 27664: e280c054 add ip, r0, #84 ; 0x54 <== NOT EXECUTED 27668: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 2766c: e1a0e004 mov lr, r4 <== NOT EXECUTED 27670: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 27674: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 27678: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 2767c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 27680: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 27684: e89c0003 ldm ip, {r0, r1} <== NOT EXECUTED 27688: e88e0003 stm lr, {r0, r1} <== NOT EXECUTED _Thread_Enable_dispatch(); 2768c: ebff886c bl 9844 <_Thread_Enable_dispatch> <== NOT EXECUTED 27690: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 27694: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 27698: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 2769c: 00055790 .word 0x00055790 000276a0 : rtems_status_code rtems_rate_monotonic_get_status( Objects_Id id, rtems_rate_monotonic_period_status *status ) { 276a0: e92d4070 push {r4, r5, r6, lr} Objects_Locations location; Rate_monotonic_Control *the_period; if ( !status ) 276a4: e2515000 subs r5, r1, #0 ; 0x0 rtems_status_code rtems_rate_monotonic_get_status( Objects_Id id, rtems_rate_monotonic_period_status *status ) { 276a8: e24dd00c sub sp, sp, #12 ; 0xc Objects_Locations location; Rate_monotonic_Control *the_period; if ( !status ) 276ac: 03a00009 moveq r0, #9 ; 0x9 276b0: 0a000021 beq 2773c 276b4: e1a01000 mov r1, r0 276b8: e28d2008 add r2, sp, #8 ; 0x8 276bc: e59f0080 ldr r0, [pc, #128] ; 27744 276c0: ebff861e bl 8f40 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 276c4: e59d3008 ldr r3, [sp, #8] 276c8: e3530000 cmp r3, #0 ; 0x0 276cc: e1a06000 mov r6, r0 276d0: 13a00004 movne r0, #4 ; 0x4 276d4: 1a000018 bne 2773c case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 276d8: e5963050 ldr r3, [r6, #80] <== NOT EXECUTED 276dc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 276e0: 01a02003 moveq r2, r3 <== NOT EXECUTED 276e4: 15932008 ldrne r2, [r3, #8] <== NOT EXECUTED status->state = the_period->state; 276e8: e5963038 ldr r3, [r6, #56] <== NOT EXECUTED if ( status->state == RATE_MONOTONIC_INACTIVE ) { 276ec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 276f0: e885000c stm r5, {r2, r3} <== NOT EXECUTED #else status->since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; status->executed_since_last_period.tv_nsec = 0; 276f4: 05853014 streq r3, [r5, #20] <== NOT EXECUTED status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); status->state = the_period->state; if ( status->state == RATE_MONOTONIC_INACTIVE ) { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS status->since_last_period.tv_sec = 0; 276f8: 05853008 streq r3, [r5, #8] <== NOT EXECUTED status->since_last_period.tv_nsec = 0; 276fc: 0585300c streq r3, [r5, #12] <== NOT EXECUTED #else status->since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; 27700: 05853010 streq r3, [r5, #16] <== NOT EXECUTED 27704: 0a00000a beq 27734 <== NOT EXECUTED * This lets them share one single invocation of _TOD_Get_uptime(). */ #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) struct timespec uptime; _TOD_Get_uptime( &uptime ); 27708: e1a0000d mov r0, sp <== NOT EXECUTED 2770c: ebffdcb9 bl 1e9f8 <_TOD_Get_uptime> <== NOT EXECUTED #endif #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 27710: e2860044 add r0, r6, #68 ; 0x44 <== NOT EXECUTED 27714: e1a0100d mov r1, sp <== NOT EXECUTED 27718: e2852008 add r2, r5, #8 ; 0x8 <== NOT EXECUTED 2771c: ebff8bd1 bl a668 <_Timespec_Subtract> <== NOT EXECUTED status->since_last_period = _Watchdog_Ticks_since_boot - the_period->time_at_period; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _Timespec_Subtract( 27720: e1a0100d mov r1, sp <== NOT EXECUTED 27724: e2852010 add r2, r5, #16 ; 0x10 <== NOT EXECUTED 27728: e59f0018 ldr r0, [pc, #24] ; 27748 <== NOT EXECUTED * This lets them share one single invocation of _TOD_Get_uptime(). */ #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) struct timespec uptime; _TOD_Get_uptime( &uptime ); 2772c: e1a0400d mov r4, sp <== NOT EXECUTED status->since_last_period = _Watchdog_Ticks_since_boot - the_period->time_at_period; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _Timespec_Subtract( 27730: ebff8bcc bl a668 <_Timespec_Subtract> <== NOT EXECUTED the_period->owner->cpu_time_used - the_period->owner_executed_at_period; #endif } _Thread_Enable_dispatch(); 27734: ebff8842 bl 9844 <_Thread_Enable_dispatch> <== NOT EXECUTED 27738: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2773c: e28dd00c add sp, sp, #12 ; 0xc 27740: e8bd8070 pop {r4, r5, r6, pc} 27744: 00055790 .word 0x00055790 27748: 0005534c .word 0x0005534c 0001df50 : void rtems_rate_monotonic_report_statistics( void ) { rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); 1df50: e59f1004 ldr r1, [pc, #4] ; 1df5c <== NOT EXECUTED 1df54: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1df58: eaffff79 b 1dd44 <== NOT EXECUTED 1df5c: 00005128 .word 0x00005128 0001dd44 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 1dd44: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 1dd48: e2515000 subs r5, r1, #0 ; 0x0 <== NOT EXECUTED */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 1dd4c: e24dd070 sub sp, sp, #112 ; 0x70 <== NOT EXECUTED 1dd50: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 1dd54: 0a000071 beq 1df20 <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); 1dd58: e59f11c8 ldr r1, [pc, #456] ; 1df28 <== NOT EXECUTED 1dd5c: e1a0e00f mov lr, pc <== NOT EXECUTED 1dd60: e12fff15 bx r5 <== NOT EXECUTED #if defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) (*print)( context, "--- CPU times are in seconds ---\n" ); 1dd64: e59f11c0 ldr r1, [pc, #448] ; 1df2c <== NOT EXECUTED 1dd68: e1a00006 mov r0, r6 <== NOT EXECUTED 1dd6c: e1a0e00f mov lr, pc <== NOT EXECUTED 1dd70: e12fff15 bx r5 <== NOT EXECUTED #endif #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) (*print)( context, "--- Wall times are in seconds ---\n" ); 1dd74: e59f11b4 ldr r1, [pc, #436] ; 1df30 <== NOT EXECUTED 1dd78: e1a00006 mov r0, r6 <== NOT EXECUTED 1dd7c: e1a0e00f mov lr, pc <== NOT EXECUTED 1dd80: e12fff15 bx r5 <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 1dd84: e59f11a8 ldr r1, [pc, #424] ; 1df34 <== NOT EXECUTED 1dd88: e1a00006 mov r0, r6 <== NOT EXECUTED 1dd8c: e1a0e00f mov lr, pc <== NOT EXECUTED 1dd90: e12fff15 bx r5 <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS " " #endif " WALL TIME\n" ); (*print)( context, " " 1dd94: e1a00006 mov r0, r6 <== NOT EXECUTED 1dd98: e59f1198 ldr r1, [pc, #408] ; 1df38 <== NOT EXECUTED 1dd9c: e1a0e00f mov lr, pc <== NOT EXECUTED 1dda0: e12fff15 bx r5 <== NOT EXECUTED /* * 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 ; 1dda4: e59f3190 ldr r3, [pc, #400] ; 1df3c <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 1dda8: e28d8010 add r8, sp, #16 ; 0x10 <== NOT EXECUTED /* * 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 ; 1ddac: e5937008 ldr r7, [r3, #8] <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 1ddb0: e2889018 add r9, r8, #24 ; 0x18 <== NOT EXECUTED 1ddb4: e28db060 add fp, sp, #96 ; 0x60 <== NOT EXECUTED * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 1ddb8: e288a030 add sl, r8, #48 ; 0x30 <== NOT EXECUTED 1ddbc: ea000051 b 1df08 <== NOT EXECUTED * 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++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 1ddc0: eb00261a bl 27630 <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) 1ddc4: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1ddc8: 1a00004d bne 1df04 <== NOT EXECUTED continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 1ddcc: e28d1048 add r1, sp, #72 ; 0x48 <== NOT EXECUTED 1ddd0: e1a00007 mov r0, r7 <== NOT EXECUTED 1ddd4: eb002631 bl 276a0 <== NOT EXECUTED continue; #endif name[ 0 ] = '\0'; if ( the_status.owner ) { 1ddd8: e59d0048 ldr r0, [sp, #72] <== NOT EXECUTED 1dddc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif name[ 0 ] = '\0'; 1dde0: e5cd406b strb r4, [sp, #107] <== NOT EXECUTED if ( the_status.owner ) { rtems_object_get_name( the_status.owner, sizeof(name), name ); 1dde4: 128d206b addne r2, sp, #107 ; 0x6b <== NOT EXECUTED 1dde8: 13a01005 movne r1, #5 ; 0x5 <== NOT EXECUTED 1ddec: 1bffa5d9 blne 7558 <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, 1ddf0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 1ddf4: e58d3000 str r3, [sp] <== NOT EXECUTED 1ddf8: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED 1ddfc: e1a02007 mov r2, r7 <== NOT EXECUTED 1de00: e58d3004 str r3, [sp, #4] <== NOT EXECUTED 1de04: e59f1134 ldr r1, [pc, #308] ; 1df40 <== NOT EXECUTED 1de08: e28d306b add r3, sp, #107 ; 0x6b <== NOT EXECUTED 1de0c: e1a00006 mov r0, r6 <== NOT EXECUTED 1de10: e1a0e00f mov lr, pc <== NOT EXECUTED 1de14: e12fff15 bx r5 <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 1de18: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 1de1c: e2531000 subs r1, r3, #0 ; 0x0 <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 1de20: e1a0200b mov r2, fp <== NOT EXECUTED 1de24: e1a00009 mov r0, r9 <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 1de28: 1a000004 bne 1de40 <== NOT EXECUTED (*print)( context, "\n" ); 1de2c: e1a00006 mov r0, r6 <== NOT EXECUTED 1de30: e59f110c ldr r1, [pc, #268] ; 1df44 <== NOT EXECUTED 1de34: e1a0e00f mov lr, pc <== NOT EXECUTED 1de38: e12fff15 bx r5 <== NOT EXECUTED 1de3c: ea000030 b 1df04 <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 1de40: eb000584 bl 1f458 <_Timespec_Divide_by_integer> <== NOT EXECUTED &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 1de44: e59d001c ldr r0, [sp, #28] <== NOT EXECUTED 1de48: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED 1de4c: eb006e6a bl 397fc <__aeabi_idiv> <== NOT EXECUTED 1de50: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 1de54: e1a04000 mov r4, r0 <== NOT EXECUTED 1de58: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED 1de5c: e59d0024 ldr r0, [sp, #36] <== NOT EXECUTED 1de60: e58d3000 str r3, [sp] <== NOT EXECUTED 1de64: eb006e64 bl 397fc <__aeabi_idiv> <== NOT EXECUTED 1de68: e59d3060 ldr r3, [sp, #96] <== NOT EXECUTED 1de6c: e58d0004 str r0, [sp, #4] <== NOT EXECUTED 1de70: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED 1de74: e59d0064 ldr r0, [sp, #100] <== NOT EXECUTED 1de78: e58d3008 str r3, [sp, #8] <== NOT EXECUTED 1de7c: eb006e5e bl 397fc <__aeabi_idiv> <== NOT EXECUTED 1de80: e1a03004 mov r3, r4 <== NOT EXECUTED 1de84: e58d000c str r0, [sp, #12] <== NOT EXECUTED 1de88: e59f10b8 ldr r1, [pc, #184] ; 1df48 <== NOT EXECUTED 1de8c: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED 1de90: e1a00006 mov r0, r6 <== NOT EXECUTED 1de94: e1a0e00f mov lr, pc <== NOT EXECUTED 1de98: e12fff15 bx r5 <== NOT EXECUTED * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 1de9c: e1a0200b mov r2, fp <== NOT EXECUTED 1dea0: e1a0000a mov r0, sl <== NOT EXECUTED 1dea4: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED 1dea8: eb00056a bl 1f458 <_Timespec_Divide_by_integer> <== NOT EXECUTED &the_stats.total_wall_time, the_stats.count, &wall_average ); (*print)( context, 1deac: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED 1deb0: e59d0034 ldr r0, [sp, #52] <== NOT EXECUTED 1deb4: eb006e50 bl 397fc <__aeabi_idiv> <== NOT EXECUTED 1deb8: e59d3038 ldr r3, [sp, #56] <== NOT EXECUTED 1debc: e1a04000 mov r4, r0 <== NOT EXECUTED 1dec0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED 1dec4: e59d003c ldr r0, [sp, #60] <== NOT EXECUTED 1dec8: e58d3000 str r3, [sp] <== NOT EXECUTED 1decc: eb006e4a bl 397fc <__aeabi_idiv> <== NOT EXECUTED 1ded0: e59d3060 ldr r3, [sp, #96] <== NOT EXECUTED 1ded4: e58d0004 str r0, [sp, #4] <== NOT EXECUTED 1ded8: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED 1dedc: e59d0064 ldr r0, [sp, #100] <== NOT EXECUTED 1dee0: e58d3008 str r3, [sp, #8] <== NOT EXECUTED 1dee4: eb006e44 bl 397fc <__aeabi_idiv> <== NOT EXECUTED 1dee8: e1a03004 mov r3, r4 <== NOT EXECUTED 1deec: e58d000c str r0, [sp, #12] <== NOT EXECUTED 1def0: e59f1054 ldr r1, [pc, #84] ; 1df4c <== NOT EXECUTED 1def4: e1a00006 mov r0, r6 <== NOT EXECUTED 1def8: e59d2030 ldr r2, [sp, #48] <== NOT EXECUTED 1defc: e1a0e00f mov lr, pc <== NOT EXECUTED 1df00: e12fff15 bx r5 <== NOT EXECUTED * 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++ ) { 1df04: e2877001 add r7, r7, #1 ; 0x1 <== NOT EXECUTED /* * 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 ; 1df08: e59f202c ldr r2, [pc, #44] ; 1df3c <== NOT EXECUTED 1df0c: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 1df10: e1570003 cmp r7, r3 <== NOT EXECUTED id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 1df14: e1a00007 mov r0, r7 <== NOT EXECUTED 1df18: e1a01008 mov r1, r8 <== NOT EXECUTED /* * 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 ; 1df1c: 9affffa7 bls 1ddc0 <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 1df20: e28dd070 add sp, sp, #112 ; 0x70 <== NOT EXECUTED 1df24: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 1df28: 0004018d .word 0x0004018d 1df2c: 000401ab .word 0x000401ab 1df30: 000401cd .word 0x000401cd 1df34: 000401f0 .word 0x000401f0 1df38: 0004023b .word 0x0004023b 1df3c: 00055790 .word 0x00055790 1df40: 00040287 .word 0x00040287 1df44: 000404f8 .word 0x000404f8 1df48: 0004029e .word 0x0004029e 1df4c: 000402bd .word 0x000402bd 0001df60 : 1df60: e59f303c ldr r3, [pc, #60] ; 1dfa4 <== NOT EXECUTED 1df64: e5932000 ldr r2, [r3] <== NOT EXECUTED 1df68: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { 1df6c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 1df70: e5832000 str r2, [r3] <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 1df74: e59f302c ldr r3, [pc, #44] ; 1dfa8 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; 1df78: e1a05003 mov r5, r3 <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 1df7c: e5934008 ldr r4, [r3, #8] <== NOT EXECUTED 1df80: ea000000 b 1df88 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); 1df84: eb000008 bl 1dfac <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 1df88: e595300c ldr r3, [r5, #12] <== NOT EXECUTED 1df8c: e1540003 cmp r4, r3 <== NOT EXECUTED id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); 1df90: e1a00004 mov r0, r4 <== NOT EXECUTED * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 1df94: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 1df98: 9afffff9 bls 1df84 <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } 1df9c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); 1dfa0: eaffae27 b 9844 <_Thread_Enable_dispatch> <== NOT EXECUTED 1dfa4: 0005528c .word 0x0005528c 1dfa8: 00055790 .word 0x00055790 0001dfac : */ rtems_status_code rtems_rate_monotonic_reset_statistics( Objects_Id id ) { 1dfac: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 1dfb0: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 1dfb4: e1a01000 mov r1, r0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 1dfb8: e1a0200d mov r2, sp <== NOT EXECUTED 1dfbc: e59f0048 ldr r0, [pc, #72] ; 1e00c <== NOT EXECUTED 1dfc0: ebffabde bl 8f40 <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 1dfc4: e59d5000 ldr r5, [sp] <== NOT EXECUTED 1dfc8: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 1dfcc: e1a04000 mov r4, r0 <== NOT EXECUTED 1dfd0: 13a00004 movne r0, #4 ; 0x4 <== NOT EXECUTED 1dfd4: 1a00000a bne 1e004 <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 1dfd8: e1a01005 mov r1, r5 <== NOT EXECUTED 1dfdc: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED 1dfe0: e2840054 add r0, r4, #84 ; 0x54 <== NOT EXECUTED 1dfe4: eb003746 bl 2bd04 <== NOT EXECUTED 1dfe8: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED 1dfec: e5843078 str r3, [r4, #120] <== NOT EXECUTED 1dff0: e584305c str r3, [r4, #92] <== NOT EXECUTED 1dff4: e5843060 str r3, [r4, #96] <== NOT EXECUTED 1dff8: e5843074 str r3, [r4, #116] <== NOT EXECUTED _Thread_Enable_dispatch(); 1dffc: ebffae10 bl 9844 <_Thread_Enable_dispatch> <== NOT EXECUTED 1e000: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1e004: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 1e008: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 1e00c: 00055790 .word 0x00055790 0000f614 : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { f614: e92d40f0 push {r4, r5, r6, r7, lr} Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Region_Control *the_region; if ( !starting_address ) f618: e2517000 subs r7, r1, #0 ; 0x0 rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { f61c: e1a04000 mov r4, r0 f620: e24dd008 sub sp, sp, #8 ; 0x8 f624: e1a06002 mov r6, r2 Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Region_Control *the_region; if ( !starting_address ) f628: 03a04009 moveq r4, #9 ; 0x9 f62c: 0a000029 beq f6d8 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ f630: e59f30ac ldr r3, [pc, #172] ; f6e4 f634: e5930000 ldr r0, [r3] f638: eb0008c6 bl 11958 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) f63c: e1a01004 mov r1, r4 f640: e59f00a0 ldr r0, [pc, #160] ; f6e8 f644: e1a0200d mov r2, sp f648: eb000f3f bl 1334c <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { f64c: e59d5000 ldr r5, [sp] f650: e3550000 cmp r5, #0 ; 0x0 f654: e1a04000 mov r4, r0 f658: 0a000003 beq f66c f65c: e3550001 cmp r5, #1 ; 0x1 f660: 03a04004 moveq r4, #4 ; 0x4 f664: 1a000017 bne f6c8 f668: ea000017 b f6cc case OBJECTS_LOCAL: heap_status = _Heap_Extend( f66c: e1a01007 mov r1, r7 f670: e1a02006 mov r2, r6 f674: e2800068 add r0, r0, #104 ; 0x68 f678: e28d3004 add r3, sp, #4 ; 0x4 f67c: eb000baf bl 12540 <_Heap_Extend> starting_address, length, &amount_extended ); switch ( heap_status ) { f680: e3500001 cmp r0, #1 ; 0x1 f684: 03a04009 moveq r4, #9 ; 0x9 f688: 0a00000f beq f6cc f68c: 3a000002 bcc f69c f690: e3500002 cmp r0, #2 ; 0x2 f694: 1a00000b bne f6c8 f698: ea000008 b f6c0 case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; f69c: e59d1004 ldr r1, [sp, #4] f6a0: e5942054 ldr r2, [r4, #84] the_region->maximum_segment_size += amount_extended; f6a4: e594305c ldr r3, [r4, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; f6a8: e0822001 add r2, r2, r1 the_region->maximum_segment_size += amount_extended; f6ac: e0833001 add r3, r3, r1 f6b0: e584305c str r3, [r4, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; f6b4: e5842054 str r2, [r4, #84] the_region->maximum_segment_size += amount_extended; f6b8: e1a04005 mov r4, r5 f6bc: ea000002 b f6cc return_status = RTEMS_SUCCESSFUL; break; f6c0: e3a04018 mov r4, #24 ; 0x18 f6c4: ea000000 b f6cc f6c8: e3a04019 mov r4, #25 ; 0x19 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); f6cc: e59f3010 ldr r3, [pc, #16] ; f6e4 f6d0: e5930000 ldr r0, [r3] f6d4: eb0008bb bl 119c8 <_API_Mutex_Unlock> return return_status; } f6d8: e1a00004 mov r0, r4 f6dc: e28dd008 add sp, sp, #8 ; 0x8 f6e0: e8bd80f0 pop {r4, r5, r6, r7, pc} f6e4: 0002ed9c .word 0x0002ed9c f6e8: 0002eb74 .word 0x0002eb74 0000fa10 : Objects_Id id, void *segment, size_t size, size_t *old_size ) { fa10: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} uint32_t osize; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) fa14: e253a000 subs sl, r3, #0 ; 0x0 Objects_Id id, void *segment, size_t size, size_t *old_size ) { fa18: e24dd010 sub sp, sp, #16 ; 0x10 fa1c: e1a04000 mov r4, r0 fa20: e1a06001 mov r6, r1 fa24: e1a07002 mov r7, r2 uint32_t osize; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) fa28: 0a000029 beq fad4 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); fa2c: e59f80b0 ldr r8, [pc, #176] ; fae4 fa30: e5980000 ldr r0, [r8] fa34: eb0007c7 bl 11958 <_API_Mutex_Lock> fa38: e1a01004 mov r1, r4 fa3c: e59f00a4 ldr r0, [pc, #164] ; fae8 fa40: e28d2008 add r2, sp, #8 ; 0x8 fa44: eb000e40 bl 1334c <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { fa48: e59d3008 ldr r3, [sp, #8] fa4c: e3530000 cmp r3, #0 ; 0x0 fa50: e1a05000 mov r5, r0 fa54: 0a000005 beq fa70 fa58: e3530001 cmp r3, #1 ; 0x1 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); fa5c: e5980000 ldr r0, [r8] return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { fa60: 03a04004 moveq r4, #4 ; 0x4 fa64: 13a04019 movne r4, #25 ; 0x19 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); fa68: eb0007d6 bl 119c8 <_API_Mutex_Unlock> fa6c: ea000019 b fad8 case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( fa70: e28d3004 add r3, sp, #4 ; 0x4 fa74: e28dc00c add ip, sp, #12 ; 0xc fa78: e1a01006 mov r1, r6 fa7c: e1a02007 mov r2, r7 fa80: e2800068 add r0, r0, #104 ; 0x68 fa84: e58dc000 str ip, [sp] fa88: eb000c2a bl 12b38 <_Heap_Resize_block> segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; fa8c: e59d3004 ldr r3, [sp, #4] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) fa90: e2504000 subs r4, r0, #0 ; 0x0 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; fa94: e58a3000 str r3, [sl] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) fa98: 1a000005 bne fab4 fa9c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED faa0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED faa4: 0a000002 beq fab4 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ faa8: e1a00005 mov r0, r5 <== NOT EXECUTED faac: eb001d59 bl 17018 <_Region_Process_queue> <== NOT EXECUTED fab0: ea000008 b fad8 <== NOT EXECUTED else _RTEMS_Unlock_allocator(); fab4: e59f3028 ldr r3, [pc, #40] ; fae4 fab8: e5930000 ldr r0, [r3] fabc: eb0007c1 bl 119c8 <_API_Mutex_Unlock> return fac0: e3540000 cmp r4, #0 ; 0x0 fac4: 0a000003 beq fad8 fac8: e3540001 cmp r4, #1 ; 0x1 facc: 0284400c addeq r4, r4, #12 ; 0xc fad0: 0a000000 beq fad8 return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; fad4: e3a04009 mov r4, #9 ; 0x9 } fad8: e1a00004 mov r0, r4 fadc: e28dd010 add sp, sp, #16 ; 0x10 fae0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} fae4: 0002ed9c .word 0x0002ed9c fae8: 0002eb74 .word 0x0002eb74 000040b4 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 40b4: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attributes; CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) 40b8: e250a000 subs sl, r0, #0 ; 0x0 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 40bc: e24dd018 sub sp, sp, #24 ; 0x18 40c0: e1a07001 mov r7, r1 40c4: e1a04002 mov r4, r2 40c8: e1a08003 mov r8, r3 40cc: e59d9038 ldr r9, [sp, #56] register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attributes; CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) 40d0: 02800003 addeq r0, r0, #3 ; 0x3 40d4: 0a000062 beq 4264 return RTEMS_INVALID_NAME; if ( !id ) 40d8: e3590000 cmp r9, #0 ; 0x0 40dc: 03a00009 moveq r0, #9 ; 0x9 40e0: 0a00005f beq 4264 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 40e4: e21220c0 ands r2, r2, #192 ; 0xc0 40e8: 0a000008 beq 4110 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 40ec: e2043030 and r3, r4, #48 ; 0x30 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 40f0: e3530010 cmp r3, #16 ; 0x10 40f4: 0a000001 beq 4100 40f8: e3530020 cmp r3, #32 ; 0x20 40fc: 1a000057 bne 4260 4100: e3140004 tst r4, #4 ; 0x4 4104: 0a000055 beq 4260 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 4108: e35200c0 cmp r2, #192 ; 0xc0 410c: 0a000053 beq 4260 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 4110: e2146030 ands r6, r4, #48 ; 0x30 4114: 0a000002 beq 4124 4118: e3570001 cmp r7, #1 ; 0x1 411c: 83a0000a movhi r0, #10 ; 0xa 4120: 8a00004f bhi 4264 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4124: e59f2140 ldr r2, [pc, #320] ; 426c 4128: e5923000 ldr r3, [r2] 412c: e2833001 add r3, r3, #1 ; 0x1 4130: e5823000 str r3, [r2] * 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 ); 4134: e59f0134 ldr r0, [pc, #308] ; 4270 4138: eb0004da bl 54a8 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 413c: e2505000 subs r5, r0, #0 ; 0x0 4140: 1a000002 bne 4150 _Thread_Enable_dispatch(); 4144: eb000825 bl 61e0 <_Thread_Enable_dispatch> 4148: e3a00005 mov r0, #5 ; 0x5 414c: ea000044 b 4264 * If it is not a counting semaphore, then it is either a * simple binary semaphore or a more powerful mutex style binary * semaphore. */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { 4150: e3560000 cmp r6, #0 ; 0x0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 4154: e5854010 str r4, [r5, #16] * If it is not a counting semaphore, then it is either a * simple binary semaphore or a more powerful mutex style binary * semaphore. */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { 4158: 0a000029 beq 4204 CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 415c: e3140040 tst r4, #64 ; 0x40 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 4160: 13a03002 movne r3, #2 ; 0x2 */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 4164: 1a000004 bne 417c the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 4168: e3140080 tst r4, #128 ; 0x80 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 416c: 13a03003 movne r3, #3 ; 0x3 if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 4170: 1a000001 bne 417c the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; else if ( _Attributes_Is_priority( attribute_set ) ) 4174: e2143004 ands r3, r4, #4 ; 0x4 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; 4178: 13a03001 movne r3, #1 ; 0x1 else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 417c: e3560010 cmp r6, #16 ; 0x10 else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; else if ( _Attributes_Is_priority( attribute_set ) ) the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; 4180: e58d3008 str r3, [sp, #8] case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; 4184: 13a03002 movne r3, #2 ; 0x2 4188: 158d3000 strne r3, [sp] the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 418c: 1a00000b bne 41c0 the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 4190: e59d2008 ldr r2, [sp, #8] else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 4194: e3a03000 mov r3, #0 ; 0x0 4198: e58d3000 str r3, [sp] switch ( the_mutex_attributes.discipline ) { 419c: e3520003 cmp r2, #3 ; 0x3 41a0: 979ff102 ldrls pc, [pc, r2, lsl #2] 41a4: ea000007 b 41c8 <== NOT EXECUTED 41a8: 000041c0 .word 0x000041c0 <== NOT EXECUTED 41ac: 000041c0 .word 0x000041c0 <== NOT EXECUTED 41b0: 000041b8 .word 0x000041b8 <== NOT EXECUTED 41b4: 000041b8 .word 0x000041b8 <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; 41b8: e3a03001 mov r3, #1 ; 0x1 41bc: ea000000 b 41c4 break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; 41c0: e3a03000 mov r3, #0 ; 0x0 41c4: e5cd3004 strb r3, [sp, #4] } the_mutex_attributes.priority_ceiling = priority_ceiling; mutex_status = _CORE_mutex_Initialize( 41c8: e3570001 cmp r7, #1 ; 0x1 41cc: 13a02000 movne r2, #0 ; 0x0 41d0: 03a02001 moveq r2, #1 ; 0x1 41d4: e2850014 add r0, r5, #20 ; 0x14 41d8: e1a0100d mov r1, sp } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; 41dc: e58d800c str r8, [sp, #12] mutex_status = _CORE_mutex_Initialize( 41e0: eb0002d9 bl 4d4c <_CORE_mutex_Initialize> &the_semaphore->Core_control.mutex, &the_mutex_attributes, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { 41e4: e3500006 cmp r0, #6 ; 0x6 41e8: 1a000012 bne 4238 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 41ec: e59f007c ldr r0, [pc, #124] ; 4270 <== NOT EXECUTED 41f0: e1a01005 mov r1, r5 <== NOT EXECUTED 41f4: eb00057a bl 57e4 <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 41f8: eb0007f8 bl 61e0 <_Thread_Enable_dispatch> <== NOT EXECUTED 41fc: e3a00013 mov r0, #19 ; 0x13 <== NOT EXECUTED 4200: ea000017 b 4264 <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) 4204: e3140004 tst r4, #4 ; 0x4 the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 4208: 13a03001 movne r3, #1 ; 0x1 /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 420c: e3a0c000 mov ip, #0 ; 0x0 _Thread_Enable_dispatch(); return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 4210: 158d3014 strne r3, [sp, #20] */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 4214: e1a02007 mov r2, r7 /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 4218: e3e03000 mvn r3, #0 ; 0x0 */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 421c: e2850014 add r0, r5, #20 ; 0x14 4220: e28d1010 add r1, sp, #16 ; 0x10 } } else { if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; else the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; 4224: 058d6014 streq r6, [sp, #20] /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 4228: e58d3010 str r3, [sp, #16] /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; 422c: e58dc00c str ip, [sp, #12] /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 4230: e58dc000 str ip, [sp] the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 4234: eb000391 bl 5080 <_CORE_semaphore_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4238: e59f3030 ldr r3, [pc, #48] ; 4270 423c: e5952008 ldr r2, [r5, #8] 4240: e593101c ldr r1, [r3, #28] 4244: e1d530b8 ldrh r3, [r5, #8] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4248: e585a00c str sl, [r5, #12] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 424c: e7815103 str r5, [r1, r3, lsl #2] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 4250: e5892000 str r2, [r9] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 4254: eb0007e1 bl 61e0 <_Thread_Enable_dispatch> 4258: e3a00000 mov r0, #0 ; 0x0 425c: ea000000 b 4264 return RTEMS_SUCCESSFUL; 4260: e3a0000b mov r0, #11 ; 0xb } 4264: e28dd018 add sp, sp, #24 ; 0x18 4268: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 426c: 0001538c .word 0x0001538c 4270: 000152b4 .word 0x000152b4 0001e0a4 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 1e0a4: e52de004 push {lr} ; (str lr, [sp, #-4]!) 1e0a8: e24dd004 sub sp, sp, #4 ; 0x4 1e0ac: e1a01000 mov r1, r0 1e0b0: e1a0200d mov r2, sp 1e0b4: e59f0048 ldr r0, [pc, #72] ; 1e104 1e0b8: ebffaba0 bl 8f40 <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 1e0bc: e59d2000 ldr r2, [sp] 1e0c0: e3520000 cmp r2, #0 ; 0x0 1e0c4: 13a00004 movne r0, #4 ; 0x4 1e0c8: 1a00000b bne 1e0fc case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 1e0cc: e5903010 ldr r3, [r0, #16] 1e0d0: e2131030 ands r1, r3, #48 ; 0x30 1e0d4: e2800014 add r0, r0, #20 ; 0x14 1e0d8: 0a000003 beq 1e0ec _CORE_mutex_Flush( 1e0dc: e1a01002 mov r1, r2 1e0e0: e3a02001 mov r2, #1 ; 0x1 1e0e4: ebffa838 bl 81cc <_CORE_mutex_Flush> 1e0e8: ea000001 b 1e0f4 &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 1e0ec: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 1e0f0: ebffa902 bl 8500 <_CORE_semaphore_Flush> <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 1e0f4: ebffadd2 bl 9844 <_Thread_Enable_dispatch> 1e0f8: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1e0fc: e28dd004 add sp, sp, #4 ; 0x4 1e100: e8bd8000 pop {pc} 1e104: 000551a8 .word 0x000551a8 00012f38 : */ void rtems_shutdown_executive( uint32_t result ) { 12f38: e52de004 push {lr} ; (str lr, [sp, #-4]!) if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 12f3c: e59f2024 ldr r2, [pc, #36] ; 12f68 12f40: e5923000 ldr r3, [r2] 12f44: e3530004 cmp r3, #4 ; 0x4 */ void rtems_shutdown_executive( uint32_t result ) { 12f48: e24dd030 sub sp, sp, #48 ; 0x30 12f4c: 13a03004 movne r3, #4 ; 0x4 Context_Control *context_p = &context_area; if ( _System_state_Is_up(_System_state_Get ()) ) context_p = &_Thread_Executing->Registers; _Context_Switch( context_p, &_Thread_BSP_context ); 12f50: 11a0000d movne r0, sp 12f54: 159f1010 ldrne r1, [pc, #16] ; 12f6c 12f58: 15823000 strne r3, [r2] 12f5c: 1bffd1b2 blne 762c <_CPU_Context_switch> if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } } 12f60: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED 12f64: e8bd8000 pop {pc} <== NOT EXECUTED 12f68: 00015534 .word 0x00015534 12f6c: 0001535c .word 0x0001535c 00002a84 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 2a84: e59f3084 ldr r3, [pc, #132] ; 2b10 <== NOT EXECUTED 2a88: e5933000 ldr r3, [r3] <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2a8c: e1a0c00d mov ip, sp <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2a90: e59300c8 ldr r0, [r3, #200] <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2a94: e92dd810 push {r4, fp, ip, lr, pc} <== NOT EXECUTED 2a98: e24cb004 sub fp, ip, #4 ; 0x4 <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2a9c: e15b0000 cmp fp, r0 <== NOT EXECUTED 2aa0: 33a04000 movcc r4, #0 ; 0x0 <== NOT EXECUTED 2aa4: 3a000004 bcc 2abc <== NOT EXECUTED 2aa8: e59330c4 ldr r3, [r3, #196] <== NOT EXECUTED 2aac: e0803003 add r3, r0, r3 <== NOT EXECUTED 2ab0: e15b0003 cmp fp, r3 <== NOT EXECUTED 2ab4: 83a04000 movhi r4, #0 ; 0x0 <== NOT EXECUTED 2ab8: 93a04001 movls r4, #1 ; 0x1 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 2abc: e59f3050 ldr r3, [pc, #80] ; 2b14 <== NOT EXECUTED 2ac0: e5933000 ldr r3, [r3] <== NOT EXECUTED 2ac4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2ac8: 03a01001 moveq r1, #1 ; 0x1 <== NOT EXECUTED 2acc: 0a000005 beq 2ae8 <== NOT EXECUTED pattern_ok = (!memcmp( 2ad0: e59f1040 ldr r1, [pc, #64] ; 2b18 <== NOT EXECUTED 2ad4: e2800008 add r0, r0, #8 ; 0x8 <== NOT EXECUTED 2ad8: e3a02010 mov r2, #16 ; 0x10 <== NOT EXECUTED 2adc: eb00a3cd bl 2ba18 <== NOT EXECUTED 2ae0: e2701001 rsbs r1, r0, #1 ; 0x1 <== NOT EXECUTED 2ae4: 33a01000 movcc r1, #0 ; 0x0 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 2ae8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 2aec: 0a000002 beq 2afc <== NOT EXECUTED 2af0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 2af4: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 2af8: 189da810 ldmne sp, {r4, fp, sp, pc} <== NOT EXECUTED return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 2afc: e59f300c ldr r3, [pc, #12] ; 2b10 <== NOT EXECUTED 2b00: e5930000 ldr r0, [r3] <== NOT EXECUTED 2b04: ebffffc4 bl 2a1c <== NOT EXECUTED 2b08: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return true; } 2b0c: e89da810 ldm sp, {r4, fp, sp, pc} <== NOT EXECUTED 2b10: 00055344 .word 0x00055344 2b14: 00042090 .word 0x00042090 2b18: 000550dc .word 0x000550dc 00002a0c : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 2a0c: e59f1004 ldr r1, [pc, #4] ; 2a18 <== NOT EXECUTED 2a10: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2a14: eaffffe1 b 29a0 <== NOT EXECUTED 2a18: 00005128 .word 0x00005128 000029a0 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 29a0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED print_context = context; 29a4: e59f704c ldr r7, [pc, #76] ; 29f8 <== NOT EXECUTED print_handler = print; 29a8: e59f604c ldr r6, [pc, #76] ; 29fc <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 29ac: e1a04001 mov r4, r1 <== NOT EXECUTED 29b0: e1a05000 mov r5, r0 <== NOT EXECUTED print_context = context; print_handler = print; 29b4: e5861000 str r1, [r6] <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 29b8: e5870000 str r0, [r7] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 29bc: e59f103c ldr r1, [pc, #60] ; 2a00 <== NOT EXECUTED 29c0: e1a0e00f mov lr, pc <== NOT EXECUTED 29c4: e12fff14 bx r4 <== NOT EXECUTED (*print)( context, 29c8: e59f1034 ldr r1, [pc, #52] ; 2a04 <== NOT EXECUTED 29cc: e1a00005 mov r0, r5 <== NOT EXECUTED 29d0: e1a0e00f mov lr, pc <== NOT EXECUTED 29d4: e12fff14 bx r4 <== 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 ); 29d8: e59f0028 ldr r0, [pc, #40] ; 2a08 <== NOT EXECUTED 29dc: eb0017d2 bl 892c <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 29e0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 29e4: ebffff96 bl 2844 <== NOT EXECUTED print_context = NULL; 29e8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED print_handler = NULL; 29ec: e5863000 str r3, [r6] <== NOT EXECUTED rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage ); /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); print_context = NULL; 29f0: e5873000 str r3, [r7] <== NOT EXECUTED print_handler = NULL; } 29f4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 29f8: 94 .byte 0x94 29f9: 20 .byte 0x20 29fa: 0004 .short 0x0004 29fc: 00042098 .word 0x00042098 2a00: 0003e170 .word 0x0003e170 2a04: 0003e187 .word 0x0003e187 2a08: 00002844 .word 0x00002844 0001e558 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 1e558: e92d40f0 push {r4, r5, r6, r7, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 1e55c: e2516000 subs r6, r1, #0 ; 0x0 rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 1e560: e24dd004 sub sp, sp, #4 ; 0x4 1e564: e1a07002 mov r7, r2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 1e568: 03a00009 moveq r0, #9 ; 0x9 1e56c: 0a000022 beq 1e5fc return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 1e570: e1a0100d mov r1, sp 1e574: ebffacbb bl 9868 <_Thread_Get> switch (location) { 1e578: e59d3000 ldr r3, [sp] rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 1e57c: e1a05000 mov r5, r0 switch (location) { 1e580: e3530000 cmp r3, #0 ; 0x0 1e584: 13a00004 movne r0, #4 ; 0x4 case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; 1e588: 05954114 ldreq r4, [r5, #276] if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 1e58c: 0a000008 beq 1e5b4 1e590: ea000019 b 1e5fc <== NOT EXECUTED /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { 1e594: e5943004 ldr r3, [r4, #4] 1e598: e1530006 cmp r3, r6 1e59c: 1a000003 bne 1e5b0 tvp->dtor = dtor; 1e5a0: e5847010 str r7, [r4, #16] _Thread_Enable_dispatch(); 1e5a4: ebffaca6 bl 9844 <_Thread_Enable_dispatch> 1e5a8: e3a00000 mov r0, #0 ; 0x0 1e5ac: ea000012 b 1e5fc return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 1e5b0: e5944000 ldr r4, [r4] case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 1e5b4: e3540000 cmp r4, #0 ; 0x0 1e5b8: 1afffff5 bne 1e594 } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) 1e5bc: e3a00014 mov r0, #20 ; 0x14 1e5c0: ebffb188 bl abe8 <_Workspace_Allocate> _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 1e5c4: e3500000 cmp r0, #0 ; 0x0 1e5c8: 1a000002 bne 1e5d8 _Thread_Enable_dispatch(); 1e5cc: ebffac9c bl 9844 <_Thread_Enable_dispatch> 1e5d0: e3a0001a mov r0, #26 ; 0x1a 1e5d4: ea000008 b 1e5fc } new->gval = *ptr; new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 1e5d8: e5952114 ldr r2, [r5, #276] _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 1e5dc: e5963000 ldr r3, [r6] new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; 1e5e0: e5850114 str r0, [r5, #276] _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 1e5e4: e5803008 str r3, [r0, #8] new->ptr = ptr; 1e5e8: e5806004 str r6, [r0, #4] new->dtor = dtor; 1e5ec: e5807010 str r7, [r0, #16] new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 1e5f0: e5802000 str r2, [r0] the_thread->task_variables = new; _Thread_Enable_dispatch(); 1e5f4: ebffac92 bl 9844 <_Thread_Enable_dispatch> 1e5f8: e1a00004 mov r0, r4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1e5fc: e28dd004 add sp, sp, #4 ; 0x4 1e600: e8bd80f0 pop {r4, r5, r6, r7, pc} 0001e604 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 1e604: e92d4010 push {r4, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 1e608: e2514000 subs r4, r1, #0 ; 0x0 rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 1e60c: e24dd004 sub sp, sp, #4 ; 0x4 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 1e610: 0a000018 beq 1e678 return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 1e614: e1a0100d mov r1, sp 1e618: ebffac92 bl 9868 <_Thread_Get> switch (location) { 1e61c: e59d3000 ldr r3, [sp] 1e620: e3530000 cmp r3, #0 ; 0x0 1e624: 13a00004 movne r0, #4 ; 0x4 case OBJECTS_LOCAL: tvp = the_thread->task_variables; 1e628: 01a02003 moveq r2, r3 1e62c: 05901114 ldreq r1, [r0, #276] return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); switch (location) { 1e630: 0a00000d beq 1e66c 1e634: ea000010 b 1e67c <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { 1e638: e5913004 ldr r3, [r1, #4] 1e63c: e1530004 cmp r3, r4 1e640: 1a000007 bne 1e664 1e644: e5913000 ldr r3, [r1] if (prev) 1e648: e3520000 cmp r2, #0 ; 0x0 prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; 1e64c: 05803114 streq r3, [r0, #276] case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; 1e650: 15823000 strne r3, [r2] else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); 1e654: eb000028 bl 1e6fc <_RTEMS_Tasks_Invoke_task_variable_dtor> _Thread_Enable_dispatch(); 1e658: ebffac79 bl 9844 <_Thread_Enable_dispatch> 1e65c: e3a00000 mov r0, #0 ; 0x0 1e660: ea000005 b 1e67c return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 1e664: e1a02001 mov r2, r1 1e668: e5911000 ldr r1, [r1] the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 1e66c: e3510000 cmp r1, #0 ; 0x0 1e670: 1afffff0 bne 1e638 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 1e674: ebffac72 bl 9844 <_Thread_Enable_dispatch> 1e678: e3a00009 mov r0, #9 ; 0x9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1e67c: e28dd004 add sp, sp, #4 ; 0x4 1e680: e8bd8010 pop {r4, pc} 0001e684 : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 1e684: e92d4030 push {r4, r5, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 1e688: e2515000 subs r5, r1, #0 ; 0x0 rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 1e68c: e24dd004 sub sp, sp, #4 ; 0x4 1e690: e1a04002 mov r4, r2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 1e694: 0a000015 beq 1e6f0 return RTEMS_INVALID_ADDRESS; if ( !result ) 1e698: e3520000 cmp r2, #0 ; 0x0 1e69c: 0a000013 beq 1e6f0 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 1e6a0: e1a0100d mov r1, sp 1e6a4: ebffac6f bl 9868 <_Thread_Get> switch (location) { 1e6a8: e59d3000 ldr r3, [sp] 1e6ac: e3530000 cmp r3, #0 ; 0x0 1e6b0: 13a00004 movne r0, #4 ; 0x4 case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; 1e6b4: 05900114 ldreq r0, [r0, #276] if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 1e6b8: 0a000009 beq 1e6e4 1e6bc: ea00000c b 1e6f4 <== NOT EXECUTED /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { 1e6c0: e5903004 ldr r3, [r0, #4] 1e6c4: e1530005 cmp r3, r5 1e6c8: 1a000004 bne 1e6e0 /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 1e6cc: e590300c ldr r3, [r0, #12] 1e6d0: e5843000 str r3, [r4] _Thread_Enable_dispatch(); 1e6d4: ebffac5a bl 9844 <_Thread_Enable_dispatch> 1e6d8: e3a00000 mov r0, #0 ; 0x0 1e6dc: ea000004 b 1e6f4 return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 1e6e0: e5900000 ldr r0, [r0] case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 1e6e4: e3500000 cmp r0, #0 ; 0x0 1e6e8: 1afffff4 bne 1e6c0 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 1e6ec: ebffac54 bl 9844 <_Thread_Enable_dispatch> return RTEMS_INVALID_ADDRESS; 1e6f0: e3a00009 mov r0, #9 ; 0x9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1e6f4: e28dd004 add sp, sp, #4 ; 0x4 1e6f8: e8bd8030 pop {r4, r5, pc} 00001f50 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 1f50: e59f3018 ldr r3, [pc, #24] ; 1f70 <== NOT EXECUTED 1f54: e5830000 str r0, [r3] <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 1f58: e59f3014 ldr r3, [pc, #20] ; 1f74 <== NOT EXECUTED 1f5c: e5831000 str r1, [r3] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 1f60: e59f3010 ldr r3, [pc, #16] ; 1f78 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 1f64: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; rtems_termios_raw_output_size = raw_output; 1f68: e5832000 str r2, [r3] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 1f6c: e12fff1e bx lr <== NOT EXECUTED 1f70: 00013db0 .word 0x00013db0 1f74: 00013db4 .word 0x00013db4 1f78: 00013db8 .word 0x00013db8 000033e4 : { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 33e4: e59f316c ldr r3, [pc, #364] ; 3558 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 33e8: e590c000 ldr ip, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 33ec: e3a01000 mov r1, #0 ; 0x0 } } rtems_status_code rtems_termios_close (void *arg) { 33f0: e92d4030 push {r4, r5, lr} rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 33f4: e1a02001 mov r2, r1 } } rtems_status_code rtems_termios_close (void *arg) { 33f8: e1a05000 mov r5, r0 rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 33fc: e5930000 ldr r0, [r3] rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 3400: e59c4028 ldr r4, [ip, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3404: eb0003c3 bl 4318 if (sc != RTEMS_SUCCESSFUL) 3408: e3500000 cmp r0, #0 ; 0x0 340c: 1a00001d bne 3488 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 3410: e5943008 ldr r3, [r4, #8] 3414: e2433001 sub r3, r3, #1 ; 0x1 3418: e3530000 cmp r3, #0 ; 0x0 341c: e5843008 str r3, [r4, #8] 3420: 1a000047 bne 3544 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 3424: e59420cc ldr r2, [r4, #204] 3428: e59f312c ldr r3, [pc, #300] ; 355c 342c: e0833282 add r3, r3, r2, lsl #5 3430: e5933004 ldr r3, [r3, #4] 3434: e3530000 cmp r3, #0 ; 0x0 3438: 0a000003 beq 344c /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 343c: e1a00004 mov r0, r4 <== NOT EXECUTED 3440: e1a0e00f mov lr, pc <== NOT EXECUTED 3444: e12fff13 bx r3 <== NOT EXECUTED 3448: ea000001 b 3454 <== NOT EXECUTED } else { /* * default: just flush output buffer */ drainOutput (tty); 344c: e1a00004 mov r0, r4 3450: ebfffdee bl 2c10 } if (tty->device.outputUsesInterrupts 3454: e59430b4 ldr r3, [r4, #180] 3458: e3530002 cmp r3, #2 ; 0x2 345c: 1a00000a bne 348c == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 3460: e59400c4 ldr r0, [r4, #196] <== NOT EXECUTED 3464: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3468: eb000280 bl 3e70 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 346c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3470: 1a000004 bne 3488 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 3474: e59400c8 ldr r0, [r4, #200] <== NOT EXECUTED 3478: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 347c: eb00027b bl 3e70 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 3480: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3484: 0a000000 beq 348c <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3488: eb00055a bl 49f8 <== NOT EXECUTED } if (tty->device.lastClose) 348c: e594309c ldr r3, [r4, #156] 3490: e3530000 cmp r3, #0 ; 0x0 (*tty->device.lastClose)(tty->major, tty->minor, arg); 3494: 11a02005 movne r2, r5 3498: 1284000c addne r0, r4, #12 ; 0xc 349c: 18900003 ldmne r0, {r0, r1} 34a0: 11a0e00f movne lr, pc 34a4: 112fff13 bxne r3 if (tty->forw == NULL) { 34a8: e8940006 ldm r4, {r1, r2} 34ac: e3510000 cmp r1, #0 ; 0x0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 34b0: 15812004 strne r2, [r1, #4] if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { 34b4: 1a000003 bne 34c8 rtems_termios_ttyTail = tty->back; 34b8: e59f30a0 ldr r3, [pc, #160] ; 3560 if ( rtems_termios_ttyTail != NULL ) { 34bc: e3520000 cmp r2, #0 ; 0x0 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; 34c0: e5832000 str r2, [r3] if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; 34c4: 15821000 strne r1, [r2] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 34c8: e5941004 ldr r1, [r4, #4] 34cc: e5942000 ldr r2, [r4] 34d0: e3510000 cmp r1, #0 ; 0x0 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 34d4: 15812000 strne r2, [r1] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 34d8: 1a000003 bne 34ec rtems_termios_ttyHead = tty->forw; 34dc: e59f3080 ldr r3, [pc, #128] ; 3564 if ( rtems_termios_ttyHead != NULL ) { 34e0: e3520000 cmp r2, #0 ; 0x0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 34e4: e5832000 str r2, [r3] if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; 34e8: 15821004 strne r1, [r2, #4] } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); 34ec: e5940014 ldr r0, [r4, #20] 34f0: eb00035f bl 4274 rtems_semaphore_delete (tty->osem); 34f4: e5940018 ldr r0, [r4, #24] 34f8: eb00035d bl 4274 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 34fc: e594008c ldr r0, [r4, #140] 3500: eb00035b bl 4274 if ((tty->device.pollRead == NULL) || 3504: e59430a0 ldr r3, [r4, #160] 3508: e3530000 cmp r3, #0 ; 0x0 350c: 0a000002 beq 351c 3510: e59430b4 ldr r3, [r4, #180] 3514: e3530002 cmp r3, #2 ; 0x2 3518: 1a000001 bne 3524 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 351c: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED 3520: eb000353 bl 4274 <== NOT EXECUTED free (tty->rawInBuf.theBuf); 3524: e5940058 ldr r0, [r4, #88] 3528: eb00144d bl 8664 free (tty->rawOutBuf.theBuf); 352c: e594007c ldr r0, [r4, #124] 3530: eb00144b bl 8664 free (tty->cbuf); 3534: e594001c ldr r0, [r4, #28] 3538: eb001449 bl 8664 free (tty); 353c: e1a00004 mov r0, r4 3540: eb001447 bl 8664 } rtems_semaphore_release (rtems_termios_ttyMutex); 3544: e59f300c ldr r3, [pc, #12] ; 3558 3548: e5930000 ldr r0, [r3] 354c: eb0003b7 bl 4430 return RTEMS_SUCCESSFUL; } 3550: e3a00000 mov r0, #0 ; 0x0 3554: e8bd8030 pop {r4, r5, pc} 3558: 000152a8 .word 0x000152a8 355c: 00015094 .word 0x00015094 3560: 000152ac .word 0x000152ac 3564: 000152b0 .word 0x000152b0 00002174 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2174: e5903090 ldr r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2178: e590c0b4 ldr ip, [r0, #180] <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 217c: e0833001 add r3, r3, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2180: e35c0002 cmp ip, #2 ; 0x2 <== NOT EXECUTED * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 2184: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2188: e5803090 str r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 218c: 1a000005 bne 21a8 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 2190: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 2194: e1a0100c mov r1, ip <== NOT EXECUTED 2198: eb000734 bl 3e70 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 219c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 21a0: 0a00000c beq 21d8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 21a4: eb000a13 bl 49f8 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 21a8: e59030cc ldr r3, [r0, #204] <== NOT EXECUTED 21ac: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 21b0: 1a000006 bne 21d0 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 21b4: e59f3024 ldr r3, [pc, #36] ; 21e0 <== NOT EXECUTED 21b8: e59330b4 ldr r3, [r3, #180] <== NOT EXECUTED 21bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 21c0: 0a000004 beq 21d8 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 21c4: e1a0e00f mov lr, pc <== NOT EXECUTED 21c8: e12fff13 bx r3 <== NOT EXECUTED 21cc: ea000001 b 21d8 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 21d0: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 21d4: eaffff6b b 1f88 <== NOT EXECUTED } } 21d8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 21dc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 21e0: 00015094 .word 0x00015094 000021e4 : * 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) { 21e4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== 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) { 21e8: e59fc2b8 ldr ip, [pc, #696] ; 24a8 <== NOT EXECUTED 21ec: e59030cc ldr r3, [r0, #204] <== NOT EXECUTED 21f0: e08c3283 add r3, ip, r3, lsl #5 <== NOT EXECUTED * 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) { 21f4: e1a04000 mov r4, r0 <== 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) { 21f8: e5930010 ldr r0, [r3, #16] <== NOT EXECUTED * 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) { 21fc: e24dd00c sub sp, sp, #12 ; 0xc <== 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) { 2200: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED * 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) { 2204: e58d1000 str r1, [sp] <== NOT EXECUTED 2208: e1a08002 mov r8, r2 <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 220c: 11a0600c movne r6, ip <== 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) { 2210: 13a05000 movne r5, #0 ; 0x0 <== NOT EXECUTED 2214: 1a00000d bne 2250 <== 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, 2218: e284204a add r2, r4, #74 ; 0x4a <== 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); 221c: e2843030 add r3, r4, #48 ; 0x30 <== NOT EXECUTED 2220: e1a05000 mov r5, r0 <== 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, 2224: e98d000c stmib sp, {r2, r3} <== 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); 2228: e1a0a000 mov sl, r0 <== NOT EXECUTED 222c: e1a09000 mov r9, r0 <== NOT EXECUTED 2230: ea000090 b 2478 <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 2234: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 2238: e59d2000 ldr r2, [sp] <== NOT EXECUTED 223c: e0863283 add r3, r6, r3, lsl #5 <== NOT EXECUTED 2240: e7d20005 ldrb r0, [r2, r5] <== NOT EXECUTED 2244: e1a0e00f mov lr, pc <== NOT EXECUTED 2248: e593f010 ldr pc, [r3, #16] <== NOT EXECUTED 224c: e2855001 add r5, r5, #1 ; 0x1 <== 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--) { 2250: e2588001 subs r8, r8, #1 ; 0x1 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 2254: e1a01004 mov r1, r4 <== 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--) { 2258: 2afffff5 bcs 2234 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 225c: e59450e4 ldr r5, [r4, #228] <== NOT EXECUTED 2260: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 2264: 1a00008b bne 2498 <== NOT EXECUTED 2268: e59430dc ldr r3, [r4, #220] <== NOT EXECUTED 226c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2270: 0a000088 beq 2498 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2274: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 2278: e59410e0 ldr r1, [r4, #224] <== NOT EXECUTED 227c: e1a0e00f mov lr, pc <== NOT EXECUTED 2280: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 2284: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 2288: e58430e4 str r3, [r4, #228] <== NOT EXECUTED 228c: ea000082 b 249c <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2290: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2294: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2298: e59d3000 ldr r3, [sp] <== NOT EXECUTED 229c: e7d37009 ldrb r7, [r3, r9] <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 22a0: 0a00000f beq 22e4 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 22a4: e5d4204a ldrb r2, [r4, #74] <== NOT EXECUTED 22a8: e1520007 cmp r2, r7 <== NOT EXECUTED 22ac: e5d43049 ldrb r3, [r4, #73] <== NOT EXECUTED 22b0: 1a000005 bne 22cc <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 22b4: e1530002 cmp r3, r2 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 22b8: 059430b8 ldreq r3, [r4, #184] <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 22bc: 159430b8 ldrne r3, [r4, #184] <== 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; 22c0: 02233010 eoreq r3, r3, #16 ; 0x10 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 22c4: 13833010 orrne r3, r3, #16 ; 0x10 <== NOT EXECUTED 22c8: ea000003 b 22dc <== NOT EXECUTED } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 22cc: e1530007 cmp r3, r7 <== NOT EXECUTED 22d0: 1a000003 bne 22e4 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 22d4: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 22d8: e3c33010 bic r3, r3, #16 ; 0x10 <== NOT EXECUTED 22dc: e58430b8 str r3, [r4, #184] <== NOT EXECUTED 22e0: ea000001 b 22ec <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { 22e4: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED 22e8: 0a000016 beq 2348 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 22ec: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 22f0: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED 22f4: e3530020 cmp r3, #32 ; 0x20 <== NOT EXECUTED 22f8: 1a000010 bne 2340 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 22fc: e10f6000 mrs r6, CPSR <== NOT EXECUTED 2300: e38630c0 orr r3, r6, #192 ; 0xc0 <== NOT EXECUTED 2304: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 2308: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 230c: e5942094 ldr r2, [r4, #148] <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 2310: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 2314: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 2318: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 231c: 0a000006 beq 233c <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 2320: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 2324: e594107c ldr r1, [r4, #124] <== NOT EXECUTED 2328: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 232c: e0811003 add r1, r1, r3 <== NOT EXECUTED 2330: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2334: e1a0e00f mov lr, pc <== NOT EXECUTED 2338: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 233c: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 2340: e3a0a001 mov sl, #1 ; 0x1 <== NOT EXECUTED 2344: ea00004a b 2474 <== NOT EXECUTED } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 2348: e5940060 ldr r0, [r4, #96] <== NOT EXECUTED 234c: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 2350: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 2354: eb003c82 bl 11564 <__umodsi3> <== NOT EXECUTED 2358: e1a06000 mov r6, r0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 235c: e10fb000 mrs fp, CPSR <== NOT EXECUTED 2360: e38b30c0 orr r3, fp, #192 ; 0xc0 <== NOT EXECUTED 2364: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 2368: e594305c ldr r3, [r4, #92] <== NOT EXECUTED 236c: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 2370: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 2374: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 2378: e0800006 add r0, r0, r6 <== NOT EXECUTED 237c: eb003c78 bl 11564 <__umodsi3> <== NOT EXECUTED 2380: e59430c0 ldr r3, [r4, #192] <== NOT EXECUTED 2384: e1500003 cmp r0, r3 <== NOT EXECUTED 2388: 9a000025 bls 2424 <== NOT EXECUTED 238c: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2390: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 2394: 1a000022 bne 2424 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 2398: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 239c: e3833001 orr r3, r3, #1 ; 0x1 <== NOT EXECUTED 23a0: e58430b8 str r3, [r4, #184] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 23a4: e59f3100 ldr r3, [pc, #256] ; 24ac <== NOT EXECUTED 23a8: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED 23ac: e0023003 and r3, r2, r3 <== NOT EXECUTED 23b0: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED 23b4: 1a00000e bne 23f4 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 23b8: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 23bc: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 23c0: 1a000002 bne 23d0 <== NOT EXECUTED 23c4: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 23c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 23cc: 1a000014 bne 2424 <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 23d0: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 23d4: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 23d8: e58430b8 str r3, [r4, #184] <== NOT EXECUTED (*tty->device.write)(tty->minor, 23dc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 23e0: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 23e4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 23e8: e1a0e00f mov lr, pc <== NOT EXECUTED 23ec: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 23f0: ea00000b b 2424 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 23f4: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 23f8: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED 23fc: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED 2400: 1a000007 bne 2424 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2404: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2408: e59420ac ldr r2, [r4, #172] <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 240c: e3833004 orr r3, r3, #4 ; 0x4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2410: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2414: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { tty->device.stopRemoteTx(tty->minor); 2418: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 241c: 11a0e00f movne lr, pc <== NOT EXECUTED 2420: 112fff12 bxne r2 <== NOT EXECUTED } } } /* reenable interrupts */ rtems_interrupt_enable(level); 2424: e129f00b msr CPSR_fc, fp <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 2428: e594305c ldr r3, [r4, #92] <== NOT EXECUTED 242c: e1560003 cmp r6, r3 <== NOT EXECUTED dropped++; 2430: 02855001 addeq r5, r5, #1 ; 0x1 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 2434: 0a00000e beq 2474 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 2438: e5943058 ldr r3, [r4, #88] <== NOT EXECUTED 243c: e7c37006 strb r7, [r3, r6] <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 2440: e59430e4 ldr r3, [r4, #228] <== NOT EXECUTED 2444: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 2448: e5846060 str r6, [r4, #96] <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 244c: 1a000008 bne 2474 <== NOT EXECUTED 2450: e59430dc ldr r3, [r4, #220] <== NOT EXECUTED 2454: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2458: 0a000005 beq 2474 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 245c: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED 2460: e59410e0 ldr r1, [r4, #224] <== NOT EXECUTED 2464: e1a0e00f mov lr, pc <== NOT EXECUTED 2468: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 246c: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2470: e58420e4 str r2, [r4, #228] <== NOT EXECUTED 2474: e2899001 add r9, r9, #1 ; 0x1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2478: e2588001 subs r8, r8, #1 ; 0x1 <== NOT EXECUTED 247c: 2affff83 bcs 2290 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 2480: e5943078 ldr r3, [r4, #120] <== NOT EXECUTED 2484: e0833005 add r3, r3, r5 <== NOT EXECUTED 2488: e5843078 str r3, [r4, #120] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 248c: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED 2490: eb0007e6 bl 4430 <== NOT EXECUTED 2494: ea000000 b 249c <== NOT EXECUTED return dropped; 2498: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED } 249c: e1a00005 mov r0, r5 <== NOT EXECUTED 24a0: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 24a4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 24a8: 00015094 .word 0x00015094 24ac: 00000402 .word 0x00000402 00003020 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 3020: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 3024: e5903000 ldr r3, [r0] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 3028: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 302c: e5935028 ldr r5, [r3, #40] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 3030: e580100c str r1, [r0, #12] <== NOT EXECUTED } } rtems_status_code rtems_termios_ioctl (void *arg) { 3034: e1a06000 mov r6, r0 <== NOT EXECUTED 3038: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 303c: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 3040: e1a02001 mov r2, r1 <== NOT EXECUTED rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 3044: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3048: eb0004b2 bl 4318 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 304c: e2508000 subs r8, r0, #0 ; 0x0 <== NOT EXECUTED 3050: 1a0000dc bne 33c8 <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 3054: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED 3058: e3520004 cmp r2, #4 ; 0x4 <== NOT EXECUTED 305c: 0a0000ad beq 3318 <== NOT EXECUTED 3060: 8a000005 bhi 307c <== NOT EXECUTED 3064: e3520002 cmp r2, #2 ; 0x2 <== NOT EXECUTED 3068: 0a000026 beq 3108 <== NOT EXECUTED 306c: 8a0000a2 bhi 32fc <== NOT EXECUTED 3070: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED 3074: 1a00000d bne 30b0 <== NOT EXECUTED 3078: ea000018 b 30e0 <== NOT EXECUTED 307c: e59f3354 ldr r3, [pc, #852] ; 33d8 <== NOT EXECUTED 3080: e1520003 cmp r2, r3 <== NOT EXECUTED 3084: 0a0000c2 beq 3394 <== NOT EXECUTED 3088: 8a000002 bhi 3098 <== NOT EXECUTED 308c: e3520005 cmp r2, #5 ; 0x5 <== NOT EXECUTED 3090: 1a000006 bne 30b0 <== NOT EXECUTED 3094: ea00009b b 3308 <== NOT EXECUTED 3098: e59f333c ldr r3, [pc, #828] ; 33dc <== NOT EXECUTED 309c: e1520003 cmp r2, r3 <== NOT EXECUTED 30a0: 0a0000b8 beq 3388 <== NOT EXECUTED 30a4: e2833105 add r3, r3, #1073741825 ; 0x40000001 <== NOT EXECUTED 30a8: e1520003 cmp r2, r3 <== NOT EXECUTED 30ac: 0a00009d beq 3328 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 30b0: e59520cc ldr r2, [r5, #204] <== NOT EXECUTED 30b4: e59f3324 ldr r3, [pc, #804] ; 33e0 <== NOT EXECUTED 30b8: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 30bc: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30c4: 03a0800a moveq r8, #10 ; 0xa <== NOT EXECUTED 30c8: 0a0000bc beq 33c0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 30cc: e1a00005 mov r0, r5 <== NOT EXECUTED 30d0: e1a01006 mov r1, r6 <== NOT EXECUTED 30d4: e1a0e00f mov lr, pc <== NOT EXECUTED 30d8: e12fff13 bx r3 <== NOT EXECUTED 30dc: ea0000a7 b 3380 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 30e0: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED 30e4: e285c030 add ip, r5, #48 ; 0x30 <== NOT EXECUTED 30e8: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30ec: e1a0e004 mov lr, r4 <== NOT EXECUTED 30f0: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30f4: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30f8: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30fc: e59c3000 ldr r3, [ip] <== NOT EXECUTED 3100: e58e3000 str r3, [lr] <== NOT EXECUTED 3104: ea0000ad b 33c0 <== NOT EXECUTED break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 3108: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED 310c: e1a0e003 mov lr, r3 <== NOT EXECUTED 3110: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3114: e285c030 add ip, r5, #48 ; 0x30 <== NOT EXECUTED 3118: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 311c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3120: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 3124: e59530b8 ldr r3, [r5, #184] <== 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; 3128: e59e2000 ldr r2, [lr] <== NOT EXECUTED /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 312c: e3130c02 tst r3, #512 ; 0x200 <== 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; 3130: e58c2000 str r2, [ip] <== NOT EXECUTED /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 3134: 0a000019 beq 31a0 <== NOT EXECUTED 3138: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 313c: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 3140: 1a000016 bne 31a0 <== NOT EXECUTED !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 3144: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3148: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED 314c: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 3150: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3154: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 3158: 0a000010 beq 31a0 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 315c: e10f4000 mrs r4, CPSR <== NOT EXECUTED 3160: e38430c0 orr r3, r4, #192 ; 0xc0 <== NOT EXECUTED 3164: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 3168: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 316c: e5952094 ldr r2, [r5, #148] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 3170: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3174: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 3178: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 317c: 0a000006 beq 319c <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 3180: e5953084 ldr r3, [r5, #132] <== NOT EXECUTED 3184: e595107c ldr r1, [r5, #124] <== NOT EXECUTED 3188: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 318c: e0811003 add r1, r1, r3 <== NOT EXECUTED 3190: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3194: e1a0e00f mov lr, pc <== NOT EXECUTED 3198: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 319c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 31a0: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 31a4: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 31a8: 0a000008 beq 31d0 <== NOT EXECUTED 31ac: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 31b0: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED 31b4: 1a000005 bne 31d0 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 31b8: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 31bc: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED 31c0: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 31c4: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 31c8: e3c33002 bic r3, r3, #2 ; 0x2 <== NOT EXECUTED 31cc: e58530b8 str r3, [r5, #184] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 31d0: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 31d4: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 31d8: 0a000010 beq 3220 <== NOT EXECUTED 31dc: e5953038 ldr r3, [r5, #56] <== NOT EXECUTED 31e0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 31e4: ba00000d blt 3220 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 31e8: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 31ec: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 31f0: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 31f4: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 31f8: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 31fc: 0a000004 beq 3214 <== NOT EXECUTED 3200: e59530b0 ldr r3, [r5, #176] <== NOT EXECUTED 3204: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 3208: 15950010 ldrne r0, [r5, #16] <== NOT EXECUTED 320c: 11a0e00f movne lr, pc <== NOT EXECUTED 3210: 112fff13 bxne r3 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 3214: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3218: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED 321c: e58530b8 str r3, [r5, #184] <== 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) { 3220: e5953038 ldr r3, [r5, #56] <== NOT EXECUTED 3224: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->flow_ctrl |= FL_MDRTS; 3228: b59530b8 ldrlt r3, [r5, #184] <== NOT EXECUTED 322c: b3833c01 orrlt r3, r3, #256 ; 0x100 <== NOT EXECUTED 3230: b58530b8 strlt r3, [r5, #184] <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 3234: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 3238: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXOF; 323c: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 3240: 13833b01 orrne r3, r3, #1024 ; 0x400 <== NOT EXECUTED 3244: 158530b8 strne r3, [r5, #184] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 3248: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 324c: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 3250: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 3254: 13833c02 orrne r3, r3, #512 ; 0x200 <== NOT EXECUTED 3258: 158530b8 strne r3, [r5, #184] <== NOT EXECUTED 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) { 325c: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 3260: e2137002 ands r7, r3, #2 ; 0x2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 3264: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3268: 15853074 strne r3, [r5, #116] <== NOT EXECUTED /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 326c: 1585306c strne r3, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 3270: 15853070 strne r3, [r5, #112] <== NOT EXECUTED 3274: 1a000018 bne 32dc <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); 3278: e1a0100d mov r1, sp <== NOT EXECUTED 327c: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 3280: eb000206 bl 3aa0 <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 3284: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3288: e5d54046 ldrb r4, [r5, #70] <== NOT EXECUTED 328c: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 3290: e0000493 mul r0, r3, r4 <== NOT EXECUTED 3294: eb00386e bl 11454 <__aeabi_uidiv> <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 3298: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 329c: e5850054 str r0, [r5, #84] <== NOT EXECUTED 32a0: e5d53047 ldrb r3, [r5, #71] <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 32a4: 0a000006 beq 32c4 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 32a8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 32ac: 01a03000 moveq r3, r0 <== NOT EXECUTED 32b0: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 32b4: e585706c str r7, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 32b8: e5853074 str r3, [r5, #116] <== NOT EXECUTED rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; 32bc: e5850070 str r0, [r5, #112] <== NOT EXECUTED 32c0: ea000005 b 32dc <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 32c4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 32c8: 03a03001 moveq r3, #1 ; 0x1 <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 32cc: 15854074 strne r4, [r5, #116] <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 32d0: 1585406c strne r4, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 32d4: 15854070 strne r4, [r5, #112] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 32d8: 0585306c streq r3, [r5, #108] <== NOT EXECUTED } } } if (tty->device.setAttributes) 32dc: e59530a8 ldr r3, [r5, #168] <== NOT EXECUTED 32e0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 32e4: 0a000035 beq 33c0 <== NOT EXECUTED (*tty->device.setAttributes)(tty->minor, &tty->termios); 32e8: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 32ec: e2851030 add r1, r5, #48 ; 0x30 <== NOT EXECUTED 32f0: e1a0e00f mov lr, pc <== NOT EXECUTED 32f4: e12fff13 bx r3 <== NOT EXECUTED 32f8: ea000030 b 33c0 <== NOT EXECUTED break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 32fc: e1a00005 mov r0, r5 <== NOT EXECUTED 3300: ebfffe42 bl 2c10 <== NOT EXECUTED 3304: ea00002d b 33c0 <== NOT EXECUTED break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 3308: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 330c: e58530d8 str r3, [r5, #216] <== NOT EXECUTED 3310: e58520d4 str r2, [r5, #212] <== NOT EXECUTED 3314: ea000029 b 33c0 <== NOT EXECUTED break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 3318: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 331c: e58530e0 str r3, [r5, #224] <== NOT EXECUTED 3320: e58520dc str r2, [r5, #220] <== NOT EXECUTED 3324: ea000025 b 33c0 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 3328: e59520cc ldr r2, [r5, #204] <== NOT EXECUTED 332c: e59f30ac ldr r3, [pc, #172] ; 33e0 <== NOT EXECUTED 3330: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 3334: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 3338: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 333c: 0a000003 beq 3350 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 3340: e1a00005 mov r0, r5 <== NOT EXECUTED 3344: e1a0e00f mov lr, pc <== NOT EXECUTED 3348: e12fff13 bx r3 <== NOT EXECUTED 334c: e1a08000 mov r8, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 3350: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED 3354: e5932000 ldr r2, [r3] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3358: e59f3080 ldr r3, [pc, #128] ; 33e0 <== NOT EXECUTED 335c: e7931282 ldr r1, [r3, r2, lsl #5] <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 3360: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3364: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 3368: e58530d0 str r3, [r5, #208] <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); 336c: e58520cc str r2, [r5, #204] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3370: 0a000012 beq 33c0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 3374: e1a00005 mov r0, r5 <== NOT EXECUTED 3378: e1a0e00f mov lr, pc <== NOT EXECUTED 337c: e12fff11 bx r1 <== NOT EXECUTED 3380: e1a08000 mov r8, r0 <== NOT EXECUTED 3384: ea00000d b 33c0 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 3388: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED 338c: e59530cc ldr r3, [r5, #204] <== NOT EXECUTED 3390: ea000009 b 33bc <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 3394: e5952060 ldr r2, [r5, #96] <== NOT EXECUTED 3398: e595305c ldr r3, [r5, #92] <== NOT EXECUTED if ( rawnc < 0 ) 339c: e0521003 subs r1, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 33a0: 45953064 ldrmi r3, [r5, #100] <== NOT EXECUTED 33a4: 40811003 addmi r1, r1, r3 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 33a8: e2852020 add r2, r5, #32 ; 0x20 <== NOT EXECUTED 33ac: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 33b0: e0423003 sub r3, r2, r3 <== NOT EXECUTED 33b4: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED 33b8: e0833001 add r3, r3, r1 <== NOT EXECUTED 33bc: e5823000 str r3, [r2] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 33c0: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 33c4: eb000419 bl 4430 <== NOT EXECUTED args->ioctl_return = sc; 33c8: e586800c str r8, [r6, #12] <== NOT EXECUTED return sc; } 33cc: e1a00008 mov r0, r8 <== NOT EXECUTED 33d0: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 33d4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 33d8: 4004667f .word 0x4004667f 33dc: 4004741a .word 0x4004741a 33e0: 00015094 .word 0x00015094 00003568 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3568: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 356c: e24dd00c sub sp, sp, #12 ; 0xc 3570: e58d2008 str r2, [sp, #8] struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3574: e59f23f4 ldr r2, [pc, #1012] ; 3970 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3578: e1a0b001 mov fp, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 357c: e3a01000 mov r1, #0 ; 0x0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3580: e1a09000 mov r9, r0 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3584: e5920000 ldr r0, [r2] 3588: e1a02001 mov r2, r1 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 358c: e1a07003 mov r7, r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3590: eb000360 bl 4318 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 3594: e250a000 subs sl, r0, #0 ; 0x0 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 3598: 059f33d4 ldreq r3, [pc, #980] ; 3974 359c: 05935000 ldreq r5, [r3] /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 35a0: 0a000007 beq 35c4 35a4: ea0000e6 b 3944 <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { if ((tty->major == major) && (tty->minor == minor)) 35a8: e595300c ldr r3, [r5, #12] 35ac: e1530009 cmp r3, r9 35b0: 1a000002 bne 35c0 35b4: e5953010 ldr r3, [r5, #16] 35b8: e153000b cmp r3, fp 35bc: 0a0000be beq 38bc */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 35c0: e5955000 ldr r5, [r5] <== NOT EXECUTED 35c4: e3550000 cmp r5, #0 ; 0x0 35c8: 1afffff6 bne 35a8 35cc: ea0000df b 3950 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 35d0: e59f33a0 ldr r3, [pc, #928] ; 3978 35d4: e5933000 ldr r3, [r3] 35d8: e5853064 str r3, [r5, #100] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 35dc: e5950064 ldr r0, [r5, #100] 35e0: eb001562 bl 8b70 if (tty->rawInBuf.theBuf == NULL) { 35e4: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 35e8: e5850058 str r0, [r5, #88] if (tty->rawInBuf.theBuf == NULL) { 35ec: 1a000006 bne 360c free(tty); 35f0: e1a00005 mov r0, r5 <== NOT EXECUTED 35f4: eb00141a bl 8664 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 35f8: e59f3370 ldr r3, [pc, #880] ; 3970 <== NOT EXECUTED 35fc: e5930000 ldr r0, [r3] <== NOT EXECUTED 3600: eb00038a bl 4430 <== NOT EXECUTED 3604: e3a0a01a mov sl, #26 ; 0x1a <== NOT EXECUTED 3608: ea0000cd b 3944 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 360c: e59f3368 ldr r3, [pc, #872] ; 397c 3610: e5933000 ldr r3, [r3] 3614: e5853088 str r3, [r5, #136] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 3618: e5950088 ldr r0, [r5, #136] 361c: eb001553 bl 8b70 if (tty->rawOutBuf.theBuf == NULL) { 3620: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 3624: e585007c str r0, [r5, #124] if (tty->rawOutBuf.theBuf == NULL) { 3628: 0a000007 beq 364c return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 362c: e59f334c ldr r3, [pc, #844] ; 3980 3630: e5930000 ldr r0, [r3] 3634: eb00154d bl 8b70 if (tty->cbuf == NULL) { 3638: e3500000 cmp r0, #0 ; 0x0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 363c: e585001c str r0, [r5, #28] if (tty->cbuf == NULL) { 3640: 1a000004 bne 3658 free((void *)(tty->rawOutBuf.theBuf)); 3644: e595007c ldr r0, [r5, #124] <== NOT EXECUTED 3648: eb001405 bl 8664 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 364c: e5950058 ldr r0, [r5, #88] <== NOT EXECUTED 3650: eb001403 bl 8664 <== NOT EXECUTED 3654: eaffffe5 b 35f0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 3658: e59f3314 ldr r3, [pc, #788] ; 3974 365c: e5932000 ldr r2, [r3] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 3660: e3a03000 mov r3, #0 ; 0x0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) 3664: e3520000 cmp r2, #0 ; 0x0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 3668: e885000c stm r5, {r2, r3} if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; 366c: 15825004 strne r5, [r2, #4] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 3670: e59f230c ldr r2, [pc, #780] ; 3984 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 3674: e58530d4 str r3, [r5, #212] tty->tty_snd.sw_arg = NULL; 3678: e58530d8 str r3, [r5, #216] tty->tty_rcv.sw_pfn = NULL; 367c: e58530dc str r3, [r5, #220] tty->tty_rcv.sw_arg = NULL; 3680: e58530e0 str r3, [r5, #224] tty->tty_rcvwakeup = 0; 3684: e58530e4 str r3, [r5, #228] tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 3688: e5923000 ldr r3, [r2] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 368c: e59f82f4 ldr r8, [pc, #756] ; 3988 tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 3690: e3530000 cmp r3, #0 ; 0x0 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 3694: e59f32d8 ldr r3, [pc, #728] ; 3974 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3698: e59f02ec ldr r0, [pc, #748] ; 398c */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 369c: e5834000 str r4, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 36a0: e5d83000 ldrb r3, [r8] 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; 36a4: 05824000 streq r4, [r2] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 36a8: e1830000 orr r0, r3, r0 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 36ac: e584b010 str fp, [r4, #16] tty->major = major; 36b0: e584900c str r9, [r4, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 36b4: e284c014 add ip, r4, #20 ; 0x14 36b8: e3a02054 mov r2, #84 ; 0x54 36bc: e3a01001 mov r1, #1 ; 0x1 36c0: e3a03000 mov r3, #0 ; 0x0 36c4: e58dc000 str ip, [sp] 36c8: eb000279 bl 40b4 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) 36cc: e2502000 subs r2, r0, #0 ; 0x0 36d0: 1a000097 bne 3934 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 36d4: e5d83000 ldrb r3, [r8] 36d8: e59f02b0 ldr r0, [pc, #688] ; 3990 36dc: e284c018 add ip, r4, #24 ; 0x18 36e0: e1830000 orr r0, r3, r0 36e4: e3a01001 mov r1, #1 ; 0x1 36e8: e1a03002 mov r3, r2 36ec: e3a02054 mov r2, #84 ; 0x54 36f0: e58dc000 str ip, [sp] 36f4: eb00026e bl 40b4 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) 36f8: e2501000 subs r1, r0, #0 ; 0x0 36fc: 1a00008c bne 3934 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 3700: e5d83000 ldrb r3, [r8] 3704: e59f0288 ldr r0, [pc, #648] ; 3994 3708: e284c08c add ip, r4, #140 ; 0x8c 370c: e1830000 orr r0, r3, r0 3710: e3a02020 mov r2, #32 ; 0x20 3714: e1a03001 mov r3, r1 3718: e58dc000 str ip, [sp] 371c: eb000264 bl 40b4 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 3720: e2506000 subs r6, r0, #0 ; 0x0 3724: 1a000082 bne 3934 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 3728: e1a0c007 mov ip, r7 372c: e8bc000f ldm ip!, {r0, r1, r2, r3} 3730: e284e098 add lr, r4, #152 ; 0x98 3734: e8ae000f stmia lr!, {r0, r1, r2, r3} 3738: e89c000f ldm ip, {r0, r1, r2, r3} 373c: e88e000f stm lr, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3740: e59430b4 ldr r3, [r4, #180] 3744: e3530002 cmp r3, #2 ; 0x2 RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 3748: e5846094 str r6, [r4, #148] tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 374c: 1a000016 bne 37ac sc = rtems_task_create ( 3750: e5d83000 ldrb r3, [r8] <== NOT EXECUTED 3754: e59f023c ldr r0, [pc, #572] ; 3998 <== NOT EXECUTED 3758: e284c0c8 add ip, r4, #200 ; 0xc8 <== NOT EXECUTED 375c: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3760: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 3764: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 3768: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 376c: e88d1040 stm sp, {r6, ip} <== NOT EXECUTED 3770: eb000356 bl 44d0 <== 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) 3774: e250e000 subs lr, r0, #0 ; 0x0 <== NOT EXECUTED 3778: 1a00006d bne 3934 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 377c: e5d83000 ldrb r3, [r8] <== NOT EXECUTED 3780: e59f0214 ldr r0, [pc, #532] ; 399c <== NOT EXECUTED 3784: e284c0c4 add ip, r4, #196 ; 0xc4 <== NOT EXECUTED 3788: e1830000 orr r0, r3, r0 <== NOT EXECUTED 378c: e3a01009 mov r1, #9 ; 0x9 <== NOT EXECUTED 3790: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 3794: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 3798: e58de000 str lr, [sp] <== NOT EXECUTED 379c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 37a0: eb00034a bl 44d0 <== 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) 37a4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 37a8: 1a000061 bne 3934 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 37ac: e59430a0 ldr r3, [r4, #160] 37b0: e3530000 cmp r3, #0 ; 0x0 37b4: 0a000002 beq 37c4 37b8: e59430b4 ldr r3, [r4, #180] 37bc: e3530002 cmp r3, #2 ; 0x2 37c0: 1a00000b bne 37f4 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 37c4: e59f31bc ldr r3, [pc, #444] ; 3988 <== NOT EXECUTED 37c8: e59f01d0 ldr r0, [pc, #464] ; 39a0 <== NOT EXECUTED 37cc: e5d33000 ldrb r3, [r3] <== NOT EXECUTED 37d0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 37d4: e1830000 orr r0, r3, r0 <== NOT EXECUTED 37d8: e284c068 add ip, r4, #104 ; 0x68 <== NOT EXECUTED 37dc: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED 37e0: e1a03001 mov r3, r1 <== NOT EXECUTED 37e4: e58dc000 str ip, [sp] <== NOT EXECUTED 37e8: eb000231 bl 40b4 <== NOT EXECUTED rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 37ec: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 37f0: 1a00004f bne 3934 <== NOT EXECUTED tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; 37f4: e3a02000 mov r2, #0 ; 0x0 tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; 37f8: e58420b8 str r2, [r4, #184] /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 37fc: e5940064 ldr r0, [r4, #100] tty->highwater = tty->rawInBuf.Size * 3/4; 3800: e5943064 ldr r3, [r4, #100] tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 3804: e3a0c003 mov ip, #3 ; 0x3 tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; 3808: e001039c mul r1, ip, r3 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; 380c: e3a0301c mov r3, #28 ; 0x1c 3810: e5c43042 strb r3, [r4, #66] tty->termios.c_cc[VERASE] = '\177'; 3814: e2833063 add r3, r3, #99 ; 0x63 3818: e5c43043 strb r3, [r4, #67] tty->termios.c_cc[VKILL] = '\025'; 381c: e3a03015 mov r3, #21 ; 0x15 3820: e5c43044 strb r3, [r4, #68] tty->termios.c_cc[VEOF] = '\004'; 3824: e3a03004 mov r3, #4 ; 0x4 3828: e5c43045 strb r3, [r4, #69] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 382c: e283300d add r3, r3, #13 ; 0xd 3830: e5c43049 strb r3, [r4, #73] tty->termios.c_cc[VSTOP] = '\023'; 3834: e2833002 add r3, r3, #2 ; 0x2 3838: e5c4304a strb r3, [r4, #74] tty->termios.c_cc[VSUSP] = '\032'; 383c: e2833007 add r3, r3, #7 ; 0x7 3840: e5c4304b strb r3, [r4, #75] tty->termios.c_cc[VREPRINT] = '\022'; 3844: e3a03012 mov r3, #18 ; 0x12 3848: e5c4304d strb r3, [r4, #77] tty->termios.c_cc[VDISCARD] = '\017'; 384c: e3a0300f mov r3, #15 ; 0xf 3850: e5c4304e strb r3, [r4, #78] tty->termios.c_cc[VWERASE] = '\027'; 3854: e2833008 add r3, r3, #8 ; 0x8 3858: e5c4304f strb r3, [r4, #79] tty->termios.c_cc[VLNEXT] = '\026'; 385c: e3a03016 mov r3, #22 ; 0x16 3860: e5c43050 strb r3, [r4, #80] tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; 3864: e5c4c041 strb ip, [r4, #65] tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; 3868: e5c4204c strb r2, [r4, #76] tty->termios.c_cc[VEOL2] = '\000'; 386c: e5c42051 strb r2, [r4, #81] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 3870: e59fc110 ldr ip, [pc, #272] ; 3988 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3874: e59f3128 ldr r3, [pc, #296] ; 39a4 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 3878: e5dc2000 ldrb r2, [ip] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 387c: e5843030 str r3, [r4, #48] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3880: e59f3120 ldr r3, [pc, #288] ; 39a8 3884: e5843034 str r3, [r4, #52] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 3888: e59f311c ldr r3, [pc, #284] ; 39ac 388c: e5843038 str r3, [r4, #56] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 3890: e59f3118 ldr r3, [pc, #280] ; 39b0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 3894: e352007a cmp r2, #122 ; 0x7a * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 3898: e584303c str r3, [r4, #60] /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 389c: e1a000a0 lsr r0, r0, #1 tty->highwater = tty->rawInBuf.Size * 3/4; 38a0: e1a01121 lsr r1, r1, #2 /* * Bump name characer */ if (c++ == 'z') 38a4: e2822001 add r2, r2, #1 ; 0x1 c = 'a'; 38a8: 03a03061 moveq r3, #97 ; 0x61 tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; 38ac: e58410c0 str r1, [r4, #192] /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 38b0: e58400bc str r0, [r4, #188] tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 38b4: e5cc2000 strb r2, [ip] c = 'a'; 38b8: 05cc3000 strbeq r3, [ip] } args->iop->data1 = tty; 38bc: e59d1008 ldr r1, [sp, #8] if (!tty->refcount++) { 38c0: e5953008 ldr r3, [r5, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 38c4: e5912000 ldr r2, [r1] if (!tty->refcount++) { 38c8: e3530000 cmp r3, #0 ; 0x0 38cc: e2833001 add r3, r3, #1 ; 0x1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 38d0: e5825028 str r5, [r2, #40] if (!tty->refcount++) { 38d4: e5853008 str r3, [r5, #8] 38d8: 1a000016 bne 3938 if (tty->device.firstOpen) 38dc: e5953098 ldr r3, [r5, #152] 38e0: e3530000 cmp r3, #0 ; 0x0 (*tty->device.firstOpen)(major, minor, arg); 38e4: 11a00009 movne r0, r9 38e8: 11a0100b movne r1, fp 38ec: 159d2008 ldrne r2, [sp, #8] 38f0: 11a0e00f movne lr, pc 38f4: 112fff13 bxne r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 38f8: e59530b4 ldr r3, [r5, #180] 38fc: e3530002 cmp r3, #2 ; 0x2 3900: 1a00000c bne 3938 sc = rtems_task_start(tty->rxTaskId, 3904: e59500c4 ldr r0, [r5, #196] <== NOT EXECUTED 3908: e59f10a4 ldr r1, [pc, #164] ; 39b4 <== NOT EXECUTED 390c: e1a02005 mov r2, r5 <== NOT EXECUTED 3910: eb00039c bl 4788 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 3914: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3918: 1a000005 bne 3934 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 391c: e1a02005 mov r2, r5 <== NOT EXECUTED 3920: e59500c8 ldr r0, [r5, #200] <== NOT EXECUTED 3924: e59f108c ldr r1, [pc, #140] ; 39b8 <== NOT EXECUTED 3928: eb000396 bl 4788 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 392c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3930: 0a000000 beq 3938 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3934: eb00042f bl 49f8 <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 3938: e59f3030 ldr r3, [pc, #48] ; 3970 393c: e5930000 ldr r0, [r3] 3940: eb0002ba bl 4430 return RTEMS_SUCCESSFUL; } 3944: e1a0000a mov r0, sl 3948: e28dd00c add sp, sp, #12 ; 0xc 394c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 3950: e3a00001 mov r0, #1 ; 0x1 3954: e3a010e8 mov r1, #232 ; 0xe8 3958: eb001304 bl 8570 if (tty == NULL) { 395c: e3500000 cmp r0, #0 ; 0x0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 3960: e1a05000 mov r5, r0 3964: e1a04000 mov r4, r0 if (tty == NULL) { 3968: 1affff18 bne 35d0 396c: eaffff21 b 35f8 <== NOT EXECUTED 3970: 000152a8 .word 0x000152a8 3974: 000152b0 .word 0x000152b0 3978: 00013db4 .word 0x00013db4 397c: 00013db8 .word 0x00013db8 3980: 00013db0 .word 0x00013db0 3984: 52ac .short 0x52ac 3986: 0001 .short 0x0001 3988: 00013dbc .word 0x00013dbc 398c: 54526900 .word 0x54526900 3990: 54526f00 .word 0x54526f00 3994: 54527800 .word 0x54527800 3998: 54785400 .word 0x54785400 399c: 52785400 .word 0x52785400 39a0: 54527200 .word 0x54527200 39a4: 00002502 .word 0x00002502 39a8: 00001805 .word 0x00001805 39ac: 000008bd .word 0x000008bd 39b0: 0000823b .word 0x0000823b 39b4: 00003a2c .word 0x00003a2c 39b8: 000039bc .word 0x000039bc 000024b0 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 24b0: e59230b4 ldr r3, [r2, #180] 24b4: e3530000 cmp r3, #0 ; 0x0 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 24b8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 24bc: e1a04002 mov r4, r2 24c0: e1a0a000 mov sl, r0 24c4: e1a07001 mov r7, r1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 24c8: 1a000005 bne 24e4 (*tty->device.write)(tty->minor, (void *)buf, len); 24cc: e1a01000 mov r1, r0 24d0: e1a02007 mov r2, r7 24d4: e5940010 ldr r0, [r4, #16] 24d8: e1a0e00f mov lr, pc 24dc: e594f0a4 ldr pc, [r4, #164] 24e0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} return; } newHead = tty->rawOutBuf.Head; 24e4: e5926080 ldr r6, [r2, #128] <== NOT EXECUTED 24e8: e3a08000 mov r8, #0 ; 0x0 <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 24ec: e3a0b002 mov fp, #2 ; 0x2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 24f0: e3a09001 mov r9, #1 ; 0x1 <== NOT EXECUTED 24f4: ea00002e b 25b4 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 24f8: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 24fc: e2860001 add r0, r6, #1 ; 0x1 <== NOT EXECUTED 2500: eb003c17 bl 11564 <__umodsi3> <== NOT EXECUTED 2504: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_interrupt_disable (level); 2508: e10f5000 mrs r5, CPSR <== NOT EXECUTED 250c: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 2510: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 2514: ea00000a b 2544 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 2518: e584b094 str fp, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 251c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2520: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2524: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 2528: e1a02001 mov r2, r1 <== NOT EXECUTED 252c: eb000779 bl 4318 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2530: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2534: 1b00092f blne 49f8 <== NOT EXECUTED rtems_interrupt_disable (level); 2538: e10f5000 mrs r5, CPSR <== NOT EXECUTED 253c: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 2540: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED * 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) { 2544: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 2548: e1560003 cmp r6, r3 <== NOT EXECUTED 254c: 0afffff1 beq 2518 <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 2550: e5941080 ldr r1, [r4, #128] <== NOT EXECUTED 2554: e7da2008 ldrb r2, [sl, r8] <== NOT EXECUTED 2558: e594307c ldr r3, [r4, #124] <== NOT EXECUTED 255c: e7c32001 strb r2, [r3, r1] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 2560: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 2564: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; 2568: e5846080 str r6, [r4, #128] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 256c: 1a00000d bne 25a8 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2570: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2574: e3130010 tst r3, #16 ; 0x10 <== NOT EXECUTED (*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; 2578: 159430b8 ldrne r3, [r4, #184] <== NOT EXECUTED 257c: 13833020 orrne r3, r3, #32 ; 0x20 <== NOT EXECUTED 2580: 158430b8 strne r3, [r4, #184] <== NOT EXECUTED } 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)) { 2584: 1a000006 bne 25a4 <== NOT EXECUTED (*tty->device.write)(tty->minor, 2588: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 258c: e594107c ldr r1, [r4, #124] <== NOT EXECUTED 2590: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2594: e0811003 add r1, r1, r3 <== NOT EXECUTED 2598: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 259c: e1a0e00f mov lr, pc <== NOT EXECUTED 25a0: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 25a4: e5849094 str r9, [r4, #148] <== NOT EXECUTED } rtems_interrupt_enable (level); 25a8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED len--; 25ac: e2477001 sub r7, r7, #1 ; 0x1 <== NOT EXECUTED 25b0: e2888001 add r8, r8, #1 ; 0x1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 25b4: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 25b8: 1affffce bne 24f8 <== NOT EXECUTED 25bc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 00002c7c : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2c7c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2c80: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2c84: e1a07000 mov r7, r0 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2c88: e5934028 ldr r4, [r3, #40] <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2c8c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; 2c90: e5973008 ldr r3, [r7, #8] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2c94: e24dd00c sub sp, sp, #12 ; 0xc <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2c98: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 2c9c: e1a02001 mov r2, r1 <== NOT EXECUTED rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; 2ca0: e597800c ldr r8, [r7, #12] <== NOT EXECUTED char *buffer = args->buffer; 2ca4: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2ca8: eb00059a bl 4318 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 2cac: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 2cb0: 1a0000d4 bne 3008 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 2cb4: e59420cc ldr r2, [r4, #204] <== NOT EXECUTED 2cb8: e59f3354 ldr r3, [pc, #852] ; 3014 <== NOT EXECUTED 2cbc: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 2cc0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 2cc4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2cc8: 0a000005 beq 2ce4 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 2ccc: e1a01007 mov r1, r7 <== NOT EXECUTED 2cd0: e1a00004 mov r0, r4 <== NOT EXECUTED 2cd4: e1a0e00f mov lr, pc <== NOT EXECUTED 2cd8: e12fff13 bx r3 <== NOT EXECUTED 2cdc: e1a0a000 mov sl, r0 <== NOT EXECUTED 2ce0: ea0000c4 b 2ff8 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { 2ce4: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 2ce8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2cec: e1520003 cmp r2, r3 <== NOT EXECUTED 2cf0: 1a0000ad bne 2fac <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2cf4: e59430a0 ldr r3, [r4, #160] <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2cf8: e5942028 ldr r2, [r4, #40] <== NOT EXECUTED if (tty->device.pollRead != NULL 2cfc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 2d00: e584202c str r2, [r4, #44] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; 2d04: e584a020 str sl, [r4, #32] <== NOT EXECUTED 2d08: e584a024 str sl, [r4, #36] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 2d0c: 0a00004a beq 2e3c <== NOT EXECUTED 2d10: e59430b4 ldr r3, [r4, #180] <== NOT EXECUTED 2d14: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2d18: 1a000047 bne 2e3c <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 2d1c: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 2d20: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 2d24: 0a00000d beq 2d60 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 2d28: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2d2c: e1a0e00f mov lr, pc <== NOT EXECUTED 2d30: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED if (n < 0) { 2d34: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 2d38: e1a01004 mov r1, r4 <== NOT EXECUTED 2d3c: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { 2d40: aa000002 bge 2d50 <== NOT EXECUTED rtems_task_wake_after (1); 2d44: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 2d48: eb0006a8 bl 47f0 <== NOT EXECUTED 2d4c: eafffff5 b 2d28 <== NOT EXECUTED } else { if (siproc (n, tty)) 2d50: ebffff66 bl 2af0 <== NOT EXECUTED 2d54: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2d58: 0afffff2 beq 2d28 <== NOT EXECUTED 2d5c: ea000092 b 2fac <== NOT EXECUTED } } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2d60: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 2d64: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2d68: 1a000004 bne 2d80 <== NOT EXECUTED 2d6c: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 2d70: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 2d74: 13a00002 movne r0, #2 ; 0x2 <== NOT EXECUTED 2d78: 128d1008 addne r1, sp, #8 ; 0x8 <== NOT EXECUTED 2d7c: 1b000347 blne 3aa0 <== NOT EXECUTED else { siproc (n, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 2d80: e28d6008 add r6, sp, #8 ; 0x8 <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 2d84: e28d5004 add r5, sp, #4 ; 0x4 <== NOT EXECUTED else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); for (;;) { n = (*tty->device.pollRead)(tty->minor); 2d88: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2d8c: e1a0e00f mov lr, pc <== NOT EXECUTED 2d90: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED if (n < 0) { 2d94: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2d98: aa000017 bge 2dfc <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 2d9c: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 2da0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2da4: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 2da8: 0a000005 beq 2dc4 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 2dac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2db0: 0a00000e beq 2df0 <== NOT EXECUTED 2db4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2db8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2dbc: 0a00000b beq 2df0 <== NOT EXECUTED 2dc0: ea000001 b 2dcc <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 2dc4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2dc8: 0a000077 beq 2fac <== NOT EXECUTED break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 2dcc: e1a01005 mov r1, r5 <== NOT EXECUTED 2dd0: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 2dd4: eb000331 bl 3aa0 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 2dd8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 2ddc: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 2de0: e5941054 ldr r1, [r4, #84] <== NOT EXECUTED 2de4: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 2de8: e1530001 cmp r3, r1 <== NOT EXECUTED 2dec: 8a00006e bhi 2fac <== NOT EXECUTED break; } } rtems_task_wake_after (1); 2df0: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 2df4: eb00067d bl 47f0 <== NOT EXECUTED 2df8: eaffffe2 b 2d88 <== NOT EXECUTED } else { siproc (n, tty); 2dfc: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED 2e00: e1a01004 mov r1, r4 <== NOT EXECUTED 2e04: ebffff39 bl 2af0 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2e08: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 2e0c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2e10: e1530002 cmp r3, r2 <== NOT EXECUTED 2e14: aa000064 bge 2fac <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 2e18: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 2e1c: 0affffd9 beq 2d88 <== NOT EXECUTED 2e20: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 2e24: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2e28: 0affffd6 beq 2d88 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 2e2c: e1a01006 mov r1, r6 <== NOT EXECUTED 2e30: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 2e34: eb000319 bl 3aa0 <== NOT EXECUTED 2e38: eaffffd2 b 2d88 <== 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; 2e3c: e5945074 ldr r5, [r4, #116] <== 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, 2e40: e2849049 add r9, r4, #73 ; 0x49 <== NOT EXECUTED 2e44: e3a06001 mov r6, #1 ; 0x1 <== 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)) 2e48: e59fb1c8 ldr fp, [pc, #456] ; 3018 <== NOT EXECUTED 2e4c: ea000054 b 2fa4 <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 2e50: e594005c ldr r0, [r4, #92] <== NOT EXECUTED 2e54: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 2e58: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 2e5c: eb0039c0 bl 11564 <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 2e60: e5943058 ldr r3, [r4, #88] <== NOT EXECUTED 2e64: e7d35000 ldrb r5, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; 2e68: e584005c str r0, [r4, #92] <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 2e6c: e1a02000 mov r2, r0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; tty->rawInBuf.Head = newHead; if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 2e70: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 2e74: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 2e78: e0800003 add r0, r0, r3 <== NOT EXECUTED 2e7c: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 2e80: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 2e84: eb0039b6 bl 11564 <__umodsi3> <== NOT EXECUTED 2e88: e59430bc ldr r3, [r4, #188] <== NOT EXECUTED 2e8c: e1500003 cmp r0, r3 <== NOT EXECUTED 2e90: 2a00001e bcs 2f10 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 2e94: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2e98: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 2e9c: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 2ea0: e59f3170 ldr r3, [pc, #368] ; 3018 <== NOT EXECUTED 2ea4: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED 2ea8: e0023003 and r3, r2, r3 <== NOT EXECUTED 2eac: e153000b cmp r3, fp <== NOT EXECUTED 2eb0: 1a00000b bne 2ee4 <== NOT EXECUTED 2eb4: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 2eb8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2ebc: 0a000002 beq 2ecc <== NOT EXECUTED 2ec0: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2ec4: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 2ec8: 0a000005 beq 2ee4 <== 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, 2ecc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2ed0: e1a01009 mov r1, r9 <== NOT EXECUTED 2ed4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2ed8: e1a0e00f mov lr, pc <== NOT EXECUTED 2edc: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 2ee0: ea00000a b 2f10 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 2ee4: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2ee8: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 2eec: 0a000007 beq 2f10 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 2ef0: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2ef4: e59420b0 ldr r2, [r4, #176] <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { tty->flow_ctrl &= ~FL_IRTSOFF; 2ef8: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 2efc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { tty->flow_ctrl &= ~FL_IRTSOFF; 2f00: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { tty->device.startRemoteTx(tty->minor); 2f04: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 2f08: 11a0e00f movne lr, pc <== NOT EXECUTED 2f0c: 112fff12 bxne r2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 2f10: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 2f14: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 2f18: 0a000005 beq 2f34 <== NOT EXECUTED if (siproc (c, tty)) 2f1c: e1a00005 mov r0, r5 <== NOT EXECUTED 2f20: e1a01004 mov r1, r4 <== NOT EXECUTED 2f24: ebfffef1 bl 2af0 <== NOT EXECUTED 2f28: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2f2c: 1a000007 bne 2f50 <== NOT EXECUTED 2f30: ea000007 b 2f54 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); 2f34: e1a00005 mov r0, r5 <== NOT EXECUTED 2f38: e1a01004 mov r1, r4 <== NOT EXECUTED 2f3c: ebfffeeb bl 2af0 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 2f40: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 2f44: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2f48: e1530002 cmp r3, r2 <== NOT EXECUTED 2f4c: ba000000 blt 2f54 <== NOT EXECUTED 2f50: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 2f54: e5941070 ldr r1, [r4, #112] <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2f58: e594205c ldr r2, [r4, #92] <== NOT EXECUTED 2f5c: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 2f60: e1520003 cmp r2, r3 <== NOT EXECUTED 2f64: 0a000005 beq 2f80 <== NOT EXECUTED 2f68: e59f20ac ldr r2, [pc, #172] ; 301c <== NOT EXECUTED 2f6c: e5923000 ldr r3, [r2] <== NOT EXECUTED 2f70: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 2f74: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 2f78: e1520003 cmp r2, r3 <== NOT EXECUTED 2f7c: baffffb3 blt 2e50 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 2f80: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 2f84: e1a05001 mov r5, r1 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 2f88: 0a000007 beq 2fac <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 2f8c: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED 2f90: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 2f94: e1a02005 mov r2, r5 <== NOT EXECUTED 2f98: eb0004de bl 4318 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 2f9c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2fa0: 1a000001 bne 2fac <== NOT EXECUTED { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; rtems_status_code sc; int wait = (int)1; while ( wait ) { 2fa4: e1a01005 mov r1, r5 <== NOT EXECUTED 2fa8: eaffffea b 2f58 <== NOT EXECUTED 2fac: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2fb0: ea000006 b 2fd0 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 2fb4: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 2fb8: e7d33002 ldrb r3, [r3, r2] <== NOT EXECUTED 2fbc: e59d2000 ldr r2, [sp] <== NOT EXECUTED 2fc0: e7c23001 strb r3, [r2, r1] <== NOT EXECUTED 2fc4: e5840024 str r0, [r4, #36] <== NOT EXECUTED count--; 2fc8: e2488001 sub r8, r8, #1 ; 0x1 <== NOT EXECUTED 2fcc: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2fd0: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 2fd4: 0a000004 beq 2fec <== NOT EXECUTED 2fd8: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 2fdc: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2fe0: e1520003 cmp r2, r3 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 2fe4: e2820001 add r0, r2, #1 ; 0x1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 2fe8: bafffff1 blt 2fb4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 2fec: e597300c ldr r3, [r7, #12] <== NOT EXECUTED 2ff0: e0683003 rsb r3, r8, r3 <== NOT EXECUTED 2ff4: e5873014 str r3, [r7, #20] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 2ff8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 2ffc: e58430e4 str r3, [r4, #228] <== NOT EXECUTED rtems_semaphore_release (tty->isem); 3000: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 3004: eb000509 bl 4430 <== NOT EXECUTED return sc; } 3008: e1a0000a mov r0, sl <== NOT EXECUTED 300c: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 3010: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 3014: 00015094 .word 0x00015094 3018: 00000202 .word 0x00000202 301c: 00013db0 .word 0x00013db0 00001f88 : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 1f88: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 1f8c: e59f21d8 ldr r2, [pc, #472] ; 216c <== NOT EXECUTED 1f90: e0032002 and r2, r3, r2 <== NOT EXECUTED 1f94: e59f31d4 ldr r3, [pc, #468] ; 2170 <== NOT EXECUTED 1f98: e1520003 cmp r2, r3 <== NOT EXECUTED * 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) { 1f9c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 1fa0: e1a04000 mov r4, r0 <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 1fa4: 1a00000f bne 1fe8 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 1fa8: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED 1fac: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 1fb0: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 1fb4: e1a0e00f mov lr, pc <== NOT EXECUTED 1fb8: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 1fbc: e10f1000 mrs r1, CPSR <== NOT EXECUTED 1fc0: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 1fc4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 1fc8: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 1fcc: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 1fd0: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 1fd4: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 1fd8: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 1fdc: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); 1fe0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 1fe4: ea000012 b 2034 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 1fe8: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 1fec: e2033003 and r3, r3, #3 ; 0x3 <== NOT EXECUTED 1ff0: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 1ff4: 1a000010 bne 203c <== 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, 1ff8: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED 1ffc: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2000: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 2004: e1a0e00f mov lr, pc <== NOT EXECUTED 2008: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 200c: e10f1000 mrs r1, CPSR <== NOT EXECUTED 2010: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 2014: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 2018: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 201c: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 2020: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2024: e3c33002 bic r3, r3, #2 ; 0x2 <== NOT EXECUTED 2028: e58430b8 str r3, [r4, #184] <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 202c: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; rtems_interrupt_enable(level); 2030: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 2034: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED 2038: ea000049 b 2164 <== NOT EXECUTED nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 203c: e5902080 ldr r2, [r0, #128] <== NOT EXECUTED 2040: e5903084 ldr r3, [r0, #132] <== NOT EXECUTED 2044: e1520003 cmp r2, r3 <== NOT EXECUTED 2048: 1a000006 bne 2068 <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 204c: e5903094 ldr r3, [r0, #148] <== NOT EXECUTED 2050: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 2054: 1a000001 bne 2060 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 2058: e590008c ldr r0, [r0, #140] <== NOT EXECUTED 205c: eb0008f3 bl 4430 <== NOT EXECUTED 2060: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 2064: ea00003e b 2164 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); 2068: e10f2000 mrs r2, CPSR <== NOT EXECUTED 206c: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 2070: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; 2074: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; 2078: e590c090 ldr ip, [r0, #144] <== NOT EXECUTED tty->t_dqlen = 0; 207c: e5803090 str r3, [r0, #144] <== NOT EXECUTED rtems_interrupt_enable(level); 2080: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 2084: e5900084 ldr r0, [r0, #132] <== NOT EXECUTED 2088: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 208c: e08c0000 add r0, ip, r0 <== NOT EXECUTED 2090: eb003d33 bl 11564 <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 2094: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 2098: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 209c: e1a06000 mov r6, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; 20a0: e5840084 str r0, [r4, #132] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 20a4: 0594008c ldreq r0, [r4, #140] <== NOT EXECUTED 20a8: 0b0008e0 bleq 4430 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 20ac: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 20b0: e1560003 cmp r6, r3 <== NOT EXECUTED 20b4: 1a00000a bne 20e4 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 20b8: e59420d4 ldr r2, [r4, #212] <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 20bc: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 20c0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 20c4: e5845094 str r5, [r4, #148] <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 20c8: 01a05002 moveq r5, r2 <== NOT EXECUTED 20cc: 0a000023 beq 2160 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 20d0: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 20d4: e59410d8 ldr r1, [r4, #216] <== NOT EXECUTED 20d8: e1a0e00f mov lr, pc <== NOT EXECUTED 20dc: e12fff12 bx r2 <== NOT EXECUTED 20e0: ea00001e b 2160 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 20e4: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 20e8: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED 20ec: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED 20f0: 1a00000a bne 2120 <== NOT EXECUTED == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); 20f4: e10f3000 mrs r3, CPSR <== NOT EXECUTED 20f8: e38320c0 orr r2, r3, #192 ; 0xc0 <== NOT EXECUTED 20fc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 2100: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED 2104: e3822020 orr r2, r2, #32 ; 0x20 <== NOT EXECUTED 2108: e58420b8 str r2, [r4, #184] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 210c: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2110: e5842094 str r2, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable(level); 2114: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 2118: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 211c: ea00000f b 2160 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 2120: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 2124: e1560003 cmp r6, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 2128: 85943088 ldrhi r3, [r4, #136] <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 212c: 95943080 ldrls r3, [r4, #128] <== NOT EXECUTED 2130: e0665003 rsb r5, r6, r3 <== NOT EXECUTED /* 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)) { 2134: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 2138: e594107c ldr r1, [r4, #124] <== NOT EXECUTED 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)) { 213c: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED 2140: 13a05001 movne r5, #1 ; 0x1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 2144: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 2148: e5843094 str r3, [r4, #148] <== NOT EXECUTED (*tty->device.write)(tty->minor, 214c: e0811006 add r1, r1, r6 <== NOT EXECUTED 2150: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2154: e1a02005 mov r2, r5 <== NOT EXECUTED 2158: e1a0e00f mov lr, pc <== NOT EXECUTED 215c: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 2160: e5846084 str r6, [r4, #132] <== NOT EXECUTED } return nToSend; } 2164: e1a00005 mov r0, r5 <== NOT EXECUTED 2168: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 216c: 00000403 .word 0x00000403 2170: 00000401 .word 0x00000401 00003a2c : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 3a2c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3a30: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 3a34: e1a04000 mov r4, r0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 3a38: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 3a3c: e28d6007 add r6, sp, #7 ; 0x7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 3a40: e1a0300d mov r3, sp <== NOT EXECUTED 3a44: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 3a48: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3a4c: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 3a50: eb0000a7 bl 3cf4 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 3a54: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3a58: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 3a5c: 0a000003 beq 3a70 <== NOT EXECUTED tty->rxTaskId = 0; 3a60: e58450c4 str r5, [r4, #196] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 3a64: e1a00005 mov r0, r5 <== NOT EXECUTED 3a68: eb0002e8 bl 4610 <== NOT EXECUTED 3a6c: eafffff3 b 3a40 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 3a70: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3a74: e1a0e00f mov lr, pc <== NOT EXECUTED 3a78: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED 3a7c: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { 3a80: e3730001 cmn r3, #1 ; 0x1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 3a84: e1a01006 mov r1, r6 <== NOT EXECUTED 3a88: e1a00004 mov r0, r4 <== NOT EXECUTED 3a8c: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { 3a90: 0affffea beq 3a40 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 3a94: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 3a98: ebfff9d1 bl 21e4 <== NOT EXECUTED 3a9c: eaffffe7 b 3a40 <== NOT EXECUTED 00001f7c : void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) { /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 1f7c: e59000c4 ldr r0, [r0, #196] <== NOT EXECUTED 1f80: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 1f84: ea0007b9 b 3e70 <== NOT EXECUTED 000039bc : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 39bc: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 39c0: e59f7060 ldr r7, [pc, #96] ; 3a28 <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 39c4: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 39c8: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 39cc: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 39d0: e1a0300d mov r3, sp <== NOT EXECUTED 39d4: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 39d8: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 39dc: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 39e0: eb0000c3 bl 3cf4 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 39e4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 39e8: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { rtems_termios_linesw[tty->t_line].l_start(tty); 39ec: e1a00004 mov r0, r4 <== NOT EXECUTED rtems_event_receive((TERMIOS_TX_START_EVENT | TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 39f0: 0a000003 beq 3a04 <== NOT EXECUTED tty->txTaskId = 0; 39f4: e58450c8 str r5, [r4, #200] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 39f8: e1a00005 mov r0, r5 <== NOT EXECUTED 39fc: eb000303 bl 4610 <== NOT EXECUTED 3a00: eafffff2 b 39d0 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 3a04: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 3a08: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED 3a0c: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 3a10: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 3a14: 11a0e00f movne lr, pc <== NOT EXECUTED 3a18: 112fff13 bxne r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 3a1c: e1a00004 mov r0, r4 <== NOT EXECUTED 3a20: ebfff958 bl 1f88 <== NOT EXECUTED 3a24: eaffffe9 b 39d0 <== NOT EXECUTED 3a28: 00015094 .word 0x00015094 00002b50 : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2b50: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2b54: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2b58: e5937028 ldr r7, [r3, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2b5c: e3a01000 mov r1, #0 ; 0x0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2b60: e1a04000 mov r4, r0 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2b64: e1a02001 mov r2, r1 2b68: e5970018 ldr r0, [r7, #24] 2b6c: eb0005e9 bl 4318 if (sc != RTEMS_SUCCESSFUL) 2b70: e2508000 subs r8, r0, #0 ; 0x0 2b74: 1a000022 bne 2c04 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2b78: e59720cc ldr r2, [r7, #204] 2b7c: e59f3088 ldr r3, [pc, #136] ; 2c0c 2b80: e0833282 add r3, r3, r2, lsl #5 2b84: e593300c ldr r3, [r3, #12] 2b88: e3530000 cmp r3, #0 ; 0x0 2b8c: 0a000005 beq 2ba8 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2b90: e1a01004 mov r1, r4 <== NOT EXECUTED 2b94: e1a00007 mov r0, r7 <== NOT EXECUTED 2b98: e1a0e00f mov lr, pc <== NOT EXECUTED 2b9c: e12fff13 bx r3 <== NOT EXECUTED 2ba0: e1a08000 mov r8, r0 <== NOT EXECUTED 2ba4: ea000014 b 2bfc <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 2ba8: e5973034 ldr r3, [r7, #52] 2bac: e3130001 tst r3, #1 ; 0x1 uint32_t count = args->count; 2bb0: 1594600c ldrne r6, [r4, #12] char *buffer = args->buffer; 2bb4: 1594a008 ldrne sl, [r4, #8] 2bb8: 11a05008 movne r5, r8 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) { 2bbc: 1a000003 bne 2bd0 2bc0: ea000007 b 2be4 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; while (count--) oproc (*buffer++, tty); 2bc4: e7da0005 ldrb r0, [sl, r5] 2bc8: ebfffe7c bl 25c0 2bcc: e2855001 add r5, r5, #1 ; 0x1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2bd0: e3560000 cmp r6, #0 ; 0x0 oproc (*buffer++, tty); 2bd4: e1a01007 mov r1, r7 2bd8: e2466001 sub r6, r6, #1 ; 0x1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2bdc: 1afffff8 bne 2bc4 2be0: ea000003 b 2bf4 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 2be4: e2840008 add r0, r4, #8 ; 0x8 <== NOT EXECUTED 2be8: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 2bec: e1a02007 mov r2, r7 <== NOT EXECUTED 2bf0: ebfffe2e bl 24b0 <== NOT EXECUTED args->bytes_moved = args->count; 2bf4: e594300c ldr r3, [r4, #12] 2bf8: e5843014 str r3, [r4, #20] } rtems_semaphore_release (tty->osem); 2bfc: e5970018 ldr r0, [r7, #24] 2c00: eb00060a bl 4430 return sc; } 2c04: e1a00008 mov r0, r8 2c08: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 2c0c: 00015094 .word 0x00015094 000109d8 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 109d8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 109dc: e251a000 subs sl, r1, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 109e0: e1a07000 mov r7, r0 109e4: e24dd004 sub sp, sp, #4 ; 0x4 109e8: e1a06002 mov r6, r2 109ec: e1a08003 mov r8, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 109f0: 03a0000a moveq r0, #10 ; 0xa 109f4: 0a000022 beq 10a84 return RTEMS_INVALID_NUMBER; if ( !routine ) 109f8: e3520000 cmp r2, #0 ; 0x0 109fc: 03a00009 moveq r0, #9 ; 0x9 10a00: 0a00001f beq 10a84 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 10a04: e59f0080 ldr r0, [pc, #128] ; 10a8c 10a08: e1a01007 mov r1, r7 10a0c: e1a0200d mov r2, sp 10a10: eb000a5e bl 13390 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 10a14: e59d3000 ldr r3, [sp] 10a18: e3530000 cmp r3, #0 ; 0x0 10a1c: e1a04000 mov r4, r0 10a20: 13a00004 movne r0, #4 ; 0x4 10a24: 1a000016 bne 10a84 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 10a28: e2845010 add r5, r4, #16 ; 0x10 10a2c: e1a00005 mov r0, r5 10a30: eb001246 bl 15350 <_Watchdog_Remove> _ISR_Disable( level ); 10a34: e10f2000 mrs r2, CPSR 10a38: e38230c0 orr r3, r2, #192 ; 0xc0 10a3c: e129f003 msr CPSR_fc, r3 /* * 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 ) { 10a40: e5943018 ldr r3, [r4, #24] 10a44: e3530000 cmp r3, #0 ; 0x0 10a48: 0a000001 beq 10a54 _ISR_Enable( level ); 10a4c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED 10a50: ea000009 b 10a7c <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10a54: e5843018 str r3, [r4, #24] the_watchdog->routine = routine; 10a58: e584602c str r6, [r4, #44] the_watchdog->id = id; 10a5c: e5847030 str r7, [r4, #48] the_watchdog->user_data = user_data; 10a60: e5848034 str r8, [r4, #52] /* * 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; 10a64: e5843038 str r3, [r4, #56] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 10a68: e129f002 msr CPSR_fc, r2 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10a6c: e59f001c ldr r0, [pc, #28] ; 10a90 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10a70: e584a01c str sl, [r4, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10a74: e1a01005 mov r1, r5 10a78: eb0011d8 bl 151e0 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 10a7c: eb000c69 bl 13c28 <_Thread_Enable_dispatch> 10a80: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10a84: e28dd004 add sp, sp, #4 ; 0x4 10a88: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 10a8c: 0002ef90 .word 0x0002ef90 10a90: 0002edc4 .word 0x0002edc4 00010c14 : */ rtems_status_code rtems_timer_reset( Objects_Id id ) { 10c14: e92d4030 push {r4, r5, lr} 10c18: e24dd004 sub sp, sp, #4 ; 0x4 10c1c: e1a01000 mov r1, r0 10c20: e1a0200d mov r2, sp 10c24: e59f00a4 ldr r0, [pc, #164] ; 10cd0 10c28: eb0009d8 bl 13390 <_Objects_Get> Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 10c2c: e59d3000 ldr r3, [sp] 10c30: e3530000 cmp r3, #0 ; 0x0 10c34: e1a04000 mov r4, r0 10c38: 13a00004 movne r0, #4 ; 0x4 10c3c: 1a000021 bne 10cc8 case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 10c40: e5943038 ldr r3, [r4, #56] 10c44: e3530004 cmp r3, #4 ; 0x4 10c48: 979ff103 ldrls pc, [pc, r3, lsl #2] 10c4c: ea00001b b 10cc0 <== NOT EXECUTED 10c50: 00010c64 .word 0x00010c64 <== NOT EXECUTED 10c54: 00010c80 .word 0x00010c80 <== NOT EXECUTED 10c58: 00010cb4 .word 0x00010cb4 <== NOT EXECUTED 10c5c: 00010cb4 .word 0x00010cb4 <== NOT EXECUTED 10c60: 00010cb4 .word 0x00010cb4 <== NOT EXECUTED case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); 10c64: e2844010 add r4, r4, #16 ; 0x10 10c68: e1a00004 mov r0, r4 10c6c: eb0011b7 bl 15350 <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 10c70: e1a01004 mov r1, r4 10c74: e59f0058 ldr r0, [pc, #88] ; 10cd4 10c78: eb001158 bl 151e0 <_Watchdog_Insert> 10c7c: ea00000f b 10cc0 break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { 10c80: e59f5050 ldr r5, [pc, #80] ; 10cd8 10c84: e5953000 ldr r3, [r5] 10c88: e3530000 cmp r3, #0 ; 0x0 10c8c: 1a000002 bne 10c9c _Thread_Enable_dispatch(); 10c90: eb000be4 bl 13c28 <_Thread_Enable_dispatch> <== NOT EXECUTED 10c94: e3a0000e mov r0, #14 ; 0xe <== NOT EXECUTED 10c98: ea00000a b 10cc8 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; } _Watchdog_Remove( &the_timer->Ticker ); 10c9c: e2840010 add r0, r4, #16 ; 0x10 10ca0: eb0011aa bl 15350 <_Watchdog_Remove> (*_Timer_Server_schedule_operation)( the_timer ); 10ca4: e1a00004 mov r0, r4 10ca8: e1a0e00f mov lr, pc 10cac: e595f000 ldr pc, [r5] 10cb0: ea000002 b 10cc0 break; case TIMER_TIME_OF_DAY: case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); 10cb4: eb000bdb bl 13c28 <_Thread_Enable_dispatch> 10cb8: e3a0000b mov r0, #11 ; 0xb 10cbc: ea000001 b 10cc8 return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 10cc0: eb000bd8 bl 13c28 <_Thread_Enable_dispatch> 10cc4: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10cc8: e28dd004 add sp, sp, #4 ; 0x4 10ccc: e8bd8030 pop {r4, r5, pc} 10cd0: 0002ef90 .word 0x0002ef90 10cd4: 0002edc4 .word 0x0002edc4 10cd8: 0002efd0 .word 0x0002efd0 00010cdc : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 10cdc: e92d41f0 push {r4, r5, r6, r7, r8, lr} Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 10ce0: e59fc0c4 ldr ip, [pc, #196] ; 10dac 10ce4: e59cc000 ldr ip, [ip] 10ce8: e35c0000 cmp ip, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 10cec: e1a06000 mov r6, r0 10cf0: e24dd004 sub sp, sp, #4 ; 0x4 10cf4: e1a07001 mov r7, r1 10cf8: e1a05002 mov r5, r2 10cfc: e1a08003 mov r8, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 10d00: 03a0000e moveq r0, #14 ; 0xe 10d04: 0a000026 beq 10da4 return RTEMS_INCORRECT_STATE; if ( !routine ) 10d08: e3520000 cmp r2, #0 ; 0x0 10d0c: 03a00009 moveq r0, #9 ; 0x9 10d10: 0a000023 beq 10da4 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 10d14: e3510000 cmp r1, #0 ; 0x0 10d18: 03a0000a moveq r0, #10 ; 0xa 10d1c: 0a000020 beq 10da4 10d20: e59f0088 ldr r0, [pc, #136] ; 10db0 10d24: e1a01006 mov r1, r6 10d28: e1a0200d mov r2, sp 10d2c: eb000997 bl 13390 <_Objects_Get> return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 10d30: e59d3000 ldr r3, [sp] 10d34: e3530000 cmp r3, #0 ; 0x0 10d38: e1a04000 mov r4, r0 10d3c: 13a00004 movne r0, #4 ; 0x4 10d40: 1a000017 bne 10da4 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 10d44: e2840010 add r0, r4, #16 ; 0x10 10d48: eb001180 bl 15350 <_Watchdog_Remove> _ISR_Disable( level ); 10d4c: e10f1000 mrs r1, CPSR 10d50: e38130c0 orr r3, r1, #192 ; 0xc0 10d54: e129f003 msr CPSR_fc, r3 /* * 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 ) { 10d58: e5942018 ldr r2, [r4, #24] 10d5c: e3520000 cmp r2, #0 ; 0x0 10d60: 0a000001 beq 10d6c _ISR_Enable( level ); 10d64: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 10d68: ea00000b b 10d9c <== NOT EXECUTED /* * 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; 10d6c: e3a03001 mov r3, #1 ; 0x1 10d70: e5843038 str r3, [r4, #56] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10d74: e5842018 str r2, [r4, #24] the_watchdog->routine = routine; 10d78: e584502c str r5, [r4, #44] the_watchdog->id = id; 10d7c: e5846030 str r6, [r4, #48] the_watchdog->user_data = user_data; 10d80: e5848034 str r8, [r4, #52] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 10d84: e584701c str r7, [r4, #28] _ISR_Enable( level ); 10d88: e129f001 msr CPSR_fc, r1 /* * _Timer_Server_schedule_operation != NULL because we checked that * _Timer_Server was != NULL above. Both are set at the same time. */ (*_Timer_Server_schedule_operation)( the_timer ); 10d8c: e59f3020 ldr r3, [pc, #32] ; 10db4 10d90: e1a00004 mov r0, r4 10d94: e1a0e00f mov lr, pc 10d98: e593f000 ldr pc, [r3] _Thread_Enable_dispatch(); 10d9c: eb000ba1 bl 13c28 <_Thread_Enable_dispatch> 10da0: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10da4: e28dd004 add sp, sp, #4 ; 0x4 10da8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 10dac: 0002efd4 .word 0x0002efd4 10db0: 0002ef90 .word 0x0002ef90 10db4: 0002efd0 .word 0x0002efd0 00004f3c : static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 4f3c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 4f40: e2109202 ands r9, r0, #536870912 ; 0x20000000 <== NOT EXECUTED static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 4f44: e1a08000 mov r8, r0 <== NOT EXECUTED 4f48: e1a05001 mov r5, r1 <== NOT EXECUTED 4f4c: e1a0a002 mov sl, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 4f50: 0a00000d beq 4f8c <== NOT EXECUTED { if (rtems_panic_in_progress++) 4f54: e59f2168 ldr r2, [pc, #360] ; 50c4 <== NOT EXECUTED 4f58: e5923000 ldr r3, [r2] <== NOT EXECUTED 4f5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 4f60: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 4f64: e5823000 str r3, [r2] <== NOT EXECUTED 4f68: 0a000003 beq 4f7c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4f6c: e59f2154 ldr r2, [pc, #340] ; 50c8 <== NOT EXECUTED 4f70: e5923000 ldr r3, [r2] <== NOT EXECUTED 4f74: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 4f78: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 4f7c: e59f3140 ldr r3, [pc, #320] ; 50c4 <== NOT EXECUTED 4f80: e5933000 ldr r3, [r3] <== NOT EXECUTED 4f84: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 4f88: ca00004b bgt 50bc <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 4f8c: e59f3138 ldr r3, [pc, #312] ; 50cc <== NOT EXECUTED 4f90: e5933000 ldr r3, [r3] <== NOT EXECUTED 4f94: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 4f98: eb003796 bl 12df8 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 4f9c: e2180101 ands r0, r8, #1073741824 ; 0x40000000 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; 4fa0: e3c84207 bic r4, r8, #1879048192 ; 0x70000000 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 4fa4: 01a07000 moveq r7, r0 <== NOT EXECUTED 4fa8: 0a000001 beq 4fb4 <== NOT EXECUTED local_errno = errno; 4fac: eb0036d1 bl 12af8 <__errno> <== NOT EXECUTED 4fb0: e5907000 ldr r7, [r0] <== 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); 4fb4: e59f6110 ldr r6, [pc, #272] ; 50cc <== NOT EXECUTED 4fb8: e5963000 ldr r3, [r6] <== NOT EXECUTED 4fbc: e1a01005 mov r1, r5 <== NOT EXECUTED 4fc0: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 4fc4: e1a0200a mov r2, sl <== NOT EXECUTED 4fc8: eb00507c bl 191c0 <== NOT EXECUTED if (status) 4fcc: e3540000 cmp r4, #0 ; 0x0 <== 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); 4fd0: e1a05000 mov r5, r0 <== NOT EXECUTED if (status) 4fd4: 0a000009 beq 5000 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 4fd8: e5963000 ldr r3, [r6] <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 4fdc: e1a01004 mov r1, r4 <== NOT EXECUTED 4fe0: e59f00e8 ldr r0, [pc, #232] ; 50d0 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 4fe4: e593400c ldr r4, [r3, #12] <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 4fe8: eb002579 bl e5d4 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 4fec: e59f10e0 ldr r1, [pc, #224] ; 50d4 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 4ff0: e1a02000 mov r2, r0 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 4ff4: e1a00004 mov r0, r4 <== NOT EXECUTED 4ff8: eb0038d1 bl 13344 <== NOT EXECUTED 4ffc: e0855000 add r5, r5, r0 <== NOT EXECUTED if (local_errno) 5000: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 5004: 0a000015 beq 5060 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 5008: da00000d ble 5044 <== NOT EXECUTED 500c: e1a00007 mov r0, r7 <== NOT EXECUTED 5010: eb004455 bl 1616c <== NOT EXECUTED 5014: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 5018: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 501c: 0a000008 beq 5044 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 5020: e59f30a4 ldr r3, [pc, #164] ; 50cc <== NOT EXECUTED 5024: e5933000 ldr r3, [r3] <== NOT EXECUTED 5028: e1a00007 mov r0, r7 <== NOT EXECUTED 502c: e593400c ldr r4, [r3, #12] <== NOT EXECUTED 5030: eb00444d bl 1616c <== NOT EXECUTED 5034: e59f109c ldr r1, [pc, #156] ; 50d8 <== NOT EXECUTED 5038: e1a02000 mov r2, r0 <== NOT EXECUTED 503c: e1a00004 mov r0, r4 <== NOT EXECUTED 5040: ea000004 b 5058 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 5044: e59f3080 ldr r3, [pc, #128] ; 50cc <== NOT EXECUTED 5048: e5933000 ldr r3, [r3] <== NOT EXECUTED 504c: e59f1088 ldr r1, [pc, #136] ; 50dc <== NOT EXECUTED 5050: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 5054: e1a02007 mov r2, r7 <== NOT EXECUTED 5058: eb0038b9 bl 13344 <== NOT EXECUTED 505c: e0855000 add r5, r5, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 5060: e59f4064 ldr r4, [pc, #100] ; 50cc <== NOT EXECUTED 5064: e5943000 ldr r3, [r4] <== NOT EXECUTED 5068: e59f1070 ldr r1, [pc, #112] ; 50e0 <== NOT EXECUTED 506c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 5070: eb0038b3 bl 13344 <== NOT EXECUTED (void) fflush(stderr); 5074: e5943000 ldr r3, [r4] <== 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"); 5078: e1a06000 mov r6, r0 <== NOT EXECUTED (void) fflush(stderr); 507c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 5080: eb00375c bl 12df8 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 5084: e3180203 tst r8, #805306368 ; 0x30000000 <== 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"); 5088: 00860005 addeq r0, r6, r5 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 508c: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 5090: e3590000 cmp r9, #0 ; 0x0 <== NOT EXECUTED 5094: 0a000004 beq 50ac <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 5098: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 509c: e59f1040 ldr r1, [pc, #64] ; 50e4 <== NOT EXECUTED 50a0: eb00001a bl 5110 <== NOT EXECUTED _exit(local_errno); 50a4: e1a00007 mov r0, r7 <== NOT EXECUTED 50a8: eb0001e4 bl 5840 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 50ac: e59f1034 ldr r1, [pc, #52] ; 50e8 <== NOT EXECUTED 50b0: e1a00009 mov r0, r9 <== NOT EXECUTED 50b4: eb000015 bl 5110 <== NOT EXECUTED abort(); 50b8: eb003685 bl 12ad4 <== NOT EXECUTED 50bc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } } return chars_written; } 50c0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 50c4: 00022e94 .word 0x00022e94 50c8: 0002300c .word 0x0002300c 50cc: 0001ea7c .word 0x0001ea7c 50d0: 0001f028 .word 0x0001f028 50d4: 00020670 .word 0x00020670 50d8: 0002067e .word 0x0002067e 50dc: 0002068b .word 0x0002068b 50e0: 00020b50 .word 0x00020b50 50e4: 0002069f .word 0x0002069f 50e8: 000206b4 .word 0x000206b4 0001bd10 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 1bd10: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 1bd14: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 1bd18: e59fb0cc ldr fp, [pc, #204] ; 1bdec <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 1bd1c: e1a06000 mov r6, r0 <== NOT EXECUTED 1bd20: e1a0a001 mov sl, r1 <== NOT EXECUTED 1bd24: e3e08102 mvn r8, #-2147483648 ; 0x80000000 <== NOT EXECUTED 1bd28: e1a05007 mov r5, r7 <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 1bd2c: e3a0900a mov r9, #10 ; 0xa <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 1bd30: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED 1bd34: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 1bd38: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1bd3c: e5863004 str r3, [r6, #4] <== NOT EXECUTED 1bd40: a5963000 ldrge r3, [r6] <== NOT EXECUTED 1bd44: a4d34001 ldrbge r4, [r3], #1 <== NOT EXECUTED 1bd48: a5863000 strge r3, [r6] <== NOT EXECUTED 1bd4c: aa000004 bge 1bd64 <== NOT EXECUTED 1bd50: e59f3098 ldr r3, [pc, #152] ; 1bdf0 <== NOT EXECUTED 1bd54: e1a01006 mov r1, r6 <== NOT EXECUTED 1bd58: e5930000 ldr r0, [r3] <== NOT EXECUTED 1bd5c: eb004846 bl 2de7c <__srget_r> <== NOT EXECUTED 1bd60: e1a04000 mov r4, r0 <== NOT EXECUTED if (c == ':') 1bd64: e354003a cmp r4, #58 ; 0x3a <== NOT EXECUTED 1bd68: 0a000018 beq 1bdd0 <== NOT EXECUTED break; if (sign == 0) { 1bd6c: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 1bd70: 1a000004 bne 1bd88 <== NOT EXECUTED if (c == '-') { 1bd74: e354002d cmp r4, #45 ; 0x2d <== NOT EXECUTED sign = -1; limit++; 1bd78: 02888001 addeq r8, r8, #1 ; 0x1 <== NOT EXECUTED 1bd7c: 03e05000 mvneq r5, #0 ; 0x0 <== NOT EXECUTED for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 1bd80: 0affffea beq 1bd30 <== NOT EXECUTED sign = -1; limit++; continue; 1bd84: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 1bd88: e59b3000 ldr r3, [fp] <== NOT EXECUTED 1bd8c: e7d33004 ldrb r3, [r3, r4] <== NOT EXECUTED 1bd90: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 1bd94: 0a000012 beq 1bde4 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 1bd98: e1a00008 mov r0, r8 <== NOT EXECUTED 1bd9c: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 1bda0: eb007651 bl 396ec <__aeabi_uidiv> <== NOT EXECUTED 1bda4: e1570000 cmp r7, r0 <== NOT EXECUTED 1bda8: 8a00000d bhi 1bde4 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 1bdac: e2444030 sub r4, r4, #48 ; 0x30 <== NOT EXECUTED if ((i > (limit / 10)) 1bdb0: 1a000004 bne 1bdc8 <== NOT EXECUTED 1bdb4: e1a00008 mov r0, r8 <== NOT EXECUTED 1bdb8: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 1bdbc: eb0076de bl 3993c <__umodsi3> <== NOT EXECUTED 1bdc0: e1540000 cmp r4, r0 <== NOT EXECUTED 1bdc4: 8a000006 bhi 1bde4 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 1bdc8: e0274799 mla r7, r9, r7, r4 <== NOT EXECUTED 1bdcc: eaffffd7 b 1bd30 <== NOT EXECUTED } if (sign == 0) 1bdd0: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED return 0; *val = i * sign; 1bdd4: 10030597 mulne r3, r7, r5 <== NOT EXECUTED 1bdd8: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 1bddc: 158a3000 strne r3, [sl] <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 1bde0: 18bd8ff0 popne {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED return 0; *val = i * sign; return 1; 1bde4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1bde8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 1bdec: 0003c484 .word 0x0003c484 1bdf0: 0003c490 .word 0x0003c490 0001bdf4 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 1bdf4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 1bdf8: e1a04002 mov r4, r2 <== NOT EXECUTED int c; *name = *bufp; 1bdfc: e5922000 ldr r2, [r2] <== NOT EXECUTED /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 1be00: e59d7018 ldr r7, [sp, #24] <== NOT EXECUTED int c; *name = *bufp; 1be04: e5812000 str r2, [r1] <== NOT EXECUTED for (;;) { c = getc(fp); 1be08: e59f80c0 ldr r8, [pc, #192] ; 1bed0 <== NOT EXECUTED /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 1be0c: e1a05000 mov r5, r0 <== NOT EXECUTED 1be10: e1a06003 mov r6, r3 <== NOT EXECUTED int c; *name = *bufp; for (;;) { c = getc(fp); 1be14: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 1be18: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 1be1c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1be20: e5853004 str r3, [r5, #4] <== NOT EXECUTED 1be24: a5953000 ldrge r3, [r5] <== NOT EXECUTED 1be28: a4d30001 ldrbge r0, [r3], #1 <== NOT EXECUTED 1be2c: a5853000 strge r3, [r5] <== NOT EXECUTED 1be30: b5980000 ldrlt r0, [r8] <== NOT EXECUTED 1be34: b1a01005 movlt r1, r5 <== NOT EXECUTED 1be38: bb00480f bllt 2de7c <__srget_r> <== NOT EXECUTED if (c == ':') { 1be3c: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 1be40: 1a000002 bne 1be50 <== NOT EXECUTED if (nlFlag) 1be44: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 1be48: 0a000013 beq 1be9c <== NOT EXECUTED 1be4c: ea00001d b 1bec8 <== NOT EXECUTED return 0; break; } if (c == '\n') { 1be50: e350000a cmp r0, #10 ; 0xa <== NOT EXECUTED 1be54: 1a000002 bne 1be64 <== NOT EXECUTED if (!nlFlag) 1be58: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 1be5c: 1a00000e bne 1be9c <== NOT EXECUTED 1be60: ea000018 b 1bec8 <== NOT EXECUTED return 0; break; } if (c == EOF) 1be64: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 1be68: 0a000016 beq 1bec8 <== NOT EXECUTED return 0; if (*nleft < 2) 1be6c: e5963000 ldr r3, [r6] <== NOT EXECUTED 1be70: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 1be74: 9a000013 bls 1bec8 <== NOT EXECUTED return 0; **bufp = c; 1be78: e5943000 ldr r3, [r4] <== NOT EXECUTED 1be7c: e5c30000 strb r0, [r3] <== NOT EXECUTED ++(*bufp); 1be80: e5943000 ldr r3, [r4] <== NOT EXECUTED --(*nleft); 1be84: e5962000 ldr r2, [r6] <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 1be88: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 1be8c: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 1be90: e5843000 str r3, [r4] <== NOT EXECUTED --(*nleft); 1be94: e5862000 str r2, [r6] <== NOT EXECUTED 1be98: eaffffdd b 1be14 <== NOT EXECUTED } **bufp = '\0'; 1be9c: e5942000 ldr r2, [r4] <== NOT EXECUTED 1bea0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1bea4: e5c23000 strb r3, [r2] <== NOT EXECUTED ++(*bufp); 1bea8: e5943000 ldr r3, [r4] <== NOT EXECUTED --(*nleft); 1beac: e5962000 ldr r2, [r6] <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 1beb0: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 1beb4: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 1beb8: e5843000 str r3, [r4] <== NOT EXECUTED --(*nleft); 1bebc: e5862000 str r2, [r6] <== NOT EXECUTED 1bec0: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 1bec4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return 1; 1bec8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1becc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 1bed0: 0003c490 .word 0x0003c490 0001bed4 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 1bed4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 1bed8: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 1bedc: e28d6008 add r6, sp, #8 ; 0x8 <== NOT EXECUTED 1bee0: e28d7004 add r7, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 1bee4: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 1bee8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 1beec: e3a08000 mov r8, #0 ; 0x0 <== NOT EXECUTED 1bef0: e1a02006 mov r2, r6 <== NOT EXECUTED 1bef4: e1a03007 mov r3, r7 <== NOT EXECUTED 1bef8: e58d8000 str r8, [sp] <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 1befc: e1a04000 mov r4, r0 <== NOT EXECUTED 1bf00: e1a05001 mov r5, r1 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 1bf04: ebffffba bl 1bdf4 <== NOT EXECUTED 1bf08: e1500008 cmp r0, r8 <== NOT EXECUTED 1bf0c: 0a00003d beq 1c008 <== NOT EXECUTED 1bf10: e1a00004 mov r0, r4 <== NOT EXECUTED 1bf14: e2851004 add r1, r5, #4 ; 0x4 <== NOT EXECUTED 1bf18: e1a02006 mov r2, r6 <== NOT EXECUTED 1bf1c: e1a03007 mov r3, r7 <== NOT EXECUTED 1bf20: e58d8000 str r8, [sp] <== NOT EXECUTED 1bf24: ebffffb2 bl 1bdf4 <== NOT EXECUTED 1bf28: e1500008 cmp r0, r8 <== NOT EXECUTED 1bf2c: 0a000035 beq 1c008 <== NOT EXECUTED 1bf30: e1a00004 mov r0, r4 <== NOT EXECUTED 1bf34: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 1bf38: ebffff74 bl 1bd10 <== NOT EXECUTED 1bf3c: e1500008 cmp r0, r8 <== NOT EXECUTED 1bf40: 0a000030 beq 1c008 <== NOT EXECUTED 1bf44: e1a00004 mov r0, r4 <== NOT EXECUTED 1bf48: e1a02006 mov r2, r6 <== NOT EXECUTED 1bf4c: e1a03007 mov r3, r7 <== NOT EXECUTED 1bf50: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 1bf54: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 1bf58: e58d4000 str r4, [sp] <== NOT EXECUTED 1bf5c: ebffffa4 bl 1bdf4 <== NOT EXECUTED 1bf60: e1500008 cmp r0, r8 <== NOT EXECUTED 1bf64: 0a000027 beq 1c008 <== NOT EXECUTED || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 1bf68: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1bf6c: e1a02008 mov r2, r8 <== NOT EXECUTED if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 1bf70: e1c530b8 strh r3, [r5, #8] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1bf74: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED 1bf78: e1a03004 mov r3, r4 <== NOT EXECUTED 1bf7c: ea000001 b 1bf88 <== NOT EXECUTED if(*cp == ',') 1bf80: e350002c cmp r0, #44 ; 0x2c <== NOT EXECUTED memcount++; 1bf84: 02833001 addeq r3, r3, #1 ; 0x1 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1bf88: e7d10002 ldrb r0, [r1, r2] <== NOT EXECUTED 1bf8c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if(*cp == ',') memcount++; 1bf90: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1bf94: 1afffff9 bne 1bf80 <== NOT EXECUTED } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 1bf98: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 1bf9c: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 1bfa0: e2833013 add r3, r3, #19 ; 0x13 <== NOT EXECUTED 1bfa4: e1520003 cmp r2, r3 <== NOT EXECUTED 1bfa8: 3a000016 bcc 1c008 <== NOT EXECUTED return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 1bfac: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1bfb0: e283300f add r3, r3, #15 ; 0xf <== NOT EXECUTED 1bfb4: e3c3300f bic r3, r3, #15 ; 0xf <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 1bfb8: e5831000 str r1, [r3] <== NOT EXECUTED /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 1bfbc: e585300c str r3, [r5, #12] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 1bfc0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; 1bfc4: e1a0c000 mov ip, r0 <== NOT EXECUTED grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 1bfc8: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 1bfcc: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 1bfd0: ea000005 b 1bfec <== NOT EXECUTED for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 1bfd4: e352002c cmp r2, #44 ; 0x2c <== NOT EXECUTED *cp = '\0'; 1bfd8: 0541c001 strbeq ip, [r1, #-1] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 1bfdc: 0595300c ldreq r3, [r5, #12] <== NOT EXECUTED 1bfe0: 07831100 streq r1, [r3, r0, lsl #2] <== NOT EXECUTED 1bfe4: 02800001 addeq r0, r0, #1 ; 0x1 <== NOT EXECUTED 1bfe8: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1bfec: e5512001 ldrb r2, [r1, #-1] <== NOT EXECUTED 1bff0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1bff4: 1afffff6 bne 1bfd4 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 1bff8: e595300c ldr r3, [r5, #12] <== NOT EXECUTED 1bffc: e7832100 str r2, [r3, r0, lsl #2] <== NOT EXECUTED 1c000: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 1c004: ea000000 b 1c00c <== NOT EXECUTED return 1; 1c008: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1c00c: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1c010: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 0001c058 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 1c058: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 1c05c: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 1c060: e28d7008 add r7, sp, #8 ; 0x8 <== NOT EXECUTED 1c064: e28d8004 add r8, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 1c068: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 1c06c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 1c070: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 1c074: e1a02007 mov r2, r7 <== NOT EXECUTED 1c078: e1a03008 mov r3, r8 <== NOT EXECUTED 1c07c: e58d6000 str r6, [sp] <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 1c080: e1a04000 mov r4, r0 <== NOT EXECUTED 1c084: e1a05001 mov r5, r1 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 1c088: ebffff59 bl 1bdf4 <== NOT EXECUTED 1c08c: e1500006 cmp r0, r6 <== NOT EXECUTED 1c090: 0a000038 beq 1c178 <== NOT EXECUTED 1c094: e1a00004 mov r0, r4 <== NOT EXECUTED 1c098: e2851004 add r1, r5, #4 ; 0x4 <== NOT EXECUTED 1c09c: e1a02007 mov r2, r7 <== NOT EXECUTED 1c0a0: e1a03008 mov r3, r8 <== NOT EXECUTED 1c0a4: e58d6000 str r6, [sp] <== NOT EXECUTED 1c0a8: ebffff51 bl 1bdf4 <== NOT EXECUTED 1c0ac: e1500006 cmp r0, r6 <== NOT EXECUTED 1c0b0: 0a000030 beq 1c178 <== NOT EXECUTED 1c0b4: e1a00004 mov r0, r4 <== NOT EXECUTED 1c0b8: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 1c0bc: ebffff13 bl 1bd10 <== NOT EXECUTED 1c0c0: e1500006 cmp r0, r6 <== NOT EXECUTED 1c0c4: 0a00002b beq 1c178 <== NOT EXECUTED 1c0c8: e1a00004 mov r0, r4 <== NOT EXECUTED 1c0cc: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 1c0d0: ebffff0e bl 1bd10 <== NOT EXECUTED 1c0d4: e1500006 cmp r0, r6 <== NOT EXECUTED 1c0d8: 0a000026 beq 1c178 <== NOT EXECUTED 1c0dc: e1a00004 mov r0, r4 <== NOT EXECUTED 1c0e0: e285100c add r1, r5, #12 ; 0xc <== NOT EXECUTED 1c0e4: e1a02007 mov r2, r7 <== NOT EXECUTED 1c0e8: e1a03008 mov r3, r8 <== NOT EXECUTED 1c0ec: e58d6000 str r6, [sp] <== NOT EXECUTED 1c0f0: ebffff3f bl 1bdf4 <== NOT EXECUTED 1c0f4: e1500006 cmp r0, r6 <== NOT EXECUTED 1c0f8: 0a00001e beq 1c178 <== NOT EXECUTED 1c0fc: e1a00004 mov r0, r4 <== NOT EXECUTED 1c100: e2851010 add r1, r5, #16 ; 0x10 <== NOT EXECUTED 1c104: e1a02007 mov r2, r7 <== NOT EXECUTED 1c108: e1a03008 mov r3, r8 <== NOT EXECUTED 1c10c: e58d6000 str r6, [sp] <== NOT EXECUTED 1c110: ebffff37 bl 1bdf4 <== NOT EXECUTED 1c114: e1500006 cmp r0, r6 <== NOT EXECUTED 1c118: 0a000016 beq 1c178 <== NOT EXECUTED 1c11c: e1a00004 mov r0, r4 <== NOT EXECUTED 1c120: e2851014 add r1, r5, #20 ; 0x14 <== NOT EXECUTED 1c124: e1a02007 mov r2, r7 <== NOT EXECUTED 1c128: e1a03008 mov r3, r8 <== NOT EXECUTED 1c12c: e58d6000 str r6, [sp] <== NOT EXECUTED 1c130: ebffff2f bl 1bdf4 <== NOT EXECUTED 1c134: e1500006 cmp r0, r6 <== NOT EXECUTED 1c138: 0a00000e beq 1c178 <== NOT EXECUTED 1c13c: e1a00004 mov r0, r4 <== NOT EXECUTED 1c140: e1a02007 mov r2, r7 <== NOT EXECUTED 1c144: e1a03008 mov r3, r8 <== NOT EXECUTED 1c148: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 1c14c: e2851018 add r1, r5, #24 ; 0x18 <== NOT EXECUTED 1c150: e58d4000 str r4, [sp] <== NOT EXECUTED 1c154: ebffff26 bl 1bdf4 <== NOT EXECUTED 1c158: e1500006 cmp r0, r6 <== NOT EXECUTED 1c15c: 0a000005 beq 1c178 <== NOT EXECUTED || !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; pwd->pw_gid = pwgid; 1c160: e1dd30bc ldrh r3, [sp, #12] <== NOT EXECUTED 1c164: e1c530ba strh r3, [r5, #10] <== NOT EXECUTED || !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; 1c168: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED pwd->pw_gid = pwgid; 1c16c: e1a00004 mov r0, r4 <== NOT EXECUTED || !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; 1c170: e1c530b8 strh r3, [r5, #8] <== NOT EXECUTED 1c174: ea000000 b 1c17c <== NOT EXECUTED pwd->pw_gid = pwgid; return 1; 1c178: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1c17c: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1c180: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 0001bcc8 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 1bcc8: e59f300c ldr r3, [pc, #12] ; 1bcdc <== NOT EXECUTED 1bccc: e5933000 ldr r3, [r3] <== NOT EXECUTED 1bcd0: e1c302bc strh r0, [r3, #44] <== NOT EXECUTED return 0; } 1bcd4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1bcd8: e12fff1e bx lr <== NOT EXECUTED 1bcdc: 0003b5c8 .word 0x0003b5c8 0001c290 : return NULL; return &grent; } void setgrent(void) { 1c290: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 1c294: ebffffcb bl 1c1c8 <== NOT EXECUTED if (group_fp != NULL) 1c298: e59f3020 ldr r3, [pc, #32] ; 1c2c0 <== NOT EXECUTED 1c29c: e5930000 ldr r0, [r3] <== NOT EXECUTED 1c2a0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(group_fp); 1c2a4: 1b0034df blne 29628 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 1c2a8: e59f0014 ldr r0, [pc, #20] ; 1c2c4 <== NOT EXECUTED 1c2ac: e59f1014 ldr r1, [pc, #20] ; 1c2c8 <== NOT EXECUTED 1c2b0: eb0036cf bl 29df4 <== NOT EXECUTED 1c2b4: e59f3004 ldr r3, [pc, #4] ; 1c2c0 <== NOT EXECUTED 1c2b8: e5830000 str r0, [r3] <== NOT EXECUTED } 1c2bc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1c2c0: 000548ec .word 0x000548ec 1c2c4: 000400ac .word 0x000400ac 1c2c8: 0003e845 .word 0x0003e845 0001c488 : return NULL; return &pwent; } void setpwent(void) { 1c488: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 1c48c: ebffff4d bl 1c1c8 <== NOT EXECUTED if (passwd_fp != NULL) 1c490: e59f3020 ldr r3, [pc, #32] ; 1c4b8 <== NOT EXECUTED 1c494: e5930000 ldr r0, [r3] <== NOT EXECUTED 1c498: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(passwd_fp); 1c49c: 1b003461 blne 29628 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 1c4a0: e59f0014 ldr r0, [pc, #20] ; 1c4bc <== NOT EXECUTED 1c4a4: e59f1014 ldr r1, [pc, #20] ; 1c4c0 <== NOT EXECUTED 1c4a8: eb003651 bl 29df4 <== NOT EXECUTED 1c4ac: e59f3004 ldr r3, [pc, #4] ; 1c4b8 <== NOT EXECUTED 1c4b0: e5830000 str r0, [r3] <== NOT EXECUTED } 1c4b4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1c4b8: 00054804 .word 0x00054804 1c4bc: 00040039 .word 0x00040039 1c4c0: 0003e845 .word 0x0003e845 00003eb0 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 3eb0: e59f300c ldr r3, [pc, #12] ; 3ec4 <== NOT EXECUTED 3eb4: e5933000 ldr r3, [r3] <== NOT EXECUTED 3eb8: e1c302ba strh r0, [r3, #42] <== NOT EXECUTED return 0; } 3ebc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3ec0: e12fff1e bx lr <== NOT EXECUTED 3ec4: 0003b5c8 .word 0x0003b5c8 00002af0 : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 2af0: e591303c ldr r3, [r1, #60] <== NOT EXECUTED 2af4: e59f2050 ldr r2, [pc, #80] ; 2b4c <== NOT EXECUTED 2af8: e0032002 and r2, r3, r2 <== NOT EXECUTED 2afc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2b00: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2b04: e1a05001 mov r5, r1 <== NOT EXECUTED 2b08: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 2b0c: 0a00000b beq 2b40 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2b10: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2b14: e1a02001 mov r2, r1 <== NOT EXECUTED 2b18: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 2b1c: eb0005fd bl 4318 <== NOT EXECUTED i = iproc (c, tty); 2b20: e1a01005 mov r1, r5 <== NOT EXECUTED 2b24: e1a00004 mov r0, r4 <== NOT EXECUTED 2b28: ebffff8b bl 295c <== NOT EXECUTED 2b2c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2b30: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 2b34: eb00063d bl 4430 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2b38: e1a00004 mov r0, r4 <== NOT EXECUTED 2b3c: e8bd8030 pop {r4, r5, pc} <== 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); 2b40: e1a00004 mov r0, r4 <== NOT EXECUTED } return i; } 2b44: e8bd4030 pop {r4, r5, lr} <== 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); 2b48: eaffff83 b 295c <== NOT EXECUTED 2b4c: 00000e78 .word 0x00000e78 00005218 : int _STAT_NAME( const char *path, struct stat *buf ) { 5218: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 521c: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 5220: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 5224: 1a000002 bne 5234 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 5228: eb0090ad bl 294e4 <__errno> <== NOT EXECUTED 522c: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 5230: ea000014 b 5288 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 5234: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 5238: e1a0200d mov r2, sp <== NOT EXECUTED 523c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 5240: ebfffa80 bl 3c48 <== NOT EXECUTED if ( status != 0 ) 5244: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 5248: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 524c: 1a00000e bne 528c <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 5250: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 5254: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 5258: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 525c: 1a00000c bne 5294 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 5260: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 5264: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 5268: 0a000004 beq 5280 <== NOT EXECUTED 526c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 5270: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 5274: 11a0000d movne r0, sp <== NOT EXECUTED 5278: 11a0e00f movne lr, pc <== NOT EXECUTED 527c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 5280: eb009097 bl 294e4 <__errno> <== NOT EXECUTED 5284: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 5288: e5803000 str r3, [r0] <== NOT EXECUTED 528c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 5290: ea000011 b 52dc <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 5294: e1a01000 mov r1, r0 <== NOT EXECUTED 5298: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 529c: e1a00004 mov r0, r4 <== NOT EXECUTED 52a0: eb009a97 bl 2bd04 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 52a4: e1a01004 mov r1, r4 <== NOT EXECUTED 52a8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 52ac: e1a0000d mov r0, sp <== NOT EXECUTED 52b0: e1a0e00f mov lr, pc <== NOT EXECUTED 52b4: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 52b8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 52bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 52c0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 52c4: 0a000004 beq 52dc <== NOT EXECUTED 52c8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 52cc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 52d0: 11a0000d movne r0, sp <== NOT EXECUTED 52d4: 11a0e00f movne lr, pc <== NOT EXECUTED 52d8: 112fff13 bxne r3 <== NOT EXECUTED return status; } 52dc: e1a00004 mov r0, r4 <== NOT EXECUTED 52e0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 52e4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0001d398 : int symlink( const char *actualpath, const char *sympath ) { 1d398: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 1d39c: e5d13000 ldrb r3, [r1] <== NOT EXECUTED 1d3a0: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 1d3a4: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 1d3a8: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED 1d3ac: e1a04001 mov r4, r1 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 1d3b0: 13a0e000 movne lr, #0 ; 0x0 <== NOT EXECUTED 1d3b4: 03a0e001 moveq lr, #1 ; 0x1 <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 1d3b8: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 1d3bc: 0a000001 beq 1d3c8 <== NOT EXECUTED 1d3c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d3c4: 1a000006 bne 1d3e4 <== NOT EXECUTED 1d3c8: e59f30cc ldr r3, [pc, #204] ; 1d49c <== NOT EXECUTED 1d3cc: e5933000 ldr r3, [r3] <== NOT EXECUTED 1d3d0: e2833014 add r3, r3, #20 ; 0x14 <== NOT EXECUTED 1d3d4: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 1d3d8: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1d3dc: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 1d3e0: ea000005 b 1d3fc <== NOT EXECUTED 1d3e4: e59f30b0 ldr r3, [pc, #176] ; 1d49c <== NOT EXECUTED 1d3e8: e5933000 ldr r3, [r3] <== NOT EXECUTED 1d3ec: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 1d3f0: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 1d3f4: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1d3f8: e1a0300e mov r3, lr <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 1d3fc: e0840003 add r0, r4, r3 <== NOT EXECUTED 1d400: e1a0100d mov r1, sp <== NOT EXECUTED 1d404: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 1d408: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d40c: e1a0e00f mov lr, pc <== NOT EXECUTED 1d410: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( result != 0 ) 1d414: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 1d418: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 1d41c: 1a00000b bne 1d450 <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { 1d420: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d424: e593c038 ldr ip, [r3, #56] <== NOT EXECUTED 1d428: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 1d42c: 1a000009 bne 1d458 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d430: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d434: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d438: 11a0000d movne r0, sp <== NOT EXECUTED 1d43c: 11a0e00f movne lr, pc <== NOT EXECUTED 1d440: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1d444: eb003026 bl 294e4 <__errno> <== NOT EXECUTED 1d448: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1d44c: e5803000 str r3, [r0] <== NOT EXECUTED 1d450: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1d454: ea00000d b 1d490 <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 1d458: e1a01006 mov r1, r6 <== NOT EXECUTED 1d45c: e1a0000d mov r0, sp <== NOT EXECUTED 1d460: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED 1d464: e1a0e00f mov lr, pc <== NOT EXECUTED 1d468: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d46c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d470: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 1d474: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d478: 0a000004 beq 1d490 <== NOT EXECUTED 1d47c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d480: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d484: 11a0000d movne r0, sp <== NOT EXECUTED 1d488: 11a0e00f movne lr, pc <== NOT EXECUTED 1d48c: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1d490: e1a00004 mov r0, r4 <== NOT EXECUTED 1d494: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1d498: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 1d49c: 0003b5c8 .word 0x0003b5c8 0001d4a0 : int tcdrain( int fd ) { return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); 1d4a0: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 1d4a4: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 1d4a8: eafffc74 b 1c680 <== NOT EXECUTED 0000eff0 : int tcgetattr( int fd, struct termios *tp ) { eff0: e1a02001 mov r2, r1 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); eff4: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED eff8: ea000cb1 b 122c4 <== NOT EXECUTED 0000effc : int fd, int opt, struct termios *tp ) { switch (opt) { effc: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int tcsetattr( int fd, int opt, struct termios *tp ) { f000: e92d4030 push {r4, r5, lr} <== NOT EXECUTED f004: e1a05002 mov r5, r2 <== NOT EXECUTED f008: e1a04000 mov r4, r0 <== NOT EXECUTED switch (opt) { f00c: 0a00000a beq f03c <== NOT EXECUTED f010: e3510001 cmp r1, #1 ; 0x1 <== NOT EXECUTED f014: 0a000003 beq f028 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); f018: eb000eb6 bl 12af8 <__errno> <== NOT EXECUTED f01c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED f020: e5803000 str r3, [r0] <== NOT EXECUTED f024: ea000009 b f050 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) f028: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED f02c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED f030: eb000ca3 bl 122c4 <== NOT EXECUTED f034: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED f038: ba000004 blt f050 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); f03c: e1a00004 mov r0, r4 <== NOT EXECUTED f040: e1a02005 mov r2, r5 <== NOT EXECUTED f044: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED } } f048: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); f04c: ea000c9c b 122c4 <== NOT EXECUTED } } f050: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED f054: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0001d60c : */ char *ttyname( int fd ) { 1d60c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 1d610: e59f1018 ldr r1, [pc, #24] ; 1d630 <== NOT EXECUTED 1d614: e59f2018 ldr r2, [pc, #24] ; 1d634 <== NOT EXECUTED 1d618: ebffffbd bl 1d514 <== NOT EXECUTED 1d61c: e59f300c ldr r3, [pc, #12] ; 1d630 <== NOT EXECUTED return ttyname_buf; return NULL; } 1d620: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d624: 01a00003 moveq r0, r3 <== NOT EXECUTED 1d628: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 1d62c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1d630: 0003b5cc .word 0x0003b5cc 1d634: 00000406 .word 0x00000406 0001d514 : int ttyname_r( int fd, char *name, size_t namesize ) { 1d514: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 1d518: e24dd0bc sub sp, sp, #188 ; 0xbc <== NOT EXECUTED 1d51c: e1a06001 mov r6, r1 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 1d520: e28d1098 add r1, sp, #152 ; 0x98 <== NOT EXECUTED int ttyname_r( int fd, char *name, size_t namesize ) { 1d524: e1a04000 mov r4, r0 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 1d528: ebffffdf bl 1d4ac <== NOT EXECUTED 1d52c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d530: ba00000e blt 1d570 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) 1d534: e1a00004 mov r0, r4 <== NOT EXECUTED 1d538: e28d104c add r1, sp, #76 ; 0x4c <== NOT EXECUTED 1d53c: ebfff843 bl 1b650 <== NOT EXECUTED 1d540: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d544: 1a000009 bne 1d570 <== NOT EXECUTED 1d548: e59d3058 ldr r3, [sp, #88] <== NOT EXECUTED 1d54c: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 1d550: e3530a02 cmp r3, #8192 ; 0x2000 <== NOT EXECUTED 1d554: 1a000005 bne 1d570 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) 1d558: e59f00a8 ldr r0, [pc, #168] ; 1d608 <== NOT EXECUTED 1d55c: ebfffdd9 bl 1ccc8 <== NOT EXECUTED 1d560: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED for (rval = NULL; (dirp = readdir (dp)) != NULL ;) { if (dirp->d_ino != sb.st_ino) continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 1d564: 12865005 addne r5, r6, #5 ; 0x5 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 1d568: 11a0700d movne r7, sp <== NOT EXECUTED /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) 1d56c: 1a00001c bne 1d5e4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); 1d570: eb002fdb bl 294e4 <__errno> <== NOT EXECUTED 1d574: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 1d578: e5803000 str r3, [r0] <== NOT EXECUTED 1d57c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1d580: ea00001e b 1d600 <== NOT EXECUTED for (rval = NULL; (dirp = readdir (dp)) != NULL ;) { if (dirp->d_ino != sb.st_ino) 1d584: e5902000 ldr r2, [r0] <== NOT EXECUTED 1d588: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 1d58c: e1520003 cmp r2, r3 <== NOT EXECUTED 1d590: 1a000013 bne 1d5e4 <== NOT EXECUTED continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 1d594: e280100c add r1, r0, #12 ; 0xc <== NOT EXECUTED 1d598: e1a00005 mov r0, r5 <== NOT EXECUTED 1d59c: eb004479 bl 2e788 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 1d5a0: e1a00006 mov r0, r6 <== NOT EXECUTED 1d5a4: e1a0100d mov r1, sp <== NOT EXECUTED 1d5a8: ebff9f1a bl 5218 <== NOT EXECUTED 1d5ac: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d5b0: 1a00000b bne 1d5e4 <== NOT EXECUTED 1d5b4: e59d2000 ldr r2, [sp] <== NOT EXECUTED 1d5b8: e59d304c ldr r3, [sp, #76] <== NOT EXECUTED 1d5bc: e1530002 cmp r3, r2 <== NOT EXECUTED 1d5c0: 1a000007 bne 1d5e4 <== NOT EXECUTED 1d5c4: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 1d5c8: e59d3050 ldr r3, [sp, #80] <== NOT EXECUTED 1d5cc: e1530002 cmp r3, r2 <== NOT EXECUTED 1d5d0: 1a000003 bne 1d5e4 <== NOT EXECUTED 1d5d4: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1d5d8: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 1d5dc: e1530002 cmp r3, r2 <== NOT EXECUTED 1d5e0: 0a000003 beq 1d5f4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); for (rval = NULL; (dirp = readdir (dp)) != NULL ;) 1d5e4: e1a00004 mov r0, r4 <== NOT EXECUTED 1d5e8: ebfffe6b bl 1cf9c <== NOT EXECUTED 1d5ec: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d5f0: 1affffe3 bne 1d584 <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 1d5f4: e1a00004 mov r0, r4 <== NOT EXECUTED 1d5f8: eb002693 bl 2704c <== NOT EXECUTED 1d5fc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 1d600: e28dd0bc add sp, sp, #188 ; 0xbc <== NOT EXECUTED 1d604: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 1d608: 00040187 .word 0x00040187 0001d638 : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; 1d638: e59f3010 ldr r3, [pc, #16] ; 1d650 <== NOT EXECUTED 1d63c: e5933000 ldr r3, [r3] <== NOT EXECUTED 1d640: e5932024 ldr r2, [r3, #36] <== NOT EXECUTED rtems_filesystem_umask = cmask; 1d644: e5830024 str r0, [r3, #36] <== NOT EXECUTED return old_mask; } 1d648: e1a00002 mov r0, r2 <== NOT EXECUTED 1d64c: e12fff1e bx lr <== NOT EXECUTED 1d650: 0003b5c8 .word 0x0003b5c8 0001d654 : #include int unlink( const char *path ) { 1d654: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 1d658: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int unlink( const char *path ) { 1d65c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 1d660: e1a0200d mov r2, sp <== NOT EXECUTED 1d664: e1a03001 mov r3, r1 <== NOT EXECUTED 1d668: ebff9976 bl 3c48 <== NOT EXECUTED if ( result != 0 ) 1d66c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d670: 1a000041 bne 1d77c <== NOT EXECUTED return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 1d674: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 1d678: e1a0100d mov r1, sp <== NOT EXECUTED 1d67c: ebff994a bl 3bac <== NOT EXECUTED if (result != 0 && errno != ENOTSUP) { 1d680: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d684: 0a00000d beq 1d6c0 <== NOT EXECUTED 1d688: eb002f95 bl 294e4 <__errno> <== NOT EXECUTED 1d68c: e5903000 ldr r3, [r0] <== NOT EXECUTED 1d690: e3530086 cmp r3, #134 ; 0x86 <== NOT EXECUTED 1d694: 0a000009 beq 1d6c0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d698: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d69c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d6a0: 0a000035 beq 1d77c <== NOT EXECUTED 1d6a4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d6a8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d6ac: 0a000032 beq 1d77c <== NOT EXECUTED 1d6b0: e1a0000d mov r0, sp <== NOT EXECUTED 1d6b4: e1a0e00f mov lr, pc <== NOT EXECUTED 1d6b8: e12fff13 bx r3 <== NOT EXECUTED 1d6bc: ea00002e b 1d77c <== NOT EXECUTED return -1; } if ( !loc.ops->node_type_h ) { 1d6c0: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d6c4: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED 1d6c8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1d6cc: 0a000013 beq 1d720 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 1d6d0: e1a0000d mov r0, sp <== NOT EXECUTED 1d6d4: e1a0e00f mov lr, pc <== NOT EXECUTED 1d6d8: e12fff12 bx r2 <== NOT EXECUTED 1d6dc: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 1d6e0: e1a0500d mov r5, sp <== NOT EXECUTED 1d6e4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d6e8: 1a000009 bne 1d714 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d6ec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d6f0: 0a000004 beq 1d708 <== NOT EXECUTED 1d6f4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d6f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d6fc: 11a0000d movne r0, sp <== NOT EXECUTED 1d700: 11a0e00f movne lr, pc <== NOT EXECUTED 1d704: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 1d708: eb002f75 bl 294e4 <__errno> <== NOT EXECUTED 1d70c: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 1d710: ea000009 b 1d73c <== NOT EXECUTED } if ( !loc.ops->unlink_h ) { 1d714: e593200c ldr r2, [r3, #12] <== NOT EXECUTED 1d718: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1d71c: 1a000008 bne 1d744 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d720: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d724: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d728: 11a0000d movne r0, sp <== NOT EXECUTED 1d72c: 11a0e00f movne lr, pc <== NOT EXECUTED 1d730: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1d734: eb002f6a bl 294e4 <__errno> <== NOT EXECUTED 1d738: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1d73c: e5803000 str r3, [r0] <== NOT EXECUTED 1d740: ea00000d b 1d77c <== NOT EXECUTED } result = (*loc.ops->unlink_h)( &loc ); 1d744: e1a0000d mov r0, sp <== NOT EXECUTED 1d748: e1a0e00f mov lr, pc <== NOT EXECUTED 1d74c: e12fff12 bx r2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d750: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d754: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); 1d758: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d75c: 0a000007 beq 1d780 <== NOT EXECUTED 1d760: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d764: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d768: 0a000004 beq 1d780 <== NOT EXECUTED 1d76c: e1a0000d mov r0, sp <== NOT EXECUTED 1d770: e1a0e00f mov lr, pc <== NOT EXECUTED 1d774: e12fff13 bx r3 <== NOT EXECUTED 1d778: ea000000 b 1d780 <== NOT EXECUTED 1d77c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 1d780: e1a00004 mov r0, r4 <== NOT EXECUTED 1d784: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1d788: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0001d7e8 : */ int unmount( const char *path ) { 1d7e8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 1d7ec: e24dd010 sub sp, sp, #16 ; 0x10 <== 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, 0x0, &loc, true ) ) 1d7f0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1d7f4: e1a0200d mov r2, sp <== NOT EXECUTED 1d7f8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 1d7fc: ebff9911 bl 3c48 <== NOT EXECUTED 1d800: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d804: e1a0500d mov r5, sp <== NOT EXECUTED 1d808: 1a000057 bne 1d96c <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 1d80c: e59d400c ldr r4, [sp, #12] <== NOT EXECUTED /* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ 1d810: e59d3000 ldr r3, [sp] <== NOT EXECUTED 1d814: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED 1d818: e1520003 cmp r2, r3 <== NOT EXECUTED 1d81c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d820: 0a000009 beq 1d84c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1d824: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d828: 0a000004 beq 1d840 <== NOT EXECUTED 1d82c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d830: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d834: 11a0000d movne r0, sp <== NOT EXECUTED 1d838: 11a0e00f movne lr, pc <== NOT EXECUTED 1d83c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); 1d840: eb002f27 bl 294e4 <__errno> <== NOT EXECUTED 1d844: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 1d848: ea000023 b 1d8dc <== NOT EXECUTED /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 1d84c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d850: 0a000004 beq 1d868 <== NOT EXECUTED 1d854: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d858: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d85c: 11a0000d movne r0, sp <== NOT EXECUTED 1d860: 11a0e00f movne lr, pc <== NOT EXECUTED 1d864: 112fff13 bxne r3 <== NOT EXECUTED /* * Verify Unmount is supported by both filesystems. */ if ( !fs_mount_loc->ops->unmount_h ) 1d868: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 1d86c: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 1d870: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d874: 0a000003 beq 1d888 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) 1d878: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 1d87c: e593302c ldr r3, [r3, #44] <== NOT EXECUTED 1d880: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d884: 1a000002 bne 1d894 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1d888: eb002f15 bl 294e4 <__errno> <== NOT EXECUTED 1d88c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1d890: ea000011 b 1d8dc <== NOT EXECUTED * 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 ) 1d894: e59f30f0 ldr r3, [pc, #240] ; 1d98c <== NOT EXECUTED 1d898: e5933000 ldr r3, [r3] <== NOT EXECUTED 1d89c: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 1d8a0: e1530004 cmp r3, r4 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 1d8a4: 159f00e4 ldrne r0, [pc, #228] ; 1d990 <== NOT EXECUTED 1d8a8: 14901004 ldrne r1, [r0], #4 <== NOT EXECUTED * 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 ) 1d8ac: 1a000005 bne 1d8c8 <== NOT EXECUTED 1d8b0: ea000007 b 1d8d4 <== NOT EXECUTED 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 ) { 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 ) { 1d8b4: e5912014 ldr r2, [r1, #20] <== NOT EXECUTED 1d8b8: e5943024 ldr r3, [r4, #36] <== NOT EXECUTED 1d8bc: e1520003 cmp r2, r3 <== NOT EXECUTED 1d8c0: 0a000003 beq 1d8d4 <== 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 ) { 1d8c4: e5911000 ldr r1, [r1] <== NOT EXECUTED * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 1d8c8: e1510000 cmp r1, r0 <== NOT EXECUTED 1d8cc: 1afffff8 bne 1d8b4 <== NOT EXECUTED 1d8d0: ea000028 b 1d978 <== 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 ); 1d8d4: eb002f02 bl 294e4 <__errno> <== NOT EXECUTED 1d8d8: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 1d8dc: e5803000 str r3, [r0] <== NOT EXECUTED 1d8e0: ea000021 b 1d96c <== NOT EXECUTED * 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 ) 1d8e4: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 1d8e8: e1a00004 mov r0, r4 <== NOT EXECUTED 1d8ec: e1a0e00f mov lr, pc <== NOT EXECUTED 1d8f0: e593f028 ldr pc, [r3, #40] <== NOT EXECUTED 1d8f4: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1d8f8: 1a00001b bne 1d96c <== 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){ 1d8fc: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 1d900: e1a00004 mov r0, r4 <== NOT EXECUTED 1d904: e1a0e00f mov lr, pc <== NOT EXECUTED 1d908: e593f02c ldr pc, [r3, #44] <== NOT EXECUTED 1d90c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d910: 0a000007 beq 1d934 <== NOT EXECUTED if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 1d914: e1a00004 mov r0, r4 <== NOT EXECUTED 1d918: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 1d91c: e1a0e00f mov lr, pc <== NOT EXECUTED 1d920: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED 1d924: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d928: 0a00000f beq 1d96c <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 1d92c: e1a00005 mov r0, r5 <== NOT EXECUTED 1d930: ebffa944 bl 7e48 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 1d934: e1a00004 mov r0, r4 <== NOT EXECUTED 1d938: eb0003bb bl 1e82c <_Chain_Extract> <== NOT EXECUTED /* * 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 ); 1d93c: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 1d940: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d944: 0a000004 beq 1d95c <== NOT EXECUTED 1d948: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d94c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d950: 12840008 addne r0, r4, #8 ; 0x8 <== NOT EXECUTED 1d954: 11a0e00f movne lr, pc <== NOT EXECUTED 1d958: 112fff13 bxne r3 <== NOT EXECUTED free( mt_entry ); 1d95c: e1a00004 mov r0, r4 <== NOT EXECUTED 1d960: ebff9909 bl 3d8c <== NOT EXECUTED 1d964: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1d968: ea000000 b 1d970 <== NOT EXECUTED return 0; 1d96c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED } 1d970: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1d974: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED * 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 ) 1d978: e1a00004 mov r0, r4 <== NOT EXECUTED 1d97c: ebff99b0 bl 4044 <== NOT EXECUTED 1d980: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 1d984: 1affffd6 bne 1d8e4 <== NOT EXECUTED 1d988: eaffffd1 b 1d8d4 <== NOT EXECUTED 1d98c: 0003b5c8 .word 0x0003b5c8 1d990: 00055190 .word 0x00055190 0001d994 : int utime( const char *path, const struct utimbuf *times ) { 1d994: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 1d998: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1d99c: e1a04001 mov r4, r1 <== NOT EXECUTED rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, true ) ) 1d9a0: e1a0200d mov r2, sp <== NOT EXECUTED 1d9a4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1d9a8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 1d9ac: ebff98a5 bl 3c48 <== NOT EXECUTED 1d9b0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d9b4: e1a0500d mov r5, sp <== NOT EXECUTED 1d9b8: 1a00000b bne 1d9ec <== NOT EXECUTED return -1; if ( !temp_loc.ops->utime_h ){ 1d9bc: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1d9c0: e593c030 ldr ip, [r3, #48] <== NOT EXECUTED 1d9c4: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 1d9c8: 1a000009 bne 1d9f4 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 1d9cc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1d9d0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d9d4: 11a0000d movne r0, sp <== NOT EXECUTED 1d9d8: 11a0e00f movne lr, pc <== NOT EXECUTED 1d9dc: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1d9e0: eb002ebf bl 294e4 <__errno> <== NOT EXECUTED 1d9e4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1d9e8: e5803000 str r3, [r0] <== NOT EXECUTED 1d9ec: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1d9f0: ea00000c b 1da28 <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 1d9f4: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED 1d9f8: e1a0000d mov r0, sp <== NOT EXECUTED 1d9fc: e1a0e00f mov lr, pc <== NOT EXECUTED 1da00: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 1da04: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1da08: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !temp_loc.ops->utime_h ){ 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 ); 1da0c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 1da10: 0a000004 beq 1da28 <== NOT EXECUTED 1da14: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1da18: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1da1c: 11a0000d movne r0, sp <== NOT EXECUTED 1da20: 11a0e00f movne lr, pc <== NOT EXECUTED 1da24: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1da28: e1a00004 mov r0, r4 <== NOT EXECUTED 1da2c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1da30: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00001c10 : */ void vprintk( const char *fmt, va_list ap ) { 1c10: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 1c14: e1a08000 mov r8, r0 1c18: e24dd018 sub sp, sp, #24 ; 0x18 1c1c: e1a09001 mov r9, r1 if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 1c20: e59fb2bc ldr fp, [pc, #700] ; 1ee4 1c24: ea0000a9 b 1ed0 base = 0; sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { 1c28: e3500025 cmp r0, #37 ; 0x25 1c2c: 1a0000a4 bne 1ec4 fmt++; if (*fmt == '0' ) { 1c30: e5f83001 ldrb r3, [r8, #1]! 1c34: e3530030 cmp r3, #48 ; 0x30 1c38: 13a02020 movne r2, #32 ; 0x20 1c3c: 158d2000 strne r2, [sp] lead = '0'; fmt++; 1c40: 058d3000 streq r3, [sp] 1c44: 02888001 addeq r8, r8, #1 ; 0x1 } if (*fmt == '-' ) { 1c48: e5d83000 ldrb r3, [r8] 1c4c: e353002d cmp r3, #45 ; 0x2d 1c50: 13a06000 movne r6, #0 ; 0x0 minus = 1; fmt++; 1c54: 02888001 addeq r8, r8, #1 ; 0x1 1c58: 03a06001 moveq r6, #1 ; 0x1 1c5c: e3a0a000 mov sl, #0 ; 0x0 1c60: ea000002 b 1c70 } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += (*fmt - '0'); 1c64: e3a0300a mov r3, #10 ; 0xa 1c68: e02a2a93 mla sl, r3, sl, r2 fmt++; 1c6c: e2888001 add r8, r8, #1 ; 0x1 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 1c70: e5d80000 ldrb r0, [r8] 1c74: e2402030 sub r2, r0, #48 ; 0x30 1c78: e20230ff and r3, r2, #255 ; 0xff 1c7c: e3530009 cmp r3, #9 ; 0x9 1c80: 9afffff7 bls 1c64 width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 1c84: e350006c cmp r0, #108 ; 0x6c lflag = 1; c = *++fmt; 1c88: 05f80001 ldrbeq r0, [r8, #1]! } switch (c) { 1c8c: e3500064 cmp r0, #100 ; 0x64 1c90: 0a00001e beq 1d10 1c94: 8a00000e bhi 1cd4 1c98: e350004f cmp r0, #79 ; 0x4f 1c9c: 0a00004f beq 1de0 1ca0: 8a000004 bhi 1cb8 1ca4: e3500044 cmp r0, #68 ; 0x44 1ca8: 0a000018 beq 1d10 1cac: e3500049 cmp r0, #73 ; 0x49 1cb0: 1a000083 bne 1ec4 1cb4: ea000015 b 1d10 <== NOT EXECUTED 1cb8: e3500058 cmp r0, #88 ; 0x58 <== NOT EXECUTED 1cbc: 0a00004a beq 1dec <== NOT EXECUTED 1cc0: e3500063 cmp r0, #99 ; 0x63 <== NOT EXECUTED 1cc4: 0a00003f beq 1dc8 <== NOT EXECUTED 1cc8: e3500055 cmp r0, #85 ; 0x55 <== NOT EXECUTED 1ccc: 1a00007c bne 1ec4 <== NOT EXECUTED 1cd0: ea000010 b 1d18 <== NOT EXECUTED 1cd4: e3500070 cmp r0, #112 ; 0x70 1cd8: 0a000043 beq 1dec 1cdc: 8a000004 bhi 1cf4 1ce0: e3500069 cmp r0, #105 ; 0x69 <== NOT EXECUTED 1ce4: 0a000009 beq 1d10 <== NOT EXECUTED 1ce8: e350006f cmp r0, #111 ; 0x6f <== NOT EXECUTED 1cec: 1a000074 bne 1ec4 <== NOT EXECUTED 1cf0: ea00003a b 1de0 <== NOT EXECUTED 1cf4: e3500075 cmp r0, #117 ; 0x75 1cf8: 0a000006 beq 1d18 1cfc: e3500078 cmp r0, #120 ; 0x78 1d00: 0a000039 beq 1dec 1d04: e3500073 cmp r0, #115 ; 0x73 1d08: 1a00006d bne 1ec4 1d0c: ea000004 b 1d24 1d10: e3a03001 mov r3, #1 ; 0x1 1d14: ea000000 b 1d1c 1d18: e3a03000 mov r3, #0 ; 0x0 1d1c: e3a0700a mov r7, #10 ; 0xa 1d20: ea000033 b 1df4 case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 1d24: e5997000 ldr r7, [r9] 1d28: e3a05000 mov r5, #0 ; 0x0 1d2c: e2899004 add r9, r9, #4 ; 0x4 1d30: ea000000 b 1d38 /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 1d34: e2855001 add r5, r5, #1 ; 0x1 1d38: e7d73005 ldrb r3, [r7, r5] 1d3c: e3530000 cmp r3, #0 ; 0x0 1d40: 1afffffb bne 1d34 ; /* leading spaces */ if ( !minus ) 1d44: e3560000 cmp r6, #0 ; 0x0 1d48: 01a04005 moveq r4, r5 1d4c: 0a000002 beq 1d5c 1d50: ea000005 b 1d6c for ( i=len ; i BSP_output_char(' '); /* no width option */ if (width == 0) { 1d6c: e35a0000 cmp sl, #0 ; 0x0 1d70: 01a0a005 moveq sl, r5 width = len; } /* output the string */ for ( i=0 ; i 1d80: ea000001 b 1d8c BSP_output_char(*str); 1d84: e1a0e00f mov lr, pc 1d88: e59bf000 ldr pc, [fp] if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) 1d9c: e3560000 cmp r6, #0 ; 0x0 1da0: 11a04005 movne r4, r5 1da4: 1a000002 bne 1db4 1da8: ea000047 b 1ecc for ( i=len ; i 1dc4: ea000040 b 1ecc BSP_output_char(' '); } break; case 'c': BSP_output_char(va_arg(ap, int)); 1dc8: e5d90000 ldrb r0, [r9] <== NOT EXECUTED 1dcc: e2894004 add r4, r9, #4 ; 0x4 <== NOT EXECUTED 1dd0: e1a0e00f mov lr, pc <== NOT EXECUTED 1dd4: e59bf000 ldr pc, [fp] <== NOT EXECUTED 1dd8: e1a09004 mov r9, r4 <== NOT EXECUTED 1ddc: ea00003a b 1ecc <== NOT EXECUTED break; default: BSP_output_char(c); 1de0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1de4: e3a07008 mov r7, #8 ; 0x8 <== NOT EXECUTED 1de8: ea000001 b 1df4 <== NOT EXECUTED 1dec: e3a03000 mov r3, #0 ; 0x0 1df0: e3a07010 mov r7, #16 ; 0x10 break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 1df4: e5994000 ldr r4, [r9] 1df8: e2892004 add r2, r9, #4 ; 0x4 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 1dfc: e0133fa4 ands r3, r3, r4, lsr #31 BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 1e00: e1a09002 mov r9, r2 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 1e04: 0a000005 beq 1e20 BSP_output_char('-'); 1e08: e3a0002d mov r0, #45 ; 0x2d <== NOT EXECUTED 1e0c: e1a0e00f mov lr, pc <== NOT EXECUTED 1e10: e59bf000 ldr pc, [fp] <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; 1e14: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { BSP_output_char('-'); num = -num; 1e18: e2644000 rsb r4, r4, #0 ; 0x0 <== NOT EXECUTED if (maxwidth) maxwidth--; 1e1c: 124aa001 subne sl, sl, #1 ; 0x1 <== NOT EXECUTED 1e20: e3a05000 mov r5, #0 ; 0x0 1e24: ea000005 b 1e40 } count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); 1e28: e0030097 mul r3, r7, r0 1e2c: e28d2004 add r2, sp, #4 ; 0x4 1e30: e0633004 rsb r3, r3, r4 1e34: e7c23005 strb r3, [r2, r5] 1e38: e1a04000 mov r4, r0 1e3c: e1a05006 mov r5, r6 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 1e40: e1a00004 mov r0, r4 1e44: e1a01007 mov r1, r7 1e48: eb003d81 bl 11454 <__aeabi_uidiv> 1e4c: e3500000 cmp r0, #0 ; 0x0 1e50: e2856001 add r6, r5, #1 ; 0x1 1e54: 1afffff3 bne 1e28 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 1e58: e28d2018 add r2, sp, #24 ; 0x18 1e5c: e0823005 add r3, r2, r5 1e60: e5434014 strb r4, [r3, #-20] for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); 1e64: e59d3000 ldr r3, [sp] toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 1e68: e1a0400a mov r4, sl BSP_output_char(lead); 1e6c: e20350ff and r5, r3, #255 ; 0xff 1e70: ea000001 b 1e7c 1e74: e1a0e00f mov lr, pc 1e78: e59bf000 ldr pc, [fp] toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 1e7c: e1540006 cmp r4, r6 BSP_output_char(lead); 1e80: e1a00005 mov r0, r5 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 1e84: e2444001 sub r4, r4, #1 ; 0x1 1e88: 8afffff9 bhi 1e74 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 1e8c: e28d2018 add r2, sp, #24 ; 0x18 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 1e90: e3a04000 mov r4, #0 ; 0x0 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 1e94: e0825006 add r5, r2, r6 1e98: ea000004 b 1eb0 1e9c: e5533015 ldrb r3, [r3, #-21] 1ea0: e59f2040 ldr r2, [pc, #64] ; 1ee8 1ea4: e7d20003 ldrb r0, [r2, r3] 1ea8: e1a0e00f mov lr, pc 1eac: e59bf000 ldr pc, [fp] toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 1eb0: e1540006 cmp r4, r6 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 1eb4: e0643005 rsb r3, r4, r5 toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 1eb8: e2844001 add r4, r4, #1 ; 0x1 1ebc: 3afffff6 bcc 1e9c 1ec0: ea000001 b 1ecc if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 1ec4: e1a0e00f mov lr, pc 1ec8: e59bf000 ldr pc, [fp] ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 1ecc: e2888001 add r8, r8, #1 ; 0x1 1ed0: e5d80000 ldrb r0, [r8] 1ed4: e3500000 cmp r0, #0 ; 0x0 1ed8: 1affff52 bne 1c28 base, sign, width, lead); } else { BSP_output_char(*fmt); } } } 1edc: e28dd018 add sp, sp, #24 ; 0x18 1ee0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 1ee4: 000139a8 .word 0x000139a8 1ee8: 00014b9e .word 0x00014b9e 00013098 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 13098: e59f30ac ldr r3, [pc, #172] ; 1314c 1309c: e5933000 ldr r3, [r3] 130a0: e1500003 cmp r0, r3 ssize_t write( int fd, const void *buffer, size_t count ) { 130a4: e92d4070 push {r4, r5, r6, lr} 130a8: e1a0c000 mov ip, r0 130ac: e1a06001 mov r6, r1 130b0: e1a05002 mov r5, r2 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 130b4: 2a000006 bcs 130d4 iop = rtems_libio_iop( fd ); 130b8: e59f3090 ldr r3, [pc, #144] ; 13150 130bc: e5930000 ldr r0, [r3] 130c0: e3a03034 mov r3, #52 ; 0x34 130c4: e0240c93 mla r4, r3, ip, r0 rtems_libio_check_is_open( iop ); 130c8: e594300c ldr r3, [r4, #12] 130cc: e3130c01 tst r3, #256 ; 0x100 130d0: 1a000002 bne 130e0 130d4: ebffddb3 bl a7a8 <__errno> <== NOT EXECUTED 130d8: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 130dc: ea00000f b 13120 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 130e0: e3510000 cmp r1, #0 ; 0x0 130e4: 0a000004 beq 130fc rtems_libio_check_count( count ); 130e8: e3520000 cmp r2, #0 ; 0x0 130ec: 01a00002 moveq r0, r2 130f0: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 130f4: e3130004 tst r3, #4 ; 0x4 130f8: 1a000002 bne 13108 130fc: ebffdda9 bl a7a8 <__errno> <== NOT EXECUTED 13100: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 13104: ea000005 b 13120 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 13108: e5943030 ldr r3, [r4, #48] 1310c: e593300c ldr r3, [r3, #12] 13110: e3530000 cmp r3, #0 ; 0x0 13114: 1a000004 bne 1312c rtems_set_errno_and_return_minus_one( ENOTSUP ); 13118: ebffdda2 bl a7a8 <__errno> <== NOT EXECUTED 1311c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 13120: e5803000 str r3, [r0] <== NOT EXECUTED 13124: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13128: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 1312c: e1a00004 mov r0, r4 13130: e1a0e00f mov lr, pc 13134: e12fff13 bx r3 if ( rc > 0 ) 13138: e3500000 cmp r0, #0 ; 0x0 iop->offset += rc; 1313c: c5943008 ldrgt r3, [r4, #8] 13140: c0833000 addgt r3, r3, r0 13144: c5843008 strgt r3, [r4, #8] return rc; } 13148: e8bd8070 pop {r4, r5, r6, pc} 1314c: 000137f4 .word 0x000137f4 13150: 00015218 .word 0x00015218