3000787c : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 3000787c: e5903000 ldr r3, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 30007880: e590200c ldr r2, [r0, #12] switch( node->type ) { 30007884: 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; 30007888: e592202c ldr r2, [r2, #44] switch( node->type ) { 3000788c: e2433001 sub r3, r3, #1 ; 0x1 30007890: e3530005 cmp r3, #5 ; 0x5 30007894: 979ff103 ldrls pc, [pc, r3, lsl #2] 30007898: ea00000d b 300078d4 <== NOT EXECUTED 3000789c: 300078b4 .word 0x300078b4 <== NOT EXECUTED 300078a0: 300078bc .word 0x300078bc <== NOT EXECUTED 300078a4: 300078c4 .word 0x300078c4 <== NOT EXECUTED 300078a8: 300078c4 .word 0x300078c4 <== NOT EXECUTED 300078ac: 300078cc .word 0x300078cc <== NOT EXECUTED 300078b0: 300078cc .word 0x300078cc <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 300078b4: e5923008 ldr r3, [r2, #8] 300078b8: ea000004 b 300078d0 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 300078bc: e59f3018 ldr r3, [pc, #24] ; 300078dc 300078c0: ea000002 b 300078d0 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 300078c4: e59f3014 ldr r3, [pc, #20] ; 300078e0 <== NOT EXECUTED 300078c8: ea000000 b 300078d0 <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 300078cc: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 300078d0: e5803004 str r3, [r0, #4] break; } return 0; } 300078d4: e3a00000 mov r0, #0 ; 0x0 300078d8: e12fff1e bx lr 300078dc: 30013a00 .word 0x30013a00 300078e0: 30013a38 .word 0x30013a38 3001a28c : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3001a28c: 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; 3001a290: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3001a294: 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; 3001a298: e1c413bc strh r1, [r4, #60] <== NOT EXECUTED jnode->st_gid = group; IMFS_update_ctime( jnode ); 3001a29c: e1a0000d mov r0, sp <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; jnode->st_gid = group; 3001a2a0: e1c423be strh r2, [r4, #62] <== NOT EXECUTED IMFS_update_ctime( jnode ); 3001a2a4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001a2a8: ebffa6ca bl 30003dd8 <== NOT EXECUTED 3001a2ac: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 3001a2b0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 3001a2b4: e5843048 str r3, [r4, #72] <== NOT EXECUTED return 0; } 3001a2b8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001a2bc: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30009fb4 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 30009fb4: 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 ) 30009fb8: e2508000 subs r8, r0, #0 ; 0x0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 30009fbc: e24dd008 sub sp, sp, #8 ; 0x8 30009fc0: e1a0a001 mov sl, r1 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 30009fc4: e3a00001 mov r0, #1 ; 0x1 30009fc8: 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 ) 30009fcc: 01a05008 moveq r5, r8 parent = parent_loc->node_access; 30009fd0: 15985000 ldrne r5, [r8] IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 30009fd4: e1a06002 mov r6, r2 30009fd8: e1a09003 mov r9, r3 30009fdc: e59d7028 ldr r7, [sp, #40] /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 30009fe0: ebfff950 bl 30008528 if ( !node ) 30009fe4: e2504000 subs r4, r0, #0 ; 0x0 30009fe8: 0a000048 beq 3000a110 /* * Fill in the basic information */ node->st_nlink = 1; 30009fec: e3a02001 mov r2, #1 ; 0x1 node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 30009ff0: e1a01006 mov r1, r6 /* * Fill in the basic information */ node->st_nlink = 1; 30009ff4: e1c423b4 strh r2, [r4, #52] node->type = type; 30009ff8: e584a04c str sl, [r4, #76] strncpy( node->name, name, IMFS_NAME_MAX ); 30009ffc: e3a02020 mov r2, #32 ; 0x20 3000a000: e284000c add r0, r4, #12 ; 0xc 3000a004: eb000732 bl 3000bcd4 #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; 3000a008: e3a03000 mov r3, #0 ; 0x0 3000a00c: e1c433bc strh r3, [r4, #60] /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000a010: e59f3104 ldr r3, [pc, #260] ; 3000a11c #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; node->st_gid = 0; 3000a014: e3a02000 mov r2, #0 ; 0x0 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000a018: e5933000 ldr r3, [r3] #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; node->st_gid = 0; 3000a01c: e1c423be strh r2, [r4, #62] /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000a020: e5933024 ldr r3, [r3, #36] /* * Now set all the times. */ gettimeofday( &tv, 0 ); 3000a024: e1a0000d mov r0, sp /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000a028: e1c93003 bic r3, r9, r3 3000a02c: e5843030 str r3, [r4, #48] /* * Now set all the times. */ gettimeofday( &tv, 0 ); 3000a030: e3a01000 mov r1, #0 ; 0x0 3000a034: ebfff9d6 bl 30008794 node->stat_atime = (time_t) tv.tv_sec; 3000a038: e59d3000 ldr r3, [sp] /* * Set the type specific information */ switch (type) { 3000a03c: 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; 3000a040: e5843048 str r3, [r4, #72] * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 3000a044: e5843040 str r3, [r4, #64] node->stat_mtime = (time_t) tv.tv_sec; 3000a048: e5843044 str r3, [r4, #68] /* * Set the type specific information */ switch (type) { 3000a04c: e3520005 cmp r2, #5 ; 0x5 3000a050: 979ff102 ldrls pc, [pc, r2, lsl #2] 3000a054: ea00001c b 3000a0cc <== NOT EXECUTED 3000a058: 3000a070 .word 0x3000a070 <== NOT EXECUTED 3000a05c: 3000a098 .word 0x3000a098 <== NOT EXECUTED 3000a060: 3000a08c .word 0x3000a08c <== NOT EXECUTED 3000a064: 3000a08c .word 0x3000a08c <== NOT EXECUTED 3000a068: 3000a0b4 .word 0x3000a0b4 <== NOT EXECUTED 3000a06c: 3000a0a8 .word 0x3000a0a8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000a070: e2843054 add r3, r4, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 3000a074: e2842050 add r2, r4, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000a078: e5843050 str r3, [r4, #80] the_chain->permanent_null = NULL; 3000a07c: e3a03000 mov r3, #0 ; 0x0 3000a080: e5843054 str r3, [r4, #84] the_chain->last = _Chain_Head(the_chain); 3000a084: e5842058 str r2, [r4, #88] 3000a088: ea000014 b 3000a0e0 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; 3000a08c: e5973000 ldr r3, [r7] <== NOT EXECUTED 3000a090: e5843050 str r3, [r4, #80] <== NOT EXECUTED 3000a094: ea000011 b 3000a0e0 <== NOT EXECUTED break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 3000a098: e897000c ldm r7, {r2, r3} 3000a09c: 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; 3000a0a0: e5842050 str r2, [r4, #80] 3000a0a4: ea00000d b 3000a0e0 node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 3000a0a8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.linearfile.direct = 0; 3000a0ac: 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; 3000a0b0: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 3000a0b4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 3000a0b8: 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; 3000a0bc: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.file.indirect = 0; 3000a0c0: e5843054 str r3, [r4, #84] <== NOT EXECUTED node->info.file.doubly_indirect = 0; 3000a0c4: e5843058 str r3, [r4, #88] <== NOT EXECUTED 3000a0c8: ea000004 b 3000a0e0 <== NOT EXECUTED node->info.file.triply_indirect = 0; break; default: assert(0); 3000a0cc: e59f004c ldr r0, [pc, #76] ; 3000a120 <== NOT EXECUTED 3000a0d0: e3a01074 mov r1, #116 ; 0x74 <== NOT EXECUTED 3000a0d4: e59f2048 ldr r2, [pc, #72] ; 3000a124 <== NOT EXECUTED 3000a0d8: e59f3048 ldr r3, [pc, #72] ; 3000a128 <== NOT EXECUTED 3000a0dc: ebfff8b8 bl 300083c4 <__assert_func> <== NOT EXECUTED /* * If this node has a parent, then put it in that directory list. */ if ( parent ) { 3000a0e0: e3550000 cmp r5, #0 ; 0x0 3000a0e4: 0a000009 beq 3000a110 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 3000a0e8: e2850050 add r0, r5, #80 ; 0x50 3000a0ec: e1a01004 mov r1, r4 3000a0f0: ebffeaef bl 30004cb4 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; fs_info = parent_loc->mt_entry->fs_info; 3000a0f4: e598300c ldr r3, [r8, #12] * 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; 3000a0f8: e5845008 str r5, [r4, #8] fs_info = parent_loc->mt_entry->fs_info; 3000a0fc: e593202c ldr r2, [r3, #44] node->st_ino = ++fs_info->ino_count; 3000a100: e5923000 ldr r3, [r2] 3000a104: e2833001 add r3, r3, #1 ; 0x1 3000a108: e5823000 str r3, [r2] 3000a10c: e5843038 str r3, [r4, #56] } return node; } 3000a110: e1a00004 mov r0, r4 3000a114: e28dd008 add sp, sp, #8 ; 0x8 3000a118: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 3000a11c: 30014ba4 .word 0x30014ba4 3000a120: 3001435d .word 0x3001435d 3000a124: 30013b84 .word 0x30013b84 3000a128: 30014098 .word 0x30014098 30007a40 : int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30007a40: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30007a44: e24dd038 sub sp, sp, #56 ; 0x38 30007a48: e1a05002 mov r5, r2 30007a4c: e1a08000 mov r8, r0 30007a50: e1a0a001 mov sl, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30007a54: e5924000 ldr r4, [r2] 30007a58: e3a07000 mov r7, #0 ; 0x0 30007a5c: 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 ); 30007a60: 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 ) 30007a64: e59fb1fc ldr fp, [pc, #508] ; 30007c68 30007a68: ea000059 b 30007bd4 * 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 ); 30007a6c: e28d2034 add r2, sp, #52 ; 0x34 30007a70: e0880007 add r0, r8, r7 30007a74: e1a01009 mov r1, r9 30007a78: eb00015a bl 30007fe8 i += len; if ( !pathloc->node_access ) 30007a7c: e5952000 ldr r2, [r5] * 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 ); 30007a80: e1a06000 mov r6, r0 i += len; if ( !pathloc->node_access ) 30007a84: e3520000 cmp r2, #0 ; 0x0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], token, &len ); i += len; 30007a88: e59de034 ldr lr, [sp, #52] if ( !pathloc->node_access ) 30007a8c: 0a000048 beq 30007bb4 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30007a90: e3500000 cmp r0, #0 ; 0x0 30007a94: 0a000005 beq 30007ab0 if ( node->type == IMFS_DIRECTORY ) 30007a98: e594304c ldr r3, [r4, #76] 30007a9c: e3530001 cmp r3, #1 ; 0x1 30007aa0: 1a000002 bne 30007ab0 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007aa4: e5923030 ldr r3, [r2, #48] 30007aa8: e3130040 tst r3, #64 ; 0x40 30007aac: 0a000069 beq 30007c58 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 30007ab0: 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; 30007ab4: 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; 30007ab8: e1a04002 mov r4, r2 switch( type ) { 30007abc: 0a00001a beq 30007b2c 30007ac0: e3560004 cmp r6, #4 ; 0x4 30007ac4: 0a00003f beq 30007bc8 30007ac8: e3560002 cmp r6, #2 ; 0x2 30007acc: 1a000040 bne 30007bd4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007ad0: e59b3000 ldr r3, [fp] <== NOT EXECUTED 30007ad4: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 30007ad8: e1520003 cmp r2, r3 <== NOT EXECUTED 30007adc: 0a00003c beq 30007bd4 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 30007ae0: e595100c ldr r1, [r5, #12] <== NOT EXECUTED 30007ae4: e5913018 ldr r3, [r1, #24] <== NOT EXECUTED 30007ae8: e1520003 cmp r2, r3 <== NOT EXECUTED 30007aec: 1a000007 bne 30007b10 <== 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; 30007af0: e2813008 add r3, r1, #8 ; 0x8 <== NOT EXECUTED 30007af4: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); 30007af8: e06ee007 rsb lr, lr, r7 <== 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; 30007afc: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 30007b00: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; 30007b04: e885000f stm r5, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); 30007b08: e088000e add r0, r8, lr <== NOT EXECUTED 30007b0c: ea000041 b 30007c18 <== NOT EXECUTED } } else { if ( !node->Parent ) 30007b10: e5924008 ldr r4, [r2, #8] <== NOT EXECUTED 30007b14: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30007b18: 1a000028 bne 30007bc0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 30007b1c: eb000b0f bl 3000a760 <__errno> <== NOT EXECUTED 30007b20: e5806000 str r6, [r0] <== NOT EXECUTED 30007b24: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30007b28: ea000048 b 30007c50 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 30007b2c: e592304c ldr r3, [r2, #76] 30007b30: e3530003 cmp r3, #3 ; 0x3 30007b34: 1a000006 bne 30007b54 IMFS_evaluate_hard_link( pathloc, 0 ); 30007b38: e1a00005 mov r0, r5 <== NOT EXECUTED 30007b3c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30007b40: ebffff6f bl 30007904 <== NOT EXECUTED node = pathloc->node_access; 30007b44: e5954000 ldr r4, [r5] <== NOT EXECUTED if ( !node ) 30007b48: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30007b4c: 1a000009 bne 30007b78 <== NOT EXECUTED 30007b50: ea00000b b 30007b84 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 30007b54: e3530004 cmp r3, #4 ; 0x4 30007b58: 1a000006 bne 30007b78 result = IMFS_evaluate_sym_link( pathloc, 0 ); 30007b5c: e1a00005 mov r0, r5 <== NOT EXECUTED 30007b60: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30007b64: ebffff7f bl 30007968 <== NOT EXECUTED node = pathloc->node_access; if ( result == -1 ) 30007b68: 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; 30007b6c: e5953000 ldr r3, [r5] <== NOT EXECUTED if ( result == -1 ) 30007b70: 0a000036 beq 30007c50 <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 30007b74: e1a04003 mov r4, r3 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 30007b78: e594304c ldr r3, [r4, #76] 30007b7c: e3530001 cmp r3, #1 ; 0x1 30007b80: 0a000002 beq 30007b90 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30007b84: eb000af5 bl 3000a760 <__errno> <== NOT EXECUTED 30007b88: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 30007b8c: ea000033 b 30007c60 <== 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 ) { 30007b90: e594305c ldr r3, [r4, #92] 30007b94: e3530000 cmp r3, #0 ; 0x0 newloc = node->info.directory.mt_fs->mt_fs_root; 30007b98: 12833018 addne r3, r3, #24 ; 0x18 30007b9c: 1a000016 bne 30007bfc /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30007ba0: e1a00004 mov r0, r4 30007ba4: e1a01009 mov r1, r9 30007ba8: eb0000e6 bl 30007f48 if ( !node ) 30007bac: e2504000 subs r4, r0, #0 ; 0x0 30007bb0: 1a000002 bne 30007bc0 rtems_set_errno_and_return_minus_one( ENOENT ); 30007bb4: eb000ae9 bl 3000a760 <__errno> <== NOT EXECUTED 30007bb8: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 30007bbc: ea000027 b 30007c60 <== NOT EXECUTED /* * Set the node access to the point we have found. */ pathloc->node_access = node; 30007bc0: e5854000 str r4, [r5] 30007bc4: ea000002 b 30007bd4 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 30007bc8: eb000ae4 bl 3000a760 <__errno> <== NOT EXECUTED 30007bcc: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 30007bd0: ea000022 b 30007c60 <== NOT EXECUTED /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 30007bd4: e3560000 cmp r6, #0 ; 0x0 30007bd8: 13560004 cmpne r6, #4 ; 0x4 30007bdc: 1affffa2 bne 30007a6c * 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 ) { 30007be0: e594304c ldr r3, [r4, #76] 30007be4: e3530001 cmp r3, #1 ; 0x1 30007be8: 1a000010 bne 30007c30 if ( node->info.directory.mt_fs != NULL ) { 30007bec: e594005c ldr r0, [r4, #92] 30007bf0: e3500000 cmp r0, #0 ; 0x0 30007bf4: 0a00000d beq 30007c30 newloc = node->info.directory.mt_fs->mt_fs_root; 30007bf8: e2803018 add r3, r0, #24 ; 0x18 <== NOT EXECUTED 30007bfc: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 30007c00: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 30007c04: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 30007c08: e59dc034 ldr ip, [sp, #52] <== 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; 30007c0c: e885000f stm r5, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 30007c10: e06cc007 rsb ip, ip, r7 <== NOT EXECUTED 30007c14: e088000c add r0, r8, ip <== NOT EXECUTED 30007c18: e5923000 ldr r3, [r2] <== NOT EXECUTED 30007c1c: e1a0100a mov r1, sl <== NOT EXECUTED 30007c20: e1a02005 mov r2, r5 <== NOT EXECUTED 30007c24: e1a0e00f mov lr, pc <== NOT EXECUTED 30007c28: e12fff13 bx r3 <== NOT EXECUTED 30007c2c: ea000007 b 30007c50 <== NOT EXECUTED } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 30007c30: e1a00005 mov r0, r5 30007c34: ebffff10 bl 3000787c /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007c38: e5953000 ldr r3, [r5] 30007c3c: e1a0230a lsl r2, sl, #6 30007c40: e5933030 ldr r3, [r3, #48] 30007c44: e0023003 and r3, r2, r3 30007c48: e1530002 cmp r3, r2 30007c4c: 1a000001 bne 30007c58 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30007c50: e28dd038 add sp, sp, #56 ; 0x38 30007c54: 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 ); 30007c58: eb000ac0 bl 3000a760 <__errno> <== NOT EXECUTED 30007c5c: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 30007c60: e5803000 str r3, [r0] <== NOT EXECUTED 30007c64: eaffffae b 30007b24 <== NOT EXECUTED 30007c68: 30014ba4 .word 0x30014ba4 30007d20 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30007d20: 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; 30007d24: 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 */ ) { 30007d28: 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 ) 30007d2c: e59fb210 ldr fp, [pc, #528] ; 30007f44 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30007d30: e1a04001 mov r4, r1 30007d34: e1a07000 mov r7, r0 30007d38: e1a08002 mov r8, r2 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30007d3c: 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 ); 30007d40: e28da003 add sl, sp, #3 ; 0x3 30007d44: e28d9034 add r9, sp, #52 ; 0x34 30007d48: e1a02009 mov r2, r9 30007d4c: e0870006 add r0, r7, r6 30007d50: e1a0100a mov r1, sl 30007d54: eb0000a3 bl 30007fe8 i += len; if ( !pathloc->node_access ) 30007d58: e5942000 ldr r2, [r4] */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 30007d5c: e59de034 ldr lr, [sp, #52] if ( !pathloc->node_access ) 30007d60: e3520000 cmp r2, #0 ; 0x0 30007d64: 0a00005b beq 30007ed8 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30007d68: e3500000 cmp r0, #0 ; 0x0 30007d6c: 0a000005 beq 30007d88 if ( node->type == IMFS_DIRECTORY ) 30007d70: e595304c ldr r3, [r5, #76] 30007d74: e3530001 cmp r3, #1 ; 0x1 30007d78: 1a000002 bne 30007d88 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007d7c: e5923030 ldr r3, [r2, #48] 30007d80: e3130040 tst r3, #64 ; 0x40 30007d84: 0a000069 beq 30007f30 */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 30007d88: 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; 30007d8c: e1a05002 mov r5, r2 switch( type ) { 30007d90: e3500004 cmp r0, #4 ; 0x4 30007d94: 979ff100 ldrls pc, [pc, r0, lsl #2] 30007d98: eaffffea b 30007d48 <== NOT EXECUTED 30007d9c: 30007e9c .word 0x30007e9c <== NOT EXECUTED 30007da0: 30007d48 .word 0x30007d48 <== NOT EXECUTED 30007da4: 30007db0 .word 0x30007db0 <== NOT EXECUTED 30007da8: 30007e00 .word 0x30007e00 <== NOT EXECUTED 30007dac: 30007ea8 .word 0x30007ea8 <== 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 ) 30007db0: e59b3000 ldr r3, [fp] <== NOT EXECUTED 30007db4: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 30007db8: e1520003 cmp r2, r3 <== NOT EXECUTED 30007dbc: 0affffe1 beq 30007d48 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 30007dc0: e594100c ldr r1, [r4, #12] <== NOT EXECUTED 30007dc4: e5913018 ldr r3, [r1, #24] <== NOT EXECUTED 30007dc8: e1520003 cmp r2, r3 <== NOT EXECUTED 30007dcc: 1a000007 bne 30007df0 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 30007dd0: e2813008 add r3, r1, #8 ; 0x8 <== NOT EXECUTED 30007dd4: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007dd8: e06ee006 rsb lr, lr, r6 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 30007ddc: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 30007de0: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; 30007de4: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007de8: e087000e add r0, r7, lr <== NOT EXECUTED 30007dec: ea00001e b 30007e6c <== NOT EXECUTED } } else { if ( !node->Parent ) 30007df0: e5925008 ldr r5, [r2, #8] <== NOT EXECUTED 30007df4: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30007df8: 1a000025 bne 30007e94 <== NOT EXECUTED 30007dfc: ea000035 b 30007ed8 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 30007e00: e592304c ldr r3, [r2, #76] 30007e04: e3530003 cmp r3, #3 ; 0x3 30007e08: 0a000001 beq 30007e14 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 30007e0c: e3530004 cmp r3, #4 ; 0x4 30007e10: 1a000004 bne 30007e28 result = IMFS_evaluate_link( pathloc, 0 ); 30007e14: e1a00004 mov r0, r4 <== NOT EXECUTED 30007e18: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30007e1c: ebffff92 bl 30007c6c <== NOT EXECUTED if ( result == -1 ) 30007e20: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 30007e24: 0a00003f beq 30007f28 <== NOT EXECUTED return -1; } node = pathloc->node_access; 30007e28: e5940000 ldr r0, [r4] if ( !node ) 30007e2c: e3500000 cmp r0, #0 ; 0x0 30007e30: 0a000035 beq 30007f0c /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 30007e34: e590304c ldr r3, [r0, #76] 30007e38: e3530001 cmp r3, #1 ; 0x1 30007e3c: 1a000032 bne 30007f0c /* * 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 ) { 30007e40: e590305c ldr r3, [r0, #92] 30007e44: e3530000 cmp r3, #0 ; 0x0 30007e48: 0a00000d beq 30007e84 newloc = node->info.directory.mt_fs->mt_fs_root; 30007e4c: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 30007e50: e2833018 add r3, r3, #24 ; 0x18 <== NOT EXECUTED 30007e54: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 30007e58: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007e5c: e59dc034 ldr ip, [sp, #52] <== 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; 30007e60: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007e64: e06cc006 rsb ip, ip, r6 <== NOT EXECUTED 30007e68: e087000c add r0, r7, ip <== NOT EXECUTED 30007e6c: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 30007e70: e1a01004 mov r1, r4 <== NOT EXECUTED 30007e74: e1a02008 mov r2, r8 <== NOT EXECUTED 30007e78: e1a0e00f mov lr, pc <== NOT EXECUTED 30007e7c: e12fff13 bx r3 <== NOT EXECUTED 30007e80: ea000028 b 30007f28 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30007e84: e1a0100a mov r1, sl 30007e88: eb00002e bl 30007f48 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 30007e8c: e2505000 subs r5, r0, #0 ; 0x0 30007e90: 0a000007 beq 30007eb4 done = true; else pathloc->node_access = node; 30007e94: e5845000 str r5, [r4] 30007e98: eaffffaa b 30007d48 break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 30007e9c: eb000a2f bl 3000a760 <__errno> <== NOT EXECUTED 30007ea0: e3a03011 mov r3, #17 ; 0x11 <== NOT EXECUTED 30007ea4: ea000023 b 30007f38 <== NOT EXECUTED break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 30007ea8: eb000a2c bl 3000a760 <__errno> <== NOT EXECUTED 30007eac: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 30007eb0: ea000020 b 30007f38 <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 30007eb4: e59d3034 ldr r3, [sp, #52] 30007eb8: e0872006 add r2, r7, r6 30007ebc: e0633006 rsb r3, r3, r6 30007ec0: e0873003 add r3, r7, r3 30007ec4: e5883000 str r3, [r8] 30007ec8: ea000005 b 30007ee4 * 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 ] ) ) 30007ecc: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 30007ed0: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 30007ed4: 0a000002 beq 30007ee4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 30007ed8: eb000a20 bl 3000a760 <__errno> <== NOT EXECUTED 30007edc: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 30007ee0: ea000014 b 30007f38 <== 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++) { 30007ee4: e5d23000 ldrb r3, [r2] 30007ee8: e2822001 add r2, r2, #1 ; 0x1 30007eec: e3530000 cmp r3, #0 ; 0x0 30007ef0: 1afffff5 bne 30007ecc /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 30007ef4: e1a00004 mov r0, r4 30007ef8: ebfffe5f bl 3000787c /* * The returned node must be a directory */ node = pathloc->node_access; 30007efc: e5941000 ldr r1, [r4] if ( node->type != IMFS_DIRECTORY ) 30007f00: e591304c ldr r3, [r1, #76] 30007f04: e3530001 cmp r3, #1 ; 0x1 30007f08: 0a000002 beq 30007f18 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30007f0c: eb000a13 bl 3000a760 <__errno> <== NOT EXECUTED 30007f10: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 30007f14: ea000007 b 30007f38 <== 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 ) 30007f18: e5913030 ldr r3, [r1, #48] 30007f1c: e20330c0 and r3, r3, #192 ; 0xc0 30007f20: e35300c0 cmp r3, #192 ; 0xc0 30007f24: 1a000001 bne 30007f30 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30007f28: e28dd038 add sp, sp, #56 ; 0x38 30007f2c: 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 ); 30007f30: eb000a0a bl 3000a760 <__errno> <== NOT EXECUTED 30007f34: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 30007f38: e5803000 str r3, [r0] <== NOT EXECUTED 30007f3c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30007f40: eafffff8 b 30007f28 <== NOT EXECUTED 30007f44: 30014ba4 .word 0x30014ba4 30007904 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 30007904: e5902000 ldr r2, [r0] <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007908: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 3000790c: e592304c ldr r3, [r2, #76] <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007910: e1a04000 mov r4, r0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 30007914: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007918: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 3000791c: 159f0040 ldrne r0, [pc, #64] ; 30007964 <== NOT EXECUTED 30007920: 1bfff41a blne 30004990 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 30007924: e5923050 ldr r3, [r2, #80] <== NOT EXECUTED 30007928: e5803000 str r3, [r0] <== NOT EXECUTED IMFS_Set_handlers( node ); 3000792c: ebffffd2 bl 3000787c <== 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 ) 30007930: e5943000 ldr r3, [r4] <== NOT EXECUTED 30007934: e1a02305 lsl r2, r5, #6 <== NOT EXECUTED 30007938: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 3000793c: e0023003 and r3, r2, r3 <== NOT EXECUTED 30007940: e1530002 cmp r3, r2 <== NOT EXECUTED 30007944: 1a000001 bne 30007950 <== NOT EXECUTED 30007948: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 3000794c: 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 ); 30007950: eb000b82 bl 3000a760 <__errno> <== NOT EXECUTED 30007954: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 30007958: e5803000 str r3, [r0] <== NOT EXECUTED 3000795c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30007960: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30007964: abcd0000 .word 0xabcd0000 30007c6c : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007c6c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 30007c70: e59f70a4 ldr r7, [pc, #164] ; 30007d1c <== NOT EXECUTED int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007c74: e1a04000 mov r4, r0 <== NOT EXECUTED 30007c78: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 30007c7c: e5972000 ldr r2, [r7] <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 30007c80: e5945000 ldr r5, [r4] <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 30007c84: e1d232b8 ldrh r3, [r2, #40] <== NOT EXECUTED 30007c88: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30007c8c: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED 30007c90: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 30007c94: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 30007c98: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 30007c9c: 9a000006 bls 30007cbc <== NOT EXECUTED rtems_filesystem_link_counts = 0; 30007ca0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30007ca4: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); 30007ca8: eb000aac bl 3000a760 <__errno> <== NOT EXECUTED 30007cac: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED 30007cb0: e5803000 str r3, [r0] <== NOT EXECUTED 30007cb4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30007cb8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 30007cbc: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 30007cc0: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 30007cc4: 1a000003 bne 30007cd8 <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); 30007cc8: e1a00004 mov r0, r4 <== NOT EXECUTED 30007ccc: e1a01006 mov r1, r6 <== NOT EXECUTED 30007cd0: ebffff0b bl 30007904 <== NOT EXECUTED 30007cd4: ea000004 b 30007cec <== NOT EXECUTED else if (jnode->type == IMFS_SYM_LINK ) 30007cd8: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 30007cdc: 1a000004 bne 30007cf4 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); 30007ce0: e1a00004 mov r0, r4 <== NOT EXECUTED 30007ce4: e1a01006 mov r1, r6 <== NOT EXECUTED 30007ce8: ebffff1e bl 30007968 <== NOT EXECUTED } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 30007cec: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30007cf0: 1a000004 bne 30007d08 <== NOT EXECUTED 30007cf4: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 30007cf8: e2433003 sub r3, r3, #3 ; 0x3 <== NOT EXECUTED 30007cfc: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 30007d00: 9affffdd bls 30007c7c <== NOT EXECUTED 30007d04: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 30007d08: e59f300c ldr r3, [pc, #12] ; 30007d1c <== NOT EXECUTED 30007d0c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30007d10: e5933000 ldr r3, [r3] <== NOT EXECUTED 30007d14: e1c322b8 strh r2, [r3, #40] <== NOT EXECUTED return result; } 30007d18: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30007d1c: 30014ba4 .word 0x30014ba4 300078e4 : /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 300078e4: e5903000 ldr r3, [r0] <== NOT EXECUTED 300078e8: e1a01301 lsl r1, r1, #6 <== NOT EXECUTED 300078ec: e5930030 ldr r0, [r3, #48] <== NOT EXECUTED 300078f0: e0010000 and r0, r1, r0 <== NOT EXECUTED return 1; return 0; } 300078f4: e1500001 cmp r0, r1 <== NOT EXECUTED 300078f8: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 300078fc: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 30007900: e12fff1e bx lr <== NOT EXECUTED 30007968 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 30007968: e590c000 ldr ip, [r0] <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000796c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007970: e59c304c ldr r3, [ip, #76] <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007974: e1a04000 mov r4, r0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007978: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000797c: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 30007980: 159f00ac ldrne r0, [pc, #172] ; 30007a34 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007984: 1a000003 bne 30007998 <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 30007988: e59c3008 ldr r3, [ip, #8] <== NOT EXECUTED 3000798c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30007990: 1a000001 bne 3000799c <== NOT EXECUTED rtems_fatal_error_occurred( 0xBAD00000 ); 30007994: e59f009c ldr r0, [pc, #156] ; 30007a38 <== NOT EXECUTED 30007998: ebfff3fc bl 30004990 <== 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; 3000799c: e5843000 str r3, [r4] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( 300079a0: e59c3050 ldr r3, [ip, #80] <== NOT EXECUTED 300079a4: e5d33000 ldrb r3, [r3] <== NOT EXECUTED 300079a8: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 300079ac: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 300079b0: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 300079b4: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 300079b8: 0a000002 beq 300079c8 <== NOT EXECUTED 300079bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300079c0: 11a0e002 movne lr, r2 <== NOT EXECUTED 300079c4: 1a000005 bne 300079e0 <== NOT EXECUTED 300079c8: e59f306c ldr r3, [pc, #108] ; 30007a3c <== NOT EXECUTED 300079cc: e3a0e001 mov lr, #1 ; 0x1 <== NOT EXECUTED 300079d0: e5933000 ldr r3, [r3] <== NOT EXECUTED 300079d4: e2833014 add r3, r3, #20 ; 0x14 <== NOT EXECUTED 300079d8: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 300079dc: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 300079e0: e59c0050 ldr r0, [ip, #80] <== NOT EXECUTED 300079e4: e1a02004 mov r2, r4 <== NOT EXECUTED 300079e8: e1a01006 mov r1, r6 <== NOT EXECUTED 300079ec: e080000e add r0, r0, lr <== NOT EXECUTED 300079f0: eb000012 bl 30007a40 <== NOT EXECUTED 300079f4: e1a05000 mov r5, r0 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 300079f8: e1a00004 mov r0, r4 <== NOT EXECUTED 300079fc: ebffff9e bl 3000787c <== 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 ) 30007a00: e5943000 ldr r3, [r4] <== NOT EXECUTED 30007a04: e1a02306 lsl r2, r6, #6 <== NOT EXECUTED 30007a08: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 30007a0c: e0023003 and r3, r2, r3 <== NOT EXECUTED 30007a10: e1530002 cmp r3, r2 <== NOT EXECUTED 30007a14: 1a000001 bne 30007a20 <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30007a18: e1a00005 mov r0, r5 <== NOT EXECUTED 30007a1c: 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 ); 30007a20: eb000b4e bl 3000a760 <__errno> <== NOT EXECUTED 30007a24: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 30007a28: e5803000 str r3, [r0] <== NOT EXECUTED 30007a2c: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 30007a30: eafffff8 b 30007a18 <== NOT EXECUTED 30007a34: abcd0000 .word 0xabcd0000 30007a38: bad00000 .word 0xbad00000 30007a3c: 30014ba4 .word 0x30014ba4 3000a12c : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000a12c: 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 ) ) ) 3000a130: e3c14f7f bic r4, r1, #508 ; 0x1fc <== NOT EXECUTED 3000a134: e3c44003 bic r4, r4, #3 ; 0x3 <== NOT EXECUTED 3000a138: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000a13c: 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; 3000a140: 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 ) ) ) 3000a144: 0a000004 beq 3000a15c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); 3000a148: eb000184 bl 3000a760 <__errno> <== NOT EXECUTED 3000a14c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3000a150: e5803000 str r3, [r0] <== NOT EXECUTED 3000a154: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3000a158: ea00000a b 3000a188 <== NOT EXECUTED jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; 3000a15c: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED IMFS_update_ctime( jnode ); 3000a160: e1a0000d mov r0, sp <== NOT EXECUTED */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; 3000a164: e3c33f7f bic r3, r3, #508 ; 0x1fc <== NOT EXECUTED 3000a168: e3c33003 bic r3, r3, #3 ; 0x3 <== NOT EXECUTED 3000a16c: e1813003 orr r3, r1, r3 <== NOT EXECUTED 3000a170: e5853030 str r3, [r5, #48] <== NOT EXECUTED IMFS_update_ctime( jnode ); 3000a174: e1a01004 mov r1, r4 <== NOT EXECUTED 3000a178: ebfff985 bl 30008794 <== NOT EXECUTED 3000a17c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000a180: e1a00004 mov r0, r4 <== NOT EXECUTED 3000a184: e5853048 str r3, [r5, #72] <== NOT EXECUTED return 0; } 3000a188: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3000a18c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30026f54 : int cmd, rtems_libio_t *iop ) { return 0; } 30026f54: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30026f58: e12fff1e bx lr <== NOT EXECUTED 30026f5c : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } 30026f5c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30026f60: e12fff1e bx lr <== NOT EXECUTED 3001ab04 : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } 3001ab04: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001ab08: e12fff1e bx lr <== NOT EXECUTED 3001ab0c : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3001ab0c: 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; 3001ab10: e1a03000 mov r3, r0 <== NOT EXECUTED 3001ab14: 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 ) { 3001ab18: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001ab1c: 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; 3001ab20: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 3001ab24: 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; 3001ab28: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001ab2c: e58e3018 str r3, [lr, #24] <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3001ab30: e1a0500d mov r5, sp <== NOT EXECUTED 3001ab34: e1a0000d mov r0, sp <== NOT EXECUTED temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; 3001ab38: e58d4000 str r4, [sp] <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 3001ab3c: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3001ab40: ebfffe3c bl 3001a438 <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { 3001ab44: e594304c ldr r3, [r4, #76] <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 3001ab48: 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 ) { 3001ab4c: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3001ab50: 1a000002 bne 3001ab60 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 3001ab54: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 3001ab58: e1530002 cmp r3, r2 <== NOT EXECUTED 3001ab5c: 1a000004 bne 3001ab74 <== NOT EXECUTED result = IMFS_unlink( &loc ); 3001ab60: e1a0000d mov r0, sp <== NOT EXECUTED 3001ab64: ebffa2f5 bl 30003740 <== NOT EXECUTED if (result != 0) 3001ab68: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ab6c: 1a00000c bne 3001aba4 <== NOT EXECUTED 3001ab70: e1a04006 mov r4, r6 <== NOT EXECUTED return -1; jnode = next; } if ( jnode != NULL ) { 3001ab74: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 3001ab78: 0a00000b beq 3001abac <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { 3001ab7c: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 3001ab80: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3001ab84: 1affffea bne 3001ab34 <== NOT EXECUTED if ( jnode_has_children( jnode ) ) 3001ab88: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 3001ab8c: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 3001ab90: e1520003 cmp r2, r3 <== NOT EXECUTED 3001ab94: 0affffe6 beq 3001ab34 <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3001ab98: e2524000 subs r4, r2, #0 ; 0x0 <== NOT EXECUTED 3001ab9c: 1affffe4 bne 3001ab34 <== NOT EXECUTED 3001aba0: ea000001 b 3001abac <== NOT EXECUTED 3001aba4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001aba8: ea000000 b 3001abb0 <== NOT EXECUTED 3001abac: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3001abb0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001abb4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30007fe8 : IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 30007fe8: e92d4010 push {r4, lr} register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 30007fec: e3a0c000 mov ip, #0 ; 0x0 IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 30007ff0: e1a04001 mov r4, r1 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 30007ff4: e5d01000 ldrb r1, [r0] 30007ff8: ea000006 b 30008018 while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 30007ffc: 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; 30008000: e7c4100c strb r1, [r4, ip] return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 30008004: 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 ) 30008008: 1a000001 bne 30008014 3000800c: e3a00004 mov r0, #4 ; 0x4 <== NOT EXECUTED 30008010: e8bd8010 pop {r4, pc} <== NOT EXECUTED return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 30008014: 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) ) { 30008018: e351002f cmp r1, #47 ; 0x2f 3000801c: 1351005c cmpne r1, #92 ; 0x5c 30008020: 0a000005 beq 3000803c 30008024: e2513000 subs r3, r1, #0 ; 0x0 30008028: 13a03001 movne r3, #1 ; 0x1 3000802c: e35c0020 cmp ip, #32 ; 0x20 30008030: c3a03000 movgt r3, #0 ; 0x0 30008034: e3530000 cmp r3, #0 ; 0x0 30008038: 1affffef bne 30007ffc /* * Copy a seperator into token. */ if ( i == 0 ) { 3000803c: e35c0000 cmp ip, #0 ; 0x0 30008040: 1a000004 bne 30008058 token[i] = c; if ( token[i] != '\0' ) { 30008044: e3510000 cmp r1, #0 ; 0x0 30008048: 128cc001 addne ip, ip, #1 ; 0x1 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 3000804c: e5c41000 strb r1, [r4] if ( token[i] != '\0' ) { 30008050: e1a0000c mov r0, ip 30008054: ea000005 b 30008070 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 30008058: e084300c add r3, r4, ip 3000805c: e5533001 ldrb r3, [r3, #-1] token[i] = '\0'; 30008060: e3a00003 mov r0, #3 ; 0x3 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 30008064: e3530000 cmp r3, #0 ; 0x0 token[i] = '\0'; 30008068: 13a03000 movne r3, #0 ; 0x0 3000806c: 17c4300c strbne r3, [r4, ip] /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 30008070: e3500003 cmp r0, #3 ; 0x3 /* * Set token_len to the number of characters copied. */ *token_len = i; 30008074: e582c000 str ip, [r2] /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { 30008078: 18bd8010 popne {r4, pc} if ( strcmp( token, "..") == 0 ) 3000807c: e1a00004 mov r0, r4 30008080: e59f1028 ldr r1, [pc, #40] ; 300080b0 30008084: eb000e83 bl 3000ba98 30008088: e3500000 cmp r0, #0 ; 0x0 3000808c: 02800002 addeq r0, r0, #2 ; 0x2 30008090: 08bd8010 popeq {r4, pc} type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 30008094: e1a00004 mov r0, r4 30008098: e59f1014 ldr r1, [pc, #20] ; 300080b4 3000809c: eb000e7d bl 3000ba98 300080a0: e3500000 cmp r0, #0 ; 0x0 300080a4: 13a00003 movne r0, #3 ; 0x3 300080a8: 03a00001 moveq r0, #1 ; 0x1 type = IMFS_CURRENT_DIR; } return type; } 300080ac: e8bd8010 pop {r4, pc} 300080b0: 300140bb .word 0x300140bb 300080b4: 300140bc .word 0x300140bc 300033c0 : int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 300033c0: e59f1008 ldr r1, [pc, #8] ; 300033d0 <== NOT EXECUTED 300033c4: e59f2008 ldr r2, [pc, #8] ; 300033d4 <== NOT EXECUTED 300033c8: e59f3008 ldr r3, [pc, #8] ; 300033d8 <== NOT EXECUTED 300033cc: ea000002 b 300033dc <== NOT EXECUTED 300033d0: 3003aaac .word 0x3003aaac 300033d4: 3003ae70 .word 0x3003ae70 300033d8: 3003ae00 .word 0x3003ae00 300080b8 : 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 ) { 300080b8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 300080bc: e1a05000 mov r5, r0 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 300080c0: e59f00e0 ldr r0, [pc, #224] ; 300081a8 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 ) { 300080c4: e1a07003 mov r7, r3 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 300080c8: e5900000 ldr r0, [r0] 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 ) { 300080cc: e24dd004 sub sp, sp, #4 ; 0x4 300080d0: e1a08001 mov r8, r1 300080d4: 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, 300080d8: e3a0e010 mov lr, #16 ; 0x10 300080dc: 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); 300080e0: e15e0000 cmp lr, r0 bit_mask <<= 1) { 300080e4: 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); 300080e8: 0a000003 beq 300080fc 300080ec: e3530006 cmp r3, #6 ; 0x6 bit_mask <<= 1) { 300080f0: 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); 300080f4: 1afffff9 bne 300080e0 300080f8: 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) 300080fc: e59fc0a8 ldr ip, [pc, #168] ; 300081ac * 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( 30008100: e3a06000 mov r6, #0 ; 0x0 bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 30008104: 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( 30008108: e3a01001 mov r1, #1 ; 0x1 3000810c: e59f209c ldr r2, [pc, #156] ; 300081b0 30008110: e59f309c ldr r3, [pc, #156] ; 300081b4 30008114: e1a00006 mov r0, r6 30008118: e58d6000 str r6, [sp] 3000811c: eb0007a4 bl 30009fb4 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; 30008120: e59f3090 ldr r3, [pc, #144] ; 300081b8 30008124: e285c030 add ip, r5, #48 ; 0x30 30008128: 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( 3000812c: 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; 30008130: e8b4000f ldm r4!, {r0, r1, r2, r3} 30008134: e8ac000f stmia ip!, {r0, r1, r2, r3} 30008138: e8b4000f ldm r4!, {r0, r1, r2, r3} 3000813c: e8ac000f stmia ip!, {r0, r1, r2, r3} 30008140: 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; 30008144: e5858020 str r8, [r5, #32] temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 30008148: e88c000f stm ip, {r0, r1, r2, r3} "", ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 3000814c: 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 ) ); 30008150: e3a00001 mov r0, #1 ; 0x1 30008154: e3a0100c mov r1, #12 ; 0xc 30008158: eb0000f2 bl 30008528 if ( !fs_info ){ 3000815c: e3500000 cmp r0, #0 ; 0x0 30008160: 1a000006 bne 30008180 free(temp_mt_entry->mt_fs_root.node_access); 30008164: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30008168: eb00012b bl 3000861c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 3000816c: eb00097b bl 3000a760 <__errno> <== NOT EXECUTED 30008170: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 30008174: e5803000 str r3, [r0] <== NOT EXECUTED 30008178: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3000817c: ea000007 b 300081a0 <== 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; 30008180: e5952018 ldr r2, [r5, #24] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 30008184: e3a03001 mov r3, #1 ; 0x1 30008188: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 3000818c: e5807008 str r7, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 30008190: 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; 30008194: 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; 30008198: e5823038 str r3, [r2, #56] 3000819c: e1a00006 mov r0, r6 return 0; } 300081a0: e28dd004 add sp, sp, #4 ; 0x4 300081a4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 300081a8: 300145a0 .word 0x300145a0 300081ac: 3001521c .word 0x3001521c 300081b0: 300140dd .word 0x300140dd 300081b4: 000041ed .word 0x000041ed 300081b8: 30013b54 .word 0x30013b54 300034e0 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 300034e0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 300034e4: 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 */ ) { 300034e8: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 300034ec: e58d3028 str r3, [sp, #40] <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 300034f0: e1d333b4 ldrh r3, [r3, #52] <== 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 */ ) { 300034f4: e1a05001 mov r5, r1 <== 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 ) 300034f8: 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 */ ) { 300034fc: 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 ) 30003500: 9a000002 bls 30003510 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EMLINK ); 30003504: eb0097e3 bl 30029498 <__errno> <== NOT EXECUTED 30003508: e3a0301f mov r3, #31 ; 0x1f <== NOT EXECUTED 3000350c: ea00000e b 3000354c <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, new_name, &i ); 30003510: e28d4007 add r4, sp, #7 ; 0x7 <== NOT EXECUTED 30003514: e1a01004 mov r1, r4 <== NOT EXECUTED 30003518: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 3000351c: ebffff73 bl 300032f0 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 30003520: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 30003524: e1a00005 mov r0, r5 <== NOT EXECUTED 30003528: e1a02004 mov r2, r4 <== NOT EXECUTED 3000352c: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 30003530: e59f3054 ldr r3, [pc, #84] ; 3000358c <== NOT EXECUTED 30003534: e58dc000 str ip, [sp] <== NOT EXECUTED 30003538: eb005b60 bl 3001a2c0 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 3000353c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003540: 1a000004 bne 30003558 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); 30003544: eb0097d3 bl 30029498 <__errno> <== NOT EXECUTED 30003548: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3000354c: e5803000 str r3, [r0] <== NOT EXECUTED 30003550: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003554: ea00000a b 30003584 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 30003558: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 3000355c: e28d0038 add r0, sp, #56 ; 0x38 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 30003560: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 30003564: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 30003568: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 3000356c: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 30003570: eb000218 bl 30003dd8 <== NOT EXECUTED 30003574: e59d2038 ldr r2, [sp, #56] <== NOT EXECUTED 30003578: e59d3028 ldr r3, [sp, #40] <== NOT EXECUTED 3000357c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30003580: e5832048 str r2, [r3, #72] <== NOT EXECUTED return 0; } 30003584: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 30003588: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000358c: 0000a1ff .word 0x0000a1ff 300217bc : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 300217bc: e2503000 subs r3, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 300217c0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 300217c4: 059f0060 ldreq r0, [pc, #96] ; 3002182c <== NOT EXECUTED 300217c8: 059f1060 ldreq r1, [pc, #96] ; 30021830 <== NOT EXECUTED 300217cc: 059f2060 ldreq r2, [pc, #96] ; 30021834 <== NOT EXECUTED 300217d0: 059f3060 ldreq r3, [pc, #96] ; 30021838 <== NOT EXECUTED 300217d4: 0a000006 beq 300217f4 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300217d8: e593304c ldr r3, [r3, #76] <== NOT EXECUTED 300217dc: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 300217e0: 0a000004 beq 300217f8 <== NOT EXECUTED 300217e4: e59f0040 ldr r0, [pc, #64] ; 3002182c <== NOT EXECUTED 300217e8: e59f104c ldr r1, [pc, #76] ; 3002183c <== NOT EXECUTED 300217ec: e59f2040 ldr r2, [pc, #64] ; 30021834 <== NOT EXECUTED 300217f0: e59f3048 ldr r3, [pc, #72] ; 30021840 <== NOT EXECUTED 300217f4: ebffe58a bl 3001ae24 <__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 ); 300217f8: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 300217fc: ebfffeab bl 300212b0 <== NOT EXECUTED if ( *block_entry_ptr ) 30021800: e5905000 ldr r5, [r0] <== 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 ); 30021804: e1a04000 mov r4, r0 <== NOT EXECUTED if ( *block_entry_ptr ) 30021808: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 3002180c: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30021810: 18bd8030 popne {r4, r5, pc} <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 30021814: ebfffe98 bl 3002127c <== NOT EXECUTED if ( !memory ) 30021818: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 3002181c: 15840000 strne r0, [r4] <== NOT EXECUTED fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 30021820: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 30021824: 11a00005 movne r0, r5 <== NOT EXECUTED return 0; } 30021828: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3002182c: 3003e309 .word 0x3003e309 30021830: 00000169 .word 0x00000169 30021834: 3003b085 .word 0x3003b085 30021838: 3003e352 .word 0x3003e352 3002183c: 0000016d .word 0x0000016d 30021840: 3003e35c .word 0x3003e35c 30021844 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30021844: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30021848: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 3002184c: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30021850: 059f00f8 ldreq r0, [pc, #248] ; 30021950 <== NOT EXECUTED 30021854: 059f10f8 ldreq r1, [pc, #248] ; 30021954 <== NOT EXECUTED 30021858: 059f20f8 ldreq r2, [pc, #248] ; 30021958 <== NOT EXECUTED 3002185c: 059f30f8 ldreq r3, [pc, #248] ; 3002195c <== NOT EXECUTED 30021860: 0a000006 beq 30021880 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30021864: e597304c ldr r3, [r7, #76] <== NOT EXECUTED 30021868: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 3002186c: 0a000004 beq 30021884 <== NOT EXECUTED 30021870: e59f00d8 ldr r0, [pc, #216] ; 30021950 <== NOT EXECUTED 30021874: e59f10e4 ldr r1, [pc, #228] ; 30021960 <== NOT EXECUTED 30021878: e59f20d8 ldr r2, [pc, #216] ; 30021958 <== NOT EXECUTED 3002187c: e59f30e0 ldr r3, [pc, #224] ; 30021964 <== NOT EXECUTED 30021880: ebffe567 bl 3001ae24 <__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 ) 30021884: e59f30dc ldr r3, [pc, #220] ; 30021968 <== NOT EXECUTED 30021888: e5934000 ldr r4, [r3] <== NOT EXECUTED 3002188c: e1a02124 lsr r2, r4, #2 <== NOT EXECUTED 30021890: e2823001 add r3, r2, #1 ; 0x1 <== NOT EXECUTED 30021894: e0030392 mul r3, r2, r3 <== NOT EXECUTED 30021898: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 3002189c: e0030392 mul r3, r2, r3 <== NOT EXECUTED 300218a0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 300218a4: e0030394 mul r3, r4, r3 <== NOT EXECUTED 300218a8: e1510003 cmp r1, r3 <== NOT EXECUTED 300218ac: 3a000002 bcc 300218bc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 300218b0: eb001ef8 bl 30029498 <__errno> <== NOT EXECUTED 300218b4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 300218b8: ea00001b b 3002192c <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 300218bc: e5975050 ldr r5, [r7, #80] <== NOT EXECUTED 300218c0: e1510005 cmp r1, r5 <== NOT EXECUTED 300218c4: d3a00000 movle r0, #0 ; 0x0 <== NOT EXECUTED 300218c8: 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; 300218cc: e1a00001 mov r0, r1 <== NOT EXECUTED 300218d0: e1a01004 mov r1, r4 <== NOT EXECUTED 300218d4: eb005fb5 bl 300397b0 <__aeabi_idiv> <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 300218d8: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 300218dc: e1a08000 mov r8, r0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 300218e0: e1a00005 mov r0, r5 <== NOT EXECUTED 300218e4: eb005fb1 bl 300397b0 <__aeabi_idiv> <== NOT EXECUTED 300218e8: e1a05000 mov r5, r0 <== NOT EXECUTED 300218ec: e1a04000 mov r4, r0 <== NOT EXECUTED 300218f0: ea000011 b 3002193c <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { 300218f4: e1a00007 mov r0, r7 <== NOT EXECUTED 300218f8: e1a01004 mov r1, r4 <== NOT EXECUTED 300218fc: ebffffae bl 300217bc <== NOT EXECUTED 30021900: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021904: 0a00000b beq 30021938 <== NOT EXECUTED 30021908: ea000003 b 3002191c <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 3002190c: e1a01004 mov r1, r4 <== NOT EXECUTED 30021910: e1a00007 mov r0, r7 <== NOT EXECUTED 30021914: ebfffef4 bl 300214ec <== 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-- ) { 30021918: e2444001 sub r4, r4, #1 ; 0x1 <== NOT EXECUTED 3002191c: e1540005 cmp r4, r5 <== NOT EXECUTED 30021920: 2afffff9 bcs 3002190c <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 30021924: eb001edb bl 30029498 <__errno> <== NOT EXECUTED 30021928: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 3002192c: e5803000 str r3, [r0] <== NOT EXECUTED 30021930: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30021934: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 30021938: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED 3002193c: e1540008 cmp r4, r8 <== NOT EXECUTED 30021940: 9affffeb bls 300218f4 <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 30021944: e5876050 str r6, [r7, #80] <== NOT EXECUTED 30021948: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3002194c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 30021950: 3003e309 .word 0x3003e309 30021954: 00000131 .word 0x00000131 30021958: 3003b09b .word 0x3003b09b 3002195c: 3003e352 .word 0x3003e352 30021960: 00000135 .word 0x00000135 30021964: 3003e35c .word 0x3003e35c 30021968: 300420c4 .word 0x300420c4 300212b0 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 300212b0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 300212b4: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 300212b8: e1a04001 mov r4, r1 <== NOT EXECUTED 300212bc: e1a08002 mov r8, r2 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 300212c0: 059f0208 ldreq r0, [pc, #520] ; 300214d0 <== NOT EXECUTED 300212c4: 059f1208 ldreq r1, [pc, #520] ; 300214d4 <== NOT EXECUTED 300212c8: 059f2208 ldreq r2, [pc, #520] ; 300214d8 <== NOT EXECUTED 300212cc: 059f3208 ldreq r3, [pc, #520] ; 300214dc <== NOT EXECUTED 300212d0: 0a000006 beq 300212f0 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 300212d4: e597304c ldr r3, [r7, #76] <== NOT EXECUTED 300212d8: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 300212dc: 0a000004 beq 300212f4 <== NOT EXECUTED 300212e0: e59f01e8 ldr r0, [pc, #488] ; 300214d0 <== NOT EXECUTED 300212e4: e59f11f4 ldr r1, [pc, #500] ; 300214e0 <== NOT EXECUTED 300212e8: e59f21e8 ldr r2, [pc, #488] ; 300214d8 <== NOT EXECUTED 300212ec: e59f31f0 ldr r3, [pc, #496] ; 300214e4 <== NOT EXECUTED 300212f0: ebffe6cb bl 3001ae24 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 300212f4: e59f31ec ldr r3, [pc, #492] ; 300214e8 <== NOT EXECUTED 300212f8: e5933000 ldr r3, [r3] <== NOT EXECUTED 300212fc: e1a05123 lsr r5, r3, #2 <== NOT EXECUTED 30021300: e2453001 sub r3, r5, #1 ; 0x1 <== NOT EXECUTED 30021304: e1510003 cmp r1, r3 <== NOT EXECUTED 30021308: 8a00000f bhi 3002134c <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 3002130c: 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; 30021310: e5970054 ldr r0, [r7, #84] <== NOT EXECUTED if ( malloc_it ) { 30021314: 0a000008 beq 3002133c <== NOT EXECUTED if ( !p ) { 30021318: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002131c: 1a000003 bne 30021330 <== NOT EXECUTED p = memfile_alloc_block(); 30021320: ebffffd5 bl 3002127c <== NOT EXECUTED if ( !p ) 30021324: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021328: 0a000066 beq 300214c8 <== NOT EXECUTED return 0; info->indirect = p; 3002132c: e5870054 str r0, [r7, #84] <== NOT EXECUTED } return &info->indirect[ my_block ]; 30021330: e5973054 ldr r3, [r7, #84] <== NOT EXECUTED 30021334: e0830104 add r0, r3, r4, lsl #2 <== NOT EXECUTED 30021338: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if ( !p ) 3002133c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 0; return &info->indirect[ my_block ]; 30021340: 10800101 addne r0, r0, r1, lsl #2 <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 30021344: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 30021348: ea00005e b 300214c8 <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 3002134c: e2853001 add r3, r5, #1 ; 0x1 <== NOT EXECUTED 30021350: e0000395 mul r0, r5, r3 <== NOT EXECUTED 30021354: e2403001 sub r3, r0, #1 ; 0x1 <== NOT EXECUTED 30021358: e1510003 cmp r1, r3 <== NOT EXECUTED 3002135c: 8a000022 bhi 300213ec <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 30021360: e0654001 rsb r4, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30021364: e1a00004 mov r0, r4 <== NOT EXECUTED 30021368: e1a01005 mov r1, r5 <== NOT EXECUTED 3002136c: eb00615f bl 300398f0 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30021370: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30021374: e1a06000 mov r6, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30021378: e1a00004 mov r0, r4 <== NOT EXECUTED 3002137c: eb0060c7 bl 300396a0 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 30021380: 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; 30021384: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->doubly_indirect; 30021388: e5970058 ldr r0, [r7, #88] <== NOT EXECUTED if ( malloc_it ) { 3002138c: 0a00000f beq 300213d0 <== NOT EXECUTED if ( !p ) { 30021390: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021394: 1a000003 bne 300213a8 <== NOT EXECUTED p = memfile_alloc_block(); 30021398: ebffffb7 bl 3002127c <== NOT EXECUTED if ( !p ) 3002139c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300213a0: 0a000048 beq 300214c8 <== NOT EXECUTED return 0; info->doubly_indirect = p; 300213a4: e5870058 str r0, [r7, #88] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 300213a8: e7901104 ldr r1, [r0, r4, lsl #2] <== NOT EXECUTED 300213ac: e0804104 add r4, r0, r4, lsl #2 <== NOT EXECUTED if ( !p1 ) { 300213b0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 300213b4: 1a000003 bne 300213c8 <== NOT EXECUTED p1 = memfile_alloc_block(); 300213b8: ebffffaf bl 3002127c <== NOT EXECUTED if ( !p1 ) 300213bc: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 300213c0: 0a000040 beq 300214c8 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 300213c4: e5841000 str r1, [r4] <== NOT EXECUTED } return (block_p *)&p1[ singly ]; 300213c8: e0810106 add r0, r1, r6, lsl #2 <== NOT EXECUTED 300213cc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if ( !p ) 300213d0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300213d4: 0a00003b beq 300214c8 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 300213d8: e7900104 ldr r0, [r0, r4, lsl #2] <== NOT EXECUTED if ( !p ) 300213dc: 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 ]; 300213e0: 10800106 addne r0, r0, r6, lsl #2 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 300213e4: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 300213e8: ea000036 b 300214c8 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 300213ec: e2803001 add r3, r0, #1 ; 0x1 <== NOT EXECUTED 300213f0: e0030395 mul r3, r5, r3 <== NOT EXECUTED 300213f4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 300213f8: e1510003 cmp r1, r3 <== NOT EXECUTED 300213fc: 8a000031 bhi 300214c8 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 30021400: e0604001 rsb r4, r0, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30021404: e1a00004 mov r0, r4 <== NOT EXECUTED 30021408: e1a01005 mov r1, r5 <== NOT EXECUTED 3002140c: eb006137 bl 300398f0 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30021410: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30021414: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30021418: e1a00004 mov r0, r4 <== NOT EXECUTED 3002141c: eb00609f bl 300396a0 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 30021420: 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; 30021424: e1a04000 mov r4, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 30021428: eb00609c bl 300396a0 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 3002142c: 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; 30021430: e1a06000 mov r6, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 30021434: e1a00004 mov r0, r4 <== NOT EXECUTED 30021438: eb00612c bl 300398f0 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 3002143c: 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; 30021440: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->triply_indirect; 30021444: e597005c ldr r0, [r7, #92] <== NOT EXECUTED if ( malloc_it ) { 30021448: 0a000017 beq 300214ac <== NOT EXECUTED if ( !p ) { 3002144c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021450: 1a000003 bne 30021464 <== NOT EXECUTED p = memfile_alloc_block(); 30021454: ebffff88 bl 3002127c <== NOT EXECUTED if ( !p ) 30021458: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002145c: 0a000019 beq 300214c8 <== NOT EXECUTED return 0; info->triply_indirect = p; 30021460: e587005c str r0, [r7, #92] <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 30021464: e7903106 ldr r3, [r0, r6, lsl #2] <== NOT EXECUTED 30021468: e0805106 add r5, r0, r6, lsl #2 <== NOT EXECUTED if ( !p1 ) { 3002146c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30021470: 1a000003 bne 30021484 <== NOT EXECUTED p1 = memfile_alloc_block(); 30021474: ebffff80 bl 3002127c <== NOT EXECUTED if ( !p1 ) 30021478: e2503000 subs r3, r0, #0 ; 0x0 <== NOT EXECUTED 3002147c: 0a000011 beq 300214c8 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 30021480: e5853000 str r3, [r5] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 30021484: e7930104 ldr r0, [r3, r4, lsl #2] <== NOT EXECUTED 30021488: e0834104 add r4, r3, r4, lsl #2 <== NOT EXECUTED if ( !p2 ) { 3002148c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021490: 1a000003 bne 300214a4 <== NOT EXECUTED p2 = memfile_alloc_block(); 30021494: ebffff78 bl 3002127c <== NOT EXECUTED if ( !p2 ) 30021498: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002149c: 0a000009 beq 300214c8 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 300214a0: e5840000 str r0, [r4] <== NOT EXECUTED } return (block_p *)&p2[ singly ]; 300214a4: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED 300214a8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if ( !p ) 300214ac: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300214b0: 0a000004 beq 300214c8 <== 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 ]; 300214b4: e7900106 ldr r0, [r0, r6, lsl #2] <== NOT EXECUTED if ( !p1 ) 300214b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 300214bc: 17903104 ldrne r3, [r0, r4, lsl #2] <== NOT EXECUTED 300214c0: 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 ) 300214c4: 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 ]; 300214c8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 300214cc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 300214d0: 3003e309 .word 0x3003e309 300214d4: 00000386 .word 0x00000386 300214d8: 3003b010 .word 0x3003b010 300214dc: 3003e352 .word 0x3003e352 300214e0: 0000038a .word 0x0000038a 300214e4: 3003e35c .word 0x3003e35c 300214e8: 300420c4 .word 0x300420c4 30021cf0 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 30021cf0: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30021cf4: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 30021cf8: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 30021cfc: e1a06001 mov r6, r1 <== NOT EXECUTED 30021d00: e1a08002 mov r8, r2 <== NOT EXECUTED 30021d04: e1a00003 mov r0, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30021d08: 059f01fc ldreq r0, [pc, #508] ; 30021f0c <== NOT EXECUTED 30021d0c: 059f11fc ldreq r1, [pc, #508] ; 30021f10 <== NOT EXECUTED 30021d10: 059f21fc ldreq r2, [pc, #508] ; 30021f14 <== NOT EXECUTED 30021d14: 059f31fc ldreq r3, [pc, #508] ; 30021f18 <== NOT EXECUTED 30021d18: 0a000007 beq 30021d3c <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 30021d1c: e59a204c ldr r2, [sl, #76] <== NOT EXECUTED 30021d20: e2423005 sub r3, r2, #5 ; 0x5 <== NOT EXECUTED 30021d24: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 30021d28: 9a000004 bls 30021d40 <== NOT EXECUTED 30021d2c: e59f01d8 ldr r0, [pc, #472] ; 30021f0c <== NOT EXECUTED 30021d30: e59f11e4 ldr r1, [pc, #484] ; 30021f1c <== NOT EXECUTED 30021d34: e59f21d8 ldr r2, [pc, #472] ; 30021f14 <== NOT EXECUTED 30021d38: e59f31e0 ldr r3, [pc, #480] ; 30021f20 <== NOT EXECUTED 30021d3c: ebffe438 bl 3001ae24 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 30021d40: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 30021d44: 059f01c0 ldreq r0, [pc, #448] ; 30021f0c <== NOT EXECUTED 30021d48: 03a01f96 moveq r1, #600 ; 0x258 <== NOT EXECUTED 30021d4c: 059f21c0 ldreq r2, [pc, #448] ; 30021f14 <== NOT EXECUTED 30021d50: 059f31cc ldreq r3, [pc, #460] ; 30021f24 <== NOT EXECUTED 30021d54: 0afffff8 beq 30021d3c <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 30021d58: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021d5c: 1a000004 bne 30021d74 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 30021d60: eb001dcc bl 30029498 <__errno> <== NOT EXECUTED 30021d64: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30021d68: e5803000 str r3, [r0] <== NOT EXECUTED 30021d6c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30021d70: ea000063 b 30021f04 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 30021d74: e3520006 cmp r2, #6 ; 0x6 <== NOT EXECUTED 30021d78: 1a00000d bne 30021db4 <== NOT EXECUTED unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 30021d7c: e59a4050 ldr r4, [sl, #80] <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 30021d80: 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)) 30021d84: e0664004 rsb r4, r6, r4 <== NOT EXECUTED 30021d88: e1540000 cmp r4, r0 <== NOT EXECUTED 30021d8c: 21a04000 movcs r4, r0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 30021d90: e0811006 add r1, r1, r6 <== NOT EXECUTED 30021d94: e1a02004 mov r2, r4 <== NOT EXECUTED 30021d98: e1a00008 mov r0, r8 <== NOT EXECUTED 30021d9c: eb002735 bl 3002ba78 <== NOT EXECUTED IMFS_update_atime( the_jnode ); 30021da0: e1a0000d mov r0, sp <== NOT EXECUTED 30021da4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30021da8: ebff880a bl 30003dd8 <== NOT EXECUTED return my_length; 30021dac: e1a00004 mov r0, r4 <== NOT EXECUTED 30021db0: ea000051 b 30021efc <== 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 ) 30021db4: e59a2050 ldr r2, [sl, #80] <== NOT EXECUTED 30021db8: e0803001 add r3, r0, r1 <== NOT EXECUTED 30021dbc: e1530002 cmp r3, r2 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30021dc0: e59f3160 ldr r3, [pc, #352] ; 30021f28 <== 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 ) 30021dc4: 91a07000 movls r7, r0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30021dc8: e5934000 ldr r4, [r3] <== NOT EXECUTED * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) my_length = the_jnode->info.file.size - start; 30021dcc: 80617002 rsbhi r7, r1, r2 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30021dd0: e1a00001 mov r0, r1 <== NOT EXECUTED 30021dd4: e1a01004 mov r1, r4 <== NOT EXECUTED 30021dd8: eb005ef7 bl 300399bc <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30021ddc: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30021de0: e1a05000 mov r5, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30021de4: e1a00006 mov r0, r6 <== NOT EXECUTED 30021de8: eb005e70 bl 300397b0 <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 30021dec: 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; 30021df0: e1a06000 mov r6, r0 <== NOT EXECUTED if ( start_offset ) { 30021df4: 0a000013 beq 30021e48 <== 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 ); 30021df8: e1a01006 mov r1, r6 <== NOT EXECUTED 30021dfc: e1a0000a mov r0, sl <== NOT EXECUTED 30021e00: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30021e04: ebfffd29 bl 300212b0 <== NOT EXECUTED assert( block_ptr ); 30021e08: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021e0c: 059f00f8 ldreq r0, [pc, #248] ; 30021f0c <== NOT EXECUTED 30021e10: 03a01fa5 moveq r1, #660 ; 0x294 <== NOT EXECUTED 30021e14: 0a00002c beq 30021ecc <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 30021e18: 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; 30021e1c: e0654004 rsb r4, r5, r4 <== NOT EXECUTED 30021e20: e1570004 cmp r7, r4 <== NOT EXECUTED 30021e24: 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 ); 30021e28: e0811005 add r1, r1, r5 <== NOT EXECUTED 30021e2c: e1a00008 mov r0, r8 <== NOT EXECUTED 30021e30: e1a02004 mov r2, r4 <== NOT EXECUTED 30021e34: eb00270f bl 3002ba78 <== NOT EXECUTED dest += to_copy; 30021e38: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; 30021e3c: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 30021e40: e0647007 rsb r7, r4, r7 <== NOT EXECUTED 30021e44: e1a05004 mov r5, r4 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30021e48: e59f30d8 ldr r3, [pc, #216] ; 30021f28 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30021e4c: e1a09003 mov r9, r3 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30021e50: e5934000 ldr r4, [r3] <== NOT EXECUTED 30021e54: ea00000f b 30021e98 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30021e58: e1a0000a mov r0, sl <== NOT EXECUTED 30021e5c: e1a01006 mov r1, r6 <== NOT EXECUTED 30021e60: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30021e64: ebfffd11 bl 300212b0 <== NOT EXECUTED assert( block_ptr ); 30021e68: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021e6c: 059f0098 ldreq r0, [pc, #152] ; 30021f0c <== NOT EXECUTED 30021e70: 059f10b4 ldreq r1, [pc, #180] ; 30021f2c <== NOT EXECUTED 30021e74: 0a000014 beq 30021ecc <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 30021e78: e5901000 ldr r1, [r0] <== NOT EXECUTED 30021e7c: e1a02004 mov r2, r4 <== NOT EXECUTED 30021e80: e1a00008 mov r0, r8 <== NOT EXECUTED 30021e84: eb0026fb bl 3002ba78 <== NOT EXECUTED dest += to_copy; 30021e88: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; 30021e8c: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 30021e90: e0647007 rsb r7, r4, r7 <== NOT EXECUTED copied += to_copy; 30021e94: 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 ) { 30021e98: e5993000 ldr r3, [r9] <== NOT EXECUTED 30021e9c: e1570003 cmp r7, r3 <== NOT EXECUTED 30021ea0: 2affffec bcs 30021e58 <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 30021ea4: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 30021ea8: 0a00000f beq 30021eec <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30021eac: e1a01006 mov r1, r6 <== NOT EXECUTED 30021eb0: e1a0000a mov r0, sl <== NOT EXECUTED 30021eb4: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30021eb8: ebfffcfc bl 300212b0 <== NOT EXECUTED assert( block_ptr ); 30021ebc: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 30021ec0: 1a000004 bne 30021ed8 <== NOT EXECUTED 30021ec4: e59f0040 ldr r0, [pc, #64] ; 30021f0c <== NOT EXECUTED 30021ec8: e59f1060 ldr r1, [pc, #96] ; 30021f30 <== NOT EXECUTED 30021ecc: e59f2040 ldr r2, [pc, #64] ; 30021f14 <== NOT EXECUTED 30021ed0: e59f305c ldr r3, [pc, #92] ; 30021f34 <== NOT EXECUTED 30021ed4: eaffff98 b 30021d3c <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 30021ed8: e1a00008 mov r0, r8 <== NOT EXECUTED 30021edc: e5911000 ldr r1, [r1] <== NOT EXECUTED 30021ee0: e1a02007 mov r2, r7 <== NOT EXECUTED 30021ee4: eb0026e3 bl 3002ba78 <== NOT EXECUTED copied += my_length; 30021ee8: e0875005 add r5, r7, r5 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); 30021eec: e1a0000d mov r0, sp <== NOT EXECUTED 30021ef0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30021ef4: ebff87b7 bl 30003dd8 <== NOT EXECUTED return copied; 30021ef8: e1a00005 mov r0, r5 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 30021efc: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30021f00: e58a3040 str r3, [sl, #64] <== NOT EXECUTED return copied; } 30021f04: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30021f08: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 30021f0c: 3003e309 .word 0x3003e309 30021f10: 0000024a .word 0x0000024a 30021f14: 3003b042 .word 0x3003b042 30021f18: 3003e352 .word 0x3003e352 30021f1c: 0000024f .word 0x0000024f 30021f20: 3003e3bf .word 0x3003e3bf 30021f24: 3003e40a .word 0x3003e40a 30021f28: 300420c4 .word 0x300420c4 30021f2c: 000002a5 .word 0x000002a5 30021f30: 000002b7 .word 0x000002b7 30021f34: 3003e38c .word 0x3003e38c 30021590 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 30021590: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30021594: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 30021598: 059f0130 ldreq r0, [pc, #304] ; 300216d0 <== NOT EXECUTED 3002159c: 03a01f7b moveq r1, #492 ; 0x1ec <== NOT EXECUTED 300215a0: 059f212c ldreq r2, [pc, #300] ; 300216d4 <== NOT EXECUTED 300215a4: 059f312c ldreq r3, [pc, #300] ; 300216d8 <== NOT EXECUTED 300215a8: 0a000006 beq 300215c8 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300215ac: e596304c ldr r3, [r6, #76] <== NOT EXECUTED 300215b0: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 300215b4: 0a000004 beq 300215cc <== NOT EXECUTED 300215b8: e59f0110 ldr r0, [pc, #272] ; 300216d0 <== NOT EXECUTED 300215bc: e59f2110 ldr r2, [pc, #272] ; 300216d4 <== NOT EXECUTED 300215c0: e59f3114 ldr r3, [pc, #276] ; 300216dc <== NOT EXECUTED 300215c4: e3a01e1f mov r1, #496 ; 0x1f0 <== NOT EXECUTED 300215c8: ebffe615 bl 3001ae24 <__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; 300215cc: e59f210c ldr r2, [pc, #268] ; 300216e0 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 300215d0: 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; 300215d4: e5922000 ldr r2, [r2] <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 300215d8: 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; 300215dc: e1a08122 lsr r8, r2, #2 <== NOT EXECUTED */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 300215e0: 12860054 addne r0, r6, #84 ; 0x54 <== NOT EXECUTED 300215e4: 11a01008 movne r1, r8 <== NOT EXECUTED 300215e8: 1bffffc9 blne 30021514 <== NOT EXECUTED } if ( info->doubly_indirect ) { 300215ec: e5963058 ldr r3, [r6, #88] <== NOT EXECUTED 300215f0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300215f4: 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 ) { 300215fc: 1a000008 bne 30021624 <== NOT EXECUTED 30021600: ea00000d b 3002163c <== NOT EXECUTED for ( i=0 ; idoubly_indirect[i] ) { 30021604: e5960058 ldr r0, [r6, #88] <== NOT EXECUTED 30021608: e1a02104 lsl r2, r4, #2 <== NOT EXECUTED 3002160c: e7903104 ldr r3, [r0, r4, lsl #2] <== NOT EXECUTED 30021610: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED memfile_free_blocks_in_table( 30021614: 10800002 addne r0, r0, r2 <== NOT EXECUTED 30021618: 11a01008 movne r1, r8 <== NOT EXECUTED 3002161c: 1bffffbc blne 30021514 <== 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 ); 30021630: e2860058 add r0, r6, #88 ; 0x58 <== NOT EXECUTED 30021634: e1a01008 mov r1, r8 <== NOT EXECUTED 30021638: ebffffb5 bl 30021514 <== NOT EXECUTED } if ( info->triply_indirect ) { 3002163c: e596305c ldr r3, [r6, #92] <== NOT EXECUTED 30021640: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30021644: 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 ) { 3002164c: 1a000017 bne 300216b0 <== NOT EXECUTED 30021650: ea00001c b 300216c8 <== NOT EXECUTED for ( i=0 ; itriply_indirect[i]; 30021654: e596305c ldr r3, [r6, #92] <== NOT EXECUTED } memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { 30021658: e1a0a107 lsl sl, r7, #2 <== NOT EXECUTED for ( i=0 ; itriply_indirect[i]; 3002165c: e7930107 ldr r0, [r3, r7, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30021660: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021664: 0a000014 beq 300216bc <== NOT EXECUTED break; 30021668: e1a04000 mov r4, r0 <== NOT EXECUTED 3002166c: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 30021670: ea000006 b 30021690 <== 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( 3002169c: e596005c ldr r0, [r6, #92] <== NOT EXECUTED 300216a0: e1a01008 mov r1, r8 <== NOT EXECUTED 300216a4: e080000a add r0, r0, sl <== NOT EXECUTED 300216a8: ebffff99 bl 30021514 <== 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( 300216bc: e286005c add r0, r6, #92 ; 0x5c <== NOT EXECUTED 300216c0: e1a01008 mov r1, r8 <== NOT EXECUTED 300216c4: ebffff92 bl 30021514 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 300216c8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300216cc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 300216d0: 3003e309 .word 0x3003e309 300216d4: 3003b054 .word 0x3003b054 300216d8: 3003e352 .word 0x3003e352 300216dc: 3003e35c .word 0x3003e35c 300216e0: 300420c4 .word 0x300420c4 300214ec : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 300214ec: 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 ); 300214f0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300214f4: ebffff6d bl 300212b0 <== NOT EXECUTED ptr = *block_entry_ptr; 300214f8: e5902000 ldr r2, [r0] <== NOT EXECUTED *block_entry_ptr = 0; 300214fc: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30021500: e5803000 str r3, [r0] <== NOT EXECUTED memfile_free_block( ptr ); 30021504: e1a00002 mov r0, r2 <== NOT EXECUTED 30021508: ebffff53 bl 3002125c <== NOT EXECUTED return 1; } 3002150c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30021510: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30021a1c : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30021a1c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30021a20: e2509000 subs r9, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30021a24: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 30021a28: e1a05001 mov r5, r1 <== NOT EXECUTED 30021a2c: e1a08002 mov r8, r2 <== NOT EXECUTED 30021a30: e1a0a003 mov sl, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30021a34: 059f01d4 ldreq r0, [pc, #468] ; 30021c10 <== NOT EXECUTED 30021a38: 059f11d4 ldreq r1, [pc, #468] ; 30021c14 <== NOT EXECUTED 30021a3c: 059f21d4 ldreq r2, [pc, #468] ; 30021c18 <== NOT EXECUTED 30021a40: 059f31d4 ldreq r3, [pc, #468] ; 30021c1c <== NOT EXECUTED 30021a44: 0a000006 beq 30021a64 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30021a48: e599304c ldr r3, [r9, #76] <== NOT EXECUTED 30021a4c: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 30021a50: 0a000004 beq 30021a68 <== NOT EXECUTED 30021a54: e59f01b4 ldr r0, [pc, #436] ; 30021c10 <== NOT EXECUTED 30021a58: e59f11c0 ldr r1, [pc, #448] ; 30021c20 <== NOT EXECUTED 30021a5c: e59f21b4 ldr r2, [pc, #436] ; 30021c18 <== NOT EXECUTED 30021a60: e59f31bc ldr r3, [pc, #444] ; 30021c24 <== NOT EXECUTED 30021a64: ebffe4ee bl 3001ae24 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 30021a68: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30021a6c: 059f019c ldreq r0, [pc, #412] ; 30021c10 <== NOT EXECUTED 30021a70: 059f11b0 ldreq r1, [pc, #432] ; 30021c28 <== NOT EXECUTED 30021a74: 059f219c ldreq r2, [pc, #412] ; 30021c18 <== NOT EXECUTED 30021a78: 059f31ac ldreq r3, [pc, #428] ; 30021c2c <== NOT EXECUTED 30021a7c: 0afffff8 beq 30021a64 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 30021a80: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED 30021a84: 1a000002 bne 30021a94 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 30021a88: eb001e82 bl 30029498 <__errno> <== NOT EXECUTED 30021a8c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30021a90: ea000008 b 30021ab8 <== 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 ) { 30021a94: 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; 30021a98: e08a1001 add r1, sl, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { 30021a9c: e1510003 cmp r1, r3 <== NOT EXECUTED 30021aa0: 9a000007 bls 30021ac4 <== NOT EXECUTED status = IMFS_memfile_extend( the_jnode, last_byte ); 30021aa4: ebffff66 bl 30021844 <== NOT EXECUTED if ( status ) 30021aa8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021aac: 0a000004 beq 30021ac4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 30021ab0: eb001e78 bl 30029498 <__errno> <== NOT EXECUTED 30021ab4: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 30021ab8: e5803000 str r3, [r0] <== NOT EXECUTED 30021abc: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30021ac0: ea00004f b 30021c04 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30021ac4: e59f3164 ldr r3, [pc, #356] ; 30021c30 <== NOT EXECUTED 30021ac8: e1a00005 mov r0, r5 <== NOT EXECUTED 30021acc: e5934000 ldr r4, [r3] <== NOT EXECUTED 30021ad0: e1a01004 mov r1, r4 <== NOT EXECUTED 30021ad4: eb005fb8 bl 300399bc <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30021ad8: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30021adc: e1a06000 mov r6, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30021ae0: e1a00005 mov r0, r5 <== NOT EXECUTED 30021ae4: eb005f31 bl 300397b0 <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 30021ae8: 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; 30021aec: e1a07000 mov r7, r0 <== NOT EXECUTED if ( start_offset ) { 30021af0: 01a0500a moveq r5, sl <== NOT EXECUTED 30021af4: 01a04006 moveq r4, r6 <== NOT EXECUTED 30021af8: 0a000012 beq 30021b48 <== 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 ); 30021afc: e1a00009 mov r0, r9 <== NOT EXECUTED 30021b00: e1a01007 mov r1, r7 <== NOT EXECUTED 30021b04: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30021b08: ebfffde8 bl 300212b0 <== NOT EXECUTED assert( block_ptr ); 30021b0c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021b10: 059f00f8 ldreq r0, [pc, #248] ; 30021c10 <== NOT EXECUTED 30021b14: 059f1118 ldreq r1, [pc, #280] ; 30021c34 <== NOT EXECUTED 30021b18: 0a00002b beq 30021bcc <== 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 ); 30021b1c: 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; 30021b20: e0664004 rsb r4, r6, r4 <== NOT EXECUTED 30021b24: e154000a cmp r4, sl <== NOT EXECUTED 30021b28: 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 ); 30021b2c: e1a01008 mov r1, r8 <== NOT EXECUTED 30021b30: e0800006 add r0, r0, r6 <== NOT EXECUTED 30021b34: e1a02004 mov r2, r4 <== NOT EXECUTED 30021b38: eb0027ce bl 3002ba78 <== NOT EXECUTED src += to_copy; 30021b3c: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; 30021b40: e2877001 add r7, r7, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 30021b44: e064500a rsb r5, r4, sl <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30021b48: e59f30e0 ldr r3, [pc, #224] ; 30021c30 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30021b4c: e1a0a003 mov sl, r3 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30021b50: e5936000 ldr r6, [r3] <== NOT EXECUTED 30021b54: ea00000f b 30021b98 <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30021b58: e1a00009 mov r0, r9 <== NOT EXECUTED 30021b5c: e1a01007 mov r1, r7 <== NOT EXECUTED 30021b60: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30021b64: ebfffdd1 bl 300212b0 <== NOT EXECUTED assert( block_ptr ); 30021b68: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021b6c: 059f009c ldreq r0, [pc, #156] ; 30021c10 <== NOT EXECUTED 30021b70: 059f10c0 ldreq r1, [pc, #192] ; 30021c38 <== NOT EXECUTED 30021b74: 0a000014 beq 30021bcc <== 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 ); 30021b78: e1a01008 mov r1, r8 <== NOT EXECUTED 30021b7c: e5900000 ldr r0, [r0] <== NOT EXECUTED 30021b80: e1a02006 mov r2, r6 <== NOT EXECUTED 30021b84: eb0027bb bl 3002ba78 <== NOT EXECUTED src += to_copy; 30021b88: e0888006 add r8, r8, r6 <== NOT EXECUTED block++; 30021b8c: e2877001 add r7, r7, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 30021b90: e0665005 rsb r5, r6, r5 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30021b94: 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 ) { 30021b98: e59a3000 ldr r3, [sl] <== NOT EXECUTED 30021b9c: e1550003 cmp r5, r3 <== NOT EXECUTED 30021ba0: 2affffec bcs 30021b58 <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 30021ba4: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30021ba8: 0a00000f beq 30021bec <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30021bac: e1a01007 mov r1, r7 <== NOT EXECUTED 30021bb0: e1a00009 mov r0, r9 <== NOT EXECUTED 30021bb4: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30021bb8: ebfffdbc bl 300212b0 <== NOT EXECUTED assert( block_ptr ); 30021bbc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30021bc0: 1a000004 bne 30021bd8 <== NOT EXECUTED 30021bc4: e59f0044 ldr r0, [pc, #68] ; 30021c10 <== NOT EXECUTED 30021bc8: e3a01fd1 mov r1, #836 ; 0x344 <== NOT EXECUTED 30021bcc: e59f2044 ldr r2, [pc, #68] ; 30021c18 <== NOT EXECUTED 30021bd0: e59f3064 ldr r3, [pc, #100] ; 30021c3c <== NOT EXECUTED 30021bd4: eaffffa2 b 30021a64 <== 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 ); 30021bd8: e5900000 ldr r0, [r0] <== NOT EXECUTED 30021bdc: e1a01008 mov r1, r8 <== NOT EXECUTED 30021be0: e1a02005 mov r2, r5 <== NOT EXECUTED 30021be4: eb0027a3 bl 3002ba78 <== NOT EXECUTED my_length = 0; copied += to_copy; 30021be8: e0844005 add r4, r4, r5 <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); 30021bec: e1a0000d mov r0, sp <== NOT EXECUTED 30021bf0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30021bf4: ebff8877 bl 30003dd8 <== NOT EXECUTED 30021bf8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30021bfc: e5893040 str r3, [r9, #64] <== NOT EXECUTED 30021c00: e5893044 str r3, [r9, #68] <== NOT EXECUTED return copied; } 30021c04: e1a00004 mov r0, r4 <== NOT EXECUTED 30021c08: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30021c0c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 30021c10: 3003e309 .word 0x3003e309 30021c14: 000002e1 .word 0x000002e1 30021c18: 3003b02f .word 0x3003b02f 30021c1c: 3003e352 .word 0x3003e352 30021c20: 000002e5 .word 0x000002e5 30021c24: 3003e35c .word 0x3003e35c 30021c28: 000002ed .word 0x000002ed 30021c2c: 3003dfc7 .word 0x3003dfc7 30021c30: 300420c4 .word 0x300420c4 30021c34: 0000031a .word 0x0000031a 30021c38: 0000032e .word 0x0000032e 30021c3c: 3003e38c .word 0x3003e38c 300081bc : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 300081bc: e92d4070 push {r4, r5, r6, lr} 300081c0: e24dd03c sub sp, sp, #60 ; 0x3c 300081c4: e1a06001 mov r6, r1 300081c8: 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 ); 300081cc: e28d1007 add r1, sp, #7 ; 0x7 300081d0: 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 */ ) { 300081d4: 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 ); 300081d8: ebffff82 bl 30007fe8 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 300081dc: e2063a0f and r3, r6, #61440 ; 0xf000 300081e0: e3530901 cmp r3, #16384 ; 0x4000 300081e4: 0a00000b beq 30008218 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 300081e8: e3530902 cmp r3, #32768 ; 0x8000 300081ec: 03a01005 moveq r1, #5 ; 0x5 300081f0: 0a000009 beq 3000821c type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 300081f4: e3530a02 cmp r3, #8192 ; 0x2000 300081f8: 13530a06 cmpne r3, #24576 ; 0x6000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 300081fc: 058d5028 streq r5, [sp, #40] 30008200: 058d402c streq r4, [sp, #44] 30008204: 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) ) { 30008208: 0a000003 beq 3000821c type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else { rtems_set_errno_and_return_minus_one( EINVAL ); 3000820c: eb000953 bl 3000a760 <__errno> <== NOT EXECUTED 30008210: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30008214: ea00000b b 30008248 <== NOT EXECUTED 30008218: e3a01001 mov r1, #1 ; 0x1 /* * Allocate and fill in an IMFS jnode */ new_node = IMFS_create_node( 3000821c: e28dc028 add ip, sp, #40 ; 0x28 30008220: e59d004c ldr r0, [sp, #76] 30008224: e1a03006 mov r3, r6 30008228: e28d2007 add r2, sp, #7 ; 0x7 3000822c: e58dc000 str ip, [sp] 30008230: eb00075f bl 30009fb4 new_name, mode, &info ); if ( !new_node ) 30008234: e3500000 cmp r0, #0 ; 0x0 30008238: 13a00000 movne r0, #0 ; 0x0 3000823c: 1a000003 bne 30008250 rtems_set_errno_and_return_minus_one( ENOMEM ); 30008240: eb000946 bl 3000a760 <__errno> <== NOT EXECUTED 30008244: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 30008248: e5803000 str r3, [r0] <== NOT EXECUTED 3000824c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 30008250: e28dd03c add sp, sp, #60 ; 0x3c 30008254: e8bd8070 pop {r4, r5, r6, pc} 3000362c : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 3000362c: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 30003630: 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 ) 30003634: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 30003638: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3000363c: 0a000004 beq 30003654 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 30003640: eb009794 bl 30029498 <__errno> <== NOT EXECUTED 30003644: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 30003648: e5803000 str r3, [r0] <== NOT EXECUTED 3000364c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003650: 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; 30003654: e582005c str r0, [r2, #92] <== NOT EXECUTED 30003658: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3000365c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3000366c : ) { IMFS_jnode_t *node; int i; node = loc->node_access; 3000366c: e590c000 ldr ip, [r0] <== NOT EXECUTED int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 30003670: 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 ) 30003674: e59c304c ldr r3, [ip, #76] <== NOT EXECUTED 30003678: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 3000367c: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED 30003680: 0a000006 beq 300036a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 30003684: eb009783 bl 30029498 <__errno> <== NOT EXECUTED 30003688: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3000368c: e5803000 str r3, [r0] <== NOT EXECUTED 30003690: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003694: 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]; 30003698: 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++ ) 3000369c: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 300036a0: e1500002 cmp r0, r2 <== NOT EXECUTED 300036a4: 249df004 popcs {pc} ; (ldrcs pc, [sp], #4) <== NOT EXECUTED 300036a8: e59c3050 ldr r3, [ip, #80] <== NOT EXECUTED 300036ac: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED 300036b0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300036b4: 1afffff7 bne 30003698 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 300036b8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30008264 : */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30008264: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 30008268: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 3000826c: 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 ) { 30008270: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30008274: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 30008278: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000827c: 0a000003 beq 30008290 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 30008280: e1a00004 mov r0, r4 <== NOT EXECUTED 30008284: eb00045c bl 300093fc <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 30008288: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3000828c: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30008290: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30008294: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30008298: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3000829c: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 300082a0: e1a0000d mov r0, sp <== NOT EXECUTED 300082a4: eb00013a bl 30008794 <== NOT EXECUTED 300082a8: 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) ) { 300082ac: 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 ); 300082b0: 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) ) { 300082b4: eb000162 bl 30008844 <== NOT EXECUTED 300082b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300082bc: 1a000010 bne 30008304 <== NOT EXECUTED 300082c0: e1d403b4 ldrh r0, [r4, #52] <== NOT EXECUTED 300082c4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300082c8: 1a00000d bne 30008304 <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 300082cc: e59f203c ldr r2, [pc, #60] ; 30008310 <== NOT EXECUTED 300082d0: e5953000 ldr r3, [r5] <== NOT EXECUTED 300082d4: e5921000 ldr r1, [r2] <== NOT EXECUTED 300082d8: e5912004 ldr r2, [r1, #4] <== NOT EXECUTED 300082dc: e1520003 cmp r2, r3 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 300082e0: 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; 300082e4: 05810004 streq r0, [r1, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 300082e8: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 300082ec: 1a000002 bne 300082fc <== NOT EXECUTED if ( the_jnode->info.sym_link.name ) 300082f0: e5940050 ldr r0, [r4, #80] <== NOT EXECUTED 300082f4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED free( (void*) the_jnode->info.sym_link.name ); 300082f8: 1b0000c7 blne 3000861c <== NOT EXECUTED } free( the_jnode ); 300082fc: e1a00004 mov r0, r4 <== NOT EXECUTED 30008300: eb0000c5 bl 3000861c <== NOT EXECUTED } return 0; } 30008304: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30008308: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3000830c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30008310: 30014ba4 .word 0x30014ba4 30008314 : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 30008314: e5900000 ldr r0, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 30008318: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 3000831c: e590304c ldr r3, [r0, #76] 30008320: e2433002 sub r3, r3, #2 ; 0x2 30008324: e3530004 cmp r3, #4 ; 0x4 30008328: 979ff103 ldrls pc, [pc, r3, lsl #2] 3000832c: ea00000d b 30008368 <== NOT EXECUTED 30008330: 30008344 .word 0x30008344 <== NOT EXECUTED 30008334: 30008368 .word 0x30008368 <== NOT EXECUTED 30008338: 3000835c .word 0x3000835c <== NOT EXECUTED 3000833c: 30008354 .word 0x30008354 <== NOT EXECUTED 30008340: 30008354 .word 0x30008354 <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); 30008344: e5903054 ldr r3, [r0, #84] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 30008348: e5902050 ldr r2, [r0, #80] 3000834c: e881000c stm r1, {r2, r3} 30008350: ea000009 b 3000837c break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 30008354: e5903050 ldr r3, [r0, #80] <== NOT EXECUTED 30008358: ea000000 b 30008360 <== NOT EXECUTED break; case IMFS_SYM_LINK: buf->st_size = 0; 3000835c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30008360: e5813020 str r3, [r1, #32] <== NOT EXECUTED 30008364: ea000004 b 3000837c <== NOT EXECUTED break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 30008368: eb0008fc bl 3000a760 <__errno> <== NOT EXECUTED 3000836c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008370: e5803000 str r3, [r0] <== NOT EXECUTED 30008374: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008378: 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; 3000837c: e5903038 ldr r3, [r0, #56] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 30008380: e1d023b4 ldrh r2, [r0, #52] buf->st_ino = the_jnode->st_ino; 30008384: 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; 30008388: e5903040 ldr r3, [r0, #64] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 3000838c: e1c121b0 strh r2, [r1, #16] 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; 30008390: e5813024 str r3, [r1, #36] buf->st_mtime = the_jnode->stat_mtime; 30008394: e5903044 ldr r3, [r0, #68] } 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; 30008398: e1d0c3bc ldrh ip, [r0, #60] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 3000839c: e581302c str r3, [r1, #44] } 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; 300083a0: e1c1c1b2 strh ip, [r1, #18] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 300083a4: e5902030 ldr r2, [r0, #48] 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; 300083a8: e5903048 ldr r3, [r0, #72] 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; buf->st_gid = the_jnode->st_gid; 300083ac: e1d003be ldrh r0, [r0, #62] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 300083b0: 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; 300083b4: 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; 300083b8: e5813034 str r3, [r1, #52] 300083bc: e3a00000 mov r0, #0 ; 0x0 return 0; } 300083c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) 300036bc : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 300036bc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 300036c0: 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 ); 300036c4: 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 ) { 300036c8: e1a04001 mov r4, r1 <== NOT EXECUTED 300036cc: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, new_name, &i ); 300036d0: e1a01006 mov r1, r6 <== NOT EXECUTED 300036d4: e1a00002 mov r0, r2 <== NOT EXECUTED 300036d8: e28d2038 add r2, sp, #56 ; 0x38 <== NOT EXECUTED 300036dc: ebffff03 bl 300032f0 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 300036e0: e1a00004 mov r0, r4 <== NOT EXECUTED 300036e4: eb00ac42 bl 3002e7f4 <== NOT EXECUTED if (info.sym_link.name == NULL) { 300036e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 300036ec: e58d0028 str r0, [sp, #40] <== NOT EXECUTED if (info.sym_link.name == NULL) { 300036f0: 0a00000b beq 30003724 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 300036f4: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 300036f8: e1a00005 mov r0, r5 <== NOT EXECUTED 300036fc: e1a02006 mov r2, r6 <== NOT EXECUTED 30003700: e3a01004 mov r1, #4 ; 0x4 <== NOT EXECUTED 30003704: e59f3030 ldr r3, [pc, #48] ; 3000373c <== NOT EXECUTED 30003708: e58dc000 str ip, [sp] <== NOT EXECUTED 3000370c: eb005aeb bl 3001a2c0 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 30003710: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003714: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30003718: 1a000005 bne 30003734 <== NOT EXECUTED free( info.sym_link.name); 3000371c: e59d0028 ldr r0, [sp, #40] <== NOT EXECUTED 30003720: eb000184 bl 30003d38 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 30003724: eb00975b bl 30029498 <__errno> <== NOT EXECUTED 30003728: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3000372c: e5803000 str r3, [r0] <== NOT EXECUTED 30003730: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 30003734: e28dd03c add sp, sp, #60 ; 0x3c <== NOT EXECUTED 30003738: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000373c: 0000a1ff .word 0x0000a1ff 30003740 : #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 30003740: 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; 30003744: e5906000 ldr r6, [r0] <== NOT EXECUTED #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 30003748: e24dd018 sub sp, sp, #24 ; 0x18 <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 3000374c: e596304c ldr r3, [r6, #76] <== NOT EXECUTED #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 30003750: 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 ) { 30003754: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 30003758: 1a000020 bne 300037e0 <== NOT EXECUTED if ( !node->info.hard_link.link_node ) 3000375c: e596c050 ldr ip, [r6, #80] <== NOT EXECUTED 30003760: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 30003764: 1a000003 bne 30003778 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 30003768: eb00974a bl 30029498 <__errno> <== NOT EXECUTED 3000376c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30003770: e5803000 str r3, [r0] <== NOT EXECUTED 30003774: ea00000f b 300037b8 <== NOT EXECUTED the_link = *loc; 30003778: e890000f ldm r0, {r0, r1, r2, r3} <== NOT EXECUTED 3000377c: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 30003780: 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; 30003784: e58dc000 str ip, [sp] <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 30003788: eb005b2a bl 3001a438 <== 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) 3000378c: e5962050 ldr r2, [r6, #80] <== 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; 30003790: 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) 30003794: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED 30003798: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3000379c: 1a000007 bne 300037c0 <== NOT EXECUTED { result = (*the_link.handlers->rmnod_h)( &the_link ); 300037a0: e1a0000d mov r0, sp <== NOT EXECUTED 300037a4: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 300037a8: e1a0e00f mov lr, pc <== NOT EXECUTED 300037ac: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED if ( result != 0 ) 300037b0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300037b4: 0a000009 beq 300037e0 <== NOT EXECUTED 300037b8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300037bc: ea00000b b 300037f0 <== NOT EXECUTED return -1; } else { node->info.hard_link.link_node->st_nlink --; 300037c0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 300037c4: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 300037c8: e28d0010 add r0, sp, #16 ; 0x10 <== NOT EXECUTED 300037cc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300037d0: eb000180 bl 30003dd8 <== NOT EXECUTED 300037d4: e5962050 ldr r2, [r6, #80] <== NOT EXECUTED 300037d8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300037dc: e5823048 str r3, [r2, #72] <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( loc ); 300037e0: e1a00004 mov r0, r4 <== NOT EXECUTED 300037e4: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 300037e8: e1a0e00f mov lr, pc <== NOT EXECUTED 300037ec: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED return result; } 300037f0: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED 300037f4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 300037f8 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 300037f8: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 300037fc: 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 ) 30003800: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 30003804: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 30003808: 0a000002 beq 30003818 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 3000380c: eb009721 bl 30029498 <__errno> <== NOT EXECUTED 30003810: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 30003814: ea000004 b 3000382c <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 30003818: e592305c ldr r3, [r2, #92] <== NOT EXECUTED 3000381c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003820: 1a000004 bne 30003838 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 30003824: eb00971b bl 30029498 <__errno> <== NOT EXECUTED 30003828: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3000382c: e5803000 str r3, [r0] <== NOT EXECUTED 30003830: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003834: 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; 30003838: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3000383c: e582305c str r3, [r2, #92] <== NOT EXECUTED 30003840: e1a00003 mov r0, r3 <== NOT EXECUTED return 0; } 30003844: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30003848 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 30003848: e5903000 ldr r3, [r0] <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } 3000384c: 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; 30003850: 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; 30003854: e5831040 str r1, [r3, #64] <== NOT EXECUTED the_jnode->stat_mtime = modtime; return 0; } 30003858: e12fff1e bx lr <== NOT EXECUTED 300014a0 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 300014a0: e59f3094 ldr r3, [pc, #148] ; 3000153c void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 300014a4: e92d4070 push {r4, r5, r6, lr} #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 300014a8: e5933000 ldr r3, [r3] void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 300014ac: e1a04000 mov r4, r0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 300014b0: e3530000 cmp r3, #0 ; 0x0 void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 300014b4: e1a05001 mov r5, r1 300014b8: e1a06002 mov r6, r2 /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->initialize)(); 300014bc: 11a0e00f movne lr, pc 300014c0: 1593f000 ldrne pc, [r3] /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 300014c4: eb001d83 bl 30008ad8 starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 300014c8: e59f3070 ldr r3, [pc, #112] ; 30001540 300014cc: e5933000 ldr r3, [r3] 300014d0: e3530000 cmp r3, #0 ; 0x0 300014d4: 0a000004 beq 300014ec starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 300014d8: e1a00004 mov r0, r4 <== NOT EXECUTED 300014dc: e1a01006 mov r1, r6 <== NOT EXECUTED 300014e0: e1a0e00f mov lr, pc <== NOT EXECUTED 300014e4: e593f000 ldr pc, [r3] <== NOT EXECUTED 300014e8: 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() ) 300014ec: e59f3050 ldr r3, [pc, #80] ; 30001544 300014f0: e5933000 ldr r3, [r3] 300014f4: e5d33028 ldrb r3, [r3, #40] 300014f8: e3530000 cmp r3, #0 ; 0x0 memset( starting_address, 0, length ); 300014fc: 11a00004 movne r0, r4 30001500: 13a01000 movne r1, #0 ; 0x0 30001504: 11a02005 movne r2, r5 30001508: 1b00269d blne 3000af84 void *starting_address, size_t size, uint32_t page_size ) { return _Heap_Initialize( the_heap, starting_address, size, page_size ); 3000150c: e1a01004 mov r1, r4 30001510: e59f0030 ldr r0, [pc, #48] ; 30001548 30001514: e1a02005 mov r2, r5 30001518: e3a03004 mov r3, #4 ; 0x4 3000151c: eb000f29 bl 300051c8 <_Heap_Initialize> &RTEMS_Malloc_Heap, starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) 30001520: e3500000 cmp r0, #0 ; 0x0 rtems_fatal_error_occurred( status ); 30001524: 0b000d19 bleq 30004990 rtems_print_buffer( (start + length) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif MSBUMP(space_available, length); 30001528: e59f201c ldr r2, [pc, #28] ; 3000154c 3000152c: e5923000 ldr r3, [r2] 30001530: e0853003 add r3, r5, r3 30001534: e5823000 str r3, [r2] } 30001538: e8bd8070 pop {r4, r5, r6, pc} 3000153c: 300150f8 .word 0x300150f8 30001540: 300150fc .word 0x300150fc 30001544: 3001549c .word 0x3001549c 30001548: 3001529c .word 0x3001529c 3000154c: 300152f4 .word 0x300152f4 300027f8 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 300027f8: 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 ) 300027fc: 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 ) { 30002800: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 30002804: 0a000047 beq 30002928 <== NOT EXECUTED return; if ( !print_handler ) 30002808: e59f3120 ldr r3, [pc, #288] ; 30002930 <== NOT EXECUTED 3000280c: e5938000 ldr r8, [r3] <== NOT EXECUTED 30002810: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 30002814: 0a000043 beq 30002928 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 30002818: 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 ); 3000281c: 159490f4 ldrne r9, [r4, #244] <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 30002820: 128460c4 addne r6, r4, #196 ; 0xc4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 30002824: 1a000006 bne 30002844 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 30002828: e59f2104 ldr r2, [pc, #260] ; 30002934 <== NOT EXECUTED 3000282c: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 30002830: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 30002834: 12844001 addne r4, r4, #1 ; 0x1 <== NOT EXECUTED 30002838: 11a06002 movne r6, r2 <== NOT EXECUTED 3000283c: 11a09004 movne r9, r4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 30002840: 0a000038 beq 30002928 <== 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); 30002844: e896000c ldm r6, {r2, r3} <== NOT EXECUTED 30002848: e2835010 add r5, r3, #16 ; 0x10 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 3000284c: e2427010 sub r7, r2, #16 ; 0x10 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 30002850: e1a00005 mov r0, r5 <== NOT EXECUTED 30002854: e1a01007 mov r1, r7 <== NOT EXECUTED 30002858: ebffffd8 bl 300027c0 <== NOT EXECUTED if ( high_water_mark ) 3000285c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 30002860: 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 ) 30002864: 01a0a000 moveq sl, r0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 30002868: 1060a003 rsbne sl, r0, r3 <== NOT EXECUTED else used = 0; if ( the_thread ) { 3000286c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30002870: e59f00c0 ldr r0, [pc, #192] ; 30002938 <== NOT EXECUTED 30002874: 0a00000c beq 300028ac <== NOT EXECUTED (*print_handler)( 30002878: e5944008 ldr r4, [r4, #8] <== NOT EXECUTED 3000287c: e5905000 ldr r5, [r0] <== NOT EXECUTED 30002880: e28d200b add r2, sp, #11 ; 0xb <== NOT EXECUTED 30002884: e1a00004 mov r0, r4 <== NOT EXECUTED 30002888: e3a01005 mov r1, #5 ; 0x5 <== NOT EXECUTED 3000288c: eb001315 bl 300074e8 <== NOT EXECUTED 30002890: e1a02004 mov r2, r4 <== NOT EXECUTED 30002894: e1a03000 mov r3, r0 <== NOT EXECUTED 30002898: e59f109c ldr r1, [pc, #156] ; 3000293c <== NOT EXECUTED 3000289c: e1a00005 mov r0, r5 <== NOT EXECUTED 300028a0: e1a0e00f mov lr, pc <== NOT EXECUTED 300028a4: e12fff18 bx r8 <== NOT EXECUTED 300028a8: ea000004 b 300028c0 <== 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 ); 300028ac: e5900000 ldr r0, [r0] <== NOT EXECUTED 300028b0: e59f1088 ldr r1, [pc, #136] ; 30002940 <== NOT EXECUTED 300028b4: e3e02000 mvn r2, #0 ; 0x0 <== NOT EXECUTED 300028b8: e1a0e00f mov lr, pc <== NOT EXECUTED 300028bc: e12fff18 bx r8 <== NOT EXECUTED } (*print_handler)( 300028c0: e5963000 ldr r3, [r6] <== NOT EXECUTED 300028c4: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED 300028c8: e59f5068 ldr r5, [pc, #104] ; 30002938 <== NOT EXECUTED 300028cc: e58d9000 str r9, [sp] <== NOT EXECUTED 300028d0: e58d7004 str r7, [sp, #4] <== NOT EXECUTED 300028d4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 300028d8: e0823003 add r3, r2, r3 <== NOT EXECUTED 300028dc: e59f404c ldr r4, [pc, #76] ; 30002930 <== NOT EXECUTED 300028e0: e5950000 ldr r0, [r5] <== NOT EXECUTED 300028e4: e59f1058 ldr r1, [pc, #88] ; 30002944 <== NOT EXECUTED 300028e8: e1a0e00f mov lr, pc <== NOT EXECUTED 300028ec: e594f000 ldr pc, [r4] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 300028f0: e59f3050 ldr r3, [pc, #80] ; 30002948 <== NOT EXECUTED 300028f4: e5933000 ldr r3, [r3] <== NOT EXECUTED 300028f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300028fc: 1a000004 bne 30002914 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 30002900: e5950000 ldr r0, [r5] <== NOT EXECUTED 30002904: e59f1040 ldr r1, [pc, #64] ; 3000294c <== NOT EXECUTED 30002908: e1a0e00f mov lr, pc <== NOT EXECUTED 3000290c: e594f000 ldr pc, [r4] <== NOT EXECUTED 30002910: ea000004 b 30002928 <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 30002914: e5950000 ldr r0, [r5] <== NOT EXECUTED 30002918: e1a0200a mov r2, sl <== NOT EXECUTED 3000291c: e59f102c ldr r1, [pc, #44] ; 30002950 <== NOT EXECUTED 30002920: e1a0e00f mov lr, pc <== NOT EXECUTED 30002924: e594f000 ldr pc, [r4] <== NOT EXECUTED } } 30002928: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3000292c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 30002930: 300420c0 .word 0x300420c0 30002934: 3005510c .word 0x3005510c 30002938: 300420bc .word 0x300420bc 3000293c: 3003c13f .word 0x3003c13f 30002940: 3003c14c .word 0x3003c14c 30002944: 3003c15a .word 0x3003c15a 30002948: 300420b8 .word 0x300420b8 3000294c: 3003c178 .word 0x3003c178 30002950: 3003c185 .word 0x3003c185 300027c0 : * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) 300027c0: 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; 300027c4: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 300027c8: e0802001 add r2, r0, r1 <== NOT EXECUTED if (*base != U32_PATTERN) 300027cc: e59f1020 ldr r1, [pc, #32] ; 300027f4 <== NOT EXECUTED 300027d0: ea000003 b 300027e4 <== NOT EXECUTED 300027d4: e5903000 ldr r3, [r0] <== NOT EXECUTED 300027d8: e1530001 cmp r3, r1 <== NOT EXECUTED 300027dc: 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++) 300027e0: e2800004 add r0, r0, #4 ; 0x4 <== NOT EXECUTED 300027e4: e1500002 cmp r0, r2 <== NOT EXECUTED 300027e8: 3afffff9 bcc 300027d4 <== NOT EXECUTED 300027ec: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 300027f0: e12fff1e bx lr <== NOT EXECUTED 300027f4: a5a5a5a5 .word 0xa5a5a5a5 300029d0 : */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 300029d0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 300029d4: e1a05000 mov r5, r0 <== NOT EXECUTED 300029d8: e1a04001 mov r4, r1 <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; printk( 300029dc: e59f0048 ldr r0, [pc, #72] ; 30002a2c <== NOT EXECUTED 300029e0: e1a01005 mov r1, r5 <== NOT EXECUTED 300029e4: e5952008 ldr r2, [r5, #8] <== NOT EXECUTED 300029e8: e595300c ldr r3, [r5, #12] <== NOT EXECUTED 300029ec: eb0009ac bl 300050a4 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif printk( 300029f0: e59530c4 ldr r3, [r5, #196] <== NOT EXECUTED 300029f4: e59510c8 ldr r1, [r5, #200] <== NOT EXECUTED 300029f8: e2432001 sub r2, r3, #1 ; 0x1 <== NOT EXECUTED */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 300029fc: e20440ff and r4, r4, #255 ; 0xff <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif printk( 30002a00: e0812002 add r2, r1, r2 <== NOT EXECUTED 30002a04: e59f0024 ldr r0, [pc, #36] ; 30002a30 <== NOT EXECUTED 30002a08: eb0009a5 bl 300050a4 <== NOT EXECUTED stack->area, stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { 30002a0c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED printk( 30002a10: 059510c8 ldreq r1, [r5, #200] <== NOT EXECUTED 30002a14: 059f0018 ldreq r0, [pc, #24] ; 30002a34 <== NOT EXECUTED 30002a18: 02811008 addeq r1, r1, #8 ; 0x8 <== NOT EXECUTED 30002a1c: 03a02010 moveq r2, #16 ; 0x10 <== NOT EXECUTED 30002a20: 0b00099f bleq 300050a4 <== NOT EXECUTED " Damaged pattern begins at 0x%08lx and is %d bytes long\n", (unsigned long) Stack_check_Get_pattern_area(stack), PATTERN_SIZE_BYTES); } rtems_fatal_error_occurred( 0x81 ); 30002a24: e3a00081 mov r0, #129 ; 0x81 <== NOT EXECUTED 30002a28: eb0014ea bl 30007dd8 <== NOT EXECUTED 30002a2c: 3003c1ec .word 0x3003c1ec 30002a30: 3003c22a .word 0x3003c22a 30002a34: 3003c258 .word 0x3003c258 30011ab4 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 30011ab4: 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 ) { 30011ab8: 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 ) { 30011abc: 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 ) { 30011ac0: e1a07000 mov r7, r0 30011ac4: e1a06002 mov r6, r2 30011ac8: e1a08001 mov r8, r1 30011acc: 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 ) { 30011ad0: 83a00001 movhi r0, #1 ; 0x1 30011ad4: 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 ) { 30011ad8: e5973048 ldr r3, [r7, #72] 30011adc: e3530000 cmp r3, #0 ; 0x0 *count = 0; 30011ae0: 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))) { 30011ae4: 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; 30011ae8: 158a3000 strne r3, [sl] 30011aec: 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 ) { 30011af0: 0a000005 beq 30011b0c <_CORE_message_queue_Broadcast+0x58> 30011af4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 30011af8: e594002c ldr r0, [r4, #44] 30011afc: eb001c4b bl 30018c30 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 30011b00: e5943028 ldr r3, [r4, #40] */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; 30011b04: e2855001 add r5, r5, #1 ; 0x1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 30011b08: e5836000 str r6, [r3] * 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))) { 30011b0c: e1a00007 mov r0, r7 30011b10: eb00092b bl 30013fc4 <_Thread_queue_Dequeue> 30011b14: e2504000 subs r4, r0, #0 ; 0x0 30011b18: e1a01008 mov r1, r8 30011b1c: e1a02006 mov r2, r6 30011b20: 1afffff4 bne 30011af8 <_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; 30011b24: e58a5000 str r5, [sl] 30011b28: e1a00004 mov r0, r4 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 30011b2c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 3001247c <_CORE_message_queue_Insert_message>: ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 3001247c: 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 ) { 30012480: e92d4030 push {r4, r5, lr} ISR_Level level; bool notify = false; the_message->priority = submit_type; 30012484: 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 ) { 30012488: e1a05001 mov r5, r1 3001248c: e1a04000 mov r4, r0 ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 30012490: 0a000012 beq 300124e0 <_CORE_message_queue_Insert_message+0x64> 30012494: e3720106 cmn r2, #-2147483647 ; 0x80000001 30012498: 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; 3001249c: 15901050 ldrne r1, [r0, #80] ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 300124a0: 1a000022 bne 30012530 <_CORE_message_queue_Insert_message+0xb4> case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); 300124a4: e10f0000 mrs r0, CPSR 300124a8: e38030c0 orr r3, r0, #192 ; 0xc0 300124ac: e129f003 msr CPSR_fc, r3 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 300124b0: e585c000 str ip, [r5] if ( the_message_queue->number_of_pending_messages++ == 0 ) 300124b4: e5942048 ldr r2, [r4, #72] old_last_node = the_chain->last; 300124b8: e5941058 ldr r1, [r4, #88] 300124bc: e2823001 add r3, r2, #1 ; 0x1 the_chain->last = the_node; 300124c0: e5845058 str r5, [r4, #88] 300124c4: e5843048 str r3, [r4, #72] 300124c8: e2722001 rsbs r2, r2, #1 ; 0x1 300124cc: 33a02000 movcc r2, #0 ; 0x0 old_last_node->next = the_node; the_node->previous = old_last_node; 300124d0: 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; 300124d4: e5815000 str r5, [r1] notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 300124d8: e129f000 msr CPSR_fc, r0 300124dc: ea000024 b 30012574 <_CORE_message_queue_Insert_message+0xf8> break; case CORE_MESSAGE_QUEUE_URGENT_REQUEST: _ISR_Disable( level ); 300124e0: e10fc000 mrs ip, CPSR 300124e4: e38c30c0 orr r3, ip, #192 ; 0xc0 300124e8: e129f003 msr CPSR_fc, r3 if ( the_message_queue->number_of_pending_messages++ == 0 ) 300124ec: e5901048 ldr r1, [r0, #72] ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 300124f0: e5900050 ldr r0, [r0, #80] 300124f4: e2812001 add r2, r1, #1 ; 0x1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 300124f8: e2843050 add r3, r4, #80 ; 0x50 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 300124fc: e5853004 str r3, [r5, #4] 30012500: e5842048 str r2, [r4, #72] before_node = after_node->next; after_node->next = the_node; 30012504: e5845050 str r5, [r4, #80] the_node->next = before_node; before_node->previous = the_node; 30012508: e5805004 str r5, [r0, #4] 3001250c: e2712001 rsbs r2, r1, #1 ; 0x1 30012510: 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; 30012514: e5850000 str r0, [r5] notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 30012518: e129f00c msr CPSR_fc, ip 3001251c: ea000014 b 30012574 <_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 ) { 30012520: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 30012524: e1530002 cmp r3, r2 <== NOT EXECUTED 30012528: ca000002 bgt 30012538 <_CORE_message_queue_Insert_message+0xbc> <== NOT EXECUTED the_node = the_node->next; 3001252c: 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 ) ) { 30012530: e151000c cmp r1, ip <== NOT EXECUTED 30012534: 1afffff9 bne 30012520 <_CORE_message_queue_Insert_message+0xa4> <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 30012538: e10fc000 mrs ip, CPSR <== NOT EXECUTED 3001253c: e38c30c0 orr r3, ip, #192 ; 0xc0 <== NOT EXECUTED 30012540: 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 ); 30012544: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 30012548: e5941048 ldr r1, [r4, #72] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 3001254c: e5930000 ldr r0, [r3] <== NOT EXECUTED 30012550: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED after_node->next = the_node; 30012554: e5835000 str r5, [r3] <== NOT EXECUTED 30012558: e5842048 str r2, [r4, #72] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 3001255c: e5853004 str r3, [r5, #4] <== NOT EXECUTED 30012560: e2712001 rsbs r2, r1, #1 ; 0x1 <== NOT EXECUTED 30012564: 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; 30012568: 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; 3001256c: e5850000 str r0, [r5] <== NOT EXECUTED notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 30012570: 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 ) 30012574: e3520000 cmp r2, #0 ; 0x0 30012578: 08bd8030 popeq {r4, r5, pc} 3001257c: e5943060 ldr r3, [r4, #96] 30012580: e3530000 cmp r3, #0 ; 0x0 30012584: 08bd8030 popeq {r4, r5, pc} (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 30012588: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 3001258c: e1a0e00f mov lr, pc <== NOT EXECUTED 30012590: e12fff13 bx r3 <== NOT EXECUTED 30012594: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000f920 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 3000f920: 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; 3000f924: e59fc128 ldr ip, [pc, #296] ; 3000fa54 <_CORE_message_queue_Seize+0x134> void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 3000f928: e1a05000 mov r5, r0 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; 3000f92c: e59cc000 ldr ip, [ip] void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 3000f930: 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; 3000f934: e3a03000 mov r3, #0 ; 0x0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 3000f938: e59da020 ldr sl, [sp, #32] 3000f93c: e1a07001 mov r7, r1 3000f940: 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; 3000f944: e58c3034 str r3, [ip, #52] void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 3000f948: 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 ); 3000f94c: e10f1000 mrs r1, CPSR 3000f950: e38130c0 orr r3, r1, #192 ; 0xc0 3000f954: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 3000f958: e5954050 ldr r4, [r5, #80] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 3000f95c: e2853054 add r3, r5, #84 ; 0x54 3000f960: e1540003 cmp r4, r3 3000f964: 0a000028 beq 3000fa0c <_CORE_message_queue_Seize+0xec> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 3000f968: e5942000 ldr r2, [r4] the_chain->first = new_first; 3000f96c: e1a03005 mov r3, r5 3000f970: e5a32050 str r2, [r3, #80]! the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { 3000f974: e3540000 cmp r4, #0 ; 0x0 new_first->previous = _Chain_Head(the_chain); 3000f978: e5823004 str r3, [r2, #4] 3000f97c: 0a000022 beq 3000fa0c <_CORE_message_queue_Seize+0xec> the_message_queue->number_of_pending_messages -= 1; 3000f980: e5953048 ldr r3, [r5, #72] 3000f984: e2433001 sub r3, r3, #1 ; 0x1 3000f988: e5853048 str r3, [r5, #72] _ISR_Enable( level ); 3000f98c: e129f001 msr CPSR_fc, r1 *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = the_message->priority; 3000f990: e59f30bc ldr r3, [pc, #188] ; 3000fa54 <_CORE_message_queue_Seize+0x134> 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; 3000f994: e594100c ldr r1, [r4, #12] _Thread_Executing->Wait.count = the_message->priority; 3000f998: e5932000 ldr r2, [r3] 3000f99c: e5943008 ldr r3, [r4, #8] 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; 3000f9a0: e5801000 str r1, [r0] _Thread_Executing->Wait.count = the_message->priority; _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size_p); 3000f9a4: e2846010 add r6, r4, #16 ; 0x10 if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = the_message->priority; 3000f9a8: e5823024 str r3, [r2, #36] const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 3000f9ac: e5902000 ldr r2, [r0] 3000f9b0: e1a01006 mov r1, r6 3000f9b4: e1a00008 mov r0, r8 3000f9b8: eb00120f bl 300141fc * * 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 ); 3000f9bc: e1a00005 mov r0, r5 3000f9c0: ebffec42 bl 3000aad0 <_Thread_queue_Dequeue> if ( !the_thread ) { 3000f9c4: e2501000 subs r1, r0, #0 ; 0x0 3000f9c8: 1a000003 bne 3000f9dc <_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 ); 3000f9cc: e2850068 add r0, r5, #104 ; 0x68 3000f9d0: 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 ); } 3000f9d4: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} 3000f9d8: eaffe5e7 b 3000917c <_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; 3000f9dc: e5913024 ldr r3, [r1, #36] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 3000f9e0: 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; 3000f9e4: e5843008 str r3, [r4, #8] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 3000f9e8: e584200c str r2, [r4, #12] <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 3000f9ec: e1a00006 mov r0, r6 <== NOT EXECUTED 3000f9f0: e591102c ldr r1, [r1, #44] <== NOT EXECUTED 3000f9f4: eb001200 bl 300141fc <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 3000f9f8: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED 3000f9fc: e1a00005 mov r0, r5 <== NOT EXECUTED 3000fa00: 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 ); } 3000fa04: 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( 3000fa08: ea000a9b b 3001247c <_CORE_message_queue_Insert_message> <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { 3000fa0c: e3560000 cmp r6, #0 ; 0x0 3000fa10: 1a000003 bne 3000fa24 <_CORE_message_queue_Seize+0x104> _ISR_Enable( level ); 3000fa14: e129f001 msr CPSR_fc, r1 executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 3000fa18: e3a03004 mov r3, #4 ; 0x4 3000fa1c: 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 ); } 3000fa20: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 3000fa24: e3a03001 mov r3, #1 ; 0x1 3000fa28: 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; 3000fa2c: 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; 3000fa30: e58c7020 str r7, [ip, #32] executing->Wait.return_argument_second.mutable_object = buffer; 3000fa34: 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; 3000fa38: 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 ); 3000fa3c: e129f001 msr CPSR_fc, r1 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 3000fa40: e59f2010 ldr r2, [pc, #16] ; 3000fa58 <_CORE_message_queue_Seize+0x138> 3000fa44: e1a00005 mov r0, r5 3000fa48: e1a0100a mov r1, sl } 3000fa4c: 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 ); 3000fa50: eaffec77 b 3000ac34 <_Thread_queue_Enqueue_with_handler> 3000fa54: 30023124 .word 0x30023124 3000fa58: 3000b008 .word 0x3000b008 3000fa5c <_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 ) { 3000fa5c: 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 ) { 3000fa60: e590c04c ldr ip, [r0, #76] CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 3000fa64: e1a05000 mov r5, r0 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 3000fa68: 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 ) { 3000fa6c: e1a06002 mov r6, r2 3000fa70: e1a08001 mov r8, r1 3000fa74: e1a0b003 mov fp, r3 3000fa78: e59d9028 ldr r9, [sp, #40] 3000fa7c: 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 ) { 3000fa80: 83a00001 movhi r0, #1 ; 0x1 3000fa84: 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 ) { 3000fa88: e5957048 ldr r7, [r5, #72] 3000fa8c: e3570000 cmp r7, #0 ; 0x0 3000fa90: 1a00000b bne 3000fac4 <_CORE_message_queue_Submit+0x68> the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 3000fa94: ebffec0d bl 3000aad0 <_Thread_queue_Dequeue> if ( the_thread ) { 3000fa98: e2504000 subs r4, r0, #0 ; 0x0 3000fa9c: 0a000008 beq 3000fac4 <_CORE_message_queue_Submit+0x68> 3000faa0: e1a01008 mov r1, r8 3000faa4: e594002c ldr r0, [r4, #44] 3000faa8: e1a02006 mov r2, r6 3000faac: eb0011d2 bl 300141fc _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 3000fab0: e5943028 ldr r3, [r4, #40] the_thread->Wait.count = submit_type; 3000fab4: e1a00007 mov r0, r7 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 3000fab8: e5836000 str r6, [r3] the_thread->Wait.count = submit_type; 3000fabc: e5849024 str r9, [r4, #36] 3000fac0: 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 < 3000fac4: e5952048 ldr r2, [r5, #72] 3000fac8: e5953044 ldr r3, [r5, #68] 3000facc: e1520003 cmp r2, r3 3000fad0: 2a00000f bcs 3000fb14 <_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 *) 3000fad4: e2850068 add r0, r5, #104 ; 0x68 3000fad8: ebffe5b2 bl 300091a8 <_Chain_Get> /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { 3000fadc: e2504000 subs r4, r0, #0 ; 0x0 3000fae0: 0a000025 beq 3000fb7c <_CORE_message_queue_Submit+0x120> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 3000fae4: e1a01008 mov r1, r8 3000fae8: e1a02006 mov r2, r6 3000faec: e2840010 add r0, r4, #16 ; 0x10 3000faf0: eb0011c1 bl 300141fc size ); the_message->Contents.size = size; the_message->priority = submit_type; _CORE_message_queue_Insert_message( 3000faf4: e1a00005 mov r0, r5 _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 3000faf8: e584600c str r6, [r4, #12] the_message->priority = submit_type; 3000fafc: e5849008 str r9, [r4, #8] _CORE_message_queue_Insert_message( 3000fb00: e1a01004 mov r1, r4 3000fb04: e1a02009 mov r2, r9 3000fb08: eb000a5b bl 3001247c <_CORE_message_queue_Insert_message> 3000fb0c: e3a00000 mov r0, #0 ; 0x0 3000fb10: 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 ) { 3000fb14: e35a0000 cmp sl, #0 ; 0x0 3000fb18: 03a00002 moveq r0, #2 ; 0x2 3000fb1c: 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() ) { 3000fb20: e59f305c ldr r3, [pc, #92] ; 3000fb84 <_CORE_message_queue_Submit+0x128> <== NOT EXECUTED 3000fb24: e5933000 ldr r3, [r3] <== NOT EXECUTED 3000fb28: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000fb2c: 1a000012 bne 3000fb7c <_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; 3000fb30: e59f3050 ldr r3, [pc, #80] ; 3000fb88 <_CORE_message_queue_Submit+0x12c> <== NOT EXECUTED 3000fb34: e5932000 ldr r2, [r3] <== NOT EXECUTED _ISR_Disable( level ); 3000fb38: e10f1000 mrs r1, CPSR <== NOT EXECUTED 3000fb3c: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 3000fb40: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 3000fb44: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3000fb48: 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; 3000fb4c: 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; 3000fb50: e582b020 str fp, [r2, #32] <== NOT EXECUTED executing->Wait.return_argument_second.immutable_object = buffer; 3000fb54: e582802c str r8, [r2, #44] <== NOT EXECUTED executing->Wait.option = (uint32_t) size; 3000fb58: 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; 3000fb5c: 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 ); 3000fb60: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 3000fb64: e59f2020 ldr r2, [pc, #32] ; 3000fb8c <_CORE_message_queue_Submit+0x130> <== NOT EXECUTED 3000fb68: e1a00005 mov r0, r5 <== NOT EXECUTED 3000fb6c: e59d1030 ldr r1, [sp, #48] <== NOT EXECUTED 3000fb70: ebffec2f bl 3000ac34 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 3000fb74: e3a00007 mov r0, #7 ; 0x7 <== NOT EXECUTED 3000fb78: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; 3000fb7c: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED } 3000fb80: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 3000fb84: 30023100 .word 0x30023100 3000fb88: 30023124 .word 0x30023124 3000fb8c: 3000b008 .word 0x3000b008 30009494 <_CORE_mutex_Seize_interrupt_trylock>: Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 30009494: e59f3130 ldr r3, [pc, #304] ; 300095cc <_CORE_mutex_Seize_interrupt_trylock+0x138> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 30009498: e3a02000 mov r2, #0 ; 0x0 Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 3000949c: e593c000 ldr ip, [r3] CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 300094a0: e5911000 ldr r1, [r1] /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 300094a4: e58c2034 str r2, [ip, #52] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 300094a8: e5903050 ldr r3, [r0, #80] #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 300094ac: e52de004 push {lr} ; (str lr, [sp, #-4]!) 300094b0: e1530002 cmp r3, r2 300094b4: 0a00002f beq 30009578 <_CORE_mutex_Seize_interrupt_trylock+0xe4> the_mutex->lock = CORE_MUTEX_LOCKED; 300094b8: e5802050 str r2, [r0, #80] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 300094bc: e59c3008 ldr r3, [ip, #8] */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 300094c0: 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; 300094c4: e5803060 str r3, [r0, #96] the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 300094c8: e3520002 cmp r2, #2 ; 0x2 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; the_mutex->nest_count = 1; 300094cc: e3a03001 mov r3, #1 ; 0x1 300094d0: 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; 300094d4: 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 ) || 300094d8: 0a000001 beq 300094e4 <_CORE_mutex_Seize_interrupt_trylock+0x50> 300094dc: e3520003 cmp r2, #3 ; 0x3 <== NOT EXECUTED 300094e0: 1a000002 bne 300094f0 <_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++; 300094e4: e59c301c ldr r3, [ip, #28] 300094e8: e2833001 add r3, r3, #1 ; 0x1 300094ec: e58c301c str r3, [ip, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 300094f0: e5903048 ldr r3, [r0, #72] 300094f4: e3530003 cmp r3, #3 ; 0x3 300094f8: 0a000001 beq 30009504 <_CORE_mutex_Seize_interrupt_trylock+0x70> _ISR_Enable( level ); 300094fc: e129f001 msr CPSR_fc, r1 30009500: ea00002d b 300095bc <_CORE_mutex_Seize_interrupt_trylock+0x128> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 30009504: e590204c ldr r2, [r0, #76] <== NOT EXECUTED current = executing->current_priority; 30009508: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED if ( current == ceiling ) { 3000950c: e1530002 cmp r3, r2 <== NOT EXECUTED 30009510: 1a000001 bne 3000951c <_CORE_mutex_Seize_interrupt_trylock+0x88> <== NOT EXECUTED _ISR_Enable( level ); 30009514: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30009518: ea000027 b 300095bc <_CORE_mutex_Seize_interrupt_trylock+0x128> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 3000951c: 9a00000a bls 3000954c <_CORE_mutex_Seize_interrupt_trylock+0xb8> <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 30009520: e59f20a8 ldr r2, [pc, #168] ; 300095d0 <_CORE_mutex_Seize_interrupt_trylock+0x13c> <== NOT EXECUTED 30009524: e5923000 ldr r3, [r2] <== NOT EXECUTED 30009528: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 3000952c: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 30009530: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_Change_priority( 30009534: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30009538: e590104c ldr r1, [r0, #76] <== NOT EXECUTED 3000953c: e590005c ldr r0, [r0, #92] <== NOT EXECUTED 30009540: ebfff1a6 bl 30005be0 <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 30009544: ebfff30d bl 30006180 <_Thread_Enable_dispatch> <== NOT EXECUTED 30009548: ea00001b b 300095bc <_CORE_mutex_Seize_interrupt_trylock+0x128> <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 3000954c: e3a03006 mov r3, #6 ; 0x6 <== NOT EXECUTED 30009550: e58c3034 str r3, [ip, #52] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 30009554: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30009558: 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; 3000955c: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30009560: e5803050 str r3, [r0, #80] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 30009564: e59c301c ldr r3, [ip, #28] <== NOT EXECUTED 30009568: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3000956c: e58c301c str r3, [ip, #28] <== NOT EXECUTED _ISR_Enable( level ); 30009570: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30009574: ea000010 b 300095bc <_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 ) ) { 30009578: e590205c ldr r2, [r0, #92] 3000957c: e152000c cmp r2, ip 30009580: 1a00000f bne 300095c4 <_CORE_mutex_Seize_interrupt_trylock+0x130> switch ( the_mutex->Attributes.lock_nesting_behavior ) { 30009584: e5903040 ldr r3, [r0, #64] 30009588: e3530000 cmp r3, #0 ; 0x0 3000958c: 0a000002 beq 3000959c <_CORE_mutex_Seize_interrupt_trylock+0x108> 30009590: e3530001 cmp r3, #1 ; 0x1 30009594: 1a00000a bne 300095c4 <_CORE_mutex_Seize_interrupt_trylock+0x130> 30009598: ea000004 b 300095b0 <_CORE_mutex_Seize_interrupt_trylock+0x11c> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 3000959c: e5903054 ldr r3, [r0, #84] 300095a0: e2833001 add r3, r3, #1 ; 0x1 300095a4: e5803054 str r3, [r0, #84] _ISR_Enable( level ); 300095a8: e129f001 msr CPSR_fc, r1 300095ac: ea000002 b 300095bc <_CORE_mutex_Seize_interrupt_trylock+0x128> return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 300095b0: e3a03002 mov r3, #2 ; 0x2 300095b4: e5823034 str r3, [r2, #52] _ISR_Enable( level ); 300095b8: e129f001 msr CPSR_fc, r1 300095bc: e3a00000 mov r0, #0 ; 0x0 300095c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) 300095c4: e3a00001 mov r0, #1 ; 0x1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 300095c8: e49df004 pop {pc} ; (ldr pc, [sp], #4) 300095cc: 300154c4 .word 0x300154c4 300095d0: 3001540c .word 0x3001540c 30004ec4 <_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 ) { 30004ec4: e5d03044 ldrb r3, [r0, #68] CORE_mutex_Status _CORE_mutex_Surrender( CORE_mutex_Control *the_mutex, Objects_Id id, CORE_mutex_API_mp_support_callout api_mutex_mp_support ) { 30004ec8: e92d4010 push {r4, lr} * 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 ) { 30004ecc: 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 ) { 30004ed0: 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; 30004ed4: 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 ) { 30004ed8: 0a000004 beq 30004ef0 <_CORE_mutex_Surrender+0x2c> if ( !_Thread_Is_executing( holder ) ) 30004edc: e59f3130 ldr r3, [pc, #304] ; 30005014 <_CORE_mutex_Surrender+0x150> 30004ee0: e5933000 ldr r3, [r3] 30004ee4: e1500003 cmp r0, r3 30004ee8: 13a00003 movne r0, #3 ; 0x3 30004eec: 18bd8010 popne {r4, pc} return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 30004ef0: e5943054 ldr r3, [r4, #84] 30004ef4: e3530000 cmp r3, #0 ; 0x0 30004ef8: 0a000043 beq 3000500c <_CORE_mutex_Surrender+0x148> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 30004efc: e2433001 sub r3, r3, #1 ; 0x1 if ( the_mutex->nest_count != 0 ) { 30004f00: 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--; 30004f04: e5843054 str r3, [r4, #84] if ( the_mutex->nest_count != 0 ) { 30004f08: 0a000005 beq 30004f24 <_CORE_mutex_Surrender+0x60> switch ( the_mutex->Attributes.lock_nesting_behavior ) { 30004f0c: e5943040 ldr r3, [r4, #64] 30004f10: e3530000 cmp r3, #0 ; 0x0 30004f14: 0a00003c beq 3000500c <_CORE_mutex_Surrender+0x148> 30004f18: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 30004f1c: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 30004f20: 08bd8010 popeq {r4, pc} <== NOT EXECUTED 30004f24: 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 ) || 30004f28: e3530002 cmp r3, #2 ; 0x2 30004f2c: 0a000001 beq 30004f38 <_CORE_mutex_Surrender+0x74> 30004f30: e3530003 cmp r3, #3 ; 0x3 30004f34: 1a000002 bne 30004f44 <_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--; 30004f38: e590301c ldr r3, [r0, #28] 30004f3c: e2433001 sub r3, r3, #1 ; 0x1 30004f40: e580301c str r3, [r0, #28] 30004f44: e5942048 ldr r2, [r4, #72] } the_mutex->holder = NULL; 30004f48: 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 ) || 30004f4c: 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; 30004f50: e5843060 str r3, [r4, #96] } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 30004f54: 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 ) || 30004f58: 0a000001 beq 30004f64 <_CORE_mutex_Surrender+0xa0> 30004f5c: e3520003 cmp r2, #3 ; 0x3 30004f60: 1a000007 bne 30004f84 <_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 && 30004f64: e590301c ldr r3, [r0, #28] 30004f68: e3530000 cmp r3, #0 ; 0x0 30004f6c: 1a000004 bne 30004f84 <_CORE_mutex_Surrender+0xc0> 30004f70: e5901018 ldr r1, [r0, #24] 30004f74: e5903014 ldr r3, [r0, #20] 30004f78: e1510003 cmp r1, r3 holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 30004f7c: 13a02001 movne r2, #1 ; 0x1 30004f80: 1b000316 blne 30005be0 <_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 ) ) ) { 30004f84: e1a00004 mov r0, r4 30004f88: eb00055d bl 30006504 <_Thread_queue_Dequeue> 30004f8c: e2501000 subs r1, r0, #0 ; 0x0 } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 30004f90: 03a03001 moveq r3, #1 ; 0x1 30004f94: 05843050 streq r3, [r4, #80] 30004f98: 01a00001 moveq r0, r1 /* * 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 ) ) ) { 30004f9c: 08bd8010 popeq {r4, pc} } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 30004fa0: e5913008 ldr r3, [r1, #8] the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 30004fa4: e5942048 ldr r2, [r4, #72] } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 30004fa8: e5843060 str r3, [r4, #96] the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 30004fac: e3520002 cmp r2, #2 ; 0x2 #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 30004fb0: e3a03001 mov r3, #1 ; 0x1 30004fb4: e5843054 str r3, [r4, #84] } else #endif { the_mutex->holder = the_thread; 30004fb8: e584105c str r1, [r4, #92] the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 30004fbc: 0a000002 beq 30004fcc <_CORE_mutex_Surrender+0x108> 30004fc0: e3520003 cmp r2, #3 ; 0x3 30004fc4: 1a000010 bne 3000500c <_CORE_mutex_Surrender+0x148> 30004fc8: ea000004 b 30004fe0 <_CORE_mutex_Surrender+0x11c> <== 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++; 30004fcc: e591301c ldr r3, [r1, #28] 30004fd0: e3a00000 mov r0, #0 ; 0x0 30004fd4: e2833001 add r3, r3, #1 ; 0x1 30004fd8: e581301c str r3, [r1, #28] 30004fdc: e8bd8010 pop {r4, pc} 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++; 30004fe0: e591301c ldr r3, [r1, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 30004fe4: e5912014 ldr r2, [r1, #20] <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: #ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; 30004fe8: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30004fec: e581301c str r3, [r1, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 30004ff0: e594104c ldr r1, [r4, #76] <== NOT EXECUTED 30004ff4: e1510002 cmp r1, r2 <== NOT EXECUTED 30004ff8: 2a000003 bcs 3000500c <_CORE_mutex_Surrender+0x148> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 30004ffc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30005000: eb0002f6 bl 30005be0 <_Thread_Change_priority> <== NOT EXECUTED 30005004: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30005008: e8bd8010 pop {r4, pc} <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 3000500c: e3a00000 mov r0, #0 ; 0x0 return CORE_MUTEX_STATUS_SUCCESSFUL; } 30005010: e8bd8010 pop {r4, pc} 30005014: 300154c4 .word 0x300154c4 3001e7f8 <_Chain_Insert>: Chain_Node *node ) { ISR_Level level; _ISR_Disable( level ); 3001e7f8: e10f2000 mrs r2, CPSR <== NOT EXECUTED 3001e7fc: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 3001e800: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 3001e804: e5903000 ldr r3, [r0] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 3001e808: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 3001e80c: e5801000 str r1, [r0] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 3001e810: 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; 3001e814: e5813000 str r3, [r1] <== NOT EXECUTED _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); 3001e818: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } 3001e81c: e12fff1e bx lr <== NOT EXECUTED 30009390 <_Debug_Is_enabled>: */ bool _Debug_Is_enabled( rtems_debug_control level ) { 30009390: e59f3010 ldr r3, [pc, #16] ; 300093a8 <_Debug_Is_enabled+0x18> <== NOT EXECUTED 30009394: e5933000 ldr r3, [r3] <== NOT EXECUTED 30009398: e1100003 tst r0, r3 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; } 3000939c: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED 300093a0: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 300093a4: e12fff1e bx lr <== NOT EXECUTED 300093a8: 300154c8 .word 0x300154c8 30003e60 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 30003e60: e92d40f0 push {r4, r5, r6, r7, lr} 30003e64: 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 ]; 30003e68: e5906104 ldr r6, [r0, #260] option_set = (rtems_option) the_thread->Wait.option; 30003e6c: e5907030 ldr r7, [r0, #48] _ISR_Disable( level ); 30003e70: e10f5000 mrs r5, CPSR 30003e74: e38530c0 orr r3, r5, #192 ; 0xc0 30003e78: e129f003 msr CPSR_fc, r3 pending_events = api->pending_events; 30003e7c: e596c000 ldr ip, [r6] event_condition = (rtems_event_set) the_thread->Wait.count; 30003e80: 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 ) ) { 30003e84: e012000c ands r0, r2, ip 30003e88: 1a000001 bne 30003e94 <_Event_Surrender+0x34> _ISR_Enable( level ); 30003e8c: e129f005 msr CPSR_fc, r5 30003e90: 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() && 30003e94: e59f30f0 ldr r3, [pc, #240] ; 30003f8c <_Event_Surrender+0x12c> 30003e98: e5933000 ldr r3, [r3] 30003e9c: e3530000 cmp r3, #0 ; 0x0 30003ea0: 0a000019 beq 30003f0c <_Event_Surrender+0xac> 30003ea4: e59f30e4 ldr r3, [pc, #228] ; 30003f90 <_Event_Surrender+0x130> 30003ea8: e5933000 ldr r3, [r3] 30003eac: e1540003 cmp r4, r3 30003eb0: 1a000015 bne 30003f0c <_Event_Surrender+0xac> 30003eb4: e59f10d8 ldr r1, [pc, #216] ; 30003f94 <_Event_Surrender+0x134> 30003eb8: e5913000 ldr r3, [r1] 30003ebc: e3530001 cmp r3, #1 ; 0x1 30003ec0: 0a000002 beq 30003ed0 <_Event_Surrender+0x70> 30003ec4: e5913000 ldr r3, [r1] 30003ec8: e3530002 cmp r3, #2 ; 0x2 30003ecc: 1a00000e bne 30003f0c <_Event_Surrender+0xac> _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) ) { 30003ed0: e1500002 cmp r0, r2 30003ed4: 0a000001 beq 30003ee0 <_Event_Surrender+0x80> 30003ed8: e3170002 tst r7, #2 ; 0x2 <== NOT EXECUTED 30003edc: 0a000008 beq 30003f04 <_Event_Surrender+0xa4> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 30003ee0: e1cc3000 bic r3, ip, r0 30003ee4: e5863000 str r3, [r6] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 30003ee8: e59f30a4 ldr r3, [pc, #164] ; 30003f94 <_Event_Surrender+0x134> ((_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; 30003eec: e5941028 ldr r1, [r4, #40] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 30003ef0: e3a02003 mov r2, #3 ; 0x3 30003ef4: e5832000 str r2, [r3] _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; 30003ef8: e3a03000 mov r3, #0 ; 0x0 30003efc: e5843024 str r3, [r4, #36] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 30003f00: e5810000 str r0, [r1] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; } _ISR_Enable( level ); 30003f04: e129f005 msr CPSR_fc, r5 30003f08: e8bd80f0 pop {r4, r5, r6, r7, pc} } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 30003f0c: e5943010 ldr r3, [r4, #16] 30003f10: e3130c01 tst r3, #256 ; 0x100 30003f14: 0a00001a beq 30003f84 <_Event_Surrender+0x124> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 30003f18: e1500002 cmp r0, r2 30003f1c: 0a000001 beq 30003f28 <_Event_Surrender+0xc8> 30003f20: e3170002 tst r7, #2 ; 0x2 30003f24: 0a000016 beq 30003f84 <_Event_Surrender+0x124> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 30003f28: e1cc3000 bic r3, ip, r0 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 30003f2c: 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 ); 30003f30: e5863000 str r3, [r6] the_thread->Wait.count = 0; 30003f34: e3a03000 mov r3, #0 ; 0x0 30003f38: e5843024 str r3, [r4, #36] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 30003f3c: e5820000 str r0, [r2] _ISR_Flash( level ); 30003f40: e10f3000 mrs r3, CPSR 30003f44: e129f005 msr CPSR_fc, r5 30003f48: e129f003 msr CPSR_fc, r3 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 30003f4c: e5943050 ldr r3, [r4, #80] 30003f50: e3530002 cmp r3, #2 ; 0x2 30003f54: 0a000001 beq 30003f60 <_Event_Surrender+0x100> _ISR_Enable( level ); 30003f58: e129f005 msr CPSR_fc, r5 30003f5c: ea000004 b 30003f74 <_Event_Surrender+0x114> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 30003f60: e3a03003 mov r3, #3 ; 0x3 30003f64: e5843050 str r3, [r4, #80] _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 30003f68: e129f005 msr CPSR_fc, r5 (void) _Watchdog_Remove( &the_thread->Timer ); 30003f6c: e2840048 add r0, r4, #72 ; 0x48 30003f70: eb000d1b bl 300073e4 <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 30003f74: e59f101c ldr r1, [pc, #28] ; 30003f98 <_Event_Surrender+0x138> 30003f78: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } 30003f7c: e8bd40f0 pop {r4, r5, r6, r7, lr} 30003f80: ea00077e b 30005d80 <_Thread_Clear_state> _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 30003f84: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 30003f88: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30003f8c: 300154a0 .word 0x300154a0 30003f90: 300154c4 .word 0x300154c4 30003f94: 30015664 .word 0x30015664 30003f98: 1003fff8 .word 0x1003fff8 30003f9c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 30003f9c: e52de004 push {lr} ; (str lr, [sp, #-4]!) 30003fa0: e24dd004 sub sp, sp, #4 ; 0x4 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 30003fa4: e1a0100d mov r1, sp 30003fa8: eb00087d bl 300061a4 <_Thread_Get> switch ( location ) { 30003fac: e59d2000 ldr r2, [sp] 30003fb0: e3520000 cmp r2, #0 ; 0x0 30003fb4: 1a00001e bne 30004034 <_Event_Timeout+0x98> * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 30003fb8: e10f1000 mrs r1, CPSR 30003fbc: e38130c0 orr r3, r1, #192 ; 0xc0 30003fc0: e129f003 msr CPSR_fc, r3 if ( !the_thread->Wait.count ) { /* verify thread is waiting */ 30003fc4: e5903024 ldr r3, [r0, #36] 30003fc8: e3530000 cmp r3, #0 ; 0x0 30003fcc: 1a000005 bne 30003fe8 <_Event_Timeout+0x4c> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 30003fd0: e59f2064 ldr r2, [pc, #100] ; 3000403c <_Event_Timeout+0xa0> <== NOT EXECUTED 30003fd4: e5923000 ldr r3, [r2] <== NOT EXECUTED 30003fd8: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30003fdc: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Unnest_dispatch(); _ISR_Enable( level ); 30003fe0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30003fe4: ea000012 b 30004034 <_Event_Timeout+0x98> <== NOT EXECUTED return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 30003fe8: e59f3050 ldr r3, [pc, #80] ; 30004040 <_Event_Timeout+0xa4> _Thread_Unnest_dispatch(); _ISR_Enable( level ); return; } the_thread->Wait.count = 0; 30003fec: e5802024 str r2, [r0, #36] if ( _Thread_Is_executing( the_thread ) ) { 30003ff0: e5933000 ldr r3, [r3] 30003ff4: e1500003 cmp r0, r3 30003ff8: 1a000004 bne 30004010 <_Event_Timeout+0x74> Thread_blocking_operation_States sync = _Event_Sync_state; 30003ffc: e59f2040 ldr r2, [pc, #64] ; 30004044 <_Event_Timeout+0xa8> 30004000: e5923000 ldr r3, [r2] if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || 30004004: e3530001 cmp r3, #1 ; 0x1 (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 30004008: 93a03002 movls r3, #2 ; 0x2 3000400c: 95823000 strls r3, [r2] } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 30004010: e3a03006 mov r3, #6 ; 0x6 30004014: e5803034 str r3, [r0, #52] _ISR_Enable( level ); 30004018: e129f001 msr CPSR_fc, r1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 3000401c: e59f1024 ldr r1, [pc, #36] ; 30004048 <_Event_Timeout+0xac> 30004020: eb000756 bl 30005d80 <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 30004024: e59f2010 ldr r2, [pc, #16] ; 3000403c <_Event_Timeout+0xa0> 30004028: e5923000 ldr r3, [r2] 3000402c: e2433001 sub r3, r3, #1 ; 0x1 30004030: e5823000 str r3, [r2] case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 30004034: e28dd004 add sp, sp, #4 ; 0x4 30004038: e8bd8000 pop {pc} 3000403c: 3001540c .word 0x3001540c 30004040: 300154c4 .word 0x300154c4 30004044: 30015664 .word 0x30015664 30004048: 1003fff8 .word 0x1003fff8 30009640 <_Heap_Allocate>: void *_Heap_Allocate( Heap_Control *the_heap, size_t size ) { 30009640: e92d4070 push {r4, r5, r6, lr} 30009644: 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 = 30009648: e5942014 ldr r2, [r4, #20] 3000964c: e1a00001 mov r0, r1 30009650: e5941010 ldr r1, [r4, #16] 30009654: ebffef25 bl 300052f0 <_Heap_Calc_block_size> _Heap_Calc_block_size(size, the_heap->page_size, the_heap->min_block_size); if(the_size == 0) 30009658: e3500000 cmp r0, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 3000965c: 15945008 ldrne r5, [r4, #8] 30009660: 13a06000 movne r6, #0 ; 0x0 30009664: 1a000012 bne 300096b4 <_Heap_Allocate+0x74> 30009668: 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) { 3000966c: e5953004 ldr r3, [r5, #4] 30009670: e1530000 cmp r3, r0 30009674: 3a00000c bcc 300096ac <_Heap_Allocate+0x6c> (void)_Heap_Block_allocate(the_heap, the_block, the_size ); 30009678: e1a02000 mov r2, r0 3000967c: e1a01005 mov r1, r5 30009680: e1a00004 mov r0, r4 30009684: ebffef29 bl 30005330 <_Heap_Block_allocate> ptr = _Heap_User_area(the_block); stats->allocs += 1; stats->searches += search_count + 1; 30009688: e594304c ldr r3, [r4, #76] 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; 3000968c: e5942048 ldr r2, [r4, #72] stats->searches += search_count + 1; 30009690: 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; 30009694: e2822001 add r2, r2, #1 ; 0x1 stats->searches += search_count + 1; 30009698: 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; 3000969c: e5842048 str r2, [r4, #72] stats->searches += search_count + 1; 300096a0: e584304c str r3, [r4, #76] 300096a4: e2850008 add r0, r5, #8 ; 0x8 300096a8: ea000004 b 300096c0 <_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) 300096ac: e5955008 ldr r5, [r5, #8] 300096b0: 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; 300096b4: e1550004 cmp r5, r4 300096b8: 1affffeb bne 3000966c <_Heap_Allocate+0x2c> 300096bc: e3a00000 mov r0, #0 ; 0x0 _HAssert(_Heap_Is_aligned_ptr(ptr, the_heap->page_size)); break; } } if(stats->max_search < search_count) 300096c0: e5943044 ldr r3, [r4, #68] 300096c4: e1530006 cmp r3, r6 stats->max_search = search_count; 300096c8: 35846044 strcc r6, [r4, #68] return ptr; } 300096cc: e8bd8070 pop {r4, r5, r6, pc} 30027b90 <_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; 30027b90: e3a03000 mov r3, #0 ; 0x0 Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 30027b94: e92d4030 push {r4, r5, lr} 30027b98: 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; 30027b9c: 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; 30027ba0: 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; 30027ba4: e5813000 str r3, [r1] the_info->Free.total = 0; 30027ba8: e5813008 str r3, [r1, #8] the_info->Free.largest = 0; 30027bac: e5813004 str r3, [r1, #4] the_info->Used.number = 0; 30027bb0: e581300c str r3, [r1, #12] the_info->Used.total = 0; 30027bb4: 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; 30027bb8: e5902020 ldr r2, [r0, #32] 30027bbc: ea00001d b 30027c38 <_Heap_Get_information+0xa8> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 30027bc0: e5923004 ldr r3, [r2, #4] 30027bc4: 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 ); 30027bc8: 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) ) { 30027bcc: e5943004 ldr r3, [r4, #4] 30027bd0: e3130001 tst r3, #1 ; 0x1 30027bd4: 0a000009 beq 30027c00 <_Heap_Get_information+0x70> the_info->Used.number++; 30027bd8: e59c300c ldr r3, [ip, #12] the_info->Used.total += the_size; 30027bdc: e59c2014 ldr r2, [ip, #20] if ( the_info->Used.largest < the_size ) 30027be0: e59c1010 ldr r1, [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++; 30027be4: e2833001 add r3, r3, #1 ; 0x1 the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) 30027be8: e1510000 cmp r1, 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; 30027bec: e0822000 add r2, 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) ) { the_info->Used.number++; 30027bf0: e58c300c str r3, [ip, #12] the_info->Used.total += the_size; 30027bf4: e58c2014 str r2, [ip, #20] if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; 30027bf8: 358c0010 strcc r0, [ip, #16] 30027bfc: ea00000c b 30027c34 <_Heap_Get_information+0xa4> } else { the_info->Free.number++; 30027c00: e59c3000 ldr r3, [ip] the_info->Free.total += the_size; 30027c04: e99c0006 ldmib ip, {r1, r2} 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++; 30027c08: e2833001 add r3, r3, #1 ; 0x1 the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) 30027c0c: e1510000 cmp r1, 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; 30027c10: e0822000 add r2, r2, r0 if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; 30027c14: 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++; 30027c18: e58c3000 str r3, [ip] the_info->Free.total += the_size; 30027c1c: e58c2008 str r2, [ip, #8] if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; if ( the_size != next_block->prev_size ) 30027c20: e5943000 ldr r3, [r4] 30027c24: e1500003 cmp r0, r3 30027c28: 0a000001 beq 30027c34 <_Heap_Get_information+0xa4> 30027c2c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30027c30: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30027c34: 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 ) { 30027c38: e1520005 cmp r2, r5 30027c3c: 1affffdf bne 30027bc0 <_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; 30027c40: e59c3014 ldr r3, [ip, #20] 30027c44: e3a00000 mov r0, #0 ; 0x0 30027c48: e2833008 add r3, r3, #8 ; 0x8 30027c4c: e58c3014 str r3, [ip, #20] return HEAP_GET_INFORMATION_SUCCESSFUL; } 30027c50: e8bd8030 pop {r4, r5, pc} 30013200 <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013200: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30013204: e1a04001 mov r4, r1 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; 30013208: e5901014 ldr r1, [r0, #20] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 3001320c: 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; 30013210: e58d1004 str r1, [sp, #4] uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; *avail_mem_size = 0; 30013214: e59d1030 ldr r1, [sp, #48] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013218: 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; 3001321c: 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; 30013220: e590c010 ldr ip, [r0, #16] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013224: e1a05000 mov r5, r0 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; 30013228: e5893000 str r3, [r9] *avail_mem_size = 0; 3001322c: e5813000 str r3, [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); 30013230: e5951010 ldr r1, [r5, #16] 30013234: e1a00004 mov r0, r4 void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013238: 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; 3001323c: e58dc008 str ip, [sp, #8] 30013240: ebfff8b5 bl 3001151c <__umodsi3> 30013244: 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 ); 30013248: e5951020 ldr r1, [r5, #32] 3001324c: e5952024 ldr r2, [r5, #36] /* 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); 30013250: 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)) 30013254: e1570001 cmp r7, r1 30013258: 33a03000 movcc r3, #0 ; 0x0 3001325c: 23a03001 movcs r3, #1 ; 0x1 30013260: e1570002 cmp r7, r2 30013264: 83a03000 movhi r3, #0 ; 0x0 30013268: e3530000 cmp r3, #0 ; 0x0 3001326c: 0a000073 beq 30013440 <_Heap_Resize_block+0x240> return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 30013270: e597c004 ldr ip, [r7, #4] */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 30013274: 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 ); 30013278: e0876003 add r6, r7, r3 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 3001327c: 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) || 30013280: e1560001 cmp r6, r1 30013284: 33a03000 movcc r3, #0 ; 0x0 30013288: 23a03001 movcs r3, #1 ; 0x1 3001328c: e1560002 cmp r6, r2 30013290: 83a03000 movhi r3, #0 ; 0x0 30013294: e3530000 cmp r3, #0 ; 0x0 30013298: 0a000068 beq 30013440 <_Heap_Resize_block+0x240> */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 3001329c: e5963004 ldr r3, [r6, #4] 300132a0: e3130001 tst r3, #1 ; 0x1 300132a4: 0a000065 beq 30013440 <_Heap_Resize_block+0x240> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 300132a8: 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) || 300132ac: 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 ); 300132b0: e086300a add r3, r6, sl 300132b4: 15933004 ldrne r3, [r3, #4] 300132b8: 03a02001 moveq r2, #1 ; 0x1 300132bc: 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) 300132c0: e0643006 rsb r3, r4, r6 300132c4: e2830004 add r0, r3, #4 ; 0x4 + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 300132c8: 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; 300132cc: 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) || 300132d0: 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; 300132d4: 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) { 300132d8: 9a000019 bls 30013344 <_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 */ 300132dc: e35b0000 cmp fp, #0 ; 0x0 300132e0: 1a000058 bne 30013448 <_Heap_Resize_block+0x248> return HEAP_RESIZE_UNSATISFIED; else { uint32_t add_block_size = size - old_user_size; 300132e4: e0604008 rsb r4, r0, r8 uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 300132e8: e1a00004 mov r0, r4 300132ec: e59d1008 ldr r1, [sp, #8] 300132f0: ebfff889 bl 3001151c <__umodsi3> *value = r ? v - r + a : v; 300132f4: e3500000 cmp r0, #0 ; 0x0 300132f8: 159dc008 ldrne ip, [sp, #8] 300132fc: e59d2004 ldr r2, [sp, #4] 30013300: 1084300c addne r3, r4, ip 30013304: 10604003 rsbne r4, r0, r3 30013308: e1540002 cmp r4, r2 3001330c: 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) 30013310: e152000a cmp r2, sl 30013314: 8a00004b bhi 30013448 <_Heap_Resize_block+0x248> return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = 30013318: e1a01006 mov r1, r6 3001331c: e1a00005 mov r0, r5 30013320: ebffc802 bl 30005330 <_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; 30013324: e59d1000 ldr r1, [sp] 30013328: e0800001 add r0, r0, r1 3001332c: e1800009 orr r0, r0, r9 30013330: e5870004 str r0, [r7, #4] --stats->used_blocks; 30013334: e5953040 ldr r3, [r5, #64] 30013338: e2433001 sub r3, r3, #1 ; 0x1 3001333c: e5853040 str r3, [r5, #64] 30013340: ea000039 b 3001342c <_Heap_Resize_block+0x22c> } } else { /* Calculate how much memory we could free */ uint32_t free_block_size = old_user_size - size; 30013344: e0684000 rsb r4, r8, r0 uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 30013348: e1a00004 mov r0, r4 3001334c: e59d1008 ldr r1, [sp, #8] 30013350: ebfff871 bl 3001151c <__umodsi3> _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 30013354: e0544000 subs r4, r4, r0 30013358: 0a000033 beq 3001342c <_Heap_Resize_block+0x22c> /* 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; 3001335c: e89d000c ldm sp, {r2, r3} 30013360: e0640002 rsb r0, r4, r2 if (new_block_size < min_block_size) { 30013364: e1500003 cmp r0, r3 30013368: 2a000005 bcs 30013384 <_Heap_Resize_block+0x184> uint32_t delta = min_block_size - new_block_size; 3001336c: e0603003 rsb r3, r0, r3 _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 30013370: e0544003 subs r4, r4, r3 ++stats->resizes; 30013374: 05953054 ldreq r3, [r5, #84] 30013378: 01a00004 moveq r0, r4 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) { 3001337c: 0a00002c beq 30013434 <_Heap_Resize_block+0x234> ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } new_block_size += delta; 30013380: e0800003 add r0, r0, r3 <== NOT EXECUTED _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) { 30013384: e35b0000 cmp fp, #0 ; 0x0 30013388: 1a000013 bne 300133dc <_Heap_Resize_block+0x1dc> /* 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; 3001338c: 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 ); 30013390: e0871000 add r1, r7, r0 _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 30013394: e1803009 orr r3, r0, r9 new_next_block->size = new_next_block_size | HEAP_PREV_USED; 30013398: 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; 3001339c: 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; 300133a0: 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; 300133a4: 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; 300133a8: e5953030 ldr r3, [r5, #48] Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 300133ac: e596000c ldr r0, [r6, #12] 300133b0: e0833004 add r3, r3, r4 Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 300133b4: e596c008 ldr ip, [r6, #8] 300133b8: e5853030 str r3, [r5, #48] *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 300133bc: e59d3030 ldr r3, [sp, #48] 300133c0: e2422004 sub r2, r2, #4 ; 0x4 Heap_Block *prev = block->prev; block = new_block; block->next = next; 300133c4: e581c008 str ip, [r1, #8] block->prev = prev; 300133c8: e581000c str r0, [r1, #12] 300133cc: e5832000 str r2, [r3] next->prev = prev->next = block; 300133d0: e5801008 str r1, [r0, #8] 300133d4: e58c100c str r1, [ip, #12] 300133d8: ea000013 b 3001342c <_Heap_Resize_block+0x22c> } else if (free_block_size >= min_block_size) { 300133dc: e59dc004 ldr ip, [sp, #4] <== NOT EXECUTED 300133e0: e154000c cmp r4, ip <== NOT EXECUTED 300133e4: 3a000010 bcc 3001342c <_Heap_Resize_block+0x22c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 300133e8: 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; 300133ec: 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; 300133f0: 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; 300133f4: 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; 300133f8: e5812004 str r2, [r1, #4] <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 300133fc: e5953040 ldr r3, [r5, #64] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 30013400: 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 */ 30013404: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 30013408: 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 */ 3001340c: e5853040 str r3, [r5, #64] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ _Heap_Free(the_heap, _Heap_User_area(next_block)); 30013410: e2811008 add r1, r1, #8 ; 0x8 <== NOT EXECUTED /* 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 */ --stats->frees; /* Don't count next call in stats */ 30013414: e5852050 str r2, [r5, #80] <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 30013418: e1a00005 mov r0, r5 <== NOT EXECUTED 3001341c: ebffd8ab bl 300096d0 <_Heap_Free> <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 30013420: e59d1030 ldr r1, [sp, #48] <== NOT EXECUTED 30013424: e2443004 sub r3, r4, #4 ; 0x4 <== NOT EXECUTED 30013428: e5813000 str r3, [r1] <== NOT EXECUTED } } } ++stats->resizes; 3001342c: e5953054 ldr r3, [r5, #84] 30013430: e3a00000 mov r0, #0 ; 0x0 30013434: e2833001 add r3, r3, #1 ; 0x1 30013438: e5853054 str r3, [r5, #84] 3001343c: ea000002 b 3001344c <_Heap_Resize_block+0x24c> return HEAP_RESIZE_SUCCESSFUL; 30013440: e3a00002 mov r0, #2 ; 0x2 30013444: ea000000 b 3001344c <_Heap_Resize_block+0x24c> 30013448: e3a00001 mov r0, #1 ; 0x1 } 3001344c: e28dd00c add sp, sp, #12 ; 0xc 30013450: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 3000ccb4 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 3000ccb4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Heap_Block *the_block = the_heap->start; 3000ccb8: e5907020 ldr r7, [r0, #32] /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) 3000ccbc: e2516000 subs r6, r1, #0 ; 0x0 /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 3000ccc0: e5973004 ldr r3, [r7, #4] if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) source = the_heap->stats.instance; 3000ccc4: b5906028 ldrlt r6, [r0, #40] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 3000ccc8: e3130001 tst r3, #1 ; 0x1 bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 3000cccc: e1a05000 mov r5, r0 Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; 3000ccd0: e590b024 ldr fp, [r0, #36] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 3000ccd4: 13a04000 movne r4, #0 ; 0x0 3000ccd8: 1a000003 bne 3000ccec <_Heap_Walk+0x38> printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); 3000ccdc: e59f01a0 ldr r0, [pc, #416] ; 3000ce84 <_Heap_Walk+0x1d0> <== NOT EXECUTED 3000cce0: e1a01006 mov r1, r6 <== NOT EXECUTED 3000cce4: ebffde33 bl 300045b8 <== NOT EXECUTED 3000cce8: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED error = 1; } if (the_block->prev_size != the_heap->page_size) { 3000ccec: e5972000 ldr r2, [r7] 3000ccf0: e5953010 ldr r3, [r5, #16] 3000ccf4: e1520003 cmp r2, r3 3000ccf8: 0a00004c beq 3000ce30 <_Heap_Walk+0x17c> printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); 3000ccfc: e59f0184 ldr r0, [pc, #388] ; 3000ce88 <_Heap_Walk+0x1d4> <== NOT EXECUTED 3000cd00: e1a01006 mov r1, r6 <== NOT EXECUTED 3000cd04: ebffde2b bl 300045b8 <== NOT EXECUTED 3000cd08: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 3000cd0c: ea000047 b 3000ce30 <_Heap_Walk+0x17c> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 3000cd10: 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)) { 3000cd14: e5952020 ldr r2, [r5, #32] 3000cd18: e3c9a001 bic sl, r9, #1 ; 0x1 3000cd1c: 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 ); 3000cd20: e087800a add r8, r7, sl 3000cd24: e1580002 cmp r8, r2 3000cd28: 33a01000 movcc r1, #0 ; 0x0 3000cd2c: 23a01001 movcs r1, #1 ; 0x1 3000cd30: e1580003 cmp r8, r3 3000cd34: 83a01000 movhi r1, #0 ; 0x0 3000cd38: e3510000 cmp r1, #0 ; 0x0 3000cd3c: 1a000004 bne 3000cd54 <_Heap_Walk+0xa0> if (do_dump) printk("\n"); printk("PASS: %d !block %p is out of heap\n", source, next_block); 3000cd40: e1a02008 mov r2, r8 <== NOT EXECUTED 3000cd44: e59f0140 ldr r0, [pc, #320] ; 3000ce8c <_Heap_Walk+0x1d8> <== NOT EXECUTED 3000cd48: e1a01006 mov r1, r6 <== NOT EXECUTED 3000cd4c: ebffde19 bl 300045b8 <== NOT EXECUTED 3000cd50: ea000039 b 3000ce3c <_Heap_Walk+0x188> <== NOT EXECUTED error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { 3000cd54: e5983004 ldr r3, [r8, #4] 3000cd58: e3130001 tst r3, #1 ; 0x1 3000cd5c: 1a00001e bne 3000cddc <_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) { 3000cd60: e5983000 ldr r3, [r8] 3000cd64: e15a0003 cmp sl, r3 3000cd68: 0a000003 beq 3000cd7c <_Heap_Walk+0xc8> if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); 3000cd6c: e59f011c ldr r0, [pc, #284] ; 3000ce90 <_Heap_Walk+0x1dc> <== NOT EXECUTED 3000cd70: e1a01006 mov r1, r6 <== NOT EXECUTED 3000cd74: ebffde0f bl 300045b8 <== NOT EXECUTED 3000cd78: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED error = 1; } if (!prev_used) { 3000cd7c: e3190001 tst r9, #1 ; 0x1 3000cd80: 1a000006 bne 3000cda0 <_Heap_Walk+0xec> if (do_dump || error) printk("\n"); 3000cd84: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 3000cd88: 159f0104 ldrne r0, [pc, #260] ; 3000ce94 <_Heap_Walk+0x1e0> <== NOT EXECUTED 3000cd8c: 1bffde09 blne 300045b8 <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); 3000cd90: e59f0100 ldr r0, [pc, #256] ; 3000ce98 <_Heap_Walk+0x1e4> <== NOT EXECUTED 3000cd94: e1a01006 mov r1, r6 <== NOT EXECUTED 3000cd98: ebffde06 bl 300045b8 <== NOT EXECUTED 3000cd9c: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 3000cda0: e5953008 ldr r3, [r5, #8] 3000cda4: ea000000 b 3000cdac <_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; 3000cda8: 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) 3000cdac: e1530007 cmp r3, r7 3000cdb0: 11530005 cmpne r3, r5 3000cdb4: 1afffffb bne 3000cda8 <_Heap_Walk+0xf4> block = block->next; if(block != the_block) { 3000cdb8: e1530007 cmp r3, r7 3000cdbc: 0a000006 beq 3000cddc <_Heap_Walk+0x128> if (do_dump || error) printk("\n"); 3000cdc0: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 3000cdc4: 159f00c8 ldrne r0, [pc, #200] ; 3000ce94 <_Heap_Walk+0x1e0> <== NOT EXECUTED 3000cdc8: 1bffddfa blne 300045b8 <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); 3000cdcc: e59f00c8 ldr r0, [pc, #200] ; 3000ce9c <_Heap_Walk+0x1e8> <== NOT EXECUTED 3000cdd0: e1a01006 mov r1, r6 <== NOT EXECUTED 3000cdd4: ebffddf7 bl 300045b8 <== NOT EXECUTED 3000cdd8: ea000001 b 3000cde4 <_Heap_Walk+0x130> <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 3000cddc: e3540000 cmp r4, #0 ; 0x0 3000cde0: 0a000002 beq 3000cdf0 <_Heap_Walk+0x13c> 3000cde4: e59f00a8 ldr r0, [pc, #168] ; 3000ce94 <_Heap_Walk+0x1e0> <== NOT EXECUTED 3000cde8: ebffddf2 bl 300045b8 <== NOT EXECUTED 3000cdec: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 3000cdf0: e5953014 ldr r3, [r5, #20] 3000cdf4: e15a0003 cmp sl, r3 printk("PASS: %d !block size is too small\n", source); 3000cdf8: 359f00a0 ldrcc r0, [pc, #160] ; 3000cea0 <_Heap_Walk+0x1ec> 3000cdfc: 3a000005 bcc 3000ce18 <_Heap_Walk+0x164> error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { 3000ce00: e1a0000a mov r0, sl 3000ce04: e5951010 ldr r1, [r5, #16] 3000ce08: eb0025b9 bl 300164f4 <__umodsi3> 3000ce0c: e3500000 cmp r0, #0 ; 0x0 3000ce10: 0a000003 beq 3000ce24 <_Heap_Walk+0x170> printk("PASS: %d !block size is misaligned\n", source); 3000ce14: e59f0088 ldr r0, [pc, #136] ; 3000cea4 <_Heap_Walk+0x1f0> <== NOT EXECUTED 3000ce18: e1a01006 mov r1, r6 <== NOT EXECUTED 3000ce1c: ebffdde5 bl 300045b8 <== NOT EXECUTED 3000ce20: ea000005 b 3000ce3c <_Heap_Walk+0x188> <== NOT EXECUTED error = 1; } if (++passes > (do_dump ? 10 : 0) && error) 3000ce24: e3540000 cmp r4, #0 ; 0x0 3000ce28: 1a000003 bne 3000ce3c <_Heap_Walk+0x188> break; 3000ce2c: 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 ) { 3000ce30: e157000b cmp r7, fp 3000ce34: 1affffb5 bne 3000cd10 <_Heap_Walk+0x5c> 3000ce38: ea000005 b 3000ce54 <_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", 3000ce3c: e1a0300b mov r3, fp <== NOT EXECUTED 3000ce40: e59f0060 ldr r0, [pc, #96] ; 3000cea8 <_Heap_Walk+0x1f4> <== NOT EXECUTED 3000ce44: e1a01006 mov r1, r6 <== NOT EXECUTED 3000ce48: e1a02007 mov r2, r7 <== NOT EXECUTED 3000ce4c: ebffddd9 bl 300045b8 <== NOT EXECUTED 3000ce50: 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); 3000ce54: e5973004 ldr r3, [r7, #4] source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { 3000ce58: e5950010 ldr r0, [r5, #16] 3000ce5c: e3c32001 bic r2, r3, #1 ; 0x1 3000ce60: e1520000 cmp r2, r0 3000ce64: 0a000004 beq 3000ce7c <_Heap_Walk+0x1c8> printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 3000ce68: e1a03000 mov r3, r0 <== NOT EXECUTED 3000ce6c: e1a01006 mov r1, r6 <== NOT EXECUTED 3000ce70: e59f0034 ldr r0, [pc, #52] ; 3000ceac <_Heap_Walk+0x1f8> <== NOT EXECUTED 3000ce74: ebffddcf bl 300045b8 <== NOT EXECUTED 3000ce78: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 3000ce7c: e1a00004 mov r0, r4 3000ce80: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 3000ce84: 30018f28 .word 0x30018f28 3000ce88: 30018f5e .word 0x30018f5e 3000ce8c: 30018f90 .word 0x30018f90 3000ce90: 30018fb3 .word 0x30018fb3 3000ce94: 30018935 .word 0x30018935 3000ce98: 30018fde .word 0x30018fde 3000ce9c: 30019008 .word 0x30019008 3000cea0: 30019031 .word 0x30019031 3000cea4: 30019054 .word 0x30019054 3000cea8: 30019078 .word 0x30019078 3000ceac: 300190b3 .word 0x300190b3 300098c4 <_Objects_API_maximum_class>: int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 300098c4: e2400001 sub r0, r0, #1 ; 0x1 300098c8: e3500003 cmp r0, #3 ; 0x3 300098cc: 979ff100 ldrls pc, [pc, r0, lsl #2] 300098d0: ea00000b b 30009904 <_Objects_API_maximum_class+0x40> 300098d4: 300098ec .word 0x300098ec <== NOT EXECUTED 300098d8: 300098e4 .word 0x300098e4 <== NOT EXECUTED 300098dc: 300098f4 .word 0x300098f4 <== NOT EXECUTED 300098e0: 300098fc .word 0x300098fc <== NOT EXECUTED 300098e4: e3a0000a mov r0, #10 ; 0xa 300098e8: e12fff1e bx lr 300098ec: e3a00002 mov r0, #2 ; 0x2 300098f0: e12fff1e bx lr 300098f4: e3a0000c mov r0, #12 ; 0xc <== NOT EXECUTED 300098f8: 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; 300098fc: e3a00008 mov r0, #8 ; 0x8 30009900: e12fff1e bx lr case OBJECTS_ITRON_API: return OBJECTS_ITRON_CLASSES_LAST; 30009904: e3e00000 mvn r0, #0 ; 0x0 case OBJECTS_NO_API: default: break; } return -1; } 30009908: e12fff1e bx lr 300054e8 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 300054e8: 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; 300054ec: e1d060b8 ldrh r6, [r0, #8] minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 300054f0: e1d041b0 ldrh r4, [r0, #16] */ void _Objects_Extend_information( Objects_Information *information ) { 300054f4: e24dd014 sub sp, sp, #20 ; 0x14 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 300054f8: e1540006 cmp r4, r6 300054fc: 33a07000 movcc r7, #0 ; 0x0 */ void _Objects_Extend_information( Objects_Information *information ) { 30005500: e1a05000 mov r5, r0 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 30005504: 31a0a006 movcc sl, r6 30005508: 31a08007 movcc r8, r7 3000550c: 3a00000f bcc 30005550 <_Objects_Extend_information+0x68> block_count = 0; else { block_count = information->maximum / information->allocation_size; 30005510: e5909014 ldr r9, [r0, #20] 30005514: e1a00004 mov r0, r4 30005518: e1a01009 mov r1, r9 3000551c: eb002fba bl 3001140c <__aeabi_uidiv> 30005520: e1a0a006 mov sl, r6 30005524: e1a07000 mov r7, r0 30005528: e3a08000 mov r8, #0 ; 0x0 3000552c: ea000005 b 30005548 <_Objects_Extend_information+0x60> for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 30005530: e5953034 ldr r3, [r5, #52] 30005534: e7933108 ldr r3, [r3, r8, lsl #2] 30005538: e3530000 cmp r3, #0 ; 0x0 3000553c: 0a000003 beq 30005550 <_Objects_Extend_information+0x68> break; else index_base += information->allocation_size; 30005540: 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++ ) { 30005544: e2888001 add r8, r8, #1 ; 0x1 30005548: e1580007 cmp r8, r7 3000554c: 3afffff7 bcc 30005530 <_Objects_Extend_information+0x48> /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 30005550: e15a0004 cmp sl, r4 30005554: 3a000056 bcc 300056b4 <_Objects_Extend_information+0x1cc> /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 30005558: e5d52012 ldrb r2, [r5, #18] * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 3000555c: e5953014 ldr r3, [r5, #20] /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 30005560: e3520000 cmp r2, #0 ; 0x0 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 30005564: e0843003 add r3, r4, r3 30005568: e58d3004 str r3, [sp, #4] /* * Up the block count and maximum */ block_count++; 3000556c: e2874001 add r4, r7, #1 ; 0x1 30005570: e0832006 add r2, r3, r6 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 30005574: 0a000007 beq 30005598 <_Objects_Extend_information+0xb0> object_blocks = (void**) 30005578: e3a03003 mov r3, #3 ; 0x3 3000557c: e0202493 mla r0, r3, r4, r2 30005580: e1a00100 lsl r0, r0, #2 30005584: eb0007e8 bl 3000752c <_Workspace_Allocate> block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 30005588: e3500000 cmp r0, #0 ; 0x0 3000558c: e58d0000 str r0, [sp] 30005590: 1a000005 bne 300055ac <_Objects_Extend_information+0xc4> 30005594: ea000078 b 3000577c <_Objects_Extend_information+0x294> <== NOT EXECUTED return; } else { object_blocks = (void**) 30005598: e3a03003 mov r3, #3 ; 0x3 3000559c: e0202493 mla r0, r3, r4, r2 300055a0: e1a00100 lsl r0, r0, #2 300055a4: eb0007e4 bl 3000753c <_Workspace_Allocate_or_fatal_error> 300055a8: e58d0000 str r0, [sp] * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 300055ac: e1d531b0 ldrh r3, [r5, #16] /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 300055b0: e59d1000 ldr r1, [sp] 300055b4: e1a02104 lsl r2, r4, #2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 300055b8: e1530006 cmp r3, r6 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 300055bc: e081b002 add fp, r1, r2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 300055c0: 93a03000 movls r3, #0 ; 0x0 300055c4: 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; 300055c8: 91a02003 movls r2, r3 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 300055cc: 9a000011 bls 30005618 <_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, 300055d0: e1a04107 lsl r4, r7, #2 300055d4: e5951034 ldr r1, [r5, #52] 300055d8: e1a02004 mov r2, r4 300055dc: e59d0000 ldr r0, [sp] 300055e0: eb001628 bl 3000ae88 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 300055e4: e1a02004 mov r2, r4 300055e8: e5951030 ldr r1, [r5, #48] 300055ec: e1a0000b mov r0, fp 300055f0: eb001624 bl 3000ae88 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 300055f4: e1d521b0 ldrh r2, [r5, #16] 300055f8: e1a00009 mov r0, r9 300055fc: e0862002 add r2, r6, r2 30005600: e1a02102 lsl r2, r2, #2 30005604: e595101c ldr r1, [r5, #28] 30005608: eb00161e bl 3000ae88 3000560c: ea000003 b 30005620 <_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; 30005610: 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++ ) { 30005614: e2833001 add r3, r3, #1 ; 0x1 30005618: e1530006 cmp r3, r6 3000561c: 3afffffb bcc 30005610 <_Objects_Extend_information+0x128> /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 30005620: e3a03000 mov r3, #0 ; 0x0 inactive_per_block[block_count] = 0; 30005624: e78b3107 str r3, [fp, r7, lsl #2] for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005628: e5952014 ldr r2, [r5, #20] /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 3000562c: e59dc000 ldr ip, [sp] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005630: e08a0002 add r0, sl, r2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 30005634: e78c3107 str r3, [ip, r7, lsl #2] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005638: e089110a add r1, r9, sl, lsl #2 3000563c: e1a0200a mov r2, sl 30005640: ea000000 b 30005648 <_Objects_Extend_information+0x160> index++ ) { local_table[ index ] = NULL; 30005644: 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 ); 30005648: e1520000 cmp r2, r0 index++ ) { 3000564c: e2811004 add r1, r1, #4 ; 0x4 30005650: 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 ); 30005654: 3afffffa bcc 30005644 <_Objects_Extend_information+0x15c> index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 30005658: e10f0000 mrs r0, CPSR 3000565c: e38030c0 orr r3, r0, #192 ; 0xc0 30005660: 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( 30005664: 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; 30005668: e59dc004 ldr ip, [sp, #4] information->maximum_id = _Objects_Build_id( 3000566c: e1d510b4 ldrh r1, [r5, #4] 30005670: 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; 30005674: e1a0280c lsl r2, ip, #16 information->maximum_id = _Objects_Build_id( 30005678: 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; 3000567c: e1a02822 lsr r2, r2, #16 information->maximum_id = _Objects_Build_id( 30005680: e1833d81 orr r3, r3, r1, lsl #27 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 30005684: 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( 30005688: e1833002 orr r3, r3, r2 3000568c: 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; 30005690: e585b030 str fp, [r5, #48] local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 30005694: e5953034 ldr r3, [r5, #52] information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; 30005698: e585901c str r9, [r5, #28] information->maximum = maximum; 3000569c: e1c521b0 strh r2, [r5, #16] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 300056a0: e5851034 str r1, [r5, #52] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 300056a4: e129f000 msr CPSR_fc, r0 if ( old_tables ) 300056a8: e3530000 cmp r3, #0 ; 0x0 _Workspace_Free( old_tables ); 300056ac: 11a00003 movne r0, r3 300056b0: 1b000799 blne 3000751c <_Workspace_Free> /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 300056b4: e5d53012 ldrb r3, [r5, #18] 300056b8: e5952014 ldr r2, [r5, #20] 300056bc: e3530000 cmp r3, #0 ; 0x0 300056c0: e5954034 ldr r4, [r5, #52] 300056c4: e5953018 ldr r3, [r5, #24] 300056c8: 0a000007 beq 300056ec <_Objects_Extend_information+0x204> information->object_blocks[ block ] = 300056cc: e0000392 mul r0, r2, r3 300056d0: eb000795 bl 3000752c <_Workspace_Allocate> _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 300056d4: e5953034 ldr r3, [r5, #52] /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 300056d8: e7840108 str r0, [r4, r8, lsl #2] _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 300056dc: e7933108 ldr r3, [r3, r8, lsl #2] 300056e0: e3530000 cmp r3, #0 ; 0x0 300056e4: 1a000003 bne 300056f8 <_Objects_Extend_information+0x210> 300056e8: ea000023 b 3000577c <_Objects_Extend_information+0x294> <== NOT EXECUTED return; } else { information->object_blocks[ block ] = 300056ec: e0000392 mul r0, r2, r3 300056f0: eb000791 bl 3000753c <_Workspace_Allocate_or_fatal_error> 300056f4: e7840108 str r0, [r4, r8, lsl #2] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 300056f8: e5953034 ldr r3, [r5, #52] 300056fc: e28d4008 add r4, sp, #8 ; 0x8 30005700: e7931108 ldr r1, [r3, r8, lsl #2] 30005704: e1a00004 mov r0, r4 30005708: e5952014 ldr r2, [r5, #20] 3000570c: e5953018 ldr r3, [r5, #24] 30005710: eb000f4f bl 30009454 <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005714: e1a0600a mov r6, sl /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 30005718: e1a08108 lsl r8, r8, #2 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 3000571c: e2857020 add r7, r5, #32 ; 0x20 30005720: ea000008 b 30005748 <_Objects_Extend_information+0x260> index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 30005724: e5953000 ldr r3, [r5] 30005728: e1d520b4 ldrh r2, [r5, #4] 3000572c: e1a03c03 lsl r3, r3, #24 30005730: e3833801 orr r3, r3, #65536 ; 0x10000 30005734: e1833d82 orr r3, r3, r2, lsl #27 30005738: e1833006 orr r3, r3, r6 3000573c: e58c3008 str r3, [ip, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005740: ebfffd5b bl 30004cb4 <_Chain_Append> index++; 30005744: 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 ) { 30005748: e1a00004 mov r0, r4 3000574c: eb000f33 bl 30009420 <_Chain_Get> 30005750: e250c000 subs ip, r0, #0 ; 0x0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005754: e1a0100c mov r1, ip 30005758: 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 ) { 3000575c: 1afffff0 bne 30005724 <_Objects_Extend_information+0x23c> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 30005760: e5953014 ldr r3, [r5, #20] 30005764: e5952030 ldr r2, [r5, #48] information->inactive += information->allocation_size; 30005768: e1d512bc ldrh r1, [r5, #44] _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 3000576c: e7823008 str r3, [r2, r8] information->inactive += information->allocation_size; 30005770: e5953014 ldr r3, [r5, #20] 30005774: e0833001 add r3, r3, r1 30005778: e1c532bc strh r3, [r5, #44] } 3000577c: e28dd014 add sp, sp, #20 ; 0x14 30005780: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 30005880 <_Objects_Get_isr_disable>: #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 30005880: e1a01801 lsl r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 30005884: e92d4010 push {r4, lr} #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 30005888: e1a01821 lsr r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 3000588c: e1a04003 mov r4, r3 index = id & 0x0000ffff; /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 30005890: e10fc000 mrs ip, CPSR 30005894: e38c30c0 orr r3, ip, #192 ; 0xc0 30005898: e129f003 msr CPSR_fc, r3 if ( information->maximum >= index ) { 3000589c: e1d031b0 ldrh r3, [r0, #16] 300058a0: e1530001 cmp r3, r1 300058a4: 3a00000a bcc 300058d4 <_Objects_Get_isr_disable+0x54> if ( (the_object = information->local_table[ index ]) != NULL ) { 300058a8: e590301c ldr r3, [r0, #28] 300058ac: e7930101 ldr r0, [r3, r1, lsl #2] 300058b0: e3500000 cmp r0, #0 ; 0x0 *location = OBJECTS_LOCAL; 300058b4: 13a03000 movne r3, #0 ; 0x0 300058b8: 15823000 strne r3, [r2] *level_p = level; 300058bc: 1584c000 strne ip, [r4] /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { 300058c0: 18bd8010 popne {r4, pc} *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); 300058c4: e129f00c msr CPSR_fc, ip <== NOT EXECUTED *location = OBJECTS_ERROR; 300058c8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300058cc: e5823000 str r3, [r2] <== NOT EXECUTED 300058d0: e8bd8010 pop {r4, pc} <== NOT EXECUTED return NULL; } _ISR_Enable( level ); 300058d4: e129f00c msr CPSR_fc, ip *location = OBJECTS_ERROR; 300058d8: e3a03001 mov r3, #1 ; 0x1 300058dc: e5823000 str r3, [r2] 300058e0: e3a00000 mov r0, #0 ; 0x0 _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 300058e4: e8bd8010 pop {r4, pc} 30010008 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 30010008: e92d40f0 push {r4, r5, r6, r7, lr} char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 3001000c: e2517000 subs r7, r1, #0 ; 0x0 char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 30010010: e24dd00c sub sp, sp, #12 ; 0xc 30010014: e1a05002 mov r5, r2 char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 30010018: 0a000037 beq 300100fc <_Objects_Get_name_as_string+0xf4> return NULL; if ( name == NULL ) 3001001c: e3520000 cmp r2, #0 ; 0x0 30010020: 0a000036 beq 30010100 <_Objects_Get_name_as_string+0xf8> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 30010024: e3500000 cmp r0, #0 ; 0x0 30010028: 059f30dc ldreq r3, [pc, #220] ; 3001010c <_Objects_Get_name_as_string+0x104> 3001002c: 11a04000 movne r4, r0 30010030: 05933000 ldreq r3, [r3] 30010034: 05934008 ldreq r4, [r3, #8] information = _Objects_Get_information_id( tmpId ); 30010038: e1a00004 mov r0, r4 3001003c: ebffe72c bl 30009cf4 <_Objects_Get_information_id> if ( !information ) 30010040: e2506000 subs r6, r0, #0 ; 0x0 30010044: 0a00002c beq 300100fc <_Objects_Get_name_as_string+0xf4> return NULL; the_object = _Objects_Get( information, tmpId, &location ); 30010048: e28d2008 add r2, sp, #8 ; 0x8 3001004c: e1a01004 mov r1, r4 30010050: ebffe763 bl 30009de4 <_Objects_Get> switch ( location ) { 30010054: e59d3008 ldr r3, [sp, #8] information = _Objects_Get_information_id( tmpId ); if ( !information ) return NULL; the_object = _Objects_Get( information, tmpId, &location ); 30010058: e1a02000 mov r2, r0 switch ( location ) { 3001005c: e3530000 cmp r3, #0 ; 0x0 30010060: 1a000025 bne 300100fc <_Objects_Get_name_as_string+0xf4> case OBJECTS_ERROR: return NULL; case OBJECTS_LOCAL: if ( information->is_string ) { 30010064: e5d60038 ldrb r0, [r6, #56] 30010068: e3500000 cmp r0, #0 ; 0x0 3001006c: 0a000004 beq 30010084 <_Objects_Get_name_as_string+0x7c> s = the_object->name.name_p; 30010070: e592000c ldr r0, [r2, #12] lname[ 4 ] = '\0'; s = lname; } d = name; if ( s ) { 30010074: e3500000 cmp r0, #0 ; 0x0 30010078: 01a0e005 moveq lr, r5 3001007c: 1a00000a bne 300100ac <_Objects_Get_name_as_string+0xa4> 30010080: ea000019 b 300100ec <_Objects_Get_name_as_string+0xe4> <== 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; 30010084: e592300c ldr r3, [r2, #12] 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'; 30010088: e5cd0007 strb r0, [sp, #7] 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; 3001008c: e1a02c23 lsr r2, r3, #24 lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; 30010090: e1a00423 lsr r0, r3, #8 s = the_object->name.name_p; } else { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 30010094: e1a01823 lsr r1, r3, #16 lname[ 2 ] = (u32_name >> 8) & 0xff; 30010098: e5cd0005 strb r0, [sp, #5] 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; 3001009c: e5cd2003 strb r2, [sp, #3] lname[ 1 ] = (u32_name >> 16) & 0xff; 300100a0: e5cd1004 strb r1, [sp, #4] lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; 300100a4: e5cd3006 strb r3, [sp, #6] lname[ 4 ] = '\0'; 300100a8: e28d0003 add r0, sp, #3 ; 0x3 s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 300100ac: 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'; 300100b0: e3a0c000 mov ip, #0 ; 0x0 } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { *d = (isprint(*s)) ? *s : '*'; 300100b4: e59f4054 ldr r4, [pc, #84] ; 30010110 <_Objects_Get_name_as_string+0x108> 300100b8: ea000005 b 300100d4 <_Objects_Get_name_as_string+0xcc> 300100bc: e5943000 ldr r3, [r4] 300100c0: e7d33002 ldrb r3, [r3, r2] 300100c4: e3130097 tst r3, #151 ; 0x97 300100c8: 03a0202a moveq r2, #42 ; 0x2a 300100cc: e7c5200c strb r2, [r5, ip] s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 300100d0: e28cc001 add ip, ip, #1 ; 0x1 300100d4: e15c0001 cmp ip, r1 300100d8: e085e00c add lr, r5, ip 300100dc: 2a000002 bcs 300100ec <_Objects_Get_name_as_string+0xe4> 300100e0: e7d0200c ldrb r2, [r0, ip] 300100e4: e3520000 cmp r2, #0 ; 0x0 300100e8: 1afffff3 bne 300100bc <_Objects_Get_name_as_string+0xb4> *d = (isprint(*s)) ? *s : '*'; } } *d = '\0'; 300100ec: e3a03000 mov r3, #0 ; 0x0 300100f0: e5ce3000 strb r3, [lr] _Thread_Enable_dispatch(); 300100f4: ebffe97e bl 3000a6f4 <_Thread_Enable_dispatch> 300100f8: ea000000 b 30010100 <_Objects_Get_name_as_string+0xf8> return name; 300100fc: e3a05000 mov r5, #0 ; 0x0 } return NULL; /* unreachable path */ } 30010100: e1a00005 mov r0, r5 30010104: e28dd00c add sp, sp, #12 ; 0xc 30010108: e8bd80f0 pop {r4, r5, r6, r7, pc} 3001010c: 30023124 .word 0x30023124 30010110: 3002213c .word 0x3002213c 3001289c <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 3001289c: e1a0c001 mov ip, r1 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 300128a0: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 300128a4: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 300128a8: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 300128ac: 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; 300128b0: 05904008 ldreq r4, [r0, #8] <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 300128b4: e1a05000 mov r5, r0 <== NOT EXECUTED 300128b8: e1a06002 mov r6, r2 <== NOT EXECUTED 300128bc: e1a07003 mov r7, r3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 300128c0: 11a0400c movne r4, ip <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 300128c4: e1a03804 lsl r3, r4, #16 <== NOT EXECUTED 300128c8: e1d5c1b0 ldrh ip, [r5, #16] <== NOT EXECUTED 300128cc: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED 300128d0: e153000c cmp r3, ip <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 300128d4: e1a01004 mov r1, r4 <== NOT EXECUTED 300128d8: e1a00005 mov r0, r5 <== NOT EXECUTED 300128dc: e1a02006 mov r2, r6 <== NOT EXECUTED next_id++; 300128e0: 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) 300128e4: 9a000005 bls 30012900 <_Objects_Get_next+0x64> <== NOT EXECUTED { *location_p = OBJECTS_ERROR; 300128e8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300128ec: e5863000 str r3, [r6] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 300128f0: e3e03000 mvn r3, #0 ; 0x0 <== NOT EXECUTED 300128f4: e5873000 str r3, [r7] <== NOT EXECUTED 300128f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300128fc: 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); 30012900: ebffdd37 bl 30009de4 <_Objects_Get> <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 30012904: e5963000 ldr r3, [r6] <== NOT EXECUTED 30012908: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001290c: 1affffec bne 300128c4 <_Objects_Get_next+0x28> <== NOT EXECUTED *next_id_p = next_id; 30012910: e5874000 str r4, [r7] <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 30012914: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30006d3c <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 30006d3c: e92d4030 push {r4, r5, lr} Objects_Id tmpId; Objects_Information *information; Objects_Control *the_object = (Objects_Control *) 0; Objects_Locations ignored_location; if ( !name ) 30006d40: e2515000 subs r5, r1, #0 ; 0x0 Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 30006d44: 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 ) 30006d48: 03a00001 moveq r0, #1 ; 0x1 30006d4c: 0a00001b beq 30006dc0 <_Objects_Id_to_name+0x84> return OBJECTS_INVALID_NAME; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 30006d50: e3500000 cmp r0, #0 ; 0x0 30006d54: 059f3080 ldreq r3, [pc, #128] ; 30006ddc <_Objects_Id_to_name+0xa0> 30006d58: 11a01000 movne r1, r0 30006d5c: 05933000 ldreq r3, [r3] 30006d60: 05931008 ldreq r1, [r3, #8] */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 30006d64: e1a03c21 lsr r3, r1, #24 30006d68: 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 ) 30006d6c: e2403001 sub r3, r0, #1 ; 0x1 30006d70: e3530003 cmp r3, #3 ; 0x3 30006d74: 8a000010 bhi 30006dbc <_Objects_Id_to_name+0x80> 30006d78: ea000012 b 30006dc8 <_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 ]; 30006d7c: e1a03da1 lsr r3, r1, #27 30006d80: e7900103 ldr r0, [r0, r3, lsl #2] if ( !information ) 30006d84: e3500000 cmp r0, #0 ; 0x0 30006d88: 0a00000b beq 30006dbc <_Objects_Id_to_name+0x80> return OBJECTS_INVALID_ID; if ( information->is_string ) 30006d8c: e5d04038 ldrb r4, [r0, #56] 30006d90: e3540000 cmp r4, #0 ; 0x0 30006d94: 1a000008 bne 30006dbc <_Objects_Id_to_name+0x80> return OBJECTS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &ignored_location ); 30006d98: e1a0200d mov r2, sp 30006d9c: ebffffcb bl 30006cd0 <_Objects_Get> if ( !the_object ) 30006da0: e3500000 cmp r0, #0 ; 0x0 30006da4: 0a000004 beq 30006dbc <_Objects_Id_to_name+0x80> return OBJECTS_INVALID_ID; *name = the_object->name; 30006da8: e590300c ldr r3, [r0, #12] 30006dac: e5853000 str r3, [r5] _Thread_Enable_dispatch(); 30006db0: eb000216 bl 30007610 <_Thread_Enable_dispatch> 30006db4: e1a00004 mov r0, r4 30006db8: ea000000 b 30006dc0 <_Objects_Id_to_name+0x84> return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 30006dbc: e3a00003 mov r0, #3 ; 0x3 } 30006dc0: e28dd004 add sp, sp, #4 ; 0x4 30006dc4: 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 ] ) 30006dc8: e59f3010 ldr r3, [pc, #16] ; 30006de0 <_Objects_Id_to_name+0xa4> 30006dcc: e7930100 ldr r0, [r3, r0, lsl #2] 30006dd0: e3500000 cmp r0, #0 ; 0x0 30006dd4: 1affffe8 bne 30006d7c <_Objects_Id_to_name+0x40> 30006dd8: eafffff7 b 30006dbc <_Objects_Id_to_name+0x80> <== NOT EXECUTED 30006ddc: 30019444 .word 0x30019444 30006de0: 30019348 .word 0x30019348 30005a10 <_Objects_Namespace_remove>: ) { /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 30005a10: e5d03038 ldrb r3, [r0, #56] void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 30005a14: e92d4010 push {r4, lr} /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 30005a18: e3530000 cmp r3, #0 ; 0x0 void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 30005a1c: e1a04001 mov r4, r1 /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 30005a20: 0a000002 beq 30005a30 <_Objects_Namespace_remove+0x20> 30005a24: e591000c ldr r0, [r1, #12] <== NOT EXECUTED 30005a28: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 30005a2c: 1b0006ba blne 3000751c <_Workspace_Free> <== NOT EXECUTED /* * Clear out either format. */ the_object->name.name_p = NULL; 30005a30: e3a03000 mov r3, #0 ; 0x0 the_object->name.name_u32 = 0; 30005a34: e584300c str r3, [r4, #12] } 30005a38: e8bd8010 pop {r4, pc} 300076bc <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 300076bc: e92d40f0 push {r4, r5, r6, r7, lr} 300076c0: e1a04000 mov r4, r0 300076c4: e1a07001 mov r7, r1 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 300076c8: e1a00002 mov r0, r2 300076cc: e1d413ba ldrh r1, [r4, #58] bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 300076d0: e1a06002 mov r6, r2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 300076d4: eb001ad3 bl 3000e228 if ( information->is_string ) { 300076d8: e5d43038 ldrb r3, [r4, #56] { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 300076dc: e2804001 add r4, r0, #1 ; 0x1 if ( information->is_string ) { 300076e0: e3530000 cmp r3, #0 ; 0x0 300076e4: 0a000013 beq 30007738 <_Objects_Set_name+0x7c> char *d; d = _Workspace_Allocate( length ); 300076e8: e1a00004 mov r0, r4 <== NOT EXECUTED 300076ec: eb0006c5 bl 30009208 <_Workspace_Allocate> <== NOT EXECUTED if ( !d ) 300076f0: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 300076f4: 01a00005 moveq r0, r5 <== NOT EXECUTED 300076f8: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return FALSE; if ( the_object->name.name_p ) { 300076fc: e597000c ldr r0, [r7, #12] <== NOT EXECUTED 30007700: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30007704: 0a000002 beq 30007714 <_Objects_Set_name+0x58> <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 30007708: eb0006ba bl 300091f8 <_Workspace_Free> <== NOT EXECUTED the_object->name.name_p = NULL; 3000770c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30007710: e587300c str r3, [r7, #12] <== NOT EXECUTED } strncpy( d, name, length ); 30007714: e1a01006 mov r1, r6 <== NOT EXECUTED 30007718: e1a00005 mov r0, r5 <== NOT EXECUTED 3000771c: e1a02004 mov r2, r4 <== NOT EXECUTED 30007720: eb001a7d bl 3000e11c <== NOT EXECUTED d[ length ] = '\0'; 30007724: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30007728: e7c53004 strb r3, [r5, r4] <== NOT EXECUTED the_object->name.name_p = d; 3000772c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30007730: e587500c str r5, [r7, #12] <== NOT EXECUTED 30007734: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } else { the_object->name.name_u32 = _Objects_Build_name( 30007738: e3540000 cmp r4, #0 ; 0x0 3000773c: 03a0c202 moveq ip, #536870912 ; 0x20000000 30007740: 0a000015 beq 3000779c <_Objects_Set_name+0xe0> 30007744: e5d63000 ldrb r3, [r6] 30007748: e3540001 cmp r4, #1 ; 0x1 3000774c: e1a0cc03 lsl ip, r3, #24 30007750: 0a000011 beq 3000779c <_Objects_Set_name+0xe0> 30007754: e5d63001 ldrb r3, [r6, #1] 30007758: e3540002 cmp r4, #2 ; 0x2 3000775c: e1a01803 lsl r1, r3, #16 30007760: 9a00000a bls 30007790 <_Objects_Set_name+0xd4> 30007764: e3540003 cmp r4, #3 ; 0x3 30007768: e5d63002 ldrb r3, [r6, #2] 3000776c: 85d60003 ldrbhi r0, [r6, #3] 30007770: e1a02403 lsl r2, r3, #8 30007774: 93a00020 movls r0, #32 ; 0x20 30007778: e18c3001 orr r3, ip, r1 3000777c: e1833002 orr r3, r3, r2 30007780: e1833000 orr r3, r3, r0 30007784: e587300c str r3, [r7, #12] 30007788: e3a00001 mov r0, #1 ; 0x1 ); } return TRUE; } 3000778c: 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( 30007790: e3a00020 mov r0, #32 ; 0x20 30007794: e3a02a02 mov r2, #8192 ; 0x2000 30007798: eafffff6 b 30007778 <_Objects_Set_name+0xbc> 3000779c: e3a01602 mov r1, #2097152 ; 0x200000 300077a0: eafffffa b 30007790 <_Objects_Set_name+0xd4> 3001eee8 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 3001eee8: e92d4070 push {r4, r5, r6, lr} Heap_Get_information_status status; if ( !the_heap ) 3001eeec: e2506000 subs r6, r0, #0 ; 0x0 bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 3001eef0: e1a04001 mov r4, r1 Heap_Get_information_status status; if ( !the_heap ) 3001eef4: 0a00000d beq 3001ef30 <_Protected_heap_Get_information+0x48> return false; if ( !the_info ) 3001eef8: e3510000 cmp r1, #0 ; 0x0 3001eefc: 0a00000b beq 3001ef30 <_Protected_heap_Get_information+0x48> return false; _RTEMS_Lock_allocator(); 3001ef00: e59f5030 ldr r5, [pc, #48] ; 3001ef38 <_Protected_heap_Get_information+0x50> 3001ef04: e5950000 ldr r0, [r5] 3001ef08: ebffa453 bl 3000805c <_API_Mutex_Lock> status = _Heap_Get_information( the_heap, the_info ); 3001ef0c: e1a01004 mov r1, r4 3001ef10: e1a00006 mov r0, r6 3001ef14: eb00231d bl 30027b90 <_Heap_Get_information> 3001ef18: e1a04000 mov r4, r0 _RTEMS_Unlock_allocator(); 3001ef1c: e5950000 ldr r0, [r5] 3001ef20: ebffa469 bl 300080cc <_API_Mutex_Unlock> if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 3001ef24: e2740001 rsbs r0, r4, #1 ; 0x1 3001ef28: 33a00000 movcc r0, #0 ; 0x0 3001ef2c: e8bd8070 pop {r4, r5, r6, pc} 3001ef30: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; return false; } 3001ef34: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001ef38: 3005535c .word 0x3005535c 30004680 <_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; 30004680: e59f3094 ldr r3, [pc, #148] ; 3000471c <_RTEMS_tasks_Initialize_user_tasks_body+0x9c> * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 30004684: 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; 30004688: e5933000 ldr r3, [r3] * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 3000468c: e24dd00c sub sp, sp, #12 ; 0xc rtems_status_code return_value; rtems_initialization_tasks_table *user_tasks; rtems_api_configuration_table *api_configuration; api_configuration = _Configuration_Table->RTEMS_api_configuration; 30004690: e5933040 ldr r3, [r3, #64] /* * NOTE: This is slightly different from the Ada implementation. */ user_tasks = api_configuration->User_initialization_tasks_table; 30004694: e593002c ldr r0, [r3, #44] maximum = api_configuration->number_of_initialization_tasks; 30004698: e5936028 ldr r6, [r3, #40] if ( !user_tasks || maximum == 0 ) 3000469c: e3560000 cmp r6, #0 ; 0x0 300046a0: 13500000 cmpne r0, #0 ; 0x0 300046a4: 13a03000 movne r3, #0 ; 0x0 300046a8: 03a03001 moveq r3, #1 ; 0x1 return; 300046ac: 11a04000 movne r4, r0 300046b0: 11a05003 movne r5, r3 for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 300046b4: 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 ) 300046b8: 1a000013 bne 3000470c <_RTEMS_tasks_Initialize_user_tasks_body+0x8c> 300046bc: ea000014 b 30004714 <_RTEMS_tasks_Initialize_user_tasks_body+0x94> <== NOT EXECUTED return; for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 300046c0: e594300c ldr r3, [r4, #12] 300046c4: e88d0088 stm sp, {r3, r7} 300046c8: e8940005 ldm r4, {r0, r2} 300046cc: e5941008 ldr r1, [r4, #8] 300046d0: e5943014 ldr r3, [r4, #20] 300046d4: ebffff63 bl 30004468 user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) 300046d8: e2502000 subs r2, r0, #0 ; 0x0 300046dc: 1a000006 bne 300046fc <_RTEMS_tasks_Initialize_user_tasks_body+0x7c> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); return_value = rtems_task_start( 300046e0: e5942018 ldr r2, [r4, #24] 300046e4: e5941010 ldr r1, [r4, #16] 300046e8: e59d0008 ldr r0, [sp, #8] 300046ec: eb00000b bl 30004720 id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 300046f0: 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( 300046f4: e284401c add r4, r4, #28 ; 0x1c id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 300046f8: 0a000002 beq 30004708 <_RTEMS_tasks_Initialize_user_tasks_body+0x88> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); 300046fc: e3a00001 mov r0, #1 ; 0x1 30004700: e1a01000 mov r1, r0 30004704: eb000335 bl 300053e0 <_Internal_error_Occurred> maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) return; for ( index=0 ; index < maximum ; index++ ) { 30004708: e2855001 add r5, r5, #1 ; 0x1 3000470c: e1550006 cmp r5, r6 30004710: 3affffea bcc 300046c0 <_RTEMS_tasks_Initialize_user_tasks_body+0x40> ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); } } 30004714: e28dd00c add sp, sp, #12 ; 0xc 30004718: e8bd80f0 pop {r4, r5, r6, r7, pc} 3000471c: 3001549c .word 0x3001549c 30005804 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 30005804: e92d4010 push {r4, lr} 30005808: e24dd004 sub sp, sp, #4 ; 0x4 3000580c: e1a01000 mov r1, r0 30005810: e1a0200d mov r2, sp 30005814: e59f008c ldr r0, [pc, #140] ; 300058a8 <_Rate_monotonic_Timeout+0xa4> 30005818: eb00070f bl 3000745c <_Objects_Get> /* * When we get here, the Timer is already off the chain so we do not * have to worry about that -- hence no _Watchdog_Remove(). */ the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 3000581c: e59d3000 ldr r3, [sp] 30005820: e1a04000 mov r4, r0 30005824: e3530000 cmp r3, #0 ; 0x0 30005828: 1a00001c bne 300058a0 <_Rate_monotonic_Timeout+0x9c> case OBJECTS_LOCAL: the_thread = the_period->owner; 3000582c: e5900050 ldr r0, [r0, #80] if ( _States_Is_waiting_for_period( the_thread->current_state ) && 30005830: e5903010 ldr r3, [r0, #16] 30005834: e3130901 tst r3, #16384 ; 0x4000 30005838: 0a000006 beq 30005858 <_Rate_monotonic_Timeout+0x54> 3000583c: e5902020 ldr r2, [r0, #32] 30005840: e5943008 ldr r3, [r4, #8] 30005844: e1520003 cmp r2, r3 30005848: 1a000002 bne 30005858 <_Rate_monotonic_Timeout+0x54> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 3000584c: e59f1058 ldr r1, [pc, #88] ; 300058ac <_Rate_monotonic_Timeout+0xa8> 30005850: eb000827 bl 300078f4 <_Thread_Clear_state> 30005854: ea000006 b 30005874 <_Rate_monotonic_Timeout+0x70> _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { 30005858: e5943038 ldr r3, [r4, #56] 3000585c: e3530001 cmp r3, #1 ; 0x1 _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 30005860: 13a03004 movne r3, #4 ; 0x4 30005864: 15843038 strne r3, [r4, #56] _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { 30005868: 1a000008 bne 30005890 <_Rate_monotonic_Timeout+0x8c> the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 3000586c: e2833002 add r3, r3, #2 ; 0x2 <== NOT EXECUTED 30005870: e5843038 str r3, [r4, #56] <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 30005874: e1a00004 mov r0, r4 30005878: ebfffe51 bl 300051c4 <_Rate_monotonic_Initiate_statistics> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 3000587c: e594304c ldr r3, [r4, #76] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30005880: e2841010 add r1, r4, #16 ; 0x10 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 30005884: e584301c str r3, [r4, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30005888: e59f0020 ldr r0, [pc, #32] ; 300058b0 <_Rate_monotonic_Timeout+0xac> 3000588c: eb000dfb bl 30009080 <_Watchdog_Insert> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 30005890: e59f201c ldr r2, [pc, #28] ; 300058b4 <_Rate_monotonic_Timeout+0xb0> 30005894: e5923000 ldr r3, [r2] 30005898: e2433001 sub r3, r3, #1 ; 0x1 3000589c: e5823000 str r3, [r2] case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 300058a0: e28dd004 add sp, sp, #4 ; 0x4 300058a4: e8bd8010 pop {r4, pc} 300058a8: 30019b04 .word 0x30019b04 300058ac: 1003fff8 .word 0x1003fff8 300058b0: 30019d04 .word 0x30019d04 300058b4: 30019c2c .word 0x30019c2c 3000508c <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) { 3000508c: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 30005090: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get( struct timespec *time ) { 30005094: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; 30005098: e58d3004 str r3, [sp, #4] */ void _TOD_Get( struct timespec *time ) { 3000509c: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 300050a0: e58d3000 str r3, [sp] offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); 300050a4: e10f6000 mrs r6, CPSR 300050a8: e38630c0 orr r3, r6, #192 ; 0xc0 300050ac: e129f003 msr CPSR_fc, r3 *time = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) 300050b0: e59f3038 ldr r3, [pc, #56] ; 300050f0 <_TOD_Get+0x64> 300050b4: 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; 300050b8: e59f3034 ldr r3, [pc, #52] ; 300050f4 <_TOD_Get+0x68> if ( _Watchdog_Nanoseconds_since_tick_handler ) 300050bc: 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; 300050c0: e8930018 ldm r3, {r3, r4} 300050c4: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 300050c8: 0a000002 beq 300050d8 <_TOD_Get+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 300050cc: e1a0e00f mov lr, pc <== NOT EXECUTED 300050d0: e12fff12 bx r2 <== NOT EXECUTED 300050d4: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); 300050d8: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( time, &offset ); 300050dc: e1a00005 mov r0, r5 300050e0: e1a0100d mov r1, sp 300050e4: eb000797 bl 30006f48 <_Timespec_Add_to> } 300050e8: e28dd008 add sp, sp, #8 ; 0x8 300050ec: e8bd8070 pop {r4, r5, r6, pc} 300050f0: 300155b8 .word 0x300155b8 300050f4: 30015494 .word 0x30015494 300095d4 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( struct timespec *uptime ) { 300095d4: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; 300095d8: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get_uptime( struct timespec *uptime ) { 300095dc: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; 300095e0: e58d3004 str r3, [sp, #4] */ void _TOD_Get_uptime( struct timespec *uptime ) { 300095e4: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; 300095e8: e58d3000 str r3, [sp] offset.tv_nsec = 0; _ISR_Disable( level ); 300095ec: e10f6000 mrs r6, CPSR 300095f0: e38630c0 orr r3, r6, #192 ; 0xc0 300095f4: e129f003 msr CPSR_fc, r3 *uptime = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) 300095f8: e59f3038 ldr r3, [pc, #56] ; 30009638 <_TOD_Get_uptime+0x64> 300095fc: e5932000 ldr r2, [r3] offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 30009600: e59f3034 ldr r3, [pc, #52] ; 3000963c <_TOD_Get_uptime+0x68> if ( _Watchdog_Nanoseconds_since_tick_handler ) 30009604: e3520000 cmp r2, #0 ; 0x0 offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 30009608: e8930018 ldm r3, {r3, r4} 3000960c: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 30009610: 0a000002 beq 30009620 <_TOD_Get_uptime+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 30009614: e1a0e00f mov lr, pc <== NOT EXECUTED 30009618: e12fff12 bx r2 <== NOT EXECUTED 3000961c: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); 30009620: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( uptime, &offset ); 30009624: e1a00005 mov r0, r5 30009628: e1a0100d mov r1, sp 3000962c: ebfff645 bl 30006f48 <_Timespec_Add_to> } 30009630: e28dd008 add sp, sp, #8 ; 0x8 30009634: e8bd8070 pop {r4, r5, r6, pc} 30009638: 300155b8 .word 0x300155b8 3000963c: 30015484 .word 0x30015484 3000a5a4 <_Thread_Handler>: #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 3000a5a4: e59f30b0 ldr r3, [pc, #176] ; 3000a65c <_Thread_Handler+0xb8> * * Output parameters: NONE */ void _Thread_Handler( void ) { 3000a5a8: e92d4030 push {r4, r5, lr} #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 3000a5ac: 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; 3000a5b0: e59530b8 ldr r3, [r5, #184] _ISR_Set_level(level); 3000a5b4: e3a02000 mov r2, #0 ; 0x0 3000a5b8: e10f2000 mrs r2, CPSR 3000a5bc: e3c220c0 bic r2, r2, #192 ; 0xc0 3000a5c0: e1822003 orr r2, r2, r3 3000a5c4: e121f002 msr CPSR_c, r2 #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 3000a5c8: e59f2090 ldr r2, [pc, #144] ; 3000a660 <_Thread_Handler+0xbc> doneConstructors = 1; 3000a5cc: e3a03001 mov r3, #1 ; 0x1 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 3000a5d0: 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 ); 3000a5d4: 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; 3000a5d8: 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 ); 3000a5dc: ebfff2a7 bl 30007080 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 3000a5e0: ebffeee6 bl 30006180 <_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) */ 3000a5e4: e3540000 cmp r4, #0 ; 0x0 { _init (); 3000a5e8: 0b002470 bleq 300137b0 <__start_set_sysctl_set> #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 3000a5ec: e59530a0 ldr r3, [r5, #160] 3000a5f0: e3530003 cmp r3, #3 ; 0x3 3000a5f4: 979ff103 ldrls pc, [pc, r3, lsl #2] 3000a5f8: ea000011 b 3000a644 <_Thread_Handler+0xa0> <== NOT EXECUTED 3000a5fc: 3000a60c .word 0x3000a60c <== NOT EXECUTED 3000a600: 3000a614 .word 0x3000a614 <== NOT EXECUTED 3000a604: 3000a624 .word 0x3000a624 <== NOT EXECUTED 3000a608: 3000a630 .word 0x3000a630 <== NOT EXECUTED case THREAD_START_NUMERIC: executing->Wait.return_argument = 3000a60c: e59500a8 ldr r0, [r5, #168] 3000a610: ea000000 b 3000a618 <_Thread_Handler+0x74> (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); break; case THREAD_START_POINTER: executing->Wait.return_argument = 3000a614: e59500a4 ldr r0, [r5, #164] <== NOT EXECUTED 3000a618: e1a0e00f mov lr, pc 3000a61c: e595f09c ldr pc, [r5, #156] 3000a620: ea000006 b 3000a640 <_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 = 3000a624: e59500a4 ldr r0, [r5, #164] <== NOT EXECUTED 3000a628: e59510a8 ldr r1, [r5, #168] <== NOT EXECUTED 3000a62c: ea000001 b 3000a638 <_Thread_Handler+0x94> <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 3000a630: e59500a8 ldr r0, [r5, #168] <== NOT EXECUTED 3000a634: e59510a4 ldr r1, [r5, #164] <== NOT EXECUTED 3000a638: e1a0e00f mov lr, pc <== NOT EXECUTED 3000a63c: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED 3000a640: 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 ); 3000a644: e1a00005 mov r0, r5 3000a648: ebfff29b bl 300070bc <_User_extensions_Thread_exitted> _Internal_error_Occurred( 3000a64c: e3a00000 mov r0, #0 ; 0x0 3000a650: e3a01001 mov r1, #1 ; 0x1 3000a654: e3a02006 mov r2, #6 ; 0x6 3000a658: ebffeb60 bl 300053e0 <_Internal_error_Occurred> 3000a65c: 300154c4 .word 0x300154c4 3000a660: 30015258 .word 0x30015258 30006248 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 30006248: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 3000624c: 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 ) { 30006250: e1a09000 mov r9, r0 30006254: e1a05001 mov r5, r1 30006258: e1a04003 mov r4, r3 3000625c: e59d8024 ldr r8, [sp, #36] 30006260: e59da02c ldr sl, [sp, #44] 30006264: e5dd7028 ldrb r7, [sp, #40] /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 30006268: 1a00000e bne 300062a8 <_Thread_Initialize+0x60> actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 3000626c: e1a00001 mov r0, r1 30006270: e1a01003 mov r1, r3 30006274: eb000295 bl 30006cd0 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 30006278: e1500004 cmp r0, r4 3000627c: 23a03000 movcs r3, #0 ; 0x0 30006280: 33a03001 movcc r3, #1 ; 0x1 30006284: e3500000 cmp r0, #0 ; 0x0 30006288: 03833001 orreq r3, r3, #1 ; 0x1 3000628c: e3530000 cmp r3, #0 ; 0x0 return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = TRUE; 30006290: 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 ) 30006294: e1a01000 mov r1, r0 return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = TRUE; 30006298: 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; 3000629c: 0595c0cc ldreq ip, [r5, #204] if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) 300062a0: 0a000004 beq 300062b8 <_Thread_Initialize+0x70> 300062a4: ea000017 b 30006308 <_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; 300062a8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 300062ac: e5c130c0 strb r3, [r1, #192] <== NOT EXECUTED 300062b0: e1a0c006 mov ip, r6 <== NOT EXECUTED 300062b4: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 300062b8: e59f3128 ldr r3, [pc, #296] ; 300063e8 <_Thread_Initialize+0x1a0> Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 300062bc: e3a02000 mov r2, #0 ; 0x0 300062c0: e5930000 ldr r0, [r3] Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 300062c4: e585c0c8 str ip, [r5, #200] 300062c8: e1500002 cmp r0, r2 the_stack->size = size; 300062cc: e58510c4 str r1, [r5, #196] /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 300062d0: e5852100 str r2, [r5, #256] 300062d4: e5852050 str r2, [r5, #80] the_watchdog->routine = routine; 300062d8: e5852064 str r2, [r5, #100] the_watchdog->id = id; 300062dc: e5852068 str r2, [r5, #104] the_watchdog->user_data = user_data; 300062e0: e585206c str r2, [r5, #108] (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return FALSE; 300062e4: 01a06000 moveq r6, r0 /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 300062e8: 0a000008 beq 30006310 <_Thread_Initialize+0xc8> extensions_area = _Workspace_Allocate( 300062ec: e2800001 add r0, r0, #1 ; 0x1 300062f0: e1a00100 lsl r0, r0, #2 300062f4: eb00048c bl 3000752c <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 300062f8: e2506000 subs r6, r0, #0 ; 0x0 300062fc: 1a000003 bne 30006310 <_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 ); 30006300: e1a00005 mov r0, r5 <== NOT EXECUTED 30006304: eb00028c bl 30006d3c <_Thread_Stack_Free> <== NOT EXECUTED 30006308: e1a00006 mov r0, r6 3000630c: 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 ) { 30006310: e3560000 cmp r6, #0 ; 0x0 return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 30006314: 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 ) { 30006318: 0a00000a beq 30006348 <_Thread_Initialize+0x100> 3000631c: e3a02000 mov r2, #0 ; 0x0 uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 30006320: e59f00c0 ldr r0, [pc, #192] ; 300063e8 <_Thread_Initialize+0x1a0> the_thread->extensions[i] = NULL; 30006324: e1a01002 mov r1, r2 30006328: ea000002 b 30006338 <_Thread_Initialize+0xf0> 3000632c: e5953110 ldr r3, [r5, #272] 30006330: e7831102 str r1, [r3, r2, lsl #2] * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 30006334: e2822001 add r2, r2, #1 ; 0x1 30006338: e5903000 ldr r3, [r0] 3000633c: e2833001 add r3, r3, #1 ; 0x1 30006340: e1520003 cmp r2, r3 30006344: 3afffff8 bcc 3000632c <_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; 30006348: e59d3030 ldr r3, [sp, #48] switch ( budget_algorithm ) { 3000634c: 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; 30006350: 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; 30006354: 059f3090 ldreq r3, [pc, #144] ; 300063ec <_Thread_Initialize+0x1a4> } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; 30006358: e3a04000 mov r4, #0 ; 0x0 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; 3000635c: 05933000 ldreq r3, [r3] /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 30006360: e5c570ac strb r7, [r5, #172] 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; 30006364: 05853078 streq r3, [r5, #120] break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 30006368: e59d3034 ldr r3, [sp, #52] the_thread->current_state = STATES_DORMANT; 3000636c: e3a07001 mov r7, #1 ; 0x1 break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 30006370: 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 ); 30006374: e1a01008 mov r1, r8 30006378: e1a00005 mov r0, r5 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 3000637c: e585a0b0 str sl, [r5, #176] break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 30006380: e5857010 str r7, [r5, #16] the_thread->Wait.queue = NULL; 30006384: e5854044 str r4, [r5, #68] the_thread->resource_count = 0; 30006388: e585401c str r4, [r5, #28] the_thread->suspend_count = 0; 3000638c: e5854070 str r4, [r5, #112] the_thread->real_priority = priority; 30006390: e5858018 str r8, [r5, #24] the_thread->Start.initial_priority = priority; 30006394: e58580bc str r8, [r5, #188] _Thread_Set_priority( the_thread, priority ); 30006398: eb0001b6 bl 30006a78 <_Thread_Set_priority> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 3000639c: e1d530b8 ldrh r3, [r5, #8] 300063a0: 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; 300063a4: e5854088 str r4, [r5, #136] 300063a8: e7825103 str r5, [r2, r3, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 300063ac: 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 ); 300063b0: e1a00005 mov r0, r5 300063b4: 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; 300063b8: 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 ); 300063bc: eb000362 bl 3000714c <_User_extensions_Thread_create> if ( !extension_status ) { 300063c0: e1500004 cmp r0, r4 300063c4: 11a00007 movne r0, r7 300063c8: 18bd87f0 popne {r4, r5, r6, r7, r8, r9, sl, pc} if ( extensions_area ) 300063cc: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 300063d0: 11a00006 movne r0, r6 <== NOT EXECUTED 300063d4: 1b000450 blne 3000751c <_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 ); 300063d8: e1a00005 mov r0, r5 <== NOT EXECUTED 300063dc: eb000256 bl 30006d3c <_Thread_Stack_Free> <== NOT EXECUTED 300063e0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return FALSE; } return TRUE; } 300063e4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 300063e8: 300154a4 .word 0x300154a4 300063ec: 300153c4 .word 0x300153c4 300076b0 <_Thread_Restart>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 300076b0: e5903010 ldr r3, [r0, #16] bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 300076b4: e92d4070 push {r4, r5, r6, lr} if ( !_States_Is_dormant( the_thread->current_state ) ) { 300076b8: e3130001 tst r3, #1 ; 0x1 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 300076bc: e1a04000 mov r4, r0 300076c0: e1a06001 mov r6, r1 300076c4: e1a05002 mov r5, r2 if ( !_States_Is_dormant( the_thread->current_state ) ) { 300076c8: 13a00000 movne r0, #0 ; 0x0 300076cc: 18bd8070 popne {r4, r5, r6, pc} _Thread_Set_transient( the_thread ); 300076d0: eb000083 bl 300078e4 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 300076d4: e1a01006 mov r1, r6 300076d8: e1a02005 mov r2, r5 300076dc: e1a00004 mov r0, r4 300076e0: eb000ce4 bl 3000aa78 <_Thread_Reset> _Thread_Load_environment( the_thread ); 300076e4: e1a00004 mov r0, r4 300076e8: eb000c04 bl 3000a700 <_Thread_Load_environment> _Thread_Ready( the_thread ); 300076ec: e1a00004 mov r0, r4 300076f0: eb000c9d bl 3000a96c <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 300076f4: e1a00004 mov r0, r4 300076f8: eb0001e7 bl 30007e9c <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 300076fc: e59f301c ldr r3, [pc, #28] ; 30007720 <_Thread_Restart+0x70> 30007700: e5933000 ldr r3, [r3] 30007704: e1540003 cmp r4, r3 30007708: 13a00001 movne r0, #1 ; 0x1 3000770c: 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 ); 30007710: e28400d0 add r0, r4, #208 ; 0xd0 30007714: eb0002f0 bl 300082dc <_CPU_Context_restore> 30007718: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return TRUE; } return FALSE; } 3000771c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30007720: 300188c4 .word 0x300188c4 300083e4 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 300083e4: e92d4030 push {r4, r5, lr} 300083e8: e20110ff and r1, r1, #255 ; 0xff 300083ec: e1a04000 mov r4, r0 ISR_Level level; States_Control current_state; _ISR_Disable( level ); 300083f0: e10f5000 mrs r5, CPSR 300083f4: e38530c0 orr r3, r5, #192 ; 0xc0 300083f8: e129f003 msr CPSR_fc, r3 if ( force == TRUE ) 300083fc: e3510000 cmp r1, #0 ; 0x0 the_thread->suspend_count = 0; else the_thread->suspend_count--; 30008400: 05903070 ldreq r3, [r0, #112] States_Control current_state; _ISR_Disable( level ); if ( force == TRUE ) the_thread->suspend_count = 0; 30008404: 13a03000 movne r3, #0 ; 0x0 else the_thread->suspend_count--; 30008408: 02433001 subeq r3, r3, #1 ; 0x1 3000840c: e5803070 str r3, [r0, #112] if ( the_thread->suspend_count > 0 ) { 30008410: e5903070 ldr r3, [r0, #112] 30008414: e3530000 cmp r3, #0 ; 0x0 30008418: 0a000001 beq 30008424 <_Thread_Resume+0x40> _ISR_Enable( level ); 3000841c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 30008420: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED return; } current_state = the_thread->current_state; 30008424: e5903010 ldr r3, [r0, #16] if ( current_state & STATES_SUSPENDED ) { 30008428: e3130002 tst r3, #2 ; 0x2 3000842c: 0a000028 beq 300084d4 <_Thread_Resume+0xf0> 30008430: e3c33002 bic r3, r3, #2 ; 0x2 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 30008434: e3530000 cmp r3, #0 ; 0x0 return; } current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = 30008438: e5803010 str r3, [r0, #16] the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 3000843c: 1a000024 bne 300084d4 <_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; 30008440: e5900090 ldr r0, [r0, #144] 30008444: e1d429b6 ldrh r2, [r4, #150] 30008448: e1d030b0 ldrh r3, [r0] _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 3000844c: e594108c ldr r1, [r4, #140] 30008450: e1833002 orr r3, r3, r2 _Priority_Major_bit_map |= the_priority_map->ready_major; 30008454: e59fc080 ldr ip, [pc, #128] ; 300084dc <_Thread_Resume+0xf8> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 30008458: e1c030b0 strh r3, [r0] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 3000845c: e2813004 add r3, r1, #4 ; 0x4 30008460: e5843000 str r3, [r4] _Priority_Major_bit_map |= the_priority_map->ready_major; 30008464: e1d429b4 ldrh r2, [r4, #148] 30008468: e1dc30b0 ldrh r3, [ip] old_last_node = the_chain->last; 3000846c: e5910008 ldr r0, [r1, #8] 30008470: e1833002 orr r3, r3, r2 the_chain->last = the_node; 30008474: e5814008 str r4, [r1, #8] 30008478: e1cc30b0 strh r3, [ip] old_last_node->next = the_node; the_node->previous = old_last_node; 3000847c: 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; 30008480: e5804000 str r4, [r0] _ISR_Flash( level ); 30008484: e10f3000 mrs r3, CPSR 30008488: e129f005 msr CPSR_fc, r5 3000848c: e129f003 msr CPSR_fc, r3 if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 30008490: e59f1048 ldr r1, [pc, #72] ; 300084e0 <_Thread_Resume+0xfc> 30008494: e5942014 ldr r2, [r4, #20] 30008498: e5913000 ldr r3, [r1] 3000849c: e5933014 ldr r3, [r3, #20] 300084a0: e1520003 cmp r2, r3 300084a4: 2a00000a bcs 300084d4 <_Thread_Resume+0xf0> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 300084a8: e59f3034 ldr r3, [pc, #52] ; 300084e4 <_Thread_Resume+0x100> _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; 300084ac: e5814000 str r4, [r1] if ( _Thread_Executing->is_preemptible || 300084b0: e5933000 ldr r3, [r3] 300084b4: e5d33076 ldrb r3, [r3, #118] 300084b8: e3530000 cmp r3, #0 ; 0x0 300084bc: 1a000001 bne 300084c8 <_Thread_Resume+0xe4> 300084c0: e3520000 cmp r2, #0 ; 0x0 300084c4: 1a000002 bne 300084d4 <_Thread_Resume+0xf0> the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 300084c8: e59f3018 ldr r3, [pc, #24] ; 300084e8 <_Thread_Resume+0x104> 300084cc: e3a02001 mov r2, #1 ; 0x1 300084d0: e5c32000 strb r2, [r3] } } } _ISR_Enable( level ); 300084d4: e129f005 msr CPSR_fc, r5 300084d8: e8bd8030 pop {r4, r5, pc} 300084dc: 300215d8 .word 0x300215d8 300084e0: 300215b0 .word 0x300215b0 300084e4: 300215e4 .word 0x300215e4 300084e8: 300215f4 .word 0x300215f4 30006cd0 <_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 ) { 30006cd0: e59f305c ldr r3, [pc, #92] ; 30006d34 <_Thread_Stack_Allocate+0x64> size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 30006cd4: e92d4030 push {r4, r5, lr} * 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 ) { 30006cd8: e5932000 ldr r2, [r3] size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 30006cdc: e59f3054 ldr r3, [pc, #84] ; 30006d38 <_Thread_Stack_Allocate+0x68> * 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 ) { 30006ce0: e5922020 ldr r2, [r2, #32] size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 30006ce4: e5933000 ldr r3, [r3] 30006ce8: e1a05000 mov r5, r0 30006cec: e1510003 cmp r1, r3 30006cf0: 21a04001 movcs r4, r1 30006cf4: 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 ) { 30006cf8: e3520000 cmp r2, #0 ; 0x0 30006cfc: 0a000003 beq 30006d10 <_Thread_Stack_Allocate+0x40> stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 30006d00: e1a00004 mov r0, r4 <== NOT EXECUTED 30006d04: e1a0e00f mov lr, pc <== NOT EXECUTED 30006d08: e12fff12 bx r2 <== NOT EXECUTED 30006d0c: ea000002 b 30006d1c <_Thread_Stack_Allocate+0x4c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; 30006d10: 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 ); 30006d14: e1a00004 mov r0, r4 30006d18: eb000203 bl 3000752c <_Workspace_Allocate> 30006d1c: e1a03000 mov r3, r0 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 30006d20: e3500000 cmp r0, #0 ; 0x0 30006d24: 11a00004 movne r0, r4 30006d28: 03a00000 moveq r0, #0 ; 0x0 } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 30006d2c: e58530cc str r3, [r5, #204] return the_stack_size; } 30006d30: e8bd8030 pop {r4, r5, pc} 30006d34: 3001549c .word 0x3001549c 30006d38: 30014644 .word 0x30014644 30006d3c <_Thread_Stack_Free>: { /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 30006d3c: e5d030c0 ldrb r3, [r0, #192] */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 30006d40: 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 ) 30006d44: e3530000 cmp r3, #0 ; 0x0 30006d48: 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 ) 30006d4c: e59f3028 ldr r3, [pc, #40] ; 30006d7c <_Thread_Stack_Free+0x40> 30006d50: e5933000 ldr r3, [r3] 30006d54: e5933024 ldr r3, [r3, #36] 30006d58: e3530000 cmp r3, #0 ; 0x0 30006d5c: 0a000003 beq 30006d70 <_Thread_Stack_Free+0x34> (*_Configuration_Table->stack_free_hook)( 30006d60: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 30006d64: e1a0e00f mov lr, pc <== NOT EXECUTED 30006d68: e12fff13 bx r3 <== NOT EXECUTED 30006d6c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 30006d70: e59000c8 ldr r0, [r0, #200] } 30006d74: 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 ); 30006d78: ea0001e7 b 3000751c <_Workspace_Free> 30006d7c: 3001549c .word 0x3001549c 30006e10 <_Thread_Tickle_timeslice>: void _Thread_Tickle_timeslice( void ) { Thread_Control *executing; executing = _Thread_Executing; 30006e10: e59f3088 ldr r3, [pc, #136] ; 30006ea0 <_Thread_Tickle_timeslice+0x90> * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 30006e14: e92d4010 push {r4, lr} Thread_Control *executing; executing = _Thread_Executing; 30006e18: e5934000 ldr r4, [r3] /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 30006e1c: e5d43076 ldrb r3, [r4, #118] 30006e20: e3530000 cmp r3, #0 ; 0x0 30006e24: 08bd8010 popeq {r4, pc} return; if ( !_States_Is_ready( executing->current_state ) ) 30006e28: e5943010 ldr r3, [r4, #16] 30006e2c: e3530000 cmp r3, #0 ; 0x0 30006e30: 18bd8010 popne {r4, pc} /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 30006e34: e594307c ldr r3, [r4, #124] 30006e38: e3530001 cmp r3, #1 ; 0x1 30006e3c: 38bd8010 popcc {r4, pc} 30006e40: e3530002 cmp r3, #2 ; 0x2 30006e44: 9a000002 bls 30006e54 <_Thread_Tickle_timeslice+0x44> 30006e48: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 30006e4c: 18bd8010 popne {r4, pc} <== NOT EXECUTED 30006e50: ea000009 b 30006e7c <_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 ) { 30006e54: e5943078 ldr r3, [r4, #120] 30006e58: e2433001 sub r3, r3, #1 ; 0x1 30006e5c: e3530000 cmp r3, #0 ; 0x0 30006e60: e5843078 str r3, [r4, #120] 30006e64: c8bd8010 popgt {r4, pc} _Thread_Reset_timeslice(); 30006e68: eb000ba3 bl 30009cfc <_Thread_Reset_timeslice> executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 30006e6c: e59f3030 ldr r3, [pc, #48] ; 30006ea4 <_Thread_Tickle_timeslice+0x94> 30006e70: e5933000 ldr r3, [r3] 30006e74: e5843078 str r3, [r4, #120] 30006e78: e8bd8010 pop {r4, pc} } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 30006e7c: e5943078 ldr r3, [r4, #120] <== NOT EXECUTED 30006e80: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30006e84: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30006e88: e5843078 str r3, [r4, #120] <== NOT EXECUTED 30006e8c: 18bd8010 popne {r4, pc} <== NOT EXECUTED (*executing->budget_callout)( executing ); 30006e90: e1a00004 mov r0, r4 <== NOT EXECUTED 30006e94: e1a0e00f mov lr, pc <== NOT EXECUTED 30006e98: e594f080 ldr pc, [r4, #128] <== NOT EXECUTED 30006e9c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30006ea0: 300154c4 .word 0x300154c4 30006ea4: 300153c4 .word 0x300153c4 30006710 <_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 ) { 30006710: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 30006714: e1a0c001 mov ip, r1 Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 30006718: e5915014 ldr r5, [r1, #20] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000671c: e281303c add r3, r1, #60 ; 0x3c 30006720: e58c3038 str r3, [ip, #56] the_chain->permanent_null = NULL; 30006724: e3a03000 mov r3, #0 ; 0x0 RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); 30006728: e1a04325 lsr r4, r5, #6 3000672c: e58c303c str r3, [ip, #60] header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 30006730: e283300c add r3, r3, #12 ; 0xc 30006734: e0260493 mla r6, r3, r4, r0 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 30006738: e3150020 tst r5, #32 ; 0x20 the_chain->last = _Chain_Head(the_chain); 3000673c: e2811038 add r1, r1, #56 ; 0x38 30006740: 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 ) { 30006744: 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; 30006748: e5908038 ldr r8, [r0, #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; 3000674c: 159fa19c ldrne sl, [pc, #412] ; 300068f0 <_Thread_queue_Enqueue_priority+0x1e0> _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 30006750: 12864008 addne r4, 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 ) ) 30006754: 1a00002d bne 30006810 <_Thread_queue_Enqueue_priority+0x100> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30006758: e3a03003 mov r3, #3 ; 0x3 3000675c: e0030394 mul r3, r4, r3 30006760: e2833001 add r3, r3, #1 ; 0x1 30006764: e0804103 add r4, r0, r3, lsl #2 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; 30006768: 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 ); 3000676c: e10f6000 mrs r6, CPSR 30006770: e38630c0 orr r3, r6, #192 ; 0xc0 30006774: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->first; 30006778: e3e02000 mvn r2, #0 ; 0x0 3000677c: e5971000 ldr r1, [r7] 30006780: ea000011 b 300067cc <_Thread_queue_Enqueue_priority+0xbc> while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; 30006784: e5912014 ldr r2, [r1, #20] if ( priority <= search_priority ) 30006788: e1550002 cmp r5, r2 3000678c: 9a000010 bls 300067d4 <_Thread_queue_Enqueue_priority+0xc4> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.next; 30006790: e5911000 ldr r1, [r1] if ( _Chain_Is_tail( header, (Chain_Node *)search_thread ) ) 30006794: e1510004 cmp r1, r4 30006798: 0a00000d beq 300067d4 <_Thread_queue_Enqueue_priority+0xc4> break; search_priority = search_thread->current_priority; 3000679c: e5912014 ldr r2, [r1, #20] if ( priority <= search_priority ) 300067a0: e1550002 cmp r5, r2 300067a4: 9a00000a bls 300067d4 <_Thread_queue_Enqueue_priority+0xc4> break; #endif _ISR_Flash( level ); 300067a8: e10f3000 mrs r3, CPSR 300067ac: e129f006 msr CPSR_fc, r6 300067b0: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 300067b4: e5913010 ldr r3, [r1, #16] 300067b8: e1180003 tst r8, r3 300067bc: 1a000001 bne 300067c8 <_Thread_queue_Enqueue_priority+0xb8> _ISR_Enable( level ); 300067c0: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 300067c4: eaffffe8 b 3000676c <_Thread_queue_Enqueue_priority+0x5c> <== NOT EXECUTED goto restart_forward_search; } search_thread = 300067c8: 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 ) ) { 300067cc: e1510004 cmp r1, r4 300067d0: 1affffeb bne 30006784 <_Thread_queue_Enqueue_priority+0x74> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 300067d4: e5903030 ldr r3, [r0, #48] 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 ) ) { 300067d8: e1a04006 mov r4, r6 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 300067dc: e3530001 cmp r3, #1 ; 0x1 300067e0: 1a00003f bne 300068e4 <_Thread_queue_Enqueue_priority+0x1d4> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 300067e4: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 300067e8: 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; 300067ec: e5803030 str r3, [r0, #48] if ( priority == search_priority ) 300067f0: 0a000031 beq 300068bc <_Thread_queue_Enqueue_priority+0x1ac> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 300067f4: e5913004 ldr r3, [r1, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 300067f8: 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; 300067fc: e58c0044 str r0, [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; 30006800: e583c000 str ip, [r3] search_node->previous = the_node; 30006804: e581c004 str ip, [r1, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 30006808: e129f006 msr CPSR_fc, r6 3000680c: ea000032 b 300068dc <_Thread_queue_Enqueue_priority+0x1cc> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 30006810: e5da3000 ldrb r3, [sl] 30006814: e2832001 add r2, r3, #1 ; 0x1 _ISR_Disable( level ); 30006818: e10f7000 mrs r7, CPSR 3000681c: e38730c0 orr r3, r7, #192 ; 0xc0 30006820: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->last; 30006824: e5941000 ldr r1, [r4] 30006828: ea000011 b 30006874 <_Thread_queue_Enqueue_priority+0x164> while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; 3000682c: e5912014 ldr r2, [r1, #20] if ( priority >= search_priority ) 30006830: e1550002 cmp r5, r2 30006834: 2a000010 bcs 3000687c <_Thread_queue_Enqueue_priority+0x16c> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 30006838: e5911004 ldr r1, [r1, #4] if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 3000683c: e1510006 cmp r1, r6 30006840: 0a00000d beq 3000687c <_Thread_queue_Enqueue_priority+0x16c> break; search_priority = search_thread->current_priority; 30006844: e5912014 ldr r2, [r1, #20] if ( priority >= search_priority ) 30006848: e1550002 cmp r5, r2 3000684c: 2a00000a bcs 3000687c <_Thread_queue_Enqueue_priority+0x16c> break; #endif _ISR_Flash( level ); 30006850: e10f3000 mrs r3, CPSR 30006854: e129f007 msr CPSR_fc, r7 30006858: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 3000685c: e5913010 ldr r3, [r1, #16] 30006860: e1180003 tst r8, r3 30006864: 1a000001 bne 30006870 <_Thread_queue_Enqueue_priority+0x160> _ISR_Enable( level ); 30006868: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED 3000686c: eaffffe7 b 30006810 <_Thread_queue_Enqueue_priority+0x100> <== NOT EXECUTED goto restart_reverse_search; } search_thread = (Thread_Control *) 30006870: 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 ) ) { 30006874: e1510006 cmp r1, r6 30006878: 1affffeb bne 3000682c <_Thread_queue_Enqueue_priority+0x11c> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 3000687c: e5903030 ldr r3, [r0, #48] 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 ) ) { 30006880: e1a04007 mov r4, r7 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006884: e3530001 cmp r3, #1 ; 0x1 30006888: 1a000015 bne 300068e4 <_Thread_queue_Enqueue_priority+0x1d4> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 3000688c: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 30006890: 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; 30006894: e5803030 str r3, [r0, #48] if ( priority == search_priority ) 30006898: 0a000007 beq 300068bc <_Thread_queue_Enqueue_priority+0x1ac> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 3000689c: e5913000 ldr r3, [r1] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 300068a0: 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; 300068a4: 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; 300068a8: e58c0044 str r0, [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; 300068ac: e581c000 str ip, [r1] next_node->previous = the_node; 300068b0: e583c004 str ip, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 300068b4: e129f007 msr CPSR_fc, r7 300068b8: ea000007 b 300068dc <_Thread_queue_Enqueue_priority+0x1cc> 300068bc: 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; 300068c0: e5932004 ldr r2, [r3, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 300068c4: e58c3000 str r3, [ip] the_node->previous = previous_node; 300068c8: e58c2004 str r2, [ip, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 300068cc: e58c0044 str r0, [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; 300068d0: e582c000 str ip, [r2] search_node->previous = the_node; 300068d4: e583c004 str ip, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 300068d8: e129f004 msr CPSR_fc, r4 300068dc: e3a00001 mov r0, #1 ; 0x1 300068e0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; 300068e4: e5900030 ldr r0, [r0, #48] <== NOT EXECUTED * 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; 300068e8: e5894000 str r4, [r9] <== NOT EXECUTED return the_thread_queue->sync_state; } 300068ec: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 300068f0: 30014648 .word 0x30014648 3000a664 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 3000a664: e92d4010 push {r4, lr} 3000a668: e1a04001 mov r4, r1 ISR_Level level; _ISR_Disable( level ); 3000a66c: e10f0000 mrs r0, CPSR 3000a670: e38030c0 orr r3, r0, #192 ; 0xc0 3000a674: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 3000a678: e59f3064 ldr r3, [pc, #100] ; 3000a6e4 <_Thread_queue_Extract_fifo+0x80> 3000a67c: e5912010 ldr r2, [r1, #16] 3000a680: e0023003 and r3, r2, r3 3000a684: e3530000 cmp r3, #0 ; 0x0 3000a688: 1a000001 bne 3000a694 <_Thread_queue_Extract_fifo+0x30> _ISR_Enable( level ); 3000a68c: 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 } 3000a690: 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 ) ) { 3000a694: e5913050 ldr r3, [r1, #80] { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 3000a698: e5942004 ldr r2, [r4, #4] ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 3000a69c: e5911000 ldr r1, [r1] 3000a6a0: e3530002 cmp r3, #2 ; 0x2 return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 3000a6a4: e3a03000 mov r3, #0 ; 0x0 previous = the_node->previous; next->previous = previous; previous->next = next; 3000a6a8: e5821000 str r1, [r2] 3000a6ac: e5843044 str r3, [r4, #68] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 3000a6b0: e5812004 str r2, [r1, #4] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 3000a6b4: 0a000001 beq 3000a6c0 <_Thread_queue_Extract_fifo+0x5c> _ISR_Enable( level ); 3000a6b8: e129f000 msr CPSR_fc, r0 3000a6bc: ea000004 b 3000a6d4 <_Thread_queue_Extract_fifo+0x70> 3000a6c0: e3a03003 mov r3, #3 ; 0x3 3000a6c4: e5843050 str r3, [r4, #80] } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 3000a6c8: e129f000 msr CPSR_fc, r0 (void) _Watchdog_Remove( &the_thread->Timer ); 3000a6cc: e2840048 add r0, r4, #72 ; 0x48 3000a6d0: ebfff343 bl 300073e4 <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 3000a6d4: e59f100c ldr r1, [pc, #12] ; 3000a6e8 <_Thread_queue_Extract_fifo+0x84> 3000a6d8: e1a00004 mov r0, r4 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 3000a6dc: e8bd4010 pop {r4, lr} 3000a6e0: eaffeda6 b 30005d80 <_Thread_Clear_state> 3000a6e4: 0003bee0 .word 0x0003bee0 3000a6e8: 1003fff8 .word 0x1003fff8 30009ac4 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { 30009ac4: e92d4070 push {r4, r5, r6, lr} 30009ac8: e1a04001 mov r4, r1 30009acc: 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 ); 30009ad0: e10fc000 mrs ip, CPSR 30009ad4: e38c30c0 orr r3, ip, #192 ; 0xc0 30009ad8: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 30009adc: e59f30b4 ldr r3, [pc, #180] ; 30009b98 <_Thread_queue_Extract_priority_helper+0xd4> 30009ae0: e5912010 ldr r2, [r1, #16] 30009ae4: e0023003 and r3, r2, r3 30009ae8: e3530000 cmp r3, #0 ; 0x0 30009aec: 1a000001 bne 30009af8 <_Thread_queue_Extract_priority_helper+0x34> _ISR_Enable( level ); 30009af0: e129f00c msr CPSR_fc, ip <== NOT EXECUTED 30009af4: 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)); 30009af8: e5911038 ldr r1, [r1, #56] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 30009afc: e284303c add r3, r4, #60 ; 0x3c 30009b00: e1510003 cmp r1, r3 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 30009b04: 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; 30009b08: 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; 30009b0c: 05832000 streq r2, [r3] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 30009b10: 0a00000e beq 30009b50 <_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; 30009b14: e5945040 ldr r5, [r4, #64] new_second_node = new_first_node->next; 30009b18: e5910000 ldr r0, [r1] previous_node->next = new_first_node; next_node->previous = new_first_node; 30009b1c: 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; 30009b20: e5831000 str r1, [r3] next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 30009b24: e881000c stm r1, {r2, r3} if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 30009b28: e5942038 ldr r2, [r4, #56] 30009b2c: e5943040 ldr r3, [r4, #64] 30009b30: e1520003 cmp r2, r3 30009b34: 0a000005 beq 30009b50 <_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 ); 30009b38: 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 = 30009b3c: e2813038 add r3, r1, #56 ; 0x38 30009b40: e5803004 str r3, [r0, #4] _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 30009b44: e5810038 str r0, [r1, #56] new_first_thread->Wait.Block2n.last = last_node; 30009b48: e5815040 str r5, [r1, #64] last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 30009b4c: e5852000 str r2, [r5] /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 30009b50: e3560000 cmp r6, #0 ; 0x0 30009b54: 0a000001 beq 30009b60 <_Thread_queue_Extract_priority_helper+0x9c> _ISR_Enable( level ); 30009b58: e129f00c msr CPSR_fc, ip 30009b5c: e8bd8070 pop {r4, r5, r6, pc} return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 30009b60: e5943050 ldr r3, [r4, #80] 30009b64: e3530002 cmp r3, #2 ; 0x2 30009b68: 0a000001 beq 30009b74 <_Thread_queue_Extract_priority_helper+0xb0> _ISR_Enable( level ); 30009b6c: e129f00c msr CPSR_fc, ip 30009b70: ea000004 b 30009b88 <_Thread_queue_Extract_priority_helper+0xc4> 30009b74: e3a03003 mov r3, #3 ; 0x3 <== NOT EXECUTED 30009b78: e5843050 str r3, [r4, #80] <== NOT EXECUTED } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 30009b7c: e129f00c msr CPSR_fc, ip <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 30009b80: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED 30009b84: ebfff616 bl 300073e4 <_Watchdog_Remove> <== NOT EXECUTED 30009b88: e59f100c ldr r1, [pc, #12] ; 30009b9c <_Thread_queue_Extract_priority_helper+0xd8> 30009b8c: e1a00004 mov r0, r4 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 30009b90: e8bd4070 pop {r4, r5, r6, lr} 30009b94: eafff079 b 30005d80 <_Thread_Clear_state> 30009b98: 0003bee0 .word 0x0003bee0 30009b9c: 1003fff8 .word 0x1003fff8 300105c4 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 300105c4: e59f3038 ldr r3, [pc, #56] ; 30010604 <_Timespec_From_ticks+0x40> <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 300105c8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 300105cc: e5933000 ldr r3, [r3] <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 300105d0: e1a05001 mov r5, r1 <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 300105d4: e0040093 mul r4, r3, r0 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 300105d8: e59f1028 ldr r1, [pc, #40] ; 30010608 <_Timespec_From_ticks+0x44> <== NOT EXECUTED 300105dc: e1a00004 mov r0, r4 <== NOT EXECUTED 300105e0: ebffc0c8 bl 30000908 <__aeabi_uidiv> <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 300105e4: e59f101c ldr r1, [pc, #28] ; 30010608 <_Timespec_From_ticks+0x44> <== NOT EXECUTED { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 300105e8: e5850000 str r0, [r5] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 300105ec: e1a00004 mov r0, r4 <== NOT EXECUTED 300105f0: eb002e09 bl 3001be1c <__umodsi3> <== NOT EXECUTED 300105f4: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED 300105f8: e0030390 mul r3, r0, r3 <== NOT EXECUTED 300105fc: e5853004 str r3, [r5, #4] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 30010600: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30010604: 30023210 .word 0x30023210 30010608: 000f4240 .word 0x000f4240 3001060c <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) 3001060c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30010610: 0a00000a beq 30010640 <_Timespec_Is_valid+0x34> <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 30010614: e5903000 ldr r3, [r0] <== NOT EXECUTED 30010618: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001061c: ba000007 blt 30010640 <_Timespec_Is_valid+0x34> <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 30010620: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED 30010624: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30010628: ba000004 blt 30010640 <_Timespec_Is_valid+0x34> <== NOT EXECUTED 3001062c: e59f3014 ldr r3, [pc, #20] ; 30010648 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED 30010630: e1500003 cmp r0, r3 <== NOT EXECUTED 30010634: 83a00000 movhi r0, #0 ; 0x0 <== NOT EXECUTED 30010638: 93a00001 movls r0, #1 ; 0x1 <== NOT EXECUTED 3001063c: e12fff1e bx lr <== NOT EXECUTED 30010640: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 30010644: e12fff1e bx lr <== NOT EXECUTED 30010648: 3b9ac9ff .word 0x3b9ac9ff 3001064c <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 3001064c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 30010650: e5907000 ldr r7, [r0] <== NOT EXECUTED */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 30010654: e1a06000 mov r6, r0 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 30010658: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 3001065c: 1a000002 bne 3001066c <_Timespec_To_ticks+0x20> <== NOT EXECUTED 30010660: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED 30010664: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30010668: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 3001066c: e59f3030 ldr r3, [pc, #48] ; 300106a4 <_Timespec_To_ticks+0x58> <== NOT EXECUTED 30010670: e59f0030 ldr r0, [pc, #48] ; 300106a8 <_Timespec_To_ticks+0x5c> <== NOT EXECUTED 30010674: e5935000 ldr r5, [r3] <== NOT EXECUTED 30010678: e1a01005 mov r1, r5 <== NOT EXECUTED 3001067c: ebffc0a1 bl 30000908 <__aeabi_uidiv> <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 30010680: 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; 30010684: e0040097 mul r4, r7, r0 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 30010688: e5960004 ldr r0, [r6, #4] <== NOT EXECUTED 3001068c: ebffc09d bl 30000908 <__aeabi_uidiv> <== NOT EXECUTED 30010690: e1a01005 mov r1, r5 <== NOT EXECUTED 30010694: ebffc09b bl 30000908 <__aeabi_uidiv> <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 30010698: e0900004 adds r0, r0, r4 <== NOT EXECUTED 3001069c: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return ticks; return 1; } 300106a0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 300106a4: 30023210 .word 0x30023210 300106a8: 000f4240 .word 0x000f4240 3000b6a4 <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 3000b6a4: e92d4010 push {r4, lr} 3000b6a8: e1a04000 mov r4, r0 _Chain_Extract( &the_extension->Node ); 3000b6ac: eb001061 bl 3000f838 <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 3000b6b0: e5943024 ldr r3, [r4, #36] 3000b6b4: e3530000 cmp r3, #0 ; 0x0 3000b6b8: 08bd8010 popeq {r4, pc} _Chain_Extract( &the_extension->Switch.Node ); 3000b6bc: e2840008 add r0, r4, #8 ; 0x8 <== NOT EXECUTED } 3000b6c0: 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 ); 3000b6c4: ea00105b b 3000f838 <_Chain_Extract> <== NOT EXECUTED 30007274 <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 30007274: e59f30fc ldr r3, [pc, #252] ; 30007378 <_Watchdog_Insert+0x104> void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 30007278: e92d41f0 push {r4, r5, r6, r7, r8, lr} 3000727c: e1a0c001 mov ip, r1 30007280: e1a06000 mov r6, r0 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 30007284: e5934000 ldr r4, [r3] _ISR_Disable( level ); 30007288: e10f5000 mrs r5, CPSR 3000728c: e38530c0 orr r3, r5, #192 ; 0xc0 30007290: 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 ) { 30007294: e5913008 ldr r3, [r1, #8] 30007298: e3530000 cmp r3, #0 ; 0x0 3000729c: 0a000001 beq 300072a8 <_Watchdog_Insert+0x34> _ISR_Enable( level ); 300072a0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 300072a4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 300072a8: e59f30cc ldr r3, [pc, #204] ; 3000737c <_Watchdog_Insert+0x108> if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 300072ac: e59f70cc ldr r7, [pc, #204] ; 30007380 <_Watchdog_Insert+0x10c> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 300072b0: e5932000 ldr r2, [r3] if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 300072b4: e1a08007 mov r8, r7 _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 300072b8: e2822001 add r2, r2, #1 ; 0x1 300072bc: e5832000 str r2, [r3] if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 300072c0: e3a03001 mov r3, #1 ; 0x1 300072c4: e5813008 str r3, [r1, #8] _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 300072c8: 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 ; 300072cc: e5961000 ldr r1, [r6] ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 300072d0: e3500000 cmp r0, #0 ; 0x0 300072d4: 0a000014 beq 3000732c <_Watchdog_Insert+0xb8> 300072d8: e5913000 ldr r3, [r1] 300072dc: e3530000 cmp r3, #0 ; 0x0 300072e0: 0a000011 beq 3000732c <_Watchdog_Insert+0xb8> break; if ( delta_interval < after->delta_interval ) { 300072e4: e5912010 ldr r2, [r1, #16] 300072e8: e1500002 cmp r0, r2 after->delta_interval -= delta_interval; 300072ec: 30603002 rsbcc r3, r0, r2 300072f0: 35813010 strcc r3, [r1, #16] 300072f4: 3a00000c bcc 3000732c <_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 ); 300072f8: e10f3000 mrs r3, CPSR 300072fc: e129f005 msr CPSR_fc, r5 30007300: e129f003 msr CPSR_fc, r3 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 30007304: e59c3008 ldr r3, [ip, #8] if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 30007308: e0620000 rsb r0, r2, r0 * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 3000730c: e3530001 cmp r3, #1 ; 0x1 30007310: 1a000010 bne 30007358 <_Watchdog_Insert+0xe4> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 30007314: e5973000 ldr r3, [r7] 30007318: e1530004 cmp r3, r4 _Watchdog_Sync_level = insert_isr_nest_level; 3000731c: 85884000 strhi r4, [r8] 30007320: 8affffe8 bhi 300072c8 <_Watchdog_Insert+0x54> RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 30007324: e5911000 ldr r1, [r1] 30007328: eaffffe8 b 300072d0 <_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; 3000732c: e59f3050 ldr r3, [pc, #80] ; 30007384 <_Watchdog_Insert+0x110> _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 30007330: e5912004 ldr r2, [r1, #4] the_watchdog->start_time = _Watchdog_Ticks_since_boot; 30007334: e5933000 ldr r3, [r3] ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 30007338: e5921000 ldr r1, [r2] 3000733c: e58c3014 str r3, [ip, #20] RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 30007340: e3a03002 mov r3, #2 ; 0x2 after_node->next = the_node; 30007344: e582c000 str ip, [r2] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 30007348: e98c000c stmib ip, {r2, r3} } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 3000734c: 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; 30007350: 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; 30007354: 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; 30007358: e59f3020 ldr r3, [pc, #32] ; 30007380 <_Watchdog_Insert+0x10c> _Watchdog_Sync_count--; 3000735c: e59f2018 ldr r2, [pc, #24] ; 3000737c <_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; 30007360: e5834000 str r4, [r3] _Watchdog_Sync_count--; 30007364: e5923000 ldr r3, [r2] 30007368: e2433001 sub r3, r3, #1 ; 0x1 3000736c: e5823000 str r3, [r2] _ISR_Enable( level ); 30007370: e129f005 msr CPSR_fc, r5 30007374: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30007378: 300154a0 .word 0x300154a0 3000737c: 30015560 .word 0x30015560 30007380: 300154c0 .word 0x300154c0 30007384: 30015564 .word 0x30015564 30007564 <_Workspace_Handler_initialization>: */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 30007564: e92d4030 push {r4, r5, lr} uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 30007568: e2504000 subs r4, r0, #0 ; 0x0 */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 3000756c: e1a05001 mov r5, r1 uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 30007570: 0a000001 beq 3000757c <_Workspace_Handler_initialization+0x18> 30007574: e2141003 ands r1, r4, #3 ; 0x3 30007578: 0a000003 beq 3000758c <_Workspace_Handler_initialization+0x28> _Internal_error_Occurred( 3000757c: e3a00000 mov r0, #0 ; 0x0 30007580: e3a01001 mov r1, #1 ; 0x1 30007584: e3a02002 mov r2, #2 ; 0x2 30007588: ea00000e b 300075c8 <_Workspace_Handler_initialization+0x64> INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) 3000758c: e59f3038 ldr r3, [pc, #56] ; 300075cc <_Workspace_Handler_initialization+0x68> 30007590: e5933000 ldr r3, [r3] 30007594: e5d33028 ldrb r3, [r3, #40] 30007598: e3530000 cmp r3, #0 ; 0x0 memset( starting_address, 0, size ); 3000759c: 11a02005 movne r2, r5 300075a0: 1b000e77 blne 3000af84 memory_available = _Heap_Initialize( 300075a4: e1a01004 mov r1, r4 300075a8: e1a02005 mov r2, r5 300075ac: e59f001c ldr r0, [pc, #28] ; 300075d0 <_Workspace_Handler_initialization+0x6c> 300075b0: e3a03004 mov r3, #4 ; 0x4 300075b4: ebfff703 bl 300051c8 <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 300075b8: e3500000 cmp r0, #0 ; 0x0 300075bc: 18bd8030 popne {r4, r5, pc} _Internal_error_Occurred( 300075c0: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 300075c4: e3a02003 mov r2, #3 ; 0x3 <== NOT EXECUTED 300075c8: ebfff784 bl 300053e0 <_Internal_error_Occurred> 300075cc: 3001549c .word 0x3001549c 300075d0: 3001542c .word 0x3001542c 30008410 <__assert>: void __assert( const char *file, int line, const char *failedexpr ) { 30008410: e1a03002 mov r3, r2 <== NOT EXECUTED __assert_func (file, line, NULL, failedexpr); 30008414: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30008418: eaffffe9 b 300083c4 <__assert_func> <== NOT EXECUTED 300083c4 <__assert_func>: const char *file, int line, const char *func, const char *failedexpr ) { 300083c4: e92d4010 push {r4, lr} <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 300083c8: e252c000 subs ip, r2, #0 ; 0x0 <== NOT EXECUTED 300083cc: 059fc030 ldreq ip, [pc, #48] ; 30008404 <__assert_func+0x40> <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 300083d0: e1a04001 mov r4, r1 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 300083d4: 159fe02c ldrne lr, [pc, #44] ; 30008408 <__assert_func+0x44> <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 300083d8: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 300083dc: e1a01003 mov r1, r3 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 300083e0: 01a0e00c moveq lr, ip <== NOT EXECUTED 300083e4: e1a02000 mov r2, r0 <== NOT EXECUTED 300083e8: e1a03004 mov r3, r4 <== NOT EXECUTED 300083ec: e59f0018 ldr r0, [pc, #24] ; 3000840c <__assert_func+0x48> <== NOT EXECUTED 300083f0: e58de000 str lr, [sp] <== NOT EXECUTED 300083f4: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 300083f8: ebffe6a4 bl 30001e90 <== NOT EXECUTED file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 300083fc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30008400: ebfff162 bl 30004990 <== NOT EXECUTED 30008404: 300140dd .word 0x300140dd 30008408: 3001424f .word 0x3001424f 3000840c: 3001425c .word 0x3001425c 3001d7d8 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 3001d7d8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001d7dc: e12fff1e bx lr <== NOT EXECUTED 30012e44 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) _fini(); 30012e44: e1a04000 mov r4, r0 30012e48: eb000261 bl 300137d4 <_fini> * We need to do the exit processing on the global reentrancy structure. * This has already been done on the per task reentrancy structure * associated with this task. */ libc_wrapup(); 30012e4c: ebffffe1 bl 30012dd8 rtems_shutdown_executive(status); 30012e50: e1a00004 mov r0, r4 30012e54: eb00003a bl 30012f44 30012e58: eafffffe b 30012e58 <_exit+0x14> <== NOT EXECUTED 30027370 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 30027370: e1a00001 mov r0, r1 <== NOT EXECUTED 30027374: e1a01002 mov r1, r2 <== NOT EXECUTED 30027378: e1a02003 mov r2, r3 <== NOT EXECUTED 3002737c: eaffff88 b 300271a4 <== NOT EXECUTED 3001d69c <_getpid_r>: pid_t _getpid_r( struct _reent *ptr ) { return getpid(); } 3001d69c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3001d6a0: e12fff1e bx lr <== NOT EXECUTED 300087f4 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 300087f4: eaffffe6 b 30008794 <== NOT EXECUTED 3001d7d0 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 3001d7d0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001d7d4: e12fff1e bx lr <== NOT EXECUTED 3001c914 <_link_r>: struct _reent *ptr, const char *existing, const char *new ) { return link( existing, new ); 3001c914: e1a00001 mov r0, r1 <== NOT EXECUTED 3001c918: e1a01002 mov r1, r2 <== NOT EXECUTED 3001c91c: eaffff73 b 3001c6f0 <== NOT EXECUTED 30012dc0 <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 30012dc0: e1a00001 mov r0, r1 <== NOT EXECUTED 30012dc4: e1a01002 mov r1, r2 <== NOT EXECUTED 30012dc8: e1a02003 mov r2, r3 <== NOT EXECUTED 30012dcc: eaffffc6 b 30012cec <== NOT EXECUTED 3001cad4 <_lstat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 3001cad4: e1a00001 mov r0, r1 <== NOT EXECUTED 3001cad8: e1a01002 mov r1, r2 <== NOT EXECUTED 3001cadc: eaffffc8 b 3001ca04 <== NOT EXECUTED 30001ba4 <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 30001ba4: e1a00001 mov r0, r1 <== NOT EXECUTED 30001ba8: e1a01002 mov r1, r2 <== NOT EXECUTED 30001bac: e1a02003 mov r2, r3 <== NOT EXECUTED 30001bb0: eaffff6c b 30001968 <== NOT EXECUTED 30012f18 <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 30012f18: e1a00001 mov r0, r1 <== NOT EXECUTED 30012f1c: e1a01002 mov r1, r2 <== NOT EXECUTED 30012f20: e1a02003 mov r2, r3 <== NOT EXECUTED 30012f24: eaffffcc b 30012e5c <== NOT EXECUTED 30012f28 <_realloc_r>: struct _reent *ignored, void *ptr, size_t size ) { return realloc( ptr, size ); 30012f28: e1a00001 mov r0, r1 <== NOT EXECUTED 30012f2c: e1a01002 mov r1, r2 <== NOT EXECUTED 30012f30: ea000011 b 30012f7c <== NOT EXECUTED 3003a950 <_rename_r>: int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3003a950: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3003a954: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3003a958: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3003a95c: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3003a960: e1a0100d mov r1, sp <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3003a964: e1a05002 mov r5, r2 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3003a968: ebff2a11 bl 300051b4 <== NOT EXECUTED if ( s < 0 ) 3003a96c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3003a970: ba00000d blt 3003a9ac <_rename_r+0x5c> <== NOT EXECUTED return s; s = link( old, new ); 3003a974: e1a01005 mov r1, r5 <== NOT EXECUTED 3003a978: e1a00004 mov r0, r4 <== NOT EXECUTED 3003a97c: ebff875b bl 3001c6f0 <== NOT EXECUTED if ( s < 0 ) 3003a980: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3003a984: ba000008 blt 3003a9ac <_rename_r+0x5c> <== NOT EXECUTED return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 3003a988: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3003a98c: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 3003a990: e3530901 cmp r3, #16384 ; 0x4000 <== NOT EXECUTED 3003a994: 1a000002 bne 3003a9a4 <_rename_r+0x54> <== NOT EXECUTED 3003a998: e1a00004 mov r0, r4 <== NOT EXECUTED 3003a99c: ebff8a19 bl 3001d208 <== NOT EXECUTED 3003a9a0: ea000001 b 3003a9ac <_rename_r+0x5c> <== NOT EXECUTED 3003a9a4: e1a00004 mov r0, r4 <== NOT EXECUTED 3003a9a8: ebff8b12 bl 3001d5f8 <== NOT EXECUTED } 3003a9ac: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 3003a9b0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30005284 <_stat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 30005284: e1a00001 mov r0, r1 <== NOT EXECUTED 30005288: e1a01002 mov r1, r2 <== NOT EXECUTED 3000528c: eaffffc8 b 300051b4 <== NOT EXECUTED 3001d730 <_unlink_r>: int _unlink_r( struct _reent *ptr, const char *path ) { return unlink( path ); 3001d730: e1a00001 mov r0, r1 <== NOT EXECUTED 3001d734: eaffffaf b 3001d5f8 <== NOT EXECUTED 3001adb8 : int access( const char *path, int amode ) { 3001adb8: e92d4010 push {r4, lr} <== NOT EXECUTED 3001adbc: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED 3001adc0: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 3001adc4: e1a0100d mov r1, sp <== NOT EXECUTED 3001adc8: ebffa8f9 bl 300051b4 <== NOT EXECUTED 3001adcc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001add0: 1a00000e bne 3001ae10 <== NOT EXECUTED return -1; if ( amode & R_OK ) { 3001add4: e3140004 tst r4, #4 ; 0x4 <== NOT EXECUTED 3001add8: 0a000002 beq 3001ade8 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) 3001addc: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001ade0: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001ade4: 0a000009 beq 3001ae10 <== NOT EXECUTED return -1; } if ( amode & W_OK ) { 3001ade8: e3140002 tst r4, #2 ; 0x2 <== NOT EXECUTED 3001adec: 0a000002 beq 3001adfc <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) 3001adf0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001adf4: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED 3001adf8: 0a000004 beq 3001ae10 <== NOT EXECUTED return -1; } if ( amode & X_OK ) { 3001adfc: e3140001 tst r4, #1 ; 0x1 <== NOT EXECUTED 3001ae00: 0a000004 beq 3001ae18 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) 3001ae04: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001ae08: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED 3001ae0c: 1a000001 bne 3001ae18 <== NOT EXECUTED 3001ae10: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001ae14: ea000000 b 3001ae1c <== NOT EXECUTED 3001ae18: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return -1; } return 0; } 3001ae1c: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 3001ae20: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3001b044 : #include int chdir( const char *pathname ) { 3001b044: e92d4010 push {r4, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 3001b048: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED #include int chdir( const char *pathname ) { 3001b04c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 3001b050: e1a0200d mov r2, sp <== NOT EXECUTED 3001b054: e1a03001 mov r3, r1 <== NOT EXECUTED 3001b058: ebffa2e7 bl 30003bfc <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 3001b05c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 3001b060: e1a0400d mov r4, sp <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 3001b064: 1a00000b bne 3001b098 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 3001b068: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001b06c: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 3001b070: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b074: 1a000009 bne 3001b0a0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001b078: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001b07c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b080: 11a0000d movne r0, sp <== NOT EXECUTED 3001b084: 11a0e00f movne lr, pc <== NOT EXECUTED 3001b088: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001b08c: eb003901 bl 30029498 <__errno> <== NOT EXECUTED 3001b090: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001b094: e5803000 str r3, [r0] <== NOT EXECUTED 3001b098: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001b09c: ea00001f b 3001b120 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 3001b0a0: e1a0000d mov r0, sp <== NOT EXECUTED 3001b0a4: e1a0e00f mov lr, pc <== NOT EXECUTED 3001b0a8: e12fff13 bx r3 <== NOT EXECUTED 3001b0ac: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3001b0b0: 0a00000a beq 3001b0e0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001b0b4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001b0b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b0bc: 0a000004 beq 3001b0d4 <== NOT EXECUTED 3001b0c0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001b0c4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b0c8: 11a0000d movne r0, sp <== NOT EXECUTED 3001b0cc: 11a0e00f movne lr, pc <== NOT EXECUTED 3001b0d0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 3001b0d4: eb0038ef bl 30029498 <__errno> <== NOT EXECUTED 3001b0d8: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3001b0dc: eaffffec b 3001b094 <== NOT EXECUTED } rtems_filesystem_freenode( &rtems_filesystem_current ); 3001b0e0: e59f3040 ldr r3, [pc, #64] ; 3001b128 <== NOT EXECUTED 3001b0e4: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001b0e8: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 3001b0ec: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001b0f0: 0a000004 beq 3001b108 <== NOT EXECUTED 3001b0f4: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 3001b0f8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001b0fc: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 3001b100: 11a0e00f movne lr, pc <== NOT EXECUTED 3001b104: 112fff12 bxne r2 <== NOT EXECUTED rtems_filesystem_current = loc; 3001b108: e59f2018 ldr r2, [pc, #24] ; 3001b128 <== NOT EXECUTED 3001b10c: e592c000 ldr ip, [r2] <== NOT EXECUTED 3001b110: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001b114: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3001b118: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001b11c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3001b120: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001b124: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3001b128: 30040bf4 .word 0x30040bf4 300039d8 : int chmod( const char *path, mode_t mode ) { 300039d8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 300039dc: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 300039e0: 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 ); 300039e4: e1a0200d mov r2, sp <== NOT EXECUTED 300039e8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300039ec: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300039f0: eb000081 bl 30003bfc <== NOT EXECUTED if ( status != 0 ) 300039f4: 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 ); 300039f8: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 300039fc: 1a00000d bne 30003a38 <== NOT EXECUTED return -1; if ( !loc.handlers ){ 30003a00: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 30003a04: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003a08: 1a00000c bne 30003a40 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30003a0c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30003a10: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003a14: 0a000004 beq 30003a2c <== NOT EXECUTED 30003a18: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003a1c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003a20: 11a0000d movne r0, sp <== NOT EXECUTED 30003a24: 11a0e00f movne lr, pc <== NOT EXECUTED 30003a28: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 30003a2c: eb009699 bl 30029498 <__errno> <== NOT EXECUTED 30003a30: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30003a34: e5803000 str r3, [r0] <== NOT EXECUTED 30003a38: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30003a3c: ea00001a b 30003aac <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ 30003a40: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003a44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003a48: 1a00000a bne 30003a78 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30003a4c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30003a50: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003a54: 0a000004 beq 30003a6c <== NOT EXECUTED 30003a58: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003a5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003a60: 11a0000d movne r0, sp <== NOT EXECUTED 30003a64: 11a0e00f movne lr, pc <== NOT EXECUTED 30003a68: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30003a6c: eb009689 bl 30029498 <__errno> <== NOT EXECUTED 30003a70: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30003a74: eaffffee b 30003a34 <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); 30003a78: e1a01004 mov r1, r4 <== NOT EXECUTED 30003a7c: e1a0000d mov r0, sp <== NOT EXECUTED 30003a80: e1a0e00f mov lr, pc <== NOT EXECUTED 30003a84: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30003a88: e59d3008 ldr r3, [sp, #8] <== 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 ); 30003a8c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30003a90: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003a94: 0a000004 beq 30003aac <== NOT EXECUTED 30003a98: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003a9c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003aa0: 11a0000d movne r0, sp <== NOT EXECUTED 30003aa4: 11a0e00f movne lr, pc <== NOT EXECUTED 30003aa8: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30003aac: e1a00004 mov r0, r4 <== NOT EXECUTED 30003ab0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30003ab4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3001b12c : int chown( const char *path, uid_t owner, gid_t group ) { 3001b12c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 3001b130: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001b134: e1a0c801 lsl ip, r1, #16 <== NOT EXECUTED 3001b138: e1a0e802 lsl lr, r2, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 3001b13c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001b140: e1a0200d mov r2, sp <== NOT EXECUTED 3001b144: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 3001b148: e1a0482c lsr r4, ip, #16 <== NOT EXECUTED 3001b14c: e1a0582e lsr r5, lr, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 3001b150: ebffa2a9 bl 30003bfc <== NOT EXECUTED 3001b154: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001b158: e1a0600d mov r6, sp <== NOT EXECUTED 3001b15c: 1a00000b bne 3001b190 <== NOT EXECUTED return -1; if ( !loc.ops->chown_h ) { 3001b160: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001b164: e593c018 ldr ip, [r3, #24] <== NOT EXECUTED 3001b168: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 3001b16c: 1a000009 bne 3001b198 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001b170: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001b174: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b178: 11a0000d movne r0, sp <== NOT EXECUTED 3001b17c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001b180: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001b184: eb0038c3 bl 30029498 <__errno> <== NOT EXECUTED 3001b188: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001b18c: e5803000 str r3, [r0] <== NOT EXECUTED 3001b190: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001b194: ea00000d b 3001b1d0 <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); 3001b198: e1a01004 mov r1, r4 <== NOT EXECUTED 3001b19c: e1a02005 mov r2, r5 <== NOT EXECUTED 3001b1a0: e1a0000d mov r0, sp <== NOT EXECUTED 3001b1a4: e1a0e00f mov lr, pc <== NOT EXECUTED 3001b1a8: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001b1ac: e59d3008 ldr r3, [sp, #8] <== 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 ); 3001b1b0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001b1b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b1b8: 0a000004 beq 3001b1d0 <== NOT EXECUTED 3001b1bc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001b1c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b1c4: 11a0000d movne r0, sp <== NOT EXECUTED 3001b1c8: 11a0e00f movne lr, pc <== NOT EXECUTED 3001b1cc: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001b1d0: e1a00004 mov r0, r4 <== NOT EXECUTED 3001b1d4: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001b1d8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001b1dc : #include int chroot( const char *pathname ) { 3001b1dc: 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) { 3001b1e0: e59f60c8 ldr r6, [pc, #200] ; 3001b2b0 <== NOT EXECUTED 3001b1e4: e59f30c8 ldr r3, [pc, #200] ; 3001b2b4 <== NOT EXECUTED 3001b1e8: e5964000 ldr r4, [r6] <== NOT EXECUTED #include int chroot( const char *pathname ) { 3001b1ec: e24dd010 sub sp, sp, #16 ; 0x10 <== 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) { 3001b1f0: e1540003 cmp r4, r3 <== NOT EXECUTED #include int chroot( const char *pathname ) { 3001b1f4: 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) { 3001b1f8: 1a000008 bne 3001b220 <== NOT EXECUTED rtems_libio_set_private_env(); /* try to set a new private env*/ 3001b1fc: eb000703 bl 3001ce10 <== NOT EXECUTED if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 3001b200: e5963000 ldr r3, [r6] <== NOT EXECUTED 3001b204: e1530004 cmp r3, r4 <== NOT EXECUTED 3001b208: 1a000004 bne 3001b220 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001b20c: eb0038a1 bl 30029498 <__errno> <== NOT EXECUTED 3001b210: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001b214: e5803000 str r3, [r0] <== NOT EXECUTED 3001b218: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001b21c: ea000021 b 3001b2a8 <== NOT EXECUTED } result = chdir(pathname); 3001b220: e1a00005 mov r0, r5 <== NOT EXECUTED 3001b224: ebffff86 bl 3001b044 <== NOT EXECUTED if (result) { 3001b228: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001b22c: 1a000006 bne 3001b24c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 3001b230: e1a01000 mov r1, r0 <== NOT EXECUTED 3001b234: e1a0200d mov r2, sp <== NOT EXECUTED 3001b238: e59f0078 ldr r0, [pc, #120] ; 3001b2b8 <== NOT EXECUTED 3001b23c: e1a03001 mov r3, r1 <== NOT EXECUTED 3001b240: ebffa26d bl 30003bfc <== NOT EXECUTED 3001b244: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001b248: 0a000006 beq 3001b268 <== NOT EXECUTED /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 3001b24c: eb003891 bl 30029498 <__errno> <== NOT EXECUTED 3001b250: e1a04000 mov r4, r0 <== NOT EXECUTED 3001b254: eb00388f bl 30029498 <__errno> <== NOT EXECUTED 3001b258: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001b25c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001b260: e5843000 str r3, [r4] <== NOT EXECUTED 3001b264: ea00000f b 3001b2a8 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 3001b268: e59f3040 ldr r3, [pc, #64] ; 3001b2b0 <== NOT EXECUTED 3001b26c: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001b270: e590201c ldr r2, [r0, #28] <== NOT EXECUTED 3001b274: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001b278: 0a000004 beq 3001b290 <== NOT EXECUTED 3001b27c: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 3001b280: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001b284: 12800014 addne r0, r0, #20 ; 0x14 <== NOT EXECUTED 3001b288: 11a0e00f movne lr, pc <== NOT EXECUTED 3001b28c: 112fff12 bxne r2 <== NOT EXECUTED rtems_filesystem_root = loc; 3001b290: e59f2018 ldr r2, [pc, #24] ; 3001b2b0 <== NOT EXECUTED 3001b294: e592c000 ldr ip, [r2] <== NOT EXECUTED 3001b298: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001b29c: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 3001b2a0: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001b2a4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3001b2a8: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001b2ac: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001b2b0: 30040bf4 .word 0x30040bf4 3001b2b4: 300555e0 .word 0x300555e0 3001b2b8: 3003c7b1 .word 0x3003c7b1 30008574 : ) { rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 30008574: e59f3090 ldr r3, [pc, #144] ; 3000860c #include int close( int fd ) { 30008578: e92d4030 push {r4, r5, lr} rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 3000857c: e5933000 ldr r3, [r3] 30008580: e1500003 cmp r0, r3 30008584: 2a000006 bcs 300085a4 iop = rtems_libio_iop(fd); 30008588: e59f3080 ldr r3, [pc, #128] ; 30008610 3000858c: e5932000 ldr r2, [r3] 30008590: e3a03034 mov r3, #52 ; 0x34 30008594: e0242093 mla r4, r3, r0, r2 rtems_libio_check_is_open(iop); 30008598: e594300c ldr r3, [r4, #12] 3000859c: e3130c01 tst r3, #256 ; 0x100 300085a0: 1a000004 bne 300085b8 300085a4: eb00086d bl 3000a760 <__errno> <== NOT EXECUTED 300085a8: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 300085ac: e5803000 str r3, [r0] <== NOT EXECUTED 300085b0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300085b4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 300085b8: e5943030 ldr r3, [r4, #48] 300085bc: e5933004 ldr r3, [r3, #4] 300085c0: e3530000 cmp r3, #0 ; 0x0 300085c4: 01a05003 moveq r5, r3 300085c8: 0a000003 beq 300085dc rc = (*iop->handlers->close_h)( iop ); 300085cc: e1a00004 mov r0, r4 300085d0: e1a0e00f mov lr, pc 300085d4: e12fff13 bx r3 300085d8: e1a05000 mov r5, r0 rtems_filesystem_freenode( &iop->pathinfo ); 300085dc: e5943018 ldr r3, [r4, #24] 300085e0: e3530000 cmp r3, #0 ; 0x0 300085e4: 0a000004 beq 300085fc 300085e8: e593301c ldr r3, [r3, #28] 300085ec: e3530000 cmp r3, #0 ; 0x0 300085f0: 12840010 addne r0, r4, #16 ; 0x10 300085f4: 11a0e00f movne lr, pc 300085f8: 112fff13 bxne r3 rtems_libio_free( iop ); 300085fc: e1a00004 mov r0, r4 30008600: eb0000d1 bl 3000894c return rc; 30008604: e1a00005 mov r0, r5 } 30008608: e8bd8030 pop {r4, r5, pc} 3000860c: 3001459c .word 0x3001459c 30008610: 30015290 .word 0x30015290 30027000 : * close a directory. */ int closedir( DIR *dirp ) { 30027000: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int fd; if ( !dirp ) 30027004: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 30027008: 1a000004 bne 30027020 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 3002700c: eb000921 bl 30029498 <__errno> <== NOT EXECUTED 30027010: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30027014: 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)); } 30027018: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3002701c: 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; 30027020: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30027024: 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; 30027028: e3e03000 mvn r3, #0 ; 0x0 <== NOT EXECUTED int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; 3002702c: e5954000 ldr r4, [r5] <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 30027030: 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; 30027034: e5853000 str r3, [r5] <== NOT EXECUTED dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 30027038: ebff733e bl 30003d38 <== NOT EXECUTED (void)free((void *)dirp); 3002703c: e1a00005 mov r0, r5 <== NOT EXECUTED 30027040: ebff733c bl 30003d38 <== NOT EXECUTED return(close(fd)); 30027044: e1a00004 mov r0, r4 <== NOT EXECUTED } 30027048: 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)); 3002704c: eaff7299 b 30003ab8 <== NOT EXECUTED 30009e30 : rtems_libio_t *iop, off_t length ) { return 0; } 30009e30: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30009e34: e12fff1e bx lr <== NOT EXECUTED 30009e64 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 30009e64: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 30009e68: e590302c ldr r3, [r0, #44] <== NOT EXECUTED int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 30009e6c: 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; 30009e70: e88d0007 stm sp, {r0, r1, r2} <== NOT EXECUTED the_jnode = iop->file_info; status = rtems_io_control( 30009e74: e5931054 ldr r1, [r3, #84] <== NOT EXECUTED 30009e78: e5930050 ldr r0, [r3, #80] <== NOT EXECUTED 30009e7c: e1a0200d mov r2, sp <== NOT EXECUTED 30009e80: eb000161 bl 3000a40c <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 30009e84: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; 30009e88: 059d000c ldreq r0, [sp, #12] <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 30009e8c: 1bffffe9 blne 30009e38 <== NOT EXECUTED return args.ioctl_return; } 30009e90: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30009e94: e8bd8000 pop {pc} <== NOT EXECUTED 30009e28 : off_t offset, int whence ) { return offset; } 30009e28: e1a00001 mov r0, r1 <== NOT EXECUTED 30009e2c: e12fff1e bx lr <== NOT EXECUTED 30009eec : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30009eec: 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; 30009ef0: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30009ef4: 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; 30009ef8: e590c00c ldr ip, [r0, #12] <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 30009efc: e590e02c ldr lr, [r0, #44] <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 30009f00: e58d3004 str r3, [sp, #4] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 30009f04: 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; 30009f08: e58d200c str r2, [sp, #12] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 30009f0c: e58d1008 str r1, [sp, #8] <== NOT EXECUTED args.count = count; args.flags = iop->flags; 30009f10: e58dc010 str ip, [sp, #16] <== NOT EXECUTED args.bytes_moved = 0; 30009f14: e58d3014 str r3, [sp, #20] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 30009f18: e58d0000 str r0, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 30009f1c: e59e1054 ldr r1, [lr, #84] <== NOT EXECUTED 30009f20: e59e0050 ldr r0, [lr, #80] <== NOT EXECUTED 30009f24: e1a0200d mov r2, sp <== NOT EXECUTED 30009f28: eb00015f bl 3000a4ac <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 30009f2c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 30009f30: 059d0014 ldreq r0, [sp, #20] <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 30009f34: 1bffffbf blne 30009e38 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 30009f38: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED 30009f3c: e8bd8000 pop {pc} <== NOT EXECUTED 30002bb4 : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002bb4: e59030b4 ldr r3, [r0, #180] /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002bb8: e92d4030 push {r4, r5, lr} rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002bbc: e3530000 cmp r3, #0 ; 0x0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002bc0: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002bc4: 08bd8030 popeq {r4, r5, pc} rtems_interrupt_disable (level); 30002bc8: e10f1000 mrs r1, CPSR <== NOT EXECUTED 30002bcc: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30002bd0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; 30002bd4: e3a05002 mov r5, #2 ; 0x2 <== NOT EXECUTED 30002bd8: ea00000a b 30002c08 <== NOT EXECUTED 30002bdc: e5845094 str r5, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 30002be0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 30002be4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30002be8: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 30002bec: e1a02001 mov r2, r1 <== NOT EXECUTED 30002bf0: eb0005ae bl 300042b0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30002bf4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30002bf8: 1b000764 blne 30004990 <== NOT EXECUTED rtems_interrupt_disable (level); 30002bfc: e10f1000 mrs r1, CPSR <== NOT EXECUTED 30002c00: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30002c04: 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) { 30002c08: e5942084 ldr r2, [r4, #132] <== NOT EXECUTED 30002c0c: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 30002c10: e1520003 cmp r2, r3 <== NOT EXECUTED 30002c14: 1afffff0 bne 30002bdc <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 30002c18: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30002c1c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 300026b8 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 300026b8: e92d4010 push {r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 300026bc: e591303c ldr r3, [r1, #60] <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 300026c0: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 300026c4: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 300026c8: e1a04001 mov r4, r1 <== NOT EXECUTED 300026cc: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 300026d0: 0a000014 beq 30002728 <== NOT EXECUTED 300026d4: e59f305c ldr r3, [pc, #92] ; 30002738 <== NOT EXECUTED 300026d8: e2502009 subs r2, r0, #9 ; 0x9 <== NOT EXECUTED 300026dc: 13a02001 movne r2, #1 ; 0x1 <== NOT EXECUTED 300026e0: e5933000 ldr r3, [r3] <== NOT EXECUTED 300026e4: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED 300026e8: e01222a3 ands r2, r2, r3, lsr #5 <== NOT EXECUTED 300026ec: 0a00000d beq 30002728 <== NOT EXECUTED 300026f0: e350000a cmp r0, #10 ; 0xa <== NOT EXECUTED 300026f4: 0a00000b beq 30002728 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 300026f8: 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] = '^'; 300026fc: e3a0305e mov r3, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 30002700: e28d0002 add r0, sp, #2 ; 0x2 <== NOT EXECUTED 30002704: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 30002708: 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] = '^'; 3000270c: e5cd3002 strb r3, [sp, #2] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 30002710: e5cdc003 strb ip, [sp, #3] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 30002714: ebffff4e bl 30002454 <== NOT EXECUTED tty->column += 2; 30002718: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 3000271c: e2833002 add r3, r3, #2 ; 0x2 <== NOT EXECUTED 30002720: e5843028 str r3, [r4, #40] <== NOT EXECUTED 30002724: ea000001 b 30002730 <== NOT EXECUTED } else { oproc (c, tty); 30002728: e1a01004 mov r1, r4 <== NOT EXECUTED 3000272c: ebffff8c bl 30002564 <== NOT EXECUTED } } 30002730: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 30002734: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30002738: 30014bf0 .word 0x30014bf0 3001bc84 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 3001bc84: e59f300c ldr r3, [pc, #12] ; 3001bc98 <== NOT EXECUTED 3001bc88: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001bc8c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001bc90: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 3001bc94: ea003650 b 300295dc <== NOT EXECUTED 3001bc98: 30054914 .word 0x30054914 3001bc9c : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 3001bc9c: e59f300c ldr r3, [pc, #12] ; 3001bcb0 <== NOT EXECUTED 3001bca0: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001bca4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001bca8: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 3001bcac: ea00364a b 300295dc <== NOT EXECUTED 3001bcb0: 3005482c .word 0x3005482c 3000273c : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) 3000273c: e5903020 ldr r3, [r0, #32] <== 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) { 30002740: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED if (tty->ccount == 0) 30002744: 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) { 30002748: e1a04000 mov r4, r0 <== NOT EXECUTED 3000274c: e1a06001 mov r6, r1 <== NOT EXECUTED if (tty->ccount == 0) 30002750: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return; if (lineFlag) { 30002754: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30002758: 0a000060 beq 300028e0 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 3000275c: e590303c ldr r3, [r0, #60] <== NOT EXECUTED 30002760: e2132008 ands r2, r3, #8 ; 0x8 <== NOT EXECUTED tty->ccount = 0; 30002764: 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)) { 30002768: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 3000276c: e2133010 ands r3, r3, #16 ; 0x10 <== NOT EXECUTED 30002770: 1a00005a bne 300028e0 <== NOT EXECUTED tty->ccount = 0; 30002774: e5803020 str r3, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 30002778: e1a01004 mov r1, r4 <== NOT EXECUTED 3000277c: e5d00044 ldrb r0, [r0, #68] <== NOT EXECUTED 30002780: ebffffcc bl 300026b8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 30002784: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 30002788: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED echo ('\n', tty); 3000278c: 11a01004 movne r1, r4 <== NOT EXECUTED 30002790: 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) 30002794: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED 30002798: ea00000c b 300027d0 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { 3000279c: e594203c ldr r2, [r4, #60] <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 300027a0: e2431001 sub r1, r3, #1 ; 0x1 <== NOT EXECUTED 300027a4: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 300027a8: e5841020 str r1, [r4, #32] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 300027ac: e3120008 tst r2, #8 ; 0x8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 300027b0: e7d35001 ldrb r5, [r3, r1] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 300027b4: 0a000046 beq 300028d4 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 300027b8: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 300027bc: 1a000005 bne 300027d8 <== NOT EXECUTED 300027c0: e3120010 tst r2, #16 ; 0x10 <== NOT EXECUTED 300027c4: 1a000003 bne 300027d8 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 300027c8: e5d40043 ldrb r0, [r4, #67] <== NOT EXECUTED 300027cc: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } 300027d0: 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); 300027d4: eaffffb7 b 300026b8 <== NOT EXECUTED } else if (c == '\t') { 300027d8: e3550009 cmp r5, #9 ; 0x9 <== NOT EXECUTED 300027dc: 1a00001f bne 30002860 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 300027e0: 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; 300027e4: 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)) { 300027e8: e5970000 ldr r0, [r7] <== NOT EXECUTED 300027ec: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300027f0: ea00000c b 30002828 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 300027f4: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 300027f8: e7d33002 ldrb r3, [r3, r2] <== NOT EXECUTED if (c == '\t') { 300027fc: e3530009 cmp r3, #9 ; 0x9 <== NOT EXECUTED col = (col | 7) + 1; 30002800: 03853007 orreq r3, r5, #7 ; 0x7 <== NOT EXECUTED 30002804: 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') { 30002808: 0a000005 beq 30002824 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 3000280c: e7d03003 ldrb r3, [r0, r3] <== NOT EXECUTED 30002810: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 30002814: 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)) { 30002818: 0a000001 beq 30002824 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 3000281c: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED col += 2; 30002820: 12855002 addne r5, r5, #2 ; 0x2 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 30002824: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002828: e1520001 cmp r2, r1 <== NOT EXECUTED 3000282c: 1afffff0 bne 300027f4 <== NOT EXECUTED 30002830: ea000003 b 30002844 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 30002834: ebffff06 bl 30002454 <== NOT EXECUTED tty->column--; 30002838: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 3000283c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002840: e5843028 str r3, [r4, #40] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002844: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 30002848: e59f00a4 ldr r0, [pc, #164] ; 300028f4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 3000284c: e1530005 cmp r3, r5 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 30002850: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 30002854: e1a02004 mov r2, r4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002858: cafffff5 bgt 30002834 <== NOT EXECUTED 3000285c: ea00001c b 300028d4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 30002860: e5973000 ldr r3, [r7] <== NOT EXECUTED 30002864: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 30002868: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 3000286c: 0a000009 beq 30002898 <== NOT EXECUTED 30002870: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED 30002874: 0a000007 beq 30002898 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 30002878: e59f0078 ldr r0, [pc, #120] ; 300028f8 <== NOT EXECUTED 3000287c: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 30002880: e1a02004 mov r2, r4 <== NOT EXECUTED 30002884: ebfffef2 bl 30002454 <== NOT EXECUTED if (tty->column) 30002888: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 3000288c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 30002890: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002894: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 30002898: e5973000 ldr r3, [r7] <== NOT EXECUTED 3000289c: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 300028a0: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 300028a4: 0a000002 beq 300028b4 <== NOT EXECUTED 300028a8: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 300028ac: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED 300028b0: 0a000007 beq 300028d4 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 300028b4: e59f003c ldr r0, [pc, #60] ; 300028f8 <== NOT EXECUTED 300028b8: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 300028bc: e1a02004 mov r2, r4 <== NOT EXECUTED 300028c0: ebfffee3 bl 30002454 <== NOT EXECUTED if (tty->column) 300028c4: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 300028c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 300028cc: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 300028d0: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } } } if (!lineFlag) 300028d4: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 300028d8: 1a000001 bne 300028e4 <== NOT EXECUTED 300028dc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 300028e0: e59f7014 ldr r7, [pc, #20] ; 300028fc <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 300028e4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 300028e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300028ec: 1affffaa bne 3000279c <== NOT EXECUTED 300028f0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 300028f4: 300140dc .word 0x300140dc 300028f8: 300140da .word 0x300140da 300028fc: 30014bf0 .word 0x30014bf0 30027050 : #include int fchdir( int fd ) { 30027050: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 30027054: e59f3138 ldr r3, [pc, #312] ; 30027194 <== NOT EXECUTED #include int fchdir( int fd ) { 30027058: e24dd020 sub sp, sp, #32 ; 0x20 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 3002705c: e5933000 ldr r3, [r3] <== NOT EXECUTED #include int fchdir( int fd ) { 30027060: e1a01000 mov r1, r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 30027064: e1500003 cmp r0, r3 <== NOT EXECUTED 30027068: 2a000006 bcs 30027088 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3002706c: e59f3124 ldr r3, [pc, #292] ; 30027198 <== NOT EXECUTED 30027070: e5932000 ldr r2, [r3] <== NOT EXECUTED 30027074: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 30027078: e0202193 mla r0, r3, r1, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3002707c: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 30027080: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30027084: 1a000002 bne 30027094 <== NOT EXECUTED 30027088: eb000902 bl 30029498 <__errno> <== NOT EXECUTED 3002708c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30027090: ea000015 b 300270ec <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30027094: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 30027098: 1a000002 bne 300270a8 <== NOT EXECUTED 3002709c: eb0008fd bl 30029498 <__errno> <== NOT EXECUTED 300270a0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 300270a4: ea000010 b 300270ec <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 300270a8: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED 300270ac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300270b0: 0a000002 beq 300270c0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 300270b4: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 300270b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300270bc: 1a000002 bne 300270cc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300270c0: eb0008f4 bl 30029498 <__errno> <== NOT EXECUTED 300270c4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300270c8: ea000007 b 300270ec <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 300270cc: e2804010 add r4, r0, #16 ; 0x10 <== NOT EXECUTED 300270d0: e1a00004 mov r0, r4 <== NOT EXECUTED 300270d4: e1a0e00f mov lr, pc <== NOT EXECUTED 300270d8: e12fff13 bx r3 <== NOT EXECUTED 300270dc: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 300270e0: 0a000004 beq 300270f8 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 300270e4: eb0008eb bl 30029498 <__errno> <== NOT EXECUTED 300270e8: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 300270ec: e5803000 str r3, [r0] <== NOT EXECUTED 300270f0: e3e0e000 mvn lr, #0 ; 0x0 <== NOT EXECUTED 300270f4: ea000023 b 30027188 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 300270f8: e59f609c ldr r6, [pc, #156] ; 3002719c <== NOT EXECUTED 300270fc: e1a0500d mov r5, sp <== NOT EXECUTED 30027100: e596c000 ldr ip, [r6] <== NOT EXECUTED 30027104: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 30027108: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3002710c: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 30027110: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 30027114: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 30027118: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3002711c: e59f007c ldr r0, [pc, #124] ; 300271a0 <== NOT EXECUTED 30027120: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 30027124: e1a03001 mov r3, r1 <== NOT EXECUTED 30027128: ebff72b3 bl 30003bfc <== NOT EXECUTED 3002712c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30027130: 0a000005 beq 3002714c <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 30027134: e596c000 ldr ip, [r6] <== NOT EXECUTED 30027138: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3002713c: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 30027140: e3e0e000 mvn lr, #0 ; 0x0 <== NOT EXECUTED 30027144: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 30027148: ea00000e b 30027188 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 3002714c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30027150: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30027154: 0a000004 beq 3002716c <== NOT EXECUTED 30027158: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3002715c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30027160: 11a0000d movne r0, sp <== NOT EXECUTED 30027164: 11a0e00f movne lr, pc <== NOT EXECUTED 30027168: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 3002716c: e59f2028 ldr r2, [pc, #40] ; 3002719c <== NOT EXECUTED 30027170: e28d3010 add r3, sp, #16 ; 0x10 <== NOT EXECUTED 30027174: e592c000 ldr ip, [r2] <== NOT EXECUTED 30027178: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 3002717c: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 30027180: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 30027184: e3a0e000 mov lr, #0 ; 0x0 <== NOT EXECUTED return 0; } 30027188: e1a0000e mov r0, lr <== NOT EXECUTED 3002718c: e28dd020 add sp, sp, #32 ; 0x20 <== NOT EXECUTED 30027190: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30027194: 3004008c .word 0x3004008c 30027198: 30055114 .word 0x30055114 3002719c: 30040bf4 .word 0x30040bf4 300271a0: 3003c7b1 .word 0x3003c7b1 3001b4c0 : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b4c0: e59f3080 ldr r3, [pc, #128] ; 3001b548 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 3001b4c4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b4c8: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001b4cc: e1500003 cmp r0, r3 <== NOT EXECUTED 3001b4d0: 2a000006 bcs 3001b4f0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3001b4d4: e59f3070 ldr r3, [pc, #112] ; 3001b54c <== NOT EXECUTED 3001b4d8: e5932000 ldr r2, [r3] <== NOT EXECUTED 3001b4dc: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 3001b4e0: e02c2093 mla ip, r3, r0, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3001b4e4: e59c300c ldr r3, [ip, #12] <== NOT EXECUTED 3001b4e8: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001b4ec: 1a000002 bne 3001b4fc <== NOT EXECUTED 3001b4f0: eb0037e8 bl 30029498 <__errno> <== NOT EXECUTED 3001b4f4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001b4f8: ea00000a b 3001b528 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001b4fc: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 3001b500: 1a000002 bne 3001b510 <== NOT EXECUTED 3001b504: eb0037e3 bl 30029498 <__errno> <== NOT EXECUTED 3001b508: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001b50c: ea000005 b 3001b528 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 3001b510: e59c3030 ldr r3, [ip, #48] <== NOT EXECUTED 3001b514: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001b518: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b51c: 1a000004 bne 3001b534 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001b520: eb0037dc bl 30029498 <__errno> <== NOT EXECUTED 3001b524: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001b528: e5803000 str r3, [r0] <== NOT EXECUTED 3001b52c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001b530: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 3001b534: e28c0010 add r0, ip, #16 ; 0x10 <== NOT EXECUTED 3001b538: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED 3001b53c: e1a0e00f mov lr, pc <== NOT EXECUTED 3001b540: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 3001b544: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001b548: 3004008c .word 0x3004008c 3001b54c: 30055114 .word 0x30055114 3001b550 : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b550: e59f3094 ldr r3, [pc, #148] ; 3001b5ec <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 3001b554: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b558: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 3001b55c: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b560: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 3001b564: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001b568: e1a0c000 mov ip, r0 <== NOT EXECUTED 3001b56c: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 3001b570: e1a0e822 lsr lr, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b574: 2a000006 bcs 3001b594 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3001b578: e59f3070 ldr r3, [pc, #112] ; 3001b5f0 <== NOT EXECUTED 3001b57c: e5932000 ldr r2, [r3] <== NOT EXECUTED 3001b580: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 3001b584: e0202c93 mla r0, r3, ip, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3001b588: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 3001b58c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001b590: 1a000002 bne 3001b5a0 <== NOT EXECUTED 3001b594: eb0037bf bl 30029498 <__errno> <== NOT EXECUTED 3001b598: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001b59c: ea00000a b 3001b5cc <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001b5a0: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 3001b5a4: 1a000002 bne 3001b5b4 <== NOT EXECUTED 3001b5a8: eb0037ba bl 30029498 <__errno> <== NOT EXECUTED 3001b5ac: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001b5b0: ea000005 b 3001b5cc <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 3001b5b4: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED 3001b5b8: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 3001b5bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b5c0: 1a000004 bne 3001b5d8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001b5c4: eb0037b3 bl 30029498 <__errno> <== NOT EXECUTED 3001b5c8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001b5cc: e5803000 str r3, [r0] <== NOT EXECUTED 3001b5d0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001b5d4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 3001b5d8: e1a0200e mov r2, lr <== NOT EXECUTED 3001b5dc: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED 3001b5e0: e1a0e00f mov lr, pc <== NOT EXECUTED 3001b5e4: e12fff13 bx r3 <== NOT EXECUTED } 3001b5e8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001b5ec: 3004008c .word 0x3004008c 3001b5f0: 30055114 .word 0x30055114 300271a4 : int fcntl( int fd, int cmd, ... ) { 300271a4: e92d000e push {r1, r2, r3} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300271a8: e59f31b0 ldr r3, [pc, #432] ; 30027360 <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 300271ac: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300271b0: e593c000 ldr ip, [r3] <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 300271b4: e59d7014 ldr r7, [sp, #20] <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300271b8: e150000c cmp r0, ip <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 300271bc: e28d2018 add r2, sp, #24 ; 0x18 <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300271c0: 2a000006 bcs 300271e0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 300271c4: e59f3198 ldr r3, [pc, #408] ; 30027364 <== NOT EXECUTED 300271c8: e5931000 ldr r1, [r3] <== NOT EXECUTED 300271cc: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 300271d0: e0261093 mla r6, r3, r0, r1 <== NOT EXECUTED rtems_libio_check_is_open(iop); 300271d4: e596000c ldr r0, [r6, #12] <== NOT EXECUTED 300271d8: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED 300271dc: 1a000002 bne 300271ec <== NOT EXECUTED 300271e0: eb0008ac bl 30029498 <__errno> <== NOT EXECUTED 300271e4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 300271e8: ea000047 b 3002730c <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 300271ec: e3570009 cmp r7, #9 ; 0x9 <== NOT EXECUTED 300271f0: 979ff107 ldrls pc, [pc, r7, lsl #2] <== NOT EXECUTED 300271f4: ea000042 b 30027304 <== NOT EXECUTED 300271f8: 30027220 .word 0x30027220 <== NOT EXECUTED 300271fc: 30027290 .word 0x30027290 <== NOT EXECUTED 30027200: 3002729c .word 0x3002729c <== NOT EXECUTED 30027204: 300272c0 .word 0x300272c0 <== NOT EXECUTED 30027208: 300272cc .word 0x300272cc <== NOT EXECUTED 3002720c: 300272f8 .word 0x300272f8 <== NOT EXECUTED 30027210: 300272f8 .word 0x300272f8 <== NOT EXECUTED 30027214: 300272f8 .word 0x300272f8 <== NOT EXECUTED 30027218: 300272f8 .word 0x300272f8 <== NOT EXECUTED 3002721c: 300272f8 .word 0x300272f8 <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 30027220: e5920000 ldr r0, [r2] <== NOT EXECUTED if ( fd2 ) 30027224: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30027228: 0a000004 beq 30027240 <== NOT EXECUTED diop = rtems_libio_iop( fd2 ); 3002722c: e150000c cmp r0, ip <== NOT EXECUTED 30027230: 33a03034 movcc r3, #52 ; 0x34 <== NOT EXECUTED 30027234: 23a05000 movcs r5, #0 ; 0x0 <== NOT EXECUTED 30027238: 30251093 mlacc r5, r3, r0, r1 <== NOT EXECUTED 3002723c: ea000002 b 3002724c <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 30027240: ebff73a2 bl 300040d0 <== NOT EXECUTED if ( diop == 0 ) { 30027244: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 30027248: 0a00003f beq 3002734c <== 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); 3002724c: e59f3110 ldr r3, [pc, #272] ; 30027364 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 30027250: e5964030 ldr r4, [r6, #48] <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30027254: e5931000 ldr r1, [r3] <== NOT EXECUTED } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; 30027258: e596300c ldr r3, [r6, #12] <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 3002725c: e596002c ldr r0, [r6, #44] <== NOT EXECUTED diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30027260: e0611005 rsb r1, r1, r5 <== NOT EXECUTED } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; 30027264: e585300c str r3, [r5, #12] <== NOT EXECUTED diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30027268: e59f30f8 ldr r3, [pc, #248] ; 30027368 <== NOT EXECUTED 3002726c: e1a01141 asr r1, r1, #2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 30027270: e285c010 add ip, r5, #16 ; 0x10 <== NOT EXECUTED 30027274: e2862010 add r2, r6, #16 ; 0x10 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 30027278: e5854030 str r4, [r5, #48] <== NOT EXECUTED diop->file_info = iop->file_info; 3002727c: e585002c str r0, [r5, #44] <== NOT EXECUTED diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30027280: e0040193 mul r4, r3, r1 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 30027284: e892000f ldm r2, {r0, r1, r2, r3} <== NOT EXECUTED 30027288: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3002728c: ea000020 b 30027314 <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 30027290: e1a035a0 lsr r3, r0, #11 <== NOT EXECUTED 30027294: e2034001 and r4, r3, #1 ; 0x1 <== NOT EXECUTED 30027298: ea00001f b 3002731c <== 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 ) ) 3002729c: e5922000 ldr r2, [r2] <== NOT EXECUTED 300272a0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 300272a4: 13803b02 orrne r3, r0, #2048 ; 0x800 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 300272a8: 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; 300272ac: 1586300c strne r3, [r6, #12] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 300272b0: 0586300c streq r3, [r6, #12] <== NOT EXECUTED 300272b4: 01a04002 moveq r4, 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 ) ) 300272b8: 0a000017 beq 3002731c <== NOT EXECUTED 300272bc: ea00000b b 300272f0 <== 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 ); 300272c0: ebff7319 bl 30003f2c <== NOT EXECUTED 300272c4: e1a04000 mov r4, r0 <== NOT EXECUTED 300272c8: ea000011 b 30027314 <== NOT EXECUTED break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 300272cc: e5920000 ldr r0, [r2] <== NOT EXECUTED 300272d0: ebff73b1 bl 3000419c <== NOT EXECUTED /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 300272d4: e596300c ldr r3, [r6, #12] <== NOT EXECUTED 300272d8: e59f208c ldr r2, [pc, #140] ; 3002736c <== NOT EXECUTED 300272dc: e3c33c02 bic r3, r3, #512 ; 0x200 <== NOT EXECUTED 300272e0: e0002002 and r2, r0, r2 <== NOT EXECUTED 300272e4: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 300272e8: e1822003 orr r2, r2, r3 <== NOT EXECUTED 300272ec: e586200c str r2, [r6, #12] <== NOT EXECUTED 300272f0: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 300272f4: ea000008 b 3002731c <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 300272f8: eb000866 bl 30029498 <__errno> <== NOT EXECUTED 300272fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30027300: ea000001 b 3002730c <== NOT EXECUTED ret = -1; break; default: errno = EINVAL; 30027304: eb000863 bl 30029498 <__errno> <== NOT EXECUTED 30027308: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3002730c: e5803000 str r3, [r0] <== NOT EXECUTED 30027310: ea00000d b 3002734c <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 30027314: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30027318: ba00000c blt 30027350 <== NOT EXECUTED if (iop->handlers->fcntl_h) { 3002731c: e5963030 ldr r3, [r6, #48] <== NOT EXECUTED 30027320: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 30027324: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30027328: 0a000008 beq 30027350 <== NOT EXECUTED int err = (*iop->handlers->fcntl_h)( cmd, iop ); 3002732c: e1a00007 mov r0, r7 <== NOT EXECUTED 30027330: e1a01006 mov r1, r6 <== NOT EXECUTED 30027334: e1a0e00f mov lr, pc <== NOT EXECUTED 30027338: e12fff13 bx r3 <== NOT EXECUTED if (err) { 3002733c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 30027340: 0a000002 beq 30027350 <== NOT EXECUTED errno = err; 30027344: eb000853 bl 30029498 <__errno> <== NOT EXECUTED 30027348: e5805000 str r5, [r0] <== NOT EXECUTED 3002734c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 30027350: e1a00004 mov r0, r4 <== NOT EXECUTED 30027354: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED 30027358: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 3002735c: e12fff1e bx lr <== NOT EXECUTED 30027360: 3004008c .word 0x3004008c 30027364: 30055114 .word 0x30055114 30027368: c4ec4ec5 .word 0xc4ec4ec5 3002736c: 00000201 .word 0x00000201 3001d750 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 3001d750: e59fc030 ldr ip, [pc, #48] ; 3001d788 <== NOT EXECUTED 3001d754: e49c0004 ldr r0, [ip], #4 <== NOT EXECUTED 3001d758: ea000006 b 3001d778 <== 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 ) { 3001d75c: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED 3001d760: e591300c ldr r3, [r1, #12] <== NOT EXECUTED 3001d764: e1520003 cmp r2, r3 <== NOT EXECUTED 3001d768: 1a000001 bne 3001d774 <== NOT EXECUTED 3001d76c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3001d770: 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 ) { 3001d774: 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 ); 3001d778: e150000c cmp r0, ip <== NOT EXECUTED 3001d77c: 1afffff6 bne 3001d75c <== NOT EXECUTED 3001d780: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; } } return false; } 3001d784: e12fff1e bx lr <== NOT EXECUTED 3001d788: 300551b0 .word 0x300551b0 3000861c : void free( void *ptr ) { MSBUMP(free_calls, 1); 3000861c: e59f2084 ldr r2, [pc, #132] ; 300086a8 30008620: e92d4030 push {r4, r5, lr} 30008624: e592300c ldr r3, [r2, #12] if ( !ptr ) 30008628: e2505000 subs r5, r0, #0 ; 0x0 void free( void *ptr ) { MSBUMP(free_calls, 1); 3000862c: e2833001 add r3, r3, #1 ; 0x1 30008630: e582300c str r3, [r2, #12] if ( !ptr ) 30008634: 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()) && 30008638: e59f306c ldr r3, [pc, #108] ; 300086ac 3000863c: e5933000 ldr r3, [r3] 30008640: e3530003 cmp r3, #3 ; 0x3 30008644: 1a000005 bne 30008660 30008648: eb000116 bl 30008aa8 3000864c: e3500000 cmp r0, #0 ; 0x0 30008650: 1a000002 bne 30008660 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 30008654: e1a00005 mov r0, r5 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 30008658: 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); 3000865c: ea000124 b 30008af4 <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30008660: e59f3048 ldr r3, [pc, #72] ; 300086b0 30008664: e5933000 ldr r3, [r3] 30008668: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 3000866c: 11a00005 movne r0, r5 30008670: 11a0e00f movne lr, pc 30008674: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { 30008678: e59f4034 ldr r4, [pc, #52] ; 300086b4 3000867c: e1a01005 mov r1, r5 30008680: e1a00004 mov r0, r4 30008684: eb0004af bl 30009948 <_Protected_heap_Free> 30008688: e3500000 cmp r0, #0 ; 0x0 3000868c: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 30008690: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 30008694: e59f001c ldr r0, [pc, #28] ; 300086b8 <== NOT EXECUTED 30008698: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED 3000869c: e1a01005 mov r1, r5 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 300086a0: 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", 300086a4: eaffe5f9 b 30001e90 <== NOT EXECUTED 300086a8: 300152f4 .word 0x300152f4 300086ac: 300155b4 .word 0x300155b4 300086b0: 300150f8 .word 0x300150f8 300086b4: 3001529c .word 0x3001529c 300086b8: 30014292 .word 0x30014292 3001cd00 : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3001cd00: e59f3058 ldr r3, [pc, #88] ; 3001cd60 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 3001cd04: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3001cd08: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 3001cd0c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3001cd10: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 3001cd14: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 3001cd18: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cd1c: 0a000004 beq 3001cd34 <== NOT EXECUTED 3001cd20: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001cd24: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cd28: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 3001cd2c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001cd30: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 3001cd34: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 3001cd38: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cd3c: 0a000004 beq 3001cd54 <== NOT EXECUTED 3001cd40: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001cd44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cd48: 12840014 addne r0, r4, #20 ; 0x14 <== NOT EXECUTED 3001cd4c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001cd50: 112fff13 bxne r3 <== NOT EXECUTED free(env); 3001cd54: e1a00004 mov r0, r4 <== NOT EXECUTED } } 3001cd58: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 3001cd5c: eaff9bf5 b 30003d38 <== NOT EXECUTED 3001cd60: 300555e0 .word 0x300555e0 30012bfc : int fstat( int fd, struct stat *sbuf ) { 30012bfc: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 30012c00: e2515000 subs r5, r1, #0 ; 0x0 30012c04: 1a000002 bne 30012c14 rtems_set_errno_and_return_minus_one( EFAULT ); 30012c08: ebffded4 bl 3000a760 <__errno> <== NOT EXECUTED 30012c0c: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 30012c10: ea00001f b 30012c94 <== NOT EXECUTED /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 30012c14: e59f3084 ldr r3, [pc, #132] ; 30012ca0 30012c18: e5933000 ldr r3, [r3] 30012c1c: e1500003 cmp r0, r3 30012c20: 2a000019 bcs 30012c8c 30012c24: e59f3078 ldr r3, [pc, #120] ; 30012ca4 30012c28: e5932000 ldr r2, [r3] 30012c2c: e3a03034 mov r3, #52 ; 0x34 30012c30: e0242093 mla r4, r3, r0, r2 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 30012c34: e594300c ldr r3, [r4, #12] 30012c38: e3130c01 tst r3, #256 ; 0x100 30012c3c: 0a000012 beq 30012c8c if ( !iop->handlers ) 30012c40: e5943030 ldr r3, [r4, #48] 30012c44: e3530000 cmp r3, #0 ; 0x0 30012c48: 0a00000f beq 30012c8c rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 30012c4c: e5933018 ldr r3, [r3, #24] 30012c50: e3530000 cmp r3, #0 ; 0x0 30012c54: 1a000002 bne 30012c64 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30012c58: ebffdec0 bl 3000a760 <__errno> <== NOT EXECUTED 30012c5c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30012c60: ea00000b b 30012c94 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 30012c64: e3a01000 mov r1, #0 ; 0x0 30012c68: e3a0204c mov r2, #76 ; 0x4c 30012c6c: e1a00005 mov r0, r5 30012c70: ebffe0c3 bl 3000af84 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 30012c74: e2840010 add r0, r4, #16 ; 0x10 30012c78: e1a01005 mov r1, r5 30012c7c: e5943030 ldr r3, [r4, #48] 30012c80: e1a0e00f mov lr, pc 30012c84: e593f018 ldr pc, [r3, #24] } 30012c88: e8bd8030 pop {r4, r5, pc} /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); 30012c8c: ebffdeb3 bl 3000a760 <__errno> <== NOT EXECUTED 30012c90: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30012c94: e5803000 str r3, [r0] <== NOT EXECUTED 30012c98: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30012c9c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30012ca0: 3001459c .word 0x3001459c 30012ca4: 30015290 .word 0x30015290 3001b6ac : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b6ac: e59f3084 ldr r3, [pc, #132] ; 3001b738 <== NOT EXECUTED #include int fsync( int fd ) { 3001b6b0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b6b4: e5933000 ldr r3, [r3] <== NOT EXECUTED #include int fsync( int fd ) { 3001b6b8: e1a01000 mov r1, r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001b6bc: e1500003 cmp r0, r3 <== NOT EXECUTED 3001b6c0: 2a00000e bcs 3001b700 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3001b6c4: e59f3070 ldr r3, [pc, #112] ; 3001b73c <== NOT EXECUTED 3001b6c8: e5932000 ldr r2, [r3] <== NOT EXECUTED 3001b6cc: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 3001b6d0: e0202193 mla r0, r3, r1, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3001b6d4: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 3001b6d8: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001b6dc: 0a000007 beq 3001b700 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001b6e0: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 3001b6e4: 1a000002 bne 3001b6f4 <== NOT EXECUTED 3001b6e8: eb00376a bl 30029498 <__errno> <== NOT EXECUTED 3001b6ec: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001b6f0: ea00000a b 3001b720 <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) 3001b6f4: e5903030 ldr r3, [r0, #48] <== NOT EXECUTED 3001b6f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b6fc: 1a000002 bne 3001b70c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 3001b700: eb003764 bl 30029498 <__errno> <== NOT EXECUTED 3001b704: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001b708: ea000004 b 3001b720 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 3001b70c: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 3001b710: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b714: 1a000004 bne 3001b72c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001b718: eb00375e bl 30029498 <__errno> <== NOT EXECUTED 3001b71c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001b720: e5803000 str r3, [r0] <== NOT EXECUTED 3001b724: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001b728: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->handlers->fsync_h)( iop ); 3001b72c: e1a0e00f mov lr, pc <== NOT EXECUTED 3001b730: e12fff13 bx r3 <== NOT EXECUTED } 3001b734: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001b738: 3004008c .word 0x3004008c 3001b73c: 30055114 .word 0x30055114 300086bc : int ftruncate( int fd, off_t length ) { 300086bc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300086c0: e59f30c4 ldr r3, [pc, #196] ; 3000878c <== NOT EXECUTED int ftruncate( int fd, off_t length ) { 300086c4: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300086c8: e5933000 ldr r3, [r3] <== NOT EXECUTED int ftruncate( int fd, off_t length ) { 300086cc: e1a05001 mov r5, r1 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300086d0: e1500003 cmp r0, r3 <== NOT EXECUTED 300086d4: 2a000006 bcs 300086f4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 300086d8: e59f30b0 ldr r3, [pc, #176] ; 30008790 <== NOT EXECUTED 300086dc: e5932000 ldr r2, [r3] <== NOT EXECUTED 300086e0: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 300086e4: e0242093 mla r4, r3, r0, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 300086e8: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 300086ec: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 300086f0: 1a000002 bne 30008700 <== NOT EXECUTED 300086f4: eb000819 bl 3000a760 <__errno> <== NOT EXECUTED 300086f8: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 300086fc: ea000019 b 30008768 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 30008700: e2843010 add r3, r4, #16 ; 0x10 <== NOT EXECUTED 30008704: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 30008708: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 3000870c: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 30008710: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008714: 0a000011 beq 30008760 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 30008718: e1a0000d mov r0, sp <== NOT EXECUTED 3000871c: e1a0e00f mov lr, pc <== NOT EXECUTED 30008720: e12fff13 bx r3 <== NOT EXECUTED 30008724: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 30008728: 1a000002 bne 30008738 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 3000872c: eb00080b bl 3000a760 <__errno> <== NOT EXECUTED 30008730: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 30008734: ea00000b b 30008768 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30008738: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 3000873c: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 30008740: 1a000002 bne 30008750 <== NOT EXECUTED 30008744: eb000805 bl 3000a760 <__errno> <== NOT EXECUTED 30008748: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3000874c: ea000005 b 30008768 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 30008750: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 30008754: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 30008758: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000875c: 1a000004 bne 30008774 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30008760: eb0007fe bl 3000a760 <__errno> <== NOT EXECUTED 30008764: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008768: e5803000 str r3, [r0] <== NOT EXECUTED 3000876c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008770: ea000003 b 30008784 <== NOT EXECUTED return (*iop->handlers->ftruncate_h)( iop, length ); 30008774: e1a00004 mov r0, r4 <== NOT EXECUTED 30008778: e1a01005 mov r1, r5 <== NOT EXECUTED 3000877c: e1a0e00f mov lr, pc <== NOT EXECUTED 30008780: e12fff13 bx r3 <== NOT EXECUTED } 30008784: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30008788: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000878c: 3001459c .word 0x3001459c 30008790: 30015290 .word 0x30015290 3001b818 : char * getcwd ( char *pt, size_t size) { 3001b818: 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) 3001b81c: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED char * getcwd ( char *pt, size_t size) { 3001b820: e24dd07c sub sp, sp, #124 ; 0x7c <== NOT EXECUTED 3001b824: 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) 3001b828: 0a000008 beq 3001b850 <== NOT EXECUTED { ptsize = 0; if (!size) 3001b82c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED { errno = EINVAL; return (char *) NULL; } ept = pt + size; 3001b830: 108a9001 addne r9, sl, r1 <== NOT EXECUTED 3001b834: 13a0b000 movne fp, #0 ; 0x0 <== NOT EXECUTED */ if (pt) { ptsize = 0; if (!size) 3001b838: 1a00000a bne 3001b868 <== NOT EXECUTED { errno = EINVAL; 3001b83c: eb003715 bl 30029498 <__errno> <== NOT EXECUTED 3001b840: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001b844: e5803000 str r3, [r0] <== NOT EXECUTED 3001b848: e1a0a004 mov sl, r4 <== NOT EXECUTED 3001b84c: ea0000f0 b 3001bc14 <== NOT EXECUTED } ept = pt + size; } else { if (!(pt = (char *) malloc (ptsize = 1024 - 4))) 3001b850: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 3001b854: ebffa2b2 bl 30004324 <== NOT EXECUTED 3001b858: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 3001b85c: 0a0000ec beq 3001bc14 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; 3001b860: e28a9fff add r9, sl, #1020 ; 0x3fc <== NOT EXECUTED 3001b864: e3a0bfff mov fp, #1020 ; 0x3fc <== NOT EXECUTED } bpt = ept - 1; *bpt = '\0'; 3001b868: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 3001b86c: 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))) 3001b870: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 3001b874: ebffa2aa bl 30004324 <== NOT EXECUTED 3001b878: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; 3001b87c: 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))) 3001b880: 0a0000dd beq 3001bbfc <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 3001b884: e3a0602e mov r6, #46 ; 0x2e <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 3001b888: e28d5030 add r5, sp, #48 ; 0x30 <== NOT EXECUTED goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; up[1] = '\0'; 3001b88c: e5c74001 strb r4, [r7, #1] <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 3001b890: e5c76000 strb r6, [r7] <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 3001b894: e59f0390 ldr r0, [pc, #912] ; 3001bc2c <== NOT EXECUTED 3001b898: e1a01005 mov r1, r5 <== NOT EXECUTED 3001b89c: ebffa644 bl 300051b4 <== NOT EXECUTED 3001b8a0: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001b8a4: 1a0000d4 bne 3001bbfc <== NOT EXECUTED goto err; root_dev = s.st_dev; 3001b8a8: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 3001b8ac: e891000e ldm r1, {r1, r2, r3} <== NOT EXECUTED 3001b8b0: e58d100c str r1, [sp, #12] <== NOT EXECUTED 3001b8b4: e58d2008 str r2, [sp, #8] <== NOT EXECUTED root_ino = s.st_ino; 3001b8b8: e58d3020 str r3, [sp, #32] <== NOT EXECUTED errno = 0; /* XXX readdir has no error return. */ 3001b8bc: eb0036f5 bl 30029498 <__errno> <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 3001b8c0: 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. */ 3001b8c4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3001b8c8: e3a03fff mov r3, #1020 ; 0x3fc <== NOT EXECUTED 3001b8cc: e5804000 str r4, [r0] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 3001b8d0: 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. */ 3001b8d4: e58d701c str r7, [sp, #28] <== NOT EXECUTED 3001b8d8: e58d2018 str r2, [sp, #24] <== NOT EXECUTED 3001b8dc: e58d3024 str r3, [sp, #36] <== NOT EXECUTED for (first = 1;; first = 0) { /* Stat the current level. */ if (_stat (up, &s)) 3001b8e0: e1a00007 mov r0, r7 <== NOT EXECUTED 3001b8e4: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 3001b8e8: ebffa631 bl 300051b4 <== NOT EXECUTED 3001b8ec: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001b8f0: 1a0000c1 bne 3001bbfc <== NOT EXECUTED goto err; /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; 3001b8f4: e59d1030 ldr r1, [sp, #48] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 3001b8f8: 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; 3001b8fc: e58d1004 str r1, [sp, #4] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 3001b900: e1520001 cmp r2, r1 <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 3001b904: e59d3038 ldr r3, [sp, #56] <== NOT EXECUTED dev = s.st_dev; 3001b908: e59d1034 ldr r1, [sp, #52] <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 3001b90c: e58d3014 str r3, [sp, #20] <== NOT EXECUTED dev = s.st_dev; 3001b910: e58d1000 str r1, [sp] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 3001b914: 1a000002 bne 3001b924 <== NOT EXECUTED 3001b918: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001b91c: e1520001 cmp r2, r1 <== NOT EXECUTED 3001b920: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 3001b924: e59d1020 ldr r1, [sp, #32] <== NOT EXECUTED 3001b928: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 3001b92c: e1510002 cmp r1, r2 <== NOT EXECUTED 3001b930: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED 3001b934: 02003001 andeq r3, r0, #1 ; 0x1 <== NOT EXECUTED 3001b938: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001b93c: 0a000008 beq 3001b964 <== NOT EXECUTED { *--bpt = '/'; 3001b940: e2481001 sub r1, r8, #1 ; 0x1 <== NOT EXECUTED 3001b944: e3a0302f mov r3, #47 ; 0x2f <== NOT EXECUTED 3001b948: 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); 3001b94c: e0612009 rsb r2, r1, r9 <== NOT EXECUTED 3001b950: e1a0000a mov r0, sl <== NOT EXECUTED 3001b954: eb004086 bl 3002bb74 <== NOT EXECUTED free (up); 3001b958: e1a00007 mov r0, r7 <== NOT EXECUTED 3001b95c: ebffa0f5 bl 30003d38 <== NOT EXECUTED 3001b960: ea0000ab b 3001bc14 <== 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) 3001b964: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED 3001b968: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED 3001b96c: e2813b01 add r3, r1, #1024 ; 0x400 <== NOT EXECUTED 3001b970: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 3001b974: e1520003 cmp r2, r3 <== NOT EXECUTED 3001b978: 8a00000b bhi 3001b9ac <== NOT EXECUTED { if (!(up = (char *) realloc (up, upsize *= 2))) 3001b97c: e59d3024 ldr r3, [sp, #36] <== NOT EXECUTED 3001b980: e1a00007 mov r0, r7 <== NOT EXECUTED 3001b984: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED 3001b988: e1a01003 mov r1, r3 <== NOT EXECUTED 3001b98c: e58d3024 str r3, [sp, #36] <== NOT EXECUTED 3001b990: eb0005d2 bl 3001d0e0 <== NOT EXECUTED 3001b994: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED 3001b998: 0a000097 beq 3001bbfc <== NOT EXECUTED { goto err; } bup = up; eup = up + upsize; 3001b99c: e59d1024 ldr r1, [sp, #36] <== NOT EXECUTED 3001b9a0: e58d701c str r7, [sp, #28] <== NOT EXECUTED 3001b9a4: e0871001 add r1, r7, r1 <== NOT EXECUTED 3001b9a8: e58d1028 str r1, [sp, #40] <== NOT EXECUTED } *bup++ = '.'; 3001b9ac: e59d401c ldr r4, [sp, #28] <== NOT EXECUTED 3001b9b0: e3a0202e mov r2, #46 ; 0x2e <== NOT EXECUTED 3001b9b4: e4c42001 strb r2, [r4], #1 <== NOT EXECUTED *bup++ = '.'; 3001b9b8: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED *bup = '\0'; 3001b9bc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 3001b9c0: e5c32001 strb r2, [r3, #1] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001b9c4: e1a00007 mov r0, r7 <== NOT EXECUTED bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; *bup = '\0'; 3001b9c8: e5c41001 strb r1, [r4, #1] <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001b9cc: eb0004a6 bl 3001cc6c <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 3001b9d0: e2842001 add r2, r4, #1 ; 0x1 <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001b9d4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001b9d8: e58d0010 str r0, [sp, #16] <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 3001b9dc: e58d202c str r2, [sp, #44] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001b9e0: 0a000085 beq 3001bbfc <== NOT EXECUTED 3001b9e4: e5900000 ldr r0, [r0] <== NOT EXECUTED 3001b9e8: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 3001b9ec: ebffff00 bl 3001b5f4 <== NOT EXECUTED 3001b9f0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001b9f4: 1a000089 bne 3001bc20 <== NOT EXECUTED goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 3001b9f8: e3a0302f mov r3, #47 ; 0x2f <== NOT EXECUTED 3001b9fc: e5c43001 strb r3, [r4, #1] <== NOT EXECUTED 3001ba00: e59d102c ldr r1, [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) 3001ba04: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 3001ba08: e59d2004 ldr r2, [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++ = '/'; 3001ba0c: e2811001 add r1, r1, #1 ; 0x1 <== 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) 3001ba10: e1530002 cmp r3, r2 <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 3001ba14: e58d101c str r1, [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) 3001ba18: 1a000003 bne 3001ba2c <== NOT EXECUTED 3001ba1c: e59d3034 ldr r3, [sp, #52] <== NOT EXECUTED 3001ba20: e59d1000 ldr r1, [sp] <== NOT EXECUTED 3001ba24: e1530001 cmp r3, r1 <== NOT EXECUTED 3001ba28: 0a000001 beq 3001ba34 <== NOT EXECUTED 3001ba2c: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 3001ba30: ea000008 b 3001ba58 <== NOT EXECUTED { for (;;) { if (!(dp = _readdir (dir))) 3001ba34: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 3001ba38: eb000540 bl 3001cf40 <== NOT EXECUTED 3001ba3c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001ba40: 0a000063 beq 3001bbd4 <== NOT EXECUTED goto notfound; if (dp->d_ino == ino) 3001ba44: e5953000 ldr r3, [r5] <== NOT EXECUTED 3001ba48: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 3001ba4c: e1530002 cmp r3, r2 <== NOT EXECUTED 3001ba50: 1afffff7 bne 3001ba34 <== NOT EXECUTED 3001ba54: ea00002e b 3001bb14 <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 3001ba58: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 3001ba5c: eb000537 bl 3001cf40 <== NOT EXECUTED 3001ba60: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001ba64: 0a00005b beq 3001bbd8 <== NOT EXECUTED goto notfound; if (ISDOT (dp)) 3001ba68: e5d5300c ldrb r3, [r5, #12] <== NOT EXECUTED 3001ba6c: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 3001ba70: 1a000007 bne 3001ba94 <== NOT EXECUTED 3001ba74: e5d5300d ldrb r3, [r5, #13] <== NOT EXECUTED 3001ba78: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001ba7c: 0afffff5 beq 3001ba58 <== NOT EXECUTED 3001ba80: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 3001ba84: 1a000002 bne 3001ba94 <== NOT EXECUTED 3001ba88: e5d5300e ldrb r3, [r5, #14] <== NOT EXECUTED 3001ba8c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001ba90: 0afffff0 beq 3001ba58 <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 3001ba94: e285400c add r4, r5, #12 ; 0xc <== NOT EXECUTED 3001ba98: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ba9c: eb004d13 bl 3002eef0 <== NOT EXECUTED 3001baa0: e1a01004 mov r1, r4 <== NOT EXECUTED 3001baa4: e2802001 add r2, r0, #1 ; 0x1 <== NOT EXECUTED 3001baa8: e59d001c ldr r0, [sp, #28] <== NOT EXECUTED 3001baac: eb004030 bl 3002bb74 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 3001bab0: e1a00007 mov r0, r7 <== NOT EXECUTED 3001bab4: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED 3001bab8: ebffa5bd bl 300051b4 <== NOT EXECUTED 3001babc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001bac0: 0a000007 beq 3001bae4 <== NOT EXECUTED { if (!save_errno) 3001bac4: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 3001bac8: 1a000001 bne 3001bad4 <== NOT EXECUTED save_errno = errno; 3001bacc: eb003671 bl 30029498 <__errno> <== NOT EXECUTED 3001bad0: e5906000 ldr r6, [r0] <== NOT EXECUTED errno = 0; 3001bad4: eb00366f bl 30029498 <__errno> <== NOT EXECUTED 3001bad8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001badc: e5803000 str r3, [r0] <== NOT EXECUTED 3001bae0: eaffffdc b 3001ba58 <== NOT EXECUTED continue; } if (s.st_dev == dev && s.st_ino == ino) 3001bae4: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 3001bae8: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 3001baec: e1530001 cmp r3, r1 <== NOT EXECUTED 3001baf0: 1affffd8 bne 3001ba58 <== NOT EXECUTED 3001baf4: e59d3034 ldr r3, [sp, #52] <== NOT EXECUTED 3001baf8: e59d2000 ldr r2, [sp] <== NOT EXECUTED 3001bafc: e1530002 cmp r3, r2 <== NOT EXECUTED 3001bb00: 1affffd4 bne 3001ba58 <== NOT EXECUTED 3001bb04: e59d3038 ldr r3, [sp, #56] <== NOT EXECUTED 3001bb08: e59d1014 ldr r1, [sp, #20] <== NOT EXECUTED 3001bb0c: e1530001 cmp r3, r1 <== NOT EXECUTED 3001bb10: 1affffd0 bne 3001ba58 <== NOT EXECUTED /* * Check for length of the current name, preceding slash, * leading slash. */ if (bpt - pt <= strlen (dp->d_name) + (first ? 1 : 2)) 3001bb14: e285400c add r4, r5, #12 ; 0xc <== NOT EXECUTED 3001bb18: e1a00004 mov r0, r4 <== NOT EXECUTED 3001bb1c: eb004cf3 bl 3002eef0 <== NOT EXECUTED 3001bb20: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED 3001bb24: e06a5008 rsb r5, sl, r8 <== NOT EXECUTED 3001bb28: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001bb2c: 13a03001 movne r3, #1 ; 0x1 <== NOT EXECUTED 3001bb30: 03a03002 moveq r3, #2 ; 0x2 <== NOT EXECUTED 3001bb34: e0833000 add r3, r3, r0 <== NOT EXECUTED 3001bb38: e1550003 cmp r5, r3 <== NOT EXECUTED 3001bb3c: 8a000011 bhi 3001bb88 <== NOT EXECUTED { size_t len, off; if (!ptsize) 3001bb40: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED 3001bb44: 1a000003 bne 3001bb58 <== NOT EXECUTED { errno = ERANGE; 3001bb48: eb003652 bl 30029498 <__errno> <== NOT EXECUTED 3001bb4c: e3a03022 mov r3, #34 ; 0x22 <== NOT EXECUTED 3001bb50: e5803000 str r3, [r0] <== NOT EXECUTED 3001bb54: ea000031 b 3001bc20 <== NOT EXECUTED goto err; } off = bpt - pt; len = ept - bpt; if (!(pt = (char *) realloc (pt, ptsize *= 2))) 3001bb58: e1a0b08b lsl fp, fp, #1 <== NOT EXECUTED 3001bb5c: e1a0000a mov r0, sl <== NOT EXECUTED 3001bb60: e1a0100b mov r1, fp <== NOT EXECUTED 3001bb64: eb00055d bl 3001d0e0 <== NOT EXECUTED 3001bb68: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 3001bb6c: 0a00002b beq 3001bc20 <== NOT EXECUTED { errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; 3001bb70: e0682009 rsb r2, r8, r9 <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 3001bb74: e08a900b add r9, sl, fp <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); 3001bb78: e0628009 rsb r8, r2, r9 <== NOT EXECUTED 3001bb7c: e08a1005 add r1, sl, r5 <== NOT EXECUTED 3001bb80: e1a00008 mov r0, r8 <== NOT EXECUTED 3001bb84: eb003ffa bl 3002bb74 <== NOT EXECUTED bpt = ept - len; } if (!first) 3001bb88: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED *--bpt = '/'; bpt -= strlen (dp->d_name); 3001bb8c: e1a00004 mov r0, r4 <== NOT EXECUTED bpt = pt + off; ept = pt + ptsize; (void) bcopy (bpt, ept - len, len); bpt = ept - len; } if (!first) 3001bb90: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED *--bpt = '/'; 3001bb94: 03a0102f moveq r1, #47 ; 0x2f <== NOT EXECUTED 3001bb98: 05681001 strbeq r1, [r8, #-1]! <== NOT EXECUTED bpt -= strlen (dp->d_name); 3001bb9c: eb004cd3 bl 3002eef0 <== NOT EXECUTED 3001bba0: e0608008 rsb r8, r0, r8 <== NOT EXECUTED 3001bba4: e1a02000 mov r2, r0 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); 3001bba8: e1a01004 mov r1, r4 <== NOT EXECUTED 3001bbac: e1a00008 mov r0, r8 <== NOT EXECUTED 3001bbb0: eb003fef bl 3002bb74 <== NOT EXECUTED (void) _closedir (dir); 3001bbb4: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 3001bbb8: eb002d10 bl 30027000 <== NOT EXECUTED dir = 0; /* Truncate any file name. */ *bup = '\0'; 3001bbbc: e59d202c ldr r2, [sp, #44] <== NOT EXECUTED 3001bbc0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001bbc4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001bbc8: e5c23001 strb r3, [r2, #1] <== NOT EXECUTED 3001bbcc: e58d1018 str r1, [sp, #24] <== NOT EXECUTED 3001bbd0: eaffff42 b 3001b8e0 <== NOT EXECUTED } 3001bbd4: 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) 3001bbd8: eb00362e bl 30029498 <__errno> <== NOT EXECUTED 3001bbdc: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001bbe0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001bbe4: 1a00000d bne 3001bc20 <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; 3001bbe8: eb00362a bl 30029498 <__errno> <== NOT EXECUTED 3001bbec: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 3001bbf0: 03a06002 moveq r6, #2 ; 0x2 <== NOT EXECUTED 3001bbf4: e5806000 str r6, [r0] <== NOT EXECUTED 3001bbf8: ea000008 b 3001bc20 <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); if (ptsize) 3001bbfc: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED free (pt); 3001bc00: 11a0000a movne r0, sl <== NOT EXECUTED 3001bc04: 1bffa04b blne 30003d38 <== NOT EXECUTED free (up); 3001bc08: e1a00007 mov r0, r7 <== NOT EXECUTED 3001bc0c: ebffa049 bl 30003d38 <== NOT EXECUTED 3001bc10: e3a0a000 mov sl, #0 ; 0x0 <== NOT EXECUTED return (char *) NULL; } 3001bc14: e1a0000a mov r0, sl <== NOT EXECUTED 3001bc18: e28dd07c add sp, sp, #124 ; 0x7c <== NOT EXECUTED 3001bc1c: 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); 3001bc20: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED 3001bc24: eb002cf5 bl 30027000 <== NOT EXECUTED 3001bc28: eafffff3 b 3001bbfc <== NOT EXECUTED 3001bc2c: 3003e1a6 .word 0x3003e1a6 30027380 : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30027380: e59f30a0 ldr r3, [pc, #160] ; 30027428 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 30027384: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30027388: e5933000 ldr r3, [r3] <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 3002738c: e1a05002 mov r5, r2 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30027390: e1500003 cmp r0, r3 <== NOT EXECUTED 30027394: 359f3090 ldrcc r3, [pc, #144] ; 3002742c <== NOT EXECUTED 30027398: 23a04000 movcs r4, #0 ; 0x0 <== NOT EXECUTED 3002739c: 35932000 ldrcc r2, [r3] <== NOT EXECUTED 300273a0: 33a03034 movcc r3, #52 ; 0x34 <== NOT EXECUTED 300273a4: 30242093 mlacc r4, r3, r0, r2 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 300273a8: 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; 300273ac: e2843010 add r3, r4, #16 ; 0x10 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 300273b0: e1a06001 mov r6, r1 <== NOT EXECUTED iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300273b4: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 300273b8: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 300273bc: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 300273c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300273c4: 0a00000d beq 30027400 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 300273c8: e1a0000d mov r0, sp <== NOT EXECUTED 300273cc: e1a0e00f mov lr, pc <== NOT EXECUTED 300273d0: e12fff13 bx r3 <== NOT EXECUTED 300273d4: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 300273d8: 0a000004 beq 300273f0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 300273dc: eb00082d bl 30029498 <__errno> <== NOT EXECUTED 300273e0: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 300273e4: e5803000 str r3, [r0] <== NOT EXECUTED 300273e8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300273ec: ea00000b b 30027420 <== NOT EXECUTED /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 300273f0: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 300273f4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 300273f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300273fc: 1a000002 bne 3002740c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30027400: eb000824 bl 30029498 <__errno> <== NOT EXECUTED 30027404: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30027408: eafffff5 b 300273e4 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 3002740c: e1a00004 mov r0, r4 <== NOT EXECUTED 30027410: e1a01006 mov r1, r6 <== NOT EXECUTED 30027414: e1a02005 mov r2, r5 <== NOT EXECUTED 30027418: e1a0e00f mov lr, pc <== NOT EXECUTED 3002741c: e12fff13 bx r3 <== NOT EXECUTED } 30027420: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30027424: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30027428: 3004008c .word 0x3004008c 3002742c: 30055114 .word 0x30055114 3001bc30 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { 3001bc30: e59f3008 ldr r3, [pc, #8] ; 3001bc40 <== NOT EXECUTED 3001bc34: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Egid; } 3001bc38: e1d303b0 ldrh r0, [r3, #48] <== NOT EXECUTED 3001bc3c: e12fff1e bx lr <== NOT EXECUTED 3001bc40: 30040bf4 .word 0x30040bf4 3001bc44 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { 3001bc44: e59f3008 ldr r3, [pc, #8] ; 3001bc54 <== NOT EXECUTED 3001bc48: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Euid; } 3001bc4c: e1d302be ldrh r0, [r3, #46] <== NOT EXECUTED 3001bc50: e12fff1e bx lr <== NOT EXECUTED 3001bc54: 30040bf4 .word 0x30040bf4 3001bc58 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 3001bc58: e59f3008 ldr r3, [pc, #8] ; 3001bc68 <== NOT EXECUTED 3001bc5c: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 3001bc60: e1d302bc ldrh r0, [r3, #44] <== NOT EXECUTED 3001bc64: e12fff1e bx lr <== NOT EXECUTED 3001bc68: 30040bf4 .word 0x30040bf4 3001c270 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 3001c270: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 3001c274: e59da01c ldr sl, [sp, #28] <== NOT EXECUTED 3001c278: e1a06000 mov r6, r0 <== NOT EXECUTED 3001c27c: e1a08001 mov r8, r1 <== NOT EXECUTED 3001c280: e1a04002 mov r4, r2 <== NOT EXECUTED 3001c284: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 3001c288: ebffffb7 bl 3001c16c <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { 3001c28c: e59f00a4 ldr r0, [pc, #164] ; 3001c338 <== NOT EXECUTED 3001c290: e59f10a4 ldr r1, [pc, #164] ; 3001c33c <== NOT EXECUTED 3001c294: eb0036c3 bl 30029da8 <== NOT EXECUTED 3001c298: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001c29c: 1a000003 bne 3001c2b0 <== NOT EXECUTED errno = EINVAL; 3001c2a0: eb00347c bl 30029498 <__errno> <== NOT EXECUTED 3001c2a4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001c2a8: e5803000 str r3, [r0] <== NOT EXECUTED 3001c2ac: ea00000c b 3001c2e4 <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 3001c2b0: e1a01004 mov r1, r4 <== NOT EXECUTED 3001c2b4: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c2b8: e1a0300a mov r3, sl <== NOT EXECUTED 3001c2bc: e1a00005 mov r0, r5 <== NOT EXECUTED 3001c2c0: ebfffeec bl 3001be78 <== NOT EXECUTED 3001c2c4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 3001c2c8: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 3001c2cc: 1a000006 bne 3001c2ec <== NOT EXECUTED errno = EINVAL; 3001c2d0: eb003470 bl 30029498 <__errno> <== NOT EXECUTED 3001c2d4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001c2d8: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 3001c2dc: e1a00005 mov r0, r5 <== NOT EXECUTED 3001c2e0: eb0034bd bl 300295dc <== NOT EXECUTED 3001c2e4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001c2e8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED return -1; } if (name) { 3001c2ec: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 3001c2f0: 0a000004 beq 3001c308 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); 3001c2f4: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001c2f8: eb0048d5 bl 3002e654 <== NOT EXECUTED 3001c2fc: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 3001c300: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED 3001c304: ea000003 b 3001c318 <== NOT EXECUTED } else { match = (grp->gr_gid == gid); 3001c308: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 3001c30c: e1530008 cmp r3, r8 <== NOT EXECUTED 3001c310: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3001c314: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 3001c318: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c31c: 0affffe3 beq 3001c2b0 <== NOT EXECUTED fclose(fp); 3001c320: e1a00005 mov r0, r5 <== NOT EXECUTED 3001c324: eb0034ac bl 300295dc <== NOT EXECUTED *result = grp; 3001c328: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 3001c32c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001c330: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 3001c334: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3001c338: 3003e0c7 .word 0x3003e0c7 3001c33c: 3003c860 .word 0x3003c860 3001bfb8 : return p; } struct group *getgrent() { if (group_fp == NULL) 3001bfb8: e59f3030 ldr r3, [pc, #48] ; 3001bff0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent() { 3001bfbc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (group_fp == NULL) 3001bfc0: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001bfc4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001bfc8: 0a000006 beq 3001bfe8 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 3001bfcc: e59f1020 ldr r1, [pc, #32] ; 3001bff4 <== NOT EXECUTED 3001bfd0: e59f2020 ldr r2, [pc, #32] ; 3001bff8 <== NOT EXECUTED 3001bfd4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001bfd8: ebffffa6 bl 3001be78 <== NOT EXECUTED 3001bfdc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001bfe0: 159f000c ldrne r0, [pc, #12] ; 3001bff4 <== NOT EXECUTED 3001bfe4: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 3001bfe8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &grent; } 3001bfec: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001bff0: 30054914 .word 0x30054914 3001bff4: 300549e0 .word 0x300549e0 3001bff8: 30054918 .word 0x30054918 3001c37c : struct group *getgrgid( gid_t gid ) { 3001c37c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c380: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 3001c384: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 3001c388: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001c38c: e59f1024 ldr r1, [pc, #36] ; 3001c3b8 <== NOT EXECUTED 3001c390: e59f2024 ldr r2, [pc, #36] ; 3001c3bc <== NOT EXECUTED 3001c394: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001c398: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 3001c39c: e58dc000 str ip, [sp] <== NOT EXECUTED 3001c3a0: ebffffe6 bl 3001c340 <== NOT EXECUTED 3001c3a4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c3a8: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001c3ac: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001c3b0: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c3b4: e8bd8000 pop {pc} <== NOT EXECUTED 3001c3b8: 300549e0 .word 0x300549e0 3001c3bc: 30054918 .word 0x30054918 3001c340 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 3001c340: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c344: e1a0c001 mov ip, r1 <== NOT EXECUTED 3001c348: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c34c: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001c350: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 3001c354: e1a0200c mov r2, ip <== NOT EXECUTED 3001c358: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001c35c: e58d3000 str r3, [sp] <== NOT EXECUTED 3001c360: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 3001c364: e1a0300e mov r3, lr <== NOT EXECUTED 3001c368: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001c36c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001c370: ebffffbe bl 3001c270 <== NOT EXECUTED } 3001c374: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c378: e8bd8000 pop {pc} <== NOT EXECUTED 3001c3f0 : struct group *getgrnam( const char *name ) { 3001c3f0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c3f4: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 3001c3f8: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001c3fc: e59f1020 ldr r1, [pc, #32] ; 3001c424 <== NOT EXECUTED 3001c400: e59f2020 ldr r2, [pc, #32] ; 3001c428 <== NOT EXECUTED 3001c404: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001c408: e58dc000 str ip, [sp] <== NOT EXECUTED 3001c40c: ebffffeb bl 3001c3c0 <== NOT EXECUTED 3001c410: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c414: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001c418: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001c41c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c420: e8bd8000 pop {pc} <== NOT EXECUTED 3001c424: 300549e0 .word 0x300549e0 3001c428: 30054918 .word 0x30054918 3001c3c0 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 3001c3c0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c3c4: e1a0c002 mov ip, r2 <== NOT EXECUTED 3001c3c8: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getgr_r(name, 0, grp, buffer, bufsize, result); 3001c3cc: e58d3000 str r3, [sp] <== NOT EXECUTED 3001c3d0: e1a0300c mov r3, ip <== NOT EXECUTED 3001c3d4: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001c3d8: e1a02001 mov r2, r1 <== NOT EXECUTED 3001c3dc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001c3e0: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001c3e4: ebffffa1 bl 3001c270 <== NOT EXECUTED } 3001c3e8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c3ec: e8bd8000 pop {pc} <== NOT EXECUTED 3001d694 : */ pid_t getpid( void ) { return _Objects_Local_node; } 3001d694: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3001d698: e12fff1e bx lr <== NOT EXECUTED 3001c468 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 3001c468: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 3001c46c: e59da01c ldr sl, [sp, #28] <== NOT EXECUTED 3001c470: e1a06000 mov r6, r0 <== NOT EXECUTED 3001c474: e1a08001 mov r8, r1 <== NOT EXECUTED 3001c478: e1a04002 mov r4, r2 <== NOT EXECUTED 3001c47c: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 3001c480: ebffff39 bl 3001c16c <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { 3001c484: e59f00a4 ldr r0, [pc, #164] ; 3001c530 <== NOT EXECUTED 3001c488: e59f10a4 ldr r1, [pc, #164] ; 3001c534 <== NOT EXECUTED 3001c48c: eb003645 bl 30029da8 <== NOT EXECUTED 3001c490: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001c494: 1a000003 bne 3001c4a8 <== NOT EXECUTED errno = EINVAL; 3001c498: eb0033fe bl 30029498 <__errno> <== NOT EXECUTED 3001c49c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001c4a0: e5803000 str r3, [r0] <== NOT EXECUTED 3001c4a4: ea00000c b 3001c4dc <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 3001c4a8: e1a01004 mov r1, r4 <== NOT EXECUTED 3001c4ac: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c4b0: e1a0300a mov r3, sl <== NOT EXECUTED 3001c4b4: e1a00005 mov r0, r5 <== NOT EXECUTED 3001c4b8: ebfffecf bl 3001bffc <== NOT EXECUTED 3001c4bc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 3001c4c0: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 3001c4c4: 1a000006 bne 3001c4e4 <== NOT EXECUTED errno = EINVAL; 3001c4c8: eb0033f2 bl 30029498 <__errno> <== NOT EXECUTED 3001c4cc: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001c4d0: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 3001c4d4: e1a00005 mov r0, r5 <== NOT EXECUTED 3001c4d8: eb00343f bl 300295dc <== NOT EXECUTED 3001c4dc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001c4e0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED return -1; } if (name) { 3001c4e4: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 3001c4e8: 0a000004 beq 3001c500 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); 3001c4ec: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001c4f0: eb004857 bl 3002e654 <== NOT EXECUTED 3001c4f4: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 3001c4f8: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED 3001c4fc: ea000003 b 3001c510 <== NOT EXECUTED } else { match = (pwd->pw_uid == uid); 3001c500: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 3001c504: e1530008 cmp r3, r8 <== NOT EXECUTED 3001c508: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3001c50c: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 3001c510: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c514: 0affffe3 beq 3001c4a8 <== NOT EXECUTED fclose(fp); 3001c518: e1a00005 mov r0, r5 <== NOT EXECUTED 3001c51c: eb00342e bl 300295dc <== NOT EXECUTED *result = pwd; 3001c520: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 3001c524: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001c528: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 3001c52c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3001c530: 3003e054 .word 0x3003e054 3001c534: 3003c860 .word 0x3003c860 3001c128 : return p; } struct passwd *getpwent() { if (passwd_fp == NULL) 3001c128: e59f3030 ldr r3, [pc, #48] ; 3001c160 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent() { 3001c12c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (passwd_fp == NULL) 3001c130: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001c134: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c138: 0a000006 beq 3001c158 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 3001c13c: e59f1020 ldr r1, [pc, #32] ; 3001c164 <== NOT EXECUTED 3001c140: e59f2020 ldr r2, [pc, #32] ; 3001c168 <== NOT EXECUTED 3001c144: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001c148: ebffffab bl 3001bffc <== NOT EXECUTED 3001c14c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c150: 159f000c ldrne r0, [pc, #12] ; 3001c164 <== NOT EXECUTED 3001c154: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 3001c158: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &pwent; } 3001c15c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001c160: 3005482c .word 0x3005482c 3001c164: 300548f8 .word 0x300548f8 3001c168: 30054830 .word 0x30054830 3001c5e8 : struct passwd *getpwnam( const char *name ) { 3001c5e8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c5ec: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 3001c5f0: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001c5f4: e59f1020 ldr r1, [pc, #32] ; 3001c61c <== NOT EXECUTED 3001c5f8: e59f2020 ldr r2, [pc, #32] ; 3001c620 <== NOT EXECUTED 3001c5fc: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001c600: e58dc000 str ip, [sp] <== NOT EXECUTED 3001c604: ebffffeb bl 3001c5b8 <== NOT EXECUTED 3001c608: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c60c: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001c610: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001c614: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c618: e8bd8000 pop {pc} <== NOT EXECUTED 3001c61c: 300548f8 .word 0x300548f8 3001c620: 30054830 .word 0x30054830 3001c5b8 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 3001c5b8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c5bc: e1a0c002 mov ip, r2 <== NOT EXECUTED 3001c5c0: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getpw_r(name, 0, pwd, buffer, bufsize, result); 3001c5c4: e58d3000 str r3, [sp] <== NOT EXECUTED 3001c5c8: e1a0300c mov r3, ip <== NOT EXECUTED 3001c5cc: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001c5d0: e1a02001 mov r2, r1 <== NOT EXECUTED 3001c5d4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001c5d8: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001c5dc: ebffffa1 bl 3001c468 <== NOT EXECUTED } 3001c5e0: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c5e4: e8bd8000 pop {pc} <== NOT EXECUTED 3001c574 : struct passwd *getpwuid( uid_t uid ) { 3001c574: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c578: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 3001c57c: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 3001c580: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001c584: e59f1024 ldr r1, [pc, #36] ; 3001c5b0 <== NOT EXECUTED 3001c588: e59f2024 ldr r2, [pc, #36] ; 3001c5b4 <== NOT EXECUTED 3001c58c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001c590: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 3001c594: e58dc000 str ip, [sp] <== NOT EXECUTED 3001c598: ebffffe6 bl 3001c538 <== NOT EXECUTED 3001c59c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c5a0: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001c5a4: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001c5a8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c5ac: e8bd8000 pop {pc} <== NOT EXECUTED 3001c5b0: 300548f8 .word 0x300548f8 3001c5b4: 30054830 .word 0x30054830 3001c538 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 3001c538: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001c53c: e1a0c001 mov ip, r1 <== NOT EXECUTED 3001c540: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c544: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001c548: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 3001c54c: e1a0200c mov r2, ip <== NOT EXECUTED 3001c550: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001c554: e58d3000 str r3, [sp] <== NOT EXECUTED 3001c558: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 3001c55c: e1a0300e mov r3, lr <== NOT EXECUTED 3001c560: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001c564: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001c568: ebffffbe bl 3001c468 <== NOT EXECUTED } 3001c56c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001c570: e8bd8000 pop {pc} <== NOT EXECUTED 30008794 : int gettimeofday( struct timeval *tp, void * __tz ) { 30008794: e92d4030 push {r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 30008798: e2505000 subs r5, r0, #0 ; 0x0 int gettimeofday( struct timeval *tp, void * __tz ) { 3000879c: e24dd008 sub sp, sp, #8 ; 0x8 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 300087a0: 1a000004 bne 300087b8 errno = EFAULT; 300087a4: eb0007ed bl 3000a760 <__errno> <== NOT EXECUTED 300087a8: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 300087ac: e5803000 str r3, [r0] <== NOT EXECUTED 300087b0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300087b4: ea00000c b 300087ec <== NOT EXECUTED ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 300087b8: e10f4000 mrs r4, CPSR 300087bc: e38430c0 orr r3, r4, #192 ; 0xc0 300087c0: e129f003 msr CPSR_fc, r3 _TOD_Get( &now ); 300087c4: e1a0000d mov r0, sp 300087c8: ebfff22f bl 3000508c <_TOD_Get> _ISR_Enable(level); 300087cc: e129f004 msr CPSR_fc, r4 time->tv_sec = now.tv_sec; 300087d0: e59d3000 ldr r3, [sp] time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 300087d4: e3a01ffa mov r1, #1000 ; 0x3e8 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); time->tv_sec = now.tv_sec; 300087d8: e5853000 str r3, [r5] time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 300087dc: e59d0004 ldr r0, [sp, #4] 300087e0: eb002309 bl 3001140c <__aeabi_uidiv> 300087e4: e5850004 str r0, [r5, #4] 300087e8: 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; } 300087ec: e28dd008 add sp, sp, #8 ; 0x8 300087f0: e8bd8030 pop {r4, r5, pc} 30003e48 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 30003e48: e59f3008 ldr r3, [pc, #8] ; 30003e58 <== NOT EXECUTED 30003e4c: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } 30003e50: e1d302ba ldrh r0, [r3, #42] <== NOT EXECUTED 30003e54: e12fff1e bx lr <== NOT EXECUTED 30003e58: 30040bf4 .word 0x30040bf4 30026c4c : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } 30026c4c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30026c50: e12fff1e bx lr <== NOT EXECUTED 30026c54 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 30026c54: e5903000 ldr r3, [r0] <== 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; 30026c58: e3a0c000 mov ip, #0 ; 0x0 <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 30026c5c: e5932038 ldr r2, [r3, #56] <== 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; 30026c60: e581c03c str ip, [r1, #60] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 30026c64: e5812008 str r2, [r1, #8] <== NOT EXECUTED 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; buf->st_blocks = 0; 30026c68: e581c040 str ip, [r1, #64] <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; 30026c6c: e5932040 ldr r2, [r3, #64] <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 30026c70: e92d4010 push {r4, lr} <== NOT EXECUTED 30026c74: e1a04001 mov r4, r1 <== 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; 30026c78: e5842024 str r2, [r4, #36] <== NOT EXECUTED buf->st_mtime = the_jnode->stat_mtime; 30026c7c: e5932044 ldr r2, [r3, #68] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 30026c80: e3a00000 mov r0, #0 ; 0x0 <== 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; 30026c84: e584202c str r2, [r4, #44] <== 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; 30026c88: e1d323b4 ldrh r2, [r3, #52] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 30026c8c: e3a01000 mov r1, #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; 30026c90: e1c421b0 strh r2, [r4, #16] <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; 30026c94: e5840018 str r0, [r4, #24] <== NOT EXECUTED 30026c98: e584101c str r1, [r4, #28] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 30026c9c: e8840003 stm r4, {r0, r1} <== 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; 30026ca0: e1d303bc ldrh r0, [r3, #60] <== 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; 30026ca4: e5932030 ldr r2, [r3, #48] <== NOT EXECUTED buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; 30026ca8: e1c401b2 strh r0, [r4, #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; 30026cac: e5931048 ldr r1, [r3, #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; 30026cb0: e584200c str r2, [r4, #12] <== NOT EXECUTED buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 30026cb4: e1d323be ldrh r2, [r3, #62] <== 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; 30026cb8: e5841034 str r1, [r4, #52] <== NOT EXECUTED buf->st_size = 0; 30026cbc: e584c020 str ip, [r4, #32] <== 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; 30026cc0: e1c421b4 strh r2, [r4, #20] <== NOT EXECUTED 30026cc4: e2831054 add r1, r3, #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 ; 30026cc8: e5932050 ldr r2, [r3, #80] <== NOT EXECUTED 30026ccc: ea000003 b 30026ce0 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { buf->st_size = buf->st_size + sizeof( struct dirent ); 30026cd0: e5943020 ldr r3, [r4, #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 ) { 30026cd4: e5922000 ldr r2, [r2] <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); 30026cd8: e2833f43 add r3, r3, #268 ; 0x10c <== NOT EXECUTED 30026cdc: e5843020 str r3, [r4, #32] <== 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 ) ; 30026ce0: e1520001 cmp r2, r1 <== NOT EXECUTED 30026ce4: 1afffff9 bne 30026cd0 <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } 30026ce8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30026cec: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30026cf0 : rtems_libio_t *iop, off_t offset, int whence ) { switch( whence ) { 30026cf0: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED off_t imfs_dir_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 30026cf4: e92d4010 push {r4, lr} <== NOT EXECUTED 30026cf8: e1a04000 mov r4, r0 <== NOT EXECUTED switch( whence ) { 30026cfc: 8a000007 bhi 30026d20 <== 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)) * 30026d00: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED 30026d04: e3a01f43 mov r1, #268 ; 0x10c <== NOT EXECUTED 30026d08: eb004a64 bl 300396a0 <__aeabi_uidiv> <== NOT EXECUTED 30026d0c: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 30026d10: e0030390 mul r3, r0, r3 <== NOT EXECUTED 30026d14: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30026d18: e5843008 str r3, [r4, #8] <== NOT EXECUTED 30026d1c: 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 ); 30026d20: eb0009dc bl 30029498 <__errno> <== NOT EXECUTED 30026d24: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30026d28: e5803000 str r3, [r0] <== NOT EXECUTED 30026d2c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED break; } return 0; } 30026d30: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30026c2c : IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 30026c2c: e590302c ldr r3, [r0, #44] <== NOT EXECUTED 30026c30: e593304c ldr r3, [r3, #76] <== NOT EXECUTED 30026c34: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 30026c38: 03a03000 moveq r3, #0 ; 0x0 <== NOT EXECUTED 30026c3c: 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 ) 30026c40: 13e00000 mvnne r0, #0 ; 0x0 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 30026c44: 01a00003 moveq r0, r3 <== NOT EXECUTED return 0; } 30026c48: e12fff1e bx lr <== NOT EXECUTED 30026e14 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30026e14: 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; 30026e18: e590302c ldr r3, [r0, #44] <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30026e1c: e24ddf45 sub sp, sp, #276 ; 0x114 <== NOT EXECUTED 30026e20: e58d1000 str r1, [sp] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 30026e24: 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; 30026e28: e283b054 add fp, r3, #84 ; 0x54 <== 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 ) ) 30026e2c: e157000b cmp r7, fp <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30026e30: e1a08000 mov r8, r0 <== 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 ) ) 30026e34: 03a06000 moveq r6, #0 ; 0x0 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30026e38: 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 ) ) 30026e3c: 0a000028 beq 30026ee4 <== 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); 30026e40: e3a01f43 mov r1, #268 ; 0x10c <== NOT EXECUTED 30026e44: eb004a15 bl 300396a0 <__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; 30026e48: 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); 30026e4c: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 30026e50: e020a093 mla r0, r3, r0, sl <== NOT EXECUTED 30026e54: 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 ); 30026e58: 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); 30026e5c: e58d0004 str r0, [sp, #4] <== NOT EXECUTED 30026e60: 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 ); 30026e64: e283900c add r9, r3, #12 ; 0xc <== NOT EXECUTED 30026e68: ea00001a b 30026ed8 <== 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 ) ){ 30026e6c: e157000b cmp r7, fp <== NOT EXECUTED 30026e70: 0a00001b beq 30026ee4 <== NOT EXECUTED /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 30026e74: e155000a cmp r5, sl <== NOT EXECUTED 30026e78: ba000014 blt 30026ed0 <== NOT EXECUTED /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 30026e7c: 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; 30026e80: e5973038 ldr r3, [r7, #56] <== NOT EXECUTED tmp_dirent.d_namlen = strlen( the_jnode->name ); 30026e84: 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; 30026e88: 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 ); 30026e8c: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 30026e90: 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 ); 30026e94: e1a00004 mov r0, r4 <== NOT EXECUTED 30026e98: eb002014 bl 3002eef0 <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 30026e9c: 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 ); 30026ea0: e1cd01b2 strh r0, [sp, #18] <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 30026ea4: e1a00009 mov r0, r9 <== NOT EXECUTED 30026ea8: eb001e23 bl 3002e73c <== NOT EXECUTED memcpy( 30026eac: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30026eb0: e28d1008 add r1, sp, #8 ; 0x8 <== NOT EXECUTED 30026eb4: e0830006 add r0, r3, r6 <== NOT EXECUTED 30026eb8: e3a02f43 mov r2, #268 ; 0x10c <== NOT EXECUTED 30026ebc: eb0012ed bl 3002ba78 <== NOT EXECUTED buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 30026ec0: e5983008 ldr r3, [r8, #8] <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); 30026ec4: e2866f43 add r6, r6, #268 ; 0x10c <== NOT EXECUTED memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 30026ec8: e2833f43 add r3, r3, #268 ; 0x10c <== NOT EXECUTED 30026ecc: e5883008 str r3, [r8, #8] <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 30026ed0: e5977000 ldr r7, [r7] <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30026ed4: 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; 30026ed8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 30026edc: e1550003 cmp r5, r3 <== NOT EXECUTED 30026ee0: baffffe1 blt 30026e6c <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 30026ee4: e1a00006 mov r0, r6 <== NOT EXECUTED 30026ee8: e28ddf45 add sp, sp, #276 ; 0x114 <== NOT EXECUTED 30026eec: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30026d34 : */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30026d34: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 30026d38: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30026d3c: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 30026d40: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 30026d44: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 30026d48: e1520003 cmp r2, r3 <== NOT EXECUTED */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30026d4c: 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 ) ) 30026d50: 0a000002 beq 30026d60 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTEMPTY ); 30026d54: eb0009cf bl 30029498 <__errno> <== NOT EXECUTED 30026d58: e3a0305a mov r3, #90 ; 0x5a <== NOT EXECUTED 30026d5c: ea000008 b 30026d84 <== NOT EXECUTED /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 30026d60: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 30026d64: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30026d68: e1530004 cmp r3, r4 <== NOT EXECUTED 30026d6c: 0a000002 beq 30026d7c <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 30026d70: e594505c ldr r5, [r4, #92] <== NOT EXECUTED 30026d74: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30026d78: 0a000004 beq 30026d90 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBUSY ); 30026d7c: eb0009c5 bl 30029498 <__errno> <== NOT EXECUTED 30026d80: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 30026d84: e5803000 str r3, [r0] <== NOT EXECUTED 30026d88: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30026d8c: ea00001d b 30026e08 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 30026d90: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 30026d94: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30026d98: 0a000002 beq 30026da8 <== NOT EXECUTED 30026d9c: e1a00004 mov r0, r4 <== NOT EXECUTED 30026da0: ebffde8b bl 3001e7d4 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 30026da4: e5845008 str r5, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30026da8: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30026dac: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30026db0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30026db4: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30026db8: e1a0000d mov r0, sp <== NOT EXECUTED 30026dbc: ebff7405 bl 30003dd8 <== NOT EXECUTED 30026dc0: 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) ) { 30026dc4: 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 ); 30026dc8: 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) ) { 30026dcc: ebff7466 bl 30003f6c <== NOT EXECUTED 30026dd0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30026dd4: 1a00000a bne 30026e04 <== NOT EXECUTED 30026dd8: e1d403b4 ldrh r0, [r4, #52] <== NOT EXECUTED 30026ddc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30026de0: 1a000007 bne 30026e04 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 30026de4: e59f2024 ldr r2, [pc, #36] ; 30026e10 <== NOT EXECUTED 30026de8: e5963000 ldr r3, [r6] <== NOT EXECUTED 30026dec: e5921000 ldr r1, [r2] <== NOT EXECUTED 30026df0: e5912004 ldr r2, [r1, #4] <== NOT EXECUTED 30026df4: e1520003 cmp r2, r3 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; 30026df8: 05810004 streq r0, [r1, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 30026dfc: e1a00004 mov r0, r4 <== NOT EXECUTED 30026e00: ebff73cc bl 30003d38 <== NOT EXECUTED 30026e04: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 30026e08: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30026e0c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30026e10: 30040bf4 .word 0x30040bf4 3001c16c : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 3001c16c: e92d4010 push {r4, lr} <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 3001c170: e59f2098 ldr r2, [pc, #152] ; 3001c210 <== NOT EXECUTED 3001c174: e5d23000 ldrb r3, [r2] <== NOT EXECUTED 3001c178: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c17c: 18bd8010 popne {r4, pc} <== NOT EXECUTED return; etc_passwd_initted = 1; 3001c180: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED mkdir("/etc", 0777); 3001c184: e59f1088 ldr r1, [pc, #136] ; 3001c214 <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 3001c188: e5c23000 strb r3, [r2] <== NOT EXECUTED mkdir("/etc", 0777); 3001c18c: e59f0084 ldr r0, [pc, #132] ; 3001c218 <== NOT EXECUTED 3001c190: ebffa0d3 bl 300044e4 <== NOT EXECUTED /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 3001c194: e59f0080 ldr r0, [pc, #128] ; 3001c21c <== NOT EXECUTED 3001c198: e59f1080 ldr r1, [pc, #128] ; 3001c220 <== NOT EXECUTED 3001c19c: eb003701 bl 30029da8 <== NOT EXECUTED 3001c1a0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c1a4: 1a000008 bne 3001c1cc <== NOT EXECUTED fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 3001c1a8: e59f006c ldr r0, [pc, #108] ; 3001c21c <== NOT EXECUTED 3001c1ac: e59f1070 ldr r1, [pc, #112] ; 3001c224 <== NOT EXECUTED 3001c1b0: eb0036fc bl 30029da8 <== NOT EXECUTED 3001c1b4: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001c1b8: 0a000004 beq 3001c1d0 <== NOT EXECUTED fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 3001c1bc: e59f0064 ldr r0, [pc, #100] ; 3001c228 <== NOT EXECUTED 3001c1c0: e1a01004 mov r1, r4 <== NOT EXECUTED 3001c1c4: eb003749 bl 30029ef0 <== NOT EXECUTED "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 3001c1c8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c1cc: eb003502 bl 300295dc <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 3001c1d0: e59f0054 ldr r0, [pc, #84] ; 3001c22c <== NOT EXECUTED 3001c1d4: e59f1044 ldr r1, [pc, #68] ; 3001c220 <== NOT EXECUTED 3001c1d8: eb0036f2 bl 30029da8 <== NOT EXECUTED 3001c1dc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c1e0: 1a000008 bne 3001c208 <== NOT EXECUTED fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 3001c1e4: e59f0040 ldr r0, [pc, #64] ; 3001c22c <== NOT EXECUTED 3001c1e8: e59f1034 ldr r1, [pc, #52] ; 3001c224 <== NOT EXECUTED 3001c1ec: eb0036ed bl 30029da8 <== NOT EXECUTED 3001c1f0: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001c1f4: 08bd8010 popeq {r4, pc} <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" 3001c1f8: e59f0030 ldr r0, [pc, #48] ; 3001c230 <== NOT EXECUTED 3001c1fc: e1a01004 mov r1, r4 <== NOT EXECUTED 3001c200: eb00373a bl 30029ef0 <== NOT EXECUTED "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 3001c204: e1a00004 mov r0, r4 <== NOT EXECUTED } } 3001c208: 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); 3001c20c: ea0034f2 b 300295dc <== NOT EXECUTED 3001c210: 30054828 .word 0x30054828 3001c214: 000001ff .word 0x000001ff 3001c218: 3003e04f .word 0x3003e04f 3001c21c: 3003e054 .word 0x3003e054 3001c220: 3003c860 .word 0x3003c860 3001c224: 3003c50c .word 0x3003c50c 3001c228: 3003e060 .word 0x3003e060 3001c22c: 3003e0c7 .word 0x3003e0c7 3001c230: 3003e0d2 .word 0x3003e0d2 30012258 : int ioctl( int fd, ioctl_command_t command, ... ) { 30012258: 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 ); 3001225c: e59f3080 ldr r3, [pc, #128] ; 300122e4 <== NOT EXECUTED int ioctl( int fd, ioctl_command_t command, ... ) { 30012260: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 30012264: e5933000 ldr r3, [r3] <== NOT EXECUTED int ioctl( int fd, ioctl_command_t command, ... ) { 30012268: e1a01000 mov r1, r0 <== NOT EXECUTED va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 3001226c: e1500003 cmp r0, r3 <== NOT EXECUTED 30012270: 2a00000a bcs 300122a0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30012274: e59f306c ldr r3, [pc, #108] ; 300122e8 <== NOT EXECUTED 30012278: e5932000 ldr r2, [r3] <== NOT EXECUTED 3001227c: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 30012280: e0202193 mla r0, r3, r1, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30012284: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 30012288: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001228c: 0a000003 beq 300122a0 <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 30012290: e5903030 ldr r3, [r0, #48] <== NOT EXECUTED iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 30012294: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 30012298: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001229c: 1a000002 bne 300122ac <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 300122a0: eb0001f7 bl 30012a84 <__errno> <== NOT EXECUTED 300122a4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 300122a8: ea000004 b 300122c0 <== NOT EXECUTED if ( !iop->handlers->ioctl_h ) 300122ac: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 300122b0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300122b4: 1a000004 bne 300122cc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300122b8: eb0001f1 bl 30012a84 <__errno> <== NOT EXECUTED 300122bc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300122c0: e5803000 str r3, [r0] <== NOT EXECUTED 300122c4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300122c8: ea000002 b 300122d8 <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 300122cc: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 300122d0: e1a0e00f mov lr, pc <== NOT EXECUTED 300122d4: e12fff13 bx r3 <== NOT EXECUTED return rc; } 300122d8: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 300122dc: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 300122e0: e12fff1e bx lr <== NOT EXECUTED 300122e4: 300210e4 .word 0x300210e4 300122e8: 30022ee0 .word 0x30022ee0 30002900 : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) 30002900: e5912030 ldr r2, [r1, #48] <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002904: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 30002908: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 3000290c: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; 30002910: 1200407f andne r4, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 30002914: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002918: e1a05001 mov r5, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) 3000291c: 0a000006 beq 3000293c <== NOT EXECUTED c = tolower (c); 30002920: e59f3164 ldr r3, [pc, #356] ; 30002a8c <== NOT EXECUTED 30002924: e1a00004 mov r0, r4 <== NOT EXECUTED 30002928: e5933000 ldr r3, [r3] <== NOT EXECUTED 3000292c: e7d33004 ldrb r3, [r3, r4] <== NOT EXECUTED 30002930: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 30002934: 12840020 addne r0, r4, #32 ; 0x20 <== NOT EXECUTED 30002938: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { 3000293c: e354000d cmp r4, #13 ; 0xd <== NOT EXECUTED 30002940: 1a000005 bne 3000295c <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 30002944: e3120080 tst r2, #128 ; 0x80 <== NOT EXECUTED 30002948: 1a00004d bne 30002a84 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 3000294c: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 30002950: 03a0400d moveq r4, #13 ; 0xd <== NOT EXECUTED 30002954: 13a0400a movne r4, #10 ; 0xa <== NOT EXECUTED 30002958: ea000007 b 3000297c <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 3000295c: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 30002960: 1a000003 bne 30002974 <== 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; 30002964: e3120040 tst r2, #64 ; 0x40 <== NOT EXECUTED 30002968: 03a0400a moveq r4, #10 ; 0xa <== NOT EXECUTED 3000296c: 13a0400d movne r4, #13 ; 0xd <== NOT EXECUTED 30002970: ea000001 b 3000297c <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 30002974: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30002978: 0a00002f beq 30002a3c <== NOT EXECUTED 3000297c: e595203c ldr r2, [r5, #60] <== NOT EXECUTED 30002980: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 30002984: 0a00002c beq 30002a3c <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 30002988: e5d53043 ldrb r3, [r5, #67] <== NOT EXECUTED 3000298c: e1530004 cmp r3, r4 <== NOT EXECUTED erase (tty, 0); 30002990: 01a00005 moveq r0, r5 <== NOT EXECUTED 30002994: 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]) { 30002998: 0a000004 beq 300029b0 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 3000299c: e5d53044 ldrb r3, [r5, #68] <== NOT EXECUTED 300029a0: e1530004 cmp r3, r4 <== NOT EXECUTED 300029a4: 1a000003 bne 300029b8 <== NOT EXECUTED erase (tty, 1); 300029a8: e1a00005 mov r0, r5 <== NOT EXECUTED 300029ac: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 300029b0: ebffff61 bl 3000273c <== NOT EXECUTED 300029b4: ea000030 b 30002a7c <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 300029b8: e5d53045 ldrb r3, [r5, #69] <== NOT EXECUTED 300029bc: e1530004 cmp r3, r4 <== NOT EXECUTED 300029c0: 0a00001b beq 30002a34 <== NOT EXECUTED return 1; } else if (c == '\n') { 300029c4: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 300029c8: 1a00000a bne 300029f8 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 300029cc: e3120048 tst r2, #72 ; 0x48 <== NOT EXECUTED echo (c, tty); 300029d0: 11a00004 movne r0, r4 <== NOT EXECUTED 300029d4: 11a01005 movne r1, r5 <== NOT EXECUTED 300029d8: 1bffff36 blne 300026b8 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 300029dc: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED 300029e0: e595101c ldr r1, [r5, #28] <== NOT EXECUTED 300029e4: e2820001 add r0, r2, #1 ; 0x1 <== NOT EXECUTED 300029e8: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED 300029ec: e7c13002 strb r3, [r1, r2] <== NOT EXECUTED 300029f0: e5850020 str r0, [r5, #32] <== NOT EXECUTED 300029f4: ea00000e b 30002a34 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 300029f8: e5d5304c ldrb r3, [r5, #76] <== NOT EXECUTED 300029fc: e1530004 cmp r3, r4 <== NOT EXECUTED 30002a00: 0a000002 beq 30002a10 <== NOT EXECUTED 30002a04: e5d53051 ldrb r3, [r5, #81] <== NOT EXECUTED 30002a08: e1530004 cmp r3, r4 <== NOT EXECUTED 30002a0c: 1a00000a bne 30002a3c <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) 30002a10: e3120008 tst r2, #8 ; 0x8 <== NOT EXECUTED echo (c, tty); 30002a14: 11a00004 movne r0, r4 <== NOT EXECUTED 30002a18: 11a01005 movne r1, r5 <== NOT EXECUTED 30002a1c: 1bffff25 blne 300026b8 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002a20: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30002a24: e595201c ldr r2, [r5, #28] <== NOT EXECUTED 30002a28: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 30002a2c: e7c24003 strb r4, [r2, r3] <== NOT EXECUTED 30002a30: e5851020 str r1, [r5, #32] <== NOT EXECUTED 30002a34: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30002a38: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 30002a3c: e59f304c ldr r3, [pc, #76] ; 30002a90 <== NOT EXECUTED 30002a40: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED 30002a44: e5933000 ldr r3, [r3] <== NOT EXECUTED 30002a48: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002a4c: e1520003 cmp r2, r3 <== NOT EXECUTED 30002a50: aa00000b bge 30002a84 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 30002a54: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 30002a58: e3130008 tst r3, #8 ; 0x8 <== NOT EXECUTED echo (c, tty); 30002a5c: 11a00004 movne r0, r4 <== NOT EXECUTED 30002a60: 11a01005 movne r1, r5 <== NOT EXECUTED 30002a64: 1bffff13 blne 300026b8 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002a68: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30002a6c: e595201c ldr r2, [r5, #28] <== NOT EXECUTED 30002a70: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 30002a74: e7c24003 strb r4, [r2, r3] <== NOT EXECUTED 30002a78: e5851020 str r1, [r5, #32] <== NOT EXECUTED 30002a7c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30002a80: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002a84: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 30002a88: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002a8c: 30014bf0 .word 0x30014bf0 30002a90: 30014b8c .word 0x30014b8c 3001d7c8 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 3001d7c8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001d7cc: e12fff1e bx lr <== NOT EXECUTED 3001c6f0 : int link( const char *existing, const char *new ) { 3001c6f0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 3001c6f4: e24dd024 sub sp, sp, #36 ; 0x24 <== NOT EXECUTED 3001c6f8: e1a04001 mov r4, r1 <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 3001c6fc: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 3001c700: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001c704: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3001c708: ebff9d3b bl 30003bfc <== NOT EXECUTED if ( result != 0 ) 3001c70c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001c710: 1a000024 bne 3001c7a8 <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 3001c714: e5d43000 ldrb r3, [r4] <== NOT EXECUTED 3001c718: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 3001c71c: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 3001c720: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 3001c724: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 3001c728: 0a000001 beq 3001c734 <== NOT EXECUTED 3001c72c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c730: 1a000005 bne 3001c74c <== NOT EXECUTED 3001c734: e59f31d4 ldr r3, [pc, #468] ; 3001c910 <== NOT EXECUTED 3001c738: e1a0c00d mov ip, sp <== NOT EXECUTED 3001c73c: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001c740: e3a0e001 mov lr, #1 ; 0x1 <== NOT EXECUTED 3001c744: e2833014 add r3, r3, #20 ; 0x14 <== NOT EXECUTED 3001c748: ea000004 b 3001c760 <== NOT EXECUTED 3001c74c: e59f31bc ldr r3, [pc, #444] ; 3001c910 <== NOT EXECUTED 3001c750: e1a0c00d mov ip, sp <== NOT EXECUTED 3001c754: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001c758: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001c75c: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 3001c760: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 3001c764: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 3001c768: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001c76c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 3001c770: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c774: 1a00000d bne 3001c7b0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001c778: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001c77c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c780: 0a000005 beq 3001c79c <== NOT EXECUTED 3001c784: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c788: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c78c: 0a000002 beq 3001c79c <== NOT EXECUTED 3001c790: e28d0010 add r0, sp, #16 ; 0x10 <== NOT EXECUTED 3001c794: e1a0e00f mov lr, pc <== NOT EXECUTED 3001c798: e12fff13 bx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001c79c: eb00333d bl 30029498 <__errno> <== NOT EXECUTED 3001c7a0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001c7a4: e5803000 str r3, [r0] <== NOT EXECUTED 3001c7a8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001c7ac: ea000054 b 3001c904 <== NOT EXECUTED } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 3001c7b0: e084000e add r0, r4, lr <== NOT EXECUTED 3001c7b4: e1a0100d mov r1, sp <== NOT EXECUTED 3001c7b8: e28d2020 add r2, sp, #32 ; 0x20 <== NOT EXECUTED 3001c7bc: e1a0e00f mov lr, pc <== NOT EXECUTED 3001c7c0: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 3001c7c4: 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 ); 3001c7c8: e1a0600d mov r6, sp <== NOT EXECUTED if ( result != 0 ) { 3001c7cc: 0a00000a beq 3001c7fc <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001c7d0: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001c7d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c7d8: 0a000004 beq 3001c7f0 <== NOT EXECUTED 3001c7dc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c7e0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c7e4: 128d0010 addne r0, sp, #16 ; 0x10 <== NOT EXECUTED 3001c7e8: 11a0e00f movne lr, pc <== NOT EXECUTED 3001c7ec: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 3001c7f0: eb003328 bl 30029498 <__errno> <== NOT EXECUTED 3001c7f4: e5804000 str r4, [r0] <== NOT EXECUTED 3001c7f8: eaffffea b 3001c7a8 <== 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 ) { 3001c7fc: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 3001c800: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001c804: e1530002 cmp r3, r2 <== NOT EXECUTED 3001c808: 0a000012 beq 3001c858 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001c80c: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001c810: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c814: 0a000004 beq 3001c82c <== NOT EXECUTED 3001c818: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c81c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c820: 128d0010 addne r0, sp, #16 ; 0x10 <== NOT EXECUTED 3001c824: 11a0e00f movne lr, pc <== NOT EXECUTED 3001c828: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 3001c82c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001c830: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c834: 0a000004 beq 3001c84c <== NOT EXECUTED 3001c838: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c83c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c840: 11a0000d movne r0, sp <== NOT EXECUTED 3001c844: 11a0e00f movne lr, pc <== NOT EXECUTED 3001c848: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 3001c84c: eb003311 bl 30029498 <__errno> <== NOT EXECUTED 3001c850: e3a03012 mov r3, #18 ; 0x12 <== NOT EXECUTED 3001c854: eaffffd2 b 3001c7a4 <== NOT EXECUTED } if ( !parent_loc.ops->link_h ) { 3001c858: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001c85c: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 3001c860: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c864: 1a00000f bne 3001c8a8 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001c868: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001c86c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c870: 0a000004 beq 3001c888 <== NOT EXECUTED 3001c874: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c878: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c87c: 128d0010 addne r0, sp, #16 ; 0x10 <== NOT EXECUTED 3001c880: 11a0e00f movne lr, pc <== NOT EXECUTED 3001c884: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 3001c888: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001c88c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c890: 0affffc1 beq 3001c79c <== NOT EXECUTED 3001c894: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c898: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c89c: 11a0000d movne r0, sp <== NOT EXECUTED 3001c8a0: 1affffbb bne 3001c794 <== NOT EXECUTED 3001c8a4: eaffffbc b 3001c79c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 3001c8a8: e28d5010 add r5, sp, #16 ; 0x10 <== NOT EXECUTED 3001c8ac: e1a0100d mov r1, sp <== NOT EXECUTED 3001c8b0: e1a00005 mov r0, r5 <== NOT EXECUTED 3001c8b4: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED 3001c8b8: e1a0e00f mov lr, pc <== NOT EXECUTED 3001c8bc: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001c8c0: e59d3018 ldr r3, [sp, #24] <== 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 ); 3001c8c4: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001c8c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c8cc: 0a000004 beq 3001c8e4 <== NOT EXECUTED 3001c8d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c8d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c8d8: 11a00005 movne r0, r5 <== NOT EXECUTED 3001c8dc: 11a0e00f movne lr, pc <== NOT EXECUTED 3001c8e0: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 3001c8e4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001c8e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c8ec: 0a000004 beq 3001c904 <== NOT EXECUTED 3001c8f0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001c8f4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001c8f8: 11a0000d movne r0, sp <== NOT EXECUTED 3001c8fc: 11a0e00f movne lr, pc <== NOT EXECUTED 3001c900: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001c904: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c908: e28dd024 add sp, sp, #36 ; 0x24 <== NOT EXECUTED 3001c90c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001c910: 30040bf4 .word 0x30040bf4 30012cec : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30012cec: e59f30c4 ldr r3, [pc, #196] ; 30012db8 <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 30012cf0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30012cf4: e5933000 ldr r3, [r3] <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 30012cf8: e1a0c002 mov ip, r2 <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30012cfc: e1500003 cmp r0, r3 <== NOT EXECUTED 30012d00: 2a000006 bcs 30012d20 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30012d04: e59f30b0 ldr r3, [pc, #176] ; 30012dbc <== NOT EXECUTED 30012d08: e5932000 ldr r2, [r3] <== NOT EXECUTED 30012d0c: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 30012d10: e0242093 mla r4, r3, r0, r2 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30012d14: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 30012d18: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30012d1c: 1a000002 bne 30012d2c <== NOT EXECUTED 30012d20: ebffde8e bl 3000a760 <__errno> <== NOT EXECUTED 30012d24: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30012d28: ea000017 b 30012d8c <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 30012d2c: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 30012d30: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 30012d34: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30012d38: 1a000002 bne 30012d48 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30012d3c: ebffde87 bl 3000a760 <__errno> <== NOT EXECUTED 30012d40: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30012d44: ea000010 b 30012d8c <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 30012d48: e35c0001 cmp ip, #1 ; 0x1 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; 30012d4c: e5945008 ldr r5, [r4, #8] <== NOT EXECUTED switch ( whence ) { 30012d50: 0a000005 beq 30012d6c <== NOT EXECUTED 30012d54: e35c0002 cmp ip, #2 ; 0x2 <== NOT EXECUTED 30012d58: 0a000005 beq 30012d74 <== NOT EXECUTED 30012d5c: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED case SEEK_SET: iop->offset = offset; 30012d60: 05841008 streq r1, [r4, #8] <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 30012d64: 0a00000b beq 30012d98 <== NOT EXECUTED 30012d68: ea000005 b 30012d84 <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 30012d6c: e0813005 add r3, r1, r5 <== NOT EXECUTED 30012d70: ea000001 b 30012d7c <== NOT EXECUTED break; case SEEK_END: iop->offset = iop->size + offset; 30012d74: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 30012d78: e0813003 add r3, r1, r3 <== NOT EXECUTED 30012d7c: e5843008 str r3, [r4, #8] <== NOT EXECUTED 30012d80: ea000004 b 30012d98 <== NOT EXECUTED break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 30012d84: ebffde75 bl 3000a760 <__errno> <== NOT EXECUTED 30012d88: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30012d8c: e5803000 str r3, [r0] <== NOT EXECUTED 30012d90: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30012d94: 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 ); 30012d98: e1a0200c mov r2, ip <== NOT EXECUTED 30012d9c: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 30012da0: e1a00004 mov r0, r4 <== NOT EXECUTED 30012da4: e1a0e00f mov lr, pc <== NOT EXECUTED 30012da8: e593f014 ldr pc, [r3, #20] <== NOT EXECUTED if ( status == (off_t) -1 ) 30012dac: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED iop->offset = old_offset; 30012db0: 05845008 streq r5, [r4, #8] <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 30012db4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30012db8: 3001459c .word 0x3001459c 30012dbc: 30015290 .word 0x30015290 3001ca04 : int _STAT_NAME( const char *path, struct stat *buf ) { 3001ca04: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 3001ca08: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 3001ca0c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 3001ca10: 1a000002 bne 3001ca20 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 3001ca14: eb00329f bl 30029498 <__errno> <== NOT EXECUTED 3001ca18: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 3001ca1c: ea000014 b 3001ca74 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 3001ca20: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001ca24: e1a0200d mov r2, sp <== NOT EXECUTED 3001ca28: e1a03001 mov r3, r1 <== NOT EXECUTED 3001ca2c: ebff9c72 bl 30003bfc <== NOT EXECUTED if ( status != 0 ) 3001ca30: 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 ); 3001ca34: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 3001ca38: 1a00000e bne 3001ca78 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 3001ca3c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3001ca40: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 3001ca44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001ca48: 1a00000c bne 3001ca80 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001ca4c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001ca50: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001ca54: 0a000004 beq 3001ca6c <== NOT EXECUTED 3001ca58: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001ca5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001ca60: 11a0000d movne r0, sp <== NOT EXECUTED 3001ca64: 11a0e00f movne lr, pc <== NOT EXECUTED 3001ca68: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001ca6c: eb003289 bl 30029498 <__errno> <== NOT EXECUTED 3001ca70: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001ca74: e5803000 str r3, [r0] <== NOT EXECUTED 3001ca78: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001ca7c: ea000011 b 3001cac8 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 3001ca80: e1a01000 mov r1, r0 <== NOT EXECUTED 3001ca84: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 3001ca88: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ca8c: eb003c89 bl 3002bcb8 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 3001ca90: e1a01004 mov r1, r4 <== NOT EXECUTED 3001ca94: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3001ca98: e1a0000d mov r0, sp <== NOT EXECUTED 3001ca9c: e1a0e00f mov lr, pc <== NOT EXECUTED 3001caa0: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001caa4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 3001caa8: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001caac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cab0: 0a000004 beq 3001cac8 <== NOT EXECUTED 3001cab4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001cab8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cabc: 11a0000d movne r0, sp <== NOT EXECUTED 3001cac0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001cac4: 112fff13 bxne r3 <== NOT EXECUTED return status; } 3001cac8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001cacc: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001cad0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30008b28 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 30008b28: e59f20cc ldr r2, [pc, #204] ; 30008bfc 30008b2c: e92d4030 push {r4, r5, lr} 30008b30: e5923004 ldr r3, [r2, #4] 30008b34: e1a05000 mov r5, r0 30008b38: e2833001 add r3, r3, #1 ; 0x1 30008b3c: e5823004 str r3, [r2, #4] /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 30008b40: ebffffef bl 30008b04 /* * Validate the parameters */ if ( !size ) 30008b44: e3550000 cmp r5, #0 ; 0x0 30008b48: 0a000028 beq 30008bf0 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 30008b4c: e59f30ac ldr r3, [pc, #172] ; 30008c00 30008b50: e5933000 ldr r3, [r3] 30008b54: e3530003 cmp r3, #3 ; 0x3 30008b58: 1a000002 bne 30008b68 30008b5c: ebffffd1 bl 30008aa8 30008b60: e3500000 cmp r0, #0 ; 0x0 30008b64: 0a000021 beq 30008bf0 * 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 ); 30008b68: e59f0094 ldr r0, [pc, #148] ; 30008c04 30008b6c: e1a01005 mov r1, r5 30008b70: eb000365 bl 3000990c <_Protected_heap_Allocate> if ( !return_this ) { 30008b74: e2504000 subs r4, r0, #0 ; 0x0 30008b78: 1a00000d bne 30008bb4 if (rtems_malloc_sbrk_helpers) 30008b7c: e59f3084 ldr r3, [pc, #132] ; 30008c08 30008b80: e5933000 ldr r3, [r3] 30008b84: e3530000 cmp r3, #0 ; 0x0 30008b88: 0a000005 beq 30008ba4 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 30008b8c: e1a00005 mov r0, r5 <== NOT EXECUTED 30008b90: e1a0e00f mov lr, pc <== NOT EXECUTED 30008b94: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 30008b98: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = ENOMEM; return (void *) 0; 30008b9c: 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 ) { 30008ba0: 1a000003 bne 30008bb4 <== NOT EXECUTED errno = ENOMEM; 30008ba4: eb0006ed bl 3000a760 <__errno> 30008ba8: e3a0300c mov r3, #12 ; 0xc 30008bac: e5803000 str r3, [r0] 30008bb0: ea00000f b 30008bf4 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 30008bb4: e59f3050 ldr r3, [pc, #80] ; 30008c0c 30008bb8: e5933000 ldr r3, [r3] 30008bbc: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_dirty_helper)( return_this, size ); 30008bc0: 11a01005 movne r1, r5 30008bc4: 11a00004 movne r0, r4 30008bc8: 11a0e00f movne lr, pc 30008bcc: 112fff13 bxne r3 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30008bd0: e59f3038 ldr r3, [pc, #56] ; 30008c10 30008bd4: e5933000 ldr r3, [r3] 30008bd8: e3530000 cmp r3, #0 ; 0x0 30008bdc: 0a000004 beq 30008bf4 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 30008be0: e1a00004 mov r0, r4 <== NOT EXECUTED 30008be4: e1a0e00f mov lr, pc <== NOT EXECUTED 30008be8: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED 30008bec: ea000000 b 30008bf4 <== NOT EXECUTED 30008bf0: 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; } 30008bf4: e1a00004 mov r0, r4 30008bf8: e8bd8030 pop {r4, r5, pc} 30008bfc: 300152f4 .word 0x300152f4 30008c00: 300155b4 .word 0x300155b4 30008c04: 3001529c .word 0x3001529c 30008c08: 300150fc .word 0x300150fc 30008c0c: 30015100 .word 0x30015100 30008c10: 300150f8 .word 0x300150f8 30008af4 : } void malloc_deferred_free( void *pointer ) { 30008af4: 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 ); 30008af8: e59f0000 ldr r0, [pc, #0] ; 30008b00 <== NOT EXECUTED 30008afc: eafff06c b 30004cb4 <_Chain_Append> <== NOT EXECUTED 30008b00: 3001564c .word 0x3001564c 30008b04 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 30008b04: e52de004 push {lr} ; (str lr, [sp, #-4]!) 30008b08: ea000000 b 30008b10 /* * 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); 30008b0c: ebfffec2 bl 3000861c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 30008b10: e59f000c ldr r0, [pc, #12] ; 30008b24 30008b14: eb000241 bl 30009420 <_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) 30008b18: e3500000 cmp r0, #0 ; 0x0 30008b1c: 1afffffa bne 30008b0c free(to_be_freed); } 30008b20: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30008b24: 3001564c .word 0x3001564c 3002127c : void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 3002127c: e59f3024 ldr r3, [pc, #36] ; 300212a8 <== NOT EXECUTED */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 30021280: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 30021284: e5931000 ldr r1, [r3] <== NOT EXECUTED 30021288: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3002128c: ebff89be bl 3000398c <== NOT EXECUTED if ( memory ) 30021290: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED memfile_blocks_allocated++; 30021294: 159f2010 ldrne r2, [pc, #16] ; 300212ac <== NOT EXECUTED 30021298: 15923000 ldrne r3, [r2] <== NOT EXECUTED 3002129c: 12833001 addne r3, r3, #1 ; 0x1 <== NOT EXECUTED 300212a0: 15823000 strne r3, [r2] <== NOT EXECUTED return memory; } 300212a4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300212a8: 300420c4 .word 0x300420c4 300212ac: 300549f0 .word 0x300549f0 300216e4 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 300216e4: e92d4010 push {r4, lr} <== NOT EXECUTED 300216e8: 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) ) { 300216ec: ebff8a1e bl 30003f6c <== NOT EXECUTED 300216f0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300216f4: 1a00000d bne 30021730 <== NOT EXECUTED 300216f8: e1d413b4 ldrh r1, [r4, #52] <== NOT EXECUTED 300216fc: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30021700: 1a00000a bne 30021730 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 30021704: e59f302c ldr r3, [pc, #44] ; 30021738 <== NOT EXECUTED 30021708: e5932000 ldr r2, [r3] <== NOT EXECUTED 3002170c: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 30021710: 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) 30021714: 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; 30021718: 05821004 streq r1, [r2, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 3002171c: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED IMFS_memfile_remove( the_jnode ); 30021720: 11a00004 movne r0, r4 <== NOT EXECUTED 30021724: 1bffff99 blne 30021590 <== NOT EXECUTED free( the_jnode ); 30021728: e1a00004 mov r0, r4 <== NOT EXECUTED 3002172c: ebff8981 bl 30003d38 <== NOT EXECUTED } return 0; } 30021730: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30021734: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30021738: 30040bf4 .word 0x30040bf4 30021794 : */ int memfile_close( rtems_libio_t *iop ) { 30021794: 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) 30021798: e590300c ldr r3, [r0, #12] <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3002179c: e590202c ldr r2, [r0, #44] <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) 300217a0: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 300217a4: 15923050 ldrne r3, [r2, #80] <== NOT EXECUTED 300217a8: 15803008 strne r3, [r0, #8] <== NOT EXECUTED memfile_check_rmnod( the_jnode ); 300217ac: e1a00002 mov r0, r2 <== NOT EXECUTED 300217b0: ebffffcb bl 300216e4 <== NOT EXECUTED return 0; } 300217b4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300217b8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3002125c : */ void memfile_free_block( void *memory ) { 3002125c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); 30021260: ebff8ab4 bl 30003d38 <== NOT EXECUTED memfile_blocks_allocated--; 30021264: e59f200c ldr r2, [pc, #12] ; 30021278 <== NOT EXECUTED 30021268: e5923000 ldr r3, [r2] <== NOT EXECUTED 3002126c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30021270: e5823000 str r3, [r2] <== NOT EXECUTED } 30021274: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30021278: 300549f0 .word 0x300549f0 30021514 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 30021514: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 30021518: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 3002151c: e1a08001 mov r8, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 30021520: 059f0058 ldreq r0, [pc, #88] ; 30021580 <== NOT EXECUTED 30021524: 059f1058 ldreq r1, [pc, #88] ; 30021584 <== NOT EXECUTED 30021528: 059f2058 ldreq r2, [pc, #88] ; 30021588 <== NOT EXECUTED 3002152c: 059f3058 ldreq r3, [pc, #88] ; 3002158c <== NOT EXECUTED 30021530: 0bffe63b bleq 3001ae24 <__assert_func> <== NOT EXECUTED /* * Now go through all the slots in the table and free the memory. */ b = *block_table; 30021534: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 30021538: e5967000 ldr r7, [r6] <== NOT EXECUTED 3002153c: 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] ); 30021554: ebffff40 bl 3002125c <== NOT EXECUTED b[i] = 0; 30021558: 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 ); 3002156c: e5960000 ldr r0, [r6] <== NOT EXECUTED 30021570: ebffff39 bl 3002125c <== NOT EXECUTED *block_table = 0; 30021574: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30021578: e5863000 str r3, [r6] <== NOT EXECUTED } 3002157c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 30021580: 3003e309 .word 0x3003e309 30021584: 000001b1 .word 0x000001b1 30021588: 3003b068 .word 0x3003b068 3002158c: 3003e380 .word 0x3003e380 3002196c : int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 3002196c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 30021970: e590402c ldr r4, [r0, #44] <== NOT EXECUTED int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 30021974: 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 ) 30021978: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 3002197c: e1510003 cmp r1, r3 <== NOT EXECUTED 30021980: da000002 ble 30021990 <== NOT EXECUTED return IMFS_memfile_extend( the_jnode, length ); 30021984: e1a00004 mov r0, r4 <== NOT EXECUTED 30021988: ebffffad bl 30021844 <== NOT EXECUTED 3002198c: ea000007 b 300219b0 <== 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; 30021990: e5841050 str r1, [r4, #80] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30021994: e5801004 str r1, [r0, #4] <== NOT EXECUTED IMFS_update_atime( the_jnode ); 30021998: e1a0000d mov r0, sp <== NOT EXECUTED 3002199c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300219a0: ebff890c bl 30003dd8 <== NOT EXECUTED 300219a4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 300219a8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300219ac: e5843040 str r3, [r4, #64] <== NOT EXECUTED return 0; } 300219b0: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 300219b4: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30021254 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } 30021254: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30021258: e12fff1e bx lr <== NOT EXECUTED 300219b8 : off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 300219b8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 300219bc: e590402c ldr r4, [r0, #44] <== NOT EXECUTED off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 300219c0: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 300219c4: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 300219c8: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED 300219cc: 1a000004 bne 300219e4 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) 300219d0: e5940050 ldr r0, [r4, #80] <== NOT EXECUTED 300219d4: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED 300219d8: e1530000 cmp r3, r0 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 300219dc: c5850008 strgt r0, [r5, #8] <== NOT EXECUTED 300219e0: ea00000b b 30021a14 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 300219e4: e1a00004 mov r0, r4 <== NOT EXECUTED 300219e8: e5951008 ldr r1, [r5, #8] <== NOT EXECUTED 300219ec: ebffff94 bl 30021844 <== NOT EXECUTED 300219f0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 300219f4: 05943050 ldreq r3, [r4, #80] <== NOT EXECUTED 300219f8: 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 )) 300219fc: 0a000004 beq 30021a14 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 30021a00: eb001ea4 bl 30029498 <__errno> <== NOT EXECUTED 30021a04: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 30021a08: e5803000 str r3, [r0] <== NOT EXECUTED 30021a0c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30021a10: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED iop->size = the_jnode->info.file.size; } return iop->offset; 30021a14: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED } 30021a18: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30021c6c : the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30021c6c: e590300c ldr r3, [r0, #12] <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 30021c70: e92d4030 push {r4, r5, lr} <== NOT EXECUTED the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30021c74: e3130f81 tst r3, #516 ; 0x204 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 30021c78: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 30021c7c: e590402c ldr r4, [r0, #44] <== NOT EXECUTED /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30021c80: 0a000012 beq 30021cd0 <== NOT EXECUTED 30021c84: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 30021c88: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED 30021c8c: 1a00000f bne 30021cd0 <== NOT EXECUTED && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; 30021c90: 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; 30021c94: 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; 30021c98: 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) 30021c9c: e1500001 cmp r0, r1 <== 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; 30021ca0: e5942054 ldr r2, [r4, #84] <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 30021ca4: e584304c str r3, [r4, #76] <== NOT EXECUTED the_jnode->info.file.size = 0; 30021ca8: e5841050 str r1, [r4, #80] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 30021cac: e5841058 str r1, [r4, #88] <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 30021cb0: 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; 30021cb4: e5841054 str r1, [r4, #84] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 30021cb8: 0a000004 beq 30021cd0 <== NOT EXECUTED 30021cbc: e1a03000 mov r3, r0 <== NOT EXECUTED 30021cc0: e1a00004 mov r0, r4 <== NOT EXECUTED 30021cc4: ebffff54 bl 30021a1c <== NOT EXECUTED 30021cc8: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 30021ccc: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 30021cd0: e595300c ldr r3, [r5, #12] <== NOT EXECUTED iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; 30021cd4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; if ((count != 0) && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 30021cd8: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 30021cdc: 15943050 ldrne r3, [r4, #80] <== NOT EXECUTED 30021ce0: 15853008 strne r3, [r5, #8] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30021ce4: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 30021ce8: e5853004 str r3, [r5, #4] <== NOT EXECUTED return 0; } 30021cec: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30021f38 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30021f38: 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 ); 30021f3c: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED 30021f40: e590002c ldr r0, [r0, #44] <== NOT EXECUTED ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30021f44: 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 ); 30021f48: e1a0200c mov r2, ip <== NOT EXECUTED 30021f4c: eaffff67 b 30021cf0 <== NOT EXECUTED 3002173c : */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 3002173c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 30021740: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30021744: 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 ) { 30021748: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3002174c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30021750: 0a000003 beq 30021764 <== NOT EXECUTED 30021754: e1a00004 mov r0, r4 <== NOT EXECUTED 30021758: ebfff41d bl 3001e7d4 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 3002175c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30021760: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30021764: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30021768: e1a0000d mov r0, sp <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 3002176c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30021770: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30021774: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30021778: ebff8996 bl 30003dd8 <== NOT EXECUTED 3002177c: e59d3000 ldr r3, [sp] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 30021780: 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 ); 30021784: e5843048 str r3, [r4, #72] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 30021788: ebffffd5 bl 300216e4 <== NOT EXECUTED } 3002178c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30021790: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30021c40 : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30021c40: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 30021c44: e590502c ldr r5, [r0, #44] <== NOT EXECUTED ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30021c48: e1a04000 mov r4, r0 <== NOT EXECUTED 30021c4c: 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 ); 30021c50: e1a00005 mov r0, r5 <== NOT EXECUTED 30021c54: e1a02001 mov r2, r1 <== NOT EXECUTED 30021c58: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED 30021c5c: ebffff6e bl 30021a1c <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30021c60: e5953050 ldr r3, [r5, #80] <== NOT EXECUTED 30021c64: e5843004 str r3, [r4, #4] <== NOT EXECUTED return status; } 30021c68: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3001cbd8 : int mkfifo( const char *path, mode_t mode ) { return mknod( path, mode | S_IFIFO, 0LL ); 3001cbd8: e3811a01 orr r1, r1, #4096 ; 0x1000 <== NOT EXECUTED 3001cbdc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3001cbe0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001cbe4: eaff9e42 b 300044f4 <== NOT EXECUTED 30001550 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 30001550: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30001554: 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) ) ) 30001558: e2111a0f ands r1, r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 3000155c: e24dd018 sub sp, sp, #24 ; 0x18 30001560: e1a06000 mov r6, r0 30001564: e1a07002 mov r7, r2 30001568: 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) ) ) 3000156c: 1a000002 bne 3000157c rtems_set_errno_and_return_minus_one( EINVAL ); 30001570: eb00247a bl 3000a760 <__errno> <== NOT EXECUTED 30001574: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30001578: ea000003 b 3000158c <== NOT EXECUTED if ( S_ISFIFO(mode) ) 3000157c: e3510a01 cmp r1, #4096 ; 0x1000 30001580: 1a000004 bne 30001598 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001584: eb002475 bl 3000a760 <__errno> <== NOT EXECUTED 30001588: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000158c: e5803000 str r3, [r0] <== NOT EXECUTED 30001590: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30001594: ea00003b b 30001688 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 30001598: e5d03000 ldrb r3, [r0] 3000159c: e353005c cmp r3, #92 ; 0x5c 300015a0: 1353002f cmpne r3, #47 ; 0x2f 300015a4: 13a02000 movne r2, #0 ; 0x0 300015a8: 03a02001 moveq r2, #1 ; 0x1 300015ac: 0a000001 beq 300015b8 300015b0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300015b4: 1a000005 bne 300015d0 <== NOT EXECUTED 300015b8: e59f30d4 ldr r3, [pc, #212] ; 30001694 300015bc: e28dc004 add ip, sp, #4 ; 0x4 300015c0: e5933000 ldr r3, [r3] 300015c4: e3a0e001 mov lr, #1 ; 0x1 300015c8: e2833014 add r3, r3, #20 ; 0x14 300015cc: ea000004 b 300015e4 300015d0: e59f30bc ldr r3, [pc, #188] ; 30001694 <== NOT EXECUTED 300015d4: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 300015d8: e5933000 ldr r3, [r3] <== NOT EXECUTED 300015dc: e1a0e002 mov lr, r2 <== NOT EXECUTED 300015e0: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 300015e4: e893000f ldm r3, {r0, r1, r2, r3} 300015e8: e88c000f stm ip, {r0, r1, r2, r3} if ( !temp_loc.ops->evalformake_h ) { 300015ec: e59d300c ldr r3, [sp, #12] 300015f0: e5933004 ldr r3, [r3, #4] 300015f4: e3530000 cmp r3, #0 ; 0x0 300015f8: 0affffe1 beq 30001584 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 300015fc: e28d5004 add r5, sp, #4 ; 0x4 30001600: e086000e add r0, r6, lr 30001604: e1a01005 mov r1, r5 30001608: e28d2014 add r2, sp, #20 ; 0x14 3000160c: e1a0e00f mov lr, pc 30001610: e12fff13 bx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 30001614: e3500000 cmp r0, #0 ; 0x0 30001618: 1affffdc bne 30001590 return -1; if ( !temp_loc.ops->mknod_h ) { 3000161c: e59d300c ldr r3, [sp, #12] 30001620: e593c014 ldr ip, [r3, #20] 30001624: e35c0000 cmp ip, #0 ; 0x0 30001628: 1a000006 bne 30001648 rtems_filesystem_freenode( &temp_loc ); 3000162c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30001630: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001634: 0affffd2 beq 30001584 <== NOT EXECUTED 30001638: e1a00005 mov r0, r5 <== NOT EXECUTED 3000163c: e1a0e00f mov lr, pc <== NOT EXECUTED 30001640: e12fff13 bx r3 <== NOT EXECUTED 30001644: eaffffce b 30001584 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 30001648: e1a01004 mov r1, r4 3000164c: e1a03008 mov r3, r8 30001650: e58d5000 str r5, [sp] 30001654: e1a02007 mov r2, r7 30001658: e59d0014 ldr r0, [sp, #20] 3000165c: e1a0e00f mov lr, pc 30001660: e12fff1c bx ip rtems_filesystem_freenode( &temp_loc ); 30001664: e59d300c ldr r3, [sp, #12] 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 ); 30001668: e1a04000 mov r4, r0 rtems_filesystem_freenode( &temp_loc ); 3000166c: e3530000 cmp r3, #0 ; 0x0 30001670: 0a000004 beq 30001688 30001674: e593301c ldr r3, [r3, #28] 30001678: e3530000 cmp r3, #0 ; 0x0 3000167c: 11a00005 movne r0, r5 30001680: 11a0e00f movne lr, pc 30001684: 112fff13 bxne r3 return result; } 30001688: e1a00004 mov r0, r4 3000168c: e28dd018 add sp, sp, #24 ; 0x18 30001690: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30001694: 30014ba4 .word 0x30014ba4 30008c40 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 30008c40: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 30008c44: 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 ) { 30008c48: e24dd010 sub sp, sp, #16 ; 0x10 30008c4c: e1a08000 mov r8, r0 30008c50: e1a07002 mov r7, r2 30008c54: e1a05003 mov r5, r3 30008c58: e59d6030 ldr r6, [sp, #48] /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 30008c5c: 0a000001 beq 30008c68 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 30008c60: e3520001 cmp r2, #1 ; 0x1 30008c64: 9a000002 bls 30008c74 options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 30008c68: eb0006bc bl 3000a760 <__errno> <== NOT EXECUTED 30008c6c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30008c70: ea000015 b 30008ccc <== NOT EXECUTED return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 30008c74: e5994024 ldr r4, [r9, #36] 30008c78: e3540000 cmp r4, #0 ; 0x0 30008c7c: 1a000005 bne 30008c98 errno = ENOTSUP; 30008c80: eb0006b6 bl 3000a760 <__errno> <== NOT EXECUTED 30008c84: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008c88: e1a0a004 mov sl, r4 <== NOT EXECUTED 30008c8c: e5803000 str r3, [r0] <== NOT EXECUTED 30008c90: e1a05004 mov r5, r4 <== NOT EXECUTED 30008c94: ea000064 b 30008e2c <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 30008c98: e3530000 cmp r3, #0 ; 0x0 30008c9c: 03a00064 moveq r0, #100 ; 0x64 30008ca0: 0a000002 beq 30008cb0 size += strlen( device ) + 1; 30008ca4: e1a00003 mov r0, r3 <== NOT EXECUTED 30008ca8: eb000be2 bl 3000bc38 <== NOT EXECUTED 30008cac: e2800065 add r0, r0, #101 ; 0x65 <== NOT EXECUTED temp_mt_entry = malloc( size ); 30008cb0: ebffff9c bl 30008b28 if ( !temp_mt_entry ) { 30008cb4: e3500000 cmp r0, #0 ; 0x0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 30008cb8: e1a04000 mov r4, r0 30008cbc: e1a0a000 mov sl, r0 if ( !temp_mt_entry ) { 30008cc0: 1a000003 bne 30008cd4 errno = ENOMEM; 30008cc4: eb0006a5 bl 3000a760 <__errno> <== NOT EXECUTED 30008cc8: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 30008ccc: e5803000 str r3, [r0] <== NOT EXECUTED 30008cd0: ea000061 b 30008e5c <== NOT EXECUTED return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 30008cd4: 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; 30008cd8: e5807028 str r7, [r0, #40] if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 30008cdc: 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; 30008ce0: 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 = 30008ce4: 12803064 addne r3, r0, #100 ; 0x64 (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 30008ce8: 11a00003 movne r0, r3 30008cec: 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 = 30008cf0: 15843060 strne r3, [r4, #96] (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 30008cf4: 1b000ba1 blne 3000bb80 /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 30008cf8: e3560000 cmp r6, #0 ; 0x0 30008cfc: 0a00002c beq 30008db4 if ( rtems_filesystem_evaluate_path( 30008d00: e1a00006 mov r0, r6 <== NOT EXECUTED 30008d04: e3a01007 mov r1, #7 ; 0x7 <== NOT EXECUTED 30008d08: e1a0200d mov r2, sp <== NOT EXECUTED 30008d0c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30008d10: ebffe165 bl 300012ac <== NOT EXECUTED 30008d14: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 30008d18: 0a000042 beq 30008e28 <== NOT EXECUTED /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 30008d1c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30008d20: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 30008d24: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008d28: 0a000017 beq 30008d8c <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 30008d2c: e1a0000d mov r0, sp <== NOT EXECUTED 30008d30: e1a0e00f mov lr, pc <== NOT EXECUTED 30008d34: e12fff13 bx r3 <== NOT EXECUTED 30008d38: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 30008d3c: 0a000004 beq 30008d54 <== NOT EXECUTED errno = ENOTDIR; 30008d40: eb000686 bl 3000a760 <__errno> <== NOT EXECUTED 30008d44: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 30008d48: e5803000 str r3, [r0] <== NOT EXECUTED 30008d4c: e1a0500d mov r5, sp <== NOT EXECUTED 30008d50: ea000035 b 30008e2c <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 30008d54: e59f1134 ldr r1, [pc, #308] ; 30008e90 <== 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 ) 30008d58: e59d0000 ldr r0, [sp] <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 30008d5c: e4912004 ldr r2, [r1], #4 <== NOT EXECUTED 30008d60: ea000003 b 30008d74 <== 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 ) 30008d64: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 30008d68: e1530000 cmp r3, r0 <== NOT EXECUTED 30008d6c: 0a000003 beq 30008d80 <== 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 ) { 30008d70: 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 ); 30008d74: e1520001 cmp r2, r1 <== NOT EXECUTED 30008d78: 1afffff9 bne 30008d64 <== NOT EXECUTED 30008d7c: ea000039 b 30008e68 <== NOT EXECUTED /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 30008d80: eb000676 bl 3000a760 <__errno> <== NOT EXECUTED 30008d84: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 30008d88: eaffffee b 30008d48 <== 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; 30008d8c: eb000673 bl 3000a760 <__errno> <== NOT EXECUTED 30008d90: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008d94: eaffffeb b 30008d48 <== NOT EXECUTED goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 30008d98: e1a00004 mov r0, r4 <== NOT EXECUTED 30008d9c: e1a0e00f mov lr, pc <== NOT EXECUTED 30008da0: e12fff11 bx r1 <== NOT EXECUTED 30008da4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30008da8: 01a0500d moveq r5, sp <== NOT EXECUTED 30008dac: 0a000008 beq 30008dd4 <== NOT EXECUTED 30008db0: eaffffe5 b 30008d4c <== 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; 30008db4: e5846018 str r6, [r4, #24] temp_mt_entry->mt_fs_root.handlers = NULL; 30008db8: e584601c str r6, [r4, #28] temp_mt_entry->mt_fs_root.ops = NULL; 30008dbc: e5846020 str r6, [r4, #32] temp_mt_entry->mt_point_node.node_access = NULL; 30008dc0: e5846008 str r6, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; 30008dc4: e584600c str r6, [r4, #12] temp_mt_entry->mt_point_node.ops = NULL; 30008dc8: e5846010 str r6, [r4, #16] temp_mt_entry->mt_point_node.mt_entry = NULL; 30008dcc: e5846014 str r6, [r4, #20] 30008dd0: e1a05006 mov r5, r6 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 30008dd4: e1a00004 mov r0, r4 30008dd8: e1a0e00f mov lr, pc 30008ddc: e599f024 ldr pc, [r9, #36] 30008de0: e2506000 subs r6, r0, #0 ; 0x0 30008de4: 0a000007 beq 30008e08 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 30008de8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30008dec: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 30008df0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008df4: 0a00000c beq 30008e2c <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 30008df8: e1a00004 mov r0, r4 <== NOT EXECUTED 30008dfc: e1a0e00f mov lr, pc <== NOT EXECUTED 30008e00: e12fff13 bx r3 <== NOT EXECUTED 30008e04: ea000008 b 30008e2c <== 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 ); 30008e08: e59f0080 ldr r0, [pc, #128] ; 30008e90 30008e0c: e1a01004 mov r1, r4 30008e10: ebffefa7 bl 30004cb4 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 30008e14: e3580000 cmp r8, #0 ; 0x0 30008e18: 01a00008 moveq r0, r8 *mt_entry = temp_mt_entry; 30008e1c: 15884000 strne r4, [r8] 30008e20: 11a00006 movne r0, r6 30008e24: ea00000d b 30008e60 30008e28: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 30008e2c: e1a0000a mov r0, sl <== NOT EXECUTED 30008e30: ebfffdf9 bl 3000861c <== NOT EXECUTED if ( loc_to_free ) 30008e34: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30008e38: 0a000007 beq 30008e5c <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 30008e3c: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED 30008e40: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008e44: 0a000004 beq 30008e5c <== NOT EXECUTED 30008e48: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30008e4c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008e50: 11a00005 movne r0, r5 <== NOT EXECUTED 30008e54: 11a0e00f movne lr, pc <== NOT EXECUTED 30008e58: 112fff13 bxne r3 <== NOT EXECUTED 30008e5c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED return -1; } 30008e60: e28dd010 add sp, sp, #16 ; 0x10 30008e64: 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; 30008e68: 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 ){ 30008e6c: 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; 30008e70: 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; 30008e74: 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 ){ 30008e78: 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; 30008e7c: 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; 30008e80: 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; 30008e84: 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 ){ 30008e88: 1affffc2 bne 30008d98 <== NOT EXECUTED 30008e8c: eaffffbe b 30008d8c <== NOT EXECUTED 30008e90: 30015658 .word 0x30015658 30001724 : */ int newlib_free_buffers( FILE *fp ) { 30001724: e92d4010 push {r4, lr} 30001728: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 3000172c: eb0024d8 bl 3000aa94 30001730: e3500002 cmp r0, #2 ; 0x2 30001734: 8a00000b bhi 30001768 case 0: case 1: case 2: if (fp->_flags & __SMBF) { 30001738: e1d430bc ldrh r3, [r4, #12] 3000173c: e3130080 tst r3, #128 ; 0x80 30001740: 0a00000a beq 30001770 free( fp->_bf._base ); 30001744: e5940010 ldr r0, [r4, #16] 30001748: eb001bb3 bl 3000861c fp->_flags &= ~__SMBF; 3000174c: e1d430bc ldrh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001750: e3a02000 mov r2, #0 ; 0x0 case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 30001754: e3c33080 bic r3, r3, #128 ; 0x80 fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001758: e5842010 str r2, [r4, #16] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 3000175c: e1c430bc strh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001760: e5842000 str r2, [r4] 30001764: ea000001 b 30001770 } break; default: fclose(fp); 30001768: e1a00004 mov r0, r4 <== NOT EXECUTED 3000176c: eb00244c bl 3000a8a4 <== NOT EXECUTED } return 0; } 30001770: e3a00000 mov r0, #0 ; 0x0 30001774: e8bd8010 pop {r4, pc} 30001968 : int open( const char *pathname, int flags, ... ) { 30001968: e92d000e push {r1, r2, r3} 3000196c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30001970: e24dd010 sub sp, sp, #16 ; 0x10 30001974: e59d802c ldr r8, [sp, #44] 30001978: e1a06000 mov r6, r0 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 3000197c: e2883001 add r3, r8, #1 ; 0x1 if ( ( status & _FREAD ) == _FREAD ) 30001980: e2132001 ands r2, r3, #1 ; 0x1 30001984: 01a04002 moveq r4, r2 30001988: 13a04004 movne r4, #4 ; 0x4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 3000198c: e3130002 tst r3, #2 ; 0x2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 30001990: 13844002 orrne r4, r4, #2 ; 0x2 va_start(ap, flags); mode = va_arg( ap, int ); 30001994: e59da030 ldr sl, [sp, #48] * 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(); 30001998: eb001c02 bl 300089a8 if ( iop == 0 ) { 3000199c: e2507000 subs r7, r0, #0 ; 0x0 300019a0: 03a06017 moveq r6, #23 ; 0x17 300019a4: 0a00006b beq 30001b58 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 300019a8: e1a01004 mov r1, r4 300019ac: e1a00006 mov r0, r6 300019b0: e1a0200d mov r2, sp 300019b4: e3a03001 mov r3, #1 ; 0x1 300019b8: ebfffe3b bl 300012ac pathname, eval_flags, &loc, true ); if ( status == -1 ) { 300019bc: e3700001 cmn r0, #1 ; 0x1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 300019c0: e1a0500d mov r5, sp pathname, eval_flags, &loc, true ); if ( status == -1 ) { 300019c4: 1a00001a bne 30001a34 if ( errno != ENOENT ) { 300019c8: eb002364 bl 3000a760 <__errno> <== NOT EXECUTED 300019cc: e5900000 ldr r0, [r0] <== NOT EXECUTED 300019d0: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 300019d4: 1a00000a bne 30001a04 <== 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) ) { 300019d8: e2183c02 ands r3, r8, #512 ; 0x200 <== NOT EXECUTED 300019dc: 01a06000 moveq r6, r0 <== NOT EXECUTED 300019e0: 01a04003 moveq r4, r3 <== NOT EXECUTED 300019e4: 0a00004e beq 30001b24 <== NOT EXECUTED rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 300019e8: e1a00006 mov r0, r6 <== NOT EXECUTED 300019ec: e38a1902 orr r1, sl, #32768 ; 0x8000 <== NOT EXECUTED 300019f0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300019f4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 300019f8: ebfffed4 bl 30001550 <== NOT EXECUTED if ( rc ) { 300019fc: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 30001a00: 0a000002 beq 30001a10 <== NOT EXECUTED rc = errno; 30001a04: eb002355 bl 3000a760 <__errno> <== NOT EXECUTED 30001a08: e5906000 ldr r6, [r0] <== NOT EXECUTED 30001a0c: ea000041 b 30001b18 <== 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 ); 30001a10: e1a00006 mov r0, r6 <== NOT EXECUTED 30001a14: e1a0200d mov r2, sp <== NOT EXECUTED 30001a18: e1a01004 mov r1, r4 <== NOT EXECUTED 30001a1c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30001a20: ebfffe21 bl 300012ac <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ 30001a24: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30001a28: 13a0600d movne r6, #13 ; 0xd <== NOT EXECUTED 30001a2c: 1a00003c bne 30001b24 <== NOT EXECUTED 30001a30: ea000004 b 30001a48 <== NOT EXECUTED rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 30001a34: e2083c0a and r3, r8, #2560 ; 0xa00 30001a38: e3530c0a cmp r3, #2560 ; 0xa00 30001a3c: 01a0400d moveq r4, sp 30001a40: 03a06011 moveq r6, #17 ; 0x11 30001a44: 0a000036 beq 30001b24 * 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; 30001a48: e28d5010 add r5, sp, #16 ; 0x10 30001a4c: e5353010 ldr r3, [r5, #-16]! iop->flags |= rtems_libio_fcntl_flags( flags ); 30001a50: e1a00008 mov r0, r8 * 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; 30001a54: 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; 30001a58: e59d3004 ldr r3, [sp, #4] iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001a5c: e597400c ldr r4, [r7, #12] /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 30001a60: e5873030 str r3, [r7, #48] iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001a64: eb001c02 bl 30008a74 iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 30001a68: e5973030 ldr r3, [r7, #48] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001a6c: e1800004 orr r0, r0, r4 iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 30001a70: e5934000 ldr r4, [r3] */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 30001a74: e287c010 add ip, r7, #16 ; 0x10 if ( !iop->handlers->open_h ) { 30001a78: e3540000 cmp r4, #0 ; 0x0 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001a7c: e587000c str r0, [r7, #12] iop->pathinfo = loc; 30001a80: e895000f ldm r5, {r0, r1, r2, r3} 30001a84: e88c000f stm ip, {r0, r1, r2, r3} if ( !iop->handlers->open_h ) { 30001a88: 0a000040 beq 30001b90 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 30001a8c: e1a01006 mov r1, r6 30001a90: e1a0300a mov r3, sl 30001a94: e1a00007 mov r0, r7 30001a98: e1a02008 mov r2, r8 30001a9c: e1a0e00f mov lr, pc 30001aa0: e12fff14 bx r4 if ( rc ) 30001aa4: e2506000 subs r6, r0, #0 ; 0x0 30001aa8: 11a0400d movne r4, sp 30001aac: 1a00001c bne 30001b24 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 30001ab0: e3180b01 tst r8, #1024 ; 0x400 30001ab4: 0a00002b beq 30001b68 rc = ftruncate( iop - rtems_libio_iops, 0 ); 30001ab8: e59f30dc ldr r3, [pc, #220] ; 30001b9c <== NOT EXECUTED 30001abc: e59f20dc ldr r2, [pc, #220] ; 30001ba0 <== NOT EXECUTED 30001ac0: e5933000 ldr r3, [r3] <== NOT EXECUTED 30001ac4: e1a01006 mov r1, r6 <== NOT EXECUTED 30001ac8: e0633007 rsb r3, r3, r7 <== NOT EXECUTED 30001acc: e1a03143 asr r3, r3, #2 <== NOT EXECUTED 30001ad0: e0000392 mul r0, r2, r3 <== NOT EXECUTED 30001ad4: eb001af8 bl 300086bc <== NOT EXECUTED if ( rc ) { 30001ad8: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 30001adc: 0a000021 beq 30001b68 <== NOT EXECUTED if(errno) rc = errno; 30001ae0: eb00231e bl 3000a760 <__errno> <== NOT EXECUTED 30001ae4: e5903000 ldr r3, [r0] <== NOT EXECUTED 30001ae8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001aec: 0a000001 beq 30001af8 <== NOT EXECUTED 30001af0: eb00231a bl 3000a760 <__errno> <== NOT EXECUTED 30001af4: e5906000 ldr r6, [r0] <== NOT EXECUTED close( iop - rtems_libio_iops ); 30001af8: e59f309c ldr r3, [pc, #156] ; 30001b9c <== NOT EXECUTED 30001afc: e59f209c ldr r2, [pc, #156] ; 30001ba0 <== NOT EXECUTED 30001b00: e5933000 ldr r3, [r3] <== NOT EXECUTED 30001b04: e0633007 rsb r3, r3, r7 <== NOT EXECUTED 30001b08: e1a03143 asr r3, r3, #2 <== NOT EXECUTED 30001b0c: e0000392 mul r0, r2, r3 <== NOT EXECUTED 30001b10: eb001a97 bl 30008574 <== NOT EXECUTED 30001b14: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 30001b18: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 30001b1c: 0a000011 beq 30001b68 <== NOT EXECUTED 30001b20: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED if ( iop ) 30001b24: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED rtems_libio_free( iop ); 30001b28: 11a00007 movne r0, r7 <== NOT EXECUTED 30001b2c: 1b001b86 blne 3000894c <== NOT EXECUTED if ( loc_to_free ) 30001b30: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30001b34: 0a000007 beq 30001b58 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 30001b38: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 30001b3c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001b40: 0a000004 beq 30001b58 <== NOT EXECUTED 30001b44: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30001b48: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001b4c: 11a00004 movne r0, r4 <== NOT EXECUTED 30001b50: 11a0e00f movne lr, pc <== NOT EXECUTED 30001b54: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( rc ); 30001b58: eb002300 bl 3000a760 <__errno> 30001b5c: e5806000 str r6, [r0] 30001b60: e3e00000 mvn r0, #0 ; 0x0 30001b64: ea000005 b 30001b80 } return iop - rtems_libio_iops; 30001b68: e59f302c ldr r3, [pc, #44] ; 30001b9c 30001b6c: e59f202c ldr r2, [pc, #44] ; 30001ba0 30001b70: e5933000 ldr r3, [r3] 30001b74: e0633007 rsb r3, r3, r7 30001b78: e1a03143 asr r3, r3, #2 30001b7c: e0000392 mul r0, r2, r3 } 30001b80: e28dd010 add sp, sp, #16 ; 0x10 30001b84: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} 30001b88: e28dd00c add sp, sp, #12 ; 0xc 30001b8c: 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; 30001b90: e1a0400d mov r4, sp <== NOT EXECUTED 30001b94: e3a06086 mov r6, #134 ; 0x86 <== NOT EXECUTED 30001b98: eaffffe1 b 30001b24 <== NOT EXECUTED 30001b9c: 30015290 .word 0x30015290 30001ba0: c4ec4ec5 .word 0xc4ec4ec5 30001904 : int error_code = 'S' << 24 | 'T' << 16 | 'D' << 8; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 30001904: e3a01000 mov r1, #0 ; 0x0 /* * This is a replaceable stub */ void open_dev_console(void) { 30001908: 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) { 3000190c: e59f0048 ldr r0, [pc, #72] ; 3000195c 30001910: e1a02001 mov r2, r1 30001914: eb000013 bl 30001968 30001918: e3700001 cmn r0, #1 ; 0x1 3000191c: 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) 30001920: e59f0034 ldr r0, [pc, #52] ; 3000195c 30001924: e3a01001 mov r1, #1 ; 0x1 30001928: e3a02000 mov r2, #0 ; 0x0 3000192c: eb00000d bl 30001968 30001930: e3700001 cmn r0, #1 ; 0x1 rtems_fatal_error_occurred( error_code | '1' ); 30001934: 059f0024 ldreq r0, [pc, #36] ; 30001960 /* * 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) 30001938: 0a000006 beq 30001958 rtems_fatal_error_occurred( error_code | '1' ); if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 3000193c: e59f0018 ldr r0, [pc, #24] ; 3000195c 30001940: e3a01001 mov r1, #1 ; 0x1 30001944: e3a02000 mov r2, #0 ; 0x0 30001948: eb000006 bl 30001968 3000194c: e3700001 cmn r0, #1 ; 0x1 30001950: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( error_code | '2' ); 30001954: e59f0008 ldr r0, [pc, #8] ; 30001964 <== NOT EXECUTED 30001958: eb000c0c bl 30004990 <== NOT EXECUTED 3000195c: 30014061 .word 0x30014061 30001960: 53544431 .word 0x53544431 30001964: 53544432 .word 0x53544432 3001cc6c : * open a directory. */ DIR * opendir( const char *name ) { 3001cc6c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register DIR *dirp; register int fd; if ((fd = open(name, 0)) == -1) 3001cc70: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001cc74: ebff9fc0 bl 30004b7c <== NOT EXECUTED 3001cc78: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 3001cc7c: e1a05000 mov r5, r0 <== NOT EXECUTED 3001cc80: 0a00000a beq 3001ccb0 <== NOT EXECUTED return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || 3001cc84: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 3001cc88: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3001cc8c: eb002944 bl 300271a4 <== NOT EXECUTED 3001cc90: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 3001cc94: 0a000003 beq 3001cca8 <== NOT EXECUTED 3001cc98: e3a00018 mov r0, #24 ; 0x18 <== NOT EXECUTED 3001cc9c: ebff9da0 bl 30004324 <== NOT EXECUTED 3001cca0: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001cca4: 1a000003 bne 3001ccb8 <== NOT EXECUTED (dirp = (DIR *)malloc(sizeof(DIR))) == NULL) { close (fd); 3001cca8: e1a00005 mov r0, r5 <== NOT EXECUTED 3001ccac: ebff9b81 bl 30003ab8 <== NOT EXECUTED 3001ccb0: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 3001ccb4: ea00000f b 3001ccf8 <== 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); 3001ccb8: e3a00c02 mov r0, #512 ; 0x200 <== NOT EXECUTED 3001ccbc: ebff9d98 bl 30004324 <== NOT EXECUTED dirp->dd_len = 512; 3001ccc0: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED if (dirp->dd_buf == NULL) { 3001ccc4: 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); 3001ccc8: e1a02000 mov r2, r0 <== NOT EXECUTED dirp->dd_len = 512; 3001cccc: 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); 3001ccd0: e584000c str r0, [r4, #12] <== NOT EXECUTED dirp->dd_len = 512; if (dirp->dd_buf == NULL) { 3001ccd4: 1a000003 bne 3001cce8 <== NOT EXECUTED close (fd); 3001ccd8: e1a00005 mov r0, r5 <== NOT EXECUTED 3001ccdc: e1a04002 mov r4, r2 <== NOT EXECUTED 3001cce0: ebff9b74 bl 30003ab8 <== NOT EXECUTED 3001cce4: ea000003 b 3001ccf8 <== NOT EXECUTED return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 3001cce8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; 3001ccec: e5845000 str r5, [r4] <== NOT EXECUTED dirp->dd_loc = 0; dirp->dd_seek = 0; 3001ccf0: e5843014 str r3, [r4, #20] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 3001ccf4: e5843004 str r3, [r4, #4] <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 3001ccf8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ccfc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002564 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 30002564: e92d4010 push {r4, lr} int i; if (tty->termios.c_oflag & OPOST) { 30002568: e5912034 ldr r2, [r1, #52] /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 3000256c: e24dd004 sub sp, sp, #4 ; 0x4 int i; if (tty->termios.c_oflag & OPOST) { 30002570: e3120001 tst r2, #1 ; 0x1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 30002574: e1a04001 mov r4, r1 30002578: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { 3000257c: 0a000044 beq 30002694 switch (c) { 30002580: e5dd1000 ldrb r1, [sp] 30002584: e2413008 sub r3, r1, #8 ; 0x8 30002588: e3530005 cmp r3, #5 ; 0x5 3000258c: 979ff103 ldrls pc, [pc, r3, lsl #2] 30002590: ea00002d b 3000264c 30002594: 30002638 .word 0x30002638 <== NOT EXECUTED 30002598: 3000260c .word 0x3000260c <== NOT EXECUTED 3000259c: 300025ac .word 0x300025ac <== NOT EXECUTED 300025a0: 3000264c .word 0x3000264c <== NOT EXECUTED 300025a4: 3000264c .word 0x3000264c <== NOT EXECUTED 300025a8: 300025d8 .word 0x300025d8 <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) 300025ac: e3120020 tst r2, #32 ; 0x20 tty->column = 0; 300025b0: 13a03000 movne r3, #0 ; 0x0 300025b4: 15843028 strne r3, [r4, #40] if (tty->termios.c_oflag & ONLCR) { 300025b8: e5943034 ldr r3, [r4, #52] 300025bc: e3130004 tst r3, #4 ; 0x4 300025c0: 0a000033 beq 30002694 rtems_termios_puts ("\r", 1, tty); 300025c4: e59f00e0 ldr r0, [pc, #224] ; 300026ac 300025c8: e3a01001 mov r1, #1 ; 0x1 300025cc: e1a02004 mov r2, r4 300025d0: ebffff9f bl 30002454 300025d4: ea00000a b 30002604 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 300025d8: e3120010 tst r2, #16 ; 0x10 <== NOT EXECUTED 300025dc: 0a000002 beq 300025ec <== NOT EXECUTED 300025e0: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 300025e4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300025e8: 0a00002d beq 300026a4 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 300025ec: e2123008 ands r3, r2, #8 ; 0x8 <== NOT EXECUTED 300025f0: 0a000026 beq 30002690 <== NOT EXECUTED c = '\n'; 300025f4: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 300025f8: 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'; 300025fc: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 30002600: 0a000023 beq 30002694 <== NOT EXECUTED tty->column = 0; 30002604: e3a03000 mov r3, #0 ; 0x0 30002608: ea000020 b 30002690 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 3000260c: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 30002610: e2022b06 and r2, r2, #6144 ; 0x1800 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 30002614: e2031007 and r1, r3, #7 ; 0x7 <== NOT EXECUTED 30002618: e2611008 rsb r1, r1, #8 ; 0x8 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 3000261c: e3520b06 cmp r2, #6144 ; 0x1800 <== NOT EXECUTED 30002620: e0813003 add r3, r1, r3 <== NOT EXECUTED 30002624: 1a000019 bne 30002690 <== NOT EXECUTED tty->column += i; 30002628: e5843028 str r3, [r4, #40] <== NOT EXECUTED rtems_termios_puts ( " ", i, tty); 3000262c: e1a02004 mov r2, r4 <== NOT EXECUTED 30002630: e59f0078 ldr r0, [pc, #120] ; 300026b0 <== NOT EXECUTED 30002634: ea000019 b 300026a0 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 30002638: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 3000263c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 30002640: c2433001 subgt r3, r3, #1 ; 0x1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 30002644: ca000011 bgt 30002690 <== NOT EXECUTED 30002648: ea000011 b 30002694 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 3000264c: e3120002 tst r2, #2 ; 0x2 30002650: 0a000006 beq 30002670 c = toupper(c); 30002654: e59f3058 ldr r3, [pc, #88] ; 300026b4 <== NOT EXECUTED 30002658: e1a02001 mov r2, r1 <== NOT EXECUTED 3000265c: e5933000 ldr r3, [r3] <== NOT EXECUTED 30002660: e7d33001 ldrb r3, [r3, r1] <== NOT EXECUTED 30002664: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 30002668: 12412020 subne r2, r1, #32 ; 0x20 <== NOT EXECUTED 3000266c: e5cd2000 strb r2, [sp] <== NOT EXECUTED if (!iscntrl(c)) 30002670: e59f303c ldr r3, [pc, #60] ; 300026b4 30002674: e5dd2000 ldrb r2, [sp] 30002678: e5933000 ldr r3, [r3] 3000267c: e7d33002 ldrb r3, [r3, r2] 30002680: e3130020 tst r3, #32 ; 0x20 30002684: 1a000002 bne 30002694 tty->column++; 30002688: e5943028 ldr r3, [r4, #40] 3000268c: e2833001 add r3, r3, #1 ; 0x1 30002690: e5843028 str r3, [r4, #40] break; } } rtems_termios_puts (&c, 1, tty); 30002694: e1a02004 mov r2, r4 30002698: e1a0000d mov r0, sp 3000269c: e3a01001 mov r1, #1 ; 0x1 300026a0: ebffff6b bl 30002454 } 300026a4: e28dd004 add sp, sp, #4 ; 0x4 300026a8: e8bd8010 pop {r4, pc} 300026ac: 300141f4 .word 0x300141f4 300026b0: 300140d1 .word 0x300140d1 300026b4: 30014bf0 .word 0x30014bf0 30012e5c : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30012e5c: e59f30ac ldr r3, [pc, #172] ; 30012f10 <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 30012e60: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30012e64: e5933000 ldr r3, [r3] <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 30012e68: e1a0c000 mov ip, r0 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30012e6c: e1500003 cmp r0, r3 <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 30012e70: e1a06001 mov r6, r1 <== NOT EXECUTED 30012e74: e1a05002 mov r5, r2 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30012e78: 2a000006 bcs 30012e98 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30012e7c: e59f3090 ldr r3, [pc, #144] ; 30012f14 <== NOT EXECUTED 30012e80: e5930000 ldr r0, [r3] <== NOT EXECUTED 30012e84: e3a03034 mov r3, #52 ; 0x34 <== NOT EXECUTED 30012e88: e0240c93 mla r4, r3, ip, r0 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 30012e8c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 30012e90: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30012e94: 1a000002 bne 30012ea4 <== NOT EXECUTED 30012e98: ebffde30 bl 3000a760 <__errno> <== NOT EXECUTED 30012e9c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30012ea0: ea00000f b 30012ee4 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 30012ea4: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30012ea8: 0a000004 beq 30012ec0 <== NOT EXECUTED rtems_libio_check_count( count ); 30012eac: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30012eb0: 01a00002 moveq r0, r2 <== NOT EXECUTED 30012eb4: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30012eb8: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 30012ebc: 1a000002 bne 30012ecc <== NOT EXECUTED 30012ec0: ebffde26 bl 3000a760 <__errno> <== NOT EXECUTED 30012ec4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30012ec8: ea000005 b 30012ee4 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 30012ecc: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 30012ed0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30012ed4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30012ed8: 1a000004 bne 30012ef0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30012edc: ebffde1f bl 3000a760 <__errno> <== NOT EXECUTED 30012ee0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30012ee4: e5803000 str r3, [r0] <== NOT EXECUTED 30012ee8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30012eec: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rc = (*iop->handlers->read_h)( iop, buffer, count ); 30012ef0: e1a00004 mov r0, r4 <== NOT EXECUTED 30012ef4: e1a0e00f mov lr, pc <== NOT EXECUTED 30012ef8: e12fff13 bx r3 <== NOT EXECUTED if ( rc > 0 ) 30012efc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED iop->offset += rc; 30012f00: c5943008 ldrgt r3, [r4, #8] <== NOT EXECUTED 30012f04: c0833000 addgt r3, r3, r0 <== NOT EXECUTED 30012f08: c5843008 strgt r3, [r4, #8] <== NOT EXECUTED return rc; } 30012f0c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30012f10: 3001459c .word 0x3001459c 30012f14: 30015290 .word 0x30015290 3001cf40 : /* * get next entry in a directory. */ struct dirent * readdir( DIR *dirp ) { 3001cf40: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register struct dirent *dp; if ( !dirp ) 3001cf44: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001cf48: 0a000020 beq 3001cfd0 <== NOT EXECUTED if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { dirp->dd_loc = 0; 3001cf4c: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { 3001cf50: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 3001cf54: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cf58: 1a000006 bne 3001cf78 <== NOT EXECUTED dirp->dd_size = getdents (dirp->dd_fd, 3001cf5c: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001cf60: e594100c ldr r1, [r4, #12] <== NOT EXECUTED 3001cf64: e5942010 ldr r2, [r4, #16] <== NOT EXECUTED 3001cf68: eb002904 bl 30027380 <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 3001cf6c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 3001cf70: e5840008 str r0, [r4, #8] <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 3001cf74: da000015 ble 3001cfd0 <== NOT EXECUTED return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 3001cf78: e994000a ldmib r4, {r1, r3} <== NOT EXECUTED 3001cf7c: e1510003 cmp r1, r3 <== NOT EXECUTED dirp->dd_loc = 0; 3001cf80: a5846004 strge r6, [r4, #4] <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 3001cf84: aafffff1 bge 3001cf50 <== NOT EXECUTED dirp->dd_loc = 0; continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 3001cf88: e594500c ldr r5, [r4, #12] <== NOT EXECUTED 3001cf8c: e0850001 add r0, r5, r1 <== NOT EXECUTED if ((intptr_t)dp & 03) /* bogus pointer check */ 3001cf90: e3100003 tst r0, #3 ; 0x3 <== NOT EXECUTED 3001cf94: 1a00000d bne 3001cfd0 <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || 3001cf98: e1d020b8 ldrh r2, [r0, #8] <== NOT EXECUTED 3001cf9c: 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; 3001cfa0: 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 || 3001cfa4: 0a000009 beq 3001cfd0 <== NOT EXECUTED 3001cfa8: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3001cfac: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 3001cfb0: e0613003 rsb r3, r1, r3 <== NOT EXECUTED 3001cfb4: e1520003 cmp r2, r3 <== NOT EXECUTED 3001cfb8: ca000004 bgt 3001cfd0 <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 3001cfbc: e584c004 str ip, [r4, #4] <== NOT EXECUTED if (dp->d_ino == 0) 3001cfc0: e7953001 ldr r3, [r5, r1] <== NOT EXECUTED 3001cfc4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001cfc8: 0affffe0 beq 3001cf50 <== NOT EXECUTED 3001cfcc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001cfd0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED continue; return (dp); } } 3001cfd4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001cfd8 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 3001cfd8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 3001cfdc: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 3001cfe0: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001cfe4: e1a06002 mov r6, r2 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 3001cfe8: 1a000002 bne 3001cff8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 3001cfec: eb003129 bl 30029498 <__errno> <== NOT EXECUTED 3001cff0: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 3001cff4: ea000025 b 3001d090 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 3001cff8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001cffc: e1a0200d mov r2, sp <== NOT EXECUTED 3001d000: e1a03001 mov r3, r1 <== NOT EXECUTED 3001d004: ebff9afc bl 30003bfc <== NOT EXECUTED if ( result != 0 ) 3001d008: 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 ); 3001d00c: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 3001d010: 1a00001f bne 3001d094 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 3001d014: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001d018: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 3001d01c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d020: 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 ){ 3001d024: 0a000013 beq 3001d078 <== 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 ){ 3001d028: e1a0000d mov r0, sp <== NOT EXECUTED 3001d02c: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d030: e12fff13 bx r3 <== NOT EXECUTED 3001d034: e3500004 cmp r0, #4 ; 0x4 <== NOT EXECUTED 3001d038: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d03c: 0a000009 beq 3001d068 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d040: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d044: 0a000004 beq 3001d05c <== NOT EXECUTED 3001d048: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d04c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d050: 11a0000d movne r0, sp <== NOT EXECUTED 3001d054: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d058: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 3001d05c: eb00310d bl 30029498 <__errno> <== NOT EXECUTED 3001d060: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001d064: ea000009 b 3001d090 <== NOT EXECUTED } if ( !loc.ops->readlink_h ){ 3001d068: e593c03c ldr ip, [r3, #60] <== NOT EXECUTED 3001d06c: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 3001d070: 1a000009 bne 3001d09c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d074: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d078: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d07c: 11a0000d movne r0, sp <== NOT EXECUTED 3001d080: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d084: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001d088: eb003102 bl 30029498 <__errno> <== NOT EXECUTED 3001d08c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001d090: e5803000 str r3, [r0] <== NOT EXECUTED 3001d094: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001d098: ea00000d b 3001d0d4 <== NOT EXECUTED } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 3001d09c: e1a01004 mov r1, r4 <== NOT EXECUTED 3001d0a0: e1a02006 mov r2, r6 <== NOT EXECUTED 3001d0a4: e1a0000d mov r0, sp <== NOT EXECUTED 3001d0a8: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d0ac: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d0b0: e59d3008 ldr r3, [sp, #8] <== 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 ); 3001d0b4: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d0b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d0bc: 0a000004 beq 3001d0d4 <== NOT EXECUTED 3001d0c0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d0c4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d0c8: 11a0000d movne r0, sp <== NOT EXECUTED 3001d0cc: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d0d0: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001d0d4: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d0d8: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d0dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30012f7c : { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30012f7c: e92d4070 push {r4, r5, r6, lr} 30012f80: e59fc108 ldr ip, [pc, #264] ; 30013090 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30012f84: e59f3108 ldr r3, [pc, #264] ; 30013094 { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30012f88: e59c2010 ldr r2, [ip, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30012f8c: e5933000 ldr r3, [r3] { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30012f90: e2822001 add r2, r2, #1 ; 0x1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30012f94: e3530003 cmp r3, #3 ; 0x3 { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30012f98: e24dd004 sub sp, sp, #4 ; 0x4 30012f9c: e58c2010 str r2, [ip, #16] 30012fa0: e1a04000 mov r4, r0 30012fa4: 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())) { 30012fa8: 1a000007 bne 30012fcc if (_Thread_Dispatch_disable_level > 0) 30012fac: e59f30e4 ldr r3, [pc, #228] ; 30013098 30012fb0: e5933000 ldr r3, [r3] 30012fb4: e3530000 cmp r3, #0 ; 0x0 30012fb8: 1a000030 bne 30013080 return (void *) 0; if (_ISR_Nest_level > 0) 30012fbc: e59f30d8 ldr r3, [pc, #216] ; 3001309c 30012fc0: e5933000 ldr r3, [r3] 30012fc4: e3530000 cmp r3, #0 ; 0x0 30012fc8: 1a00002c bne 30013080 } /* * Continue with realloc(). */ if ( !ptr ) 30012fcc: e3540000 cmp r4, #0 ; 0x0 30012fd0: 1a000003 bne 30012fe4 return malloc( size ); 30012fd4: e1a00005 mov r0, r5 <== NOT EXECUTED 30012fd8: ebffd6d2 bl 30008b28 <== NOT EXECUTED 30012fdc: e1a04000 mov r4, r0 <== NOT EXECUTED 30012fe0: ea000027 b 30013084 <== NOT EXECUTED if ( !size ) { 30012fe4: e3550000 cmp r5, #0 ; 0x0 30012fe8: 1a000003 bne 30012ffc free( ptr ); 30012fec: e1a00004 mov r0, r4 <== NOT EXECUTED 30012ff0: ebffd589 bl 3000861c <== NOT EXECUTED 30012ff4: e1a04005 mov r4, r5 <== NOT EXECUTED 30012ff8: ea000021 b 30013084 <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { 30012ffc: e59f009c ldr r0, [pc, #156] ; 300130a0 30013000: e1a01004 mov r1, r4 30013004: e1a0200d mov r2, sp 30013008: eb000054 bl 30013160 <_Protected_heap_Get_block_size> 3001300c: e2506000 subs r6, r0, #0 ; 0x0 30013010: 1a000003 bne 30013024 errno = EINVAL; 30013014: ebffddd1 bl 3000a760 <__errno> 30013018: e3a03016 mov r3, #22 ; 0x16 3001301c: e5803000 str r3, [r0] 30013020: ea000014 b 30013078 #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 ) ) { 30013024: e59f0074 ldr r0, [pc, #116] ; 300130a0 30013028: e1a01004 mov r1, r4 3001302c: e1a02005 mov r2, r5 30013030: eb00005b bl 300131a4 <_Protected_heap_Resize_block> 30013034: e3500000 cmp r0, #0 ; 0x0 30013038: 1a000011 bne 30013084 * 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 ); 3001303c: e1a00005 mov r0, r5 30013040: ebffd6b8 bl 30008b28 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 30013044: e59f2044 ldr r2, [pc, #68] ; 30013090 if ( !new_area ) { 30013048: e2506000 subs r6, r0, #0 ; 0x0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 3001304c: e5923004 ldr r3, [r2, #4] 30013050: e2433001 sub r3, r3, #1 ; 0x1 30013054: e5823004 str r3, [r2, #4] if ( !new_area ) { 30013058: 0a000008 beq 30013080 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 3001305c: e59d2000 ldr r2, [sp] 30013060: e1a01004 mov r1, r4 30013064: e1550002 cmp r5, r2 30013068: 31a02005 movcc r2, r5 3001306c: ebffdf85 bl 3000ae88 free( ptr ); 30013070: e1a00004 mov r0, r4 30013074: ebffd568 bl 3000861c 30013078: e1a04006 mov r4, r6 3001307c: ea000000 b 30013084 return new_area; 30013080: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED } 30013084: e1a00004 mov r0, r4 30013088: e28dd004 add sp, sp, #4 ; 0x4 3001308c: e8bd8070 pop {r4, r5, r6, pc} 30013090: 300152f4 .word 0x300152f4 30013094: 300155b4 .word 0x300155b4 30013098: 3001540c .word 0x3001540c 3001309c: 300154a0 .word 0x300154a0 300130a0: 3001529c .word 0x3001529c 3001d208 : #include int rmdir( const char *pathname ) { 3001d208: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 3001d20c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int rmdir( const char *pathname ) { 3001d210: 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 ); 3001d214: e1a0200d mov r2, sp <== NOT EXECUTED 3001d218: e1a03001 mov r3, r1 <== NOT EXECUTED 3001d21c: ebff9a76 bl 30003bfc <== NOT EXECUTED if ( result != 0 ) 3001d220: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 3001d224: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 3001d228: 1a00003f bne 3001d32c <== NOT EXECUTED return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 3001d22c: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 3001d230: e1a0100d mov r1, sp <== NOT EXECUTED 3001d234: ebff9a49 bl 30003b60 <== NOT EXECUTED if (result != 0) { 3001d238: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d23c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d240: 0a000008 beq 3001d268 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d244: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d248: 0a000037 beq 3001d32c <== NOT EXECUTED 3001d24c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d250: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d254: 0a000034 beq 3001d32c <== NOT EXECUTED 3001d258: e1a0000d mov r0, sp <== NOT EXECUTED 3001d25c: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d260: e12fff13 bx r3 <== NOT EXECUTED 3001d264: ea000030 b 3001d32c <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 3001d268: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED 3001d26c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001d270: 0a000016 beq 3001d2d0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 3001d274: e1a0000d mov r0, sp <== NOT EXECUTED 3001d278: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d27c: e12fff12 bx r2 <== NOT EXECUTED 3001d280: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3001d284: 0a00000a beq 3001d2b4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d288: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d28c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d290: 0a000004 beq 3001d2a8 <== NOT EXECUTED 3001d294: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d298: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d29c: 11a0000d movne r0, sp <== NOT EXECUTED 3001d2a0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d2a4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 3001d2a8: eb00307a bl 30029498 <__errno> <== NOT EXECUTED 3001d2ac: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3001d2b0: ea00000d b 3001d2ec <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 3001d2b4: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3001d2b8: e5933034 ldr r3, [r3, #52] <== NOT EXECUTED 3001d2bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d2c0: 1a00000b bne 3001d2f4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d2c4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d2c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d2cc: 0a000004 beq 3001d2e4 <== NOT EXECUTED 3001d2d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d2d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d2d8: 11a0000d movne r0, sp <== NOT EXECUTED 3001d2dc: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d2e0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001d2e4: eb00306b bl 30029498 <__errno> <== NOT EXECUTED 3001d2e8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001d2ec: e5803000 str r3, [r0] <== NOT EXECUTED 3001d2f0: ea00000d b 3001d32c <== NOT EXECUTED } result = (*loc.handlers->rmnod_h)( &loc ); 3001d2f4: e1a0000d mov r0, sp <== NOT EXECUTED 3001d2f8: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d2fc: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d300: e59d3008 ldr r3, [sp, #8] <== 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 ); 3001d304: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d308: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d30c: 0a000007 beq 3001d330 <== NOT EXECUTED 3001d310: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d314: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d318: 0a000004 beq 3001d330 <== NOT EXECUTED 3001d31c: e1a0000d mov r0, sp <== NOT EXECUTED 3001d320: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d324: e12fff13 bx r3 <== NOT EXECUTED 3001d328: ea000000 b 3001d330 <== NOT EXECUTED 3001d32c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 3001d330: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d334: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d338: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000a190 : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000a190: e92d41f0 push {r4, r5, r6, r7, r8, lr} 3000a194: e3a06000 mov r6, #0 ; 0x0 3000a198: e1a08000 mov r8, r0 3000a19c: e1a07001 mov r7, r1 3000a1a0: e3a04001 mov r4, #1 ; 0x1 3000a1a4: e1a05006 mov r5, r6 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) 3000a1a8: e1140007 tst r4, r7 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 3000a1ac: e2855001 add r5, r5, #1 ; 0x1 if (b & remote_value) 3000a1b0: 0a000003 beq 3000a1c4 local_value |= rtems_assoc_local_by_remote(ap, b); 3000a1b4: e1a01004 mov r1, r4 <== NOT EXECUTED 3000a1b8: e1a00008 mov r0, r8 <== NOT EXECUTED 3000a1bc: eb000005 bl 3000a1d8 <== NOT EXECUTED 3000a1c0: e1866000 orr r6, r6, r0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 3000a1c4: e3550020 cmp r5, #32 ; 0x20 3000a1c8: e1a04084 lsl r4, r4, #1 3000a1cc: 1afffff5 bne 3000a1a8 if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } 3000a1d0: e1a00006 mov r0, r6 3000a1d4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 300121d8 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 300121d8: e59f0000 ldr r0, [pc, #0] ; 300121e0 <== NOT EXECUTED 300121dc: e12fff1e bx lr <== NOT EXECUTED 300121e0: 30022114 .word 0x30022114 3000e564 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000e564: e92d4010 push {r4, lr} <== NOT EXECUTED 3000e568: e1a04001 mov r4, r1 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000e56c: eb000006 bl 3000e58c <== NOT EXECUTED if (nap) 3000e570: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3000e574: 0a000001 beq 3000e580 <== NOT EXECUTED return nap->name; return rtems_assoc_name_bad(local_value); } 3000e578: e5900000 ldr r0, [r0] <== NOT EXECUTED 3000e57c: e8bd8010 pop {r4, pc} <== NOT EXECUTED nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 3000e580: e1a00004 mov r0, r4 <== NOT EXECUTED } 3000e584: 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); 3000e588: ea000f12 b 300121d8 <== NOT EXECUTED 3000a1ec : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000a1ec: e92d4030 push {r4, r5, lr} 3000a1f0: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000a1f4: e5900000 ldr r0, [r0] const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000a1f8: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000a1fc: e3500000 cmp r0, #0 ; 0x0 3000a200: 0a000004 beq 3000a218 3000a204: e59f103c ldr r1, [pc, #60] ; 3000a248 3000a208: eb000622 bl 3000ba98 3000a20c: e3500000 cmp r0, #0 ; 0x0 default_ap = ap++; 3000a210: 01a02004 moveq r2, r4 uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000a214: 0a000004 beq 3000a22c default_ap = ap++; 3000a218: e3a02000 mov r2, #0 ; 0x0 3000a21c: ea000003 b 3000a230 for ( ; ap->name; ap++) if (ap->remote_value == remote_value) 3000a220: e5943008 ldr r3, [r4, #8] 3000a224: e1530005 cmp r3, r5 3000a228: 0a000004 beq 3000a240 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000a22c: e284400c add r4, r4, #12 ; 0xc 3000a230: e5943000 ldr r3, [r4] 3000a234: e3530000 cmp r3, #0 ; 0x0 3000a238: 1afffff8 bne 3000a220 3000a23c: e1a04002 mov r4, r2 <== NOT EXECUTED if (ap->remote_value == remote_value) return ap; return default_ap; } 3000a240: e1a00004 mov r0, r4 3000a244: e8bd8030 pop {r4, r5, pc} 3000a248: 300143a9 .word 0x300143a9 3000a24c : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000a24c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000a250: eb000125 bl 3000a6ec <== NOT EXECUTED if (nap) 3000a254: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return nap->remote_value; 3000a258: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } 3000a25c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30003a34 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 30003a34: e92d4010 push {r4, lr} if ( !time_buffer ) 30003a38: e2514000 subs r4, r1, #0 ; 0x0 30003a3c: 03a00009 moveq r0, #9 ; 0x9 30003a40: 08bd8010 popeq {r4, pc} return RTEMS_INVALID_ADDRESS; switch ( option ) { 30003a44: e3500004 cmp r0, #4 ; 0x4 30003a48: 979ff100 ldrls pc, [pc, r0, lsl #2] 30003a4c: ea000004 b 30003a64 30003a50: 30003a6c .word 0x30003a6c <== NOT EXECUTED 30003a54: 30003a78 .word 0x30003a78 <== NOT EXECUTED 30003a58: 30003a84 .word 0x30003a84 <== NOT EXECUTED 30003a5c: 30003a8c .word 0x30003a8c <== NOT EXECUTED 30003a60: 30003a9c .word 0x30003a9c <== NOT EXECUTED 30003a64: e3a0000a mov r0, #10 ; 0xa 30003a68: e8bd8010 pop {r4, pc} case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 30003a6c: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 30003a70: 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 ); 30003a74: ea000025 b 30003b10 case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 30003a78: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 30003a7c: 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); 30003a80: ea000008 b 30003aa8 case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 30003a84: eb00001d bl 30003b00 30003a88: ea000000 b 30003a90 return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TICKS_PER_SECOND: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); 30003a8c: eb000013 bl 30003ae0 30003a90: e5840000 str r0, [r4] 30003a94: e3a00000 mov r0, #0 ; 0x0 30003a98: e8bd8010 pop {r4, pc} return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TIME_VALUE: return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 30003a9c: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 30003aa0: 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 ); 30003aa4: ea00004b b 30003bd8 30001f40 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 30001f40: 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 ) 30001f44: e251a000 subs sl, r1, #0 ; 0x0 void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 30001f48: e24dd040 sub sp, sp, #64 ; 0x40 30001f4c: e1a08000 mov r8, r0 struct timespec uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 30001f50: 0a000058 beq 300020b8 * 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 ); 30001f54: e28d4030 add r4, sp, #48 ; 0x30 30001f58: e1a00004 mov r0, r4 _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 30001f5c: 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 ); 30001f60: eb001233 bl 30006834 <_TOD_Get_uptime> _Timespec_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 30001f64: e1a01004 mov r1, r4 30001f68: e1a02005 mov r2, r5 30001f6c: e59f014c ldr r0, [pc, #332] ; 300020c0 30001f70: eb001b27 bl 30008c14 <_Timespec_Subtract> } } } #endif (*print)( context, "CPU Usage by thread\n" 30001f74: e1a00008 mov r0, r8 30001f78: e59f1144 ldr r1, [pc, #324] ; 300020c4 30001f7c: e1a0e00f mov lr, pc 30001f80: e12fff1a bx sl 30001f84: e59f613c ldr r6, [pc, #316] ; 300020c8 _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); }; _Timespec_Divide( &ran, &total, &ival, &fval ); 30001f88: e28db020 add fp, sp, #32 ; 0x20 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 30001f8c: e5963004 ldr r3, [r6, #4] 30001f90: e3530000 cmp r3, #0 ; 0x0 30001f94: 0a00003a beq 30002084 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 30001f98: e5937004 ldr r7, [r3, #4] if ( information ) { 30001f9c: e3570000 cmp r7, #0 ; 0x0 30001fa0: 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( 30001fa4: 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 ) { 30001fa8: 1a000030 bne 30002070 30001fac: ea000034 b 30002084 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; 30001fb0: e597301c ldr r3, [r7, #28] 30001fb4: e7934105 ldr r4, [r3, r5, lsl #2] 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++ ) { 30001fb8: e2855001 add r5, r5, #1 ; 0x1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 30001fbc: e3540000 cmp r4, #0 ; 0x0 30001fc0: 0a00002a beq 30002070 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 30001fc4: e5940008 ldr r0, [r4, #8] 30001fc8: eb000d52 bl 30005518 (*print)( 30001fcc: e28d300b add r3, sp, #11 ; 0xb 30001fd0: e59f10f4 ldr r1, [pc, #244] ; 300020cc 30001fd4: e5942008 ldr r2, [r4, #8] 30001fd8: e1a00008 mov r0, r8 30001fdc: e1a0e00f mov lr, pc 30001fe0: e12fff1a bx sl /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 30001fe4: e59f00e4 ldr r0, [pc, #228] ; 300020d0 #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; 30001fe8: e5943088 ldr r3, [r4, #136] 30001fec: e5941084 ldr r1, [r4, #132] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 30001ff0: e5902000 ldr r2, [r0] #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; 30001ff4: e58d3024 str r3, [sp, #36] 30001ff8: e58d1020 str r1, [sp, #32] if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 30001ffc: e5922008 ldr r2, [r2, #8] 30002000: e5943008 ldr r3, [r4, #8] 30002004: e1520003 cmp r2, r3 30002008: 1a000006 bne 30002028 struct timespec used; _Timespec_Subtract( 3000200c: e59f00c0 ldr r0, [pc, #192] ; 300020d4 30002010: e28d1030 add r1, sp, #48 ; 0x30 30002014: e1a02009 mov r2, r9 30002018: eb001afd bl 30008c14 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timespec_Add_to( &ran, &used ); 3000201c: e1a0000b mov r0, fp 30002020: e1a01009 mov r1, r9 30002024: eb001abb bl 30008b18 <_Timespec_Add_to> }; _Timespec_Divide( &ran, &total, &ival, &fval ); 30002028: e28d203c add r2, sp, #60 ; 0x3c 3000202c: e28d3038 add r3, sp, #56 ; 0x38 30002030: e1a0000b mov r0, fp 30002034: e28d1028 add r1, sp, #40 ; 0x28 30002038: eb001acf bl 30008b7c <_Timespec_Divide> /* * Print the information */ (*print)( context, 3000203c: e3a01ffa mov r1, #1000 ; 0x3e8 30002040: e59d0024 ldr r0, [sp, #36] 30002044: eb004a46 bl 30014964 <__aeabi_uidiv> 30002048: e59d203c ldr r2, [sp, #60] 3000204c: e1a03000 mov r3, r0 30002050: e58d2000 str r2, [sp] 30002054: e59d2038 ldr r2, [sp, #56] 30002058: e1a00008 mov r0, r8 3000205c: e58d2004 str r2, [sp, #4] 30002060: e59f1070 ldr r1, [pc, #112] ; 300020d8 30002064: e59d2020 ldr r2, [sp, #32] 30002068: e1a0e00f mov lr, pc 3000206c: 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++ ) { 30002070: e1d731b0 ldrh r3, [r7, #16] the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 30002074: e3a0100d mov r1, #13 ; 0xd 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++ ) { 30002078: 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 ); 3000207c: 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++ ) { 30002080: 9affffca bls 30001fb0 " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 30002084: e59f3050 ldr r3, [pc, #80] ; 300020dc 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++ ) { 30002088: e2866004 add r6, r6, #4 ; 0x4 " ID NAME TICKS PERCENT\n" #endif ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 3000208c: e1560003 cmp r6, r3 30002090: 1affffbd bne 30001f8c } } } #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS (*print)( context, "Time since last CPU Usage reset %" PRId32 30002094: e3a01ffa mov r1, #1000 ; 0x3e8 30002098: e59d002c ldr r0, [sp, #44] 3000209c: eb004a30 bl 30014964 <__aeabi_uidiv> 300020a0: e59f1038 ldr r1, [pc, #56] ; 300020e0 300020a4: e1a03000 mov r3, r0 300020a8: e59d2028 ldr r2, [sp, #40] 300020ac: e1a00008 mov r0, r8 300020b0: e1a0e00f mov lr, pc 300020b4: 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 } 300020b8: e28dd040 add sp, sp, #64 ; 0x40 300020bc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 300020c0: 3002176c .word 0x3002176c 300020c4: 300178e6 .word 0x300178e6 300020c8: 300214e8 .word 0x300214e8 300020cc: 3001792b .word 0x3001792b 300020d0: 300215e4 .word 0x300215e4 300020d4: 300215ec .word 0x300215ec 300020d8: 3001793e .word 0x3001793e 300020dc: 300214f8 .word 0x300214f8 300020e0: 30017956 .word 0x30017956 30009e38 : { 0, 0, 0 }, }; static int rtems_deviceio_errno(rtems_status_code code) { 30009e38: e92d4010 push {r4, lr} <== NOT EXECUTED 30009e3c: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) 30009e40: e59f0018 ldr r0, [pc, #24] ; 30009e60 <== NOT EXECUTED 30009e44: eb000100 bl 3000a24c <== NOT EXECUTED 30009e48: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 30009e4c: 0a000001 beq 30009e58 <== NOT EXECUTED { errno = rc; 30009e50: eb000242 bl 3000a760 <__errno> <== NOT EXECUTED 30009e54: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } 30009e58: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009e5c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30009e60: 30013ad0 .word 0x30013ad0 300050ac : int rtems_error( int error_flag, const char *printf_format, ... ) { 300050ac: e92d000e push {r1, r2, r3} <== NOT EXECUTED 300050b0: 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); 300050b4: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 300050b8: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 300050bc: ebffff85 bl 30004ed8 <== NOT EXECUTED va_end(arglist); return chars_written; } 300050c0: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 300050c4: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 300050c8: e12fff1e bx lr <== NOT EXECUTED 30001210 : int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 30001210: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 30001214: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 30001218: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3000121c: e1a0e000 mov lr, r0 <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 30001220: 1a000002 bne 30001230 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 30001224: eb00254d bl 3000a760 <__errno> <== NOT EXECUTED 30001228: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 3000122c: ea000005 b 30001248 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 30001230: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 30001234: e593c000 ldr ip, [r3] <== NOT EXECUTED 30001238: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 3000123c: 1a000004 bne 30001254 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001240: eb002546 bl 3000a760 <__errno> <== NOT EXECUTED 30001244: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001248: e5803000 str r3, [r0] <== NOT EXECUTED 3000124c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30001250: ea000011 b 3000129c <== NOT EXECUTED parent = *pathloc; 30001254: e891000f ldm r1, {r0, r1, r2, r3} <== NOT EXECUTED 30001258: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 3000125c: e1a0100e mov r1, lr <== NOT EXECUTED 30001260: e59f0040 ldr r0, [pc, #64] ; 300012a8 <== NOT EXECUTED 30001264: e1a0200d mov r2, sp <== NOT EXECUTED 30001268: e1a0e00f mov lr, pc <== NOT EXECUTED 3000126c: e12fff1c bx ip <== NOT EXECUTED if (result != 0){ 30001270: 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; 30001274: e1a0500d mov r5, sp <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); if (result != 0){ 30001278: 1afffff3 bne 3000124c <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); 3000127c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30001280: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001284: 0a000004 beq 3000129c <== NOT EXECUTED 30001288: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000128c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001290: 11a0000d movne r0, sp <== NOT EXECUTED 30001294: 11a0e00f movne lr, pc <== NOT EXECUTED 30001298: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3000129c: e1a00004 mov r0, r4 <== NOT EXECUTED 300012a0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 300012a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 300012a8: 300140bb .word 0x300140bb 300012ac : const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 300012ac: e92d4070 push {r4, r5, r6, lr} /* * Verify Input parameters. */ if ( !pathname ) 300012b0: e250e000 subs lr, r0, #0 ; 0x0 const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 300012b4: e1a06001 mov r6, r1 300012b8: e1a04002 mov r4, r2 300012bc: e1a05003 mov r5, r3 /* * Verify Input parameters. */ if ( !pathname ) 300012c0: 1a000002 bne 300012d0 rtems_set_errno_and_return_minus_one( EFAULT ); 300012c4: eb002525 bl 3000a760 <__errno> <== NOT EXECUTED 300012c8: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 300012cc: ea00003c b 300013c4 <== NOT EXECUTED if ( !pathloc ) 300012d0: e3520000 cmp r2, #0 ; 0x0 300012d4: 1a000002 bne 300012e4 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 300012d8: eb002520 bl 3000a760 <__errno> <== NOT EXECUTED 300012dc: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 300012e0: ea000037 b 300013c4 <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 300012e4: e5de3000 ldrb r3, [lr] 300012e8: e353005c cmp r3, #92 ; 0x5c 300012ec: 1353002f cmpne r3, #47 ; 0x2f 300012f0: 13a02000 movne r2, #0 ; 0x0 300012f4: 03a02001 moveq r2, #1 ; 0x1 300012f8: 0a000001 beq 30001304 300012fc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001300: 1a000004 bne 30001318 <== NOT EXECUTED 30001304: e59f30d8 ldr r3, [pc, #216] ; 300013e4 30001308: e3a0c001 mov ip, #1 ; 0x1 3000130c: e5933000 ldr r3, [r3] 30001310: e2833014 add r3, r3, #20 ; 0x14 30001314: ea000003 b 30001328 30001318: e59f30c4 ldr r3, [pc, #196] ; 300013e4 <== NOT EXECUTED 3000131c: e1a0c002 mov ip, r2 <== NOT EXECUTED 30001320: e5933000 ldr r3, [r3] <== NOT EXECUTED 30001324: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 30001328: e893000f ldm r3, {r0, r1, r2, r3} 3000132c: e884000f stm r4, {r0, r1, r2, r3} if ( !pathloc->ops->evalpath_h ) 30001330: e5943008 ldr r3, [r4, #8] 30001334: e5933000 ldr r3, [r3] 30001338: e3530000 cmp r3, #0 ; 0x0 3000133c: 0a00001e beq 300013bc rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 30001340: e08e000c add r0, lr, ip 30001344: e1a01006 mov r1, r6 30001348: e1a02004 mov r2, r4 3000134c: e1a0e00f mov lr, pc 30001350: e12fff13 bx r3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 30001354: e2703001 rsbs r3, r0, #1 ; 0x1 30001358: 33a03000 movcc r3, #0 ; 0x0 3000135c: e3550000 cmp r5, #0 ; 0x0 30001360: 03a03000 moveq r3, #0 ; 0x0 30001364: e3530000 cmp r3, #0 ; 0x0 30001368: 08bd8070 popeq {r4, r5, r6, pc} if ( !pathloc->ops->node_type_h ){ 3000136c: e5943008 ldr r3, [r4, #8] 30001370: e5932010 ldr r2, [r3, #16] 30001374: e3520000 cmp r2, #0 ; 0x0 30001378: 0a00000a beq 300013a8 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 3000137c: e1a00004 mov r0, r4 30001380: e1a0e00f mov lr, pc 30001384: e12fff12 bx r2 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 30001388: e2400003 sub r0, r0, #3 ; 0x3 3000138c: e3500001 cmp r0, #1 ; 0x1 30001390: 83a00000 movhi r0, #0 ; 0x0 30001394: 88bd8070 pophi {r4, r5, r6, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 30001398: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3000139c: e5932034 ldr r2, [r3, #52] <== NOT EXECUTED 300013a0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 300013a4: 1a000009 bne 300013d0 <== NOT EXECUTED rtems_filesystem_freenode( pathloc ); 300013a8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300013ac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300013b0: 11a00004 movne r0, r4 <== NOT EXECUTED 300013b4: 11a0e00f movne lr, pc <== NOT EXECUTED 300013b8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300013bc: eb0024e7 bl 3000a760 <__errno> <== NOT EXECUTED 300013c0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300013c4: e5803000 str r3, [r0] <== NOT EXECUTED 300013c8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300013cc: 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 ); 300013d0: e1a00004 mov r0, r4 <== NOT EXECUTED 300013d4: e1a01006 mov r1, r6 <== NOT EXECUTED 300013d8: e1a0e00f mov lr, pc <== NOT EXECUTED 300013dc: e12fff12 bx r2 <== NOT EXECUTED } } return result; } 300013e0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 300013e4: 30014ba4 .word 0x30014ba4 3000841c : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 3000841c: e92d4030 push {r4, r5, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 30008420: e59f50dc ldr r5, [pc, #220] ; 30008504 30008424: e3a03012 mov r3, #18 ; 0x12 30008428: e5952000 ldr r2, [r5] * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 3000842c: e24dd018 sub sp, sp, #24 ; 0x18 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 30008430: e5823024 str r3, [r2, #36] init_fs_mount_table(); 30008434: eb0001fa bl 30008c24 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 30008438: e59f30c8 ldr r3, [pc, #200] ; 30008508 3000843c: e5933000 ldr r3, [r3] 30008440: e3530000 cmp r3, #0 ; 0x0 rtems_fatal_error_occurred( 0xABCD0001 ); 30008444: 059f00c0 ldreq r0, [pc, #192] ; 3000850c /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 30008448: 0a000009 beq 30008474 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 3000844c: e59f30bc ldr r3, [pc, #188] ; 30008510 status = mount( 30008450: e28d0014 add r0, sp, #20 ; 0x14 */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 30008454: e5932000 ldr r2, [r3] status = mount( 30008458: e592300c ldr r3, [r2, #12] 3000845c: e58d3000 str r3, [sp] 30008460: e892000e ldm r2, {r1, r2, r3} 30008464: eb0001f5 bl 30008c40 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 30008468: e3700001 cmn r0, #1 ; 0x1 3000846c: 1a000001 bne 30008478 rtems_fatal_error_occurred( 0xABCD0002 ); 30008470: e59f009c ldr r0, [pc, #156] ; 30008514 <== NOT EXECUTED 30008474: ebfff145 bl 30004990 <== NOT EXECUTED rtems_filesystem_link_counts = 0; 30008478: 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; 3000847c: e59d3014 ldr r3, [sp, #20] 30008480: e28ec014 add ip, lr, #20 ; 0x14 30008484: e2833018 add r3, r3, #24 ; 0x18 30008488: e893000f ldm r3, {r0, r1, r2, r3} /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 3000848c: e28d4004 add r4, sp, #4 ; 0x4 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 30008490: e88c000f stm ip, {r0, r1, r2, r3} /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 30008494: 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; 30008498: e3a03000 mov r3, #0 ; 0x0 3000849c: 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); 300084a0: e1a02004 mov r2, r4 300084a4: e1a03001 mov r3, r1 300084a8: e59f0068 ldr r0, [pc, #104] ; 30008518 300084ac: ebffe37e bl 300012ac rtems_filesystem_root = loc; 300084b0: e894000f ldm r4, {r0, r1, r2, r3} 300084b4: e595c000 ldr ip, [r5] 300084b8: e28cc014 add ip, ip, #20 ; 0x14 300084bc: e88c000f stm ip, {r0, r1, r2, r3} /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 300084c0: e3a01000 mov r1, #0 ; 0x0 300084c4: e1a02004 mov r2, r4 300084c8: e1a03001 mov r3, r1 300084cc: e59f0044 ldr r0, [pc, #68] ; 30008518 300084d0: ebffe375 bl 300012ac rtems_filesystem_current = loc; 300084d4: e894000f ldm r4, {r0, r1, r2, r3} 300084d8: e595c000 ldr ip, [r5] 300084dc: e28cc004 add ip, ip, #4 ; 0x4 300084e0: 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); 300084e4: e59f0030 ldr r0, [pc, #48] ; 3000851c 300084e8: e59f1030 ldr r1, [pc, #48] ; 30008520 300084ec: eb0001c8 bl 30008c14 if ( status != 0 ) 300084f0: e3500000 cmp r0, #0 ; 0x0 rtems_fatal_error_occurred( 0xABCD0003 ); 300084f4: 159f0028 ldrne r0, [pc, #40] ; 30008524 * 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 ) 300084f8: 1affffdd bne 30008474 * before device drivers are initialized. So we return via a base * filesystem image and nothing auto-mounted at this point. */ #endif } 300084fc: e28dd018 add sp, sp, #24 ; 0x18 30008500: e8bd8030 pop {r4, r5, pc} 30008504: 30014ba4 .word 0x30014ba4 30008508: 30013800 .word 0x30013800 3000850c: abcd0001 .word 0xabcd0001 30008510: 300145a4 .word 0x300145a4 30008514: abcd0002 .word 0xabcd0002 30008518: 3001428b .word 0x3001428b 3000851c: 3001428d .word 0x3001428d 30008520: 000001ff .word 0x000001ff 30008524: abcd0003 .word 0xabcd0003 3001d738 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 3001d738: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001d73c: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 3001d740: e1530000 cmp r3, r0 <== NOT EXECUTED 3001d744: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3001d748: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 3001d74c: e12fff1e bx lr <== NOT EXECUTED 300010e0 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 300010e0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 300010e4: 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 ); 300010e8: e1a0200d mov r2, sp <== NOT EXECUTED 300010ec: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 300010f0: 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 ); 300010f4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 300010f8: e1a06000 mov r6, 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 ); 300010fc: eb00006a bl 300012ac <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 30001100: e59d2008 ldr r2, [sp, #8] <== 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 ); 30001104: e1a0800d mov r8, sp <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 30001108: e5923010 ldr r3, [r2, #16] <== 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 ); 3000110c: e1a04000 mov r4, r0 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 30001110: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); the_jnode = loc.node_access; 30001114: e59d7000 ldr r7, [sp] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 30001118: 1a000009 bne 30001144 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3000111c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30001120: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001124: 11a0000d movne r0, sp <== NOT EXECUTED 30001128: 11a0e00f movne lr, pc <== NOT EXECUTED 3000112c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001130: eb00258a bl 3000a760 <__errno> <== NOT EXECUTED 30001134: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001138: e5803000 str r3, [r0] <== NOT EXECUTED 3000113c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30001140: ea000026 b 300011e0 <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 30001144: e1a0000d mov r0, sp <== NOT EXECUTED 30001148: e1a0e00f mov lr, pc <== NOT EXECUTED 3000114c: e12fff13 bx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 30001150: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 30001154: 03540000 cmpeq r4, #0 ; 0x0 <== NOT EXECUTED 30001158: 03a0a000 moveq sl, #0 ; 0x0 <== NOT EXECUTED 3000115c: 13a0a001 movne sl, #1 ; 0x1 <== NOT EXECUTED 30001160: e59d4008 ldr r4, [sp, #8] <== NOT EXECUTED 30001164: 0a000008 beq 3000118c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30001168: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 3000116c: 0a000018 beq 300011d4 <== NOT EXECUTED 30001170: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 30001174: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001178: 0a000015 beq 300011d4 <== NOT EXECUTED 3000117c: e1a0000d mov r0, sp <== NOT EXECUTED 30001180: e1a0e00f mov lr, pc <== NOT EXECUTED 30001184: e12fff13 bx r3 <== NOT EXECUTED 30001188: ea000011 b 300011d4 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 3000118c: e5856000 str r6, [r5] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 30001190: e1a00006 mov r0, r6 <== NOT EXECUTED 30001194: eb002aa7 bl 3000bc38 <== NOT EXECUTED 30001198: e5850004 str r0, [r5, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 3000119c: e5973050 ldr r3, [r7, #80] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 300011a0: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; 300011a4: e5853008 str r3, [r5, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 300011a8: e5973054 ldr r3, [r7, #84] <== NOT EXECUTED 300011ac: e585300c str r3, [r5, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300011b0: 0a000009 beq 300011dc <== NOT EXECUTED 300011b4: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 300011b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300011bc: 0a000006 beq 300011dc <== NOT EXECUTED 300011c0: e1a0000d mov r0, sp <== NOT EXECUTED 300011c4: e1a0e00f mov lr, pc <== NOT EXECUTED 300011c8: e12fff13 bx r3 <== NOT EXECUTED 300011cc: e1a0000a mov r0, sl <== NOT EXECUTED 300011d0: ea000002 b 300011e0 <== NOT EXECUTED 300011d4: e3a0000d mov r0, #13 ; 0xd <== NOT EXECUTED 300011d8: ea000000 b 300011e0 <== NOT EXECUTED 300011dc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED #endif return RTEMS_SUCCESSFUL; } 300011e0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 300011e4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 30006c6c : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 30006c6c: e92d41f0 push {r4, r5, r6, r7, r8, lr} uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 30006c70: e2507000 subs r7, r0, #0 ; 0x0 30006c74: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} return; 30006c78: e59f6054 ldr r6, [pc, #84] ; 30006cd4 for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 30006c7c: e2868010 add r8, r6, #16 ; 0x10 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 30006c80: e5963004 ldr r3, [r6, #4] 30006c84: e3530000 cmp r3, #0 ; 0x0 30006c88: 0a00000d beq 30006cc4 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 30006c8c: e5935004 ldr r5, [r3, #4] if ( information ) { 30006c90: e3550000 cmp r5, #0 ; 0x0 30006c94: 13a04001 movne r4, #1 ; 0x1 30006c98: 1a000006 bne 30006cb8 30006c9c: ea000008 b 30006cc4 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; 30006ca0: e595301c ldr r3, [r5, #28] 30006ca4: e7933104 ldr r3, [r3, r4, lsl #2] 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++ ) { 30006ca8: e2844001 add r4, r4, #1 ; 0x1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 30006cac: e2530000 subs r0, r3, #0 ; 0x0 continue; (*routine)(the_thread); 30006cb0: 11a0e00f movne lr, pc 30006cb4: 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++ ) { 30006cb8: e1d531b0 ldrh r3, [r5, #16] 30006cbc: e1540003 cmp r4, r3 30006cc0: 9afffff6 bls 30006ca0 30006cc4: e2866004 add r6, r6, #4 ; 0x4 if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 30006cc8: e1560008 cmp r6, r8 30006ccc: 1affffeb bne 30006c80 30006cd0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30006cd4: 300214e8 .word 0x300214e8 300013e8 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 300013e8: e92d4010 push {r4, lr} rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 300013ec: e59f4098 ldr r4, [pc, #152] ; 3000148c * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 300013f0: e24dd004 sub sp, sp, #4 ; 0x4 rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 300013f4: e5940000 ldr r0, [r4] 300013f8: e3500000 cmp r0, #0 ; 0x0 300013fc: 0a000015 beq 30001458 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 30001400: e3a01034 mov r1, #52 ; 0x34 30001404: eb001c47 bl 30008528 30001408: e59f3080 ldr r3, [pc, #128] ; 30001490 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 3000140c: 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, 30001410: e5830000 str r0, [r3] sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 30001414: 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) 30001418: 0a000017 beq 3000147c rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 3000141c: e59f3070 ldr r3, [pc, #112] ; 30001494 for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 30001420: 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; 30001424: e5830000 str r0, [r3] for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 30001428: e3a01000 mov r1, #0 ; 0x0 3000142c: e1a03000 mov r3, r0 30001430: ea000000 b 30001438 iop->data1 = iop + 1; 30001434: e503300c str r3, [r3, #-12] 30001438: 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++) 3000143c: e1510002 cmp r1, r2 iop->data1 = iop + 1; 30001440: 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++) 30001444: 1afffffa bne 30001434 iop->data1 = iop + 1; iop->data1 = NULL; 30001448: e3a03034 mov r3, #52 ; 0x34 3000144c: e0220193 mla r2, r3, r1, r0 30001450: e3a03000 mov r3, #0 ; 0x0 30001454: e502300c str r3, [r2, #-12] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 30001458: e59fc038 ldr ip, [pc, #56] ; 30001498 3000145c: e59f0038 ldr r0, [pc, #56] ; 3000149c 30001460: e3a01001 mov r1, #1 ; 0x1 30001464: e3a02054 mov r2, #84 ; 0x54 30001468: e3a03000 mov r3, #0 ; 0x0 3000146c: e58dc000 str ip, [sp] 30001470: eb000af5 bl 3000404c 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 30001474: e3500000 cmp r0, #0 ; 0x0 30001478: 0a000000 beq 30001480 rtems_fatal_error_occurred( rc ); 3000147c: eb000d43 bl 30004990 <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); } 30001480: e28dd004 add sp, sp, #4 ; 0x4 30001484: e8bd4010 pop {r4, lr} /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); 30001488: ea001be3 b 3000841c 3000148c: 3001459c .word 0x3001459c 30001490: 30015290 .word 0x30015290 30001494: 30015294 .word 0x30015294 30001498: 30015298 .word 0x30015298 3000149c: 4c42494f .word 0x4c42494f 30008844 : { rtems_libio_t *iop; int result=0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 30008844: e59f3070 ldr r3, [pc, #112] ; 300088bc <== NOT EXECUTED 30008848: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3000884c: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_file_open( void *node_access ) { 30008850: e92d4010 push {r4, lr} <== NOT EXECUTED 30008854: 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 ); 30008858: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000885c: ebffee93 bl 300042b0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 30008860: e59f3058 ldr r3, [pc, #88] ; 300088c0 <== NOT EXECUTED 30008864: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30008868: e5932000 ldr r2, [r3] <== NOT EXECUTED 3000886c: e59f3050 ldr r3, [pc, #80] ; 300088c4 <== NOT EXECUTED 30008870: e5930000 ldr r0, [r3] <== NOT EXECUTED 30008874: ea000007 b 30008898 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 30008878: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 3000887c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30008880: 0a000003 beq 30008894 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 30008884: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 30008888: e1530004 cmp r3, r4 <== NOT EXECUTED 3000888c: 03a04001 moveq r4, #1 ; 0x1 <== NOT EXECUTED 30008890: 0a000004 beq 300088a8 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 30008894: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 30008898: e1510000 cmp r1, r0 <== NOT EXECUTED 3000889c: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 300088a0: 3afffff4 bcc 30008878 <== NOT EXECUTED 300088a4: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 300088a8: e59f300c ldr r3, [pc, #12] ; 300088bc <== NOT EXECUTED 300088ac: e5930000 ldr r0, [r3] <== NOT EXECUTED 300088b0: ebffeec4 bl 300043c8 <== NOT EXECUTED return result; } 300088b4: e1a00004 mov r0, r4 <== NOT EXECUTED 300088b8: e8bd8010 pop {r4, pc} <== NOT EXECUTED 300088bc: 30015298 .word 0x30015298 300088c0: 30015290 .word 0x30015290 300088c4: 3001459c .word 0x3001459c 300088c8 : { rtems_libio_t *iop; int result = 0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 300088c8: e59f3070 ldr r3, [pc, #112] ; 30008940 <== NOT EXECUTED 300088cc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300088d0: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 300088d4: e92d4010 push {r4, lr} <== NOT EXECUTED 300088d8: 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 ); 300088dc: e5930000 ldr r0, [r3] <== NOT EXECUTED 300088e0: ebffee72 bl 300042b0 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 300088e4: e59f3058 ldr r3, [pc, #88] ; 30008944 <== NOT EXECUTED 300088e8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300088ec: e5932000 ldr r2, [r3] <== NOT EXECUTED 300088f0: e59f3050 ldr r3, [pc, #80] ; 30008948 <== NOT EXECUTED 300088f4: e5930000 ldr r0, [r3] <== NOT EXECUTED 300088f8: ea000007 b 3000891c <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 300088fc: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 30008900: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30008904: 0a000003 beq 30008918 <== 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 ) { 30008908: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3000890c: e1530004 cmp r3, r4 <== NOT EXECUTED 30008910: 03a04001 moveq r4, #1 ; 0x1 <== NOT EXECUTED 30008914: 0a000004 beq 3000892c <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 30008918: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 3000891c: e1510000 cmp r1, r0 <== NOT EXECUTED 30008920: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 30008924: 3afffff4 bcc 300088fc <== NOT EXECUTED 30008928: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 3000892c: e59f300c ldr r3, [pc, #12] ; 30008940 <== NOT EXECUTED 30008930: e5930000 ldr r0, [r3] <== NOT EXECUTED 30008934: ebffeea3 bl 300043c8 <== NOT EXECUTED return result; } 30008938: e1a00004 mov r0, r4 <== NOT EXECUTED 3000893c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30008940: 30015298 .word 0x30015298 30008944: 30015290 .word 0x30015290 30008948: 3001459c .word 0x3001459c 3001ce10 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 3001ce10: 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); 3001ce14: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 3001ce18: 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); 3001ce1c: e1a01000 mov r1, r0 <== NOT EXECUTED 3001ce20: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 3001ce24: eb0004b2 bl 3001e0f4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 3001ce28: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED 3001ce2c: 1a00003b bne 3001cf20 <== NOT EXECUTED /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 3001ce30: e59f60f4 ldr r6, [pc, #244] ; 3001cf2c <== NOT EXECUTED 3001ce34: e59f30f4 ldr r3, [pc, #244] ; 3001cf30 <== NOT EXECUTED 3001ce38: e5962000 ldr r2, [r6] <== NOT EXECUTED 3001ce3c: e1520003 cmp r2, r3 <== NOT EXECUTED 3001ce40: 1a00000f bne 3001ce84 <== NOT EXECUTED rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 3001ce44: e2800040 add r0, r0, #64 ; 0x40 <== NOT EXECUTED 3001ce48: ebff9d35 bl 30004324 <== NOT EXECUTED if (!tmp) 3001ce4c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001ce50: 03a0701a moveq r7, #26 ; 0x1a <== NOT EXECUTED 3001ce54: 0a000031 beq 3001cf20 <== 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); 3001ce58: e1a00007 mov r0, r7 <== NOT EXECUTED 3001ce5c: e1a01006 mov r1, r6 <== NOT EXECUTED 3001ce60: e59f20cc ldr r2, [pc, #204] ; 3001cf34 <== NOT EXECUTED 3001ce64: eb0005a5 bl 3001e500 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 3001ce68: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 3001ce6c: 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) { 3001ce70: 0a000003 beq 3001ce84 <== NOT EXECUTED /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 3001ce74: e1a00005 mov r0, r5 <== NOT EXECUTED 3001ce78: ebff9bae bl 30003d38 <== NOT EXECUTED 3001ce7c: e1a07004 mov r7, r4 <== NOT EXECUTED 3001ce80: ea000026 b 3001cf20 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 3001ce84: e59f60a0 ldr r6, [pc, #160] ; 3001cf2c <== NOT EXECUTED 3001ce88: e59f30a0 ldr r3, [pc, #160] ; 3001cf30 <== NOT EXECUTED 3001ce8c: e5964000 ldr r4, [r6] <== NOT EXECUTED 3001ce90: e1a0c003 mov ip, r3 <== NOT EXECUTED 3001ce94: e1a0e004 mov lr, r4 <== NOT EXECUTED 3001ce98: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3001ce9c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3001cea0: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3001cea4: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3001cea8: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3001ceac: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3001ceb0: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001ceb4: e88e000f stm lr, {r0, r1, r2, r3} <== NOT EXECUTED rtems_current_user_env->task_id=task_id; /* mark the local values*/ 3001ceb8: e59d3010 ldr r3, [sp, #16] <== 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); 3001cebc: e1a0500d mov r5, sp <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 3001cec0: e4843014 str r3, [r4], #20 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 3001cec4: e59f306c ldr r3, [pc, #108] ; 3001cf38 <== NOT EXECUTED 3001cec8: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001cecc: e2833018 add r3, r3, #24 ; 0x18 <== NOT EXECUTED 3001ced0: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 3001ced4: 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); 3001ced8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001cedc: e1a0200d mov r2, sp <== NOT EXECUTED 3001cee0: e1a03001 mov r3, r1 <== NOT EXECUTED 3001cee4: e59f0050 ldr r0, [pc, #80] ; 3001cf3c <== NOT EXECUTED 3001cee8: ebff9b43 bl 30003bfc <== NOT EXECUTED rtems_filesystem_root = loc; 3001ceec: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001cef0: e596c000 ldr ip, [r6] <== NOT EXECUTED 3001cef4: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 3001cef8: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 3001cefc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001cf00: e1a0200d mov r2, sp <== NOT EXECUTED 3001cf04: e1a03001 mov r3, r1 <== NOT EXECUTED 3001cf08: e59f002c ldr r0, [pc, #44] ; 3001cf3c <== NOT EXECUTED 3001cf0c: ebff9b3a bl 30003bfc <== NOT EXECUTED rtems_filesystem_current = loc; 3001cf10: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001cf14: e596c000 ldr ip, [r6] <== NOT EXECUTED 3001cf18: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3001cf1c: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 3001cf20: e1a00007 mov r0, r7 <== NOT EXECUTED 3001cf24: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001cf28: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 3001cf2c: 30040bf4 .word 0x30040bf4 3001cf30: 300555e0 .word 0x300555e0 3001cf34: 3001cd00 .word 0x3001cd00 3001cf38: 300551b0 .word 0x300551b0 3001cf3c: 3003e1a6 .word 0x3003e1a6 3001cd64 : * 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) { 3001cd64: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3001cd68: e1a05000 mov r5, r0 <== NOT EXECUTED 3001cd6c: 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); 3001cd70: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001cd74: e1a01000 mov r1, r0 <== NOT EXECUTED 3001cd78: e1a0200d mov r2, sp <== NOT EXECUTED 3001cd7c: eb0004dc bl 3001e0f4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 3001cd80: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 3001cd84: 1a00001b bne 3001cdf8 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 3001cd88: e59f1074 ldr r1, [pc, #116] ; 3001ce04 <== NOT EXECUTED 3001cd8c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3001cd90: e5914000 ldr r4, [r1] <== NOT EXECUTED 3001cd94: e5942000 ldr r2, [r4] <== NOT EXECUTED 3001cd98: e1520003 cmp r2, r3 <== NOT EXECUTED 3001cd9c: 1a000004 bne 3001cdb4 <== 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); 3001cda0: eb000601 bl 3001e5ac <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 3001cda4: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 3001cda8: 1a000012 bne 3001cdf8 <== NOT EXECUTED free_user_env(tmp); 3001cdac: e1a00004 mov r0, r4 <== NOT EXECUTED 3001cdb0: ebffffd2 bl 3001cd00 <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 3001cdb4: e59f4048 ldr r4, [pc, #72] ; 3001ce04 <== NOT EXECUTED 3001cdb8: e1a00005 mov r0, r5 <== NOT EXECUTED 3001cdbc: e1a01004 mov r1, r4 <== NOT EXECUTED 3001cdc0: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 3001cdc4: eb000618 bl 3001e62c <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 3001cdc8: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 3001cdcc: 1a000006 bne 3001cdec <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 3001cdd0: e1a01004 mov r1, r4 <== NOT EXECUTED 3001cdd4: e59f202c ldr r2, [pc, #44] ; 3001ce08 <== NOT EXECUTED 3001cdd8: eb0005c8 bl 3001e500 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 3001cddc: 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; 3001cde0: 059d3004 ldreq r3, [sp, #4] <== NOT EXECUTED 3001cde4: 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) 3001cde8: 0a000002 beq 3001cdf8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 3001cdec: e59f2018 ldr r2, [pc, #24] ; 3001ce0c <== NOT EXECUTED 3001cdf0: e59f300c ldr r3, [pc, #12] ; 3001ce04 <== NOT EXECUTED 3001cdf4: e5832000 str r2, [r3] <== NOT EXECUTED return sc; } 3001cdf8: e1a00001 mov r0, r1 <== NOT EXECUTED 3001cdfc: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ce00: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3001ce04: 30040bf4 .word 0x30040bf4 3001ce08: 3001cd00 .word 0x3001cd00 3001ce0c: 300555e0 .word 0x300555e0 30008804 : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 30008804: e2003006 and r3, r0, #6 ; 0x6 <== NOT EXECUTED 30008808: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 3000880c: e1a02000 mov r2, r0 <== NOT EXECUTED uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 30008810: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 30008814: 0a000003 beq 30008828 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 30008818: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 3000881c: 01a03122 lsreq r3, r2, #2 <== NOT EXECUTED 30008820: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30008824: 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 ) { 30008828: e3120001 tst r2, #1 ; 0x1 <== NOT EXECUTED fcntl_flags |= O_NONBLOCK; 3000882c: 13800901 orrne r0, r0, #16384 ; 0x4000 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 30008830: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED fcntl_flags |= O_APPEND; 30008834: 13800008 orrne r0, r0, #8 ; 0x8 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 30008838: e3120b01 tst r2, #1024 ; 0x400 <== NOT EXECUTED fcntl_flags |= O_CREAT; 3000883c: 13800c02 orrne r0, r0, #512 ; 0x200 <== NOT EXECUTED } return fcntl_flags; } 30008840: e12fff1e bx lr <== NOT EXECUTED 30004410 : * size and thus we skip updating the statistics. */ void rtems_malloc_statistics_at_free( void *pointer ) { 30004410: e92d4010 push {r4, lr} <== NOT EXECUTED 30004414: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 30004418: e1a01000 mov r1, r0 <== NOT EXECUTED size_t size; if (_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &size) ) { 3000441c: e1a0200d mov r2, sp <== NOT EXECUTED 30004420: e59f0030 ldr r0, [pc, #48] ; 30004458 <== NOT EXECUTED 30004424: eb001353 bl 30009178 <_Protected_heap_Get_block_size> <== NOT EXECUTED 30004428: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3000442c: 0a000007 beq 30004450 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 30004430: e59f1024 ldr r1, [pc, #36] ; 3000445c <== NOT EXECUTED 30004434: e59d2000 ldr r2, [sp] <== NOT EXECUTED 30004438: e2813024 add r3, r1, #36 ; 0x24 <== NOT EXECUTED 3000443c: e8930018 ldm r3, {r3, r4} <== NOT EXECUTED 30004440: e0933002 adds r3, r3, r2 <== NOT EXECUTED 30004444: e2a44000 adc r4, r4, #0 ; 0x0 <== NOT EXECUTED 30004448: e5813024 str r3, [r1, #36] <== NOT EXECUTED 3000444c: e5814028 str r4, [r1, #40] <== NOT EXECUTED } } 30004450: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 30004454: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30004458: 3005512c .word 0x3005512c 3000445c: 30055184 .word 0x30055184 30004460 : } void rtems_malloc_statistics_at_malloc( void *pointer ) { 30004460: e92d4010 push {r4, lr} <== NOT EXECUTED size_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 30004464: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED } void rtems_malloc_statistics_at_malloc( void *pointer ) { 30004468: 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 ) 3000446c: 0a000013 beq 300044c0 <== NOT EXECUTED void rtems_malloc_statistics_at_malloc( void *pointer ) { size_t actual_size = 0; 30004470: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30004474: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 30004478: 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); 3000447c: e1a01000 mov r1, r0 <== NOT EXECUTED 30004480: e1a0200d mov r2, sp <== NOT EXECUTED 30004484: e59f003c ldr r0, [pc, #60] ; 300044c8 <== NOT EXECUTED 30004488: eb00133a bl 30009178 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 3000448c: e59f0038 ldr r0, [pc, #56] ; 300044cc <== NOT EXECUTED 30004490: e59d2000 ldr r2, [sp] <== NOT EXECUTED 30004494: e280301c add r3, r0, #28 ; 0x1c <== NOT EXECUTED 30004498: e8930018 ldm r3, {r3, r4} <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 3000449c: e5901024 ldr r1, [r0, #36] <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 300044a0: e0933002 adds r3, r3, r2 <== NOT EXECUTED 300044a4: e2a44000 adc r4, r4, #0 ; 0x0 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 300044a8: e5902018 ldr r2, [r0, #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; 300044ac: e0611003 rsb r1, r1, r3 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 300044b0: e580301c str r3, [r0, #28] <== NOT EXECUTED 300044b4: e5804020 str r4, [r0, #32] <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 300044b8: e1510002 cmp r1, r2 <== NOT EXECUTED s->max_depth = current_depth; 300044bc: 85801018 strhi r1, [r0, #24] <== NOT EXECUTED } 300044c0: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 300044c4: e8bd8010 pop {r4, pc} <== NOT EXECUTED 300044c8: 3005512c .word 0x3005512c 300044cc: 30055184 .word 0x30055184 300044d0 : void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 300044d0: e59f0008 ldr r0, [pc, #8] ; 300044e0 <== NOT EXECUTED 300044d4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300044d8: e3a0202c mov r2, #44 ; 0x2c <== NOT EXECUTED 300044dc: ea009df5 b 3002bcb8 <== NOT EXECUTED 300044e0: 30055184 .word 0x30055184 30005088 : void rtems_panic( const char *printf_format, ... ) { 30005088: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED 3000508c: 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); 30005090: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 30005094: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 30005098: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED 3000509c: ebffff8d bl 30004ed8 <== NOT EXECUTED va_end(arglist); } 300050a0: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 300050a4: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 300050a8: e12fff1e bx lr <== NOT EXECUTED 3000f630 : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 3000f630: 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 ) 3000f634: e2517000 subs r7, r1, #0 ; 0x0 rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 3000f638: e1a04000 mov r4, r0 3000f63c: e24dd008 sub sp, sp, #8 ; 0x8 3000f640: 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 ) 3000f644: 03a04009 moveq r4, #9 ; 0x9 3000f648: 0a000029 beq 3000f6f4 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 3000f64c: e59f30ac ldr r3, [pc, #172] ; 3000f700 3000f650: e5930000 ldr r0, [r3] 3000f654: eb0008c6 bl 30011974 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 3000f658: e1a01004 mov r1, r4 3000f65c: e59f00a0 ldr r0, [pc, #160] ; 3000f704 3000f660: e1a0200d mov r2, sp 3000f664: eb000f3e bl 30013364 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 3000f668: e59d5000 ldr r5, [sp] 3000f66c: e1a04000 mov r4, r0 3000f670: e3550000 cmp r5, #0 ; 0x0 3000f674: 0a000003 beq 3000f688 3000f678: e3550001 cmp r5, #1 ; 0x1 3000f67c: 03a04004 moveq r4, #4 ; 0x4 3000f680: 1a000017 bne 3000f6e4 3000f684: ea000017 b 3000f6e8 case OBJECTS_LOCAL: heap_status = _Heap_Extend( 3000f688: e1a01007 mov r1, r7 3000f68c: e1a02006 mov r2, r6 3000f690: e2800068 add r0, r0, #104 ; 0x68 3000f694: e28d3004 add r3, sp, #4 ; 0x4 3000f698: eb000bb0 bl 30012560 <_Heap_Extend> starting_address, length, &amount_extended ); switch ( heap_status ) { 3000f69c: e3500001 cmp r0, #1 ; 0x1 3000f6a0: 03a04009 moveq r4, #9 ; 0x9 3000f6a4: 0a00000f beq 3000f6e8 3000f6a8: 3a000002 bcc 3000f6b8 3000f6ac: e3500002 cmp r0, #2 ; 0x2 3000f6b0: 1a00000b bne 3000f6e4 3000f6b4: ea000008 b 3000f6dc case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 3000f6b8: e59d1004 ldr r1, [sp, #4] 3000f6bc: e5942054 ldr r2, [r4, #84] the_region->maximum_segment_size += amount_extended; 3000f6c0: e594305c ldr r3, [r4, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 3000f6c4: e0822001 add r2, r2, r1 the_region->maximum_segment_size += amount_extended; 3000f6c8: e0833001 add r3, r3, r1 3000f6cc: e584305c str r3, [r4, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 3000f6d0: e5842054 str r2, [r4, #84] the_region->maximum_segment_size += amount_extended; 3000f6d4: e1a04005 mov r4, r5 3000f6d8: ea000002 b 3000f6e8 return_status = RTEMS_SUCCESSFUL; break; 3000f6dc: e3a04018 mov r4, #24 ; 0x18 3000f6e0: ea000000 b 3000f6e8 3000f6e4: e3a04019 mov r4, #25 ; 0x19 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 3000f6e8: e59f3010 ldr r3, [pc, #16] ; 3000f700 3000f6ec: e5930000 ldr r0, [r3] 3000f6f0: eb0008bb bl 300119e4 <_API_Mutex_Unlock> return return_status; } 3000f6f4: e1a00004 mov r0, r4 3000f6f8: e28dd008 add sp, sp, #8 ; 0x8 3000f6fc: e8bd80f0 pop {r4, r5, r6, r7, pc} 3000f700: 3002ee9c .word 0x3002ee9c 3000f704: 3002ec8c .word 0x3002ec8c 3000fa2c : Objects_Id id, void *segment, size_t size, size_t *old_size ) { 3000fa2c: 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 ) 3000fa30: e253a000 subs sl, r3, #0 ; 0x0 Objects_Id id, void *segment, size_t size, size_t *old_size ) { 3000fa34: e24dd010 sub sp, sp, #16 ; 0x10 3000fa38: e1a04000 mov r4, r0 3000fa3c: e1a06001 mov r6, r1 3000fa40: 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 ) 3000fa44: 0a000029 beq 3000faf0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 3000fa48: e59f80b0 ldr r8, [pc, #176] ; 3000fb00 3000fa4c: e5980000 ldr r0, [r8] 3000fa50: eb0007c7 bl 30011974 <_API_Mutex_Lock> 3000fa54: e1a01004 mov r1, r4 3000fa58: e59f00a4 ldr r0, [pc, #164] ; 3000fb04 3000fa5c: e28d2008 add r2, sp, #8 ; 0x8 3000fa60: eb000e3f bl 30013364 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 3000fa64: e59d3008 ldr r3, [sp, #8] 3000fa68: e1a05000 mov r5, r0 3000fa6c: e3530000 cmp r3, #0 ; 0x0 3000fa70: 0a000005 beq 3000fa8c 3000fa74: e3530001 cmp r3, #1 ; 0x1 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 3000fa78: e5980000 ldr r0, [r8] return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 3000fa7c: 03a04004 moveq r4, #4 ; 0x4 3000fa80: 13a04019 movne r4, #25 ; 0x19 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 3000fa84: eb0007d6 bl 300119e4 <_API_Mutex_Unlock> 3000fa88: ea000019 b 3000faf4 case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 3000fa8c: e28d3004 add r3, sp, #4 ; 0x4 3000fa90: e28dc00c add ip, sp, #12 ; 0xc 3000fa94: e1a01006 mov r1, r6 3000fa98: e1a02007 mov r2, r7 3000fa9c: e2800068 add r0, r0, #104 ; 0x68 3000faa0: e58dc000 str ip, [sp] 3000faa4: eb000c2b bl 30012b58 <_Heap_Resize_block> segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 3000faa8: e59d3004 ldr r3, [sp, #4] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 3000faac: e2504000 subs r4, r0, #0 ; 0x0 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 3000fab0: e58a3000 str r3, [sl] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 3000fab4: 1a000005 bne 3000fad0 3000fab8: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3000fabc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000fac0: 0a000002 beq 3000fad0 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ 3000fac4: e1a00005 mov r0, r5 <== NOT EXECUTED 3000fac8: eb001d60 bl 30017050 <_Region_Process_queue> <== NOT EXECUTED 3000facc: ea000008 b 3000faf4 <== NOT EXECUTED else _RTEMS_Unlock_allocator(); 3000fad0: e59f3028 ldr r3, [pc, #40] ; 3000fb00 3000fad4: e5930000 ldr r0, [r3] 3000fad8: eb0007c1 bl 300119e4 <_API_Mutex_Unlock> return 3000fadc: e3540000 cmp r4, #0 ; 0x0 3000fae0: 0a000003 beq 3000faf4 3000fae4: e3540001 cmp r4, #1 ; 0x1 3000fae8: 0284400c addeq r4, r4, #12 ; 0xc 3000faec: 0a000000 beq 3000faf4 return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 3000faf0: e3a04009 mov r4, #9 ; 0x9 } 3000faf4: e1a00004 mov r0, r4 3000faf8: e28dd010 add sp, sp, #16 ; 0x10 3000fafc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 3000fb00: 3002ee9c .word 0x3002ee9c 3000fb04: 3002ec8c .word 0x3002ec8c 3000404c : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 3000404c: 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 ) ) 30004050: e250a000 subs sl, r0, #0 ; 0x0 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 30004054: e24dd018 sub sp, sp, #24 ; 0x18 30004058: e1a07001 mov r7, r1 3000405c: e1a04002 mov r4, r2 30004060: e1a08003 mov r8, r3 30004064: 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 ) ) 30004068: 02800003 addeq r0, r0, #3 ; 0x3 3000406c: 0a000062 beq 300041fc return RTEMS_INVALID_NAME; if ( !id ) 30004070: e3590000 cmp r9, #0 ; 0x0 30004074: 03a00009 moveq r0, #9 ; 0x9 30004078: 0a00005f beq 300041fc return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 3000407c: e21220c0 ands r2, r2, #192 ; 0xc0 30004080: 0a000008 beq 300040a8 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 30004084: e2043030 and r3, r4, #48 ; 0x30 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 30004088: e3530010 cmp r3, #16 ; 0x10 3000408c: 0a000001 beq 30004098 30004090: e3530020 cmp r3, #32 ; 0x20 30004094: 1a000057 bne 300041f8 30004098: e3140004 tst r4, #4 ; 0x4 3000409c: 0a000055 beq 300041f8 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 300040a0: e35200c0 cmp r2, #192 ; 0xc0 300040a4: 0a000053 beq 300041f8 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 300040a8: e2146030 ands r6, r4, #48 ; 0x30 300040ac: 0a000002 beq 300040bc 300040b0: e3570001 cmp r7, #1 ; 0x1 300040b4: 83a0000a movhi r0, #10 ; 0xa 300040b8: 8a00004f bhi 300041fc rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 300040bc: e59f2140 ldr r2, [pc, #320] ; 30004204 300040c0: e5923000 ldr r3, [r2] 300040c4: e2833001 add r3, r3, #1 ; 0x1 300040c8: 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 ); 300040cc: e59f0134 ldr r0, [pc, #308] ; 30004208 300040d0: eb0004dc bl 30005448 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 300040d4: e2505000 subs r5, r0, #0 ; 0x0 300040d8: 1a000002 bne 300040e8 _Thread_Enable_dispatch(); 300040dc: eb000827 bl 30006180 <_Thread_Enable_dispatch> 300040e0: e3a00005 mov r0, #5 ; 0x5 300040e4: ea000044 b 300041fc * 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 ) ) { 300040e8: e3560000 cmp r6, #0 ; 0x0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 300040ec: 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 ) ) { 300040f0: 0a000029 beq 3000419c CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 300040f4: e3140040 tst r4, #64 ; 0x40 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 300040f8: 13a03002 movne r3, #2 ; 0x2 */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 300040fc: 1a000004 bne 30004114 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 30004100: e3140080 tst r4, #128 ; 0x80 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 30004104: 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 ) ) 30004108: 1a000001 bne 30004114 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; else if ( _Attributes_Is_priority( attribute_set ) ) 3000410c: e2143004 ands r3, r4, #4 ; 0x4 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; 30004110: 13a03001 movne r3, #1 ; 0x1 else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 30004114: 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; 30004118: 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; 3000411c: 13a03002 movne r3, #2 ; 0x2 30004120: 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 ) ) { 30004124: 1a00000b bne 30004158 the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 30004128: 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; 3000412c: e3a03000 mov r3, #0 ; 0x0 30004130: e58d3000 str r3, [sp] switch ( the_mutex_attributes.discipline ) { 30004134: e3520003 cmp r2, #3 ; 0x3 30004138: 979ff102 ldrls pc, [pc, r2, lsl #2] 3000413c: ea000007 b 30004160 <== NOT EXECUTED 30004140: 30004158 .word 0x30004158 <== NOT EXECUTED 30004144: 30004158 .word 0x30004158 <== NOT EXECUTED 30004148: 30004150 .word 0x30004150 <== NOT EXECUTED 3000414c: 30004150 .word 0x30004150 <== 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; 30004150: e3a03001 mov r3, #1 ; 0x1 30004154: ea000000 b 3000415c break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; 30004158: e3a03000 mov r3, #0 ; 0x0 3000415c: e5cd3004 strb r3, [sp, #4] } the_mutex_attributes.priority_ceiling = priority_ceiling; mutex_status = _CORE_mutex_Initialize( 30004160: e3570001 cmp r7, #1 ; 0x1 30004164: 13a02000 movne r2, #0 ; 0x0 30004168: 03a02001 moveq r2, #1 ; 0x1 3000416c: e2850014 add r0, r5, #20 ; 0x14 30004170: 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; 30004174: e58d800c str r8, [sp, #12] mutex_status = _CORE_mutex_Initialize( 30004178: eb0002d9 bl 30004ce4 <_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 ) { 3000417c: e3500006 cmp r0, #6 ; 0x6 30004180: 1a000012 bne 300041d0 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 30004184: e59f007c ldr r0, [pc, #124] ; 30004208 <== NOT EXECUTED 30004188: e1a01005 mov r1, r5 <== NOT EXECUTED 3000418c: eb00057c bl 30005784 <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 30004190: eb0007fa bl 30006180 <_Thread_Enable_dispatch> <== NOT EXECUTED 30004194: e3a00013 mov r0, #19 ; 0x13 <== NOT EXECUTED 30004198: ea000017 b 300041fc <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) 3000419c: e3140004 tst r4, #4 ; 0x4 the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 300041a0: 13a03001 movne r3, #1 ; 0x1 /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 300041a4: 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; 300041a8: 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( 300041ac: e1a02007 mov r2, r7 /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 300041b0: 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( 300041b4: e2850014 add r0, r5, #20 ; 0x14 300041b8: 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; 300041bc: 058d6014 streq r6, [sp, #20] /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 300041c0: 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; 300041c4: e58dc00c str ip, [sp, #12] /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 300041c8: e58dc000 str ip, [sp] the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 300041cc: eb000392 bl 3000501c <_CORE_semaphore_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 300041d0: e59f3030 ldr r3, [pc, #48] ; 30004208 300041d4: e1d510b8 ldrh r1, [r5, #8] 300041d8: e593301c ldr r3, [r3, #28] 300041dc: e5952008 ldr r2, [r5, #8] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 300041e0: e585a00c str sl, [r5, #12] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 300041e4: e7835101 str r5, [r3, r1, lsl #2] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 300041e8: e5892000 str r2, [r9] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 300041ec: eb0007e3 bl 30006180 <_Thread_Enable_dispatch> 300041f0: e3a00000 mov r0, #0 ; 0x0 300041f4: ea000000 b 300041fc return RTEMS_SUCCESSFUL; 300041f8: e3a0000b mov r0, #11 ; 0xb } 300041fc: e28dd018 add sp, sp, #24 ; 0x18 30004200: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 30004204: 3001540c .word 0x3001540c 30004208: 3001532c .word 0x3001532c 3001e04c : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 3001e04c: e52de004 push {lr} ; (str lr, [sp, #-4]!) 3001e050: e24dd004 sub sp, sp, #4 ; 0x4 3001e054: e1a01000 mov r1, r0 3001e058: e1a0200d mov r2, sp 3001e05c: e59f0048 ldr r0, [pc, #72] ; 3001e0ac 3001e060: ebffab9d bl 30008edc <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 3001e064: e59d2000 ldr r2, [sp] 3001e068: e3520000 cmp r2, #0 ; 0x0 3001e06c: 13a00004 movne r0, #4 ; 0x4 3001e070: 1a00000b bne 3001e0a4 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 3001e074: e5903010 ldr r3, [r0, #16] 3001e078: e2800014 add r0, r0, #20 ; 0x14 3001e07c: e2131030 ands r1, r3, #48 ; 0x30 3001e080: 0a000003 beq 3001e094 _CORE_mutex_Flush( 3001e084: e1a01002 mov r1, r2 3001e088: e3a02001 mov r2, #1 ; 0x1 3001e08c: ebffa832 bl 3000815c <_CORE_mutex_Flush> 3001e090: ea000001 b 3001e09c &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 3001e094: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3001e098: ebffa8fd bl 30008494 <_CORE_semaphore_Flush> <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 3001e09c: ebffadcf bl 300097e0 <_Thread_Enable_dispatch> 3001e0a0: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 3001e0a4: e28dd004 add sp, sp, #4 ; 0x4 3001e0a8: e8bd8000 pop {pc} 3001e0ac: 300551c8 .word 0x300551c8 30012f44 : */ void rtems_shutdown_executive( uint32_t result ) { 30012f44: e52de004 push {lr} ; (str lr, [sp, #-4]!) if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 30012f48: e59f2024 ldr r2, [pc, #36] ; 30012f74 */ void rtems_shutdown_executive( uint32_t result ) { 30012f4c: e24dd030 sub sp, sp, #48 ; 0x30 if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 30012f50: e5923000 ldr r3, [r2] 30012f54: e3530004 cmp r3, #4 ; 0x4 30012f58: 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 ); 30012f5c: 11a0000d movne r0, sp 30012f60: 159f1010 ldrne r1, [pc, #16] ; 30012f78 30012f64: 15823000 strne r3, [r2] 30012f68: 1bffd199 blne 300075d4 <_CPU_Context_switch> _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } } 30012f6c: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED 30012f70: e8bd8000 pop {pc} <== NOT EXECUTED 30012f74: 300155b4 .word 0x300155b4 30012f78: 300153dc .word 0x300153dc 30002a38 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30002a38: e59f3084 ldr r3, [pc, #132] ; 30002ac4 <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30002a3c: e1a0c00d mov ip, sp <== NOT EXECUTED Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30002a40: e5933000 ldr r3, [r3] <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30002a44: e92dd810 push {r4, fp, ip, lr, pc} <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 30002a48: e59300c8 ldr r0, [r3, #200] <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30002a4c: e24cb004 sub fp, ip, #4 ; 0x4 <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 30002a50: e15b0000 cmp fp, r0 <== NOT EXECUTED 30002a54: 33a04000 movcc r4, #0 ; 0x0 <== NOT EXECUTED 30002a58: 3a000004 bcc 30002a70 <== NOT EXECUTED 30002a5c: e59330c4 ldr r3, [r3, #196] <== NOT EXECUTED 30002a60: e0803003 add r3, r0, r3 <== NOT EXECUTED 30002a64: e15b0003 cmp fp, r3 <== NOT EXECUTED 30002a68: 83a04000 movhi r4, #0 ; 0x0 <== NOT EXECUTED 30002a6c: 93a04001 movls r4, #1 ; 0x1 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 30002a70: e59f3050 ldr r3, [pc, #80] ; 30002ac8 <== NOT EXECUTED 30002a74: e5933000 ldr r3, [r3] <== NOT EXECUTED 30002a78: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002a7c: 03a01001 moveq r1, #1 ; 0x1 <== NOT EXECUTED 30002a80: 0a000005 beq 30002a9c <== NOT EXECUTED pattern_ok = (!memcmp( 30002a84: e59f1040 ldr r1, [pc, #64] ; 30002acc <== NOT EXECUTED 30002a88: e2800008 add r0, r0, #8 ; 0x8 <== NOT EXECUTED 30002a8c: e3a02010 mov r2, #16 ; 0x10 <== NOT EXECUTED 30002a90: eb00a3cd bl 3002b9cc <== NOT EXECUTED 30002a94: e2701001 rsbs r1, r0, #1 ; 0x1 <== NOT EXECUTED 30002a98: 33a01000 movcc r1, #0 ; 0x0 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 30002a9c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30002aa0: 0a000002 beq 30002ab0 <== NOT EXECUTED 30002aa4: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30002aa8: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30002aac: 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 ); 30002ab0: e59f300c ldr r3, [pc, #12] ; 30002ac4 <== NOT EXECUTED 30002ab4: e5930000 ldr r0, [r3] <== NOT EXECUTED 30002ab8: ebffffc4 bl 300029d0 <== NOT EXECUTED 30002abc: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return true; } 30002ac0: e89da810 ldm sp, {r4, fp, sp, pc} <== NOT EXECUTED 30002ac4: 30055364 .word 0x30055364 30002ac8: 300420b8 .word 0x300420b8 30002acc: 300550fc .word 0x300550fc 300029c0 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 300029c0: e59f1004 ldr r1, [pc, #4] ; 300029cc <== NOT EXECUTED 300029c4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300029c8: eaffffe1 b 30002954 <== NOT EXECUTED 300029cc: 300050c4 .word 0x300050c4 30002954 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 30002954: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED print_context = context; 30002958: e59f704c ldr r7, [pc, #76] ; 300029ac <== NOT EXECUTED print_handler = print; 3000295c: e59f604c ldr r6, [pc, #76] ; 300029b0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 30002960: e1a04001 mov r4, r1 <== NOT EXECUTED 30002964: e1a05000 mov r5, r0 <== NOT EXECUTED print_context = context; print_handler = print; 30002968: e5861000 str r1, [r6] <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 3000296c: e5870000 str r0, [r7] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 30002970: e59f103c ldr r1, [pc, #60] ; 300029b4 <== NOT EXECUTED 30002974: e1a0e00f mov lr, pc <== NOT EXECUTED 30002978: e12fff14 bx r4 <== NOT EXECUTED (*print)( context, 3000297c: e59f1034 ldr r1, [pc, #52] ; 300029b8 <== NOT EXECUTED 30002980: e1a00005 mov r0, r5 <== NOT EXECUTED 30002984: e1a0e00f mov lr, pc <== NOT EXECUTED 30002988: 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 ); 3000298c: e59f0028 ldr r0, [pc, #40] ; 300029bc <== NOT EXECUTED 30002990: eb0017cb bl 300088c4 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 30002994: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30002998: ebffff96 bl 300027f8 <== NOT EXECUTED print_context = NULL; 3000299c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED print_handler = NULL; 300029a0: 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; 300029a4: e5873000 str r3, [r7] <== NOT EXECUTED print_handler = NULL; } 300029a8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 300029ac: 300420bc .word 0x300420bc 300029b0: 300420c0 .word 0x300420c0 300029b4: 3003c18b .word 0x3003c18b 300029b8: 3003c1a2 .word 0x3003c1a2 300029bc: 300027f8 .word 0x300027f8 30002ad0 : */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 30002ad0: e1a0c00d mov ip, sp 30002ad4: e92dd830 push {r4, r5, fp, ip, lr, pc} 30002ad8: e1a04000 mov r4, r0 Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; 30002adc: e59000c8 ldr r0, [r0, #200] */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 30002ae0: e24cb004 sub fp, ip, #4 ; 0x4 ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 30002ae4: e15b0000 cmp fp, r0 30002ae8: 33a05000 movcc r5, #0 ; 0x0 30002aec: 3a000004 bcc 30002b04 30002af0: e59430c4 ldr r3, [r4, #196] 30002af4: e0803003 add r3, r0, r3 30002af8: e15b0003 cmp fp, r3 30002afc: 83a05000 movhi r5, #0 ; 0x0 30002b00: 93a05001 movls r5, #1 ; 0x1 /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, 30002b04: e59f102c ldr r1, [pc, #44] ; 30002b38 30002b08: e2800008 add r0, r0, #8 ; 0x8 30002b0c: e3a02010 mov r2, #16 ; 0x10 30002b10: eb00a3ad bl 3002b9cc 30002b14: e2701001 rsbs r1, r0, #1 ; 0x1 30002b18: 33a01000 movcc r1, #0 ; 0x0 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 30002b1c: e3550000 cmp r5, #0 ; 0x0 30002b20: 0a000001 beq 30002b2c 30002b24: e3510000 cmp r1, #0 ; 0x0 30002b28: 189da830 ldmne sp, {r4, r5, fp, sp, pc} Stack_check_report_blown_task( running, pattern_ok ); 30002b2c: e1a00004 mov r0, r4 <== NOT EXECUTED } } 30002b30: e89d6830 ldm sp, {r4, r5, fp, sp, lr} <== NOT EXECUTED pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 30002b34: eaffffa5 b 300029d0 <== NOT EXECUTED 30002b38: 300550fc .word 0x300550fc 30004ec8 : const char * rtems_status_text( rtems_status_code status ) { 30004ec8: e1a01000 mov r1, r0 <== NOT EXECUTED return rtems_assoc_name_by_local(rtems_status_assoc, status); 30004ecc: e59f0000 ldr r0, [pc, #0] ; 30004ed4 <== NOT EXECUTED 30004ed0: ea0025a3 b 3000e564 <== NOT EXECUTED 30004ed4: 3001daf0 .word 0x3001daf0 3001e500 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 3001e500: e92d40f0 push {r4, r5, r6, r7, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 3001e504: e2516000 subs r6, r1, #0 ; 0x0 rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 3001e508: e24dd004 sub sp, sp, #4 ; 0x4 3001e50c: e1a07002 mov r7, r2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 3001e510: 03a00009 moveq r0, #9 ; 0x9 3001e514: 0a000022 beq 3001e5a4 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 3001e518: e1a0100d mov r1, sp 3001e51c: ebffacb8 bl 30009804 <_Thread_Get> switch (location) { 3001e520: e59d3000 ldr r3, [sp] rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 3001e524: e1a05000 mov r5, r0 switch (location) { 3001e528: e3530000 cmp r3, #0 ; 0x0 3001e52c: 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; 3001e530: 05954114 ldreq r4, [r5, #276] if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 3001e534: 0a000008 beq 3001e55c 3001e538: ea000019 b 3001e5a4 <== 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) { 3001e53c: e5943004 ldr r3, [r4, #4] 3001e540: e1530006 cmp r3, r6 3001e544: 1a000003 bne 3001e558 tvp->dtor = dtor; 3001e548: e5847010 str r7, [r4, #16] _Thread_Enable_dispatch(); 3001e54c: ebffaca3 bl 300097e0 <_Thread_Enable_dispatch> 3001e550: e3a00000 mov r0, #0 ; 0x0 3001e554: ea000012 b 3001e5a4 return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 3001e558: 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) { 3001e55c: e3540000 cmp r4, #0 ; 0x0 3001e560: 1afffff5 bne 3001e53c } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) 3001e564: e3a00014 mov r0, #20 ; 0x14 3001e568: ebffb187 bl 3000ab8c <_Workspace_Allocate> _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 3001e56c: e3500000 cmp r0, #0 ; 0x0 3001e570: 1a000002 bne 3001e580 _Thread_Enable_dispatch(); 3001e574: ebffac99 bl 300097e0 <_Thread_Enable_dispatch> 3001e578: e3a0001a mov r0, #26 ; 0x1a 3001e57c: ea000008 b 3001e5a4 } new->gval = *ptr; new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 3001e580: 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; 3001e584: 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; 3001e588: 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; 3001e58c: e5803008 str r3, [r0, #8] new->ptr = ptr; 3001e590: e5806004 str r6, [r0, #4] new->dtor = dtor; 3001e594: e5807010 str r7, [r0, #16] new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 3001e598: e5802000 str r2, [r0] the_thread->task_variables = new; _Thread_Enable_dispatch(); 3001e59c: ebffac8f bl 300097e0 <_Thread_Enable_dispatch> 3001e5a0: e1a00004 mov r0, r4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 3001e5a4: e28dd004 add sp, sp, #4 ; 0x4 3001e5a8: e8bd80f0 pop {r4, r5, r6, r7, pc} 3001e5ac : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 3001e5ac: e92d4010 push {r4, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 3001e5b0: e2514000 subs r4, r1, #0 ; 0x0 rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 3001e5b4: e24dd004 sub sp, sp, #4 ; 0x4 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 3001e5b8: 0a000018 beq 3001e620 return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 3001e5bc: e1a0100d mov r1, sp 3001e5c0: ebffac8f bl 30009804 <_Thread_Get> switch (location) { 3001e5c4: e59d3000 ldr r3, [sp] 3001e5c8: e3530000 cmp r3, #0 ; 0x0 3001e5cc: 13a00004 movne r0, #4 ; 0x4 case OBJECTS_LOCAL: tvp = the_thread->task_variables; 3001e5d0: 01a02003 moveq r2, r3 3001e5d4: 05901114 ldreq r1, [r0, #276] return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); switch (location) { 3001e5d8: 0a00000d beq 3001e614 3001e5dc: ea000010 b 3001e624 <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { 3001e5e0: e5913004 ldr r3, [r1, #4] 3001e5e4: e1530004 cmp r3, r4 3001e5e8: 1a000007 bne 3001e60c 3001e5ec: e5913000 ldr r3, [r1] if (prev) 3001e5f0: e3520000 cmp r2, #0 ; 0x0 prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; 3001e5f4: 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; 3001e5f8: 15823000 strne r3, [r2] else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); 3001e5fc: eb000028 bl 3001e6a4 <_RTEMS_Tasks_Invoke_task_variable_dtor> _Thread_Enable_dispatch(); 3001e600: ebffac76 bl 300097e0 <_Thread_Enable_dispatch> 3001e604: e3a00000 mov r0, #0 ; 0x0 3001e608: ea000005 b 3001e624 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 3001e60c: e1a02001 mov r2, r1 3001e610: e5911000 ldr r1, [r1] the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 3001e614: e3510000 cmp r1, #0 ; 0x0 3001e618: 1afffff0 bne 3001e5e0 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 3001e61c: ebffac6f bl 300097e0 <_Thread_Enable_dispatch> 3001e620: e3a00009 mov r0, #9 ; 0x9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 3001e624: e28dd004 add sp, sp, #4 ; 0x4 3001e628: e8bd8010 pop {r4, pc} 3001e62c : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 3001e62c: e92d4030 push {r4, r5, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 3001e630: e2515000 subs r5, r1, #0 ; 0x0 rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 3001e634: e24dd004 sub sp, sp, #4 ; 0x4 3001e638: e1a04002 mov r4, r2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 3001e63c: 0a000015 beq 3001e698 return RTEMS_INVALID_ADDRESS; if ( !result ) 3001e640: e3520000 cmp r2, #0 ; 0x0 3001e644: 0a000013 beq 3001e698 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 3001e648: e1a0100d mov r1, sp 3001e64c: ebffac6c bl 30009804 <_Thread_Get> switch (location) { 3001e650: e59d3000 ldr r3, [sp] 3001e654: e3530000 cmp r3, #0 ; 0x0 3001e658: 13a00004 movne r0, #4 ; 0x4 case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; 3001e65c: 05900114 ldreq r0, [r0, #276] if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 3001e660: 0a000009 beq 3001e68c 3001e664: ea00000c b 3001e69c <== NOT EXECUTED /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { 3001e668: e5903004 ldr r3, [r0, #4] 3001e66c: e1530005 cmp r3, r5 3001e670: 1a000004 bne 3001e688 /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 3001e674: e590300c ldr r3, [r0, #12] 3001e678: e5843000 str r3, [r4] _Thread_Enable_dispatch(); 3001e67c: ebffac57 bl 300097e0 <_Thread_Enable_dispatch> 3001e680: e3a00000 mov r0, #0 ; 0x0 3001e684: ea000004 b 3001e69c return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 3001e688: 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) { 3001e68c: e3500000 cmp r0, #0 ; 0x0 3001e690: 1afffff4 bne 3001e668 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 3001e694: ebffac51 bl 300097e0 <_Thread_Enable_dispatch> return RTEMS_INVALID_ADDRESS; 3001e698: e3a00009 mov r0, #9 ; 0x9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 3001e69c: e28dd004 add sp, sp, #4 ; 0x4 3001e6a0: e8bd8030 pop {r4, r5, pc} 30001ef4 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 30001ef4: e59f3018 ldr r3, [pc, #24] ; 30001f14 <== NOT EXECUTED 30001ef8: e5830000 str r0, [r3] <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 30001efc: e59f3014 ldr r3, [pc, #20] ; 30001f18 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 30001f00: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; 30001f04: e5831000 str r1, [r3] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 30001f08: e59f300c ldr r3, [pc, #12] ; 30001f1c <== NOT EXECUTED 30001f0c: e5832000 str r2, [r3] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 30001f10: e12fff1e bx lr <== NOT EXECUTED 30001f14: 30014b8c .word 0x30014b8c 30001f18: 30014b90 .word 0x30014b90 30001f1c: 30014b94 .word 0x30014b94 30003388 : { 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); 30003388: e59f316c ldr r3, [pc, #364] ; 300034fc rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 3000338c: e590c000 ldr ip, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30003390: e3a01000 mov r1, #0 ; 0x0 } } rtems_status_code rtems_termios_close (void *arg) { 30003394: 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); 30003398: e1a02001 mov r2, r1 } } rtems_status_code rtems_termios_close (void *arg) { 3000339c: 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); 300033a0: 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; 300033a4: e59c4028 ldr r4, [ip, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 300033a8: eb0003c0 bl 300042b0 if (sc != RTEMS_SUCCESSFUL) 300033ac: e3500000 cmp r0, #0 ; 0x0 300033b0: 1a00001d bne 3000342c rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 300033b4: e5943008 ldr r3, [r4, #8] 300033b8: e2433001 sub r3, r3, #1 ; 0x1 300033bc: e3530000 cmp r3, #0 ; 0x0 300033c0: e5843008 str r3, [r4, #8] 300033c4: 1a000047 bne 300034e8 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 300033c8: e59420cc ldr r2, [r4, #204] 300033cc: e59f312c ldr r3, [pc, #300] ; 30003500 300033d0: e0833282 add r3, r3, r2, lsl #5 300033d4: e5933004 ldr r3, [r3, #4] 300033d8: e3530000 cmp r3, #0 ; 0x0 300033dc: 0a000003 beq 300033f0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 300033e0: e1a00004 mov r0, r4 <== NOT EXECUTED 300033e4: e1a0e00f mov lr, pc <== NOT EXECUTED 300033e8: e12fff13 bx r3 <== NOT EXECUTED 300033ec: ea000001 b 300033f8 <== NOT EXECUTED } else { /* * default: just flush output buffer */ drainOutput (tty); 300033f0: e1a00004 mov r0, r4 300033f4: ebfffdee bl 30002bb4 } if (tty->device.outputUsesInterrupts 300033f8: e59430b4 ldr r3, [r4, #180] 300033fc: e3530002 cmp r3, #2 ; 0x2 30003400: 1a00000a bne 30003430 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 30003404: e59400c4 ldr r0, [r4, #196] <== NOT EXECUTED 30003408: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3000340c: eb00027d bl 30003e08 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 30003410: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003414: 1a000004 bne 3000342c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 30003418: e59400c8 ldr r0, [r4, #200] <== NOT EXECUTED 3000341c: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 30003420: eb000278 bl 30003e08 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 30003424: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003428: 0a000000 beq 30003430 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3000342c: eb000557 bl 30004990 <== NOT EXECUTED } if (tty->device.lastClose) 30003430: e594309c ldr r3, [r4, #156] 30003434: e3530000 cmp r3, #0 ; 0x0 (*tty->device.lastClose)(tty->major, tty->minor, arg); 30003438: 11a02005 movne r2, r5 3000343c: 1594000c ldrne r0, [r4, #12] 30003440: 15941010 ldrne r1, [r4, #16] 30003444: 11a0e00f movne lr, pc 30003448: 112fff13 bxne r3 if (tty->forw == NULL) { 3000344c: e8940006 ldm r4, {r1, r2} 30003450: e3510000 cmp r1, #0 ; 0x0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 30003454: 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) { 30003458: 1a000003 bne 3000346c rtems_termios_ttyTail = tty->back; 3000345c: e59f30a0 ldr r3, [pc, #160] ; 30003504 if ( rtems_termios_ttyTail != NULL ) { 30003460: 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; 30003464: e5832000 str r2, [r3] if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; 30003468: 15821000 strne r1, [r2] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 3000346c: e5941004 ldr r1, [r4, #4] 30003470: e5942000 ldr r2, [r4] 30003474: e3510000 cmp r1, #0 ; 0x0 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 30003478: 15812000 strne r2, [r1] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 3000347c: 1a000003 bne 30003490 rtems_termios_ttyHead = tty->forw; 30003480: e59f3080 ldr r3, [pc, #128] ; 30003508 if ( rtems_termios_ttyHead != NULL ) { 30003484: e3520000 cmp r2, #0 ; 0x0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 30003488: e5832000 str r2, [r3] if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; 3000348c: 15821004 strne r1, [r2, #4] } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); 30003490: e5940014 ldr r0, [r4, #20] 30003494: eb00035c bl 3000420c rtems_semaphore_delete (tty->osem); 30003498: e5940018 ldr r0, [r4, #24] 3000349c: eb00035a bl 3000420c rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 300034a0: e594008c ldr r0, [r4, #140] 300034a4: eb000358 bl 3000420c if ((tty->device.pollRead == NULL) || 300034a8: e59430a0 ldr r3, [r4, #160] 300034ac: e3530000 cmp r3, #0 ; 0x0 300034b0: 0a000002 beq 300034c0 300034b4: e59430b4 ldr r3, [r4, #180] 300034b8: e3530002 cmp r3, #2 ; 0x2 300034bc: 1a000001 bne 300034c8 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 300034c0: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED 300034c4: eb000350 bl 3000420c <== NOT EXECUTED free (tty->rawInBuf.theBuf); 300034c8: e5940058 ldr r0, [r4, #88] 300034cc: eb001452 bl 3000861c free (tty->rawOutBuf.theBuf); 300034d0: e594007c ldr r0, [r4, #124] 300034d4: eb001450 bl 3000861c free (tty->cbuf); 300034d8: e594001c ldr r0, [r4, #28] 300034dc: eb00144e bl 3000861c free (tty); 300034e0: e1a00004 mov r0, r4 300034e4: eb00144c bl 3000861c } rtems_semaphore_release (rtems_termios_ttyMutex); 300034e8: e59f300c ldr r3, [pc, #12] ; 300034fc 300034ec: e5930000 ldr r0, [r3] 300034f0: eb0003b4 bl 300043c8 return RTEMS_SUCCESSFUL; } 300034f4: e3a00000 mov r0, #0 ; 0x0 300034f8: e8bd8030 pop {r4, r5, pc} 300034fc: 30015320 .word 0x30015320 30003500: 30015114 .word 0x30015114 30003504: 30015324 .word 0x30015324 30003508: 30015328 .word 0x30015328 30002118 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 30002118: e5903090 ldr r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3000211c: e590c0b4 ldr ip, [r0, #180] <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 30002120: e0833001 add r3, r3, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30002124: 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) { 30002128: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 3000212c: e5803090 str r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30002130: 1a000005 bne 3000214c <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 30002134: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 30002138: e1a0100c mov r1, ip <== NOT EXECUTED 3000213c: eb000731 bl 30003e08 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 30002140: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30002144: 0a00000c beq 3000217c <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30002148: eb000a10 bl 30004990 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 3000214c: e59030cc ldr r3, [r0, #204] <== NOT EXECUTED 30002150: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 30002154: 1a000006 bne 30002174 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 30002158: e59f3024 ldr r3, [pc, #36] ; 30002184 <== NOT EXECUTED 3000215c: e59330b4 ldr r3, [r3, #180] <== NOT EXECUTED 30002160: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002164: 0a000004 beq 3000217c <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 30002168: e1a0e00f mov lr, pc <== NOT EXECUTED 3000216c: e12fff13 bx r3 <== NOT EXECUTED 30002170: ea000001 b 3000217c <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 30002174: 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); 30002178: eaffff6b b 30001f2c <== NOT EXECUTED } } 3000217c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30002180: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30002184: 30015114 .word 0x30015114 30002188 : * 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) { 30002188: 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) { 3000218c: e59fc2b8 ldr ip, [pc, #696] ; 3000244c <== NOT EXECUTED 30002190: e59030cc ldr r3, [r0, #204] <== 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) { 30002194: 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) { 30002198: e08c3283 add r3, ip, r3, lsl #5 <== NOT EXECUTED 3000219c: 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) { 300021a0: 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) { 300021a4: 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) { 300021a8: e58d1000 str r1, [sp] <== NOT EXECUTED 300021ac: 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); 300021b0: 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) { 300021b4: 13a05000 movne r5, #0 ; 0x0 <== NOT EXECUTED 300021b8: 1a00000d bne 300021f4 <== 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, 300021bc: 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); 300021c0: e2843030 add r3, r4, #48 ; 0x30 <== NOT EXECUTED 300021c4: 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, 300021c8: 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); 300021cc: e1a0a000 mov sl, r0 <== NOT EXECUTED 300021d0: e1a09000 mov r9, r0 <== NOT EXECUTED 300021d4: ea000090 b 3000241c <== 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); 300021d8: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 300021dc: e59d2000 ldr r2, [sp] <== NOT EXECUTED 300021e0: e0863283 add r3, r6, r3, lsl #5 <== NOT EXECUTED 300021e4: e7d20005 ldrb r0, [r2, r5] <== NOT EXECUTED 300021e8: e1a0e00f mov lr, pc <== NOT EXECUTED 300021ec: e593f010 ldr pc, [r3, #16] <== NOT EXECUTED 300021f0: 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--) { 300021f4: e2588001 subs r8, r8, #1 ; 0x1 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 300021f8: 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--) { 300021fc: 2afffff5 bcs 300021d8 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 30002200: e59450e4 ldr r5, [r4, #228] <== NOT EXECUTED 30002204: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30002208: 1a00008b bne 3000243c <== NOT EXECUTED 3000220c: e59430dc ldr r3, [r4, #220] <== NOT EXECUTED 30002210: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002214: 0a000088 beq 3000243c <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 30002218: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 3000221c: e59410e0 ldr r1, [r4, #224] <== NOT EXECUTED 30002220: e1a0e00f mov lr, pc <== NOT EXECUTED 30002224: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 30002228: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3000222c: e58430e4 str r3, [r4, #228] <== NOT EXECUTED 30002230: ea000082 b 30002440 <== 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) { 30002234: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 30002238: e59d2000 ldr r2, [sp] <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 3000223c: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 30002240: e7d27009 ldrb r7, [r2, r9] <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 30002244: 0a00000f beq 30002288 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 30002248: e5d4304a ldrb r3, [r4, #74] <== NOT EXECUTED 3000224c: e5d42049 ldrb r2, [r4, #73] <== NOT EXECUTED 30002250: e1530007 cmp r3, r7 <== NOT EXECUTED 30002254: 1a000005 bne 30002270 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 30002258: e1520003 cmp r2, r3 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 3000225c: 059430b8 ldreq r3, [r4, #184] <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 30002260: 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; 30002264: 02233010 eoreq r3, r3, #16 ; 0x10 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 30002268: 13833010 orrne r3, r3, #16 ; 0x10 <== NOT EXECUTED 3000226c: ea000003 b 30002280 <== NOT EXECUTED } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 30002270: e1520007 cmp r2, r7 <== NOT EXECUTED 30002274: 1a000003 bne 30002288 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 30002278: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 3000227c: e3c33010 bic r3, r3, #16 ; 0x10 <== NOT EXECUTED 30002280: e58430b8 str r3, [r4, #184] <== NOT EXECUTED 30002284: ea000001 b 30002290 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { 30002288: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED 3000228c: 0a000016 beq 300022ec <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 30002290: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002294: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED 30002298: e3530020 cmp r3, #32 ; 0x20 <== NOT EXECUTED 3000229c: 1a000010 bne 300022e4 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 300022a0: e10f6000 mrs r6, CPSR <== NOT EXECUTED 300022a4: e38630c0 orr r3, r6, #192 ; 0xc0 <== NOT EXECUTED 300022a8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 300022ac: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300022b0: 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; 300022b4: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300022b8: 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; 300022bc: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300022c0: 0a000006 beq 300022e0 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 300022c4: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 300022c8: e594107c ldr r1, [r4, #124] <== NOT EXECUTED 300022cc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300022d0: e0811003 add r1, r1, r3 <== NOT EXECUTED 300022d4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 300022d8: e1a0e00f mov lr, pc <== NOT EXECUTED 300022dc: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 300022e0: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 300022e4: e3a0a001 mov sl, #1 ; 0x1 <== NOT EXECUTED 300022e8: ea00004a b 30002418 <== NOT EXECUTED } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 300022ec: e5940060 ldr r0, [r4, #96] <== NOT EXECUTED 300022f0: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 300022f4: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 300022f8: eb003c87 bl 3001151c <__umodsi3> <== NOT EXECUTED 300022fc: e1a06000 mov r6, r0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 30002300: e10fb000 mrs fp, CPSR <== NOT EXECUTED 30002304: e38b30c0 orr r3, fp, #192 ; 0xc0 <== NOT EXECUTED 30002308: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 3000230c: e594305c ldr r3, [r4, #92] <== NOT EXECUTED 30002310: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 30002314: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 30002318: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 3000231c: e0800006 add r0, r0, r6 <== NOT EXECUTED 30002320: eb003c7d bl 3001151c <__umodsi3> <== NOT EXECUTED 30002324: e59430c0 ldr r3, [r4, #192] <== NOT EXECUTED 30002328: e1500003 cmp r0, r3 <== NOT EXECUTED 3000232c: 9a000025 bls 300023c8 <== NOT EXECUTED 30002330: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002334: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 30002338: 1a000022 bne 300023c8 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 3000233c: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 30002340: e59f2108 ldr r2, [pc, #264] ; 30002450 <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 30002344: e3833001 orr r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002348: e58430b8 str r3, [r4, #184] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 3000234c: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002350: e0032002 and r2, r3, r2 <== NOT EXECUTED 30002354: e3520b01 cmp r2, #1024 ; 0x400 <== NOT EXECUTED 30002358: 1a00000e bne 30002398 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 3000235c: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002360: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 30002364: 1a000002 bne 30002374 <== NOT EXECUTED 30002368: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 3000236c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002370: 1a000014 bne 300023c8 <== 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; 30002374: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED (*tty->device.write)(tty->minor, 30002378: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED == (FL_MDXOF ) ){ 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; 3000237c: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 30002380: e58430b8 str r3, [r4, #184] <== NOT EXECUTED (*tty->device.write)(tty->minor, 30002384: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 30002388: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3000238c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002390: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 30002394: ea00000b b 300023c8 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 30002398: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 3000239c: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED 300023a0: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED 300023a4: 1a000007 bne 300023c8 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 300023a8: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 300023ac: e59420ac ldr r2, [r4, #172] <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 300023b0: e3833004 orr r3, r3, #4 ; 0x4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 300023b4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 300023b8: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { tty->device.stopRemoteTx(tty->minor); 300023bc: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 300023c0: 11a0e00f movne lr, pc <== NOT EXECUTED 300023c4: 112fff12 bxne r2 <== NOT EXECUTED } } } /* reenable interrupts */ rtems_interrupt_enable(level); 300023c8: e129f00b msr CPSR_fc, fp <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 300023cc: e594305c ldr r3, [r4, #92] <== NOT EXECUTED 300023d0: e1560003 cmp r6, r3 <== NOT EXECUTED dropped++; 300023d4: 02855001 addeq r5, r5, #1 ; 0x1 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 300023d8: 0a00000e beq 30002418 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 300023dc: e5943058 ldr r3, [r4, #88] <== NOT EXECUTED 300023e0: 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 )) { 300023e4: e59430e4 ldr r3, [r4, #228] <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 300023e8: 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 )) { 300023ec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300023f0: 1a000008 bne 30002418 <== NOT EXECUTED 300023f4: e59430dc ldr r3, [r4, #220] <== NOT EXECUTED 300023f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300023fc: 0a000005 beq 30002418 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 30002400: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED 30002404: e59410e0 ldr r1, [r4, #224] <== NOT EXECUTED 30002408: e1a0e00f mov lr, pc <== NOT EXECUTED 3000240c: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 30002410: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30002414: e58430e4 str r3, [r4, #228] <== NOT EXECUTED 30002418: e2899001 add r9, r9, #1 ; 0x1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 3000241c: e2588001 subs r8, r8, #1 ; 0x1 <== NOT EXECUTED 30002420: 2affff83 bcs 30002234 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 30002424: e5943078 ldr r3, [r4, #120] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 30002428: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 3000242c: e0833005 add r3, r3, r5 <== NOT EXECUTED 30002430: e5843078 str r3, [r4, #120] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 30002434: eb0007e3 bl 300043c8 <== NOT EXECUTED 30002438: ea000000 b 30002440 <== NOT EXECUTED return dropped; 3000243c: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED } 30002440: e1a00005 mov r0, r5 <== NOT EXECUTED 30002444: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 30002448: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 3000244c: 30015114 .word 0x30015114 30002450: 00000402 .word 0x00000402 30002fc4 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 30002fc4: 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; 30002fc8: e5903000 ldr r3, [r0] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 30002fcc: 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; 30002fd0: e5935028 ldr r5, [r3, #40] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 30002fd4: e580100c str r1, [r0, #12] <== NOT EXECUTED } } rtems_status_code rtems_termios_ioctl (void *arg) { 30002fd8: e1a06000 mov r6, r0 <== NOT EXECUTED 30002fdc: 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); 30002fe0: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30002fe4: 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; 30002fe8: 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); 30002fec: eb0004af bl 300042b0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 30002ff0: e2508000 subs r8, r0, #0 ; 0x0 <== NOT EXECUTED 30002ff4: 1a0000dc bne 3000336c <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 30002ff8: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED 30002ffc: e3520004 cmp r2, #4 ; 0x4 <== NOT EXECUTED 30003000: 0a0000b0 beq 300032c8 <== NOT EXECUTED 30003004: 8a000005 bhi 30003020 <== NOT EXECUTED 30003008: e3520002 cmp r2, #2 ; 0x2 <== NOT EXECUTED 3000300c: 0a000029 beq 300030b8 <== NOT EXECUTED 30003010: 8a0000a5 bhi 300032ac <== NOT EXECUTED 30003014: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED 30003018: 1a000010 bne 30003060 <== NOT EXECUTED 3000301c: ea00001b b 30003090 <== NOT EXECUTED 30003020: e59f3354 ldr r3, [pc, #852] ; 3000337c <== NOT EXECUTED 30003024: e1520003 cmp r2, r3 <== NOT EXECUTED 30003028: 0a0000c2 beq 30003338 <== NOT EXECUTED 3000302c: 8a000002 bhi 3000303c <== NOT EXECUTED 30003030: e3520005 cmp r2, #5 ; 0x5 <== NOT EXECUTED 30003034: 1a000009 bne 30003060 <== NOT EXECUTED 30003038: ea00009e b 300032b8 <== NOT EXECUTED 3000303c: e59f333c ldr r3, [pc, #828] ; 30003380 <== NOT EXECUTED 30003040: e1520003 cmp r2, r3 <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_open != NULL) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 30003044: 05962008 ldreq r2, [r6, #8] <== NOT EXECUTED 30003048: 059530cc ldreq r3, [r5, #204] <== NOT EXECUTED 3000304c: 05823000 streq r3, [r2] <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 30003050: 0a0000c3 beq 30003364 <== NOT EXECUTED 30003054: e2833105 add r3, r3, #1073741825 ; 0x40000001 <== NOT EXECUTED 30003058: e1520003 cmp r2, r3 <== NOT EXECUTED 3000305c: 0a00009d beq 300032d8 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 30003060: e59520cc ldr r2, [r5, #204] <== NOT EXECUTED 30003064: e59f3318 ldr r3, [pc, #792] ; 30003384 <== NOT EXECUTED 30003068: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 3000306c: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30003070: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003074: 03a0800a moveq r8, #10 ; 0xa <== NOT EXECUTED 30003078: 0a0000b9 beq 30003364 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 3000307c: e1a00005 mov r0, r5 <== NOT EXECUTED 30003080: e1a01006 mov r1, r6 <== NOT EXECUTED 30003084: e1a0e00f mov lr, pc <== NOT EXECUTED 30003088: e12fff13 bx r3 <== NOT EXECUTED 3000308c: ea0000a7 b 30003330 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 30003090: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED 30003094: e285c030 add ip, r5, #48 ; 0x30 <== NOT EXECUTED 30003098: e1a0e004 mov lr, r4 <== NOT EXECUTED 3000309c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 300030a0: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 300030a4: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 300030a8: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 300030ac: e59c3000 ldr r3, [ip] <== NOT EXECUTED 300030b0: e58e3000 str r3, [lr] <== NOT EXECUTED 300030b4: ea0000aa b 30003364 <== NOT EXECUTED break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 300030b8: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED 300030bc: e285c030 add ip, r5, #48 ; 0x30 <== NOT EXECUTED 300030c0: e1a0e003 mov lr, r3 <== NOT EXECUTED 300030c4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 300030c8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 300030cc: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 300030d0: 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) && 300030d4: 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; 300030d8: 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) && 300030dc: 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; 300030e0: 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) && 300030e4: 0a000019 beq 30003150 <== NOT EXECUTED 300030e8: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 300030ec: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 300030f0: 1a000016 bne 30003150 <== NOT EXECUTED !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 300030f4: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 300030f8: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED 300030fc: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 30003100: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003104: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 30003108: 0a000010 beq 30003150 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 3000310c: e10f4000 mrs r4, CPSR <== NOT EXECUTED 30003110: e38430c0 orr r3, r4, #192 ; 0xc0 <== NOT EXECUTED 30003114: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 30003118: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3000311c: 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; 30003120: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30003124: 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; 30003128: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3000312c: 0a000006 beq 3000314c <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 30003130: e5953084 ldr r3, [r5, #132] <== NOT EXECUTED 30003134: e595107c ldr r1, [r5, #124] <== NOT EXECUTED 30003138: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 3000313c: e0811003 add r1, r1, r3 <== NOT EXECUTED 30003140: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30003144: e1a0e00f mov lr, pc <== NOT EXECUTED 30003148: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 3000314c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 30003150: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003154: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 30003158: 0a000008 beq 30003180 <== NOT EXECUTED 3000315c: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 30003160: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED 30003164: 1a000005 bne 30003180 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 30003168: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3000316c: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED 30003170: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 30003174: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003178: e3c33002 bic r3, r3, #2 ; 0x2 <== NOT EXECUTED 3000317c: e58530b8 str r3, [r5, #184] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 30003180: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003184: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30003188: 0a000010 beq 300031d0 <== NOT EXECUTED 3000318c: e5953038 ldr r3, [r5, #56] <== NOT EXECUTED 30003190: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003194: ba00000d blt 300031d0 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 30003198: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3000319c: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 300031a0: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 300031a4: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 300031a8: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 300031ac: 0a000004 beq 300031c4 <== NOT EXECUTED 300031b0: e59530b0 ldr r3, [r5, #176] <== NOT EXECUTED 300031b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 300031b8: 15950010 ldrne r0, [r5, #16] <== NOT EXECUTED 300031bc: 11a0e00f movne lr, pc <== NOT EXECUTED 300031c0: 112fff13 bxne r3 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 300031c4: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 300031c8: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED 300031cc: 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) { 300031d0: e5953038 ldr r3, [r5, #56] <== NOT EXECUTED 300031d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->flow_ctrl |= FL_MDRTS; 300031d8: b59530b8 ldrlt r3, [r5, #184] <== NOT EXECUTED 300031dc: b3833c01 orrlt r3, r3, #256 ; 0x100 <== NOT EXECUTED 300031e0: b58530b8 strlt r3, [r5, #184] <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 300031e4: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 300031e8: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXOF; 300031ec: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 300031f0: 13833b01 orrne r3, r3, #1024 ; 0x400 <== NOT EXECUTED 300031f4: 158530b8 strne r3, [r5, #184] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 300031f8: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 300031fc: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 30003200: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 30003204: 13833c02 orrne r3, r3, #512 ; 0x200 <== NOT EXECUTED 30003208: 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) { 3000320c: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 30003210: e2137002 ands r7, r3, #2 ; 0x2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 30003214: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 30003218: 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; 3000321c: 1585306c strne r3, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 30003220: 15853070 strne r3, [r5, #112] <== NOT EXECUTED 30003224: 1a000018 bne 3000328c <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); 30003228: e1a0100d mov r1, sp <== NOT EXECUTED 3000322c: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 30003230: eb0001ff bl 30003a34 <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 30003234: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30003238: e5d54046 ldrb r4, [r5, #70] <== NOT EXECUTED 3000323c: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 30003240: e0000493 mul r0, r3, r4 <== NOT EXECUTED 30003244: eb003870 bl 3001140c <__aeabi_uidiv> <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 30003248: 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; 3000324c: e5850054 str r0, [r5, #84] <== NOT EXECUTED 30003250: e5d53047 ldrb r3, [r5, #71] <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 30003254: 0a000006 beq 30003274 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 30003258: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000325c: 01a03000 moveq r3, r0 <== NOT EXECUTED 30003260: 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; 30003264: e585706c str r7, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 30003268: 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; 3000326c: e5850070 str r0, [r5, #112] <== NOT EXECUTED 30003270: ea000005 b 3000328c <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 30003274: 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; 30003278: 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; 3000327c: 15854074 strne r4, [r5, #116] <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 30003280: 1585406c strne r4, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 30003284: 15854070 strne r4, [r5, #112] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 30003288: 0585306c streq r3, [r5, #108] <== NOT EXECUTED } } } if (tty->device.setAttributes) 3000328c: e59530a8 ldr r3, [r5, #168] <== NOT EXECUTED 30003290: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003294: 0a000032 beq 30003364 <== NOT EXECUTED (*tty->device.setAttributes)(tty->minor, &tty->termios); 30003298: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 3000329c: e2851030 add r1, r5, #48 ; 0x30 <== NOT EXECUTED 300032a0: e1a0e00f mov lr, pc <== NOT EXECUTED 300032a4: e12fff13 bx r3 <== NOT EXECUTED 300032a8: ea00002d b 30003364 <== NOT EXECUTED break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 300032ac: e1a00005 mov r0, r5 <== NOT EXECUTED 300032b0: ebfffe3f bl 30002bb4 <== NOT EXECUTED 300032b4: ea00002a b 30003364 <== NOT EXECUTED break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 300032b8: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 300032bc: e58530d8 str r3, [r5, #216] <== NOT EXECUTED 300032c0: e58520d4 str r2, [r5, #212] <== NOT EXECUTED 300032c4: ea000026 b 30003364 <== NOT EXECUTED break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 300032c8: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 300032cc: e58530e0 str r3, [r5, #224] <== NOT EXECUTED 300032d0: e58520dc str r2, [r5, #220] <== NOT EXECUTED 300032d4: ea000022 b 30003364 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 300032d8: e59520cc ldr r2, [r5, #204] <== NOT EXECUTED 300032dc: e59f30a0 ldr r3, [pc, #160] ; 30003384 <== NOT EXECUTED 300032e0: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 300032e4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 300032e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300032ec: 0a000003 beq 30003300 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 300032f0: e1a00005 mov r0, r5 <== NOT EXECUTED 300032f4: e1a0e00f mov lr, pc <== NOT EXECUTED 300032f8: e12fff13 bx r3 <== NOT EXECUTED 300032fc: e1a08000 mov r8, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 30003300: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED 30003304: 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) { 30003308: e59f3074 ldr r3, [pc, #116] ; 30003384 <== 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); 3000330c: 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) { 30003310: 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 */ 30003314: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 30003318: e1510003 cmp r1, r3 <== 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 */ 3000331c: e58530d0 str r3, [r5, #208] <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 30003320: 0a00000f beq 30003364 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 30003324: e1a00005 mov r0, r5 <== NOT EXECUTED 30003328: e1a0e00f mov lr, pc <== NOT EXECUTED 3000332c: e12fff11 bx r1 <== NOT EXECUTED 30003330: e1a08000 mov r8, r0 <== NOT EXECUTED 30003334: ea00000a b 30003364 <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 30003338: e5952060 ldr r2, [r5, #96] <== NOT EXECUTED 3000333c: e595305c ldr r3, [r5, #92] <== NOT EXECUTED if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 30003340: e5961008 ldr r1, [r6, #8] <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) 30003344: e0520003 subs r0, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 30003348: 45953064 ldrmi r3, [r5, #100] <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 3000334c: e5952024 ldr r2, [r5, #36] <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; 30003350: 40800003 addmi r0, r0, r3 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 30003354: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30003358: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 3000335c: e0833000 add r3, r3, r0 <== NOT EXECUTED 30003360: e5813000 str r3, [r1] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 30003364: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30003368: eb000416 bl 300043c8 <== NOT EXECUTED args->ioctl_return = sc; 3000336c: e586800c str r8, [r6, #12] <== NOT EXECUTED return sc; } 30003370: e1a00008 mov r0, r8 <== NOT EXECUTED 30003374: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 30003378: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3000337c: 4004667f .word 0x4004667f 30003380: 4004741a .word 0x4004741a 30003384: 30015114 .word 0x30015114 3000350c : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3000350c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30003510: e24dd00c sub sp, sp, #12 ; 0xc 30003514: 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, 30003518: e59f23e4 ldr r2, [pc, #996] ; 30003904 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3000351c: e1a0b001 mov fp, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003520: e3a01000 mov r1, #0 ; 0x0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003524: e1a09000 mov r9, r0 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003528: e5920000 ldr r0, [r2] 3000352c: e1a02001 mov r2, r1 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003530: e1a07003 mov r7, r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003534: eb00035d bl 300042b0 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30003538: e250a000 subs sl, r0, #0 ; 0x0 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 3000353c: 059f33c4 ldreq r3, [pc, #964] ; 30003908 30003540: 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) 30003544: 0a000007 beq 30003568 30003548: ea0000e2 b 300038d8 <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { if ((tty->major == major) && (tty->minor == minor)) 3000354c: e595300c ldr r3, [r5, #12] 30003550: e1530009 cmp r3, r9 30003554: 1a000002 bne 30003564 30003558: e5953010 ldr r3, [r5, #16] 3000355c: e153000b cmp r3, fp 30003560: 0a0000ba beq 30003850 */ 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) { 30003564: e5955000 ldr r5, [r5] <== NOT EXECUTED 30003568: e3550000 cmp r5, #0 ; 0x0 3000356c: 1afffff6 bne 3000354c 30003570: ea0000db b 300038e4 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 30003574: e59f3390 ldr r3, [pc, #912] ; 3000390c 30003578: e5933000 ldr r3, [r3] 3000357c: e5853064 str r3, [r5, #100] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 30003580: e5950064 ldr r0, [r5, #100] 30003584: eb001567 bl 30008b28 if (tty->rawInBuf.theBuf == NULL) { 30003588: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 3000358c: e5850058 str r0, [r5, #88] if (tty->rawInBuf.theBuf == NULL) { 30003590: 0a000011 beq 300035dc return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 30003594: e59f3374 ldr r3, [pc, #884] ; 30003910 30003598: e5933000 ldr r3, [r3] 3000359c: e5853088 str r3, [r5, #136] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 300035a0: e5950088 ldr r0, [r5, #136] 300035a4: eb00155f bl 30008b28 if (tty->rawOutBuf.theBuf == NULL) { 300035a8: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 300035ac: e585007c str r0, [r5, #124] if (tty->rawOutBuf.theBuf == NULL) { 300035b0: 0a000007 beq 300035d4 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 300035b4: e59f3358 ldr r3, [pc, #856] ; 30003914 300035b8: e5930000 ldr r0, [r3] 300035bc: eb001559 bl 30008b28 if (tty->cbuf == NULL) { 300035c0: e3500000 cmp r0, #0 ; 0x0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 300035c4: e585001c str r0, [r5, #28] if (tty->cbuf == NULL) { 300035c8: 1a000007 bne 300035ec free((void *)(tty->rawOutBuf.theBuf)); 300035cc: e595007c ldr r0, [r5, #124] <== NOT EXECUTED 300035d0: eb001411 bl 3000861c <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 300035d4: e5950058 ldr r0, [r5, #88] <== NOT EXECUTED 300035d8: eb00140f bl 3000861c <== NOT EXECUTED free(tty); 300035dc: e1a00005 mov r0, r5 <== NOT EXECUTED 300035e0: eb00140d bl 3000861c <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 300035e4: e3a0a01a mov sl, #26 ; 0x1a <== NOT EXECUTED 300035e8: ea0000b7 b 300038cc <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 300035ec: e59f3314 ldr r3, [pc, #788] ; 30003908 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 300035f0: e3a02000 mov r2, #0 ; 0x0 tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 300035f4: e5933000 ldr r3, [r3] tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 300035f8: e59f1318 ldr r1, [pc, #792] ; 30003918 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) 300035fc: e1530002 cmp r3, r2 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 30003600: e5852004 str r2, [r5, #4] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 30003604: e5853000 str r3, [r5] tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; 30003608: 15835004 strne r5, [r3, #4] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3000360c: e59f8308 ldr r8, [pc, #776] ; 3000391c */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 30003610: e59f32f0 ldr r3, [pc, #752] ; 30003908 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 30003614: e58520d4 str r2, [r5, #212] tty->tty_snd.sw_arg = NULL; 30003618: e58520d8 str r2, [r5, #216] tty->tty_rcv.sw_pfn = NULL; 3000361c: e58520dc str r2, [r5, #220] tty->tty_rcv.sw_arg = NULL; 30003620: e58520e0 str r2, [r5, #224] tty->tty_rcvwakeup = 0; 30003624: e58520e4 str r2, [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) 30003628: e5912000 ldr r2, [r1] */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 3000362c: e5834000 str r4, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003630: e59f02e8 ldr r0, [pc, #744] ; 30003920 30003634: e5d83000 ldrb r3, [r8] 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) 30003638: e3520000 cmp r2, #0 ; 0x0 rtems_termios_ttyTail = tty; 3000363c: 05814000 streq r4, [r1] tty->minor = minor; 30003640: e584b010 str fp, [r4, #16] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003644: e1830000 orr r0, r3, r0 rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; tty->major = major; 30003648: e584900c str r9, [r4, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3000364c: e284c014 add ip, r4, #20 ; 0x14 30003650: e3a03000 mov r3, #0 ; 0x0 30003654: e3a01001 mov r1, #1 ; 0x1 30003658: e3a02054 mov r2, #84 ; 0x54 3000365c: e58dc000 str ip, [sp] 30003660: eb000279 bl 3000404c 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) 30003664: e2503000 subs r3, r0, #0 ; 0x0 30003668: 1a000096 bne 300038c8 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 3000366c: e5d82000 ldrb r2, [r8] 30003670: e59f02ac ldr r0, [pc, #684] ; 30003924 30003674: e284c018 add ip, r4, #24 ; 0x18 30003678: e1820000 orr r0, r2, r0 3000367c: e3a01001 mov r1, #1 ; 0x1 30003680: e3a02054 mov r2, #84 ; 0x54 30003684: e58dc000 str ip, [sp] 30003688: eb00026f bl 3000404c 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) 3000368c: e2501000 subs r1, r0, #0 ; 0x0 30003690: 1a00008c bne 300038c8 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 30003694: e5d83000 ldrb r3, [r8] 30003698: e59f0288 ldr r0, [pc, #648] ; 30003928 3000369c: e284c08c add ip, r4, #140 ; 0x8c 300036a0: e1830000 orr r0, r3, r0 300036a4: e3a02020 mov r2, #32 ; 0x20 300036a8: e1a03001 mov r3, r1 300036ac: e58dc000 str ip, [sp] 300036b0: eb000265 bl 3000404c rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 300036b4: e2506000 subs r6, r0, #0 ; 0x0 300036b8: 1a000082 bne 300038c8 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 300036bc: e284c098 add ip, r4, #152 ; 0x98 300036c0: e1a0e007 mov lr, r7 300036c4: e8be000f ldm lr!, {r0, r1, r2, r3} 300036c8: e8ac000f stmia ip!, {r0, r1, r2, r3} 300036cc: e89e000f ldm lr, {r0, r1, r2, r3} 300036d0: e88c000f stm ip, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300036d4: e59430b4 ldr r3, [r4, #180] 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; 300036d8: e5846094 str r6, [r4, #148] tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300036dc: e3530002 cmp r3, #2 ; 0x2 300036e0: 1a000016 bne 30003740 sc = rtems_task_create ( 300036e4: e5d83000 ldrb r3, [r8] <== NOT EXECUTED 300036e8: e59f023c ldr r0, [pc, #572] ; 3000392c <== NOT EXECUTED 300036ec: e284c0c8 add ip, r4, #200 ; 0xc8 <== NOT EXECUTED 300036f0: e1830000 orr r0, r3, r0 <== NOT EXECUTED 300036f4: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 300036f8: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 300036fc: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 30003700: e88d1040 stm sp, {r6, ip} <== NOT EXECUTED 30003704: eb000357 bl 30004468 <== 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) 30003708: e250e000 subs lr, r0, #0 ; 0x0 <== NOT EXECUTED 3000370c: 1a00006d bne 300038c8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 30003710: e5d83000 ldrb r3, [r8] <== NOT EXECUTED 30003714: e59f0214 ldr r0, [pc, #532] ; 30003930 <== NOT EXECUTED 30003718: e284c0c4 add ip, r4, #196 ; 0xc4 <== NOT EXECUTED 3000371c: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003720: e3a01009 mov r1, #9 ; 0x9 <== NOT EXECUTED 30003724: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 30003728: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 3000372c: e58de000 str lr, [sp] <== NOT EXECUTED 30003730: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30003734: eb00034b bl 30004468 <== 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) 30003738: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3000373c: 1a000061 bne 300038c8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 30003740: e59430a0 ldr r3, [r4, #160] 30003744: e3530000 cmp r3, #0 ; 0x0 30003748: 0a000002 beq 30003758 3000374c: e59430b4 ldr r3, [r4, #180] 30003750: e3530002 cmp r3, #2 ; 0x2 30003754: 1a00000b bne 30003788 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 30003758: e59f31bc ldr r3, [pc, #444] ; 3000391c <== NOT EXECUTED 3000375c: e59f01d0 ldr r0, [pc, #464] ; 30003934 <== NOT EXECUTED 30003760: e5d33000 ldrb r3, [r3] <== NOT EXECUTED 30003764: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30003768: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000376c: e284c068 add ip, r4, #104 ; 0x68 <== NOT EXECUTED 30003770: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED 30003774: e1a03001 mov r3, r1 <== NOT EXECUTED 30003778: e58dc000 str ip, [sp] <== NOT EXECUTED 3000377c: eb000232 bl 3000404c <== 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) 30003780: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003784: 1a00004f bne 300038c8 <== 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'; 30003788: 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; 3000378c: e58420b8 str r2, [r4, #184] /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 30003790: e5940064 ldr r0, [r4, #100] tty->highwater = tty->rawInBuf.Size * 3/4; 30003794: 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'; 30003798: 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; 3000379c: 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'; 300037a0: e3a0301c mov r3, #28 ; 0x1c 300037a4: e5c43042 strb r3, [r4, #66] tty->termios.c_cc[VERASE] = '\177'; 300037a8: e2833063 add r3, r3, #99 ; 0x63 300037ac: e5c43043 strb r3, [r4, #67] tty->termios.c_cc[VKILL] = '\025'; 300037b0: e3a03015 mov r3, #21 ; 0x15 300037b4: e5c43044 strb r3, [r4, #68] tty->termios.c_cc[VEOF] = '\004'; 300037b8: e3a03004 mov r3, #4 ; 0x4 300037bc: e5c43045 strb r3, [r4, #69] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 300037c0: e283300d add r3, r3, #13 ; 0xd 300037c4: e5c43049 strb r3, [r4, #73] tty->termios.c_cc[VSTOP] = '\023'; 300037c8: e2833002 add r3, r3, #2 ; 0x2 300037cc: e5c4304a strb r3, [r4, #74] tty->termios.c_cc[VSUSP] = '\032'; 300037d0: e2833007 add r3, r3, #7 ; 0x7 300037d4: e5c4304b strb r3, [r4, #75] tty->termios.c_cc[VREPRINT] = '\022'; 300037d8: e3a03012 mov r3, #18 ; 0x12 300037dc: e5c4304d strb r3, [r4, #77] tty->termios.c_cc[VDISCARD] = '\017'; 300037e0: e3a0300f mov r3, #15 ; 0xf 300037e4: e5c4304e strb r3, [r4, #78] tty->termios.c_cc[VWERASE] = '\027'; 300037e8: e2833008 add r3, r3, #8 ; 0x8 300037ec: e5c4304f strb r3, [r4, #79] tty->termios.c_cc[VLNEXT] = '\026'; 300037f0: e3a03016 mov r3, #22 ; 0x16 300037f4: e5c43050 strb r3, [r4, #80] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 300037f8: e59fe11c ldr lr, [pc, #284] ; 3000391c } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 300037fc: e59f3134 ldr r3, [pc, #308] ; 30003938 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'; 30003800: 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'; 30003804: e5c4204c strb r2, [r4, #76] tty->termios.c_cc[VEOL2] = '\000'; 30003808: 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') 3000380c: e5de2000 ldrb r2, [lr] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 30003810: e5843030 str r3, [r4, #48] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 30003814: e59f3120 ldr r3, [pc, #288] ; 3000393c tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003818: e352007a cmp r2, #122 ; 0x7a /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3000381c: e5843034 str r3, [r4, #52] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 30003820: e59f3118 ldr r3, [pc, #280] ; 30003940 /* 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; 30003824: e1a000a0 lsr r0, r0, #1 /* * 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; 30003828: e5843038 str r3, [r4, #56] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 3000382c: e59f3110 ldr r3, [pc, #272] ; 30003944 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; 30003830: e1a01121 lsr r1, r1, #2 * 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; 30003834: e584303c str r3, [r4, #60] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003838: e2822001 add r2, r2, #1 ; 0x1 c = 'a'; 3000383c: 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; 30003840: 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; 30003844: e58400bc str r0, [r4, #188] tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003848: e5ce2000 strb r2, [lr] c = 'a'; 3000384c: 05ce3000 strbeq r3, [lr] } args->iop->data1 = tty; 30003850: e59d1008 ldr r1, [sp, #8] if (!tty->refcount++) { 30003854: e5953008 ldr r3, [r5, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 30003858: e5912000 ldr r2, [r1] if (!tty->refcount++) { 3000385c: e3530000 cmp r3, #0 ; 0x0 30003860: e2833001 add r3, r3, #1 ; 0x1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 30003864: e5825028 str r5, [r2, #40] if (!tty->refcount++) { 30003868: e5853008 str r3, [r5, #8] 3000386c: 1a000016 bne 300038cc if (tty->device.firstOpen) 30003870: e5953098 ldr r3, [r5, #152] 30003874: e3530000 cmp r3, #0 ; 0x0 (*tty->device.firstOpen)(major, minor, arg); 30003878: 11a00009 movne r0, r9 3000387c: 11a0100b movne r1, fp 30003880: 159d2008 ldrne r2, [sp, #8] 30003884: 11a0e00f movne lr, pc 30003888: 112fff13 bxne r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3000388c: e59530b4 ldr r3, [r5, #180] 30003890: e3530002 cmp r3, #2 ; 0x2 30003894: 1a00000c bne 300038cc sc = rtems_task_start(tty->rxTaskId, 30003898: e59500c4 ldr r0, [r5, #196] <== NOT EXECUTED 3000389c: e59f10a4 ldr r1, [pc, #164] ; 30003948 <== NOT EXECUTED 300038a0: e1a02005 mov r2, r5 <== NOT EXECUTED 300038a4: eb00039d bl 30004720 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 300038a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300038ac: 1a000005 bne 300038c8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 300038b0: e1a02005 mov r2, r5 <== NOT EXECUTED 300038b4: e59500c8 ldr r0, [r5, #200] <== NOT EXECUTED 300038b8: e59f108c ldr r1, [pc, #140] ; 3000394c <== NOT EXECUTED 300038bc: eb000397 bl 30004720 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 300038c0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300038c4: 0a000000 beq 300038cc <== NOT EXECUTED rtems_fatal_error_occurred (sc); 300038c8: eb000430 bl 30004990 <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 300038cc: e59f3030 ldr r3, [pc, #48] ; 30003904 300038d0: e5930000 ldr r0, [r3] 300038d4: eb0002bb bl 300043c8 return RTEMS_SUCCESSFUL; } 300038d8: e1a0000a mov r0, sl 300038dc: e28dd00c add sp, sp, #12 ; 0xc 300038e0: 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)); 300038e4: e3a00001 mov r0, #1 ; 0x1 300038e8: e3a010e8 mov r1, #232 ; 0xe8 300038ec: eb00130d bl 30008528 if (tty == NULL) { 300038f0: e3500000 cmp r0, #0 ; 0x0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 300038f4: e1a05000 mov r5, r0 300038f8: e1a04000 mov r4, r0 if (tty == NULL) { 300038fc: 1affff1c bne 30003574 30003900: eaffff37 b 300035e4 <== NOT EXECUTED 30003904: 30015320 .word 0x30015320 30003908: 30015328 .word 0x30015328 3000390c: 30014b90 .word 0x30014b90 30003910: 30014b94 .word 0x30014b94 30003914: 30014b8c .word 0x30014b8c 30003918: 30015324 .word 0x30015324 3000391c: 30014b98 .word 0x30014b98 30003920: 54526900 .word 0x54526900 30003924: 54526f00 .word 0x54526f00 30003928: 54527800 .word 0x54527800 3000392c: 54785400 .word 0x54785400 30003930: 52785400 .word 0x52785400 30003934: 54527200 .word 0x54527200 30003938: 00002502 .word 0x00002502 3000393c: 00001805 .word 0x00001805 30003940: 000008bd .word 0x000008bd 30003944: 0000823b .word 0x0000823b 30003948: 300039c0 .word 0x300039c0 3000394c: 30003950 .word 0x30003950 30002454 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 30002454: e59230b4 ldr r3, [r2, #180] * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 30002458: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 3000245c: 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) { 30002460: e1a04002 mov r4, r2 30002464: e1a0a000 mov sl, r0 30002468: 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) { 3000246c: 1a000005 bne 30002488 (*tty->device.write)(tty->minor, (void *)buf, len); 30002470: e1a01000 mov r1, r0 30002474: e1a02007 mov r2, r7 30002478: e5940010 ldr r0, [r4, #16] 3000247c: e1a0e00f mov lr, pc 30002480: e594f0a4 ldr pc, [r4, #164] 30002484: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} return; } newHead = tty->rawOutBuf.Head; 30002488: e5926080 ldr r6, [r2, #128] <== NOT EXECUTED 3000248c: 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; 30002490: 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; 30002494: e3a09001 mov r9, #1 ; 0x1 <== NOT EXECUTED 30002498: ea00002e b 30002558 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 3000249c: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 300024a0: e2860001 add r0, r6, #1 ; 0x1 <== NOT EXECUTED 300024a4: eb003c1c bl 3001151c <__umodsi3> <== NOT EXECUTED 300024a8: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_interrupt_disable (level); 300024ac: e10f5000 mrs r5, CPSR <== NOT EXECUTED 300024b0: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 300024b4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 300024b8: ea00000a b 300024e8 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 300024bc: e584b094 str fp, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 300024c0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 300024c4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300024c8: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 300024cc: e1a02001 mov r2, r1 <== NOT EXECUTED 300024d0: eb000776 bl 300042b0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 300024d4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 300024d8: 1b00092c blne 30004990 <== NOT EXECUTED rtems_interrupt_disable (level); 300024dc: e10f5000 mrs r5, CPSR <== NOT EXECUTED 300024e0: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 300024e4: 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) { 300024e8: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 300024ec: e1560003 cmp r6, r3 <== NOT EXECUTED 300024f0: 0afffff1 beq 300024bc <== 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++; 300024f4: e5941080 ldr r1, [r4, #128] <== NOT EXECUTED 300024f8: e7da2008 ldrb r2, [sl, r8] <== NOT EXECUTED 300024fc: e594307c ldr r3, [r4, #124] <== NOT EXECUTED 30002500: e7c32001 strb r2, [r3, r1] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 30002504: e5943094 ldr r3, [r4, #148] <== 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; 30002508: e5846080 str r6, [r4, #128] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 3000250c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002510: 1a00000d bne 3000254c <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 30002514: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002518: 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; 3000251c: 159430b8 ldrne r3, [r4, #184] <== NOT EXECUTED 30002520: 13833020 orrne r3, r3, #32 ; 0x20 <== NOT EXECUTED 30002524: 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)) { 30002528: 1a000006 bne 30002548 <== NOT EXECUTED (*tty->device.write)(tty->minor, 3000252c: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 30002530: e594107c ldr r1, [r4, #124] <== NOT EXECUTED 30002534: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002538: e0811003 add r1, r1, r3 <== NOT EXECUTED 3000253c: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30002540: e1a0e00f mov lr, pc <== NOT EXECUTED 30002544: 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; 30002548: e5849094 str r9, [r4, #148] <== NOT EXECUTED } rtems_interrupt_enable (level); 3000254c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED len--; 30002550: e2477001 sub r7, r7, #1 ; 0x1 <== NOT EXECUTED 30002554: 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) { 30002558: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 3000255c: 1affffce bne 3000249c <== NOT EXECUTED 30002560: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30002c20 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002c20: 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; 30002c24: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002c28: e1a07000 mov r7, r0 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002c2c: 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); 30002c30: 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; 30002c34: e5973008 ldr r3, [r7, #8] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002c38: 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); 30002c3c: e1a02001 mov r2, r1 <== NOT EXECUTED 30002c40: e5940014 ldr r0, [r4, #20] <== 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; 30002c44: e597800c ldr r8, [r7, #12] <== NOT EXECUTED char *buffer = args->buffer; 30002c48: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002c4c: eb000597 bl 300042b0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 30002c50: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 30002c54: 1a0000d4 bne 30002fac <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 30002c58: e59420cc ldr r2, [r4, #204] <== NOT EXECUTED 30002c5c: e59f3354 ldr r3, [pc, #852] ; 30002fb8 <== NOT EXECUTED 30002c60: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 30002c64: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30002c68: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002c6c: 0a000005 beq 30002c88 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 30002c70: e1a01007 mov r1, r7 <== NOT EXECUTED 30002c74: e1a00004 mov r0, r4 <== NOT EXECUTED 30002c78: e1a0e00f mov lr, pc <== NOT EXECUTED 30002c7c: e12fff13 bx r3 <== NOT EXECUTED 30002c80: e1a0a000 mov sl, r0 <== NOT EXECUTED 30002c84: ea0000c4 b 30002f9c <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { 30002c88: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 30002c8c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002c90: e1520003 cmp r2, r3 <== NOT EXECUTED 30002c94: 1a0000ad bne 30002f50 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 30002c98: 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; 30002c9c: e5942028 ldr r2, [r4, #40] <== NOT EXECUTED if (tty->device.pollRead != NULL 30002ca0: 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; 30002ca4: 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; 30002ca8: e584a020 str sl, [r4, #32] <== NOT EXECUTED 30002cac: e584a024 str sl, [r4, #36] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 30002cb0: 0a00004a beq 30002de0 <== NOT EXECUTED 30002cb4: e59430b4 ldr r3, [r4, #180] <== NOT EXECUTED 30002cb8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002cbc: 1a000047 bne 30002de0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 30002cc0: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 30002cc4: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 30002cc8: 0a00000d beq 30002d04 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 30002ccc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002cd0: e1a0e00f mov lr, pc <== NOT EXECUTED 30002cd4: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED if (n < 0) { 30002cd8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 30002cdc: e1a01004 mov r1, r4 <== NOT EXECUTED 30002ce0: 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) { 30002ce4: aa000002 bge 30002cf4 <== NOT EXECUTED rtems_task_wake_after (1); 30002ce8: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30002cec: eb0006a5 bl 30004788 <== NOT EXECUTED 30002cf0: eafffff5 b 30002ccc <== NOT EXECUTED } else { if (siproc (n, tty)) 30002cf4: ebffff66 bl 30002a94 <== NOT EXECUTED 30002cf8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30002cfc: 0afffff2 beq 30002ccc <== NOT EXECUTED 30002d00: ea000092 b 30002f50 <== NOT EXECUTED } } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 30002d04: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 30002d08: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002d0c: 1a000004 bne 30002d24 <== NOT EXECUTED 30002d10: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 30002d14: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 30002d18: 13a00002 movne r0, #2 ; 0x2 <== NOT EXECUTED 30002d1c: 128d1008 addne r1, sp, #8 ; 0x8 <== NOT EXECUTED 30002d20: 1b000343 blne 30003a34 <== 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); 30002d24: 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); 30002d28: 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); 30002d2c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002d30: e1a0e00f mov lr, pc <== NOT EXECUTED 30002d34: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED if (n < 0) { 30002d38: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30002d3c: aa000017 bge 30002da0 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 30002d40: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 30002d44: e5d42046 ldrb r2, [r4, #70] <== NOT EXECUTED 30002d48: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002d4c: 0a000005 beq 30002d68 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 30002d50: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30002d54: 0a00000e beq 30002d94 <== NOT EXECUTED 30002d58: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002d5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002d60: 0a00000b beq 30002d94 <== NOT EXECUTED 30002d64: ea000001 b 30002d70 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 30002d68: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30002d6c: 0a000077 beq 30002f50 <== NOT EXECUTED break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 30002d70: e1a01005 mov r1, r5 <== NOT EXECUTED 30002d74: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 30002d78: eb00032d bl 30003a34 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 30002d7c: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 30002d80: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 30002d84: e5941054 ldr r1, [r4, #84] <== NOT EXECUTED 30002d88: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 30002d8c: e1530001 cmp r3, r1 <== NOT EXECUTED 30002d90: 8a00006e bhi 30002f50 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 30002d94: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30002d98: eb00067a bl 30004788 <== NOT EXECUTED 30002d9c: eaffffe2 b 30002d2c <== NOT EXECUTED } else { siproc (n, tty); 30002da0: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED 30002da4: e1a01004 mov r1, r4 <== NOT EXECUTED 30002da8: ebffff39 bl 30002a94 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30002dac: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 30002db0: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002db4: e1530002 cmp r3, r2 <== NOT EXECUTED 30002db8: aa000064 bge 30002f50 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 30002dbc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30002dc0: 0affffd9 beq 30002d2c <== NOT EXECUTED 30002dc4: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 30002dc8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002dcc: 0affffd6 beq 30002d2c <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 30002dd0: e1a01006 mov r1, r6 <== NOT EXECUTED 30002dd4: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 30002dd8: eb000315 bl 30003a34 <== NOT EXECUTED 30002ddc: eaffffd2 b 30002d2c <== 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; 30002de0: 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, 30002de4: e2849049 add r9, r4, #73 ; 0x49 <== NOT EXECUTED 30002de8: 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)) 30002dec: e59fb1c8 ldr fp, [pc, #456] ; 30002fbc <== NOT EXECUTED 30002df0: ea000054 b 30002f48 <== 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; 30002df4: e594005c ldr r0, [r4, #92] <== NOT EXECUTED 30002df8: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 30002dfc: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 30002e00: eb0039c5 bl 3001151c <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 30002e04: e5943058 ldr r3, [r4, #88] <== 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; 30002e08: e1a02000 mov r2, r0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 30002e0c: e7d35000 ldrb r5, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; 30002e10: e584005c str r0, [r4, #92] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 30002e14: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 30002e18: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 30002e1c: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 30002e20: e0800003 add r0, r0, r3 <== NOT EXECUTED 30002e24: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 30002e28: eb0039bb bl 3001151c <__umodsi3> <== NOT EXECUTED 30002e2c: e59430bc ldr r3, [r4, #188] <== NOT EXECUTED 30002e30: e1500003 cmp r0, r3 <== NOT EXECUTED 30002e34: 2a00001e bcs 30002eb4 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 30002e38: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 30002e3c: e59f2178 ldr r2, [pc, #376] ; 30002fbc <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; tty->rawInBuf.Head = newHead; if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 30002e40: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002e44: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 30002e48: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002e4c: e0032002 and r2, r3, r2 <== NOT EXECUTED 30002e50: e152000b cmp r2, fp <== NOT EXECUTED 30002e54: 1a00000b bne 30002e88 <== NOT EXECUTED 30002e58: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 30002e5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002e60: 0a000002 beq 30002e70 <== NOT EXECUTED 30002e64: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002e68: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 30002e6c: 0a000005 beq 30002e88 <== 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, 30002e70: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002e74: e1a01009 mov r1, r9 <== NOT EXECUTED 30002e78: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30002e7c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002e80: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 30002e84: ea00000a b 30002eb4 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 30002e88: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002e8c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30002e90: 0a000007 beq 30002eb4 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 30002e94: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 30002e98: 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; 30002e9c: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 30002ea0: 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; 30002ea4: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { tty->device.startRemoteTx(tty->minor); 30002ea8: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 30002eac: 11a0e00f movne lr, pc <== NOT EXECUTED 30002eb0: 112fff12 bxne r2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 30002eb4: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 30002eb8: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 30002ebc: 0a000005 beq 30002ed8 <== NOT EXECUTED if (siproc (c, tty)) 30002ec0: e1a00005 mov r0, r5 <== NOT EXECUTED 30002ec4: e1a01004 mov r1, r4 <== NOT EXECUTED 30002ec8: ebfffef1 bl 30002a94 <== NOT EXECUTED 30002ecc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30002ed0: 1a000007 bne 30002ef4 <== NOT EXECUTED 30002ed4: ea000007 b 30002ef8 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); 30002ed8: e1a00005 mov r0, r5 <== NOT EXECUTED 30002edc: e1a01004 mov r1, r4 <== NOT EXECUTED 30002ee0: ebfffeeb bl 30002a94 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30002ee4: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 30002ee8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002eec: e1530002 cmp r3, r2 <== NOT EXECUTED 30002ef0: ba000000 blt 30002ef8 <== NOT EXECUTED 30002ef4: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 30002ef8: e5941070 ldr r1, [r4, #112] <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30002efc: e594205c ldr r2, [r4, #92] <== NOT EXECUTED 30002f00: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 30002f04: e1520003 cmp r2, r3 <== NOT EXECUTED 30002f08: 0a000005 beq 30002f24 <== NOT EXECUTED 30002f0c: e59f20ac ldr r2, [pc, #172] ; 30002fc0 <== NOT EXECUTED 30002f10: e5923000 ldr r3, [r2] <== NOT EXECUTED 30002f14: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30002f18: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002f1c: e1520003 cmp r2, r3 <== NOT EXECUTED 30002f20: baffffb3 blt 30002df4 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 30002f24: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30002f28: e1a05001 mov r5, r1 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 30002f2c: 0a000007 beq 30002f50 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 30002f30: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED 30002f34: e594106c ldr r1, [r4, #108] <== NOT EXECUTED 30002f38: e1a02005 mov r2, r5 <== NOT EXECUTED 30002f3c: eb0004db bl 300042b0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 30002f40: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30002f44: 1a000001 bne 30002f50 <== NOT EXECUTED { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; rtems_status_code sc; int wait = (int)1; while ( wait ) { 30002f48: e1a01005 mov r1, r5 <== NOT EXECUTED 30002f4c: eaffffea b 30002efc <== NOT EXECUTED 30002f50: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30002f54: ea000006 b 30002f74 <== 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++]; 30002f58: e594301c ldr r3, [r4, #28] <== NOT EXECUTED count--; 30002f5c: e2488001 sub r8, r8, #1 ; 0x1 <== 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++]; 30002f60: e7d33002 ldrb r3, [r3, r2] <== NOT EXECUTED 30002f64: e59d2000 ldr r2, [sp] <== NOT EXECUTED 30002f68: e7c23001 strb r3, [r2, r1] <== NOT EXECUTED 30002f6c: e5840024 str r0, [r4, #36] <== NOT EXECUTED count--; 30002f70: 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)) { 30002f74: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 30002f78: 0a000004 beq 30002f90 <== NOT EXECUTED 30002f7c: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 30002f80: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30002f84: 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)) { 30002f88: e1520003 cmp r2, r3 <== NOT EXECUTED 30002f8c: bafffff1 blt 30002f58 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 30002f90: e597300c ldr r3, [r7, #12] <== NOT EXECUTED 30002f94: e0683003 rsb r3, r8, r3 <== NOT EXECUTED 30002f98: e5873014 str r3, [r7, #20] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 30002f9c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30002fa0: e58430e4 str r3, [r4, #228] <== NOT EXECUTED rtems_semaphore_release (tty->isem); 30002fa4: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 30002fa8: eb000506 bl 300043c8 <== NOT EXECUTED return sc; } 30002fac: e1a0000a mov r0, sl <== NOT EXECUTED 30002fb0: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 30002fb4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30002fb8: 30015114 .word 0x30015114 30002fbc: 00000202 .word 0x00000202 30002fc0: 30014b8c .word 0x30014b8c 30001f2c : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 30001f2c: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 30001f30: e59f21d8 ldr r2, [pc, #472] ; 30002110 <== 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) { 30001f34: e92d4070 push {r4, r5, r6, lr} <== 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)) 30001f38: e0032002 and r2, r3, r2 <== NOT EXECUTED 30001f3c: e59f31d0 ldr r3, [pc, #464] ; 30002114 <== 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) { 30001f40: 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)) 30001f44: e1520003 cmp r2, r3 <== NOT EXECUTED 30001f48: 1a00000f bne 30001f8c <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 30001f4c: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED 30001f50: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30001f54: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30001f58: e1a0e00f mov lr, pc <== NOT EXECUTED 30001f5c: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 30001f60: e10f1000 mrs r1, CPSR <== NOT EXECUTED 30001f64: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30001f68: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 30001f6c: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 30001f70: 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--; 30001f74: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 30001f78: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 30001f7c: 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--; 30001f80: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); 30001f84: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30001f88: ea000012 b 30001fd8 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 30001f8c: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 30001f90: e2033003 and r3, r3, #3 ; 0x3 <== NOT EXECUTED 30001f94: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 30001f98: 1a000010 bne 30001fe0 <== 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, 30001f9c: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED 30001fa0: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30001fa4: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30001fa8: e1a0e00f mov lr, pc <== NOT EXECUTED 30001fac: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 30001fb0: e10f1000 mrs r1, CPSR <== NOT EXECUTED 30001fb4: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30001fb8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 30001fbc: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 30001fc0: 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--; 30001fc4: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 30001fc8: e3c33002 bic r3, r3, #2 ; 0x2 <== NOT EXECUTED 30001fcc: 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--; 30001fd0: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; rtems_interrupt_enable(level); 30001fd4: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30001fd8: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED 30001fdc: ea000049 b 30002108 <== NOT EXECUTED nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 30001fe0: e5902080 ldr r2, [r0, #128] <== NOT EXECUTED 30001fe4: e5903084 ldr r3, [r0, #132] <== NOT EXECUTED 30001fe8: e1520003 cmp r2, r3 <== NOT EXECUTED 30001fec: 1a000006 bne 3000200c <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 30001ff0: e5903094 ldr r3, [r0, #148] <== NOT EXECUTED 30001ff4: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 30001ff8: 1a000001 bne 30002004 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 30001ffc: e590008c ldr r0, [r0, #140] <== NOT EXECUTED 30002000: eb0008f0 bl 300043c8 <== NOT EXECUTED 30002004: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 30002008: ea00003e b 30002108 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); 3000200c: e10f2000 mrs r2, CPSR <== NOT EXECUTED 30002010: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 30002014: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; 30002018: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; 3000201c: e590c090 ldr ip, [r0, #144] <== NOT EXECUTED tty->t_dqlen = 0; 30002020: e5803090 str r3, [r0, #144] <== NOT EXECUTED rtems_interrupt_enable(level); 30002024: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 30002028: e5900084 ldr r0, [r0, #132] <== NOT EXECUTED 3000202c: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 30002030: e08c0000 add r0, ip, r0 <== NOT EXECUTED 30002034: eb003d38 bl 3001151c <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 30002038: e5943094 ldr r3, [r4, #148] <== 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; 3000203c: e1a06000 mov r6, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 30002040: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 30002044: e5840084 str r0, [r4, #132] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 30002048: 0594008c ldreq r0, [r4, #140] <== NOT EXECUTED 3000204c: 0b0008dd bleq 300043c8 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 30002050: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 30002054: e1560003 cmp r6, r3 <== NOT EXECUTED 30002058: 1a00000a bne 30002088 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 3000205c: e59420d4 ldr r2, [r4, #212] <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 30002060: 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) { 30002064: e1520005 cmp r2, r5 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 30002068: 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) { 3000206c: 01a05002 moveq r5, r2 <== NOT EXECUTED 30002070: 0a000023 beq 30002104 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 30002074: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 30002078: e59410d8 ldr r1, [r4, #216] <== NOT EXECUTED 3000207c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002080: e12fff12 bx r2 <== NOT EXECUTED 30002084: ea00001e b 30002104 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 30002088: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 3000208c: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED 30002090: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED 30002094: 1a00000a bne 300020c4 <== 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); 30002098: e10f3000 mrs r3, CPSR <== NOT EXECUTED 3000209c: e38320c0 orr r2, r3, #192 ; 0xc0 <== NOT EXECUTED 300020a0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 300020a4: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED 300020a8: e3822020 orr r2, r2, #32 ; 0x20 <== NOT EXECUTED 300020ac: e58420b8 str r2, [r4, #184] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 300020b0: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 300020b4: e5842094 str r2, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable(level); 300020b8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 300020bc: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 300020c0: ea00000f b 30002104 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 300020c4: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 300020c8: e594107c ldr r1, [r4, #124] <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 300020cc: e1560003 cmp r6, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 300020d0: 85943088 ldrhi r3, [r4, #136] <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 300020d4: 95943080 ldrls r3, [r4, #128] <== NOT EXECUTED /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 300020d8: e0811006 add r1, r1, r6 <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 300020dc: 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)) { 300020e0: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 300020e4: e5940010 ldr r0, [r4, #16] <== 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)) { 300020e8: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED 300020ec: 13a05001 movne r5, #1 ; 0x1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 300020f0: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300020f4: e5843094 str r3, [r4, #148] <== NOT EXECUTED (*tty->device.write)(tty->minor, 300020f8: e1a02005 mov r2, r5 <== NOT EXECUTED 300020fc: e1a0e00f mov lr, pc <== NOT EXECUTED 30002100: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 30002104: e5846084 str r6, [r4, #132] <== NOT EXECUTED } return nToSend; } 30002108: e1a00005 mov r0, r5 <== NOT EXECUTED 3000210c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30002110: 00000403 .word 0x00000403 30002114: 00000401 .word 0x00000401 300039c0 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 300039c0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 300039c4: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 300039c8: e1a04000 mov r4, r0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 300039cc: 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 ( 300039d0: e28d6007 add r6, sp, #7 ; 0x7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 300039d4: e1a0300d mov r3, sp <== NOT EXECUTED 300039d8: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 300039dc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300039e0: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 300039e4: eb0000a7 bl 30003c88 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 300039e8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 300039ec: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 300039f0: 0a000003 beq 30003a04 <== NOT EXECUTED tty->rxTaskId = 0; 300039f4: e58450c4 str r5, [r4, #196] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 300039f8: e1a00005 mov r0, r5 <== NOT EXECUTED 300039fc: eb0002e9 bl 300045a8 <== NOT EXECUTED 30003a00: eafffff3 b 300039d4 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 30003a04: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30003a08: e1a0e00f mov lr, pc <== NOT EXECUTED 30003a0c: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED 30003a10: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { 30003a14: e3730001 cmn r3, #1 ; 0x1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 30003a18: e1a01006 mov r1, r6 <== NOT EXECUTED 30003a1c: e1a00004 mov r0, r4 <== NOT EXECUTED 30003a20: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { 30003a24: 0affffea beq 300039d4 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 30003a28: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 30003a2c: ebfff9d5 bl 30002188 <== NOT EXECUTED 30003a30: eaffffe7 b 300039d4 <== NOT EXECUTED 30001f20 : 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); 30001f20: e59000c4 ldr r0, [r0, #196] <== NOT EXECUTED 30001f24: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 30001f28: ea0007b6 b 30003e08 <== NOT EXECUTED 30003950 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 30003950: 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) { 30003954: e59f7060 ldr r7, [pc, #96] ; 300039bc <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 30003958: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 3000395c: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 30003960: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 30003964: e1a0300d mov r3, sp <== NOT EXECUTED 30003968: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 3000396c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30003970: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 30003974: eb0000c3 bl 30003c88 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 30003978: e59d3000 ldr r3, [sp] <== 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); 3000397c: 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) { 30003980: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 30003984: 0a000003 beq 30003998 <== NOT EXECUTED tty->txTaskId = 0; 30003988: e58450c8 str r5, [r4, #200] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 3000398c: e1a00005 mov r0, r5 <== NOT EXECUTED 30003990: eb000304 bl 300045a8 <== NOT EXECUTED 30003994: eafffff2 b 30003964 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 30003998: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 3000399c: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED 300039a0: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 300039a4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 300039a8: 11a0e00f movne lr, pc <== NOT EXECUTED 300039ac: 112fff13 bxne r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 300039b0: e1a00004 mov r0, r4 <== NOT EXECUTED 300039b4: ebfff95c bl 30001f2c <== NOT EXECUTED 300039b8: eaffffe9 b 30003964 <== NOT EXECUTED 300039bc: 30015114 .word 0x30015114 30002af4 : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002af4: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002af8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002afc: e5937028 ldr r7, [r3, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002b00: e3a01000 mov r1, #0 ; 0x0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002b04: 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); 30002b08: e1a02001 mov r2, r1 30002b0c: e5970018 ldr r0, [r7, #24] 30002b10: eb0005e6 bl 300042b0 if (sc != RTEMS_SUCCESSFUL) 30002b14: e2508000 subs r8, r0, #0 ; 0x0 30002b18: 1a000022 bne 30002ba8 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 30002b1c: e59720cc ldr r2, [r7, #204] 30002b20: e59f3088 ldr r3, [pc, #136] ; 30002bb0 30002b24: e0833282 add r3, r3, r2, lsl #5 30002b28: e593300c ldr r3, [r3, #12] 30002b2c: e3530000 cmp r3, #0 ; 0x0 30002b30: 0a000005 beq 30002b4c sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 30002b34: e1a01004 mov r1, r4 <== NOT EXECUTED 30002b38: e1a00007 mov r0, r7 <== NOT EXECUTED 30002b3c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002b40: e12fff13 bx r3 <== NOT EXECUTED 30002b44: e1a08000 mov r8, r0 <== NOT EXECUTED 30002b48: ea000014 b 30002ba0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 30002b4c: e5973034 ldr r3, [r7, #52] 30002b50: e3130001 tst r3, #1 ; 0x1 uint32_t count = args->count; 30002b54: 1594600c ldrne r6, [r4, #12] char *buffer = args->buffer; 30002b58: 1594a008 ldrne sl, [r4, #8] 30002b5c: 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) { 30002b60: 1a000003 bne 30002b74 30002b64: ea000007 b 30002b88 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; while (count--) oproc (*buffer++, tty); 30002b68: e7da0005 ldrb r0, [sl, r5] 30002b6c: ebfffe7c bl 30002564 30002b70: 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--) 30002b74: e3560000 cmp r6, #0 ; 0x0 oproc (*buffer++, tty); 30002b78: e1a01007 mov r1, r7 30002b7c: 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--) 30002b80: 1afffff8 bne 30002b68 30002b84: ea000003 b 30002b98 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 30002b88: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 30002b8c: e594100c ldr r1, [r4, #12] <== NOT EXECUTED 30002b90: e1a02007 mov r2, r7 <== NOT EXECUTED 30002b94: ebfffe2e bl 30002454 <== NOT EXECUTED args->bytes_moved = args->count; 30002b98: e594300c ldr r3, [r4, #12] 30002b9c: e5843014 str r3, [r4, #20] } rtems_semaphore_release (tty->osem); 30002ba0: e5970018 ldr r0, [r7, #24] 30002ba4: eb000607 bl 300043c8 return sc; } 30002ba8: e1a00008 mov r0, r8 30002bac: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30002bb0: 30015114 .word 0x30015114 300109f4 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 300109f4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 300109f8: e251a000 subs sl, r1, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 300109fc: e1a07000 mov r7, r0 30010a00: e24dd004 sub sp, sp, #4 ; 0x4 30010a04: e1a06002 mov r6, r2 30010a08: e1a08003 mov r8, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 30010a0c: 03a0000a moveq r0, #10 ; 0xa 30010a10: 0a000022 beq 30010aa0 return RTEMS_INVALID_NUMBER; if ( !routine ) 30010a14: e3520000 cmp r2, #0 ; 0x0 30010a18: 03a00009 moveq r0, #9 ; 0x9 30010a1c: 0a00001f beq 30010aa0 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 30010a20: e59f0080 ldr r0, [pc, #128] ; 30010aa8 30010a24: e1a01007 mov r1, r7 30010a28: e1a0200d mov r2, sp 30010a2c: eb000a5d bl 300133a8 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 30010a30: e59d3000 ldr r3, [sp] 30010a34: e1a04000 mov r4, r0 30010a38: e3530000 cmp r3, #0 ; 0x0 30010a3c: 13a00004 movne r0, #4 ; 0x4 30010a40: 1a000016 bne 30010aa0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 30010a44: e2845010 add r5, r4, #16 ; 0x10 30010a48: e1a00005 mov r0, r5 30010a4c: eb001249 bl 30015378 <_Watchdog_Remove> _ISR_Disable( level ); 30010a50: e10f2000 mrs r2, CPSR 30010a54: e38230c0 orr r3, r2, #192 ; 0xc0 30010a58: 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 ) { 30010a5c: e5943018 ldr r3, [r4, #24] 30010a60: e3530000 cmp r3, #0 ; 0x0 30010a64: 0a000001 beq 30010a70 _ISR_Enable( level ); 30010a68: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED 30010a6c: ea000009 b 30010a98 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 30010a70: e5843018 str r3, [r4, #24] the_watchdog->routine = routine; 30010a74: e584602c str r6, [r4, #44] the_watchdog->id = id; 30010a78: e5847030 str r7, [r4, #48] the_watchdog->user_data = user_data; 30010a7c: 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; 30010a80: e5843038 str r3, [r4, #56] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 30010a84: e129f002 msr CPSR_fc, r2 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30010a88: e59f001c ldr r0, [pc, #28] ; 30010aac Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 30010a8c: e584a01c str sl, [r4, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30010a90: e1a01005 mov r1, r5 30010a94: eb0011db bl 30015208 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 30010a98: eb000c68 bl 30013c40 <_Thread_Enable_dispatch> 30010a9c: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 30010aa0: e28dd004 add sp, sp, #4 ; 0x4 30010aa4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30010aa8: 3002f090 .word 0x3002f090 30010aac: 3002eec4 .word 0x3002eec4 30010c30 : */ rtems_status_code rtems_timer_reset( Objects_Id id ) { 30010c30: e92d4030 push {r4, r5, lr} 30010c34: e24dd004 sub sp, sp, #4 ; 0x4 30010c38: e1a01000 mov r1, r0 30010c3c: e1a0200d mov r2, sp 30010c40: e59f00a4 ldr r0, [pc, #164] ; 30010cec 30010c44: eb0009d7 bl 300133a8 <_Objects_Get> Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 30010c48: e59d3000 ldr r3, [sp] 30010c4c: e1a04000 mov r4, r0 30010c50: e3530000 cmp r3, #0 ; 0x0 30010c54: 13a00004 movne r0, #4 ; 0x4 30010c58: 1a000021 bne 30010ce4 case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 30010c5c: e5943038 ldr r3, [r4, #56] 30010c60: e3530004 cmp r3, #4 ; 0x4 30010c64: 979ff103 ldrls pc, [pc, r3, lsl #2] 30010c68: ea00001b b 30010cdc <== NOT EXECUTED 30010c6c: 30010c80 .word 0x30010c80 <== NOT EXECUTED 30010c70: 30010c9c .word 0x30010c9c <== NOT EXECUTED 30010c74: 30010cd0 .word 0x30010cd0 <== NOT EXECUTED 30010c78: 30010cd0 .word 0x30010cd0 <== NOT EXECUTED 30010c7c: 30010cd0 .word 0x30010cd0 <== NOT EXECUTED case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); 30010c80: e2844010 add r4, r4, #16 ; 0x10 30010c84: e1a00004 mov r0, r4 30010c88: eb0011ba bl 30015378 <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 30010c8c: e1a01004 mov r1, r4 30010c90: e59f0058 ldr r0, [pc, #88] ; 30010cf0 30010c94: eb00115b bl 30015208 <_Watchdog_Insert> 30010c98: ea00000f b 30010cdc break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { 30010c9c: e59f5050 ldr r5, [pc, #80] ; 30010cf4 30010ca0: e5953000 ldr r3, [r5] 30010ca4: e3530000 cmp r3, #0 ; 0x0 30010ca8: 1a000002 bne 30010cb8 _Thread_Enable_dispatch(); 30010cac: eb000be3 bl 30013c40 <_Thread_Enable_dispatch> <== NOT EXECUTED 30010cb0: e3a0000e mov r0, #14 ; 0xe <== NOT EXECUTED 30010cb4: ea00000a b 30010ce4 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; } _Watchdog_Remove( &the_timer->Ticker ); 30010cb8: e2840010 add r0, r4, #16 ; 0x10 30010cbc: eb0011ad bl 30015378 <_Watchdog_Remove> (*_Timer_Server_schedule_operation)( the_timer ); 30010cc0: e1a00004 mov r0, r4 30010cc4: e1a0e00f mov lr, pc 30010cc8: e595f000 ldr pc, [r5] 30010ccc: ea000002 b 30010cdc break; case TIMER_TIME_OF_DAY: case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); 30010cd0: eb000bda bl 30013c40 <_Thread_Enable_dispatch> 30010cd4: e3a0000b mov r0, #11 ; 0xb 30010cd8: ea000001 b 30010ce4 return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 30010cdc: eb000bd7 bl 30013c40 <_Thread_Enable_dispatch> 30010ce0: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 30010ce4: e28dd004 add sp, sp, #4 ; 0x4 30010ce8: e8bd8030 pop {r4, r5, pc} 30010cec: 3002f090 .word 0x3002f090 30010cf0: 3002eec4 .word 0x3002eec4 30010cf4: 3002f0d0 .word 0x3002f0d0 30010cf8 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30010cf8: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30010cfc: e1a06000 mov r6, r0 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 30010d00: e59f00c0 ldr r0, [pc, #192] ; 30010dc8 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30010d04: e24dd004 sub sp, sp, #4 ; 0x4 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 30010d08: e5900000 ldr r0, [r0] Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30010d0c: e1a07001 mov r7, r1 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 30010d10: e3500000 cmp r0, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30010d14: e1a05002 mov r5, r2 30010d18: e1a08003 mov r8, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 30010d1c: 0280000e addeq r0, r0, #14 ; 0xe 30010d20: 0a000026 beq 30010dc0 return RTEMS_INCORRECT_STATE; if ( !routine ) 30010d24: e3520000 cmp r2, #0 ; 0x0 30010d28: 03a00009 moveq r0, #9 ; 0x9 30010d2c: 0a000023 beq 30010dc0 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 30010d30: e3510000 cmp r1, #0 ; 0x0 30010d34: 03a0000a moveq r0, #10 ; 0xa 30010d38: 0a000020 beq 30010dc0 30010d3c: e59f0088 ldr r0, [pc, #136] ; 30010dcc 30010d40: e1a01006 mov r1, r6 30010d44: e1a0200d mov r2, sp 30010d48: eb000996 bl 300133a8 <_Objects_Get> return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 30010d4c: e59d3000 ldr r3, [sp] 30010d50: e1a04000 mov r4, r0 30010d54: e3530000 cmp r3, #0 ; 0x0 30010d58: 13a00004 movne r0, #4 ; 0x4 30010d5c: 1a000017 bne 30010dc0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 30010d60: e2840010 add r0, r4, #16 ; 0x10 30010d64: eb001183 bl 30015378 <_Watchdog_Remove> _ISR_Disable( level ); 30010d68: e10f1000 mrs r1, CPSR 30010d6c: e38130c0 orr r3, r1, #192 ; 0xc0 30010d70: 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 ) { 30010d74: e5942018 ldr r2, [r4, #24] 30010d78: e3520000 cmp r2, #0 ; 0x0 30010d7c: 0a000001 beq 30010d88 _ISR_Enable( level ); 30010d80: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30010d84: ea00000b b 30010db8 <== 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; 30010d88: e3a03001 mov r3, #1 ; 0x1 30010d8c: e5843038 str r3, [r4, #56] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 30010d90: e5842018 str r2, [r4, #24] the_watchdog->routine = routine; 30010d94: e584502c str r5, [r4, #44] the_watchdog->id = id; 30010d98: e5846030 str r6, [r4, #48] the_watchdog->user_data = user_data; 30010d9c: e5848034 str r8, [r4, #52] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 30010da0: e584701c str r7, [r4, #28] _ISR_Enable( level ); 30010da4: 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 ); 30010da8: e59f3020 ldr r3, [pc, #32] ; 30010dd0 30010dac: e1a00004 mov r0, r4 30010db0: e1a0e00f mov lr, pc 30010db4: e593f000 ldr pc, [r3] _Thread_Enable_dispatch(); 30010db8: eb000ba0 bl 30013c40 <_Thread_Enable_dispatch> 30010dbc: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 30010dc0: e28dd004 add sp, sp, #4 ; 0x4 30010dc4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30010dc8: 3002f0d4 .word 0x3002f0d4 30010dcc: 3002f090 .word 0x3002f090 30010dd0: 3002f0d0 .word 0x3002f0d0 30004ed8 : static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 30004ed8: 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) 30004edc: e2109202 ands r9, r0, #536870912 ; 0x20000000 <== NOT EXECUTED static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 30004ee0: e1a08000 mov r8, r0 <== NOT EXECUTED 30004ee4: e1a05001 mov r5, r1 <== NOT EXECUTED 30004ee8: e1a0a002 mov sl, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 30004eec: 0a00000d beq 30004f28 <== NOT EXECUTED { if (rtems_panic_in_progress++) 30004ef0: e59f2168 ldr r2, [pc, #360] ; 30005060 <== NOT EXECUTED 30004ef4: e5923000 ldr r3, [r2] <== NOT EXECUTED 30004ef8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30004efc: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30004f00: e5823000 str r3, [r2] <== NOT EXECUTED 30004f04: 0a000003 beq 30004f18 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 30004f08: e59f2154 ldr r2, [pc, #340] ; 30005064 <== NOT EXECUTED 30004f0c: e5923000 ldr r3, [r2] <== NOT EXECUTED 30004f10: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30004f14: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 30004f18: e59f3140 ldr r3, [pc, #320] ; 30005060 <== NOT EXECUTED 30004f1c: e5933000 ldr r3, [r3] <== NOT EXECUTED 30004f20: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 30004f24: ca00004b bgt 30005058 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 30004f28: e59f3138 ldr r3, [pc, #312] ; 30005068 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 30004f2c: e3c86207 bic r6, r8, #1879048192 ; 0x70000000 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 30004f30: e5933000 ldr r3, [r3] <== NOT EXECUTED 30004f34: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30004f38: eb003791 bl 30012d84 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 30004f3c: e2180101 ands r0, r8, #1073741824 ; 0x40000000 <== NOT EXECUTED 30004f40: 01a07000 moveq r7, r0 <== NOT EXECUTED 30004f44: 0a000001 beq 30004f50 <== NOT EXECUTED local_errno = errno; 30004f48: eb0036cd bl 30012a84 <__errno> <== NOT EXECUTED 30004f4c: 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); 30004f50: e59f4110 ldr r4, [pc, #272] ; 30005068 <== NOT EXECUTED 30004f54: e1a01005 mov r1, r5 <== NOT EXECUTED 30004f58: e5943000 ldr r3, [r4] <== NOT EXECUTED 30004f5c: e1a0200a mov r2, sl <== NOT EXECUTED 30004f60: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30004f64: eb005078 bl 3001914c <== NOT EXECUTED if (status) 30004f68: e3560000 cmp r6, #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); 30004f6c: e1a05000 mov r5, r0 <== NOT EXECUTED if (status) 30004f70: 0a000009 beq 30004f9c <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30004f74: e5943000 ldr r3, [r4] <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 30004f78: e1a01006 mov r1, r6 <== NOT EXECUTED 30004f7c: e59f00e8 ldr r0, [pc, #232] ; 3000506c <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30004f80: 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); 30004f84: eb002576 bl 3000e564 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30004f88: e59f10e0 ldr r1, [pc, #224] ; 30005070 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 30004f8c: 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)); 30004f90: e1a00004 mov r0, r4 <== NOT EXECUTED 30004f94: eb0038cd bl 300132d0 <== NOT EXECUTED 30004f98: e0855000 add r5, r5, r0 <== NOT EXECUTED if (local_errno) 30004f9c: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 30004fa0: 0a000015 beq 30004ffc <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 30004fa4: da00000d ble 30004fe0 <== NOT EXECUTED 30004fa8: e1a00007 mov r0, r7 <== NOT EXECUTED 30004fac: eb004451 bl 300160f8 <== NOT EXECUTED 30004fb0: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 30004fb4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30004fb8: 0a000008 beq 30004fe0 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 30004fbc: e59f30a4 ldr r3, [pc, #164] ; 30005068 <== NOT EXECUTED 30004fc0: e1a00007 mov r0, r7 <== NOT EXECUTED 30004fc4: e5933000 ldr r3, [r3] <== NOT EXECUTED 30004fc8: e593400c ldr r4, [r3, #12] <== NOT EXECUTED 30004fcc: eb004449 bl 300160f8 <== NOT EXECUTED 30004fd0: e59f109c ldr r1, [pc, #156] ; 30005074 <== NOT EXECUTED 30004fd4: e1a02000 mov r2, r0 <== NOT EXECUTED 30004fd8: e1a00004 mov r0, r4 <== NOT EXECUTED 30004fdc: ea000004 b 30004ff4 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 30004fe0: e59f3080 ldr r3, [pc, #128] ; 30005068 <== NOT EXECUTED 30004fe4: e59f108c ldr r1, [pc, #140] ; 30005078 <== NOT EXECUTED 30004fe8: e5933000 ldr r3, [r3] <== NOT EXECUTED 30004fec: e1a02007 mov r2, r7 <== NOT EXECUTED 30004ff0: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30004ff4: eb0038b5 bl 300132d0 <== NOT EXECUTED 30004ff8: e0855000 add r5, r5, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 30004ffc: e59f4064 ldr r4, [pc, #100] ; 30005068 <== NOT EXECUTED 30005000: e59f1074 ldr r1, [pc, #116] ; 3000507c <== NOT EXECUTED 30005004: e5943000 ldr r3, [r4] <== NOT EXECUTED 30005008: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 3000500c: eb0038af bl 300132d0 <== NOT EXECUTED (void) fflush(stderr); 30005010: 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"); 30005014: e1a06000 mov r6, r0 <== NOT EXECUTED (void) fflush(stderr); 30005018: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 3000501c: eb003758 bl 30012d84 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 30005020: 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"); 30005024: 00860005 addeq r0, r6, r5 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 30005028: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 3000502c: e3590000 cmp r9, #0 ; 0x0 <== NOT EXECUTED 30005030: 0a000004 beq 30005048 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 30005034: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30005038: e59f1040 ldr r1, [pc, #64] ; 30005080 <== NOT EXECUTED 3000503c: eb00001a bl 300050ac <== NOT EXECUTED _exit(local_errno); 30005040: e1a00007 mov r0, r7 <== NOT EXECUTED 30005044: eb0001e0 bl 300057cc <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 30005048: e59f1034 ldr r1, [pc, #52] ; 30005084 <== NOT EXECUTED 3000504c: e1a00009 mov r0, r9 <== NOT EXECUTED 30005050: eb000015 bl 300050ac <== NOT EXECUTED abort(); 30005054: eb003681 bl 30012a60 <== NOT EXECUTED 30005058: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } } return chars_written; } 3000505c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 30005060: 30022edc .word 0x30022edc 30005064: 3002306c .word 0x3002306c 30005068: 30022140 .word 0x30022140 3000506c: 3001daf0 .word 0x3001daf0 30005070: 3001f16a .word 0x3001f16a 30005074: 3001f178 .word 0x3001f178 30005078: 3001f185 .word 0x3001f185 3000507c: 3001f64a .word 0x3001f64a 30005080: 3001f199 .word 0x3001f199 30005084: 3001f1ae .word 0x3001f1ae 3001bcb4 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 3001bcb4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 3001bcb8: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 3001bcbc: e59fb0cc ldr fp, [pc, #204] ; 3001bd90 <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 3001bcc0: e1a06000 mov r6, r0 <== NOT EXECUTED 3001bcc4: e1a0a001 mov sl, r1 <== NOT EXECUTED 3001bcc8: e3e08102 mvn r8, #-2147483648 ; 0x80000000 <== NOT EXECUTED 3001bccc: e1a05007 mov r5, r7 <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 3001bcd0: e3a0900a mov r9, #10 ; 0xa <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 3001bcd4: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED 3001bcd8: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3001bcdc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001bce0: e5863004 str r3, [r6, #4] <== NOT EXECUTED 3001bce4: a5963000 ldrge r3, [r6] <== NOT EXECUTED 3001bce8: a4d34001 ldrbge r4, [r3], #1 <== NOT EXECUTED 3001bcec: a5863000 strge r3, [r6] <== NOT EXECUTED 3001bcf0: aa000004 bge 3001bd08 <== NOT EXECUTED 3001bcf4: e59f3098 ldr r3, [pc, #152] ; 3001bd94 <== NOT EXECUTED 3001bcf8: e1a01006 mov r1, r6 <== NOT EXECUTED 3001bcfc: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001bd00: eb00484a bl 3002de30 <__srget_r> <== NOT EXECUTED 3001bd04: e1a04000 mov r4, r0 <== NOT EXECUTED if (c == ':') 3001bd08: e354003a cmp r4, #58 ; 0x3a <== NOT EXECUTED 3001bd0c: 0a000018 beq 3001bd74 <== NOT EXECUTED break; if (sign == 0) { 3001bd10: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 3001bd14: 1a000004 bne 3001bd2c <== NOT EXECUTED if (c == '-') { 3001bd18: e354002d cmp r4, #45 ; 0x2d <== NOT EXECUTED sign = -1; limit++; 3001bd1c: 02888001 addeq r8, r8, #1 ; 0x1 <== NOT EXECUTED 3001bd20: 03e05000 mvneq r5, #0 ; 0x0 <== NOT EXECUTED for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 3001bd24: 0affffea beq 3001bcd4 <== NOT EXECUTED sign = -1; limit++; continue; 3001bd28: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 3001bd2c: e59b3000 ldr r3, [fp] <== NOT EXECUTED 3001bd30: e7d33004 ldrb r3, [r3, r4] <== NOT EXECUTED 3001bd34: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 3001bd38: 0a000012 beq 3001bd88 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 3001bd3c: e1a00008 mov r0, r8 <== NOT EXECUTED 3001bd40: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 3001bd44: eb007655 bl 300396a0 <__aeabi_uidiv> <== NOT EXECUTED 3001bd48: e1570000 cmp r7, r0 <== NOT EXECUTED 3001bd4c: 8a00000d bhi 3001bd88 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 3001bd50: e2444030 sub r4, r4, #48 ; 0x30 <== NOT EXECUTED if ((i > (limit / 10)) 3001bd54: 1a000004 bne 3001bd6c <== NOT EXECUTED 3001bd58: e1a00008 mov r0, r8 <== NOT EXECUTED 3001bd5c: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 3001bd60: eb0076e2 bl 300398f0 <__umodsi3> <== NOT EXECUTED 3001bd64: e1540000 cmp r4, r0 <== NOT EXECUTED 3001bd68: 8a000006 bhi 3001bd88 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 3001bd6c: e0274799 mla r7, r9, r7, r4 <== NOT EXECUTED 3001bd70: eaffffd7 b 3001bcd4 <== NOT EXECUTED } if (sign == 0) 3001bd74: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED return 0; *val = i * sign; 3001bd78: 10030597 mulne r3, r7, r5 <== NOT EXECUTED 3001bd7c: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 3001bd80: 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) 3001bd84: 18bd8ff0 popne {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED return 0; *val = i * sign; return 1; 3001bd88: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001bd8c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 3001bd90: 30041ab0 .word 0x30041ab0 3001bd94: 30041abc .word 0x30041abc 3001bd98 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 3001bd98: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 3001bd9c: e1a04002 mov r4, r2 <== NOT EXECUTED int c; *name = *bufp; 3001bda0: 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) { 3001bda4: e59d7018 ldr r7, [sp, #24] <== NOT EXECUTED int c; *name = *bufp; for (;;) { c = getc(fp); 3001bda8: e59f80c4 ldr r8, [pc, #196] ; 3001be74 <== NOT EXECUTED static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 3001bdac: e5812000 str r2, [r1] <== NOT EXECUTED /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 3001bdb0: e1a05000 mov r5, r0 <== NOT EXECUTED 3001bdb4: e1a06003 mov r6, r3 <== NOT EXECUTED int c; *name = *bufp; for (;;) { c = getc(fp); 3001bdb8: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 3001bdbc: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3001bdc0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001bdc4: e5853004 str r3, [r5, #4] <== NOT EXECUTED 3001bdc8: a5953000 ldrge r3, [r5] <== NOT EXECUTED 3001bdcc: a4d30001 ldrbge r0, [r3], #1 <== NOT EXECUTED 3001bdd0: a5853000 strge r3, [r5] <== NOT EXECUTED 3001bdd4: b5980000 ldrlt r0, [r8] <== NOT EXECUTED 3001bdd8: b1a01005 movlt r1, r5 <== NOT EXECUTED 3001bddc: bb004813 bllt 3002de30 <__srget_r> <== NOT EXECUTED if (c == ':') { 3001bde0: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 3001bde4: 1a000002 bne 3001bdf4 <== NOT EXECUTED if (nlFlag) 3001bde8: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 3001bdec: 0a000013 beq 3001be40 <== NOT EXECUTED 3001bdf0: ea00001d b 3001be6c <== NOT EXECUTED return 0; break; } if (c == '\n') { 3001bdf4: e350000a cmp r0, #10 ; 0xa <== NOT EXECUTED 3001bdf8: 1a000002 bne 3001be08 <== NOT EXECUTED if (!nlFlag) 3001bdfc: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 3001be00: 1a00000e bne 3001be40 <== NOT EXECUTED 3001be04: ea000018 b 3001be6c <== NOT EXECUTED return 0; break; } if (c == EOF) 3001be08: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 3001be0c: 0a000016 beq 3001be6c <== NOT EXECUTED return 0; if (*nleft < 2) 3001be10: e5963000 ldr r3, [r6] <== NOT EXECUTED 3001be14: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3001be18: 9a000013 bls 3001be6c <== NOT EXECUTED return 0; **bufp = c; 3001be1c: e5943000 ldr r3, [r4] <== NOT EXECUTED 3001be20: e5c30000 strb r0, [r3] <== NOT EXECUTED ++(*bufp); 3001be24: e5943000 ldr r3, [r4] <== NOT EXECUTED --(*nleft); 3001be28: e5962000 ldr r2, [r6] <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 3001be2c: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 3001be30: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 3001be34: e5843000 str r3, [r4] <== NOT EXECUTED --(*nleft); 3001be38: e5862000 str r2, [r6] <== NOT EXECUTED 3001be3c: eaffffdd b 3001bdb8 <== NOT EXECUTED } **bufp = '\0'; 3001be40: e5942000 ldr r2, [r4] <== NOT EXECUTED 3001be44: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001be48: e5c23000 strb r3, [r2] <== NOT EXECUTED ++(*bufp); 3001be4c: e5943000 ldr r3, [r4] <== NOT EXECUTED --(*nleft); 3001be50: e5962000 ldr r2, [r6] <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 3001be54: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 3001be58: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 3001be5c: e5843000 str r3, [r4] <== NOT EXECUTED --(*nleft); 3001be60: e5862000 str r2, [r6] <== NOT EXECUTED 3001be64: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3001be68: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return 1; 3001be6c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001be70: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3001be74: 30041abc .word 0x30041abc 3001be78 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 3001be78: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 3001be7c: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3001be80: e28d6008 add r6, sp, #8 ; 0x8 <== NOT EXECUTED 3001be84: e28d7004 add r7, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 3001be88: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 3001be8c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3001be90: e3a08000 mov r8, #0 ; 0x0 <== NOT EXECUTED 3001be94: e1a02006 mov r2, r6 <== NOT EXECUTED 3001be98: e1a03007 mov r3, r7 <== NOT EXECUTED 3001be9c: e58d8000 str r8, [sp] <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 3001bea0: e1a04000 mov r4, r0 <== NOT EXECUTED 3001bea4: e1a05001 mov r5, r1 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3001bea8: ebffffba bl 3001bd98 <== NOT EXECUTED 3001beac: e1500008 cmp r0, r8 <== NOT EXECUTED 3001beb0: 0a00003d beq 3001bfac <== NOT EXECUTED 3001beb4: e1a00004 mov r0, r4 <== NOT EXECUTED 3001beb8: e2851004 add r1, r5, #4 ; 0x4 <== NOT EXECUTED 3001bebc: e1a02006 mov r2, r6 <== NOT EXECUTED 3001bec0: e1a03007 mov r3, r7 <== NOT EXECUTED 3001bec4: e58d8000 str r8, [sp] <== NOT EXECUTED 3001bec8: ebffffb2 bl 3001bd98 <== NOT EXECUTED 3001becc: e1500008 cmp r0, r8 <== NOT EXECUTED 3001bed0: 0a000035 beq 3001bfac <== NOT EXECUTED 3001bed4: e1a00004 mov r0, r4 <== NOT EXECUTED 3001bed8: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 3001bedc: ebffff74 bl 3001bcb4 <== NOT EXECUTED 3001bee0: e1500008 cmp r0, r8 <== NOT EXECUTED 3001bee4: 0a000030 beq 3001bfac <== NOT EXECUTED 3001bee8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001beec: e1a02006 mov r2, r6 <== NOT EXECUTED 3001bef0: e1a03007 mov r3, r7 <== NOT EXECUTED 3001bef4: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 3001bef8: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 3001befc: e58d4000 str r4, [sp] <== NOT EXECUTED 3001bf00: ebffffa4 bl 3001bd98 <== NOT EXECUTED 3001bf04: e1500008 cmp r0, r8 <== NOT EXECUTED 3001bf08: 0a000027 beq 3001bfac <== 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; 3001bf0c: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001bf10: 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; 3001bf14: e1c530b8 strh r3, [r5, #8] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001bf18: e59d000c ldr r0, [sp, #12] <== NOT EXECUTED 3001bf1c: e1a03004 mov r3, r4 <== NOT EXECUTED 3001bf20: ea000001 b 3001bf2c <== NOT EXECUTED if(*cp == ',') 3001bf24: e351002c cmp r1, #44 ; 0x2c <== NOT EXECUTED memcount++; 3001bf28: 02833001 addeq r3, r3, #1 ; 0x1 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001bf2c: e7d01002 ldrb r1, [r0, r2] <== NOT EXECUTED if(*cp == ',') memcount++; 3001bf30: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001bf34: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 3001bf38: 1afffff9 bne 3001bf24 <== NOT EXECUTED } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 3001bf3c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3001bf40: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 3001bf44: e2833013 add r3, r3, #19 ; 0x13 <== NOT EXECUTED 3001bf48: e1520003 cmp r2, r3 <== NOT EXECUTED 3001bf4c: 3a000016 bcc 3001bfac <== NOT EXECUTED return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 3001bf50: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; 3001bf54: e1a0e001 mov lr, r1 <== 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); 3001bf58: e283300f add r3, r3, #15 ; 0xf <== NOT EXECUTED 3001bf5c: e3c3300f bic r3, r3, #15 ; 0xf <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 3001bf60: e5830000 str r0, [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); 3001bf64: e585300c str r3, [r5, #12] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 3001bf68: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001bf6c: e3a0c001 mov ip, #1 ; 0x1 <== NOT EXECUTED 3001bf70: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 3001bf74: ea000005 b 3001bf90 <== NOT EXECUTED for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 3001bf78: e352002c cmp r2, #44 ; 0x2c <== NOT EXECUTED *cp = '\0'; 3001bf7c: 0541e001 strbeq lr, [r1, #-1] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 3001bf80: 0595300c ldreq r3, [r5, #12] <== NOT EXECUTED 3001bf84: 0783110c streq r1, [r3, ip, lsl #2] <== NOT EXECUTED 3001bf88: 028cc001 addeq ip, ip, #1 ; 0x1 <== NOT EXECUTED 3001bf8c: 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++) { 3001bf90: e5512001 ldrb r2, [r1, #-1] <== NOT EXECUTED 3001bf94: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001bf98: 1afffff6 bne 3001bf78 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 3001bf9c: e595300c ldr r3, [r5, #12] <== NOT EXECUTED 3001bfa0: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3001bfa4: e783210c str r2, [r3, ip, lsl #2] <== NOT EXECUTED 3001bfa8: ea000000 b 3001bfb0 <== NOT EXECUTED return 1; 3001bfac: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001bfb0: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001bfb4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3001bffc : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3001bffc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 3001c000: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3001c004: e28d7008 add r7, sp, #8 ; 0x8 <== NOT EXECUTED 3001c008: e28d8004 add r8, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3001c00c: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 3001c010: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3001c014: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 3001c018: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c01c: e1a03008 mov r3, r8 <== NOT EXECUTED 3001c020: e58d6000 str r6, [sp] <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3001c024: e1a04000 mov r4, r0 <== NOT EXECUTED 3001c028: e1a05001 mov r5, r1 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3001c02c: ebffff59 bl 3001bd98 <== NOT EXECUTED 3001c030: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c034: 0a000038 beq 3001c11c <== NOT EXECUTED 3001c038: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c03c: e2851004 add r1, r5, #4 ; 0x4 <== NOT EXECUTED 3001c040: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c044: e1a03008 mov r3, r8 <== NOT EXECUTED 3001c048: e58d6000 str r6, [sp] <== NOT EXECUTED 3001c04c: ebffff51 bl 3001bd98 <== NOT EXECUTED 3001c050: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c054: 0a000030 beq 3001c11c <== NOT EXECUTED 3001c058: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c05c: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 3001c060: ebffff13 bl 3001bcb4 <== NOT EXECUTED 3001c064: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c068: 0a00002b beq 3001c11c <== NOT EXECUTED 3001c06c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c070: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 3001c074: ebffff0e bl 3001bcb4 <== NOT EXECUTED 3001c078: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c07c: 0a000026 beq 3001c11c <== NOT EXECUTED 3001c080: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c084: e285100c add r1, r5, #12 ; 0xc <== NOT EXECUTED 3001c088: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c08c: e1a03008 mov r3, r8 <== NOT EXECUTED 3001c090: e58d6000 str r6, [sp] <== NOT EXECUTED 3001c094: ebffff3f bl 3001bd98 <== NOT EXECUTED 3001c098: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c09c: 0a00001e beq 3001c11c <== NOT EXECUTED 3001c0a0: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c0a4: e2851010 add r1, r5, #16 ; 0x10 <== NOT EXECUTED 3001c0a8: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c0ac: e1a03008 mov r3, r8 <== NOT EXECUTED 3001c0b0: e58d6000 str r6, [sp] <== NOT EXECUTED 3001c0b4: ebffff37 bl 3001bd98 <== NOT EXECUTED 3001c0b8: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c0bc: 0a000016 beq 3001c11c <== NOT EXECUTED 3001c0c0: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c0c4: e2851014 add r1, r5, #20 ; 0x14 <== NOT EXECUTED 3001c0c8: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c0cc: e1a03008 mov r3, r8 <== NOT EXECUTED 3001c0d0: e58d6000 str r6, [sp] <== NOT EXECUTED 3001c0d4: ebffff2f bl 3001bd98 <== NOT EXECUTED 3001c0d8: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c0dc: 0a00000e beq 3001c11c <== NOT EXECUTED 3001c0e0: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c0e4: e1a02007 mov r2, r7 <== NOT EXECUTED 3001c0e8: e1a03008 mov r3, r8 <== NOT EXECUTED 3001c0ec: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 3001c0f0: e2851018 add r1, r5, #24 ; 0x18 <== NOT EXECUTED 3001c0f4: e58d4000 str r4, [sp] <== NOT EXECUTED 3001c0f8: ebffff26 bl 3001bd98 <== NOT EXECUTED 3001c0fc: e1500006 cmp r0, r6 <== NOT EXECUTED 3001c100: 0a000005 beq 3001c11c <== 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; 3001c104: e1dd30bc ldrh r3, [sp, #12] <== NOT EXECUTED 3001c108: e1a00004 mov r0, r4 <== NOT EXECUTED 3001c10c: 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; 3001c110: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED 3001c114: e1c530b8 strh r3, [r5, #8] <== NOT EXECUTED 3001c118: ea000000 b 3001c120 <== NOT EXECUTED pwd->pw_gid = pwgid; return 1; 3001c11c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001c120: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001c124: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3001bc6c : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 3001bc6c: e59f300c ldr r3, [pc, #12] ; 3001bc80 <== NOT EXECUTED 3001bc70: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001bc74: e1c302bc strh r0, [r3, #44] <== NOT EXECUTED return 0; } 3001bc78: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001bc7c: e12fff1e bx lr <== NOT EXECUTED 3001bc80: 30040bf4 .word 0x30040bf4 3001c234 : return NULL; return &grent; } void setgrent(void) { 3001c234: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 3001c238: ebffffcb bl 3001c16c <== NOT EXECUTED if (group_fp != NULL) 3001c23c: e59f3020 ldr r3, [pc, #32] ; 3001c264 <== NOT EXECUTED 3001c240: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001c244: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(group_fp); 3001c248: 1b0034e3 blne 300295dc <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 3001c24c: e59f0014 ldr r0, [pc, #20] ; 3001c268 <== NOT EXECUTED 3001c250: e59f1014 ldr r1, [pc, #20] ; 3001c26c <== NOT EXECUTED 3001c254: eb0036d3 bl 30029da8 <== NOT EXECUTED 3001c258: e59f3004 ldr r3, [pc, #4] ; 3001c264 <== NOT EXECUTED 3001c25c: e5830000 str r0, [r3] <== NOT EXECUTED } 3001c260: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001c264: 30054914 .word 0x30054914 3001c268: 3003e0c7 .word 0x3003e0c7 3001c26c: 3003c860 .word 0x3003c860 3001c42c : return NULL; return &pwent; } void setpwent(void) { 3001c42c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 3001c430: ebffff4d bl 3001c16c <== NOT EXECUTED if (passwd_fp != NULL) 3001c434: e59f3020 ldr r3, [pc, #32] ; 3001c45c <== NOT EXECUTED 3001c438: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001c43c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(passwd_fp); 3001c440: 1b003465 blne 300295dc <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 3001c444: e59f0014 ldr r0, [pc, #20] ; 3001c460 <== NOT EXECUTED 3001c448: e59f1014 ldr r1, [pc, #20] ; 3001c464 <== NOT EXECUTED 3001c44c: eb003655 bl 30029da8 <== NOT EXECUTED 3001c450: e59f3004 ldr r3, [pc, #4] ; 3001c45c <== NOT EXECUTED 3001c454: e5830000 str r0, [r3] <== NOT EXECUTED } 3001c458: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001c45c: 3005482c .word 0x3005482c 3001c460: 3003e054 .word 0x3003e054 3001c464: 3003c860 .word 0x3003c860 30003e5c : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 30003e5c: e59f300c ldr r3, [pc, #12] ; 30003e70 <== NOT EXECUTED 30003e60: e5933000 ldr r3, [r3] <== NOT EXECUTED 30003e64: e1c302ba strh r0, [r3, #42] <== NOT EXECUTED return 0; } 30003e68: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30003e6c: e12fff1e bx lr <== NOT EXECUTED 30003e70: 30040bf4 .word 0x30040bf4 30002a94 : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 30002a94: e591303c ldr r3, [r1, #60] <== NOT EXECUTED 30002a98: e59f2050 ldr r2, [pc, #80] ; 30002af0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002a9c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 30002aa0: e0032002 and r2, r3, r2 <== NOT EXECUTED 30002aa4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002aa8: e1a05001 mov r5, r1 <== NOT EXECUTED 30002aac: 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)) { 30002ab0: 0a00000b beq 30002ae4 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002ab4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30002ab8: e1a02001 mov r2, r1 <== NOT EXECUTED 30002abc: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30002ac0: eb0005fa bl 300042b0 <== NOT EXECUTED i = iproc (c, tty); 30002ac4: e1a01005 mov r1, r5 <== NOT EXECUTED 30002ac8: e1a00004 mov r0, r4 <== NOT EXECUTED 30002acc: ebffff8b bl 30002900 <== NOT EXECUTED 30002ad0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 30002ad4: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30002ad8: eb00063a bl 300043c8 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 30002adc: e1a00004 mov r0, r4 <== NOT EXECUTED 30002ae0: 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); 30002ae4: e1a00004 mov r0, r4 <== NOT EXECUTED } return i; } 30002ae8: 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); 30002aec: eaffff83 b 30002900 <== NOT EXECUTED 30002af0: 00000e78 .word 0x00000e78 300051b4 : int _STAT_NAME( const char *path, struct stat *buf ) { 300051b4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 300051b8: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 300051bc: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 300051c0: 1a000002 bne 300051d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 300051c4: eb0090b3 bl 30029498 <__errno> <== NOT EXECUTED 300051c8: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 300051cc: ea000014 b 30005224 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 300051d0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300051d4: e1a0200d mov r2, sp <== NOT EXECUTED 300051d8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300051dc: ebfffa86 bl 30003bfc <== NOT EXECUTED if ( status != 0 ) 300051e0: 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 ); 300051e4: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 300051e8: 1a00000e bne 30005228 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 300051ec: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 300051f0: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 300051f4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300051f8: 1a00000c bne 30005230 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300051fc: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30005200: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30005204: 0a000004 beq 3000521c <== NOT EXECUTED 30005208: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000520c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30005210: 11a0000d movne r0, sp <== NOT EXECUTED 30005214: 11a0e00f movne lr, pc <== NOT EXECUTED 30005218: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000521c: eb00909d bl 30029498 <__errno> <== NOT EXECUTED 30005220: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30005224: e5803000 str r3, [r0] <== NOT EXECUTED 30005228: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3000522c: ea000011 b 30005278 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 30005230: e1a01000 mov r1, r0 <== NOT EXECUTED 30005234: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 30005238: e1a00004 mov r0, r4 <== NOT EXECUTED 3000523c: eb009a9d bl 3002bcb8 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 30005240: e1a01004 mov r1, r4 <== NOT EXECUTED 30005244: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 30005248: e1a0000d mov r0, sp <== NOT EXECUTED 3000524c: e1a0e00f mov lr, pc <== NOT EXECUTED 30005250: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30005254: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 30005258: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3000525c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30005260: 0a000004 beq 30005278 <== NOT EXECUTED 30005264: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30005268: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000526c: 11a0000d movne r0, sp <== NOT EXECUTED 30005270: 11a0e00f movne lr, pc <== NOT EXECUTED 30005274: 112fff13 bxne r3 <== NOT EXECUTED return status; } 30005278: e1a00004 mov r0, r4 <== NOT EXECUTED 3000527c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30005280: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3001d33c : int symlink( const char *actualpath, const char *sympath ) { 3001d33c: 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 ); 3001d340: e5d13000 ldrb r3, [r1] <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 3001d344: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 3001d348: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 3001d34c: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 3001d350: e1a04001 mov r4, r1 <== NOT EXECUTED 3001d354: 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 ); 3001d358: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 3001d35c: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 3001d360: 0a000001 beq 3001d36c <== NOT EXECUTED 3001d364: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d368: 1a000005 bne 3001d384 <== NOT EXECUTED 3001d36c: e59f30cc ldr r3, [pc, #204] ; 3001d440 <== NOT EXECUTED 3001d370: e1a0c00d mov ip, sp <== NOT EXECUTED 3001d374: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001d378: e3a0e001 mov lr, #1 ; 0x1 <== NOT EXECUTED 3001d37c: e2833014 add r3, r3, #20 ; 0x14 <== NOT EXECUTED 3001d380: ea000004 b 3001d398 <== NOT EXECUTED 3001d384: e59f30b4 ldr r3, [pc, #180] ; 3001d440 <== NOT EXECUTED 3001d388: e1a0c00d mov ip, sp <== NOT EXECUTED 3001d38c: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001d390: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001d394: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 3001d398: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED 3001d39c: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 3001d3a0: e084000e add r0, r4, lr <== NOT EXECUTED 3001d3a4: e1a0100d mov r1, sp <== NOT EXECUTED 3001d3a8: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 3001d3ac: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d3b0: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d3b4: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( result != 0 ) 3001d3b8: 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 ); 3001d3bc: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 3001d3c0: 1a00000b bne 3001d3f4 <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { 3001d3c4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d3c8: e593c038 ldr ip, [r3, #56] <== NOT EXECUTED 3001d3cc: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 3001d3d0: 1a000009 bne 3001d3fc <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d3d4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d3d8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d3dc: 11a0000d movne r0, sp <== NOT EXECUTED 3001d3e0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d3e4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001d3e8: eb00302a bl 30029498 <__errno> <== NOT EXECUTED 3001d3ec: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001d3f0: e5803000 str r3, [r0] <== NOT EXECUTED 3001d3f4: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001d3f8: ea00000d b 3001d434 <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 3001d3fc: e1a01006 mov r1, r6 <== NOT EXECUTED 3001d400: e1a0000d mov r0, sp <== NOT EXECUTED 3001d404: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED 3001d408: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d40c: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d410: e59d3008 ldr r3, [sp, #8] <== 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); 3001d414: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d418: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d41c: 0a000004 beq 3001d434 <== NOT EXECUTED 3001d420: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d424: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d428: 11a0000d movne r0, sp <== NOT EXECUTED 3001d42c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d430: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001d434: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d438: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001d43c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001d440: 30040bf4 .word 0x30040bf4 3001d444 : int tcdrain( int fd ) { return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); 3001d444: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 3001d448: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3001d44c: eafffc74 b 3001c624 <== NOT EXECUTED 3000ef80 : int tcgetattr( int fd, struct termios *tp ) { 3000ef80: e1a02001 mov r2, r1 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); 3000ef84: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3000ef88: ea000cb2 b 30012258 <== NOT EXECUTED 3000ef8c : int fd, int opt, struct termios *tp ) { switch (opt) { 3000ef8c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int tcsetattr( int fd, int opt, struct termios *tp ) { 3000ef90: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3000ef94: e1a05002 mov r5, r2 <== NOT EXECUTED 3000ef98: e1a04000 mov r4, r0 <== NOT EXECUTED switch (opt) { 3000ef9c: 0a00000a beq 3000efcc <== NOT EXECUTED 3000efa0: e3510001 cmp r1, #1 ; 0x1 <== NOT EXECUTED 3000efa4: 0a000003 beq 3000efb8 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000efa8: eb000eb5 bl 30012a84 <__errno> <== NOT EXECUTED 3000efac: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000efb0: e5803000 str r3, [r0] <== NOT EXECUTED 3000efb4: ea000009 b 3000efe0 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 3000efb8: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 3000efbc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3000efc0: eb000ca4 bl 30012258 <== NOT EXECUTED 3000efc4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3000efc8: ba000004 blt 3000efe0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 3000efcc: e1a00004 mov r0, r4 <== NOT EXECUTED 3000efd0: e1a02005 mov r2, r5 <== NOT EXECUTED 3000efd4: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED } } 3000efd8: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 3000efdc: ea000c9d b 30012258 <== NOT EXECUTED } } 3000efe0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3000efe4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3001d5b0 : */ char *ttyname( int fd ) { 3001d5b0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 3001d5b4: e59f1018 ldr r1, [pc, #24] ; 3001d5d4 <== NOT EXECUTED 3001d5b8: e59f2018 ldr r2, [pc, #24] ; 3001d5d8 <== NOT EXECUTED 3001d5bc: ebffffbd bl 3001d4b8 <== NOT EXECUTED 3001d5c0: e59f300c ldr r3, [pc, #12] ; 3001d5d4 <== NOT EXECUTED return ttyname_buf; return NULL; } 3001d5c4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d5c8: 01a00003 moveq r0, r3 <== NOT EXECUTED 3001d5cc: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3001d5d0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001d5d4: 30040bf8 .word 0x30040bf8 3001d5d8: 00000406 .word 0x00000406 3001d4b8 : int ttyname_r( int fd, char *name, size_t namesize ) { 3001d4b8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3001d4bc: e24dd0bc sub sp, sp, #188 ; 0xbc <== NOT EXECUTED 3001d4c0: e1a06001 mov r6, r1 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 3001d4c4: e28d1098 add r1, sp, #152 ; 0x98 <== NOT EXECUTED int ttyname_r( int fd, char *name, size_t namesize ) { 3001d4c8: e1a04000 mov r4, r0 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 3001d4cc: ebffffdf bl 3001d450 <== NOT EXECUTED 3001d4d0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d4d4: ba00000e blt 3001d514 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) 3001d4d8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d4dc: e28d104c add r1, sp, #76 ; 0x4c <== NOT EXECUTED 3001d4e0: ebfff843 bl 3001b5f4 <== NOT EXECUTED 3001d4e4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d4e8: 1a000009 bne 3001d514 <== NOT EXECUTED 3001d4ec: e59d3058 ldr r3, [sp, #88] <== NOT EXECUTED 3001d4f0: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 3001d4f4: e3530a02 cmp r3, #8192 ; 0x2000 <== NOT EXECUTED 3001d4f8: 1a000005 bne 3001d514 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) 3001d4fc: e59f00a8 ldr r0, [pc, #168] ; 3001d5ac <== NOT EXECUTED 3001d500: ebfffdd9 bl 3001cc6c <== NOT EXECUTED 3001d504: 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); 3001d508: 12865005 addne r5, r6, #5 ; 0x5 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 3001d50c: 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) 3001d510: 1a00001c bne 3001d588 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); 3001d514: eb002fdf bl 30029498 <__errno> <== NOT EXECUTED 3001d518: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001d51c: e5803000 str r3, [r0] <== NOT EXECUTED 3001d520: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001d524: ea00001e b 3001d5a4 <== NOT EXECUTED for (rval = NULL; (dirp = readdir (dp)) != NULL ;) { if (dirp->d_ino != sb.st_ino) 3001d528: e5902000 ldr r2, [r0] <== NOT EXECUTED 3001d52c: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 3001d530: e1520003 cmp r2, r3 <== NOT EXECUTED 3001d534: 1a000013 bne 3001d588 <== NOT EXECUTED continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 3001d538: e280100c add r1, r0, #12 ; 0xc <== NOT EXECUTED 3001d53c: e1a00005 mov r0, r5 <== NOT EXECUTED 3001d540: eb00447d bl 3002e73c <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 3001d544: e1a00006 mov r0, r6 <== NOT EXECUTED 3001d548: e1a0100d mov r1, sp <== NOT EXECUTED 3001d54c: ebff9f18 bl 300051b4 <== NOT EXECUTED 3001d550: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d554: 1a00000b bne 3001d588 <== NOT EXECUTED 3001d558: e59d2000 ldr r2, [sp] <== NOT EXECUTED 3001d55c: e59d304c ldr r3, [sp, #76] <== NOT EXECUTED 3001d560: e1530002 cmp r3, r2 <== NOT EXECUTED 3001d564: 1a000007 bne 3001d588 <== NOT EXECUTED 3001d568: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 3001d56c: e59d3050 ldr r3, [sp, #80] <== NOT EXECUTED 3001d570: e1530002 cmp r3, r2 <== NOT EXECUTED 3001d574: 1a000003 bne 3001d588 <== NOT EXECUTED 3001d578: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001d57c: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 3001d580: e1530002 cmp r3, r2 <== NOT EXECUTED 3001d584: 0a000003 beq 3001d598 <== 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 ;) 3001d588: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d58c: ebfffe6b bl 3001cf40 <== NOT EXECUTED 3001d590: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d594: 1affffe3 bne 3001d528 <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 3001d598: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d59c: eb002697 bl 30027000 <== NOT EXECUTED 3001d5a0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3001d5a4: e28dd0bc add sp, sp, #188 ; 0xbc <== NOT EXECUTED 3001d5a8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 3001d5ac: 3003e1a2 .word 0x3003e1a2 3001d5dc : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; 3001d5dc: e59f3010 ldr r3, [pc, #16] ; 3001d5f4 <== NOT EXECUTED 3001d5e0: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001d5e4: e5932024 ldr r2, [r3, #36] <== NOT EXECUTED rtems_filesystem_umask = cmask; 3001d5e8: e5830024 str r0, [r3, #36] <== NOT EXECUTED return old_mask; } 3001d5ec: e1a00002 mov r0, r2 <== NOT EXECUTED 3001d5f0: e12fff1e bx lr <== NOT EXECUTED 3001d5f4: 30040bf4 .word 0x30040bf4 3001d5f8 : #include int unlink( const char *path ) { 3001d5f8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 3001d5fc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int unlink( const char *path ) { 3001d600: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 3001d604: e1a0200d mov r2, sp <== NOT EXECUTED 3001d608: e1a03001 mov r3, r1 <== NOT EXECUTED 3001d60c: ebff997a bl 30003bfc <== NOT EXECUTED if ( result != 0 ) 3001d610: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d614: 1a000041 bne 3001d720 <== NOT EXECUTED return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 3001d618: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 3001d61c: e1a0100d mov r1, sp <== NOT EXECUTED 3001d620: ebff994e bl 30003b60 <== NOT EXECUTED if (result != 0 && errno != ENOTSUP) { 3001d624: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d628: 0a00000d beq 3001d664 <== NOT EXECUTED 3001d62c: eb002f99 bl 30029498 <__errno> <== NOT EXECUTED 3001d630: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001d634: e3530086 cmp r3, #134 ; 0x86 <== NOT EXECUTED 3001d638: 0a000009 beq 3001d664 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d63c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d640: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d644: 0a000035 beq 3001d720 <== NOT EXECUTED 3001d648: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d64c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d650: 0a000032 beq 3001d720 <== NOT EXECUTED 3001d654: e1a0000d mov r0, sp <== NOT EXECUTED 3001d658: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d65c: e12fff13 bx r3 <== NOT EXECUTED 3001d660: ea00002e b 3001d720 <== NOT EXECUTED return -1; } if ( !loc.ops->node_type_h ) { 3001d664: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d668: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED 3001d66c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001d670: 0a000013 beq 3001d6c4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 3001d674: e1a0000d mov r0, sp <== NOT EXECUTED 3001d678: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d67c: e12fff12 bx r2 <== NOT EXECUTED 3001d680: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3001d684: e1a0500d mov r5, sp <== NOT EXECUTED 3001d688: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d68c: 1a000009 bne 3001d6b8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d690: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d694: 0a000004 beq 3001d6ac <== NOT EXECUTED 3001d698: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d69c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d6a0: 11a0000d movne r0, sp <== NOT EXECUTED 3001d6a4: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d6a8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 3001d6ac: eb002f79 bl 30029498 <__errno> <== NOT EXECUTED 3001d6b0: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 3001d6b4: ea000009 b 3001d6e0 <== NOT EXECUTED } if ( !loc.ops->unlink_h ) { 3001d6b8: e593200c ldr r2, [r3, #12] <== NOT EXECUTED 3001d6bc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001d6c0: 1a000008 bne 3001d6e8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d6c4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d6c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d6cc: 11a0000d movne r0, sp <== NOT EXECUTED 3001d6d0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d6d4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001d6d8: eb002f6e bl 30029498 <__errno> <== NOT EXECUTED 3001d6dc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001d6e0: e5803000 str r3, [r0] <== NOT EXECUTED 3001d6e4: ea00000d b 3001d720 <== NOT EXECUTED } result = (*loc.ops->unlink_h)( &loc ); 3001d6e8: e1a0000d mov r0, sp <== NOT EXECUTED 3001d6ec: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d6f0: e12fff12 bx r2 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d6f4: e59d3008 ldr r3, [sp, #8] <== 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 ); 3001d6f8: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d6fc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d700: 0a000007 beq 3001d724 <== NOT EXECUTED 3001d704: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d708: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d70c: 0a000004 beq 3001d724 <== NOT EXECUTED 3001d710: e1a0000d mov r0, sp <== NOT EXECUTED 3001d714: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d718: e12fff13 bx r3 <== NOT EXECUTED 3001d71c: ea000000 b 3001d724 <== NOT EXECUTED 3001d720: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 3001d724: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d728: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d72c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3001d78c : */ int unmount( const char *path ) { 3001d78c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3001d790: 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 ) ) 3001d794: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001d798: e1a0200d mov r2, sp <== NOT EXECUTED 3001d79c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3001d7a0: ebff9915 bl 30003bfc <== NOT EXECUTED 3001d7a4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d7a8: e1a0500d mov r5, sp <== NOT EXECUTED 3001d7ac: 1a000057 bne 3001d910 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 3001d7b0: 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) ){ 3001d7b4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3001d7b8: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED 3001d7bc: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 3001d7c0: e1520003 cmp r2, r3 <== NOT EXECUTED 3001d7c4: 0a000009 beq 3001d7f0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d7c8: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 3001d7cc: 0a000004 beq 3001d7e4 <== NOT EXECUTED 3001d7d0: e591301c ldr r3, [r1, #28] <== NOT EXECUTED 3001d7d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d7d8: 11a0000d movne r0, sp <== NOT EXECUTED 3001d7dc: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d7e0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); 3001d7e4: eb002f2b bl 30029498 <__errno> <== NOT EXECUTED 3001d7e8: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 3001d7ec: ea000023 b 3001d880 <== NOT EXECUTED /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 3001d7f0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 3001d7f4: 0a000004 beq 3001d80c <== NOT EXECUTED 3001d7f8: e591301c ldr r3, [r1, #28] <== NOT EXECUTED 3001d7fc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d800: 11a0000d movne r0, sp <== NOT EXECUTED 3001d804: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d808: 112fff13 bxne r3 <== NOT EXECUTED /* * Verify Unmount is supported by both filesystems. */ if ( !fs_mount_loc->ops->unmount_h ) 3001d80c: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3001d810: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 3001d814: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d818: 0a000003 beq 3001d82c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) 3001d81c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3001d820: e593302c ldr r3, [r3, #44] <== NOT EXECUTED 3001d824: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d828: 1a000002 bne 3001d838 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001d82c: eb002f19 bl 30029498 <__errno> <== NOT EXECUTED 3001d830: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001d834: ea000011 b 3001d880 <== 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 ) 3001d838: e59f30f0 ldr r3, [pc, #240] ; 3001d930 <== NOT EXECUTED 3001d83c: e5933000 ldr r3, [r3] <== NOT EXECUTED 3001d840: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 3001d844: 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; 3001d848: 159f00e4 ldrne r0, [pc, #228] ; 3001d934 <== NOT EXECUTED 3001d84c: 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 ) 3001d850: 1a000005 bne 3001d86c <== NOT EXECUTED 3001d854: ea000007 b 3001d878 <== 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 ) { 3001d858: e5912014 ldr r2, [r1, #20] <== NOT EXECUTED 3001d85c: e5943024 ldr r3, [r4, #36] <== NOT EXECUTED 3001d860: e1520003 cmp r2, r3 <== NOT EXECUTED 3001d864: 0a000003 beq 3001d878 <== 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 ) { 3001d868: 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 ); 3001d86c: e1510000 cmp r1, r0 <== NOT EXECUTED 3001d870: 1afffff8 bne 3001d858 <== NOT EXECUTED 3001d874: ea000028 b 3001d91c <== 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 ); 3001d878: eb002f06 bl 30029498 <__errno> <== NOT EXECUTED 3001d87c: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 3001d880: e5803000 str r3, [r0] <== NOT EXECUTED 3001d884: ea000021 b 3001d910 <== 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 ) 3001d888: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3001d88c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d890: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d894: e593f028 ldr pc, [r3, #40] <== NOT EXECUTED 3001d898: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001d89c: 1a00001b bne 3001d910 <== 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){ 3001d8a0: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3001d8a4: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d8a8: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d8ac: e593f02c ldr pc, [r3, #44] <== NOT EXECUTED 3001d8b0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d8b4: 0a000007 beq 3001d8d8 <== NOT EXECUTED if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 3001d8b8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d8bc: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3001d8c0: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d8c4: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED 3001d8c8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d8cc: 0a00000f beq 3001d910 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 3001d8d0: e1a00005 mov r0, r5 <== NOT EXECUTED 3001d8d4: ebffa93f bl 30007dd8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 3001d8d8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d8dc: eb0003bc bl 3001e7d4 <_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 ); 3001d8e0: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3001d8e4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d8e8: 0a000004 beq 3001d900 <== NOT EXECUTED 3001d8ec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d8f0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d8f4: 12840008 addne r0, r4, #8 ; 0x8 <== NOT EXECUTED 3001d8f8: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d8fc: 112fff13 bxne r3 <== NOT EXECUTED free( mt_entry ); 3001d900: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d904: ebff990b bl 30003d38 <== NOT EXECUTED 3001d908: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001d90c: ea000000 b 3001d914 <== NOT EXECUTED return 0; 3001d910: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED } 3001d914: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d918: 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 ) 3001d91c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d920: ebff99b2 bl 30003ff0 <== NOT EXECUTED 3001d924: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3001d928: 1affffd6 bne 3001d888 <== NOT EXECUTED 3001d92c: eaffffd1 b 3001d878 <== NOT EXECUTED 3001d930: 30040bf4 .word 0x30040bf4 3001d934: 300551b0 .word 0x300551b0 3001d938 : int utime( const char *path, const struct utimbuf *times ) { 3001d938: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3001d93c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d940: 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 ) ) 3001d944: e1a0200d mov r2, sp <== NOT EXECUTED 3001d948: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001d94c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3001d950: ebff98a9 bl 30003bfc <== NOT EXECUTED 3001d954: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d958: e1a0500d mov r5, sp <== NOT EXECUTED 3001d95c: 1a00000b bne 3001d990 <== NOT EXECUTED return -1; if ( !temp_loc.ops->utime_h ){ 3001d960: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d964: e593c030 ldr ip, [r3, #48] <== NOT EXECUTED 3001d968: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 3001d96c: 1a000009 bne 3001d998 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 3001d970: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d974: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d978: 11a0000d movne r0, sp <== NOT EXECUTED 3001d97c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d980: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001d984: eb002ec3 bl 30029498 <__errno> <== NOT EXECUTED 3001d988: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001d98c: e5803000 str r3, [r0] <== NOT EXECUTED 3001d990: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001d994: ea00000c b 3001d9cc <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 3001d998: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED 3001d99c: e1a0000d mov r0, sp <== NOT EXECUTED 3001d9a0: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d9a4: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 3001d9a8: e59d3008 ldr r3, [sp, #8] <== 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 ); 3001d9ac: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 3001d9b0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d9b4: 0a000004 beq 3001d9cc <== NOT EXECUTED 3001d9b8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d9bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d9c0: 11a0000d movne r0, sp <== NOT EXECUTED 3001d9c4: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d9c8: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001d9cc: e1a00004 mov r0, r4 <== NOT EXECUTED 3001d9d0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d9d4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30001bb4 : */ void vprintk( const char *fmt, va_list ap ) { 30001bb4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30001bb8: e1a08000 mov r8, r0 30001bbc: e24dd018 sub sp, sp, #24 ; 0x18 30001bc0: 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); 30001bc4: e59fb2bc ldr fp, [pc, #700] ; 30001e88 30001bc8: ea0000a9 b 30001e74 base = 0; sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { 30001bcc: e3500025 cmp r0, #37 ; 0x25 30001bd0: 1a0000a4 bne 30001e68 fmt++; if (*fmt == '0' ) { 30001bd4: e5f83001 ldrb r3, [r8, #1]! lead = '0'; fmt++; } if (*fmt == '-' ) { minus = 1; fmt++; 30001bd8: e3a0a000 mov sl, #0 ; 0x0 width = 0; minus = 0; lead = ' '; if (*fmt == '%') { fmt++; if (*fmt == '0' ) { 30001bdc: e3530030 cmp r3, #48 ; 0x30 30001be0: 13a02020 movne r2, #32 ; 0x20 lead = '0'; fmt++; 30001be4: 02888001 addeq r8, r8, #1 ; 0x1 width = 0; minus = 0; lead = ' '; if (*fmt == '%') { fmt++; if (*fmt == '0' ) { 30001be8: 158d2000 strne r2, [sp] lead = '0'; fmt++; 30001bec: 058d3000 streq r3, [sp] } if (*fmt == '-' ) { 30001bf0: e5d83000 ldrb r3, [r8] 30001bf4: e353002d cmp r3, #45 ; 0x2d 30001bf8: 13a06000 movne r6, #0 ; 0x0 minus = 1; fmt++; 30001bfc: 02888001 addeq r8, r8, #1 ; 0x1 30001c00: 03a06001 moveq r6, #1 ; 0x1 30001c04: ea000002 b 30001c14 } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += (*fmt - '0'); 30001c08: e3a0300a mov r3, #10 ; 0xa 30001c0c: e02a2a93 mla sl, r3, sl, r2 fmt++; 30001c10: e2888001 add r8, r8, #1 ; 0x1 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 30001c14: e5d80000 ldrb r0, [r8] 30001c18: e2402030 sub r2, r0, #48 ; 0x30 30001c1c: e20230ff and r3, r2, #255 ; 0xff 30001c20: e3530009 cmp r3, #9 ; 0x9 30001c24: 9afffff7 bls 30001c08 width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 30001c28: e350006c cmp r0, #108 ; 0x6c lflag = 1; c = *++fmt; 30001c2c: 05f80001 ldrbeq r0, [r8, #1]! } switch (c) { 30001c30: e3500064 cmp r0, #100 ; 0x64 30001c34: 0a00001e beq 30001cb4 30001c38: 8a00000e bhi 30001c78 30001c3c: e350004f cmp r0, #79 ; 0x4f 30001c40: 0a00004f beq 30001d84 30001c44: 8a000004 bhi 30001c5c 30001c48: e3500044 cmp r0, #68 ; 0x44 30001c4c: 0a000018 beq 30001cb4 30001c50: e3500049 cmp r0, #73 ; 0x49 30001c54: 1a000083 bne 30001e68 30001c58: ea000015 b 30001cb4 <== NOT EXECUTED 30001c5c: e3500058 cmp r0, #88 ; 0x58 <== NOT EXECUTED 30001c60: 0a00004a beq 30001d90 <== NOT EXECUTED 30001c64: e3500063 cmp r0, #99 ; 0x63 <== NOT EXECUTED 30001c68: 0a00003f beq 30001d6c <== NOT EXECUTED 30001c6c: e3500055 cmp r0, #85 ; 0x55 <== NOT EXECUTED 30001c70: 1a00007c bne 30001e68 <== NOT EXECUTED 30001c74: ea000010 b 30001cbc <== NOT EXECUTED 30001c78: e3500070 cmp r0, #112 ; 0x70 30001c7c: 0a000043 beq 30001d90 30001c80: 8a000004 bhi 30001c98 30001c84: e3500069 cmp r0, #105 ; 0x69 <== NOT EXECUTED 30001c88: 0a000009 beq 30001cb4 <== NOT EXECUTED 30001c8c: e350006f cmp r0, #111 ; 0x6f <== NOT EXECUTED 30001c90: 1a000074 bne 30001e68 <== NOT EXECUTED 30001c94: ea00003a b 30001d84 <== NOT EXECUTED 30001c98: e3500075 cmp r0, #117 ; 0x75 30001c9c: 0a000006 beq 30001cbc 30001ca0: e3500078 cmp r0, #120 ; 0x78 30001ca4: 0a000039 beq 30001d90 30001ca8: e3500073 cmp r0, #115 ; 0x73 30001cac: 1a00006d bne 30001e68 30001cb0: ea000004 b 30001cc8 30001cb4: e3a03001 mov r3, #1 ; 0x1 30001cb8: ea000000 b 30001cc0 30001cbc: e3a03000 mov r3, #0 ; 0x0 30001cc0: e3a0700a mov r7, #10 ; 0xa 30001cc4: ea000033 b 30001d98 case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 30001cc8: e5997000 ldr r7, [r9] 30001ccc: e3a05000 mov r5, #0 ; 0x0 30001cd0: e2899004 add r9, r9, #4 ; 0x4 30001cd4: ea000000 b 30001cdc /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 30001cd8: e2855001 add r5, r5, #1 ; 0x1 30001cdc: e7d73005 ldrb r3, [r7, r5] 30001ce0: e3530000 cmp r3, #0 ; 0x0 30001ce4: 1afffffb bne 30001cd8 ; /* leading spaces */ if ( !minus ) 30001ce8: e3560000 cmp r6, #0 ; 0x0 30001cec: 01a04005 moveq r4, r5 30001cf0: 0a000002 beq 30001d00 30001cf4: ea000005 b 30001d10 for ( i=len ; i BSP_output_char(' '); /* no width option */ if (width == 0) { 30001d10: e35a0000 cmp sl, #0 ; 0x0 30001d14: 01a0a005 moveq sl, r5 width = len; } /* output the string */ for ( i=0 ; i 30001d24: ea000001 b 30001d30 BSP_output_char(*str); 30001d28: e1a0e00f mov lr, pc 30001d2c: e59bf000 ldr pc, [fp] if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) 30001d40: e3560000 cmp r6, #0 ; 0x0 30001d44: 11a04005 movne r4, r5 30001d48: 1a000002 bne 30001d58 30001d4c: ea000047 b 30001e70 for ( i=len ; i 30001d68: ea000040 b 30001e70 BSP_output_char(' '); } break; case 'c': BSP_output_char(va_arg(ap, int)); 30001d6c: e5d90000 ldrb r0, [r9] <== NOT EXECUTED 30001d70: e2894004 add r4, r9, #4 ; 0x4 <== NOT EXECUTED 30001d74: e1a0e00f mov lr, pc <== NOT EXECUTED 30001d78: e59bf000 ldr pc, [fp] <== NOT EXECUTED 30001d7c: e1a09004 mov r9, r4 <== NOT EXECUTED 30001d80: ea00003a b 30001e70 <== NOT EXECUTED break; default: BSP_output_char(c); 30001d84: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30001d88: e3a07008 mov r7, #8 ; 0x8 <== NOT EXECUTED 30001d8c: ea000001 b 30001d98 <== NOT EXECUTED 30001d90: e3a03000 mov r3, #0 ; 0x0 30001d94: e3a07010 mov r7, #16 ; 0x10 break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 30001d98: e5994000 ldr r4, [r9] 30001d9c: e2892004 add r2, r9, #4 ; 0x4 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 30001da0: 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), 30001da4: e1a09002 mov r9, r2 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 30001da8: 0a000005 beq 30001dc4 BSP_output_char('-'); 30001dac: e3a0002d mov r0, #45 ; 0x2d <== NOT EXECUTED 30001db0: e1a0e00f mov lr, pc <== NOT EXECUTED 30001db4: e59bf000 ldr pc, [fp] <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; 30001db8: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { BSP_output_char('-'); num = -num; 30001dbc: e2644000 rsb r4, r4, #0 ; 0x0 <== NOT EXECUTED if (maxwidth) maxwidth--; 30001dc0: 124aa001 subne sl, sl, #1 ; 0x1 <== NOT EXECUTED 30001dc4: e3a05000 mov r5, #0 ; 0x0 30001dc8: ea000005 b 30001de4 } count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); 30001dcc: e0030097 mul r3, r7, r0 30001dd0: e28d2004 add r2, sp, #4 ; 0x4 30001dd4: e0633004 rsb r3, r3, r4 30001dd8: e7c23005 strb r3, [r2, r5] 30001ddc: e1a04000 mov r4, r0 30001de0: e1a05006 mov r5, r6 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 30001de4: e1a00004 mov r0, r4 30001de8: e1a01007 mov r1, r7 30001dec: eb003d86 bl 3001140c <__aeabi_uidiv> 30001df0: e3500000 cmp r0, #0 ; 0x0 30001df4: e2856001 add r6, r5, #1 ; 0x1 30001df8: 1afffff3 bne 30001dcc toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 30001dfc: e28d2018 add r2, sp, #24 ; 0x18 30001e00: e0823005 add r3, r2, r5 30001e04: e5434014 strb r4, [r3, #-20] for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); 30001e08: e59d3000 ldr r3, [sp] toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 30001e0c: e1a0400a mov r4, sl BSP_output_char(lead); 30001e10: e20350ff and r5, r3, #255 ; 0xff 30001e14: ea000001 b 30001e20 30001e18: e1a0e00f mov lr, pc 30001e1c: e59bf000 ldr pc, [fp] toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 30001e20: e1540006 cmp r4, r6 BSP_output_char(lead); 30001e24: e1a00005 mov r0, r5 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 30001e28: e2444001 sub r4, r4, #1 ; 0x1 30001e2c: 8afffff9 bhi 30001e18 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 30001e30: e28d2018 add r2, sp, #24 ; 0x18 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 30001e34: e3a04000 mov r4, #0 ; 0x0 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 30001e38: e0825006 add r5, r2, r6 30001e3c: ea000004 b 30001e54 30001e40: e5533015 ldrb r3, [r3, #-21] 30001e44: e59f2040 ldr r2, [pc, #64] ; 30001e8c 30001e48: e7d20003 ldrb r0, [r2, r3] 30001e4c: e1a0e00f mov lr, pc 30001e50: e59bf000 ldr pc, [fp] toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 30001e54: e1540006 cmp r4, r6 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 30001e58: e0643005 rsb r3, r4, r5 toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 30001e5c: e2844001 add r4, r4, #1 ; 0x1 30001e60: 3afffff6 bcc 30001e40 30001e64: ea000001 b 30001e70 if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 30001e68: e1a0e00f mov lr, pc 30001e6c: e59bf000 ldr pc, [fp] ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 30001e70: e2888001 add r8, r8, #1 ; 0x1 30001e74: e5d80000 ldrb r0, [r8] 30001e78: e3500000 cmp r0, #0 ; 0x0 30001e7c: 1affff52 bne 30001bcc base, sign, width, lead); } else { BSP_output_char(*fmt); } } } 30001e80: e28dd018 add sp, sp, #24 ; 0x18 30001e84: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 30001e88: 30014768 .word 0x30014768 30001e8c: 300140c0 .word 0x300140c0 300130a4 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300130a4: e59f30ac ldr r3, [pc, #172] ; 30013158 ssize_t write( int fd, const void *buffer, size_t count ) { 300130a8: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300130ac: e5933000 ldr r3, [r3] ssize_t write( int fd, const void *buffer, size_t count ) { 300130b0: e1a0c000 mov ip, r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300130b4: e1500003 cmp r0, r3 ssize_t write( int fd, const void *buffer, size_t count ) { 300130b8: e1a06001 mov r6, r1 300130bc: e1a05002 mov r5, r2 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300130c0: 2a000006 bcs 300130e0 iop = rtems_libio_iop( fd ); 300130c4: e59f3090 ldr r3, [pc, #144] ; 3001315c 300130c8: e5930000 ldr r0, [r3] 300130cc: e3a03034 mov r3, #52 ; 0x34 300130d0: e0240c93 mla r4, r3, ip, r0 rtems_libio_check_is_open( iop ); 300130d4: e594300c ldr r3, [r4, #12] 300130d8: e3130c01 tst r3, #256 ; 0x100 300130dc: 1a000002 bne 300130ec 300130e0: ebffdd9e bl 3000a760 <__errno> <== NOT EXECUTED 300130e4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 300130e8: ea00000f b 3001312c <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 300130ec: e3510000 cmp r1, #0 ; 0x0 300130f0: 0a000004 beq 30013108 rtems_libio_check_count( count ); 300130f4: e3520000 cmp r2, #0 ; 0x0 300130f8: 01a00002 moveq r0, r2 300130fc: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30013100: e3130004 tst r3, #4 ; 0x4 30013104: 1a000002 bne 30013114 30013108: ebffdd94 bl 3000a760 <__errno> <== NOT EXECUTED 3001310c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30013110: ea000005 b 3001312c <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 30013114: e5943030 ldr r3, [r4, #48] 30013118: e593300c ldr r3, [r3, #12] 3001311c: e3530000 cmp r3, #0 ; 0x0 30013120: 1a000004 bne 30013138 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30013124: ebffdd8d bl 3000a760 <__errno> <== NOT EXECUTED 30013128: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001312c: e5803000 str r3, [r0] <== NOT EXECUTED 30013130: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013134: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 30013138: e1a00004 mov r0, r4 3001313c: e1a0e00f mov lr, pc 30013140: e12fff13 bx r3 if ( rc > 0 ) 30013144: e3500000 cmp r0, #0 ; 0x0 iop->offset += rc; 30013148: c5943008 ldrgt r3, [r4, #8] 3001314c: c0833000 addgt r3, r3, r0 30013150: c5843008 strgt r3, [r4, #8] return rc; } 30013154: e8bd8070 pop {r4, r5, r6, pc} 30013158: 3001459c .word 0x3001459c 3001315c: 30015290 .word 0x30015290