3000803c : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 3000803c: e5903000 ldr r3, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 30008040: e590100c ldr r1, [r0, #12] switch( node->type ) { 30008044: e593204c ldr r2, [r3, #76] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 30008048: e591302c ldr r3, [r1, #44] switch( node->type ) { 3000804c: e2422001 sub r2, r2, #1 ; 0x1 30008050: e3520005 cmp r2, #5 ; 0x5 30008054: 979ff102 ldrls pc, [pc, r2, lsl #2] 30008058: ea000007 b 3000807c <== NOT EXECUTED 3000805c: 30008094 .word 0x30008094 <== NOT EXECUTED 30008060: 300080a4 .word 0x300080a4 <== NOT EXECUTED 30008064: 30008084 .word 0x30008084 <== NOT EXECUTED 30008068: 30008084 .word 0x30008084 <== NOT EXECUTED 3000806c: 30008074 .word 0x30008074 <== NOT EXECUTED 30008070: 30008074 .word 0x30008074 <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 30008074: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 30008078: e5803004 str r3, [r0, #4] <== NOT EXECUTED break; } return 0; } 3000807c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30008080: e12fff1e bx lr <== NOT EXECUTED case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 30008084: e59f3028 ldr r3, [pc, #40] ; 300080b4 <== NOT EXECUTED 30008088: e5803004 str r3, [r0, #4] <== NOT EXECUTED loc->handlers = fs_info->memfile_handlers; break; } return 0; } 3000808c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30008090: e12fff1e bx lr <== NOT EXECUTED IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 30008094: e5933008 ldr r3, [r3, #8] 30008098: e5803004 str r3, [r0, #4] loc->handlers = fs_info->memfile_handlers; break; } return 0; } 3000809c: e3a00000 mov r0, #0 ; 0x0 300080a0: e12fff1e bx lr switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 300080a4: e59f300c ldr r3, [pc, #12] ; 300080b8 300080a8: e5803004 str r3, [r0, #4] loc->handlers = fs_info->memfile_handlers; break; } return 0; } 300080ac: e3a00000 mov r0, #0 ; 0x0 300080b0: e12fff1e bx lr 300080b4: 3001464c .word 0x3001464c 300080b8: 30014614 .word 0x30014614 3001c9d0 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3001c9d0: 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; 3001c9d4: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3001c9d8: 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; 3001c9dc: e1c413bc strh r1, [r4, #60] <== NOT EXECUTED jnode->st_gid = group; IMFS_update_ctime( jnode ); 3001c9e0: 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; 3001c9e4: e1c423be strh r2, [r4, #62] <== NOT EXECUTED IMFS_update_ctime( jnode ); 3001c9e8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001c9ec: ebff9d7e bl 30003fec <== NOT EXECUTED 3001c9f0: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 3001c9f4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 3001c9f8: e5843048 str r3, [r4, #72] <== NOT EXECUTED return 0; } 3001c9fc: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ca00: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000a9f0 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000a9f0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} IMFS_jnode_t *node; struct timeval tv; IMFS_jnode_t *parent = NULL; IMFS_fs_info_t *fs_info; if ( parent_loc != NULL ) 3000a9f4: e2508000 subs r8, r0, #0 ; 0x0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000a9f8: e24dd008 sub sp, sp, #8 ; 0x8 3000a9fc: e1a07001 mov r7, r1 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 3000aa00: e3a00001 mov r0, #1 ; 0x1 3000aa04: 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 ) 3000aa08: 01a06008 moveq r6, r8 parent = parent_loc->node_access; 3000aa0c: 15986000 ldrne r6, [r8] IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000aa10: e1a05002 mov r5, r2 3000aa14: e1a0a003 mov sl, r3 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 3000aa18: ebfff8f1 bl 30008de4 if ( !node ) 3000aa1c: e2504000 subs r4, r0, #0 ; 0x0 3000aa20: 0a000035 beq 3000aafc /* * Fill in the basic information */ node->st_nlink = 1; 3000aa24: e3a02001 mov r2, #1 ; 0x1 node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); 3000aa28: e1a01005 mov r1, r5 /* * Fill in the basic information */ node->st_nlink = 1; 3000aa2c: e1c423b4 strh r2, [r4, #52] node->type = type; 3000aa30: e584704c str r7, [r4, #76] strncpy( node->name, name, IMFS_NAME_MAX ); 3000aa34: e3a02020 mov r2, #32 ; 0x20 3000aa38: e284000c add r0, r4, #12 ; 0xc 3000aa3c: eb00076f bl 3000c800 #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; 3000aa40: e3a03000 mov r3, #0 ; 0x0 3000aa44: e1c433bc strh r3, [r4, #60] /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000aa48: e59f311c ldr r3, [pc, #284] ; 3000ab6c #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; node->st_gid = 0; 3000aa4c: e3a01000 mov r1, #0 ; 0x0 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000aa50: e5932000 ldr r2, [r3] #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; node->st_gid = 0; 3000aa54: e1c413be strh r1, [r4, #62] /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000aa58: e5923024 ldr r3, [r2, #36] /* * Now set all the times. */ gettimeofday( &tv, 0 ); 3000aa5c: e1a0000d mov r0, sp /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; 3000aa60: e1e03003 mvn r3, r3 3000aa64: e00a3003 and r3, sl, r3 3000aa68: e5843030 str r3, [r4, #48] /* * Now set all the times. */ gettimeofday( &tv, 0 ); 3000aa6c: e3a01000 mov r1, #0 ; 0x0 3000aa70: ebfff981 bl 3000907c node->stat_atime = (time_t) tv.tv_sec; 3000aa74: e59d3000 ldr r3, [sp] /* * Set the type specific information */ switch (type) { 3000aa78: e2472001 sub r2, r7, #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; 3000aa7c: e5843048 str r3, [r4, #72] * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; 3000aa80: e5843040 str r3, [r4, #64] node->stat_mtime = (time_t) tv.tv_sec; 3000aa84: e5843044 str r3, [r4, #68] /* * Set the type specific information */ switch (type) { 3000aa88: e3520005 cmp r2, #5 ; 0x5 3000aa8c: 979ff102 ldrls pc, [pc, r2, lsl #2] 3000aa90: ea000020 b 3000ab18 <== NOT EXECUTED 3000aa94: 3000ab2c .word 0x3000ab2c <== NOT EXECUTED 3000aa98: 3000ab48 .word 0x3000ab48 <== NOT EXECUTED 3000aa9c: 3000ab5c .word 0x3000ab5c <== NOT EXECUTED 3000aaa0: 3000ab08 .word 0x3000ab08 <== NOT EXECUTED 3000aaa4: 3000aab8 .word 0x3000aab8 <== NOT EXECUTED 3000aaa8: 3000aaac .word 0x3000aaac <== 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; 3000aaac: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.linearfile.direct = 0; 3000aab0: 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; 3000aab4: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 3000aab8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 3000aabc: 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; 3000aac0: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.file.indirect = 0; 3000aac4: e5843054 str r3, [r4, #84] <== NOT EXECUTED node->info.file.doubly_indirect = 0; 3000aac8: e5843058 str r3, [r4, #88] <== NOT EXECUTED /* * If this node has a parent, then put it in that directory list. */ if ( parent ) { 3000aacc: e3560000 cmp r6, #0 ; 0x0 3000aad0: 0a000009 beq 3000aafc RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 3000aad4: e1a01004 mov r1, r4 3000aad8: e2860050 add r0, r6, #80 ; 0x50 3000aadc: ebffe9bc bl 300051d4 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; fs_info = parent_loc->mt_entry->fs_info; 3000aae0: 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; 3000aae4: e5846008 str r6, [r4, #8] fs_info = parent_loc->mt_entry->fs_info; 3000aae8: e593102c ldr r1, [r3, #44] node->st_ino = ++fs_info->ino_count; 3000aaec: e5912000 ldr r2, [r1] 3000aaf0: e2822001 add r2, r2, #1 ; 0x1 3000aaf4: e5812000 str r2, [r1] 3000aaf8: e5842038 str r2, [r4, #56] } return node; } 3000aafc: e1a00004 mov r0, r4 3000ab00: e28dd008 add sp, sp, #8 ; 0x8 3000ab04: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 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; 3000ab08: e59d1024 ldr r1, [sp, #36] <== NOT EXECUTED 3000ab0c: e5913000 ldr r3, [r1] <== NOT EXECUTED 3000ab10: e5843050 str r3, [r4, #80] <== NOT EXECUTED 3000ab14: eaffffec b 3000aacc <== NOT EXECUTED node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; break; default: assert(0); 3000ab18: e59f0050 ldr r0, [pc, #80] ; 3000ab70 <== NOT EXECUTED 3000ab1c: e3a01074 mov r1, #116 ; 0x74 <== NOT EXECUTED 3000ab20: e59f204c ldr r2, [pc, #76] ; 3000ab74 <== NOT EXECUTED 3000ab24: e59f304c ldr r3, [pc, #76] ; 3000ab78 <== NOT EXECUTED 3000ab28: ebfff853 bl 30008c7c <__assert_func> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000ab2c: e2843054 add r3, r4, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 3000ab30: e2841050 add r1, r4, #80 ; 0x50 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 3000ab34: e3a02000 mov r2, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000ab38: e5843050 str r3, [r4, #80] the_chain->permanent_null = NULL; 3000ab3c: e5842054 str r2, [r4, #84] the_chain->last = _Chain_Head(the_chain); 3000ab40: e5841058 str r1, [r4, #88] 3000ab44: eaffffe0 b 3000aacc node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 3000ab48: e59d2024 ldr r2, [sp, #36] 3000ab4c: e892000c ldm r2, {r2, r3} 3000ab50: 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; 3000ab54: e5842050 str r2, [r4, #80] 3000ab58: eaffffdb b 3000aacc case IMFS_DIRECTORY: rtems_chain_initialize_empty(&node->info.directory.Entries); break; case IMFS_HARD_LINK: node->info.hard_link.link_node = info->hard_link.link_node; 3000ab5c: e59d2024 ldr r2, [sp, #36] <== NOT EXECUTED 3000ab60: e5923000 ldr r3, [r2] <== NOT EXECUTED 3000ab64: e5843050 str r3, [r4, #80] <== NOT EXECUTED 3000ab68: eaffffd7 b 3000aacc <== NOT EXECUTED 3000ab6c: 30015814 .word 0x30015814 3000ab70: 30014fd0 .word 0x30014fd0 3000ab74: 30014798 .word 0x30014798 3000ab78: 30014cbc .word 0x30014cbc 30008220 : int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30008220: 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; 30008224: e5925000 ldr r5, [r2] int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30008228: e24dd03c sub sp, sp, #60 ; 0x3c 3000822c: e1a07002 mov r7, r2 30008230: e1a0a000 mov sl, r0 30008234: e58d1000 str r1, [sp] /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30008238: e3a08000 mov r8, #0 ; 0x0 3000823c: e28d9007 add r9, sp, #7 ; 0x7 30008240: e28db038 add fp, sp, #56 ; 0x38 * 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 ); 30008244: e08a0008 add r0, sl, r8 30008248: e1a01009 mov r1, r9 3000824c: e1a0200b mov r2, fp 30008250: eb00017f bl 30008854 i += len; if ( !pathloc->node_access ) 30008254: e597e000 ldr lr, [r7] * 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 ); 30008258: e1a04000 mov r4, r0 i += len; if ( !pathloc->node_access ) 3000825c: e35e0000 cmp lr, #0 ; 0x0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], token, &len ); i += len; 30008260: e59d6038 ldr r6, [sp, #56] if ( !pathloc->node_access ) 30008264: 0a000053 beq 300083b8 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30008268: e3500000 cmp r0, #0 ; 0x0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], token, &len ); i += len; 3000826c: e0888006 add r8, r8, r6 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30008270: 1a000012 bne 300082c0 * 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 ) { 30008274: e59e304c ldr r3, [lr, #76] 30008278: e3530001 cmp r3, #1 ; 0x1 3000827c: 1a00005d bne 300083f8 if ( node->info.directory.mt_fs != NULL ) { 30008280: e59ee05c ldr lr, [lr, #92] 30008284: e35e0000 cmp lr, #0 ; 0x0 30008288: 0a00005a beq 300083f8 newloc = node->info.directory.mt_fs->mt_fs_root; 3000828c: e28ee018 add lr, lr, #24 ; 0x18 <== NOT EXECUTED 30008290: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 30008294: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED 30008298: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 3000829c: e066e008 rsb lr, r6, r8 <== 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; 300082a0: e887000f stm r7, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 300082a4: e5923000 ldr r3, [r2] <== NOT EXECUTED 300082a8: e08a000e add r0, sl, lr <== NOT EXECUTED 300082ac: e59d1000 ldr r1, [sp] <== NOT EXECUTED 300082b0: e1a02007 mov r2, r7 <== NOT EXECUTED 300082b4: e1a0e00f mov lr, pc <== NOT EXECUTED 300082b8: e12fff13 bx r3 <== NOT EXECUTED 300082bc: ea000032 b 3000838c <== NOT EXECUTED /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 300082c0: e595304c ldr r3, [r5, #76] 300082c4: e3530001 cmp r3, #1 ; 0x1 300082c8: 11a0500e movne r5, lr 300082cc: 0a000030 beq 30008394 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 300082d0: e3540003 cmp r4, #3 ; 0x3 300082d4: 0a000006 beq 300082f4 300082d8: e3540004 cmp r4, #4 ; 0x4 300082dc: 0a000026 beq 3000837c 300082e0: e3540002 cmp r4, #2 ; 0x2 300082e4: 0a000014 beq 3000833c /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 300082e8: e3540004 cmp r4, #4 ; 0x4 300082ec: 1affffd4 bne 30008244 300082f0: eaffffdf b 30008274 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 300082f4: e59e304c ldr r3, [lr, #76] 300082f8: e3530003 cmp r3, #3 ; 0x3 300082fc: 0a000032 beq 300083cc node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 30008300: e3530004 cmp r3, #4 ; 0x4 30008304: 0a00004c beq 3000843c /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 30008308: e595304c ldr r3, [r5, #76] 3000830c: e3530001 cmp r3, #1 ; 0x1 30008310: 1a000033 bne 300083e4 /* * 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 ) { 30008314: e595e05c ldr lr, [r5, #92] 30008318: e35e0000 cmp lr, #0 ; 0x0 3000831c: 1a00003f bne 30008420 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30008320: e1a00005 mov r0, r5 30008324: e1a01009 mov r1, r9 30008328: eb00011a bl 30008798 if ( !node ) 3000832c: e2505000 subs r5, r0, #0 ; 0x0 30008330: 0a000020 beq 300083b8 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 30008334: e5875000 str r5, [r7] 30008338: eaffffc1 b 30008244 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 3000833c: e59f2120 ldr r2, [pc, #288] ; 30008464 <== NOT EXECUTED 30008340: e5923000 ldr r3, [r2] <== NOT EXECUTED 30008344: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 30008348: e15e0002 cmp lr, r2 <== NOT EXECUTED 3000834c: 0affffbc beq 30008244 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 30008350: e597200c ldr r2, [r7, #12] <== NOT EXECUTED 30008354: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 30008358: e15e0003 cmp lr, r3 <== NOT EXECUTED 3000835c: 0a00003e beq 3000845c <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); } } else { if ( !node->Parent ) 30008360: e59e5008 ldr r5, [lr, #8] <== NOT EXECUTED 30008364: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30008368: 1afffff1 bne 30008334 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 3000836c: eb000bc6 bl 3000b28c <__errno> <== NOT EXECUTED 30008370: e5804000 str r4, [r0] <== NOT EXECUTED 30008374: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008378: ea000003 b 3000838c <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 3000837c: eb000bc2 bl 3000b28c <__errno> <== NOT EXECUTED 30008380: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 30008384: e5803000 str r3, [r0] <== NOT EXECUTED 30008388: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 3000838c: e28dd03c add sp, sp, #60 ; 0x3c 30008390: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30008394: e59e3030 ldr r3, [lr, #48] if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 30008398: e1a0500e mov r5, lr /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 3000839c: e3130040 tst r3, #64 ; 0x40 300083a0: 1affffca bne 300082d0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 300083a4: eb000bb8 bl 3000b28c <__errno> <== NOT EXECUTED 300083a8: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 300083ac: e5803000 str r3, [r0] <== NOT EXECUTED 300083b0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300083b4: eafffff4 b 3000838c <== NOT EXECUTED * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); 300083b8: eb000bb3 bl 3000b28c <__errno> <== NOT EXECUTED 300083bc: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 300083c0: e5803000 str r3, [r0] <== NOT EXECUTED 300083c4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300083c8: eaffffef b 3000838c <== NOT EXECUTED * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 300083cc: e1a00007 mov r0, r7 <== NOT EXECUTED 300083d0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300083d4: ebffff40 bl 300080dc <== NOT EXECUTED node = pathloc->node_access; 300083d8: e5975000 ldr r5, [r7] <== NOT EXECUTED if ( !node ) 300083dc: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 300083e0: 1affffc8 bne 30008308 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 300083e4: eb000ba8 bl 3000b28c <__errno> <== NOT EXECUTED 300083e8: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 300083ec: e5803000 str r3, [r0] <== NOT EXECUTED 300083f0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300083f4: eaffffe4 b 3000838c <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 300083f8: e1a00007 mov r0, r7 300083fc: ebffff0e bl 3000803c /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30008400: e59d2000 ldr r2, [sp] 30008404: e5973000 ldr r3, [r7] 30008408: e1a01302 lsl r1, r2, #6 3000840c: e5932030 ldr r2, [r3, #48] 30008410: e0012002 and r2, r1, r2 30008414: e1510002 cmp r1, r2 30008418: 1affffe1 bne 300083a4 3000841c: eaffffda b 3000838c * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 30008420: e28ee018 add lr, lr, #24 ; 0x18 <== NOT EXECUTED 30008424: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 30008428: e59de038 ldr lr, [sp, #56] <== 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 ) { newloc = node->info.directory.mt_fs->mt_fs_root; 3000842c: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 30008430: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 30008434: e06ee008 rsb lr, lr, r8 <== NOT EXECUTED 30008438: eaffff98 b 300082a0 <== NOT EXECUTED if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 3000843c: e1a00007 mov r0, r7 <== NOT EXECUTED 30008440: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30008444: ebffff3e bl 30008144 <== NOT EXECUTED node = pathloc->node_access; if ( result == -1 ) 30008448: 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; 3000844c: e5973000 ldr r3, [r7] <== NOT EXECUTED if ( result == -1 ) 30008450: 0affffcd beq 3000838c <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 30008454: e1a05003 mov r5, r3 <== NOT EXECUTED 30008458: eaffffaa b 30008308 <== 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; 3000845c: e282e008 add lr, r2, #8 ; 0x8 <== NOT EXECUTED 30008460: eaffff8a b 30008290 <== NOT EXECUTED 30008464: 30015814 .word 0x30015814 30008528 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30008528: 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; 3000852c: e5914000 ldr r4, [r1] int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30008530: e24dd038 sub sp, sp, #56 ; 0x38 30008534: e1a06001 mov r6, r1 30008538: e1a08000 mov r8, r0 3000853c: e1a0b002 mov fp, r2 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30008540: e3a05000 mov r5, #0 ; 0x0 30008544: e28da003 add sl, sp, #3 ; 0x3 30008548: e28d9034 add r9, sp, #52 ; 0x34 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); 3000854c: e1a0100a mov r1, sl 30008550: e0880005 add r0, r8, r5 30008554: e1a02009 mov r2, r9 30008558: eb0000bd bl 30008854 i += len; if ( !pathloc->node_access ) 3000855c: e5961000 ldr r1, [r6] */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 30008560: e59d7034 ldr r7, [sp, #52] if ( !pathloc->node_access ) 30008564: e3510000 cmp r1, #0 ; 0x0 30008568: 0a000039 beq 30008654 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 3000856c: e3500000 cmp r0, #0 ; 0x0 30008570: 1a000005 bne 3000858c pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 30008574: eb000b44 bl 3000b28c <__errno> <== NOT EXECUTED 30008578: e3a03011 mov r3, #17 ; 0x11 <== NOT EXECUTED 3000857c: e5803000 str r3, [r0] <== NOT EXECUTED 30008580: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30008584: e28dd038 add sp, sp, #56 ; 0x38 30008588: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 3000858c: e594304c ldr r3, [r4, #76] 30008590: e3530001 cmp r3, #1 ; 0x1 30008594: 11a04001 movne r4, r1 30008598: 0a000032 beq 30008668 */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 3000859c: e0855007 add r5, r5, r7 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 300085a0: e3500004 cmp r0, #4 ; 0x4 300085a4: 979ff100 ldrls pc, [pc, r0, lsl #2] 300085a8: eaffffe7 b 3000854c <== NOT EXECUTED 300085ac: 30008574 .word 0x30008574 <== NOT EXECUTED 300085b0: 3000854c .word 0x3000854c <== NOT EXECUTED 300085b4: 30008624 .word 0x30008624 <== NOT EXECUTED 300085b8: 300085d4 .word 0x300085d4 <== NOT EXECUTED 300085bc: 300085c0 .word 0x300085c0 <== NOT EXECUTED case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 300085c0: eb000b31 bl 3000b28c <__errno> <== NOT EXECUTED 300085c4: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 300085c8: e5803000 str r3, [r0] <== NOT EXECUTED 300085cc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300085d0: eaffffeb b 30008584 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 300085d4: e591304c ldr r3, [r1, #76] 300085d8: e3530003 cmp r3, #3 ; 0x3 300085dc: 0a00005f beq 30008760 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 300085e0: e3530004 cmp r3, #4 ; 0x4 300085e4: 0a00005d beq 30008760 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 300085e8: e3510000 cmp r1, #0 ; 0x0 300085ec: 0a000048 beq 30008714 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 300085f0: e591304c ldr r3, [r1, #76] 300085f4: e3530001 cmp r3, #1 ; 0x1 300085f8: 1a000045 bne 30008714 /* * 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 ) { 300085fc: e591e05c ldr lr, [r1, #92] 30008600: e35e0000 cmp lr, #0 ; 0x0 30008604: 1a000047 bne 30008728 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30008608: e1a00001 mov r0, r1 3000860c: e1a0100a mov r1, sl 30008610: eb000060 bl 30008798 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 30008614: e2504000 subs r4, r0, #0 ; 0x0 30008618: 0a00001b beq 3000868c done = true; else pathloc->node_access = node; 3000861c: e5864000 str r4, [r6] 30008620: eaffffc9 b 3000854c case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30008624: e59f2168 ldr r2, [pc, #360] ; 30008794 <== NOT EXECUTED 30008628: e5923000 ldr r3, [r2] <== NOT EXECUTED 3000862c: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 30008630: e1510002 cmp r1, r2 <== NOT EXECUTED 30008634: 0affffc4 beq 3000854c <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 30008638: e596e00c ldr lr, [r6, #12] <== NOT EXECUTED 3000863c: e59e3018 ldr r3, [lr, #24] <== NOT EXECUTED 30008640: e1510003 cmp r1, r3 <== NOT EXECUTED 30008644: 0a00004c beq 3000877c <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 30008648: e5914008 ldr r4, [r1, #8] <== NOT EXECUTED 3000864c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30008650: 1afffff1 bne 3000861c <== NOT EXECUTED * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); 30008654: eb000b0c bl 3000b28c <__errno> <== NOT EXECUTED 30008658: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 3000865c: e5803000 str r3, [r0] <== NOT EXECUTED 30008660: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008664: eaffffc6 b 30008584 <== 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 ) 30008668: e5913030 ldr r3, [r1, #48] if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 3000866c: e1a04001 mov r4, r1 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30008670: e3130040 tst r3, #64 ; 0x40 30008674: 1affffc8 bne 3000859c /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); 30008678: eb000b03 bl 3000b28c <__errno> <== NOT EXECUTED 3000867c: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 30008680: e5803000 str r3, [r0] <== NOT EXECUTED 30008684: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008688: eaffffbd b 30008584 <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 3000868c: e59d3034 ldr r3, [sp, #52] /* * 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++) { 30008690: e0882005 add r2, r8, r5 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 30008694: e0633005 rsb r3, r3, r5 30008698: e0883003 add r3, r8, r3 3000869c: e58b3000 str r3, [fp] /* * 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++) { 300086a0: e7d80005 ldrb r0, [r8, r5] 300086a4: e3500000 cmp r0, #0 ; 0x0 300086a8: 0a00000e beq 300086e8 if ( !IMFS_is_separator( path[ i ] ) ) 300086ac: e350002f cmp r0, #47 ; 0x2f <== NOT EXECUTED 300086b0: 1350005c cmpne r0, #92 ; 0x5c <== NOT EXECUTED 300086b4: 1affffe6 bne 30008654 <== 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++) { 300086b8: e5d23001 ldrb r3, [r2, #1] <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) 300086bc: e2822001 add r2, r2, #1 ; 0x1 <== 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++) { 300086c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300086c4: 0a000007 beq 300086e8 <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) 300086c8: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 300086cc: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 300086d0: 0afffff8 beq 300086b8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 300086d4: eb000aec bl 3000b28c <__errno> <== NOT EXECUTED 300086d8: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 300086dc: e5803000 str r3, [r0] <== NOT EXECUTED 300086e0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300086e4: eaffffa6 b 30008584 <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 300086e8: e1a00006 mov r0, r6 300086ec: ebfffe52 bl 3000803c /* * The returned node must be a directory */ node = pathloc->node_access; 300086f0: e5961000 ldr r1, [r6] if ( node->type != IMFS_DIRECTORY ) 300086f4: e591304c ldr r3, [r1, #76] 300086f8: e3530001 cmp r3, #1 ; 0x1 300086fc: 1a000004 bne 30008714 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30008700: e5913030 ldr r3, [r1, #48] 30008704: e20330c0 and r3, r3, #192 ; 0xc0 30008708: e35300c0 cmp r3, #192 ; 0xc0 3000870c: 1affffd9 bne 30008678 30008710: eaffff9b b 30008584 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 30008714: eb000adc bl 3000b28c <__errno> <== NOT EXECUTED 30008718: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3000871c: e5803000 str r3, [r0] <== NOT EXECUTED 30008720: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008724: eaffff96 b 30008584 <== 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 ) { newloc = node->info.directory.mt_fs->mt_fs_root; 30008728: e28ee018 add lr, lr, #24 ; 0x18 <== NOT EXECUTED 3000872c: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 30008730: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED 30008734: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30008738: e59de034 ldr lr, [sp, #52] <== NOT EXECUTED 3000873c: e06ee005 rsb lr, lr, r5 <== 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; 30008740: e886000f stm r6, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30008744: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 30008748: e088000e add r0, r8, lr <== NOT EXECUTED 3000874c: e1a01006 mov r1, r6 <== NOT EXECUTED 30008750: e1a0200b mov r2, fp <== NOT EXECUTED 30008754: e1a0e00f mov lr, pc <== NOT EXECUTED 30008758: e12fff13 bx r3 <== NOT EXECUTED 3000875c: eaffff88 b 30008584 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 30008760: e1a00006 mov r0, r6 <== NOT EXECUTED 30008764: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30008768: ebffff3e bl 30008468 <== NOT EXECUTED if ( result == -1 ) 3000876c: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 30008770: 0affff83 beq 30008584 <== NOT EXECUTED 30008774: e5961000 ldr r1, [r6] <== NOT EXECUTED 30008778: eaffff9a b 300085e8 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 3000877c: e28ee008 add lr, lr, #8 ; 0x8 <== NOT EXECUTED 30008780: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 30008784: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30008788: e067e005 rsb lr, r7, r5 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 3000878c: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 30008790: eaffffea b 30008740 <== NOT EXECUTED 30008794: 30015814 .word 0x30015814 300080dc : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 300080dc: e5902000 ldr r2, [r0] <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300080e0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300080e4: e592304c ldr r3, [r2, #76] <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300080e8: e1a04000 mov r4, r0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300080ec: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300080f0: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300080f4: 1a00000f bne 30008138 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 300080f8: e5923050 ldr r3, [r2, #80] <== NOT EXECUTED 300080fc: e5803000 str r3, [r0] <== NOT EXECUTED IMFS_Set_handlers( node ); 30008100: ebffffcd bl 3000803c <== 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 ) 30008104: e5942000 ldr r2, [r4] <== NOT EXECUTED 30008108: e1a01305 lsl r1, r5, #6 <== NOT EXECUTED 3000810c: e5923030 ldr r3, [r2, #48] <== NOT EXECUTED 30008110: e0013003 and r3, r1, r3 <== NOT EXECUTED 30008114: e1510003 cmp r1, r3 <== NOT EXECUTED 30008118: 0a000004 beq 30008130 <== 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 ); 3000811c: eb000c5a bl 3000b28c <__errno> <== NOT EXECUTED 30008120: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 30008124: e5803000 str r3, [r0] <== NOT EXECUTED 30008128: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3000812c: e8bd8030 pop {r4, r5, pc} <== 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 ) 30008130: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30008134: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 30008138: e59f0000 ldr r0, [pc, #0] ; 30008140 <== NOT EXECUTED 3000813c: ebfff352 bl 30004e8c <== NOT EXECUTED 30008140: abcd0000 .word 0xabcd0000 30008468 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30008468: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3000846c: e59f60b0 ldr r6, [pc, #176] ; 30008524 <== NOT EXECUTED 30008470: e1a04000 mov r4, r0 <== NOT EXECUTED 30008474: e1a07001 mov r7, r1 <== NOT EXECUTED 30008478: ea000004 b 30008490 <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 3000847c: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 30008480: 0a00001c beq 300084f8 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 30008484: e2433003 sub r3, r3, #3 ; 0x3 <== NOT EXECUTED 30008488: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3000848c: 8a000014 bhi 300084e4 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 30008490: e5962000 ldr r2, [r6] <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 30008494: e5945000 ldr r5, [r4] <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 30008498: e1d232b8 ldrh r3, [r2, #40] <== NOT EXECUTED 3000849c: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 300084a0: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED 300084a4: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 300084a8: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 300084ac: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 300084b0: 8a000014 bhi 30008508 <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 300084b4: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 300084b8: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 300084bc: 1affffee bne 3000847c <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); 300084c0: e1a00004 mov r0, r4 <== NOT EXECUTED 300084c4: e1a01007 mov r1, r7 <== NOT EXECUTED 300084c8: ebffff03 bl 300080dc <== NOT EXECUTED else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 300084cc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300084d0: 1a000004 bne 300084e8 <== NOT EXECUTED 300084d4: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 300084d8: e2433003 sub r3, r3, #3 ; 0x3 <== NOT EXECUTED 300084dc: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 300084e0: 9affffea bls 30008490 <== NOT EXECUTED 300084e4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 300084e8: e5963000 ldr r3, [r6] <== NOT EXECUTED 300084ec: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300084f0: e1c322b8 strh r2, [r3, #40] <== NOT EXECUTED return result; } 300084f4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); 300084f8: e1a00004 mov r0, r4 <== NOT EXECUTED 300084fc: e1a01007 mov r1, r7 <== NOT EXECUTED 30008500: ebffff0f bl 30008144 <== NOT EXECUTED 30008504: eafffff0 b 300084cc <== NOT EXECUTED * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; 30008508: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3000850c: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); 30008510: eb000b5d bl 3000b28c <__errno> <== NOT EXECUTED 30008514: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED 30008518: e5803000 str r3, [r0] <== NOT EXECUTED 3000851c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008520: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30008524: 30015814 .word 0x30015814 300080bc : /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 300080bc: e5903000 ldr r3, [r0] <== NOT EXECUTED 300080c0: e1a01301 lsl r1, r1, #6 <== NOT EXECUTED 300080c4: e5930030 ldr r0, [r3, #48] <== NOT EXECUTED 300080c8: e0010000 and r0, r1, r0 <== NOT EXECUTED return 1; return 0; } 300080cc: e1510000 cmp r1, r0 <== NOT EXECUTED 300080d0: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 300080d4: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 300080d8: e12fff1e bx lr <== NOT EXECUTED 30008144 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30008144: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 30008148: e590e000 ldr lr, [r0] <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000814c: e1a04000 mov r4, r0 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30008150: e59e304c ldr r3, [lr, #76] <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30008154: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30008158: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 3000815c: 1a000028 bne 30008204 <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 30008160: e59e3008 ldr r3, [lr, #8] <== NOT EXECUTED 30008164: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008168: 0a000027 beq 3000820c <== 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; 3000816c: e5803000 str r3, [r0] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( 30008170: e59e0050 ldr r0, [lr, #80] <== NOT EXECUTED 30008174: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 30008178: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 3000817c: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 30008180: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 30008184: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 30008188: 1a000019 bne 300081f4 <== NOT EXECUTED 3000818c: e59f3080 ldr r3, [pc, #128] ; 30008214 <== NOT EXECUTED 30008190: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED 30008194: e593c000 ldr ip, [r3] <== NOT EXECUTED 30008198: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 3000819c: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 300081a0: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 300081a4: e59e0050 ldr r0, [lr, #80] <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 300081a8: e1a01006 mov r1, r6 <== NOT EXECUTED 300081ac: e1a02004 mov r2, r4 <== NOT EXECUTED 300081b0: e0800005 add r0, r0, r5 <== NOT EXECUTED 300081b4: eb000019 bl 30008220 <== NOT EXECUTED 300081b8: e1a05000 mov r5, r0 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 300081bc: e1a00004 mov r0, r4 <== NOT EXECUTED 300081c0: ebffff9d bl 3000803c <== 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 ) 300081c4: e5943000 ldr r3, [r4] <== NOT EXECUTED 300081c8: e1a01306 lsl r1, r6, #6 <== NOT EXECUTED 300081cc: e5932030 ldr r2, [r3, #48] <== NOT EXECUTED 300081d0: e0012002 and r2, r1, r2 <== NOT EXECUTED 300081d4: e1510002 cmp r1, r2 <== NOT EXECUTED 300081d8: 0a000003 beq 300081ec <== 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 ); 300081dc: eb000c2a bl 3000b28c <__errno> <== NOT EXECUTED 300081e0: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 300081e4: e5803000 str r3, [r0] <== NOT EXECUTED 300081e8: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED return result; } 300081ec: e1a00005 mov r0, r5 <== NOT EXECUTED 300081f0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 300081f4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300081f8: 11a05002 movne r5, r2 <== NOT EXECUTED 300081fc: 1affffe9 bne 300081a8 <== NOT EXECUTED 30008200: eaffffe1 b 3000818c <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 30008204: e59f000c ldr r0, [pc, #12] ; 30008218 <== NOT EXECUTED 30008208: ebfff31f bl 30004e8c <== NOT EXECUTED if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 3000820c: e59f0008 ldr r0, [pc, #8] ; 3000821c <== NOT EXECUTED 30008210: ebfff31d bl 30004e8c <== NOT EXECUTED 30008214: 30015814 .word 0x30015814 30008218: abcd0000 .word 0xabcd0000 3000821c: bad00000 .word 0xbad00000 3000ab7c : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000ab7c: 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 ) ) ) 3000ab80: e3c14f7f bic r4, r1, #508 ; 0x1fc <== NOT EXECUTED 3000ab84: e3c44003 bic r4, r4, #3 ; 0x3 <== NOT EXECUTED 3000ab88: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000ab8c: 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; 3000ab90: 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 ) ) ) 3000ab94: 1a00000c bne 3000abcc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; 3000ab98: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED IMFS_update_ctime( jnode ); 3000ab9c: 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; 3000aba0: e3c33f7f bic r3, r3, #508 ; 0x1fc <== NOT EXECUTED 3000aba4: e3c33003 bic r3, r3, #3 ; 0x3 <== NOT EXECUTED 3000aba8: e1813003 orr r3, r1, r3 <== NOT EXECUTED 3000abac: e5853030 str r3, [r5, #48] <== NOT EXECUTED IMFS_update_ctime( jnode ); 3000abb0: e1a01004 mov r1, r4 <== NOT EXECUTED 3000abb4: ebfff930 bl 3000907c <== NOT EXECUTED 3000abb8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000abbc: e1a00004 mov r0, r4 <== NOT EXECUTED 3000abc0: e5853048 str r3, [r5, #72] <== NOT EXECUTED return 0; } 3000abc4: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3000abc8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ if ( mode & (~ (S_IRWXU | S_IRWXG | S_IRWXO ) ) ) rtems_set_errno_and_return_minus_one( EPERM ); 3000abcc: eb0001ae bl 3000b28c <__errno> <== NOT EXECUTED 3000abd0: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3000abd4: e5803000 str r3, [r0] <== NOT EXECUTED 3000abd8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3000abdc: eafffff8 b 3000abc4 <== NOT EXECUTED 3002a55c : int cmd, rtems_libio_t *iop ) { return 0; } 3002a55c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3002a560: e12fff1e bx lr <== NOT EXECUTED 3002a564 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } 3002a564: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3002a568: e12fff1e bx lr <== NOT EXECUTED 30008798 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 30008798: e92d4070 push {r4, r5, r6, lr} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 3000879c: e2504000 subs r4, r0, #0 ; 0x0 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 300087a0: e1a05001 mov r5, r1 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 300087a4: 0a000020 beq 3000882c if ( !name ) 300087a8: e3510000 cmp r1, #0 ; 0x0 300087ac: 0a00001b beq 30008820 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 300087b0: e1a00001 mov r0, r1 300087b4: e59f1084 ldr r1, [pc, #132] ; 30008840 300087b8: eb000f81 bl 3000c5c4 300087bc: e3500000 cmp r0, #0 ; 0x0 300087c0: 1a000001 bne 300087cc if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 300087c4: e1a00004 mov r0, r4 300087c8: e8bd8070 pop {r4, r5, r6, pc} */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) 300087cc: e1a00005 mov r0, r5 300087d0: e59f106c ldr r1, [pc, #108] ; 30008844 300087d4: eb000f7a bl 3000c5c4 300087d8: e3500000 cmp r0, #0 ; 0x0 return directory->Parent; 300087dc: 05944008 ldreq r4, [r4, #8] */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) 300087e0: 0afffff7 beq 300087c4 return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 300087e4: e5946050 ldr r6, [r4, #80] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 300087e8: e2844054 add r4, r4, #84 ; 0x54 !rtems_chain_is_tail( the_chain, the_node ); 300087ec: e1560004 cmp r6, r4 300087f0: 1a000003 bne 30008804 300087f4: ea000009 b 30008820 the_node = the_node->next ) { 300087f8: e5966000 ldr r6, [r6] return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); 300087fc: e1560004 cmp r6, r4 30008800: 0a000006 beq 30008820 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) 30008804: e1a00005 mov r0, r5 30008808: e286100c add r1, r6, #12 ; 0xc 3000880c: eb000f6c bl 3000c5c4 30008810: e3500000 cmp r0, #0 ; 0x0 30008814: 1afffff7 bne 300087f8 30008818: e1a04006 mov r4, r6 3000881c: eaffffe8 b 300087c4 return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); 30008820: e3a04000 mov r4, #0 ; 0x0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 30008824: e1a00004 mov r0, r4 30008828: e8bd8070 pop {r4, r5, r6, pc} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 3000882c: e59f0014 ldr r0, [pc, #20] ; 30008848 <== NOT EXECUTED 30008830: e3a0102a mov r1, #42 ; 0x2a <== NOT EXECUTED 30008834: e59f2010 ldr r2, [pc, #16] ; 3000884c <== NOT EXECUTED 30008838: e59f3010 ldr r3, [pc, #16] ; 30008850 <== NOT EXECUTED 3000883c: eb00010e bl 30008c7c <__assert_func> <== NOT EXECUTED 30008840: 300145f4 .word 0x300145f4 30008844: 300145f8 .word 0x300145f8 30008848: 30014e38 .word 0x30014e38 3000884c: 300145fc .word 0x300145fc 30008850: 30014e88 .word 0x30014e88 3001d2ec : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } 3001d2ec: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001d2f0: e12fff1e bx lr <== NOT EXECUTED 3001d2f4 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3001d2f4: 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; 3001d2f8: e1a0e000 mov lr, r0 <== NOT EXECUTED 3001d2fc: e5be4018 ldr r4, [lr, #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 ) { 3001d300: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d304: e1a0c000 mov ip, 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; 3001d308: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED 3001d30c: 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; 3001d310: e3a03000 mov r3, #0 ; 0x0 <== 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; 3001d314: e1a0500d mov r5, sp <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 3001d318: e58c3018 str r3, [ip, #24] <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3001d31c: e1a0000d mov r0, sp <== NOT EXECUTED temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; 3001d320: e58d4000 str r4, [sp] <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 3001d324: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3001d328: ebfffe18 bl 3001cb90 <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { 3001d32c: 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 ) ) { 3001d330: 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 ) { 3001d334: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3001d338: 1a000010 bne 3001d380 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 3001d33c: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 3001d340: e1530002 cmp r3, r2 <== NOT EXECUTED 3001d344: 0a00000d beq 3001d380 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 3001d348: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 3001d34c: 0a000008 beq 3001d374 <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { 3001d350: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 3001d354: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3001d358: 1affffef bne 3001d31c <== NOT EXECUTED if ( jnode_has_children( jnode ) ) 3001d35c: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 3001d360: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 3001d364: e1520003 cmp r2, r3 <== NOT EXECUTED 3001d368: 0affffeb beq 3001d31c <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3001d36c: e2524000 subs r4, r2, #0 ; 0x0 <== NOT EXECUTED 3001d370: 1affffe9 bne 3001d31c <== NOT EXECUTED 3001d374: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3001d378: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d37c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( &loc ); 3001d380: e1a0000d mov r0, sp <== NOT EXECUTED 3001d384: ebff9960 bl 3000390c <== NOT EXECUTED if (result != 0) 3001d388: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d38c: 01a04006 moveq r4, r6 <== NOT EXECUTED 3001d390: 0affffec beq 3001d348 <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3001d394: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001d398: eafffff6 b 3001d378 <== NOT EXECUTED 30008854 : IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 30008854: e92d4010 push {r4, lr} register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 30008858: e5d03000 ldrb r3, [r0] IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 3000885c: e1a04001 mov r4, r1 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 30008860: e353002f cmp r3, #47 ; 0x2f 30008864: 1353005c cmpne r3, #92 ; 0x5c IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 30008868: e1a0c002 mov ip, r2 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 3000886c: 0a000025 beq 30008908 30008870: e3530000 cmp r3, #0 ; 0x0 token[i] = c; 30008874: 15c13000 strbne r3, [r1] 30008878: 13a01000 movne r1, #0 ; 0x0 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 3000887c: 1a000009 bne 300088a8 30008880: ea000029 b 3000892c 30008884: e2523000 subs r3, r2, #0 ; 0x0 30008888: 13a03001 movne r3, #1 ; 0x1 3000888c: e3510020 cmp r1, #32 ; 0x20 30008890: c3a03000 movgt r3, #0 ; 0x0 30008894: e3530000 cmp r3, #0 ; 0x0 30008898: 0a000007 beq 300088bc token[i] = c; if ( i == IMFS_NAME_MAX ) 3000889c: e3510020 cmp r1, #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; 300088a0: e7c42001 strb r2, [r4, r1] if ( i == IMFS_NAME_MAX ) 300088a4: 0a00001e beq 30008924 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 300088a8: e2811001 add r1, r1, #1 ; 0x1 300088ac: e7d02001 ldrb r2, [r0, r1] /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 300088b0: e352002f cmp r2, #47 ; 0x2f 300088b4: 1352005c cmpne r2, #92 ; 0x5c 300088b8: 1afffff1 bne 30008884 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 300088bc: e0843001 add r3, r4, r1 300088c0: e5532001 ldrb r2, [r3, #-1] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 300088c4: e1a00004 mov r0, r4 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 300088c8: e3520000 cmp r2, #0 ; 0x0 token[i] = '\0'; 300088cc: 13a03000 movne r3, #0 ; 0x0 300088d0: 17c43001 strbne r3, [r4, r1] /* * Set token_len to the number of characters copied. */ *token_len = i; 300088d4: e58c1000 str r1, [ip] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 300088d8: e59f1060 ldr r1, [pc, #96] ; 30008940 300088dc: eb000f38 bl 3000c5c4 300088e0: e3500000 cmp r0, #0 ; 0x0 300088e4: 02800002 addeq r0, r0, #2 ; 0x2 300088e8: 08bd8010 popeq {r4, pc} type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 300088ec: e1a00004 mov r0, r4 300088f0: e59f104c ldr r1, [pc, #76] ; 30008944 300088f4: eb000f32 bl 3000c5c4 300088f8: e3500000 cmp r0, #0 ; 0x0 300088fc: 13a00003 movne r0, #3 ; 0x3 30008900: 03a00001 moveq r0, #1 ; 0x1 type = IMFS_CURRENT_DIR; } return type; } 30008904: e8bd8010 pop {r4, pc} */ if ( i == 0 ) { token[i] = c; if ( token[i] != '\0' ) { 30008908: e3530000 cmp r3, #0 ; 0x0 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 3000890c: e5c13000 strb r3, [r1] if ( token[i] != '\0' ) { 30008910: 13a03001 movne r3, #1 ; 0x1 30008914: 11a00003 movne r0, r3 30008918: 0a000004 beq 30008930 /* * Set token_len to the number of characters copied. */ *token_len = i; 3000891c: e58c3000 str r3, [ip] 30008920: e8bd8010 pop {r4, pc} c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 30008924: e3a00004 mov r0, #4 ; 0x4 <== NOT EXECUTED 30008928: e8bd8010 pop {r4, pc} <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 3000892c: e5c43000 strb r3, [r4] type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 30008930: e3a03000 mov r3, #0 ; 0x0 30008934: e1a00003 mov r0, r3 /* * Set token_len to the number of characters copied. */ *token_len = i; 30008938: e58c3000 str r3, [ip] 3000893c: e8bd8010 pop {r4, pc} 30008940: 30014ce4 .word 0x30014ce4 30008944: 30014e94 .word 0x30014e94 3000353c : int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 3000353c: e59f1008 ldr r1, [pc, #8] ; 3000354c <== NOT EXECUTED 30003540: e59f2008 ldr r2, [pc, #8] ; 30003550 <== NOT EXECUTED 30003544: e59f3008 ldr r3, [pc, #8] ; 30003554 <== NOT EXECUTED 30003548: ea000002 b 30003558 <== NOT EXECUTED 3000354c: 3003e550 .word 0x3003e550 30003550: 3003e918 .word 0x3003e918 30003554: 3003e8a8 .word 0x3003e8a8 30008948 : 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 ) { 30008948: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 3000894c: e1a06000 mov r6, r0 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 30008950: e59f00e8 ldr r0, [pc, #232] ; 30008a40 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 ) { 30008954: e1a09002 mov r9, r2 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 30008958: e590e000 ldr lr, [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 ) { 3000895c: e1a08003 mov r8, r3 * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { 30008960: e35e0010 cmp lr, #16 ; 0x10 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 ) { 30008964: e24dd004 sub sp, sp, #4 ; 0x4 30008968: e1a0a001 mov sl, r1 * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { 3000896c: 13a02020 movne r2, #32 ; 0x20 30008970: 13a03000 movne r3, #0 ; 0x0 30008974: 0a000006 beq 30008994 30008978: e15e0002 cmp lr, r2 /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 3000897c: e2833001 add r3, r3, #1 ; 0x1 30008980: e1a02082 lsl r2, r2, #1 if (bit_mask == requested_bytes_per_block) { 30008984: 0a000002 beq 30008994 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 30008988: e3530005 cmp r3, #5 ; 0x5 3000898c: 1afffff9 bne 30008978 30008990: 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) 30008994: e59fc0a8 ldr ip, [pc, #168] ; 30008a44 * 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( 30008998: e3a07000 mov r7, #0 ; 0x0 bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 3000899c: 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( 300089a0: e3a01001 mov r1, #1 ; 0x1 300089a4: e59f209c ldr r2, [pc, #156] ; 30008a48 300089a8: e59f309c ldr r3, [pc, #156] ; 30008a4c 300089ac: e1a00007 mov r0, r7 300089b0: e58d7000 str r7, [sp] 300089b4: eb00080d bl 3000a9f0 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; 300089b8: e59f5090 ldr r5, [pc, #144] ; 30008a50 300089bc: e286c030 add ip, r6, #48 ; 0x30 300089c0: e1a04005 mov r4, r5 * 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( 300089c4: e5860018 str r0, [r6, #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; 300089c8: e8b4000f ldm r4!, {r0, r1, r2, r3} 300089cc: e8ac000f stmia ip!, {r0, r1, r2, r3} 300089d0: e8b4000f ldm r4!, {r0, r1, r2, r3} 300089d4: e8ac000f stmia ip!, {r0, r1, r2, r3} 300089d8: 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; 300089dc: e586a020 str sl, [r6, #32] temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 300089e0: e88c000f stm ip, {r0, r1, r2, r3} "", ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 300089e4: e586801c str r8, [r6, #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 ) ); 300089e8: e3a00001 mov r0, #1 ; 0x1 300089ec: e3a0100c mov r1, #12 ; 0xc 300089f0: eb0000fb bl 30008de4 if ( !fs_info ){ 300089f4: e3500000 cmp r0, #0 ; 0x0 300089f8: 0a000009 beq 30008a24 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; 300089fc: e5962018 ldr r2, [r6, #24] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 30008a00: e3a03001 mov r3, #1 ; 0x1 30008a04: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 30008a08: e5808008 str r8, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 30008a0c: e5809004 str r9, [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; 30008a10: e586002c str r0, [r6, #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; 30008a14: e5823038 str r3, [r2, #56] 30008a18: e1a00007 mov r0, r7 return 0; } 30008a1c: e28dd004 add sp, sp, #4 ; 0x4 30008a20: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ){ free(temp_mt_entry->mt_fs_root.node_access); 30008a24: e5960018 ldr r0, [r6, #24] <== NOT EXECUTED 30008a28: eb00012c bl 30008ee0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 30008a2c: eb000a16 bl 3000b28c <__errno> <== NOT EXECUTED 30008a30: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 30008a34: e5803000 str r3, [r0] <== NOT EXECUTED 30008a38: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008a3c: eafffff6 b 30008a1c <== NOT EXECUTED 30008a40: 30015210 .word 0x30015210 30008a44: 30015e8c .word 0x30015e8c 30008a48: 30014ce0 .word 0x30014ce0 30008a4c: 000041ed .word 0x000041ed 30008a50: 30014768 .word 0x30014768 30003664 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 30003664: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 30003668: 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 */ ) { 3000366c: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 30003670: e58d3028 str r3, [sp, #40] <== 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 */ ) { 30003674: 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 ) 30003678: e1d313b4 ldrh r1, [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 */ ) { 3000367c: 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 ) 30003680: e3510007 cmp r1, #7 ; 0x7 <== NOT EXECUTED 30003684: 8a000019 bhi 300036f0 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, new_name, &i ); 30003688: e28d4007 add r4, sp, #7 ; 0x7 <== NOT EXECUTED 3000368c: e1a01004 mov r1, r4 <== NOT EXECUTED 30003690: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 30003694: ebffff6b bl 30003448 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 30003698: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 3000369c: e1a00005 mov r0, r5 <== NOT EXECUTED 300036a0: e1a02004 mov r2, r4 <== NOT EXECUTED 300036a4: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 300036a8: e59f3068 ldr r3, [pc, #104] ; 30003718 <== NOT EXECUTED 300036ac: e58dc000 str ip, [sp] <== NOT EXECUTED 300036b0: eb0064d3 bl 3001ca04 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 300036b4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300036b8: 0a000011 beq 30003704 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 300036bc: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 300036c0: 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++; 300036c4: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 300036c8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 300036cc: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 300036d0: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 300036d4: eb000244 bl 30003fec <== NOT EXECUTED 300036d8: e59d2038 ldr r2, [sp, #56] <== NOT EXECUTED 300036dc: e59d3028 ldr r3, [sp, #40] <== NOT EXECUTED 300036e0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300036e4: e5832048 str r2, [r3, #72] <== NOT EXECUTED return 0; } 300036e8: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 300036ec: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) rtems_set_errno_and_return_minus_one( EMLINK ); 300036f0: eb00a5c1 bl 3002cdfc <__errno> <== NOT EXECUTED 300036f4: e3a0301f mov r3, #31 ; 0x1f <== NOT EXECUTED 300036f8: e5803000 str r3, [r0] <== NOT EXECUTED 300036fc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003700: eafffff8 b 300036e8 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 30003704: eb00a5bc bl 3002cdfc <__errno> <== NOT EXECUTED 30003708: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3000370c: e5803000 str r3, [r0] <== NOT EXECUTED 30003710: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003714: eafffff3 b 300036e8 <== NOT EXECUTED 30003718: 0000a1ff .word 0x0000a1ff 300246ac : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 300246ac: e2503000 subs r3, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 300246b0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 300246b4: 0a00000f beq 300246f8 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300246b8: e593304c ldr r3, [r3, #76] <== NOT EXECUTED 300246bc: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 300246c0: 1a000011 bne 3002470c <== 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 ); 300246c4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 300246c8: ebfffe99 bl 30024134 <== NOT EXECUTED if ( *block_entry_ptr ) 300246cc: 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 ); 300246d0: e1a04000 mov r4, r0 <== NOT EXECUTED if ( *block_entry_ptr ) 300246d4: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 300246d8: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 300246dc: 18bd8030 popne {r4, r5, pc} <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 300246e0: ebfffe86 bl 30024100 <== NOT EXECUTED if ( !memory ) 300246e4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 300246e8: 15840000 strne r0, [r4] <== NOT EXECUTED fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 300246ec: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 300246f0: 11a00005 movne r0, r5 <== NOT EXECUTED return 0; } 300246f4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 300246f8: e59f0020 ldr r0, [pc, #32] ; 30024720 <== NOT EXECUTED 300246fc: e59f1020 ldr r1, [pc, #32] ; 30024724 <== NOT EXECUTED 30024700: e59f2020 ldr r2, [pc, #32] ; 30024728 <== NOT EXECUTED 30024704: e59f3020 ldr r3, [pc, #32] ; 3002472c <== NOT EXECUTED 30024708: ebffe3cc bl 3001d640 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3002470c: e59f000c ldr r0, [pc, #12] ; 30024720 <== NOT EXECUTED 30024710: e59f1018 ldr r1, [pc, #24] ; 30024730 <== NOT EXECUTED 30024714: e59f200c ldr r2, [pc, #12] ; 30024728 <== NOT EXECUTED 30024718: e59f3014 ldr r3, [pc, #20] ; 30024734 <== NOT EXECUTED 3002471c: ebffe3c7 bl 3001d640 <__assert_func> <== NOT EXECUTED 30024720: 30042114 .word 0x30042114 30024724: 00000169 .word 0x00000169 30024728: 3003eb34 .word 0x3003eb34 3002472c: 30042160 .word 0x30042160 30024730: 0000016d .word 0x0000016d 30024734: 3004216c .word 0x3004216c 30024738 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30024738: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 3002473c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30024740: e1a08001 mov r8, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024744: 0a000037 beq 30024828 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30024748: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 3002474c: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 30024750: 1a000039 bne 3002483c <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 30024754: e59f20f4 ldr r2, [pc, #244] ; 30024850 <== NOT EXECUTED 30024758: e5924000 ldr r4, [r2] <== NOT EXECUTED 3002475c: e1a03124 lsr r3, r4, #2 <== NOT EXECUTED 30024760: e0213393 mla r1, r3, r3, r3 <== NOT EXECUTED 30024764: e0223391 mla r2, r1, r3, r3 <== NOT EXECUTED 30024768: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED 3002476c: e0030294 mul r3, r4, r2 <== NOT EXECUTED 30024770: e1580003 cmp r8, r3 <== NOT EXECUTED 30024774: 2a000026 bcs 30024814 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 30024778: e5956050 ldr r6, [r5, #80] <== NOT EXECUTED 3002477c: e1580006 cmp r8, r6 <== NOT EXECUTED 30024780: d3a00000 movle r0, #0 ; 0x0 <== NOT EXECUTED 30024784: 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; 30024788: e1a01004 mov r1, r4 <== NOT EXECUTED 3002478c: e1a00008 mov r0, r8 <== NOT EXECUTED 30024790: eb00625f bl 3003d114 <__aeabi_idiv> <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 30024794: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 30024798: e1a07000 mov r7, r0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 3002479c: e1a00006 mov r0, r6 <== NOT EXECUTED 300247a0: eb00625b bl 3003d114 <__aeabi_idiv> <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 300247a4: e1570000 cmp r7, r0 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 300247a8: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 300247ac: 3a000015 bcc 30024808 <== NOT EXECUTED 300247b0: e1a04000 mov r4, r0 <== NOT EXECUTED 300247b4: ea000002 b 300247c4 <== NOT EXECUTED 300247b8: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED 300247bc: e1570004 cmp r7, r4 <== NOT EXECUTED 300247c0: 3a000010 bcc 30024808 <== NOT EXECUTED if ( IMFS_memfile_addblock( the_jnode, block ) ) { 300247c4: e1a00005 mov r0, r5 <== NOT EXECUTED 300247c8: e1a01004 mov r1, r4 <== NOT EXECUTED 300247cc: ebffffb6 bl 300246ac <== NOT EXECUTED 300247d0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300247d4: 0afffff7 beq 300247b8 <== NOT EXECUTED 300247d8: ea000003 b 300247ec <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 300247dc: e1a01004 mov r1, r4 <== NOT EXECUTED 300247e0: e1a00005 mov r0, r5 <== 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-- ) { 300247e4: e2444001 sub r4, r4, #1 ; 0x1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 300247e8: ebfffeeb bl 3002439c <== 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-- ) { 300247ec: e1560004 cmp r6, r4 <== NOT EXECUTED 300247f0: 9afffff9 bls 300247dc <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 300247f4: eb002180 bl 3002cdfc <__errno> <== NOT EXECUTED 300247f8: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 300247fc: e5803000 str r3, [r0] <== NOT EXECUTED 30024800: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30024804: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 30024808: e5858050 str r8, [r5, #80] <== NOT EXECUTED 3002480c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 30024810: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); 30024814: eb002178 bl 3002cdfc <__errno> <== NOT EXECUTED 30024818: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3002481c: e5803000 str r3, [r0] <== NOT EXECUTED 30024820: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30024824: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024828: e59f0024 ldr r0, [pc, #36] ; 30024854 <== NOT EXECUTED 3002482c: e59f1024 ldr r1, [pc, #36] ; 30024858 <== NOT EXECUTED 30024830: e59f2024 ldr r2, [pc, #36] ; 3002485c <== NOT EXECUTED 30024834: e59f3024 ldr r3, [pc, #36] ; 30024860 <== NOT EXECUTED 30024838: ebffe380 bl 3001d640 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3002483c: e59f0010 ldr r0, [pc, #16] ; 30024854 <== NOT EXECUTED 30024840: e59f101c ldr r1, [pc, #28] ; 30024864 <== NOT EXECUTED 30024844: e59f2010 ldr r2, [pc, #16] ; 3002485c <== NOT EXECUTED 30024848: e59f3018 ldr r3, [pc, #24] ; 30024868 <== NOT EXECUTED 3002484c: ebffe37b bl 3001d640 <__assert_func> <== NOT EXECUTED 30024850: 30045fd8 .word 0x30045fd8 30024854: 30042114 .word 0x30042114 30024858: 00000131 .word 0x00000131 3002485c: 3003eb4c .word 0x3003eb4c 30024860: 30042160 .word 0x30042160 30024864: 00000135 .word 0x00000135 30024868: 3004216c .word 0x3004216c 30024134 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 30024134: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024138: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 3002413c: e1a04001 mov r4, r1 <== NOT EXECUTED 30024140: e1a07002 mov r7, r2 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024144: 0a00002a beq 300241f4 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 30024148: e596304c ldr r3, [r6, #76] <== NOT EXECUTED 3002414c: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 30024150: 1a00002c bne 30024208 <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 30024154: e59f3224 ldr r3, [pc, #548] ; 30024380 <== NOT EXECUTED 30024158: e5932000 ldr r2, [r3] <== NOT EXECUTED 3002415c: e1a05122 lsr r5, r2, #2 <== NOT EXECUTED 30024160: e2453001 sub r3, r5, #1 ; 0x1 <== NOT EXECUTED 30024164: e1510003 cmp r1, r3 <== NOT EXECUTED 30024168: 9a000019 bls 300241d4 <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 3002416c: e0215595 mla r1, r5, r5, r5 <== NOT EXECUTED 30024170: e2413001 sub r3, r1, #1 ; 0x1 <== NOT EXECUTED 30024174: e1540003 cmp r4, r3 <== NOT EXECUTED 30024178: 8a00002b bhi 3002422c <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 3002417c: e0654004 rsb r4, r5, r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30024180: e1a00004 mov r0, r4 <== NOT EXECUTED 30024184: e1a01005 mov r1, r5 <== NOT EXECUTED 30024188: eb006431 bl 3003d254 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3002418c: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30024190: e1a08000 mov r8, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30024194: e1a00004 mov r0, r4 <== NOT EXECUTED 30024198: eb006399 bl 3003d004 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 3002419c: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 300241a0: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->doubly_indirect; 300241a4: e5960058 ldr r0, [r6, #88] <== NOT EXECUTED if ( malloc_it ) { 300241a8: 0a000045 beq 300242c4 <== NOT EXECUTED if ( !p ) { 300241ac: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300241b0: 0a000050 beq 300242f8 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 300241b4: e7901104 ldr r1, [r0, r4, lsl #2] <== NOT EXECUTED 300241b8: e1a03104 lsl r3, r4, #2 <== NOT EXECUTED if ( !p1 ) { 300241bc: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 300241c0: e0804003 add r4, r0, r3 <== NOT EXECUTED if ( !p1 ) { 300241c4: 0a000050 beq 3002430c <== NOT EXECUTED if ( !p1 ) return 0; p[ doubly ] = (block_p) p1; } return (block_p *)&p1[ singly ]; 300241c8: e1a03108 lsl r3, r8, #2 <== NOT EXECUTED 300241cc: e0810003 add r0, r1, r3 <== NOT EXECUTED 300241d0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 300241d4: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 300241d8: e5960054 ldr r0, [r6, #84] <== NOT EXECUTED if ( malloc_it ) { 300241dc: 0a00000e beq 3002421c <== NOT EXECUTED if ( !p ) { 300241e0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300241e4: 0a00003e beq 300242e4 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 300241e8: e1a03104 lsl r3, r4, #2 <== NOT EXECUTED 300241ec: e0800003 add r0, r0, r3 <== NOT EXECUTED 300241f0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 300241f4: e59f0188 ldr r0, [pc, #392] ; 30024384 <== NOT EXECUTED 300241f8: e59f1188 ldr r1, [pc, #392] ; 30024388 <== NOT EXECUTED 300241fc: e59f2188 ldr r2, [pc, #392] ; 3002438c <== NOT EXECUTED 30024200: e59f3188 ldr r3, [pc, #392] ; 30024390 <== NOT EXECUTED 30024204: ebffe50d bl 3001d640 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 30024208: e59f0174 ldr r0, [pc, #372] ; 30024384 <== NOT EXECUTED 3002420c: e59f1180 ldr r1, [pc, #384] ; 30024394 <== NOT EXECUTED 30024210: e59f2174 ldr r2, [pc, #372] ; 3002438c <== NOT EXECUTED 30024214: e59f317c ldr r3, [pc, #380] ; 30024398 <== NOT EXECUTED 30024218: ebffe508 bl 3001d640 <__assert_func> <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 3002421c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024220: 1afffff0 bne 300241e8 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30024224: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 30024228: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 3002422c: e0235591 mla r3, r1, r5, r5 <== NOT EXECUTED 30024230: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30024234: e1540003 cmp r4, r3 <== NOT EXECUTED 30024238: 8afffff9 bhi 30024224 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 3002423c: e0614004 rsb r4, r1, r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30024240: e1a00004 mov r0, r4 <== NOT EXECUTED 30024244: e1a01005 mov r1, r5 <== NOT EXECUTED 30024248: eb006401 bl 3003d254 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3002424c: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30024250: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30024254: e1a00004 mov r0, r4 <== NOT EXECUTED 30024258: eb006369 bl 3003d004 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 3002425c: 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; 30024260: e1a04000 mov r4, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 30024264: eb006366 bl 3003d004 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 30024268: 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; 3002426c: e1a08000 mov r8, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 30024270: e1a00004 mov r0, r4 <== NOT EXECUTED 30024274: eb0063f6 bl 3003d254 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 30024278: e3570000 cmp r7, #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; 3002427c: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->triply_indirect; 30024280: e596005c ldr r0, [r6, #92] <== NOT EXECUTED if ( malloc_it ) { 30024284: 0a000025 beq 30024320 <== NOT EXECUTED if ( !p ) { 30024288: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002428c: 0a00002c beq 30024344 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 30024290: e790c108 ldr ip, [r0, r8, lsl #2] <== NOT EXECUTED 30024294: e1a03108 lsl r3, r8, #2 <== NOT EXECUTED if ( !p1 ) { 30024298: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 3002429c: e0805003 add r5, r0, r3 <== NOT EXECUTED if ( !p1 ) { 300242a0: 0a000031 beq 3002436c <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 300242a4: e79c0104 ldr r0, [ip, r4, lsl #2] <== NOT EXECUTED 300242a8: e1a03104 lsl r3, r4, #2 <== NOT EXECUTED if ( !p2 ) { 300242ac: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 300242b0: e08c4003 add r4, ip, r3 <== NOT EXECUTED if ( !p2 ) { 300242b4: 0a000027 beq 30024358 <== NOT EXECUTED p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 300242b8: e1a0310a lsl r3, sl, #2 <== NOT EXECUTED 300242bc: e0800003 add r0, r0, r3 <== NOT EXECUTED 300242c0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 300242c4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300242c8: 0affffd5 beq 30024224 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 300242cc: e7900104 ldr r0, [r0, r4, lsl #2] <== NOT EXECUTED if ( !p ) 300242d0: 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 ]; 300242d4: 11a03108 lslne r3, r8, #2 <== NOT EXECUTED 300242d8: 10800003 addne r0, r0, r3 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 300242dc: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 300242e0: eaffffcf b 30024224 <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 300242e4: ebffff85 bl 30024100 <== NOT EXECUTED if ( !p ) 300242e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 0; info->indirect = p; 300242ec: 15860054 strne r0, [r6, #84] <== NOT EXECUTED if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); if ( !p ) 300242f0: 1affffbc bne 300241e8 <== NOT EXECUTED 300242f4: eaffffca b 30024224 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 300242f8: ebffff80 bl 30024100 <== NOT EXECUTED if ( !p ) 300242fc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024300: 0affffc7 beq 30024224 <== NOT EXECUTED return 0; info->doubly_indirect = p; 30024304: e5860058 str r0, [r6, #88] <== NOT EXECUTED 30024308: eaffffa9 b 300241b4 <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 3002430c: ebffff7b bl 30024100 <== NOT EXECUTED if ( !p1 ) 30024310: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 30024314: 0affffc2 beq 30024224 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 30024318: e5841000 str r1, [r4] <== NOT EXECUTED 3002431c: eaffffa9 b 300241c8 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 30024320: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024324: 0affffbe beq 30024224 <== 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 ]; 30024328: e7900108 ldr r0, [r0, r8, lsl #2] <== NOT EXECUTED if ( !p1 ) 3002432c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30024330: 17902104 ldrne r2, [r0, r4, lsl #2] <== NOT EXECUTED 30024334: 11a0310a lslne r3, sl, #2 <== NOT EXECUTED 30024338: 10820003 addne r0, r2, r3 <== 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 ) 3002433c: 0affffb8 beq 30024224 <== NOT EXECUTED 30024340: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 30024344: ebffff6d bl 30024100 <== NOT EXECUTED if ( !p ) 30024348: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002434c: 0affffb4 beq 30024224 <== NOT EXECUTED return 0; info->triply_indirect = p; 30024350: e586005c str r0, [r6, #92] <== NOT EXECUTED 30024354: eaffffcd b 30024290 <== NOT EXECUTED p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); 30024358: ebffff68 bl 30024100 <== NOT EXECUTED if ( !p2 ) 3002435c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024360: 0affffaf beq 30024224 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 30024364: e5840000 str r0, [r4] <== NOT EXECUTED 30024368: eaffffd2 b 300242b8 <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 3002436c: ebffff63 bl 30024100 <== NOT EXECUTED if ( !p1 ) 30024370: e250c000 subs ip, r0, #0 ; 0x0 <== NOT EXECUTED 30024374: 0affffaa beq 30024224 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 30024378: e585c000 str ip, [r5] <== NOT EXECUTED 3002437c: eaffffc8 b 300242a4 <== NOT EXECUTED 30024380: 30045fd8 .word 0x30045fd8 30024384: 30042114 .word 0x30042114 30024388: 00000386 .word 0x00000386 3002438c: 3003eab8 .word 0x3003eab8 30024390: 30042160 .word 0x30042160 30024394: 0000038a .word 0x0000038a 30024398: 3004216c .word 0x3004216c 30024c24 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 30024c24: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024c28: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 30024c2c: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 30024c30: e1a05001 mov r5, r1 <== NOT EXECUTED 30024c34: e1a06002 mov r6, r2 <== NOT EXECUTED 30024c38: e1a00003 mov r0, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024c3c: 0a00006b beq 30024df0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 30024c40: e59a104c ldr r1, [sl, #76] <== NOT EXECUTED 30024c44: e2413005 sub r3, r1, #5 ; 0x5 <== NOT EXECUTED 30024c48: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 30024c4c: 8a000071 bhi 30024e18 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 30024c50: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30024c54: 0a00006a beq 30024e04 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 30024c58: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024c5c: 0a00005e beq 30024ddc <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 30024c60: e3510006 cmp r1, #6 ; 0x6 <== NOT EXECUTED 30024c64: 0a00004d beq 30024da0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30024c68: e59f91e4 ldr r9, [pc, #484] ; 30024e54 <== 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 ) 30024c6c: e59a2050 ldr r2, [sl, #80] <== NOT EXECUTED 30024c70: e0803005 add r3, r0, r5 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30024c74: e5994000 ldr r4, [r9] <== 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 ) 30024c78: e1530002 cmp r3, r2 <== NOT EXECUTED 30024c7c: 91a08000 movls r8, r0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30024c80: e1a01004 mov r1, r4 <== NOT EXECUTED 30024c84: e1a00005 mov r0, r5 <== 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; 30024c88: 80658002 rsbhi r8, r5, r2 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30024c8c: eb0061a3 bl 3003d320 <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30024c90: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30024c94: e1a07000 mov r7, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30024c98: e1a00005 mov r0, r5 <== NOT EXECUTED 30024c9c: eb00611c bl 3003d114 <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 30024ca0: e3570000 cmp r7, #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; 30024ca4: e1a05000 mov r5, r0 <== NOT EXECUTED if ( start_offset ) { 30024ca8: 1a000029 bne 30024d54 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30024cac: e5994000 ldr r4, [r9] <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30024cb0: e1580004 cmp r8, r4 <== NOT EXECUTED 30024cb4: 3a000010 bcc 30024cfc <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30024cb8: e1a0000a mov r0, sl <== NOT EXECUTED 30024cbc: e1a01005 mov r1, r5 <== NOT EXECUTED 30024cc0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30024cc4: ebfffd1a bl 30024134 <== NOT EXECUTED assert( block_ptr ); 30024cc8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024ccc: 0a00003d beq 30024dc8 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 30024cd0: e5901000 ldr r1, [r0] <== NOT EXECUTED 30024cd4: e1a02004 mov r2, r4 <== NOT EXECUTED 30024cd8: e1a00006 mov r0, r6 <== NOT EXECUTED 30024cdc: eb0029be bl 3002f3dc <== 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 ) { 30024ce0: e5993000 ldr r3, [r9] <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 30024ce4: e0648008 rsb r8, r4, r8 <== 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 ) { 30024ce8: e1530008 cmp r3, r8 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; 30024cec: e0866004 add r6, r6, r4 <== NOT EXECUTED block++; 30024cf0: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; copied += to_copy; 30024cf4: e0877004 add r7, r7, 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 ) { 30024cf8: 9affffee bls 30024cb8 <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 30024cfc: e3580000 cmp r8, #0 ; 0x0 <== 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 ) { 30024d00: e1a04007 mov r4, r7 <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 30024d04: 0a00000a beq 30024d34 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30024d08: e1a01005 mov r1, r5 <== NOT EXECUTED 30024d0c: e1a0000a mov r0, sl <== NOT EXECUTED 30024d10: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30024d14: ebfffd06 bl 30024134 <== NOT EXECUTED assert( block_ptr ); 30024d18: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 30024d1c: 0a000047 beq 30024e40 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 30024d20: e1a00006 mov r0, r6 <== NOT EXECUTED 30024d24: e5911000 ldr r1, [r1] <== NOT EXECUTED 30024d28: e1a02008 mov r2, r8 <== NOT EXECUTED 30024d2c: eb0029aa bl 3002f3dc <== NOT EXECUTED copied += my_length; 30024d30: e0884007 add r4, r8, r7 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); 30024d34: e1a0000d mov r0, sp <== NOT EXECUTED 30024d38: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30024d3c: ebff7caa bl 30003fec <== NOT EXECUTED 30024d40: e59d3000 ldr r3, [sp] <== NOT EXECUTED return copied; 30024d44: e1a00004 mov r0, r4 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 30024d48: e58a3040 str r3, [sl, #64] <== NOT EXECUTED return copied; } 30024d4c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30024d50: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30024d54: e1a0000a mov r0, sl <== NOT EXECUTED 30024d58: e1a01005 mov r1, r5 <== NOT EXECUTED 30024d5c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30024d60: ebfffcf3 bl 30024134 <== NOT EXECUTED assert( block_ptr ); 30024d64: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024d68: 0a00002f beq 30024e2c <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 30024d6c: 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; 30024d70: e0674004 rsb r4, r7, r4 <== NOT EXECUTED 30024d74: e1580004 cmp r8, r4 <== NOT EXECUTED 30024d78: 31a04008 movcc r4, r8 <== 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 ); 30024d7c: e0811007 add r1, r1, r7 <== NOT EXECUTED 30024d80: e1a00006 mov r0, r6 <== NOT EXECUTED 30024d84: e1a02004 mov r2, r4 <== NOT EXECUTED 30024d88: eb002993 bl 3002f3dc <== NOT EXECUTED dest += to_copy; 30024d8c: e0866004 add r6, r6, r4 <== NOT EXECUTED block++; 30024d90: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 30024d94: e0648008 rsb r8, r4, r8 <== NOT EXECUTED 30024d98: e1a07004 mov r7, r4 <== NOT EXECUTED 30024d9c: eaffffc2 b 30024cac <== 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)) 30024da0: e59a4050 ldr r4, [sl, #80] <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 30024da4: 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)) 30024da8: e0654004 rsb r4, r5, r4 <== NOT EXECUTED 30024dac: e1540000 cmp r4, r0 <== NOT EXECUTED 30024db0: 21a04000 movcs r4, r0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 30024db4: e0811005 add r1, r1, r5 <== NOT EXECUTED 30024db8: e1a00002 mov r0, r2 <== NOT EXECUTED 30024dbc: e1a02004 mov r2, r4 <== NOT EXECUTED 30024dc0: eb002985 bl 3002f3dc <== NOT EXECUTED 30024dc4: eaffffda b 30024d34 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30024dc8: e59f0088 ldr r0, [pc, #136] ; 30024e58 <== NOT EXECUTED 30024dcc: e59f1088 ldr r1, [pc, #136] ; 30024e5c <== NOT EXECUTED 30024dd0: e59f2088 ldr r2, [pc, #136] ; 30024e60 <== NOT EXECUTED 30024dd4: e59f3088 ldr r3, [pc, #136] ; 30024e64 <== NOT EXECUTED 30024dd8: ebffe218 bl 3001d640 <__assert_func> <== NOT EXECUTED * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 30024ddc: eb002006 bl 3002cdfc <__errno> <== NOT EXECUTED 30024de0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30024de4: e5803000 str r3, [r0] <== NOT EXECUTED 30024de8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30024dec: eaffffd6 b 30024d4c <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024df0: e59f0060 ldr r0, [pc, #96] ; 30024e58 <== NOT EXECUTED 30024df4: e59f106c ldr r1, [pc, #108] ; 30024e68 <== NOT EXECUTED 30024df8: e59f2060 ldr r2, [pc, #96] ; 30024e60 <== NOT EXECUTED 30024dfc: e59f3068 ldr r3, [pc, #104] ; 30024e6c <== NOT EXECUTED 30024e00: ebffe20e bl 3001d640 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 30024e04: e59f004c ldr r0, [pc, #76] ; 30024e58 <== NOT EXECUTED 30024e08: e3a01f96 mov r1, #600 ; 0x258 <== NOT EXECUTED 30024e0c: e59f204c ldr r2, [pc, #76] ; 30024e60 <== NOT EXECUTED 30024e10: e59f3058 ldr r3, [pc, #88] ; 30024e70 <== NOT EXECUTED 30024e14: ebffe209 bl 3001d640 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 30024e18: e59f0038 ldr r0, [pc, #56] ; 30024e58 <== NOT EXECUTED 30024e1c: e59f1050 ldr r1, [pc, #80] ; 30024e74 <== NOT EXECUTED 30024e20: e59f2038 ldr r2, [pc, #56] ; 30024e60 <== NOT EXECUTED 30024e24: e59f304c ldr r3, [pc, #76] ; 30024e78 <== NOT EXECUTED 30024e28: ebffe204 bl 3001d640 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30024e2c: e59f0024 ldr r0, [pc, #36] ; 30024e58 <== NOT EXECUTED 30024e30: e3a01fa5 mov r1, #660 ; 0x294 <== NOT EXECUTED 30024e34: e59f2024 ldr r2, [pc, #36] ; 30024e60 <== NOT EXECUTED 30024e38: e59f3024 ldr r3, [pc, #36] ; 30024e64 <== NOT EXECUTED 30024e3c: ebffe1ff bl 3001d640 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30024e40: e59f0010 ldr r0, [pc, #16] ; 30024e58 <== NOT EXECUTED 30024e44: e59f1030 ldr r1, [pc, #48] ; 30024e7c <== NOT EXECUTED 30024e48: e59f2010 ldr r2, [pc, #16] ; 30024e60 <== NOT EXECUTED 30024e4c: e59f3010 ldr r3, [pc, #16] ; 30024e64 <== NOT EXECUTED 30024e50: ebffe1fa bl 3001d640 <__assert_func> <== NOT EXECUTED 30024e54: 30045fd8 .word 0x30045fd8 30024e58: 30042114 .word 0x30042114 30024e5c: 000002a5 .word 0x000002a5 30024e60: 3003eaec .word 0x3003eaec 30024e64: 300421a4 .word 0x300421a4 30024e68: 0000024a .word 0x0000024a 30024e6c: 30042160 .word 0x30042160 30024e70: 300421fc .word 0x300421fc 30024e74: 0000024f .word 0x0000024f 30024e78: 300421b0 .word 0x300421b0 30024e7c: 000002b7 .word 0x000002b7 3002444c : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 3002444c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024450: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 30024454: 0a00004f beq 30024598 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30024458: e59a304c ldr r3, [sl, #76] <== NOT EXECUTED 3002445c: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 30024460: 1a000051 bne 300245ac <== 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; 30024464: e59f7154 ldr r7, [pc, #340] ; 300245c0 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 30024468: e59a3054 ldr r3, [sl, #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; 3002446c: e5972000 ldr r2, [r7] <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 30024470: 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; 30024474: e1a08122 lsr r8, r2, #2 <== NOT EXECUTED */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 30024478: 128a0054 addne r0, sl, #84 ; 0x54 <== NOT EXECUTED 3002447c: 11a01008 movne r1, r8 <== NOT EXECUTED 30024480: 1bffffcf blne 300243c4 <== NOT EXECUTED } if ( info->doubly_indirect ) { 30024484: e59a0058 ldr r0, [sl, #88] <== NOT EXECUTED 30024488: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002448c: 0a000014 beq 300244e4 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 3002449c: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 300244a0: e1a02004 mov r2, r4 <== NOT EXECUTED 300244a4: ea000000 b 300244ac <== NOT EXECUTED 300244a8: e59a0058 ldr r0, [sl, #88] <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 300244ac: e7903102 ldr r3, [r0, r2, lsl #2] <== NOT EXECUTED 300244b0: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED 300244b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED memfile_free_blocks_in_table( 300244b8: 10800002 addne r0, r0, r2 <== NOT EXECUTED 300244bc: 11a01008 movne r1, r8 <== NOT EXECUTED 300244c0: 1bffffbf blne 300243c4 <== 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 ); 300244d8: e28a0058 add r0, sl, #88 ; 0x58 <== NOT EXECUTED 300244dc: e1a01008 mov r1, r8 <== NOT EXECUTED 300244e0: ebffffb7 bl 300243c4 <== NOT EXECUTED } if ( info->triply_indirect ) { 300244e4: e59a005c ldr r0, [sl, #92] <== NOT EXECUTED 300244e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300244ec: 0a000027 beq 30024590 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 300244fc: e5905000 ldr r5, [r0] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30024500: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30024504: 13a06000 movne r6, #0 ; 0x0 <== NOT EXECUTED 30024508: 11a09006 movne r9, r6 <== NOT EXECUTED 3002450c: 0a00001c beq 30024584 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 3002451c: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 30024520: e1a02004 mov r2, r4 <== NOT EXECUTED if ( p[j] ) { 30024524: e7953102 ldr r3, [r5, r2, lsl #2] <== NOT EXECUTED 30024528: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED 3002452c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 30024530: 10850002 addne r0, r5, r2 <== NOT EXECUTED 30024534: 11a01008 movne r1, r8 <== NOT EXECUTED 30024538: 1bffffa1 blne 300243c4 <== 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 30024550: e59a005c ldr r0, [sl, #92] <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 30024554: e0800009 add r0, r0, r9 <== NOT EXECUTED 30024558: e1a01008 mov r1, r8 <== NOT EXECUTED 3002455c: ebffff98 bl 300243c4 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 30024570: e59a005c ldr r0, [sl, #92] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30024574: e1a09106 lsl r9, r6, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 30024578: e7905106 ldr r5, [r0, r6, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 3002457c: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30024580: 1affffe2 bne 30024510 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 30024584: e28a005c add r0, sl, #92 ; 0x5c <== NOT EXECUTED 30024588: e1a01008 mov r1, r8 <== NOT EXECUTED 3002458c: ebffff8c bl 300243c4 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 30024590: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30024594: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024598: e59f0024 ldr r0, [pc, #36] ; 300245c4 <== NOT EXECUTED 3002459c: e3a01f7b mov r1, #492 ; 0x1ec <== NOT EXECUTED 300245a0: e59f2020 ldr r2, [pc, #32] ; 300245c8 <== NOT EXECUTED 300245a4: e59f3020 ldr r3, [pc, #32] ; 300245cc <== NOT EXECUTED 300245a8: ebffe424 bl 3001d640 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300245ac: e59f0010 ldr r0, [pc, #16] ; 300245c4 <== NOT EXECUTED 300245b0: e3a01e1f mov r1, #496 ; 0x1f0 <== NOT EXECUTED 300245b4: e59f200c ldr r2, [pc, #12] ; 300245c8 <== NOT EXECUTED 300245b8: e59f3010 ldr r3, [pc, #16] ; 300245d0 <== NOT EXECUTED 300245bc: ebffe41f bl 3001d640 <__assert_func> <== NOT EXECUTED 300245c0: 30045fd8 .word 0x30045fd8 300245c4: 30042114 .word 0x30042114 300245c8: 3003eb00 .word 0x3003eb00 300245cc: 30042160 .word 0x30042160 300245d0: 3004216c .word 0x3004216c 3002439c : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 3002439c: 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 ); 300243a0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300243a4: ebffff62 bl 30024134 <== NOT EXECUTED ptr = *block_entry_ptr; 300243a8: e5902000 ldr r2, [r0] <== NOT EXECUTED *block_entry_ptr = 0; 300243ac: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 300243b0: e5803000 str r3, [r0] <== NOT EXECUTED memfile_free_block( ptr ); 300243b4: e1a00002 mov r0, r2 <== NOT EXECUTED 300243b8: ebffff48 bl 300240e0 <== NOT EXECUTED return 1; } 300243bc: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 300243c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30024920 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30024920: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024924: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30024928: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 3002492c: e1a05001 mov r5, r1 <== NOT EXECUTED 30024930: e1a07002 mov r7, r2 <== NOT EXECUTED 30024934: e1a0b003 mov fp, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024938: 0a00006b beq 30024aec <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3002493c: e59a304c ldr r3, [sl, #76] <== NOT EXECUTED 30024940: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 30024944: 1a000063 bne 30024ad8 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 30024948: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3002494c: 0a00006b beq 30024b00 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 30024950: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED 30024954: 0a00005a beq 30024ac4 <== 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 ) { 30024958: e59a3050 ldr r3, [sl, #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; 3002495c: e08b1001 add r1, fp, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { 30024960: e1510003 cmp r1, r3 <== NOT EXECUTED 30024964: 8a000049 bhi 30024a90 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30024968: e59f91cc ldr r9, [pc, #460] ; 30024b3c <== NOT EXECUTED 3002496c: e1a00005 mov r0, r5 <== NOT EXECUTED 30024970: e5994000 ldr r4, [r9] <== NOT EXECUTED 30024974: e1a01004 mov r1, r4 <== NOT EXECUTED 30024978: eb006268 bl 3003d320 <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 3002497c: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30024980: e1a08000 mov r8, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30024984: e1a00005 mov r0, r5 <== NOT EXECUTED 30024988: eb0061e1 bl 3003d114 <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 3002498c: e3580000 cmp r8, #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; 30024990: e1a06000 mov r6, r0 <== NOT EXECUTED if ( start_offset ) { 30024994: 01a0500b moveq r5, fp <== NOT EXECUTED 30024998: 1a000029 bne 30024a44 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 3002499c: e5994000 ldr r4, [r9] <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300249a0: e1550004 cmp r5, r4 <== NOT EXECUTED 300249a4: 3a000010 bcc 300249ec <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 300249a8: e1a0000a mov r0, sl <== NOT EXECUTED 300249ac: e1a01006 mov r1, r6 <== NOT EXECUTED 300249b0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300249b4: ebfffdde bl 30024134 <== NOT EXECUTED assert( block_ptr ); 300249b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300249bc: 0a00003b beq 30024ab0 <== 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 ); 300249c0: e1a01007 mov r1, r7 <== NOT EXECUTED 300249c4: e5900000 ldr r0, [r0] <== NOT EXECUTED 300249c8: e1a02004 mov r2, r4 <== NOT EXECUTED 300249cc: eb002a82 bl 3002f3dc <== 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 ) { 300249d0: e5993000 ldr r3, [r9] <== NOT EXECUTED fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; 300249d4: e0645005 rsb r5, r4, r5 <== 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 ) { 300249d8: e1530005 cmp r3, r5 <== NOT EXECUTED 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 ); src += to_copy; 300249dc: e0877004 add r7, r7, r4 <== NOT EXECUTED block++; 300249e0: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 300249e4: e0888004 add r8, r8, 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 ) { 300249e8: 9affffee bls 300249a8 <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 300249ec: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 300249f0: 0a00000a beq 30024a20 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 300249f4: e1a01006 mov r1, r6 <== NOT EXECUTED 300249f8: e1a0000a mov r0, sl <== NOT EXECUTED 300249fc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30024a00: ebfffdcb bl 30024134 <== NOT EXECUTED assert( block_ptr ); 30024a04: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024a08: 0a000046 beq 30024b28 <== 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 ); 30024a0c: e5900000 ldr r0, [r0] <== NOT EXECUTED 30024a10: e1a01007 mov r1, r7 <== NOT EXECUTED 30024a14: e1a02005 mov r2, r5 <== NOT EXECUTED 30024a18: eb002a6f bl 3002f3dc <== NOT EXECUTED my_length = 0; copied += to_copy; 30024a1c: e0888005 add r8, r8, r5 <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); 30024a20: e1a0000d mov r0, sp <== NOT EXECUTED 30024a24: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30024a28: ebff7d6f bl 30003fec <== NOT EXECUTED 30024a2c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30024a30: e58a3040 str r3, [sl, #64] <== NOT EXECUTED 30024a34: e58a3044 str r3, [sl, #68] <== NOT EXECUTED return copied; } 30024a38: e1a00008 mov r0, r8 <== NOT EXECUTED 30024a3c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30024a40: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30024a44: e1a0000a mov r0, sl <== NOT EXECUTED 30024a48: e1a01006 mov r1, r6 <== NOT EXECUTED 30024a4c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30024a50: ebfffdb7 bl 30024134 <== NOT EXECUTED assert( block_ptr ); 30024a54: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024a58: 0a00002d beq 30024b14 <== 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 ); 30024a5c: 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; 30024a60: e0684004 rsb r4, r8, r4 <== NOT EXECUTED 30024a64: e154000b cmp r4, fp <== NOT EXECUTED 30024a68: 21a0400b movcs r4, fp <== 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 ); 30024a6c: e0800008 add r0, r0, r8 <== NOT EXECUTED 30024a70: e1a01007 mov r1, r7 <== NOT EXECUTED 30024a74: e1a02004 mov r2, r4 <== NOT EXECUTED 30024a78: eb002a57 bl 3002f3dc <== NOT EXECUTED src += to_copy; 30024a7c: e0877004 add r7, r7, r4 <== NOT EXECUTED block++; 30024a80: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 30024a84: e064500b rsb r5, r4, fp <== NOT EXECUTED copied += to_copy; 30024a88: e1a08004 mov r8, r4 <== NOT EXECUTED 30024a8c: eaffffc2 b 3002499c <== NOT EXECUTED * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { status = IMFS_memfile_extend( the_jnode, last_byte ); 30024a90: ebffff28 bl 30024738 <== NOT EXECUTED if ( status ) 30024a94: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30024a98: 0affffb2 beq 30024968 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 30024a9c: eb0020d6 bl 3002cdfc <__errno> <== NOT EXECUTED 30024aa0: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 30024aa4: e5803000 str r3, [r0] <== NOT EXECUTED 30024aa8: e3e08000 mvn r8, #0 ; 0x0 <== NOT EXECUTED 30024aac: eaffffe1 b 30024a38 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30024ab0: e59f0088 ldr r0, [pc, #136] ; 30024b40 <== NOT EXECUTED 30024ab4: e59f1088 ldr r1, [pc, #136] ; 30024b44 <== NOT EXECUTED 30024ab8: e59f2088 ldr r2, [pc, #136] ; 30024b48 <== NOT EXECUTED 30024abc: e59f3088 ldr r3, [pc, #136] ; 30024b4c <== NOT EXECUTED 30024ac0: ebffe2de bl 3001d640 <__assert_func> <== NOT EXECUTED * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 30024ac4: eb0020cc bl 3002cdfc <__errno> <== NOT EXECUTED 30024ac8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30024acc: e5803000 str r3, [r0] <== NOT EXECUTED 30024ad0: e3e08000 mvn r8, #0 ; 0x0 <== NOT EXECUTED 30024ad4: eaffffd7 b 30024a38 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30024ad8: e59f0060 ldr r0, [pc, #96] ; 30024b40 <== NOT EXECUTED 30024adc: e59f106c ldr r1, [pc, #108] ; 30024b50 <== NOT EXECUTED 30024ae0: e59f2060 ldr r2, [pc, #96] ; 30024b48 <== NOT EXECUTED 30024ae4: e59f3068 ldr r3, [pc, #104] ; 30024b54 <== NOT EXECUTED 30024ae8: ebffe2d4 bl 3001d640 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30024aec: e59f004c ldr r0, [pc, #76] ; 30024b40 <== NOT EXECUTED 30024af0: e59f1060 ldr r1, [pc, #96] ; 30024b58 <== NOT EXECUTED 30024af4: e59f204c ldr r2, [pc, #76] ; 30024b48 <== NOT EXECUTED 30024af8: e59f305c ldr r3, [pc, #92] ; 30024b5c <== NOT EXECUTED 30024afc: ebffe2cf bl 3001d640 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 30024b00: e59f0038 ldr r0, [pc, #56] ; 30024b40 <== NOT EXECUTED 30024b04: e59f1054 ldr r1, [pc, #84] ; 30024b60 <== NOT EXECUTED 30024b08: e59f2038 ldr r2, [pc, #56] ; 30024b48 <== NOT EXECUTED 30024b0c: e59f3050 ldr r3, [pc, #80] ; 30024b64 <== NOT EXECUTED 30024b10: ebffe2ca bl 3001d640 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30024b14: e59f0024 ldr r0, [pc, #36] ; 30024b40 <== NOT EXECUTED 30024b18: e59f1048 ldr r1, [pc, #72] ; 30024b68 <== NOT EXECUTED 30024b1c: e59f2024 ldr r2, [pc, #36] ; 30024b48 <== NOT EXECUTED 30024b20: e59f3024 ldr r3, [pc, #36] ; 30024b4c <== NOT EXECUTED 30024b24: ebffe2c5 bl 3001d640 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30024b28: e59f0010 ldr r0, [pc, #16] ; 30024b40 <== NOT EXECUTED 30024b2c: e3a01fd1 mov r1, #836 ; 0x344 <== NOT EXECUTED 30024b30: e59f2010 ldr r2, [pc, #16] ; 30024b48 <== NOT EXECUTED 30024b34: e59f3010 ldr r3, [pc, #16] ; 30024b4c <== NOT EXECUTED 30024b38: ebffe2c0 bl 3001d640 <__assert_func> <== NOT EXECUTED 30024b3c: 30045fd8 .word 0x30045fd8 30024b40: 30042114 .word 0x30042114 30024b44: 0000032e .word 0x0000032e 30024b48: 3003ead8 .word 0x3003ead8 30024b4c: 300421a4 .word 0x300421a4 30024b50: 000002e5 .word 0x000002e5 30024b54: 3004216c .word 0x3004216c 30024b58: 000002e1 .word 0x000002e1 30024b5c: 30042160 .word 0x30042160 30024b60: 000002ed .word 0x000002ed 30024b64: 3004219c .word 0x3004219c 30024b68: 0000031a .word 0x0000031a 30008a54 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30008a54: e92d40f0 push {r4, r5, r6, r7, lr} 30008a58: e24dd03c sub sp, sp, #60 ; 0x3c 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 ); 30008a5c: e28d7007 add r7, sp, #7 ; 0x7 const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30008a60: e1a05001 mov r5, r1 30008a64: e1a06002 mov r6, 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 ); 30008a68: e1a01007 mov r1, r7 30008a6c: 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 */ ) { 30008a70: 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 ); 30008a74: ebffff76 bl 30008854 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 30008a78: e2053a0f and r3, r5, #61440 ; 0xf000 30008a7c: e3530901 cmp r3, #16384 ; 0x4000 30008a80: 0a000013 beq 30008ad4 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 30008a84: e3530902 cmp r3, #32768 ; 0x8000 30008a88: 03a01005 moveq r1, #5 ; 0x5 30008a8c: 0a000005 beq 30008aa8 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 30008a90: e3530a02 cmp r3, #8192 ; 0x2000 30008a94: 13530a06 cmpne r3, #24576 ; 0x6000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 30008a98: 058d6028 streq r6, [sp, #40] 30008a9c: 058d402c streq r4, [sp, #44] 30008aa0: 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) ) { 30008aa4: 1a00000c bne 30008adc /* * Allocate and fill in an IMFS jnode */ new_node = IMFS_create_node( 30008aa8: e28dc028 add ip, sp, #40 ; 0x28 30008aac: e59d0050 ldr r0, [sp, #80] 30008ab0: e1a02007 mov r2, r7 30008ab4: e1a03005 mov r3, r5 30008ab8: e58dc000 str ip, [sp] 30008abc: eb0007cb bl 3000a9f0 new_name, mode, &info ); if ( !new_node ) 30008ac0: e3500000 cmp r0, #0 ; 0x0 30008ac4: 13a00000 movne r0, #0 ; 0x0 30008ac8: 0a000008 beq 30008af0 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 30008acc: e28dd03c add sp, sp, #60 ; 0x3c 30008ad0: e8bd80f0 pop {r4, r5, r6, r7, pc} type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else { rtems_set_errno_and_return_minus_one( EINVAL ); 30008ad4: e3a01001 mov r1, #1 ; 0x1 30008ad8: eafffff2 b 30008aa8 30008adc: eb0009ea bl 3000b28c <__errno> <== NOT EXECUTED 30008ae0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30008ae4: e5803000 str r3, [r0] <== NOT EXECUTED 30008ae8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008aec: eafffff6 b 30008acc <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 30008af0: eb0009e5 bl 3000b28c <__errno> <== NOT EXECUTED 30008af4: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 30008af8: e5803000 str r3, [r0] <== NOT EXECUTED 30008afc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008b00: eafffff1 b 30008acc <== NOT EXECUTED 300037cc : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 300037cc: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 300037d0: 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 ) 300037d4: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 300037d8: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 300037dc: 1a000002 bne 300037ec <== 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; 300037e0: e582005c str r0, [r2, #92] <== NOT EXECUTED 300037e4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 300037e8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 300037ec: eb00a582 bl 3002cdfc <__errno> <== NOT EXECUTED 300037f0: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 300037f4: e5803000 str r3, [r0] <== NOT EXECUTED 300037f8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300037fc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3000380c : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 3000380c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *node; int i; node = loc->node_access; 30003810: e5904000 ldr r4, [r0] <== NOT EXECUTED if ( node->type != IMFS_SYM_LINK ) 30003814: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 30003818: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 3000381c: 1a000013 bne 30003870 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 30003820: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30003824: 0a00000f beq 30003868 <== NOT EXECUTED 30003828: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 3000382c: e5d33000 ldrb r3, [r3] <== NOT EXECUTED 30003830: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 30003834: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30003838: 11a0c000 movne ip, r0 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 3000383c: 0a000009 beq 30003868 <== NOT EXECUTED 30003840: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 30003844: e1520000 cmp r2, r0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; 30003848: e7c1300c strb r3, [r1, ip] <== 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++ ) 3000384c: e1a0c000 mov ip, r0 <== NOT EXECUTED 30003850: 98bd8010 popls {r4, pc} <== NOT EXECUTED 30003854: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 30003858: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED 3000385c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003860: 1afffff6 bne 30003840 <== NOT EXECUTED 30003864: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30003868: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 3000386c: e8bd8010 pop {r4, pc} <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 30003870: eb00a561 bl 3002cdfc <__errno> <== NOT EXECUTED 30003874: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30003878: e5803000 str r3, [r0] <== NOT EXECUTED 3000387c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003880: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30008b10 : */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30008b10: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 30008b14: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30008b18: 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 ) { 30008b1c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30008b20: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 30008b24: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008b28: 0a000003 beq 30008b3c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 30008b2c: e1a00004 mov r0, r4 <== NOT EXECUTED 30008b30: eb00049b bl 30009da4 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 30008b34: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30008b38: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30008b3c: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30008b40: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30008b44: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30008b48: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30008b4c: e1a0000d mov r0, sp <== NOT EXECUTED 30008b50: eb000149 bl 3000907c <== NOT EXECUTED 30008b54: 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) ) { 30008b58: 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 ); 30008b5c: 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) ) { 30008b60: eb000173 bl 30009134 <== NOT EXECUTED 30008b64: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30008b68: 1a00000d bne 30008ba4 <== NOT EXECUTED 30008b6c: e1d403b4 ldrh r0, [r4, #52] <== NOT EXECUTED 30008b70: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30008b74: 1a00000a bne 30008ba4 <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 30008b78: e59f2044 ldr r2, [pc, #68] ; 30008bc4 <== NOT EXECUTED 30008b7c: e5953000 ldr r3, [r5] <== NOT EXECUTED 30008b80: e5922000 ldr r2, [r2] <== NOT EXECUTED 30008b84: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED 30008b88: e1510003 cmp r1, r3 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 30008b8c: 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; 30008b90: 05820004 streq r0, [r2, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 30008b94: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 30008b98: 0a000004 beq 30008bb0 <== NOT EXECUTED if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 30008b9c: e1a00004 mov r0, r4 <== NOT EXECUTED 30008ba0: eb0000ce bl 30008ee0 <== NOT EXECUTED } return 0; } 30008ba4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30008ba8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30008bac: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 30008bb0: e5940050 ldr r0, [r4, #80] <== NOT EXECUTED 30008bb4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30008bb8: 0afffff7 beq 30008b9c <== NOT EXECUTED free( (void*) the_jnode->info.sym_link.name ); 30008bbc: eb0000c7 bl 30008ee0 <== NOT EXECUTED 30008bc0: eafffff5 b 30008b9c <== NOT EXECUTED 30008bc4: 30015814 .word 0x30015814 30008bc8 : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 30008bc8: e5900000 ldr r0, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 30008bcc: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 30008bd0: e590304c ldr r3, [r0, #76] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 30008bd4: e1a0c001 mov ip, r1 IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 30008bd8: e2433002 sub r3, r3, #2 ; 0x2 30008bdc: e3530004 cmp r3, #4 ; 0x4 30008be0: 979ff103 ldrls pc, [pc, r3, lsl #2] 30008be4: ea000004 b 30008bfc <== NOT EXECUTED 30008be8: 30008c6c .word 0x30008c6c <== NOT EXECUTED 30008bec: 30008bfc .word 0x30008bfc <== NOT EXECUTED 30008bf0: 30008c60 .word 0x30008c60 <== NOT EXECUTED 30008bf4: 30008c10 .word 0x30008c10 <== NOT EXECUTED 30008bf8: 30008c10 .word 0x30008c10 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 30008bfc: eb0009a2 bl 3000b28c <__errno> <== NOT EXECUTED 30008c00: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008c04: e5803000 str r3, [r0] <== NOT EXECUTED 30008c08: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30008c0c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 30008c10: e5903050 ldr r3, [r0, #80] <== NOT EXECUTED 30008c14: e5813020 str r3, [r1, #32] <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 30008c18: 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; 30008c1c: e1d023b4 ldrh r2, [r0, #52] buf->st_ino = the_jnode->st_ino; 30008c20: e58c3008 str r3, [ip, #8] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 30008c24: e1cc21b0 strh r2, [ip, #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; 30008c28: e5902040 ldr r2, [r0, #64] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 30008c2c: e5901030 ldr r1, [r0, #48] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 30008c30: e58c2024 str r2, [ip, #36] buf->st_mtime = the_jnode->stat_mtime; 30008c34: 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; 30008c38: e1d023bc ldrh r2, [r0, #60] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 30008c3c: e58c302c str r3, [ip, #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; 30008c40: e1cc21b2 strh r2, [ip, #18] 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; 30008c44: e5902048 ldr r2, [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; 30008c48: e1d003be ldrh r0, [r0, #62] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 30008c4c: e58c100c str r1, [ip, #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; 30008c50: e1cc01b4 strh r0, [ip, #20] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 30008c54: e58c2034 str r2, [ip, #52] 30008c58: e3a00000 mov r0, #0 ; 0x0 return 0; } 30008c5c: e49df004 pop {pc} ; (ldr pc, [sp], #4) case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; break; case IMFS_SYM_LINK: buf->st_size = 0; 30008c60: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30008c64: e5813020 str r3, [r1, #32] <== NOT EXECUTED 30008c68: eaffffea b 30008c18 <== NOT EXECUTED switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_dev = rtems_filesystem_make_dev_t( io->major, io->minor ); 30008c6c: e5903054 ldr r3, [r0, #84] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 30008c70: e5902050 ldr r2, [r0, #80] 30008c74: e881000c stm r1, {r2, r3} 30008c78: eaffffe6 b 30008c18 30003884 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 30003884: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 30003888: 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 ); 3000388c: 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 ) { 30003890: e1a04001 mov r4, r1 <== NOT EXECUTED 30003894: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, new_name, &i ); 30003898: e1a01006 mov r1, r6 <== NOT EXECUTED 3000389c: e1a00002 mov r0, r2 <== NOT EXECUTED 300038a0: e28d2038 add r2, sp, #56 ; 0x38 <== NOT EXECUTED 300038a4: ebfffee7 bl 30003448 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 300038a8: e1a00004 mov r0, r4 <== NOT EXECUTED 300038ac: eb00ba29 bl 30032158 <== NOT EXECUTED if (info.sym_link.name == NULL) { 300038b0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 300038b4: e58d0028 str r0, [sp, #40] <== NOT EXECUTED if (info.sym_link.name == NULL) { 300038b8: 0a00000d beq 300038f4 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 300038bc: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 300038c0: e1a00005 mov r0, r5 <== NOT EXECUTED 300038c4: e1a02006 mov r2, r6 <== NOT EXECUTED 300038c8: e3a01004 mov r1, #4 ; 0x4 <== NOT EXECUTED 300038cc: e59f3034 ldr r3, [pc, #52] ; 30003908 <== NOT EXECUTED 300038d0: e58dc000 str ip, [sp] <== NOT EXECUTED 300038d4: eb00644a bl 3001ca04 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 300038d8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300038dc: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 300038e0: 0a000001 beq 300038ec <== NOT EXECUTED free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); } return 0; } 300038e4: e28dd03c add sp, sp, #60 ; 0x3c <== NOT EXECUTED 300038e8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free( info.sym_link.name); 300038ec: e59d0028 ldr r0, [sp, #40] <== NOT EXECUTED 300038f0: eb000195 bl 30003f4c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 300038f4: eb00a540 bl 3002cdfc <__errno> <== NOT EXECUTED 300038f8: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 300038fc: e5803000 str r3, [r0] <== NOT EXECUTED 30003900: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003904: eafffff6 b 300038e4 <== NOT EXECUTED 30003908: 0000a1ff .word 0x0000a1ff 3000390c : #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 3000390c: 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; 30003910: e5905000 ldr r5, [r0] <== NOT EXECUTED #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 30003914: 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 ) { 30003918: e595304c ldr r3, [r5, #76] <== NOT EXECUTED #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 3000391c: 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 ) { 30003920: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 30003924: 1a000014 bne 3000397c <== NOT EXECUTED if ( !node->info.hard_link.link_node ) 30003928: e595c050 ldr ip, [r5, #80] <== NOT EXECUTED 3000392c: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 30003930: 0a000017 beq 30003994 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 30003934: e890000f ldm r0, {r0, r1, r2, r3} <== NOT EXECUTED 30003938: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 3000393c: 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; 30003940: e58dc000 str ip, [sp] <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 30003944: eb006491 bl 3001cb90 <== 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) 30003948: e5952050 ldr r2, [r5, #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; 3000394c: e1a0600d mov r6, 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) 30003950: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED 30003954: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 30003958: 0a000012 beq 300039a8 <== NOT EXECUTED if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 3000395c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30003960: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 30003964: e28d0010 add r0, sp, #16 ; 0x10 <== NOT EXECUTED 30003968: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3000396c: eb00019e bl 30003fec <== NOT EXECUTED 30003970: e5952050 ldr r2, [r5, #80] <== NOT EXECUTED 30003974: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30003978: e5823048 str r3, [r2, #72] <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( loc ); 3000397c: e1a00004 mov r0, r4 <== NOT EXECUTED 30003980: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 30003984: e1a0e00f mov lr, pc <== NOT EXECUTED 30003988: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED return result; } 3000398c: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED 30003990: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 30003994: eb00a518 bl 3002cdfc <__errno> <== NOT EXECUTED 30003998: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3000399c: e5803000 str r3, [r0] <== NOT EXECUTED 300039a0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300039a4: eafffff8 b 3000398c <== NOT EXECUTED * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( &the_link ); 300039a8: e1a0000d mov r0, sp <== NOT EXECUTED 300039ac: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 300039b0: e1a0e00f mov lr, pc <== NOT EXECUTED 300039b4: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED if ( result != 0 ) 300039b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300039bc: 13e00000 mvnne r0, #0 ; 0x0 <== NOT EXECUTED 300039c0: 0affffed beq 3000397c <== NOT EXECUTED 300039c4: eafffff0 b 3000398c <== NOT EXECUTED 300039c8 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 300039c8: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 300039cc: 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 ) 300039d0: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 300039d4: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 300039d8: 1a000006 bne 300039f8 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 300039dc: e592305c ldr r3, [r2, #92] <== NOT EXECUTED 300039e0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300039e4: 0a000008 beq 30003a0c <== 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; 300039e8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 300039ec: e582305c str r3, [r2, #92] <== NOT EXECUTED 300039f0: e1a00003 mov r0, r3 <== NOT EXECUTED return 0; } 300039f4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 300039f8: eb00a4ff bl 3002cdfc <__errno> <== NOT EXECUTED 300039fc: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 30003a00: e5803000 str r3, [r0] <== NOT EXECUTED 30003a04: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003a08: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 30003a0c: eb00a4fa bl 3002cdfc <__errno> <== NOT EXECUTED 30003a10: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30003a14: e5803000 str r3, [r0] <== NOT EXECUTED 30003a18: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30003a1c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30003a20 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 30003a20: e5903000 ldr r3, [r0] <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } 30003a24: 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; 30003a28: 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; 30003a2c: e5831040 str r1, [r3, #64] <== NOT EXECUTED the_jnode->stat_mtime = modtime; return 0; } 30003a30: e12fff1e bx lr <== NOT EXECUTED 300015a8 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 300015a8: e59f30a4 ldr r3, [pc, #164] ; 30001654 void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 300015ac: e92d4070 push {r4, r5, r6, lr} #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 300015b0: e5933000 ldr r3, [r3] void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 300015b4: e1a06000 mov r6, r0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 300015b8: e3530000 cmp r3, #0 ; 0x0 void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 300015bc: e1a05001 mov r5, r1 300015c0: e1a04002 mov r4, r2 /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->initialize)(); 300015c4: 11a0e00f movne lr, pc 300015c8: 1593f000 ldrne pc, [r3] /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 300015cc: eb001f95 bl 30009428 starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 300015d0: e59f3080 ldr r3, [pc, #128] ; 30001658 300015d4: e5933000 ldr r3, [r3] 300015d8: e3530000 cmp r3, #0 ; 0x0 300015dc: 01a04006 moveq r4, r6 300015e0: 0a000004 beq 300015f8 starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 300015e4: e1a01004 mov r1, r4 <== NOT EXECUTED 300015e8: e1a00006 mov r0, r6 <== NOT EXECUTED 300015ec: e1a0e00f mov lr, pc <== NOT EXECUTED 300015f0: e593f000 ldr pc, [r3] <== NOT EXECUTED 300015f4: 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() ) 300015f8: e59f305c ldr r3, [pc, #92] ; 3000165c 300015fc: e5932000 ldr r2, [r3] 30001600: e5d21028 ldrb r1, [r2, #40] 30001604: e3510000 cmp r1, #0 ; 0x0 30001608: 1a00000b bne 3000163c void *starting_address, size_t size, uint32_t page_size ) { return _Heap_Initialize( the_heap, starting_address, size, page_size ); 3000160c: e1a01004 mov r1, r4 30001610: e59f0048 ldr r0, [pc, #72] ; 30001660 30001614: e1a02005 mov r2, r5 30001618: e3a03004 mov r3, #4 ; 0x4 3000161c: eb00103d bl 30005718 <_Heap_Initialize> &RTEMS_Malloc_Heap, starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) 30001620: e3500000 cmp r0, #0 ; 0x0 30001624: 0a000009 beq 30001650 rtems_print_buffer( (start + length) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif MSBUMP(space_available, length); 30001628: e59f2034 ldr r2, [pc, #52] ; 30001664 3000162c: e5923000 ldr r3, [r2] 30001630: e0853003 add r3, r5, r3 30001634: e5823000 str r3, [r2] } 30001638: e8bd8070 pop {r4, r5, r6, pc} * 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() ) memset( starting_address, 0, length ); 3000163c: e1a00004 mov r0, r4 <== NOT EXECUTED 30001640: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30001644: e1a02005 mov r2, r5 <== NOT EXECUTED 30001648: eb002918 bl 3000bab0 <== NOT EXECUTED 3000164c: eaffffee b 3000160c <== NOT EXECUTED starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) rtems_fatal_error_occurred( status ); 30001650: eb000e0d bl 30004e8c <== NOT EXECUTED 30001654: 30015d68 .word 0x30015d68 30001658: 30015d6c .word 0x30015d6c 3000165c: 300160fc .word 0x300160fc 30001660: 30015f0c .word 0x30015f0c 30001664: 30015f64 .word 0x30015f64 30002904 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 30002904: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 30002908: 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 ) { 3000290c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 30002910: 0a000036 beq 300029f0 <== NOT EXECUTED return; if ( !print_handler ) 30002914: e59f312c ldr r3, [pc, #300] ; 30002a48 <== NOT EXECUTED 30002918: e593a000 ldr sl, [r3] <== NOT EXECUTED 3000291c: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED 30002920: 0a000032 beq 300029f0 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 30002924: 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 ); 30002928: 159490f4 ldrne r9, [r4, #244] <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 3000292c: 128470c4 addne r7, r4, #196 ; 0xc4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 30002930: 0a000035 beq 30002a0c <== 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); 30002934: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 30002938: e2835010 add r5, r3, #16 ; 0x10 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 3000293c: e2428010 sub r8, r2, #16 ; 0x10 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 30002940: e1a00005 mov r0, r5 <== NOT EXECUTED 30002944: e1a01008 mov r1, r8 <== NOT EXECUTED 30002948: ebffffd9 bl 300028b4 <== NOT EXECUTED if ( high_water_mark ) 3000294c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 30002950: 10853008 addne r3, r5, r8 <== 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 ) 30002954: 01a0b000 moveq fp, r0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 30002958: 1060b003 rsbne fp, r0, r3 <== NOT EXECUTED else used = 0; if ( the_thread ) { 3000295c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30002960: 0a000031 beq 30002a2c <== NOT EXECUTED (*print_handler)( 30002964: e5945008 ldr r5, [r4, #8] <== NOT EXECUTED 30002968: e59f60dc ldr r6, [pc, #220] ; 30002a4c <== NOT EXECUTED 3000296c: e28d200b add r2, sp, #11 ; 0xb <== NOT EXECUTED 30002970: e3a01005 mov r1, #5 ; 0x5 <== NOT EXECUTED 30002974: e1a00005 mov r0, r5 <== NOT EXECUTED 30002978: e5964000 ldr r4, [r6] <== NOT EXECUTED 3000297c: eb00149d bl 30007bf8 <== NOT EXECUTED 30002980: e1a02005 mov r2, r5 <== NOT EXECUTED 30002984: e1a03000 mov r3, r0 <== NOT EXECUTED 30002988: e59f10c0 ldr r1, [pc, #192] ; 30002a50 <== NOT EXECUTED 3000298c: e1a00004 mov r0, r4 <== NOT EXECUTED 30002990: e1a0e00f mov lr, pc <== NOT EXECUTED 30002994: e12fff1a bx sl <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 30002998: e5973000 ldr r3, [r7] <== NOT EXECUTED 3000299c: e5972004 ldr r2, [r7, #4] <== NOT EXECUTED 300029a0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 300029a4: e0823003 add r3, r2, r3 <== NOT EXECUTED 300029a8: e59fc098 ldr ip, [pc, #152] ; 30002a48 <== NOT EXECUTED 300029ac: e5960000 ldr r0, [r6] <== NOT EXECUTED 300029b0: e58d9000 str r9, [sp] <== NOT EXECUTED 300029b4: e58d8004 str r8, [sp, #4] <== NOT EXECUTED 300029b8: e59f1094 ldr r1, [pc, #148] ; 30002a54 <== NOT EXECUTED 300029bc: e1a0e00f mov lr, pc <== NOT EXECUTED 300029c0: e59cf000 ldr pc, [ip] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 300029c4: e59f308c ldr r3, [pc, #140] ; 30002a58 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 300029c8: e59fc078 ldr ip, [pc, #120] ; 30002a48 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 300029cc: e5932000 ldr r2, [r3] <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 300029d0: e59f0074 ldr r0, [pc, #116] ; 30002a4c <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 300029d4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 300029d8: 0a000006 beq 300029f8 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 300029dc: e5900000 ldr r0, [r0] <== NOT EXECUTED 300029e0: e1a0200b mov r2, fp <== NOT EXECUTED 300029e4: e59f1070 ldr r1, [pc, #112] ; 30002a5c <== NOT EXECUTED 300029e8: e1a0e00f mov lr, pc <== NOT EXECUTED 300029ec: e59cf000 ldr pc, [ip] <== NOT EXECUTED } } 300029f0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 300029f4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 300029f8: e59f1060 ldr r1, [pc, #96] ; 30002a60 <== NOT EXECUTED 300029fc: e5900000 ldr r0, [r0] <== NOT EXECUTED 30002a00: e1a0e00f mov lr, pc <== NOT EXECUTED 30002a04: e59cf000 ldr pc, [ip] <== NOT EXECUTED 30002a08: eafffff8 b 300029f0 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 30002a0c: e59f2050 ldr r2, [pc, #80] ; 30002a64 <== NOT EXECUTED 30002a10: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 30002a14: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 30002a18: 12844001 addne r4, r4, #1 ; 0x1 <== NOT EXECUTED 30002a1c: 11a07002 movne r7, r2 <== NOT EXECUTED 30002a20: 11a09004 movne r9, r4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 30002a24: 1affffc2 bne 30002934 <== NOT EXECUTED 30002a28: eafffff0 b 300029f0 <== 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 ); 30002a2c: e59f6018 ldr r6, [pc, #24] ; 30002a4c <== NOT EXECUTED 30002a30: e59f1030 ldr r1, [pc, #48] ; 30002a68 <== NOT EXECUTED 30002a34: e5960000 ldr r0, [r6] <== NOT EXECUTED 30002a38: e3e02000 mvn r2, #0 ; 0x0 <== NOT EXECUTED 30002a3c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002a40: e12fff1a bx sl <== NOT EXECUTED 30002a44: eaffffd3 b 30002998 <== NOT EXECUTED 30002a48: 30045fd4 .word 0x30045fd4 30002a4c: 30045fd0 .word 0x30045fd0 30002a50: 3003fc78 .word 0x3003fc78 30002a54: 3003fc98 .word 0x3003fc98 30002a58: 30045fcc .word 0x30045fcc 30002a5c: 3003fcc8 .word 0x3003fcc8 30002a60: 3003fcb8 .word 0x3003fcb8 30002a64: 30059020 .word 0x30059020 30002a68: 3003fc88 .word 0x3003fc88 300028b4 : */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 300028b4: e1a03000 mov r3, r0 <== 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++) 300028b8: 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; 300028bc: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 300028c0: e0802001 add r2, r0, r1 <== NOT EXECUTED 300028c4: e1500002 cmp r0, r2 <== NOT EXECUTED 300028c8: 2a00000a bcs 300028f8 <== NOT EXECUTED if (*base != U32_PATTERN) 300028cc: e5931010 ldr r1, [r3, #16] <== NOT EXECUTED 300028d0: e59f3028 ldr r3, [pc, #40] ; 30002900 <== NOT EXECUTED 300028d4: e1510003 cmp r1, r3 <== NOT EXECUTED 300028d8: 0a000003 beq 300028ec <== NOT EXECUTED 300028dc: e12fff1e bx lr <== NOT EXECUTED 300028e0: e5903000 ldr r3, [r0] <== NOT EXECUTED 300028e4: e1530001 cmp r3, r1 <== NOT EXECUTED 300028e8: 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++) 300028ec: e2800004 add r0, r0, #4 ; 0x4 <== NOT EXECUTED 300028f0: e1520000 cmp r2, r0 <== NOT EXECUTED 300028f4: 8afffff9 bhi 300028e0 <== NOT EXECUTED 300028f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 300028fc: e12fff1e bx lr <== NOT EXECUTED 30002900: a5a5a5a5 .word 0xa5a5a5a5 30002ae8 : */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 30002ae8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 30002aec: e1a05000 mov r5, r0 <== NOT EXECUTED 30002af0: e1a04001 mov r4, r1 <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; printk( 30002af4: e59f0050 ldr r0, [pc, #80] ; 30002b4c <== NOT EXECUTED 30002af8: e1a01005 mov r1, r5 <== NOT EXECUTED 30002afc: e5952008 ldr r2, [r5, #8] <== NOT EXECUTED 30002b00: e595300c ldr r3, [r5, #12] <== NOT EXECUTED 30002b04: eb000a95 bl 30005560 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif printk( 30002b08: e59530c4 ldr r3, [r5, #196] <== NOT EXECUTED 30002b0c: e59510c8 ldr r1, [r5, #200] <== NOT EXECUTED 30002b10: e2432001 sub r2, r3, #1 ; 0x1 <== NOT EXECUTED */ void Stack_check_report_blown_task( Thread_Control *running, bool pattern_ok ) { 30002b14: e20440ff and r4, r4, #255 ; 0xff <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif printk( 30002b18: e0812002 add r2, r1, r2 <== NOT EXECUTED 30002b1c: e59f002c ldr r0, [pc, #44] ; 30002b50 <== NOT EXECUTED 30002b20: eb000a8e bl 30005560 <== NOT EXECUTED stack->area, stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { 30002b24: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30002b28: 0a000001 beq 30002b34 <== 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 ); 30002b2c: e3a00081 mov r0, #129 ; 0x81 <== NOT EXECUTED 30002b30: eb00167b bl 30008524 <== NOT EXECUTED stack->area + stack->size - 1, stack->size ); if ( !pattern_ok ) { printk( 30002b34: e59510c8 ldr r1, [r5, #200] <== NOT EXECUTED 30002b38: e59f0014 ldr r0, [pc, #20] ; 30002b54 <== NOT EXECUTED 30002b3c: e2811008 add r1, r1, #8 ; 0x8 <== NOT EXECUTED 30002b40: e3a02010 mov r2, #16 ; 0x10 <== NOT EXECUTED 30002b44: eb000a85 bl 30005560 <== NOT EXECUTED 30002b48: eafffff7 b 30002b2c <== NOT EXECUTED 30002b4c: 3003fd34 .word 0x3003fd34 30002b50: 3003fd74 .word 0x3003fd74 30002b54: 3003fda4 .word 0x3003fda4 30013580 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 30013580: 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 ) { 30013584: e92d41f0 push {r4, r5, r6, r7, r8, lr} Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 30013588: e1530002 cmp r3, r2 size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, uint32_t *count ) { 3001358c: e1a07000 mov r7, r0 30013590: e1a06002 mov r6, r2 30013594: e1a08001 mov r8, r1 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 30013598: 33a00001 movcc r0, #1 ; 0x1 3001359c: 38bd81f0 popcc {r4, r5, r6, r7, r8, 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 ) { 300135a0: e5973048 ldr r3, [r7, #72] 300135a4: e3530000 cmp 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))) { 300135a8: 01a05003 moveq r5, 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 ) { 300135ac: 0a000009 beq 300135d8 <_CORE_message_queue_Broadcast+0x58> *count = 0; 300135b0: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 300135b4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 300135b8: e5823000 str r3, [r2] <== NOT EXECUTED 300135bc: e1a00003 mov r0, r3 <== NOT EXECUTED 300135c0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 300135c4: e594002c ldr r0, [r4, #44] 300135c8: eb001dee bl 3001ad88 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 300135cc: 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; 300135d0: e2855001 add r5, r5, #1 ; 0x1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 300135d4: 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))) { 300135d8: e1a00007 mov r0, r7 300135dc: eb000993 bl 30015c30 <_Thread_queue_Dequeue> 300135e0: e2504000 subs r4, r0, #0 ; 0x0 300135e4: e1a01008 mov r1, r8 300135e8: e1a02006 mov r2, r6 300135ec: 1afffff4 bne 300135c4 <_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; 300135f0: e59d301c ldr r3, [sp, #28] 300135f4: e1a00004 mov r0, r4 300135f8: e5835000 str r5, [r3] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 300135fc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30014cb8 <_CORE_message_queue_Insert_message>: ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 30014cb8: 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 ) { 30014cbc: e92d4030 push {r4, r5, lr} ISR_Level level; bool notify = false; the_message->priority = submit_type; 30014cc0: 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 ) { 30014cc4: e1a05001 mov r5, r1 30014cc8: e1a04000 mov r4, r0 ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 30014ccc: 0a000037 beq 30014db0 <_CORE_message_queue_Insert_message+0xf8> 30014cd0: e3720106 cmn r2, #-2147483647 ; 0x80000001 30014cd4: 0a000023 beq 30014d68 <_CORE_message_queue_Insert_message+0xb0> 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; 30014cd8: e5901050 ldr r1, [r0, #80] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30014cdc: e2800054 add r0, r0, #84 ; 0x54 <== NOT EXECUTED while ( !_Chain_Is_tail( the_header, the_node ) ) { 30014ce0: e1500001 cmp r0, r1 <== NOT EXECUTED 30014ce4: 1a00001b bne 30014d58 <_CORE_message_queue_Insert_message+0xa0> <== NOT EXECUTED 30014ce8: e1a01000 mov r1, r0 <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 30014cec: e10fc000 mrs ip, CPSR <== NOT EXECUTED 30014cf0: e38c30c0 orr r3, ip, #192 ; 0xc0 <== NOT EXECUTED 30014cf4: 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 ); 30014cf8: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 30014cfc: e5941048 ldr r1, [r4, #72] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 30014d00: e5930000 ldr r0, [r3] <== NOT EXECUTED 30014d04: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED after_node->next = the_node; 30014d08: e5835000 str r5, [r3] <== NOT EXECUTED 30014d0c: e5842048 str r2, [r4, #72] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 30014d10: e5853004 str r3, [r5, #4] <== NOT EXECUTED 30014d14: e2712001 rsbs r2, r1, #1 ; 0x1 <== NOT EXECUTED 30014d18: 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; 30014d1c: 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; 30014d20: e5850000 str r0, [r5] <== NOT EXECUTED notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 30014d24: 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 ) 30014d28: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30014d2c: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED 30014d30: e5943060 ldr r3, [r4, #96] 30014d34: e3530000 cmp r3, #0 ; 0x0 30014d38: 08bd8030 popeq {r4, r5, pc} (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 30014d3c: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 30014d40: e1a0e00f mov lr, pc <== NOT EXECUTED 30014d44: e12fff13 bx r3 <== NOT EXECUTED 30014d48: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED while ( !_Chain_Is_tail( the_header, the_node ) ) { this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { the_node = the_node->next; 30014d4c: 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 ) ) { 30014d50: e1500001 cmp r0, r1 <== NOT EXECUTED 30014d54: 0affffe3 beq 30014ce8 <_CORE_message_queue_Insert_message+0x30> <== NOT EXECUTED this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { 30014d58: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 30014d5c: e1520003 cmp r2, r3 <== NOT EXECUTED 30014d60: aafffff9 bge 30014d4c <_CORE_message_queue_Insert_message+0x94> <== NOT EXECUTED 30014d64: eaffffe0 b 30014cec <_CORE_message_queue_Insert_message+0x34> <== NOT EXECUTED the_message->priority = submit_type; switch ( submit_type ) { case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); 30014d68: e10f0000 mrs r0, CPSR 30014d6c: e38030c0 orr r3, r0, #192 ; 0xc0 30014d70: e129f003 msr CPSR_fc, r3 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 30014d74: e2843054 add r3, r4, #84 ; 0x54 30014d78: e5813000 str r3, [r1] if ( the_message_queue->number_of_pending_messages++ == 0 ) 30014d7c: e5942048 ldr r2, [r4, #72] old_last_node = the_chain->last; 30014d80: e5941058 ldr r1, [r4, #88] 30014d84: e2823001 add r3, r2, #1 ; 0x1 the_chain->last = the_node; 30014d88: e5845058 str r5, [r4, #88] 30014d8c: e5843048 str r3, [r4, #72] 30014d90: e2722001 rsbs r2, r2, #1 ; 0x1 30014d94: 33a02000 movcc r2, #0 ; 0x0 old_last_node->next = the_node; the_node->previous = old_last_node; 30014d98: 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; 30014d9c: e5815000 str r5, [r1] notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 30014da0: e129f000 msr CPSR_fc, r0 * 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 ) 30014da4: e3520000 cmp r2, #0 ; 0x0 30014da8: 1affffe0 bne 30014d30 <_CORE_message_queue_Insert_message+0x78> 30014dac: e8bd8030 pop {r4, r5, pc} notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); break; case CORE_MESSAGE_QUEUE_URGENT_REQUEST: _ISR_Disable( level ); 30014db0: e10fc000 mrs ip, CPSR 30014db4: e38c30c0 orr r3, ip, #192 ; 0xc0 30014db8: e129f003 msr CPSR_fc, r3 if ( the_message_queue->number_of_pending_messages++ == 0 ) 30014dbc: e5901048 ldr r1, [r0, #72] ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 30014dc0: e5900050 ldr r0, [r0, #80] 30014dc4: e2812001 add r2, r1, #1 ; 0x1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 30014dc8: e2843050 add r3, r4, #80 ; 0x50 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 30014dcc: e5853004 str r3, [r5, #4] 30014dd0: e5842048 str r2, [r4, #72] before_node = after_node->next; after_node->next = the_node; 30014dd4: e5845050 str r5, [r4, #80] the_node->next = before_node; before_node->previous = the_node; 30014dd8: e5805004 str r5, [r0, #4] 30014ddc: e2712001 rsbs r2, r1, #1 ; 0x1 30014de0: 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; 30014de4: e5850000 str r0, [r5] notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 30014de8: e129f00c msr CPSR_fc, ip * 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 ) 30014dec: e3520000 cmp r2, #0 ; 0x0 30014df0: 1affffce bne 30014d30 <_CORE_message_queue_Insert_message+0x78> 30014df4: e8bd8030 pop {r4, r5, pc} 30011d50 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 30011d50: 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; 30011d54: e59f8118 ldr r8, [pc, #280] ; 30011e74 <_CORE_message_queue_Seize+0x124> void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 30011d58: e1a05000 mov r5, r0 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; 30011d5c: e598c000 ldr ip, [r8] void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 30011d60: 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; 30011d64: e3a03000 mov r3, #0 ; 0x0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 30011d68: e1a07002 mov r7, r2 30011d6c: e59da020 ldr sl, [sp, #32] 30011d70: e5dd201c ldrb r2, [sp, #28] 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; 30011d74: e58c3034 str r3, [ip, #52] _ISR_Disable( level ); 30011d78: e10f6000 mrs r6, CPSR 30011d7c: e38630c0 orr r3, r6, #192 ; 0xc0 30011d80: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 30011d84: e5954050 ldr r4, [r5, #80] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 30011d88: e2853054 add r3, r5, #84 ; 0x54 30011d8c: e1540003 cmp r4, r3 30011d90: 0a000021 beq 30011e1c <_CORE_message_queue_Seize+0xcc> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 30011d94: e5941000 ldr r1, [r4] the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; 30011d98: e5952048 ldr r2, [r5, #72] the_chain->first = new_first; 30011d9c: e1a03005 mov r3, r5 30011da0: e5a31050 str r1, [r3, #80]! 30011da4: e2422001 sub r2, r2, #1 ; 0x1 new_first->previous = _Chain_Head(the_chain); 30011da8: e5813004 str r3, [r1, #4] 30011dac: e5852048 str r2, [r5, #72] _ISR_Enable( level ); 30011db0: e129f006 msr CPSR_fc, r6 *size_p = the_message->Contents.size; 30011db4: e594300c ldr r3, [r4, #12] _Thread_Executing->Wait.count = the_message->priority; 30011db8: e5981000 ldr r1, [r8] 30011dbc: e5942008 ldr r2, [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; 30011dc0: e5803000 str r3, [r0] _Thread_Executing->Wait.count = the_message->priority; _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size_p); 30011dc4: 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; 30011dc8: e5812024 str r2, [r1, #36] const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 30011dcc: e5902000 ldr r2, [r0] 30011dd0: e1a01006 mov r1, r6 30011dd4: e1a00007 mov r0, r7 30011dd8: eb00136d bl 30016b94 * * 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 ); 30011ddc: e1a00005 mov r0, r5 30011de0: ebffead4 bl 3000c938 <_Thread_queue_Dequeue> if ( !the_thread ) { 30011de4: e2501000 subs r1, r0, #0 ; 0x0 30011de8: 0a00001d beq 30011e64 <_CORE_message_queue_Seize+0x114> * 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; 30011dec: e5913024 ldr r3, [r1, #36] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 30011df0: 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; 30011df4: e5843008 str r3, [r4, #8] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 30011df8: e584200c str r2, [r4, #12] <== NOT EXECUTED 30011dfc: e1a00006 mov r0, r6 <== NOT EXECUTED 30011e00: e591102c ldr r1, [r1, #44] <== NOT EXECUTED 30011e04: eb001362 bl 30016b94 <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 30011e08: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED 30011e0c: e1a00005 mov r0, r5 <== NOT EXECUTED 30011e10: 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 ); } 30011e14: 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( 30011e18: ea000ba6 b 30014cb8 <_CORE_message_queue_Insert_message> <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { 30011e1c: e3520000 cmp r2, #0 ; 0x0 30011e20: 1a000003 bne 30011e34 <_CORE_message_queue_Seize+0xe4> _ISR_Enable( level ); 30011e24: e129f006 msr CPSR_fc, r6 executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 30011e28: e3a03004 mov r3, #4 ; 0x4 30011e2c: 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 ); } 30011e30: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30011e34: e3a03001 mov r3, #1 ; 0x1 30011e38: 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; 30011e3c: 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; 30011e40: e58c1020 str r1, [ip, #32] executing->Wait.return_argument_second.mutable_object = buffer; 30011e44: e58c702c str r7, [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; 30011e48: 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 ); 30011e4c: e129f006 msr CPSR_fc, r6 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 30011e50: e59f2020 ldr r2, [pc, #32] ; 30011e78 <_CORE_message_queue_Seize+0x128> 30011e54: e1a00005 mov r0, r5 30011e58: e1a0100a mov r1, sl } 30011e5c: 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 ); 30011e60: eaffeb13 b 3000cab4 <_Thread_queue_Enqueue_with_handler> 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 ); 30011e64: e2850068 add r0, r5, #104 ; 0x68 30011e68: e1a01004 mov r1, r4 } 30011e6c: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} 30011e70: eaffe40f b 3000aeb4 <_Chain_Append> 30011e74: 30025e64 .word 0x30025e64 30011e78: 3000cee0 .word 0x3000cee0 30011e7c <_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 ) { 30011e7c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 30011e80: 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 ) { 30011e84: 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 ) { 30011e88: e15c0002 cmp ip, r2 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 30011e8c: e1a07002 mov r7, r2 30011e90: e1a0a001 mov sl, r1 30011e94: e1a09003 mov r9, r3 30011e98: e5dd8028 ldrb r8, [sp, #40] ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 30011e9c: 33a00001 movcc r0, #1 ; 0x1 30011ea0: 38bd87f0 popcc {r4, r5, r6, r7, r8, r9, sl, pc} /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 30011ea4: e5954048 ldr r4, [r5, #72] 30011ea8: e3540000 cmp r4, #0 ; 0x0 30011eac: 0a00001d beq 30011f28 <_CORE_message_queue_Submit+0xac> /* * 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 < 30011eb0: e5953044 ldr r3, [r5, #68] 30011eb4: e1530004 cmp r3, r4 30011eb8: 8a00002a bhi 30011f68 <_CORE_message_queue_Submit+0xec> * 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 ) { 30011ebc: e3580000 cmp r8, #0 ; 0x0 30011ec0: 03a00002 moveq r0, #2 ; 0x2 30011ec4: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, 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() ) { 30011ec8: e59f30dc ldr r3, [pc, #220] ; 30011fac <_CORE_message_queue_Submit+0x130> <== NOT EXECUTED 30011ecc: e5932000 ldr r2, [r3] <== NOT EXECUTED 30011ed0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30011ed4: 1a000021 bne 30011f60 <_CORE_message_queue_Submit+0xe4> <== 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; 30011ed8: e59f30d0 ldr r3, [pc, #208] ; 30011fb0 <_CORE_message_queue_Submit+0x134> <== NOT EXECUTED 30011edc: e5932000 ldr r2, [r3] <== NOT EXECUTED _ISR_Disable( level ); 30011ee0: e10f1000 mrs r1, CPSR <== NOT EXECUTED 30011ee4: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30011ee8: e129f003 msr CPSR_fc, r3 <== 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; 30011eec: e59d3024 ldr r3, [sp, #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; 30011ef0: e5829020 str r9, [r2, #32] <== NOT EXECUTED executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; 30011ef4: e5823024 str r3, [r2, #36] <== NOT EXECUTED 30011ef8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30011efc: e5853030 str r3, [r5, #48] <== NOT EXECUTED _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; executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; 30011f00: e5827030 str r7, [r2, #48] <== NOT EXECUTED _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; executing->Wait.return_argument_second.immutable_object = buffer; 30011f04: e582a02c str sl, [r2, #44] <== 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; 30011f08: 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 ); 30011f0c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 30011f10: e59f209c ldr r2, [pc, #156] ; 30011fb4 <_CORE_message_queue_Submit+0x138> <== NOT EXECUTED 30011f14: e1a00005 mov r0, r5 <== NOT EXECUTED 30011f18: e59d102c ldr r1, [sp, #44] <== NOT EXECUTED 30011f1c: ebffeae4 bl 3000cab4 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 30011f20: e3a00007 mov r0, #7 ; 0x7 <== NOT EXECUTED 30011f24: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 30011f28: ebffea82 bl 3000c938 <_Thread_queue_Dequeue> if ( the_thread ) { 30011f2c: e2506000 subs r6, r0, #0 ; 0x0 30011f30: 05954048 ldreq r4, [r5, #72] 30011f34: 0affffdd beq 30011eb0 <_CORE_message_queue_Submit+0x34> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 30011f38: e1a0100a mov r1, sl 30011f3c: e596002c ldr r0, [r6, #44] 30011f40: e1a02007 mov r2, r7 30011f44: eb001312 bl 30016b94 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 30011f48: e5963028 ldr r3, [r6, #40] the_thread->Wait.count = submit_type; 30011f4c: e1a00004 mov r0, r4 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 30011f50: e5837000 str r7, [r3] the_thread->Wait.count = submit_type; 30011f54: e59d3024 ldr r3, [sp, #36] 30011f58: e5863024 str r3, [r6, #36] 30011f5c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; 30011f60: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED } 30011f64: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 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 *) 30011f68: e2850068 add r0, r5, #104 ; 0x68 30011f6c: ebffe3db bl 3000aee0 <_Chain_Get> /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { 30011f70: e2504000 subs r4, r0, #0 ; 0x0 30011f74: 0afffff9 beq 30011f60 <_CORE_message_queue_Submit+0xe4> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 30011f78: e1a0100a mov r1, sl 30011f7c: e1a02007 mov r2, r7 30011f80: e2840010 add r0, r4, #16 ; 0x10 30011f84: eb001302 bl 30016b94 buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; the_message->priority = submit_type; 30011f88: e59d3024 ldr r3, [sp, #36] _CORE_message_queue_Insert_message( 30011f8c: e1a00005 mov r0, r5 buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; the_message->priority = submit_type; 30011f90: e5843008 str r3, [r4, #8] _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 30011f94: e584700c str r7, [r4, #12] the_message->priority = submit_type; _CORE_message_queue_Insert_message( 30011f98: e1a01004 mov r1, r4 30011f9c: e59d2024 ldr r2, [sp, #36] 30011fa0: eb000b44 bl 30014cb8 <_CORE_message_queue_Insert_message> 30011fa4: e3a00000 mov r0, #0 ; 0x0 30011fa8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 30011fac: 30025e40 .word 0x30025e40 30011fb0: 30025e64 .word 0x30025e64 30011fb4: 3000cee0 .word 0x3000cee0 30005204 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 30005204: e92d40f0 push {r4, r5, r6, r7, lr} the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { 30005208: e3520000 cmp r2, #0 ; 0x0 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 3000520c: e1a05000 mov r5, r0 initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; 30005210: e3a06000 mov r6, #0 ; 0x0 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 30005214: e1a04002 mov r4, r2 /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; 30005218: e280c040 add ip, r0, #64 ; 0x40 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 3000521c: e1a07001 mov r7, r1 _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; the_mutex->holder = NULL; 30005220: 1585605c strne r6, [r5, #92] /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; 30005224: e891000f ldm r1, {r0, r1, r2, r3} the_mutex->lock = initial_lock; 30005228: e5854050 str r4, [r5, #80] /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; 3000522c: e88c000f stm ip, {r0, r1, r2, r3} the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; 30005230: e5856058 str r6, [r5, #88] _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; 30005234: 15856060 strne r6, [r5, #96] #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; 30005238: 15856054 strne r6, [r5, #84] the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { 3000523c: 1a00000b bne 30005270 <_CORE_mutex_Initialize+0x6c> the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; 30005240: e59f3070 ldr r3, [pc, #112] ; 300052b8 <_CORE_mutex_Initialize+0xb4> the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; 30005244: e3a02001 mov r2, #1 ; 0x1 the_mutex->holder = _Thread_Executing; 30005248: e5931000 ldr r1, [r3] the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; 3000524c: e5852054 str r2, [r5, #84] */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 30005250: e5952048 ldr r2, [r5, #72] the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; 30005254: e5913008 ldr r3, [r1, #8] if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 30005258: e3520002 cmp r2, #2 ; 0x2 the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; 3000525c: e5853060 str r3, [r5, #96] the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; 30005260: e585105c str r1, [r5, #92] the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 30005264: 0a00000a beq 30005294 <_CORE_mutex_Initialize+0x90> 30005268: e3520003 cmp r2, #3 ; 0x3 3000526c: 0a000008 beq 30005294 <_CORE_mutex_Initialize+0x90> the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 30005270: e5971008 ldr r1, [r7, #8] 30005274: e1a00005 mov r0, r5 30005278: e2511000 subs r1, r1, #0 ; 0x0 3000527c: 13a01001 movne r1, #1 ; 0x1 30005280: e3a02b01 mov r2, #1024 ; 0x400 30005284: e3a03005 mov r3, #5 ; 0x5 30005288: eb00075b bl 30006ffc <_Thread_queue_Initialize> 3000528c: e3a00000 mov r0, #0 ; 0x0 STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 30005290: e8bd80f0 pop {r4, r5, r6, r7, pc} the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < 30005294: e595304c ldr r3, [r5, #76] 30005298: e5912014 ldr r2, [r1, #20] 3000529c: e1520003 cmp r2, r3 _Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = _Thread_Executing->current_priority; #endif _Thread_Executing->resource_count++; 300052a0: 2591301c ldrcs r3, [r1, #28] the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < 300052a4: 33a00006 movcc r0, #6 ; 0x6 _Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = _Thread_Executing->current_priority; #endif _Thread_Executing->resource_count++; 300052a8: 22833001 addcs r3, r3, #1 ; 0x1 300052ac: 2581301c strcs r3, [r1, #28] the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < 300052b0: 2affffee bcs 30005270 <_CORE_mutex_Initialize+0x6c> 300052b4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 300052b8: 30016124 .word 0x30016124 30009e58 <_CORE_mutex_Seize_interrupt_trylock>: Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 30009e58: e59f313c ldr r3, [pc, #316] ; 30009f9c <_CORE_mutex_Seize_interrupt_trylock+0x144> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 30009e5c: e3a02000 mov r2, #0 ; 0x0 Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 30009e60: e593c000 ldr ip, [r3] #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 30009e64: e92d4010 push {r4, lr} CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 30009e68: e5914000 ldr r4, [r1] /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 30009e6c: e58c2034 str r2, [ip, #52] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 30009e70: e5903050 ldr r3, [r0, #80] 30009e74: e1530002 cmp r3, r2 30009e78: 0a00000d beq 30009eb4 <_CORE_mutex_Seize_interrupt_trylock+0x5c> the_mutex->lock = CORE_MUTEX_LOCKED; 30009e7c: e5802050 str r2, [r0, #80] */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 30009e80: e5901048 ldr r1, [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; 30009e84: e59c2008 ldr r2, [ip, #8] the_mutex->nest_count = 1; 30009e88: e3a03001 mov r3, #1 ; 0x1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 30009e8c: e3510002 cmp r1, #2 ; 0x2 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 30009e90: e5802060 str r2, [r0, #96] the_mutex->nest_count = 1; 30009e94: 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; 30009e98: 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 ) || 30009e9c: 0a000009 beq 30009ec8 <_CORE_mutex_Seize_interrupt_trylock+0x70> 30009ea0: e3510003 cmp r1, #3 ; 0x3 <== NOT EXECUTED 30009ea4: 0a000007 beq 30009ec8 <_CORE_mutex_Seize_interrupt_trylock+0x70> <== NOT EXECUTED executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( level ); 30009ea8: e129f004 msr CPSR_fc, r4 30009eac: e3a00000 mov r0, #0 ; 0x0 30009eb0: e8bd8010 pop {r4, pc} /* * 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 ) ) { 30009eb4: e590305c ldr r3, [r0, #92] 30009eb8: e15c0003 cmp ip, r3 30009ebc: 0a000017 beq 30009f20 <_CORE_mutex_Seize_interrupt_trylock+0xc8> the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; _ISR_Enable( level ); 30009ec0: e3a00001 mov r0, #1 ; 0x1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 30009ec4: e8bd8010 pop {r4, pc} _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 30009ec8: e59c301c ldr r3, [ip, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 30009ecc: e3510003 cmp r1, #3 ; 0x3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 30009ed0: e2833001 add r3, r3, #1 ; 0x1 30009ed4: e58c301c str r3, [ip, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 30009ed8: 1afffff2 bne 30009ea8 <_CORE_mutex_Seize_interrupt_trylock+0x50> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 30009edc: e590204c ldr r2, [r0, #76] <== NOT EXECUTED current = executing->current_priority; 30009ee0: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED if ( current == ceiling ) { 30009ee4: e1520003 cmp r2, r3 <== NOT EXECUTED 30009ee8: 0a00001c beq 30009f60 <_CORE_mutex_Seize_interrupt_trylock+0x108> <== NOT EXECUTED _ISR_Enable( level ); return 0; } if ( current > ceiling ) { 30009eec: 3a00001e bcc 30009f6c <_CORE_mutex_Seize_interrupt_trylock+0x114> <== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 30009ef0: e3a03006 mov r3, #6 ; 0x6 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 30009ef4: e3a02000 mov r2, #0 ; 0x0 <== 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; 30009ef8: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 30009efc: e58c3034 str r3, [ip, #52] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 30009f00: e5802054 str r2, [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; 30009f04: e5801050 str r1, [r0, #80] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 30009f08: e59c301c ldr r3, [ip, #28] <== NOT EXECUTED 30009f0c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30009f10: e58c301c str r3, [ip, #28] <== NOT EXECUTED _ISR_Enable( level ); 30009f14: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED 30009f18: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30009f1c: e8bd8010 pop {r4, pc} <== NOT EXECUTED * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 30009f20: e5903040 ldr r3, [r0, #64] 30009f24: e3530000 cmp r3, #0 ; 0x0 30009f28: 0a000006 beq 30009f48 <_CORE_mutex_Seize_interrupt_trylock+0xf0> 30009f2c: e3530001 cmp r3, #1 ; 0x1 30009f30: 1affffe2 bne 30009ec0 <_CORE_mutex_Seize_interrupt_trylock+0x68> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 30009f34: e3a03002 mov r3, #2 ; 0x2 30009f38: e58c3034 str r3, [ip, #52] _ISR_Enable( level ); 30009f3c: e129f004 msr CPSR_fc, r4 30009f40: e3a00000 mov r0, #0 ; 0x0 30009f44: e8bd8010 pop {r4, pc} * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 30009f48: e5903054 ldr r3, [r0, #84] 30009f4c: e2833001 add r3, r3, #1 ; 0x1 30009f50: e5803054 str r3, [r0, #84] _ISR_Enable( level ); 30009f54: e129f004 msr CPSR_fc, r4 30009f58: e3a00000 mov r0, #0 ; 0x0 30009f5c: e8bd8010 pop {r4, pc} Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( level ); 30009f60: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED 30009f64: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30009f68: e8bd8010 pop {r4, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 30009f6c: e59f202c ldr r2, [pc, #44] ; 30009fa0 <_CORE_mutex_Seize_interrupt_trylock+0x148> <== NOT EXECUTED 30009f70: e5923000 ldr r3, [r2] <== NOT EXECUTED 30009f74: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30009f78: e5823000 str r3, [r2] <== NOT EXECUTED return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( level ); 30009f7c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _Thread_Change_priority( 30009f80: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30009f84: e590104c ldr r1, [r0, #76] <== NOT EXECUTED 30009f88: e590005c ldr r0, [r0, #92] <== NOT EXECUTED 30009f8c: ebfff09a bl 300061fc <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 30009f90: ebfff209 bl 300067bc <_Thread_Enable_dispatch> <== NOT EXECUTED 30009f94: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30009f98: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30009f9c: 30016124 .word 0x30016124 30009fa0: 3001606c .word 0x3001606c 300053f4 <_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 ) { 300053f4: 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 ) { 300053f8: 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 ) { 300053fc: 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 ) { 30005400: 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; 30005404: 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 ) { 30005408: 0a000004 beq 30005420 <_CORE_mutex_Surrender+0x2c> if ( !_Thread_Is_executing( holder ) ) 3000540c: e59f3138 ldr r3, [pc, #312] ; 3000554c <_CORE_mutex_Surrender+0x158> 30005410: e5932000 ldr r2, [r3] 30005414: e1500002 cmp r0, r2 30005418: 13a00003 movne r0, #3 ; 0x3 3000541c: 18bd8010 popne {r4, pc} return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 30005420: e5943054 ldr r3, [r4, #84] 30005424: e3530000 cmp r3, #0 ; 0x0 30005428: 0a000020 beq 300054b0 <_CORE_mutex_Surrender+0xbc> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 3000542c: e2433001 sub r3, r3, #1 ; 0x1 if ( the_mutex->nest_count != 0 ) { 30005430: 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--; 30005434: e5843054 str r3, [r4, #84] if ( the_mutex->nest_count != 0 ) { 30005438: 1a00001e bne 300054b8 <_CORE_mutex_Surrender+0xc4> 3000543c: e5942048 ldr r2, [r4, #72] /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 30005440: e3520002 cmp r2, #2 ; 0x2 30005444: 0a00002c beq 300054fc <_CORE_mutex_Surrender+0x108> 30005448: e3520003 cmp r2, #3 ; 0x3 3000544c: 0a00002a beq 300054fc <_CORE_mutex_Surrender+0x108> } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 30005450: 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 ) || 30005454: 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; 30005458: e5843060 str r3, [r4, #96] } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 3000545c: 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 ) || 30005460: 0a00001b beq 300054d4 <_CORE_mutex_Surrender+0xe0> 30005464: e3520003 cmp r2, #3 ; 0x3 30005468: 0a000019 beq 300054d4 <_CORE_mutex_Surrender+0xe0> /* * 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 ) ) ) { 3000546c: e1a00004 mov r0, r4 30005470: eb0005b7 bl 30006b54 <_Thread_queue_Dequeue> 30005474: e2501000 subs r1, r0, #0 ; 0x0 } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 30005478: 03a03001 moveq r3, #1 ; 0x1 3000547c: 05843050 streq r3, [r4, #80] 30005480: 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 ) ) ) { 30005484: 08bd8010 popeq {r4, pc} the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 30005488: e594c048 ldr ip, [r4, #72] } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 3000548c: e5912008 ldr r2, [r1, #8] the_mutex->nest_count = 1; 30005490: e3a03001 mov r3, #1 ; 0x1 switch ( the_mutex->Attributes.discipline ) { 30005494: e35c0002 cmp ip, #2 ; 0x2 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 30005498: e5842060 str r2, [r4, #96] the_mutex->nest_count = 1; 3000549c: e5843054 str r3, [r4, #84] } else #endif { the_mutex->holder = the_thread; 300054a0: e584105c str r1, [r4, #92] the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 300054a4: 0a000023 beq 30005538 <_CORE_mutex_Surrender+0x144> 300054a8: e35c0003 cmp ip, #3 ; 0x3 300054ac: 0a000016 beq 3000550c <_CORE_mutex_Surrender+0x118> } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 300054b0: e3a00000 mov r0, #0 ; 0x0 return CORE_MUTEX_STATUS_SUCCESSFUL; } 300054b4: e8bd8010 pop {r4, pc} return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 300054b8: e5943040 ldr r3, [r4, #64] 300054bc: e3530000 cmp r3, #0 ; 0x0 300054c0: 0afffffa beq 300054b0 <_CORE_mutex_Surrender+0xbc> 300054c4: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 300054c8: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 300054cc: 1affffda bne 3000543c <_CORE_mutex_Surrender+0x48> <== NOT EXECUTED 300054d0: e8bd8010 pop {r4, pc} <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { #ifdef __RTEMS_STRICT_ORDER_MUTEX__ if(the_mutex->queue.priority_before != holder->current_priority) _Thread_Change_priority(holder,the_mutex->queue.priority_before,TRUE); #endif if ( holder->resource_count == 0 && 300054d4: e590301c ldr r3, [r0, #28] 300054d8: e3530000 cmp r3, #0 ; 0x0 300054dc: 1affffe2 bne 3000546c <_CORE_mutex_Surrender+0x78> 300054e0: e5901018 ldr r1, [r0, #24] 300054e4: e5903014 ldr r3, [r0, #20] 300054e8: e1510003 cmp r1, r3 300054ec: 0affffde beq 3000546c <_CORE_mutex_Surrender+0x78> holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 300054f0: e3a02001 mov r2, #1 ; 0x1 300054f4: eb000340 bl 300061fc <_Thread_Change_priority> 300054f8: eaffffdb b 3000546c <_CORE_mutex_Surrender+0x78> the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; 300054fc: e590301c ldr r3, [r0, #28] 30005500: e2433001 sub r3, r3, #1 ; 0x1 30005504: e580301c str r3, [r0, #28] 30005508: eaffffd0 b 30005450 <_CORE_mutex_Surrender+0x5c> 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++; 3000550c: e591301c ldr r3, [r1, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 30005510: 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++; 30005514: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30005518: e581301c str r3, [r1, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 3000551c: e594104c ldr r1, [r4, #76] <== NOT EXECUTED 30005520: e1510002 cmp r1, r2 <== NOT EXECUTED 30005524: 2affffe1 bcs 300054b0 <_CORE_mutex_Surrender+0xbc> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 30005528: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3000552c: eb000332 bl 300061fc <_Thread_Change_priority> <== NOT EXECUTED 30005530: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30005534: e8bd8010 pop {r4, pc} <== 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++; 30005538: e591301c ldr r3, [r1, #28] 3000553c: e3a00000 mov r0, #0 ; 0x0 30005540: e2833001 add r3, r3, #1 ; 0x1 30005544: e581301c str r3, [r1, #28] 30005548: e8bd8010 pop {r4, pc} 3000554c: 30016124 .word 0x30016124 30021384 <_Chain_Insert>: Chain_Node *node ) { ISR_Level level; _ISR_Disable( level ); 30021384: e10f2000 mrs r2, CPSR <== NOT EXECUTED 30021388: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 3002138c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 30021390: e5903000 ldr r3, [r0] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 30021394: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 30021398: e5801000 str r1, [r0] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 3002139c: 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; 300213a0: e5813000 str r3, [r1] <== NOT EXECUTED _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); 300213a4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } 300213a8: e12fff1e bx lr <== NOT EXECUTED 30009d38 <_Debug_Is_enabled>: */ bool _Debug_Is_enabled( rtems_debug_control level ) { 30009d38: e59f3010 ldr r3, [pc, #16] ; 30009d50 <_Debug_Is_enabled+0x18> <== NOT EXECUTED 30009d3c: e5932000 ldr r2, [r3] <== NOT EXECUTED 30009d40: e1100002 tst r0, r2 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; } 30009d44: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED 30009d48: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 30009d4c: e12fff1e bx lr <== NOT EXECUTED 30009d50: 30016128 .word 0x30016128 3000430c <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 3000430c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 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 ]; 30004310: e590c104 ldr ip, [r0, #260] */ void _Event_Surrender( Thread_Control *the_thread ) { 30004314: e1a04000 mov r4, r0 rtems_option option_set; RTEMS_API_Control *api; api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; 30004318: e5907030 ldr r7, [r0, #48] _ISR_Disable( level ); 3000431c: e10f6000 mrs r6, CPSR 30004320: e38630c0 orr r3, r6, #192 ; 0xc0 30004324: e129f003 msr CPSR_fc, r3 pending_events = api->pending_events; 30004328: e59c0000 ldr r0, [ip] event_condition = (rtems_event_set) the_thread->Wait.count; 3000432c: e5941024 ldr r1, [r4, #36] seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 30004330: e0115000 ands r5, r1, r0 30004334: 0a000022 beq 300043c4 <_Event_Surrender+0xb8> /* * 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() && 30004338: e59f3108 ldr r3, [pc, #264] ; 30004448 <_Event_Surrender+0x13c> 3000433c: e5932000 ldr r2, [r3] 30004340: e3520000 cmp r2, #0 ; 0x0 30004344: 0a000003 beq 30004358 <_Event_Surrender+0x4c> 30004348: e59f30fc ldr r3, [pc, #252] ; 3000444c <_Event_Surrender+0x140> 3000434c: e5932000 ldr r2, [r3] 30004350: e1540002 cmp r4, r2 30004354: 0a000025 beq 300043f0 <_Event_Surrender+0xe4> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 30004358: e5943010 ldr r3, [r4, #16] 3000435c: e3130c01 tst r3, #256 ; 0x100 30004360: 0a000015 beq 300043bc <_Event_Surrender+0xb0> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 30004364: e1510005 cmp r1, r5 30004368: 0a000001 beq 30004374 <_Event_Surrender+0x68> 3000436c: e3170002 tst r7, #2 ; 0x2 30004370: 0a000011 beq 300043bc <_Event_Surrender+0xb0> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 30004374: e1e03005 mvn r3, r5 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 30004378: e5941028 ldr r1, [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 ); 3000437c: e0033000 and r3, r3, r0 the_thread->Wait.count = 0; 30004380: e3a02000 mov r2, #0 ; 0x0 /* * 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 ); 30004384: e58c3000 str r3, [ip] the_thread->Wait.count = 0; 30004388: e5842024 str r2, [r4, #36] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 3000438c: e5815000 str r5, [r1] _ISR_Flash( level ); 30004390: e10f3000 mrs r3, CPSR 30004394: e129f006 msr CPSR_fc, r6 30004398: e129f003 msr CPSR_fc, r3 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 3000439c: e5943050 ldr r3, [r4, #80] 300043a0: e3530002 cmp r3, #2 ; 0x2 300043a4: 0a000008 beq 300043cc <_Event_Surrender+0xc0> _ISR_Enable( level ); 300043a8: e129f006 msr CPSR_fc, r6 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 300043ac: e59f109c ldr r1, [pc, #156] ; 30004450 <_Event_Surrender+0x144> 300043b0: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } 300043b4: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} 300043b8: ea0007f9 b 300063a4 <_Thread_Clear_state> _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 300043bc: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 300043c0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level ); 300043c4: e129f006 msr CPSR_fc, r6 300043c8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 300043cc: e3a03003 mov r3, #3 ; 0x3 300043d0: e5843050 str r3, [r4, #80] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 300043d4: e129f006 msr CPSR_fc, r6 (void) _Watchdog_Remove( &the_thread->Timer ); 300043d8: e2840048 add r0, r4, #72 ; 0x48 300043dc: eb000de7 bl 30007b80 <_Watchdog_Remove> 300043e0: e59f1068 ldr r1, [pc, #104] ; 30004450 <_Event_Surrender+0x144> 300043e4: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } 300043e8: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} 300043ec: ea0007ec b 300063a4 <_Thread_Clear_state> /* * 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() && 300043f0: e59f805c ldr r8, [pc, #92] ; 30004454 <_Event_Surrender+0x148> 300043f4: e5983000 ldr r3, [r8] 300043f8: e3530001 cmp r3, #1 ; 0x1 300043fc: 0a000002 beq 3000440c <_Event_Surrender+0x100> 30004400: e5983000 ldr r3, [r8] 30004404: e3530002 cmp r3, #2 ; 0x2 30004408: 1affffd2 bne 30004358 <_Event_Surrender+0x4c> _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) ) { 3000440c: e1510005 cmp r1, r5 30004410: 0a000001 beq 3000441c <_Event_Surrender+0x110> 30004414: e3170002 tst r7, #2 ; 0x2 <== NOT EXECUTED 30004418: 0a000008 beq 30004440 <_Event_Surrender+0x134> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 3000441c: e1e03005 mvn r3, r5 30004420: e0033000 and r3, r3, r0 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 30004424: e5941028 ldr r1, [r4, #40] if ( _ISR_Is_in_progress() && _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 ); 30004428: e58c3000 str r3, [ip] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 3000442c: e3a02003 mov r2, #3 ; 0x3 _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; 30004430: e3a03000 mov r3, #0 ; 0x0 30004434: e5843024 str r3, [r4, #36] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 30004438: e5882000 str r2, [r8] ((_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; 3000443c: e5815000 str r5, [r1] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; } _ISR_Enable( level ); 30004440: e129f006 msr CPSR_fc, r6 30004444: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30004448: 30016100 .word 0x30016100 3000444c: 30016124 .word 0x30016124 30004450: 1003fff8 .word 0x1003fff8 30004454: 300162c4 .word 0x300162c4 30004458 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 30004458: e52de004 push {lr} ; (str lr, [sp, #-4]!) 3000445c: e24dd004 sub sp, sp, #4 ; 0x4 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 30004460: e1a0100d mov r1, sp 30004464: eb0008dd bl 300067e0 <_Thread_Get> switch ( location ) { 30004468: e59d2000 ldr r2, [sp] 3000446c: e3520000 cmp r2, #0 ; 0x0 30004470: 1a000013 bne 300044c4 <_Event_Timeout+0x6c> * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 30004474: e10f1000 mrs r1, CPSR 30004478: e38130c0 orr r3, r1, #192 ; 0xc0 3000447c: e129f003 msr CPSR_fc, r3 if ( !the_thread->Wait.count ) { /* verify thread is waiting */ 30004480: e5903024 ldr r3, [r0, #36] 30004484: e3530000 cmp r3, #0 ; 0x0 30004488: 0a00000f beq 300044cc <_Event_Timeout+0x74> _ISR_Enable( level ); return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 3000448c: e59f3068 ldr r3, [pc, #104] ; 300044fc <_Event_Timeout+0xa4> _Thread_Unnest_dispatch(); _ISR_Enable( level ); return; } the_thread->Wait.count = 0; 30004490: e5802024 str r2, [r0, #36] if ( _Thread_Is_executing( the_thread ) ) { 30004494: e5932000 ldr r2, [r3] 30004498: e1500002 cmp r0, r2 3000449c: 0a000010 beq 300044e4 <_Event_Timeout+0x8c> (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 300044a0: e3a03006 mov r3, #6 ; 0x6 300044a4: e5803034 str r3, [r0, #52] _ISR_Enable( level ); 300044a8: e129f001 msr CPSR_fc, r1 300044ac: e59f104c ldr r1, [pc, #76] ; 30004500 <_Event_Timeout+0xa8> 300044b0: eb0007bb bl 300063a4 <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 300044b4: e59f2048 ldr r2, [pc, #72] ; 30004504 <_Event_Timeout+0xac> 300044b8: e5923000 ldr r3, [r2] 300044bc: e2433001 sub r3, r3, #1 ; 0x1 300044c0: e5823000 str r3, [r2] case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 300044c4: e28dd004 add sp, sp, #4 ; 0x4 300044c8: e8bd8000 pop {pc} 300044cc: e59f2030 ldr r2, [pc, #48] ; 30004504 <_Event_Timeout+0xac> <== NOT EXECUTED 300044d0: e5923000 ldr r3, [r2] <== NOT EXECUTED 300044d4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 300044d8: e5823000 str r3, [r2] <== NOT EXECUTED _ISR_Disable( level ); if ( !the_thread->Wait.count ) { /* verify thread is waiting */ _Thread_Unnest_dispatch(); _ISR_Enable( level ); 300044dc: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 300044e0: eafffff7 b 300044c4 <_Event_Timeout+0x6c> <== NOT EXECUTED return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { Thread_blocking_operation_States sync = _Event_Sync_state; 300044e4: e59f201c ldr r2, [pc, #28] ; 30004508 <_Event_Timeout+0xb0> <== NOT EXECUTED 300044e8: e5923000 ldr r3, [r2] <== NOT EXECUTED if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || 300044ec: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 300044f0: 93a03002 movls r3, #2 ; 0x2 <== NOT EXECUTED 300044f4: 95823000 strls r3, [r2] <== NOT EXECUTED 300044f8: eaffffe8 b 300044a0 <_Event_Timeout+0x48> <== NOT EXECUTED 300044fc: 30016124 .word 0x30016124 30004500: 1003fff8 .word 0x1003fff8 30004504: 3001606c .word 0x3001606c 30004508: 300162c4 .word 0x300162c4 30008540 <_Heap_Allocate_aligned>: void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 30008540: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} uint32_t search_count; Heap_Block *the_block; void *user_ptr = NULL; uint32_t const page_size = the_heap->page_size; 30008544: e5909010 ldr r9, [r0, #16] void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 30008548: e1a07000 mov r7, r0 3000854c: e1a03001 mov r3, r1 30008550: e24dd010 sub sp, sp, #16 ; 0x10 Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 30008554: e1a00001 mov r0, r1 void *user_ptr = NULL; uint32_t const page_size = the_heap->page_size; Heap_Statistics *const stats = &the_heap->stats; Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; 30008558: e2433004 sub r3, r3, #4 ; 0x4 void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 3000855c: e1a0b002 mov fp, r2 Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 30008560: e1a01009 mov r1, r9 30008564: e5972014 ldr r2, [r7, #20] void *user_ptr = NULL; uint32_t const page_size = the_heap->page_size; Heap_Statistics *const stats = &the_heap->stats; Heap_Block *const tail = _Heap_Tail(the_heap); uint32_t const end_to_user_offs = size - HEAP_BLOCK_HEADER_OFFSET; 30008568: e58d3004 str r3, [sp, #4] uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 3000856c: eb000163 bl 30008b00 <_Heap_Calc_block_size> if(the_size == 0) 30008570: e3500000 cmp r0, #0 ; 0x0 30008574: e58d0008 str r0, [sp, #8] 30008578: 0a000064 beq 30008710 <_Heap_Allocate_aligned+0x1d0> */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 3000857c: e5975008 ldr r5, [r7, #8] return NULL; if(alignment == 0) 30008580: e35b0000 cmp fp, #0 ; 0x0 30008584: 03a0b004 moveq fp, #4 ; 0x4 alignment = CPU_ALIGNMENT; /* Find large enough free block that satisfies the alignment requirements. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 30008588: e1570005 cmp r7, r5 3000858c: 0a00005f beq 30008710 <_Heap_Allocate_aligned+0x1d0> 30008590: e3a0a000 mov sl, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 30008594: e5953004 ldr r3, [r5, #4] uint32_t const block_size = _Heap_Block_size(the_block); /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); if(block_size >= the_size) { /* the_block is large enough. */ 30008598: e59d1008 ldr r1, [sp, #8] 3000859c: e3c36001 bic r6, r3, #1 ; 0x1 300085a0: e1510006 cmp r1, r6 300085a4: 8a000023 bhi 30008638 <_Heap_Allocate_aligned+0xf8> return. It should be at least 'end_to_user_offs' bytes less than the the 'block_end' and should be aligned on 'alignment' boundary. Calculations are from the 'block_end' as we are going to split free block so that the upper part of the block becomes used block. */ _H_uptr_t const block_end = _H_p2u(the_block) + block_size; aligned_user_addr = block_end - end_to_user_offs; 300085a8: e59d3004 ldr r3, [sp, #4] /* Calculate 'aligned_user_addr' that will become the user pointer we return. It should be at least 'end_to_user_offs' bytes less than the the 'block_end' and should be aligned on 'alignment' boundary. Calculations are from the 'block_end' as we are going to split free block so that the upper part of the block becomes used block. */ _H_uptr_t const block_end = _H_p2u(the_block) + block_size; 300085ac: e0852006 add r2, r5, r6 aligned_user_addr = block_end - end_to_user_offs; 300085b0: e0634002 rsb r4, r3, r2 _H_uptr_t *value, uint32_t alignment ) { _H_uptr_t v = *value; *value = v - (v % alignment); 300085b4: e1a0100b mov r1, fp 300085b8: e1a00004 mov r0, r4 /* Calculate 'aligned_user_addr' that will become the user pointer we return. It should be at least 'end_to_user_offs' bytes less than the the 'block_end' and should be aligned on 'alignment' boundary. Calculations are from the 'block_end' as we are going to split free block so that the upper part of the block becomes used block. */ _H_uptr_t const block_end = _H_p2u(the_block) + block_size; 300085bc: e58d200c str r2, [sp, #12] 300085c0: eb003b77 bl 300173a4 <__umodsi3> 300085c4: e0608004 rsb r8, r0, r4 if(block_size >= the_size) { /* the_block is large enough. */ _H_uptr_t user_addr; _H_uptr_t aligned_user_addr; _H_uptr_t const user_area = _H_p2u(_Heap_User_area(the_block)); 300085c8: e1a00008 mov r0, r8 300085cc: e1a01009 mov r1, r9 300085d0: eb003b73 bl 300173a4 <__umodsi3> 300085d4: e2854008 add r4, r5, #8 ; 0x8 300085d8: e0602008 rsb r2, r0, r8 only at 'page_size' aligned addresses */ user_addr = aligned_user_addr; _Heap_Align_down_uptr(&user_addr, page_size); /* Make sure 'user_addr' calculated didn't run out of 'the_block'. */ if(user_addr >= user_area) { 300085dc: e1540002 cmp r4, r2 300085e0: 8a000014 bhi 30008638 <_Heap_Allocate_aligned+0xf8> /* The block seems to be acceptable. Check if the remainder of 'the_block' is less than 'min_block_size' so that 'the_block' won't actually be split at the address we assume. */ if(user_addr - user_area < the_heap->min_block_size) { 300085e4: e597c014 ldr ip, [r7, #20] 300085e8: e0643002 rsb r3, r4, r2 300085ec: e153000c cmp r3, ip 300085f0: 2a00001c bcs 30008668 <_Heap_Allocate_aligned+0x128> 'aligned_user_addr' to be outside of [0,page_size) range. If we do, we will need to store this distance somewhere to be able to resurrect the block address from the user pointer. (Having the distance within [0,page_size) range allows resurrection by aligning user pointer down to the nearest 'page_size' boundary.) */ if(aligned_user_addr - user_addr >= page_size) { 300085f4: e0643008 rsb r3, r4, r8 300085f8: e1590003 cmp r9, r3 300085fc: 81a02004 movhi r2, r4 30008600: 8a000018 bhi 30008668 <_Heap_Allocate_aligned+0x128> uint32_t alignment ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; 30008604: e1a00004 mov r0, r4 30008608: e1a0100b mov r1, fp 3000860c: e58dc000 str ip, [sp] 30008610: eb003b63 bl 300173a4 <__umodsi3> *value = r ? v - r + a : v; 30008614: e3500000 cmp r0, #0 ; 0x0 30008618: 1084300b addne r3, r4, fp 3000861c: 10600003 rsbne r0, r0, r3 30008620: 01a03000 moveq r3, r0 30008624: 10643000 rsbne r3, r4, r0 30008628: 01a00004 moveq r0, r4 /* The user pointer will be too far from 'user_addr'. See if we can make 'aligned_user_addr' to be close enough to the 'user_addr'. */ aligned_user_addr = user_addr; _Heap_Align_up_uptr(&aligned_user_addr, alignment); if(aligned_user_addr - user_addr >= page_size) { 3000862c: e1590003 cmp r9, r3 30008630: e59dc000 ldr ip, [sp] 30008634: 8a000009 bhi 30008660 <_Heap_Allocate_aligned+0x120> /* Find large enough free block that satisfies the alignment requirements. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; the_block = the_block->next, ++search_count) 30008638: e5955008 ldr r5, [r5, #8] 3000863c: e28aa001 add sl, sl, #1 ; 0x1 alignment = CPU_ALIGNMENT; /* Find large enough free block that satisfies the alignment requirements. */ for(the_block = _Heap_First(the_heap), search_count = 0; the_block != tail; 30008640: e1570005 cmp r7, r5 30008644: 1affffd2 bne 30008594 <_Heap_Allocate_aligned+0x54> 30008648: e3a00000 mov r0, #0 ; 0x0 } } } } if(stats->max_search < search_count) 3000864c: e5973044 ldr r3, [r7, #68] 30008650: e153000a cmp r3, sl stats->max_search = search_count; 30008654: 3587a044 strcc sl, [r7, #68] return user_ptr; } 30008658: e28dd010 add sp, sp, #16 ; 0x10 3000865c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* The user pointer will be too far from 'user_addr'. See if we can make 'aligned_user_addr' to be close enough to the 'user_addr'. */ aligned_user_addr = user_addr; _Heap_Align_up_uptr(&aligned_user_addr, alignment); if(aligned_user_addr - user_addr >= page_size) { 30008660: e1a02004 mov r2, r4 30008664: e1a08000 mov r8, r0 aligned_user_addr = 0; } } } if(aligned_user_addr) { 30008668: e3580000 cmp r8, #0 ; 0x0 3000866c: 0afffff1 beq 30008638 <_Heap_Allocate_aligned+0xf8> /* The block is indeed acceptable: calculate the size of the block to be allocated and perform allocation. */ uint32_t const alloc_size = block_end - user_addr + HEAP_BLOCK_USER_OFFSET; 30008670: e59d100c ldr r1, [sp, #12] 30008674: e2813008 add r3, r1, #8 ; 0x8 30008678: e0624003 rsb r4, r2, r3 Heap_Block *the_block, uint32_t alloc_size) { Heap_Statistics *const stats = &the_heap->stats; uint32_t const block_size = _Heap_Block_size(the_block); uint32_t const the_rest = block_size - alloc_size; 3000867c: e0642006 rsb r2, r4, r6 _HAssert(_Heap_Is_aligned(block_size, the_heap->page_size)); _HAssert(_Heap_Is_aligned(alloc_size, the_heap->page_size)); _HAssert(alloc_size <= block_size); _HAssert(_Heap_Is_prev_used(the_block)); if(the_rest >= the_heap->min_block_size) { 30008680: e152000c cmp r2, ip /* Split the block so that lower part is still free, and upper part becomes used. */ the_block->size = the_rest | HEAP_PREV_USED; 30008684: 23823001 orrcs r3, r2, #1 ; 0x1 30008688: 25853004 strcs r3, [r5, #4] the_block = _Heap_Block_at(the_block, the_rest); the_block->prev_size = the_rest; 3000868c: 27a52002 strcs r2, [r5, r2]! the_block->size = alloc_size; 30008690: 25854004 strcs r4, [r5, #4] _HAssert(_Heap_Is_aligned(block_size, the_heap->page_size)); _HAssert(_Heap_Is_aligned(alloc_size, the_heap->page_size)); _HAssert(alloc_size <= block_size); _HAssert(_Heap_Is_prev_used(the_block)); if(the_rest >= the_heap->min_block_size) { 30008694: 2a000007 bcs 300086b8 <_Heap_Allocate_aligned+0x178> /* Don't split the block as remainder is either zero or too small to be used as a separate free block. Change 'alloc_size' to the size of the block and remove the block from the list of free blocks. */ _Heap_Block_remove(the_block); alloc_size = block_size; stats->free_blocks -= 1; 30008698: e5973038 ldr r3, [r7, #56] Heap_Block *the_block ) { Heap_Block *block = the_block; Heap_Block *next = block->next; 3000869c: e5951008 ldr r1, [r5, #8] Heap_Block *prev = block->prev; 300086a0: e595200c ldr r2, [r5, #12] 300086a4: e2433001 sub r3, r3, #1 ; 0x1 prev->next = next; next->prev = prev; 300086a8: e581200c str r2, [r1, #12] 300086ac: e5873038 str r3, [r7, #56] { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 300086b0: e5821008 str r1, [r2, #8] 300086b4: e1a04006 mov r4, r6 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 300086b8: e0852004 add r2, r5, r4 } /* Mark the block as used (in the next block). */ _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; 300086bc: e5923004 ldr r3, [r2, #4] stats->allocs += 1; check_result(the_heap, the_block, user_addr, aligned_user_addr, size); user_ptr = (void*)aligned_user_addr; 300086c0: e1a00008 mov r0, r8 _Heap_Block_remove(the_block); alloc_size = block_size; stats->free_blocks -= 1; } /* Mark the block as used (in the next block). */ _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; 300086c4: e3833001 orr r3, r3, #1 ; 0x1 300086c8: e5823004 str r3, [r2, #4] /* Update statistics */ stats->free_size -= alloc_size; 300086cc: e5971030 ldr r1, [r7, #48] if(stats->min_free_size > stats->free_size) 300086d0: e5973034 ldr r3, [r7, #52] stats->free_blocks -= 1; } /* Mark the block as used (in the next block). */ _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; /* Update statistics */ stats->free_size -= alloc_size; 300086d4: e0641001 rsb r1, r4, r1 if(stats->min_free_size > stats->free_size) 300086d8: e1510003 cmp r1, r3 _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; 300086dc: e597304c ldr r3, [r7, #76] _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; /* Update statistics */ stats->free_size -= alloc_size; if(stats->min_free_size > stats->free_size) stats->min_free_size = stats->free_size; stats->used_blocks += 1; 300086e0: e5972040 ldr r2, [r7, #64] stats->free_blocks -= 1; } /* Mark the block as used (in the next block). */ _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; /* Update statistics */ stats->free_size -= alloc_size; 300086e4: e5871030 str r1, [r7, #48] if(stats->min_free_size > stats->free_size) stats->min_free_size = stats->free_size; 300086e8: 35871034 strcc r1, [r7, #52] _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; stats->allocs += 1; 300086ec: e5971048 ldr r1, [r7, #72] _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; 300086f0: e2833001 add r3, r3, #1 ; 0x1 _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; /* Update statistics */ stats->free_size -= alloc_size; if(stats->min_free_size > stats->free_size) stats->min_free_size = stats->free_size; stats->used_blocks += 1; 300086f4: e2822001 add r2, r2, #1 ; 0x1 _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; 300086f8: e083300a add r3, r3, sl stats->allocs += 1; 300086fc: e2811001 add r1, r1, #1 ; 0x1 _Heap_Block_at(the_block, alloc_size)->size |= HEAP_PREV_USED; /* Update statistics */ stats->free_size -= alloc_size; if(stats->min_free_size > stats->free_size) stats->min_free_size = stats->free_size; stats->used_blocks += 1; 30008700: e5872040 str r2, [r7, #64] _HAssert(_Heap_Is_aligned_ptr((void*)aligned_user_addr, alignment)); the_block = block_allocate(the_heap, the_block, alloc_size); stats->searches += search_count + 1; 30008704: e587304c str r3, [r7, #76] stats->allocs += 1; 30008708: e5871048 str r1, [r7, #72] 3000870c: eaffffce b 3000864c <_Heap_Allocate_aligned+0x10c> } } } if(stats->max_search < search_count) stats->max_search = search_count; 30008710: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30008714: eaffffcf b 30008658 <_Heap_Allocate_aligned+0x118> <== NOT EXECUTED 3002b264 <_Heap_Get_information>: Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 3002b264: e92d0070 push {r4, r5, r6} Heap_Block *the_block = the_heap->start; 3002b268: e5902020 ldr r2, [r0, #32] Heap_Block *const end = the_heap->final; 3002b26c: e5906024 ldr r6, [r0, #36] _HAssert(the_block->prev_size == HEAP_PREV_USED); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; 3002b270: e3a03000 mov r3, #0 ; 0x0 the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 3002b274: e1520006 cmp r2, r6 Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 3002b278: 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; 3002b27c: e5813010 str r3, [r1, #16] 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; 3002b280: e5813000 str r3, [r1] the_info->Free.total = 0; 3002b284: e5813008 str r3, [r1, #8] the_info->Free.largest = 0; 3002b288: e5813004 str r3, [r1, #4] the_info->Used.number = 0; 3002b28c: e581300c str r3, [r1, #12] the_info->Used.total = 0; 3002b290: e5813014 str r3, [r1, #20] the_info->Used.largest = 0; while ( the_block != end ) { 3002b294: 0a00001f beq 3002b318 <_Heap_Get_information+0xb4> 3002b298: e5925004 ldr r5, [r2, #4] 3002b29c: ea00000b b 3002b2d0 <_Heap_Get_information+0x6c> 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++; 3002b2a0: e59c300c ldr r3, [ip, #12] the_info->Used.total += the_size; 3002b2a4: e59c2014 ldr r2, [ip, #20] if ( the_info->Used.largest < the_size ) 3002b2a8: 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++; 3002b2ac: e2833001 add r3, r3, #1 ; 0x1 the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) 3002b2b0: 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; 3002b2b4: 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++; 3002b2b8: e58c300c str r3, [ip, #12] the_info->Used.total += the_size; 3002b2bc: e58c2014 str r2, [ip, #20] if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; 3002b2c0: 358c0010 strcc r0, [ip, #16] the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { 3002b2c4: e1560004 cmp r6, r4 } else { the_info->Free.number++; the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; if ( the_size != next_block->prev_size ) 3002b2c8: 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 ) { 3002b2cc: 0a000011 beq 3002b318 <_Heap_Get_information+0xb4> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 3002b2d0: e3c50001 bic r0, r5, #1 ; 0x1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 3002b2d4: e0824000 add r4, r2, r0 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 3002b2d8: e5945004 ldr r5, [r4, #4] 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) ) { 3002b2dc: e3150001 tst r5, #1 ; 0x1 3002b2e0: 1affffee bne 3002b2a0 <_Heap_Get_information+0x3c> 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++; 3002b2e4: e59c3000 ldr r3, [ip] the_info->Free.total += the_size; 3002b2e8: 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++; 3002b2ec: e2833001 add r3, r3, #1 ; 0x1 the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) 3002b2f0: 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; 3002b2f4: e0822000 add r2, r2, r0 if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; 3002b2f8: 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++; 3002b2fc: e58c3000 str r3, [ip] the_info->Free.total += the_size; 3002b300: 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 ) 3002b304: e5943000 ldr r3, [r4] 3002b308: e1530000 cmp r3, r0 3002b30c: 0affffec beq 3002b2c4 <_Heap_Get_information+0x60> 3002b310: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3002b314: ea000003 b 3002b328 <_Heap_Get_information+0xc4> <== NOT EXECUTED } /* 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; 3002b318: e59c3014 ldr r3, [ip, #20] 3002b31c: e3a00000 mov r0, #0 ; 0x0 3002b320: e2833008 add r3, r3, #8 ; 0x8 3002b324: e58c3014 str r3, [ip, #20] return HEAP_GET_INFORMATION_SUCCESSFUL; } 3002b328: e8bd0070 pop {r4, r5, r6} 3002b32c: e12fff1e bx lr 30013edc <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013edc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30013ee0: e24dd00c sub sp, sp, #12 ; 0xc 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; *avail_mem_size = 0; 30013ee4: e59dc030 ldr ip, [sp, #48] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013ee8: e1a04001 mov r4, r1 30013eec: e1a09003 mov r9, r3 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; 30013ef0: e5901014 ldr r1, [r0, #20] uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; 30013ef4: e3a03000 mov r3, #0 ; 0x0 void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013ef8: e1a05000 mov r5, r0 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; 30013efc: e590b010 ldr fp, [r0, #16] *old_mem_size = 0; 30013f00: e5893000 str r3, [r9] *avail_mem_size = 0; 30013f04: e58c3000 str r3, [ip] 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; 30013f08: e58d1004 str r1, [sp, #4] /* 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); 30013f0c: e1a00004 mov r0, r4 30013f10: e5951010 ldr r1, [r5, #16] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 30013f14: e1a08002 mov r8, r2 30013f18: ebfff84a bl 30012048 <__umodsi3> 30013f1c: e2442008 sub r2, 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 ); 30013f20: e595c020 ldr ip, [r5, #32] 30013f24: e5951024 ldr r1, [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); 30013f28: e0606002 rsb r6, r0, r2 *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)) 30013f2c: e156000c cmp r6, ip 30013f30: 33a03000 movcc r3, #0 ; 0x0 30013f34: 23a03001 movcs r3, #1 ; 0x1 30013f38: e1560001 cmp r6, r1 30013f3c: 83a03000 movhi r3, #0 ; 0x0 30013f40: e3530000 cmp r3, #0 ; 0x0 30013f44: 0a00002d beq 30014000 <_Heap_Resize_block+0x124> return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 30013f48: e5962004 ldr r2, [r6, #4] */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 30013f4c: e3c2a001 bic sl, r2, #1 ; 0x1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 30013f50: e086700a add r7, r6, sl 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) || 30013f54: e15c0007 cmp ip, r7 30013f58: 83a03000 movhi r3, #0 ; 0x0 30013f5c: 93a03001 movls r3, #1 ; 0x1 30013f60: e1510007 cmp r1, r7 30013f64: 33a03000 movcc r3, #0 ; 0x0 30013f68: e3530000 cmp r3, #0 ; 0x0 30013f6c: 0a000023 beq 30014000 <_Heap_Resize_block+0x124> */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 30013f70: e5973004 ldr r3, [r7, #4] 30013f74: e3130001 tst r3, #1 ; 0x1 30013f78: 0a000020 beq 30014000 <_Heap_Resize_block+0x124> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 30013f7c: e3c33001 bic r3, 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) || 30013f80: e1510007 cmp r1, r7 30013f84: e58d3000 str r3, [sp] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 30013f88: e0873003 add r3, r7, r3 30013f8c: 15933004 ldrne r3, [r3, #4] 30013f90: 03a01001 moveq r1, #1 ; 0x1 30013f94: 12033001 andne r3, r3, #1 ; 0x1 30013f98: 158d3008 strne r3, [sp, #8] _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) 30013f9c: e0643007 rsb r3, r4, r7 30013fa0: e2830004 add r0, r3, #4 ; 0x4 !_Heap_Is_prev_used(next_block)) return HEAP_RESIZE_FATAL_ERROR; next_block_size = _Heap_Block_size(next_block); next_next_block = _Heap_Block_at(next_block, next_block_size); next_is_used = (next_block == the_heap->final) || 30013fa4: 058d1008 streq r1, [sp, #8] old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 30013fa8: e1500008 cmp r0, r8 /* 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; 30013fac: e5890000 str r0, [r9] _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; 30013fb0: e2029001 and r9, r2, #1 ; 0x1 old_user_size = _Addresses_Subtract(next_block, starting_address) + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 30013fb4: 2a000014 bcs 3001400c <_Heap_Resize_block+0x130> /* 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 */ 30013fb8: e59d2008 ldr r2, [sp, #8] 30013fbc: e3520000 cmp r2, #0 ; 0x0 30013fc0: 1a00000c bne 30013ff8 <_Heap_Resize_block+0x11c> return HEAP_RESIZE_UNSATISFIED; else { uint32_t add_block_size = size - old_user_size; 30013fc4: e0604008 rsb r4, r0, r8 uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 30013fc8: e1a00004 mov r0, r4 30013fcc: e1a0100b mov r1, fp 30013fd0: ebfff81c bl 30012048 <__umodsi3> *value = r ? v - r + a : v; 30013fd4: e3500000 cmp r0, #0 ; 0x0 30013fd8: 1084300b addne r3, r4, fp 30013fdc: e59d2004 ldr r2, [sp, #4] 30013fe0: 10604003 rsbne r4, r0, r3 _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) 30013fe4: e59d3000 ldr r3, [sp] 30013fe8: e1540002 cmp r4, r2 30013fec: 21a02004 movcs r2, r4 30013ff0: e1530002 cmp r3, r2 30013ff4: 2a000049 bcs 30014120 <_Heap_Resize_block+0x244> } } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; 30013ff8: e3a00001 mov r0, #1 ; 0x1 30013ffc: ea000000 b 30014004 <_Heap_Resize_block+0x128> 30014000: e3a00002 mov r0, #2 ; 0x2 } 30014004: e28dd00c add sp, sp, #12 ; 0xc 30014008: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} --stats->used_blocks; } } else { /* Calculate how much memory we could free */ uint32_t free_block_size = old_user_size - size; 3001400c: e0684000 rsb r4, r8, r0 uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 30014010: e1a00004 mov r0, r4 30014014: e1a0100b mov r1, fp 30014018: ebfff80a bl 30012048 <__umodsi3> _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 3001401c: e0544000 subs r4, r4, r0 30014020: 0a000020 beq 300140a8 <_Heap_Resize_block+0x1cc> 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; if (new_block_size < min_block_size) { 30014024: e59dc004 ldr ip, [sp, #4] /* 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; 30014028: e064000a rsb r0, r4, sl if (new_block_size < min_block_size) { 3001402c: e15c0000 cmp ip, r0 30014030: 9a000021 bls 300140bc <_Heap_Resize_block+0x1e0> uint32_t delta = min_block_size - new_block_size; 30014034: e060300c rsb r3, r0, ip _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 30014038: e0544003 subs r4, r4, r3 ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } new_block_size += delta; 3001403c: 10800003 addne r0, r0, r3 if (new_block_size < min_block_size) { uint32_t delta = min_block_size - new_block_size; _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 30014040: 1a00001d bne 300140bc <_Heap_Resize_block+0x1e0> ++stats->resizes; 30014044: e5953054 ldr r3, [r5, #84] 30014048: e1a00004 mov r0, r4 3001404c: e2833001 add r3, r3, #1 ; 0x1 30014050: e5853054 str r3, [r5, #84] 30014054: eaffffea b 30014004 <_Heap_Resize_block+0x128> 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; *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; } else if (free_block_size >= min_block_size) { 30014058: e59dc004 ldr ip, [sp, #4] <== NOT EXECUTED 3001405c: e15c0004 cmp ip, r4 <== NOT EXECUTED 30014060: 8a000010 bhi 300140a8 <_Heap_Resize_block+0x1cc> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 30014064: e0861000 add r1, r6, r0 <== NOT EXECUTED /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; 30014068: 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; 3001406c: 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; 30014070: e5863004 str r3, [r6, #4] <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 30014074: e5812004 str r2, [r1, #4] <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 30014078: e5953040 ldr r3, [r5, #64] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 3001407c: 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 */ 30014080: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 30014084: 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 */ 30014088: 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)); 3001408c: 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 */ 30014090: e5852050 str r2, [r5, #80] <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 30014094: e1a00005 mov r0, r5 <== NOT EXECUTED 30014098: ebffd80e bl 3000a0d8 <_Heap_Free> <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 3001409c: e59d1030 ldr r1, [sp, #48] <== NOT EXECUTED 300140a0: e2443004 sub r3, r4, #4 ; 0x4 <== NOT EXECUTED 300140a4: e5813000 str r3, [r1] <== NOT EXECUTED } } } ++stats->resizes; 300140a8: e5953054 ldr r3, [r5, #84] 300140ac: e3a00000 mov r0, #0 ; 0x0 300140b0: e2833001 add r3, r3, #1 ; 0x1 300140b4: e5853054 str r3, [r5, #84] 300140b8: eaffffd1 b 30014004 <_Heap_Resize_block+0x128> _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) { 300140bc: e59d1008 ldr r1, [sp, #8] 300140c0: e3510000 cmp r1, #0 ; 0x0 300140c4: 1affffe3 bne 30014058 <_Heap_Resize_block+0x17c> /* 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; 300140c8: e59d3000 ldr r3, [sp] _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; next_next_block->prev_size = new_next_block_size; 300140cc: e59dc000 ldr ip, [sp] if (!next_is_used) { /* 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; 300140d0: e0842003 add r2, r4, r3 300140d4: e0861000 add r1, r6, r0 _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 300140d8: e1803009 orr r3, r0, r9 new_next_block->size = new_next_block_size | HEAP_PREV_USED; 300140dc: e3820001 orr r0, r2, #1 ; 0x1 next_next_block->prev_size = new_next_block_size; 300140e0: e787200c str r2, [r7, ip] 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; 300140e4: e5863004 str r3, [r6, #4] new_next_block->size = new_next_block_size | HEAP_PREV_USED; 300140e8: 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; 300140ec: e5953030 ldr r3, [r5, #48] Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 300140f0: e597000c ldr r0, [r7, #12] 300140f4: e0833004 add r3, r3, r4 Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 300140f8: e597c008 ldr ip, [r7, #8] 300140fc: e5853030 str r3, [r5, #48] *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 30014100: e59d3030 ldr r3, [sp, #48] 30014104: e2422004 sub r2, r2, #4 ; 0x4 Heap_Block *prev = block->prev; block = new_block; block->next = next; 30014108: e581c008 str ip, [r1, #8] block->prev = prev; 3001410c: e581000c str r0, [r1, #12] 30014110: e5832000 str r2, [r3] next->prev = prev->next = block; 30014114: e5801008 str r1, [r0, #8] 30014118: e58c100c str r1, [ip, #12] 3001411c: eaffffe1 b 300140a8 <_Heap_Resize_block+0x1cc> _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) return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = 30014120: e1a01007 mov r1, r7 30014124: e1a00005 mov r0, r5 30014128: ebffc5d6 bl 30005888 <_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; 3001412c: e080000a add r0, r0, sl 30014130: e1800009 orr r0, r0, r9 30014134: e5860004 str r0, [r6, #4] --stats->used_blocks; 30014138: e5953040 ldr r3, [r5, #64] 3001413c: e2433001 sub r3, r3, #1 ; 0x1 30014140: e5853040 str r3, [r5, #64] 30014144: eaffffd7 b 300140a8 <_Heap_Resize_block+0x1cc> 3000d9b0 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 3000d9b0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; 3000d9b4: e5903024 ldr r3, [r0, #36] Heap_Control *the_heap, int source, bool do_dump ) { Heap_Block *the_block = the_heap->start; 3000d9b8: e5906020 ldr r6, [r0, #32] bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 3000d9bc: e24dd004 sub sp, sp, #4 ; 0x4 Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; 3000d9c0: e58d3000 str r3, [sp] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 3000d9c4: e5963004 ldr r3, [r6, #4] /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) 3000d9c8: e251b000 subs fp, r1, #0 ; 0x0 source = the_heap->stats.instance; 3000d9cc: b590b028 ldrlt fp, [r0, #40] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 3000d9d0: e3130001 tst r3, #1 ; 0x1 bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 3000d9d4: e1a05000 mov r5, r0 /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { 3000d9d8: 13a08000 movne r8, #0 ; 0x0 3000d9dc: 0a000086 beq 3000dbfc <_Heap_Walk+0x24c> printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); error = 1; } if (the_block->prev_size != the_heap->page_size) { 3000d9e0: e5962000 ldr r2, [r6] 3000d9e4: e5953010 ldr r3, [r5, #16] 3000d9e8: e1520003 cmp r2, r3 3000d9ec: 0a000003 beq 3000da00 <_Heap_Walk+0x50> printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); 3000d9f0: e59f0238 ldr r0, [pc, #568] ; 3000dc30 <_Heap_Walk+0x280> <== NOT EXECUTED 3000d9f4: e1a0100b mov r1, fp <== NOT EXECUTED 3000d9f8: ebffdc18 bl 30004a60 <== NOT EXECUTED 3000d9fc: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED error = 1; } while ( the_block != end ) { 3000da00: e59d3000 ldr r3, [sp] 3000da04: e1560003 cmp r6, r3 3000da08: 0a000080 beq 3000dc10 <_Heap_Walk+0x260> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 3000da0c: e5960004 ldr r0, [r6, #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)) { 3000da10: e5951020 ldr r1, [r5, #32] 3000da14: e3c07001 bic r7, r0, #1 ; 0x1 3000da18: e5952024 ldr r2, [r5, #36] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 3000da1c: e0864007 add r4, r6, r7 3000da20: e1540001 cmp r4, r1 3000da24: 33a03000 movcc r3, #0 ; 0x0 3000da28: 23a03001 movcs r3, #1 ; 0x1 3000da2c: e1540002 cmp r4, r2 3000da30: 83a03000 movhi r3, #0 ; 0x0 3000da34: e3530000 cmp r3, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 3000da38: 1200a001 andne sl, r0, #1 ; 0x1 3000da3c: 11a09004 movne r9, r4 3000da40: 0a000075 beq 3000dc1c <_Heap_Walk+0x26c> printk("PASS: %d !block %p is out of heap\n", source, next_block); error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { 3000da44: e5943004 ldr r3, [r4, #4] 3000da48: e3130001 tst r3, #1 ; 0x1 3000da4c: 1a00003f bne 3000db50 <_Heap_Walk+0x1a0> if (do_dump) printk( " prev %p next %p", the_block->prev, the_block->next); if (_Heap_Block_size(the_block) != next_block->prev_size) { 3000da50: e5943000 ldr r3, [r4] 3000da54: e1530007 cmp r3, r7 3000da58: 0a000003 beq 3000da6c <_Heap_Walk+0xbc> if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); 3000da5c: e59f01d0 ldr r0, [pc, #464] ; 3000dc34 <_Heap_Walk+0x284> <== NOT EXECUTED 3000da60: e1a0100b mov r1, fp <== NOT EXECUTED 3000da64: ebffdbfd bl 30004a60 <== NOT EXECUTED 3000da68: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED error = 1; } if (!prev_used) { 3000da6c: e35a0000 cmp sl, #0 ; 0x0 3000da70: 1a000005 bne 3000da8c <_Heap_Walk+0xdc> if (do_dump || error) printk("\n"); 3000da74: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 3000da78: 1a00005c bne 3000dbf0 <_Heap_Walk+0x240> <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); 3000da7c: e59f01b4 ldr r0, [pc, #436] ; 3000dc38 <_Heap_Walk+0x288> <== NOT EXECUTED 3000da80: e1a0100b mov r1, fp <== NOT EXECUTED 3000da84: ebffdbf5 bl 30004a60 <== NOT EXECUTED 3000da88: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 3000da8c: e5953008 ldr r3, [r5, #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) 3000da90: e1530006 cmp r3, r6 3000da94: 11550003 cmpne r5, r3 3000da98: 0a000003 beq 3000daac <_Heap_Walk+0xfc> block = block->next; 3000da9c: 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) 3000daa0: e1530006 cmp r3, r6 3000daa4: 11550003 cmpne r5, r3 3000daa8: 1afffffb bne 3000da9c <_Heap_Walk+0xec> block = block->next; if(block != the_block) { 3000daac: e1530006 cmp r3, r6 3000dab0: 0a000026 beq 3000db50 <_Heap_Walk+0x1a0> if (do_dump || error) printk("\n"); 3000dab4: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 3000dab8: 1a000049 bne 3000dbe4 <_Heap_Walk+0x234> <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); 3000dabc: e59f0178 ldr r0, [pc, #376] ; 3000dc3c <_Heap_Walk+0x28c> <== NOT EXECUTED 3000dac0: e1a0100b mov r1, fp <== NOT EXECUTED 3000dac4: ebffdbe5 bl 30004a60 <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 3000dac8: e59f0170 ldr r0, [pc, #368] ; 3000dc40 <_Heap_Walk+0x290> <== NOT EXECUTED 3000dacc: ebffdbe3 bl 30004a60 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 3000dad0: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); 3000dad4: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { 3000dad8: e1530007 cmp r3, r7 <== NOT EXECUTED 3000dadc: 8a000020 bhi 3000db64 <_Heap_Walk+0x1b4> <== NOT EXECUTED printk("PASS: %d !block size is too small\n", source); error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { 3000dae0: e1a00007 mov r0, r7 3000dae4: e5951010 ldr r1, [r5, #16] 3000dae8: eb00262d bl 300173a4 <__umodsi3> 3000daec: e3500000 cmp r0, #0 ; 0x0 3000daf0: 1a000031 bne 3000dbbc <_Heap_Walk+0x20c> printk("PASS: %d !block size is misaligned\n", source); error = 1; } if (++passes > (do_dump ? 10 : 0) && error) 3000daf4: e3580000 cmp r8, #0 ; 0x0 3000daf8: 1a000032 bne 3000dbc8 <_Heap_Walk+0x218> 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 ) { 3000dafc: e59d3000 ldr r3, [sp] 3000db00: e1530004 cmp r3, r4 3000db04: 0a000041 beq 3000dc10 <_Heap_Walk+0x260> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 3000db08: e5940004 ldr r0, [r4, #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)) { 3000db0c: e5951020 ldr r1, [r5, #32] 3000db10: e3c07001 bic r7, r0, #1 ; 0x1 3000db14: e5952024 ldr r2, [r5, #36] 3000db18: e0844007 add r4, r4, r7 3000db1c: e1540001 cmp r4, r1 3000db20: 33a03000 movcc r3, #0 ; 0x0 3000db24: 23a03001 movcs r3, #1 ; 0x1 3000db28: e1540002 cmp r4, r2 3000db2c: 83a03000 movhi r3, #0 ; 0x0 3000db30: e3530000 cmp r3, #0 ; 0x0 3000db34: 0a000037 beq 3000dc18 <_Heap_Walk+0x268> printk("PASS: %d !block %p is out of heap\n", source, next_block); error = 1; break; } if (!_Heap_Is_prev_used(next_block)) { 3000db38: e5943004 ldr r3, [r4, #4] */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 3000db3c: e1a06009 mov r6, r9 3000db40: e3130001 tst r3, #1 ; 0x1 3000db44: e200a001 and sl, r0, #1 ; 0x1 3000db48: e1a09004 mov r9, r4 3000db4c: 0affffbf beq 3000da50 <_Heap_Walk+0xa0> error = 1; } } } if (do_dump || error) printk("\n"); 3000db50: e3580000 cmp r8, #0 ; 0x0 3000db54: 1affffdb bne 3000dac8 <_Heap_Walk+0x118> if (the_size < the_heap->min_block_size) { 3000db58: e5953014 ldr r3, [r5, #20] 3000db5c: e1530007 cmp r3, r7 3000db60: 9affffde bls 3000dae0 <_Heap_Walk+0x130> printk("PASS: %d !block size is too small\n", source); 3000db64: e59f00d8 ldr r0, [pc, #216] ; 3000dc44 <_Heap_Walk+0x294> <== NOT EXECUTED 3000db68: e1a0100b mov r1, fp <== NOT EXECUTED 3000db6c: ebffdbbb bl 30004a60 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 3000db70: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000db74: e59f00cc ldr r0, [pc, #204] ; 3000dc48 <_Heap_Walk+0x298> <== NOT EXECUTED 3000db78: e1a0100b mov r1, fp <== NOT EXECUTED 3000db7c: e1a02006 mov r2, r6 <== NOT EXECUTED 3000db80: ebffdbb6 bl 30004a60 <== NOT EXECUTED 3000db84: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 3000db88: e5963004 ldr r3, [r6, #4] source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { 3000db8c: e5950010 ldr r0, [r5, #16] 3000db90: e3c32001 bic r2, r3, #1 ; 0x1 3000db94: e1500002 cmp r0, r2 3000db98: 01a00008 moveq r0, r8 3000db9c: 0a000004 beq 3000dbb4 <_Heap_Walk+0x204> printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 3000dba0: e1a03000 mov r3, r0 <== NOT EXECUTED 3000dba4: e1a0100b mov r1, fp <== NOT EXECUTED 3000dba8: e59f009c ldr r0, [pc, #156] ; 3000dc4c <_Heap_Walk+0x29c> <== NOT EXECUTED 3000dbac: ebffdbab bl 30004a60 <== NOT EXECUTED 3000dbb0: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } 3000dbb4: e28dd004 add sp, sp, #4 ; 0x4 3000dbb8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} printk("PASS: %d !block size is too small\n", source); error = 1; break; } if (!_Heap_Is_aligned( the_size, the_heap->page_size)) { printk("PASS: %d !block size is misaligned\n", source); 3000dbbc: e59f008c ldr r0, [pc, #140] ; 3000dc50 <_Heap_Walk+0x2a0> <== NOT EXECUTED 3000dbc0: e1a0100b mov r1, fp <== NOT EXECUTED 3000dbc4: ebffdba5 bl 30004a60 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", 3000dbc8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000dbcc: e59f0074 ldr r0, [pc, #116] ; 3000dc48 <_Heap_Walk+0x298> <== NOT EXECUTED 3000dbd0: e1a0100b mov r1, fp <== NOT EXECUTED 3000dbd4: e1a02006 mov r2, r6 <== NOT EXECUTED 3000dbd8: ebffdba0 bl 30004a60 <== NOT EXECUTED 3000dbdc: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED 3000dbe0: eaffffe8 b 3000db88 <_Heap_Walk+0x1d8> <== NOT EXECUTED { /* 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; if(block != the_block) { if (do_dump || error) printk("\n"); 3000dbe4: e59f0054 ldr r0, [pc, #84] ; 3000dc40 <_Heap_Walk+0x290> <== NOT EXECUTED 3000dbe8: ebffdb9c bl 30004a60 <== NOT EXECUTED 3000dbec: eaffffb2 b 3000dabc <_Heap_Walk+0x10c> <== NOT EXECUTED if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); error = 1; } if (!prev_used) { if (do_dump || error) printk("\n"); 3000dbf0: e59f0048 ldr r0, [pc, #72] ; 3000dc40 <_Heap_Walk+0x290> <== NOT EXECUTED 3000dbf4: ebffdb99 bl 30004a60 <== NOT EXECUTED 3000dbf8: eaffff9f b 3000da7c <_Heap_Walk+0xcc> <== NOT EXECUTED /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { printk("PASS: %d !HEAP_PREV_USED flag of 1st block isn't set\n", source); 3000dbfc: e59f0050 ldr r0, [pc, #80] ; 3000dc54 <_Heap_Walk+0x2a4> <== NOT EXECUTED 3000dc00: e1a0100b mov r1, fp <== NOT EXECUTED 3000dc04: ebffdb95 bl 30004a60 <== NOT EXECUTED 3000dc08: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED 3000dc0c: eaffff73 b 3000d9e0 <_Heap_Walk+0x30> <== NOT EXECUTED source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, 3000dc10: e59d6000 ldr r6, [sp] 3000dc14: eaffffdb b 3000db88 <_Heap_Walk+0x1d8> */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 3000dc18: e1a06009 mov r6, r9 <== NOT EXECUTED printk(" (prev_size) %d", the_block->prev_size); } if (!_Heap_Is_block_in(the_heap, next_block)) { if (do_dump) printk("\n"); printk("PASS: %d !block %p is out of heap\n", source, next_block); 3000dc1c: e1a02004 mov r2, r4 <== NOT EXECUTED 3000dc20: e59f0030 ldr r0, [pc, #48] ; 3000dc58 <_Heap_Walk+0x2a8> <== NOT EXECUTED 3000dc24: e1a0100b mov r1, fp <== NOT EXECUTED 3000dc28: ebffdb8c bl 30004a60 <== NOT EXECUTED 3000dc2c: eaffffe5 b 3000dbc8 <_Heap_Walk+0x218> <== NOT EXECUTED 3000dc30: 30019fa4 .word 0x30019fa4 3000dc34: 30019ffc .word 0x30019ffc 3000dc38: 3001a028 .word 0x3001a028 3000dc3c: 3001a054 .word 0x3001a054 3000dc40: 30019584 .word 0x30019584 3000dc44: 3001a080 .word 0x3001a080 3000dc48: 3001a0c8 .word 0x3001a0c8 3000dc4c: 3001a104 .word 0x3001a104 3000dc50: 3001a0a4 .word 0x3001a0a4 3000dc54: 30019f6c .word 0x30019f6c 3000dc58: 30019fd8 .word 0x30019fd8 3000a2c8 <_Objects_API_maximum_class>: int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 3000a2c8: e2400001 sub r0, r0, #1 ; 0x1 3000a2cc: e3500003 cmp r0, #3 ; 0x3 3000a2d0: 979ff100 ldrls pc, [pc, r0, lsl #2] 3000a2d4: ea000003 b 3000a2e8 <_Objects_API_maximum_class+0x20> 3000a2d8: 3000a308 .word 0x3000a308 <== NOT EXECUTED 3000a2dc: 3000a300 .word 0x3000a300 <== NOT EXECUTED 3000a2e0: 3000a2f8 .word 0x3000a2f8 <== NOT EXECUTED 3000a2e4: 3000a2f0 .word 0x3000a2f0 <== NOT EXECUTED case OBJECTS_CLASSIC_API: return OBJECTS_RTEMS_CLASSES_LAST; case OBJECTS_POSIX_API: return OBJECTS_POSIX_CLASSES_LAST; case OBJECTS_ITRON_API: return OBJECTS_ITRON_CLASSES_LAST; 3000a2e8: e3e00000 mvn r0, #0 ; 0x0 case OBJECTS_NO_API: default: break; } return -1; } 3000a2ec: e12fff1e bx lr 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; 3000a2f0: e3a00008 mov r0, #8 ; 0x8 3000a2f4: e12fff1e bx lr int _Objects_API_maximum_class( uint32_t api ) { switch (api) { 3000a2f8: e3a0000c mov r0, #12 ; 0xc <== NOT EXECUTED 3000a2fc: e12fff1e bx lr <== NOT EXECUTED 3000a300: e3a0000a mov r0, #10 ; 0xa 3000a304: e12fff1e bx lr 3000a308: e3a00002 mov r0, #2 ; 0x2 3000a30c: e12fff1e bx lr 30005a58 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 30005a58: 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; 30005a5c: e1d0a0b8 ldrh sl, [r0, #8] minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 30005a60: e1d091b0 ldrh r9, [r0, #16] */ void _Objects_Extend_information( Objects_Information *information ) { 30005a64: 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 ) 30005a68: e159000a cmp r9, sl */ void _Objects_Extend_information( Objects_Information *information ) { 30005a6c: e1a05000 mov r5, r0 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 30005a70: 2a000071 bcs 30005c3c <_Objects_Extend_information+0x1e4> 30005a74: e3a04000 mov r4, #0 ; 0x0 30005a78: e5907014 ldr r7, [r0, #20] 30005a7c: e1a0800a mov r8, sl 30005a80: e1a06004 mov r6, r4 30005a84: e3a0b001 mov fp, #1 ; 0x1 30005a88: e3a00003 mov r0, #3 ; 0x3 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 30005a8c: e5d53012 ldrb r3, [r5, #18] * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 30005a90: e0879009 add r9, r7, r9 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 30005a94: e3530000 cmp r3, #0 ; 0x0 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 30005a98: e58d9004 str r9, [sp, #4] /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 30005a9c: 1a000080 bne 30005ca4 <_Objects_Extend_information+0x24c> if ( !object_blocks ) return; } else { object_blocks = (void**) 30005aa0: e59d3004 ldr r3, [sp, #4] 30005aa4: e080000a add r0, r0, sl 30005aa8: e0800003 add r0, r0, r3 30005aac: e1a00100 lsl r0, r0, #2 30005ab0: eb00088c bl 30007ce8 <_Workspace_Allocate_or_fatal_error> * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 30005ab4: e1d531b0 ldrh r3, [r5, #16] /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 30005ab8: e1a0210b lsl r2, fp, #2 if ( !object_blocks ) return; } else { object_blocks = (void**) 30005abc: e1a0c000 mov ip, r0 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 30005ac0: e08c9002 add r9, ip, r2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 30005ac4: e153000a cmp r3, sl 30005ac8: e0897002 add r7, r9, r2 30005acc: 8a000080 bhi 30005cd4 <_Objects_Extend_information+0x27c> else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 30005ad0: e35a0000 cmp sl, #0 ; 0x0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 30005ad4: 13a03000 movne r3, #0 ; 0x0 /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; 30005ad8: 11a02003 movne r2, r3 else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 30005adc: 0a000003 beq 30005af0 <_Objects_Extend_information+0x98> local_table[ index ] = NULL; 30005ae0: e7872103 str r2, [r7, r3, lsl #2] else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 30005ae4: e2833001 add r3, r3, #1 ; 0x1 30005ae8: e153000a cmp r3, sl 30005aec: 3afffffb bcc 30005ae0 <_Objects_Extend_information+0x88> 30005af0: e1a04104 lsl r4, r4, #2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 30005af4: e3a00000 mov r0, #0 ; 0x0 inactive_per_block[block_count] = 0; 30005af8: e7890004 str r0, [r9, r4] for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005afc: e5953014 ldr r3, [r5, #20] /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 30005b00: e78c0004 str r0, [ip, r4] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005b04: e0881003 add r1, r8, r3 30005b08: e1580001 cmp r8, r1 30005b0c: 2a000006 bcs 30005b2c <_Objects_Extend_information+0xd4> 30005b10: e1a03108 lsl r3, r8, #2 30005b14: e0872003 add r2, r7, r3 30005b18: e1a03008 mov r3, r8 index++ ) { 30005b1c: e2833001 add r3, r3, #1 ; 0x1 object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005b20: e1530001 cmp r3, r1 index++ ) { local_table[ index ] = NULL; 30005b24: e4820004 str r0, [r2], #4 object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005b28: 3afffffb bcc 30005b1c <_Objects_Extend_information+0xc4> index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 30005b2c: e10f0000 mrs r0, CPSR 30005b30: e38030c0 orr r3, r0, #192 ; 0xc0 30005b34: 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( 30005b38: 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; 30005b3c: e59de004 ldr lr, [sp, #4] information->maximum_id = _Objects_Build_id( 30005b40: e1d510b4 ldrh r1, [r5, #4] 30005b44: 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; 30005b48: e1a0280e lsl r2, lr, #16 information->maximum_id = _Objects_Build_id( 30005b4c: 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; 30005b50: e1a02822 lsr r2, r2, #16 information->maximum_id = _Objects_Build_id( 30005b54: e1833d81 orr r3, r3, r1, lsl #27 30005b58: e1833002 orr r3, r3, r2 30005b5c: 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; 30005b60: e5859030 str r9, [r5, #48] local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 30005b64: e5953034 ldr r3, [r5, #52] information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; 30005b68: e585701c str r7, [r5, #28] information->maximum = maximum; 30005b6c: e1c521b0 strh r2, [r5, #16] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 30005b70: e585c034 str ip, [r5, #52] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 30005b74: e129f000 msr CPSR_fc, r0 if ( old_tables ) 30005b78: e3530000 cmp r3, #0 ; 0x0 _Workspace_Free( old_tables ); 30005b7c: 11a00003 movne r0, r3 30005b80: 1b000850 blne 30007cc8 <_Workspace_Free> 30005b84: e5957014 ldr r7, [r5, #20] /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 30005b88: e5d53012 ldrb r3, [r5, #18] 30005b8c: e3530000 cmp r3, #0 ; 0x0 30005b90: 0a000061 beq 30005d1c <_Objects_Extend_information+0x2c4> information->object_blocks[ block ] = 30005b94: e5953018 ldr r3, [r5, #24] 30005b98: e5954034 ldr r4, [r5, #52] 30005b9c: e0000793 mul r0, r3, r7 30005ba0: eb00084c bl 30007cd8 <_Workspace_Allocate> _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 30005ba4: e5953034 ldr r3, [r5, #52] /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 30005ba8: e7840106 str r0, [r4, r6, lsl #2] _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 30005bac: e7931106 ldr r1, [r3, r6, lsl #2] /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 30005bb0: e1a0a106 lsl sl, r6, #2 _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 30005bb4: e3510000 cmp r1, #0 ; 0x0 30005bb8: 0a00001d beq 30005c34 <_Objects_Extend_information+0x1dc> /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 30005bbc: e28d7008 add r7, sp, #8 ; 0x8 30005bc0: e1a00007 mov r0, r7 30005bc4: e5952014 ldr r2, [r5, #20] 30005bc8: e5953018 ldr r3, [r5, #24] 30005bcc: eb00108a bl 30009dfc <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005bd0: e1a04008 mov r4, r8 30005bd4: e2856020 add r6, r5, #32 ; 0x20 30005bd8: ea000008 b 30005c00 <_Objects_Extend_information+0x1a8> index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 30005bdc: e5953000 ldr r3, [r5] 30005be0: e1d520b4 ldrh r2, [r5, #4] 30005be4: e1a03c03 lsl r3, r3, #24 30005be8: e3833801 orr r3, r3, #65536 ; 0x10000 30005bec: e1833d82 orr r3, r3, r2, lsl #27 30005bf0: e1833004 orr r3, r3, r4 30005bf4: e58c3008 str r3, [ip, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005bf8: ebfffd75 bl 300051d4 <_Chain_Append> index++; 30005bfc: e2844001 add r4, r4, #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 ) { 30005c00: e1a00007 mov r0, r7 30005c04: eb00106f bl 30009dc8 <_Chain_Get> 30005c08: e250c000 subs ip, r0, #0 ; 0x0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005c0c: e1a0100c mov r1, ip 30005c10: e1a00006 mov r0, r6 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 30005c14: 1afffff0 bne 30005bdc <_Objects_Extend_information+0x184> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 30005c18: e5951030 ldr r1, [r5, #48] 30005c1c: e5952014 ldr r2, [r5, #20] information->inactive += information->allocation_size; 30005c20: e1d502bc ldrh r0, [r5, #44] _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 30005c24: e781200a str r2, [r1, sl] information->inactive += information->allocation_size; 30005c28: e5953014 ldr r3, [r5, #20] 30005c2c: e0833000 add r3, r3, r0 30005c30: e1c532bc strh r3, [r5, #44] } 30005c34: e28dd014 add sp, sp, #20 ; 0x14 30005c38: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} block = 0; if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; 30005c3c: e5907014 ldr r7, [r0, #20] 30005c40: e1a00009 mov r0, r9 30005c44: e1a01007 mov r1, r7 30005c48: eb0030ba bl 30011f38 <__aeabi_uidiv> for ( ; block < block_count; block++ ) { 30005c4c: e2504000 subs r4, r0, #0 ; 0x0 30005c50: 0a00003a beq 30005d40 <_Objects_Extend_information+0x2e8> if ( information->object_blocks[ block ] == NULL ) 30005c54: e5952034 ldr r2, [r5, #52] 30005c58: e5923000 ldr r3, [r2] 30005c5c: e3530000 cmp r3, #0 ; 0x0 30005c60: 11a0800a movne r8, sl 30005c64: 13a06000 movne r6, #0 ; 0x0 30005c68: 1a000003 bne 30005c7c <_Objects_Extend_information+0x224> 30005c6c: ea000033 b 30005d40 <_Objects_Extend_information+0x2e8> <== NOT EXECUTED 30005c70: e7923106 ldr r3, [r2, r6, lsl #2] 30005c74: e3530000 cmp r3, #0 ; 0x0 30005c78: 0a000003 beq 30005c8c <_Objects_Extend_information+0x234> if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 30005c7c: e2866001 add r6, r6, #1 ; 0x1 30005c80: e1540006 cmp r4, r6 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 30005c84: e0888007 add r8, r8, r7 if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 30005c88: 8afffff8 bhi 30005c70 <_Objects_Extend_information+0x218> /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 30005c8c: e1580009 cmp r8, r9 30005c90: 3affffbc bcc 30005b88 <_Objects_Extend_information+0x130> 30005c94: e284b001 add fp, r4, #1 ; 0x1 30005c98: e1a0308b lsl r3, fp, #1 30005c9c: e083000b add r0, r3, fp 30005ca0: eaffff79 b 30005a8c <_Objects_Extend_information+0x34> /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { object_blocks = (void**) 30005ca4: e080000a add r0, r0, sl 30005ca8: e0800009 add r0, r0, r9 30005cac: e1a00100 lsl r0, r0, #2 30005cb0: eb000808 bl 30007cd8 <_Workspace_Allocate> block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 30005cb4: e250c000 subs ip, r0, #0 ; 0x0 30005cb8: 0affffdd beq 30005c34 <_Objects_Extend_information+0x1dc> * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 30005cbc: e1d531b0 ldrh r3, [r5, #16] /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 30005cc0: e1a0210b lsl r2, fp, #2 30005cc4: e08c9002 add r9, ip, r2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 30005cc8: e153000a cmp r3, sl 30005ccc: e0897002 add r7, r9, r2 30005cd0: 9affff7e bls 30005ad0 <_Objects_Extend_information+0x78> /* * 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, 30005cd4: e1a04104 lsl r4, r4, #2 30005cd8: e1a0000c mov r0, ip 30005cdc: e5951034 ldr r1, [r5, #52] 30005ce0: e1a02004 mov r2, r4 30005ce4: e58dc000 str ip, [sp] 30005ce8: eb001731 bl 3000b9b4 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 30005cec: e5951030 ldr r1, [r5, #48] 30005cf0: e1a02004 mov r2, r4 30005cf4: e1a00009 mov r0, r9 30005cf8: eb00172d bl 3000b9b4 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 30005cfc: e1d521b0 ldrh r2, [r5, #16] 30005d00: e1a00007 mov r0, r7 30005d04: e08a2002 add r2, sl, r2 30005d08: e1a02102 lsl r2, r2, #2 30005d0c: e595101c ldr r1, [r5, #28] 30005d10: eb001727 bl 3000b9b4 30005d14: e59dc000 ldr ip, [sp] 30005d18: eaffff75 b 30005af4 <_Objects_Extend_information+0x9c> if ( !information->object_blocks[ block ] ) return; } else { information->object_blocks[ block ] = 30005d1c: e5953018 ldr r3, [r5, #24] 30005d20: e5954034 ldr r4, [r5, #52] 30005d24: e0000793 mul r0, r3, r7 30005d28: eb0007ee bl 30007ce8 <_Workspace_Allocate_or_fatal_error> 30005d2c: e5953034 ldr r3, [r5, #52] 30005d30: e7840106 str r0, [r4, r6, lsl #2] 30005d34: e7931106 ldr r1, [r3, r6, lsl #2] 30005d38: e1a0a106 lsl sl, r6, #2 30005d3c: eaffff9e b 30005bbc <_Objects_Extend_information+0x164> if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 30005d40: e1a0800a mov r8, sl <== NOT EXECUTED 30005d44: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 30005d48: eaffffcf b 30005c8c <_Objects_Extend_information+0x234> <== NOT EXECUTED 30005e44 <_Objects_Get_isr_disable>: #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 30005e44: e1a01801 lsl r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 30005e48: e52d4004 push {r4} ; (str r4, [sp, #-4]!) #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 30005e4c: e1a01821 lsr r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 30005e50: e1a04003 mov r4, r3 index = id & 0x0000ffff; /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 30005e54: e10fc000 mrs ip, CPSR 30005e58: e38c30c0 orr r3, ip, #192 ; 0xc0 30005e5c: e129f003 msr CPSR_fc, r3 if ( information->maximum >= index ) { 30005e60: e1d031b0 ldrh r3, [r0, #16] 30005e64: e1510003 cmp r1, r3 30005e68: 8a000008 bhi 30005e90 <_Objects_Get_isr_disable+0x4c> if ( (the_object = information->local_table[ index ]) != NULL ) { 30005e6c: e590301c ldr r3, [r0, #28] 30005e70: e7930101 ldr r0, [r3, r1, lsl #2] 30005e74: e3500000 cmp r0, #0 ; 0x0 *location = OBJECTS_LOCAL; 30005e78: 13a03000 movne r3, #0 ; 0x0 30005e7c: 15823000 strne r3, [r2] *level_p = level; 30005e80: 1584c000 strne ip, [r4] /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { 30005e84: 0a000006 beq 30005ea4 <_Objects_Get_isr_disable+0x60> _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 30005e88: e8bd0010 pop {r4} 30005e8c: e12fff1e bx lr } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 30005e90: e129f00c msr CPSR_fc, ip *location = OBJECTS_ERROR; 30005e94: e3a03001 mov r3, #1 ; 0x1 30005e98: e5823000 str r3, [r2] 30005e9c: e3a00000 mov r0, #0 ; 0x0 30005ea0: eafffff8 b 30005e88 <_Objects_Get_isr_disable+0x44> if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); 30005ea4: e129f00c msr CPSR_fc, ip <== NOT EXECUTED *location = OBJECTS_ERROR; 30005ea8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30005eac: e5823000 str r3, [r2] <== NOT EXECUTED 30005eb0: eafffff4 b 30005e88 <_Objects_Get_isr_disable+0x44> <== NOT EXECUTED 30015110 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 30015110: e1a0c001 mov ip, r1 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 30015114: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 30015118: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 3001511c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 30015120: 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; 30015124: 05904008 ldreq r4, [r0, #8] <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 30015128: e1a05000 mov r5, r0 <== NOT EXECUTED 3001512c: e1a06002 mov r6, r2 <== NOT EXECUTED 30015130: e1a07003 mov r7, r3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 30015134: 11a0400c movne r4, ip <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 30015138: e1a03804 lsl r3, r4, #16 <== NOT EXECUTED 3001513c: e1d5c1b0 ldrh ip, [r5, #16] <== NOT EXECUTED 30015140: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED 30015144: e15c0003 cmp ip, r3 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 30015148: e1a01004 mov r1, r4 <== NOT EXECUTED 3001514c: e1a00005 mov r0, r5 <== NOT EXECUTED 30015150: e1a02006 mov r2, r6 <== NOT EXECUTED next_id++; 30015154: 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) 30015158: 3a000005 bcc 30015174 <_Objects_Get_next+0x64> <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 3001515c: ebffda99 bl 3000bbc8 <_Objects_Get> <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 30015160: e5963000 ldr r3, [r6] <== NOT EXECUTED 30015164: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30015168: 1afffff2 bne 30015138 <_Objects_Get_next+0x28> <== NOT EXECUTED *next_id_p = next_id; 3001516c: e5874000 str r4, [r7] <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 30015170: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 30015174: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 30015178: e3e02000 mvn r2, #0 ; 0x0 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 3001517c: e5863000 str r3, [r6] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 30015180: e5872000 str r2, [r7] <== NOT EXECUTED 30015184: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30015188: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30005ff4 <_Objects_Namespace_remove>: ) { /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 30005ff4: e5d03038 ldrb r3, [r0, #56] void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 30005ff8: e92d4010 push {r4, lr} /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 30005ffc: e3530000 cmp r3, #0 ; 0x0 void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 30006000: e1a04001 mov r4, r1 /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 30006004: 0a000002 beq 30006014 <_Objects_Namespace_remove+0x20> 30006008: e591000c ldr r0, [r1, #12] <== NOT EXECUTED 3000600c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 30006010: 1b00072c blne 30007cc8 <_Workspace_Free> <== NOT EXECUTED /* * Clear out either format. */ the_object->name.name_p = NULL; 30006014: e3a03000 mov r3, #0 ; 0x0 the_object->name.name_u32 = 0; 30006018: e584300c str r3, [r4, #12] } 3000601c: e8bd8010 pop {r4, pc} 30007e3c <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 30007e3c: e92d40f0 push {r4, r5, r6, r7, lr} 30007e40: e1a04000 mov r4, r0 30007e44: e1a07001 mov r7, r1 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 30007e48: e1a00002 mov r0, r2 30007e4c: e1d413ba ldrh r1, [r4, #58] bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 30007e50: e1a05002 mov r5, r2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 30007e54: eb001c22 bl 3000eee4 if ( information->is_string ) { 30007e58: e5d43038 ldrb r3, [r4, #56] { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 30007e5c: e2804001 add r4, r0, #1 ; 0x1 if ( information->is_string ) { 30007e60: e3530000 cmp r3, #0 ; 0x0 30007e64: 1a000017 bne 30007ec8 <_Objects_Set_name+0x8c> strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 30007e68: e3540000 cmp r4, #0 ; 0x0 30007e6c: 059f00a4 ldreq r0, [pc, #164] ; 30007f18 <_Objects_Set_name+0xdc> 30007e70: 0a000011 beq 30007ebc <_Objects_Set_name+0x80> 30007e74: e3540001 cmp r4, #1 ; 0x1 30007e78: e5d53000 ldrb r3, [r5] 30007e7c: 059f0098 ldreq r0, [pc, #152] ; 30007f1c <_Objects_Set_name+0xe0> 30007e80: e1a02c03 lsl r2, r3, #24 30007e84: 01820000 orreq r0, r2, r0 30007e88: 0a00000b beq 30007ebc <_Objects_Set_name+0x80> 30007e8c: e5d53001 ldrb r3, [r5, #1] 30007e90: e3540002 cmp r4, #2 ; 0x2 30007e94: e1822803 orr r2, r2, r3, lsl #16 30007e98: 03820a02 orreq r0, r2, #8192 ; 0x2000 30007e9c: 03800020 orreq r0, r0, #32 ; 0x20 30007ea0: 0a000005 beq 30007ebc <_Objects_Set_name+0x80> 30007ea4: e5d53002 ldrb r3, [r5, #2] 30007ea8: e3540003 cmp r4, #3 ; 0x3 30007eac: e1820403 orr r0, r2, r3, lsl #8 30007eb0: 15d53003 ldrbne r3, [r5, #3] 30007eb4: 03800020 orreq r0, r0, #32 ; 0x20 30007eb8: 11800003 orrne r0, r0, r3 30007ebc: e587000c str r0, [r7, #12] 30007ec0: e3a00001 mov r0, #1 ; 0x1 ); } return TRUE; } 30007ec4: e8bd80f0 pop {r4, r5, r6, r7, pc} length = strnlen( name, information->name_length ) + 1; if ( information->is_string ) { char *d; d = _Workspace_Allocate( length ); 30007ec8: e1a00004 mov r0, r4 <== NOT EXECUTED 30007ecc: eb00071c bl 30009b44 <_Workspace_Allocate> <== NOT EXECUTED if ( !d ) 30007ed0: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 30007ed4: 01a00006 moveq r0, r6 <== NOT EXECUTED 30007ed8: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return FALSE; if ( the_object->name.name_p ) { 30007edc: e597000c ldr r0, [r7, #12] <== NOT EXECUTED 30007ee0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30007ee4: 0a000002 beq 30007ef4 <_Objects_Set_name+0xb8> <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 30007ee8: eb000711 bl 30009b34 <_Workspace_Free> <== NOT EXECUTED the_object->name.name_p = NULL; 30007eec: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30007ef0: e587300c str r3, [r7, #12] <== NOT EXECUTED } strncpy( d, name, length ); 30007ef4: e1a01005 mov r1, r5 <== NOT EXECUTED 30007ef8: e1a00006 mov r0, r6 <== NOT EXECUTED 30007efc: e1a02004 mov r2, r4 <== NOT EXECUTED 30007f00: eb001bb4 bl 3000edd8 <== NOT EXECUTED d[ length ] = '\0'; 30007f04: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30007f08: e7c63004 strb r3, [r6, r4] <== NOT EXECUTED the_object->name.name_p = d; 30007f0c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30007f10: e587600c str r6, [r7, #12] <== NOT EXECUTED 30007f14: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30007f18: 20202020 .word 0x20202020 30007f1c: 00202020 .word 0x00202020 30021ae4 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 30021ae4: e92d4070 push {r4, r5, r6, lr} Heap_Get_information_status status; if ( !the_heap ) 30021ae8: e2506000 subs r6, r0, #0 ; 0x0 bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 30021aec: e1a04001 mov r4, r1 Heap_Get_information_status status; if ( !the_heap ) 30021af0: 0a00000d beq 30021b2c <_Protected_heap_Get_information+0x48> return false; if ( !the_info ) 30021af4: e3510000 cmp r1, #0 ; 0x0 30021af8: 0a00000b beq 30021b2c <_Protected_heap_Get_information+0x48> return false; _RTEMS_Lock_allocator(); 30021afc: e59f5030 ldr r5, [pc, #48] ; 30021b34 <_Protected_heap_Get_information+0x50> 30021b00: e5950000 ldr r0, [r5] 30021b04: ebff9b30 bl 300087cc <_API_Mutex_Lock> status = _Heap_Get_information( the_heap, the_info ); 30021b08: e1a01004 mov r1, r4 30021b0c: e1a00006 mov r0, r6 30021b10: eb0025d3 bl 3002b264 <_Heap_Get_information> 30021b14: e1a04000 mov r4, r0 _RTEMS_Unlock_allocator(); 30021b18: e5950000 ldr r0, [r5] 30021b1c: ebff9b46 bl 3000883c <_API_Mutex_Unlock> if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 30021b20: e2740001 rsbs r0, r4, #1 ; 0x1 30021b24: 33a00000 movcc r0, #0 ; 0x0 30021b28: e8bd8070 pop {r4, r5, r6, pc} 30021b2c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; return false; } 30021b30: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30021b34: 3005925c .word 0x3005925c 30005e14 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 30005e14: e92d4010 push {r4, lr} 30005e18: e24dd004 sub sp, sp, #4 ; 0x4 30005e1c: e1a01000 mov r1, r0 30005e20: e1a0200d mov r2, sp 30005e24: e59f0090 ldr r0, [pc, #144] ; 30005ebc <_Rate_monotonic_Timeout+0xa8> 30005e28: eb00075d bl 30007ba4 <_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 ) { 30005e2c: e59d3000 ldr r3, [sp] 30005e30: e1a04000 mov r4, r0 30005e34: e3530000 cmp r3, #0 ; 0x0 30005e38: 1a00000c bne 30005e70 <_Rate_monotonic_Timeout+0x5c> case OBJECTS_LOCAL: the_thread = the_period->owner; 30005e3c: e5900050 ldr r0, [r0, #80] if ( _States_Is_waiting_for_period( the_thread->current_state ) && 30005e40: e5903010 ldr r3, [r0, #16] 30005e44: e3130901 tst r3, #16384 ; 0x4000 30005e48: 1a00000a bne 30005e78 <_Rate_monotonic_Timeout+0x64> _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 ) { 30005e4c: e5943038 ldr r3, [r4, #56] 30005e50: 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; 30005e54: 13a03004 movne r3, #4 ; 0x4 30005e58: 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 ) { 30005e5c: 0a00000c beq 30005e94 <_Rate_monotonic_Timeout+0x80> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 30005e60: e59f2058 ldr r2, [pc, #88] ; 30005ec0 <_Rate_monotonic_Timeout+0xac> 30005e64: e5923000 ldr r3, [r2] 30005e68: e2433001 sub r3, r3, #1 ; 0x1 30005e6c: e5823000 str r3, [r2] case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 30005e70: e28dd004 add sp, sp, #4 ; 0x4 30005e74: e8bd8010 pop {r4, pc} the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_thread = the_period->owner; if ( _States_Is_waiting_for_period( the_thread->current_state ) && 30005e78: e5902020 ldr r2, [r0, #32] 30005e7c: e5943008 ldr r3, [r4, #8] 30005e80: e1520003 cmp r2, r3 30005e84: 1afffff0 bne 30005e4c <_Rate_monotonic_Timeout+0x38> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 30005e88: e59f1034 ldr r1, [pc, #52] ; 30005ec4 <_Rate_monotonic_Timeout+0xb0> 30005e8c: eb000880 bl 30008094 <_Thread_Clear_state> 30005e90: ea000001 b 30005e9c <_Rate_monotonic_Timeout+0x88> _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 30005e94: e2833002 add r3, r3, #2 ; 0x2 <== NOT EXECUTED 30005e98: e5843038 str r3, [r4, #56] <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 30005e9c: e1a00004 mov r0, r4 30005ea0: ebfffe37 bl 30005784 <_Rate_monotonic_Initiate_statistics> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 30005ea4: e594304c ldr r3, [r4, #76] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30005ea8: e2841010 add r1, r4, #16 ; 0x10 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 30005eac: e584301c str r3, [r4, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30005eb0: e59f0010 ldr r0, [pc, #16] ; 30005ec8 <_Rate_monotonic_Timeout+0xb4> 30005eb4: eb000ea7 bl 30009958 <_Watchdog_Insert> 30005eb8: eaffffe8 b 30005e60 <_Rate_monotonic_Timeout+0x4c> 30005ebc: 3001a808 .word 0x3001a808 30005ec0: 3001a92c .word 0x3001a92c 30005ec4: 1003fff8 .word 0x1003fff8 30005ec8: 3001aa04 .word 0x3001aa04 300055d0 <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) { 300055d0: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 300055d4: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get( struct timespec *time ) { 300055d8: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; 300055dc: e58d3004 str r3, [sp, #4] */ void _TOD_Get( struct timespec *time ) { 300055e0: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 300055e4: e58d3000 str r3, [sp] offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); 300055e8: e10f6000 mrs r6, CPSR 300055ec: e38630c0 orr r3, r6, #192 ; 0xc0 300055f0: e129f003 msr CPSR_fc, r3 *time = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) 300055f4: e59f3038 ldr r3, [pc, #56] ; 30005634 <_TOD_Get+0x64> offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); *time = _TOD_Now; 300055f8: e59f2038 ldr r2, [pc, #56] ; 30005638 <_TOD_Get+0x68> if ( _Watchdog_Nanoseconds_since_tick_handler ) 300055fc: e5931000 ldr r1, [r3] offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); *time = _TOD_Now; 30005600: e8920018 ldm r2, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 30005604: e3510000 cmp r1, #0 ; 0x0 offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); *time = _TOD_Now; 30005608: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 3000560c: 0a000002 beq 3000561c <_TOD_Get+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 30005610: e1a0e00f mov lr, pc <== NOT EXECUTED 30005614: e12fff11 bx r1 <== NOT EXECUTED 30005618: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); 3000561c: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( time, &offset ); 30005620: e1a00005 mov r0, r5 30005624: e1a0100d mov r1, sp 30005628: eb000806 bl 30007648 <_Timespec_Add_to> } 3000562c: e28dd008 add sp, sp, #8 ; 0x8 30005630: e8bd8070 pop {r4, r5, r6, pc} 30005634: 30016218 .word 0x30016218 30005638: 300160f4 .word 0x300160f4 30009fa4 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( struct timespec *uptime ) { 30009fa4: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; 30009fa8: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get_uptime( struct timespec *uptime ) { 30009fac: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; 30009fb0: e58d3004 str r3, [sp, #4] */ void _TOD_Get_uptime( struct timespec *uptime ) { 30009fb4: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; 30009fb8: e58d3000 str r3, [sp] offset.tv_nsec = 0; _ISR_Disable( level ); 30009fbc: e10f6000 mrs r6, CPSR 30009fc0: e38630c0 orr r3, r6, #192 ; 0xc0 30009fc4: e129f003 msr CPSR_fc, r3 *uptime = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) 30009fc8: e59f3038 ldr r3, [pc, #56] ; 3000a008 <_TOD_Get_uptime+0x64> offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 30009fcc: e59f2038 ldr r2, [pc, #56] ; 3000a00c <_TOD_Get_uptime+0x68> if ( _Watchdog_Nanoseconds_since_tick_handler ) 30009fd0: e5931000 ldr r1, [r3] offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 30009fd4: e8920018 ldm r2, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 30009fd8: e3510000 cmp r1, #0 ; 0x0 offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; 30009fdc: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 30009fe0: 0a000002 beq 30009ff0 <_TOD_Get_uptime+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 30009fe4: e1a0e00f mov lr, pc <== NOT EXECUTED 30009fe8: e12fff11 bx r1 <== NOT EXECUTED 30009fec: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); 30009ff0: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( uptime, &offset ); 30009ff4: e1a00005 mov r0, r5 30009ff8: e1a0100d mov r1, sp 30009ffc: ebfff591 bl 30007648 <_Timespec_Add_to> } 3000a000: e28dd008 add sp, sp, #8 ; 0x8 3000a004: e8bd8070 pop {r4, r5, r6, pc} 3000a008: 30016218 .word 0x30016218 3000a00c: 300160e4 .word 0x300160e4 3000b04c <_Thread_Handler>: #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 3000b04c: e59f3110 ldr r3, [pc, #272] ; 3000b164 <_Thread_Handler+0x118> * * Output parameters: NONE */ void _Thread_Handler( void ) { 3000b050: e92d4030 push {r4, r5, lr} #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 3000b054: 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; 3000b058: e59520b8 ldr r2, [r5, #184] _ISR_Set_level(level); 3000b05c: e3a03000 mov r3, #0 ; 0x0 3000b060: e10f3000 mrs r3, CPSR 3000b064: e3c330c0 bic r3, r3, #192 ; 0xc0 3000b068: e1833002 orr r3, r3, r2 3000b06c: e121f003 msr CPSR_c, r3 #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 3000b070: e59f20f0 ldr r2, [pc, #240] ; 3000b168 <_Thread_Handler+0x11c> doneConstructors = 1; 3000b074: e3a03001 mov r3, #1 ; 0x1 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 3000b078: 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 ); 3000b07c: 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; 3000b080: 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 ); 3000b084: ebfff1ca bl 300077b4 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 3000b088: ebffedcb bl 300067bc <_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) */ 3000b08c: e3540000 cmp r4, #0 ; 0x0 3000b090: 0a000031 beq 3000b15c <_Thread_Handler+0x110> #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 3000b094: e59530a0 ldr r3, [r5, #160] 3000b098: e3530003 cmp r3, #3 ; 0x3 3000b09c: 979ff103 ldrls pc, [pc, r3, lsl #2] 3000b0a0: ea000008 b 3000b0c8 <_Thread_Handler+0x7c> <== NOT EXECUTED 3000b0a4: 3000b134 .word 0x3000b134 <== NOT EXECUTED 3000b0a8: 3000b10c .word 0x3000b10c <== NOT EXECUTED 3000b0ac: 3000b0e0 .word 0x3000b0e0 <== NOT EXECUTED 3000b0b0: 3000b0b4 .word 0x3000b0b4 <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 3000b0b4: e59500a8 ldr r0, [r5, #168] <== NOT EXECUTED 3000b0b8: e59510a4 ldr r1, [r5, #164] <== NOT EXECUTED 3000b0bc: e1a0e00f mov lr, pc <== NOT EXECUTED 3000b0c0: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED 3000b0c4: e5850028 str r0, [r5, #40] <== NOT EXECUTED * 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 ); 3000b0c8: e1a00005 mov r0, r5 <== NOT EXECUTED 3000b0cc: ebfff1c8 bl 300077f4 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 3000b0d0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3000b0d4: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3000b0d8: e3a02006 mov r2, #6 ; 0x6 <== NOT EXECUTED 3000b0dc: ebffea18 bl 30005944 <_Internal_error_Occurred> <== NOT EXECUTED (*(Thread_Entry_pointer) executing->Start.entry_point)( executing->Start.pointer_argument ); break; case THREAD_START_BOTH_POINTER_FIRST: executing->Wait.return_argument = 3000b0e0: e59510a8 ldr r1, [r5, #168] <== NOT EXECUTED 3000b0e4: e59500a4 ldr r0, [r5, #164] <== NOT EXECUTED 3000b0e8: e1a0e00f mov lr, pc <== NOT EXECUTED 3000b0ec: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED 3000b0f0: e5850028 str r0, [r5, #40] <== NOT EXECUTED * 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 ); 3000b0f4: e1a00005 mov r0, r5 <== NOT EXECUTED 3000b0f8: ebfff1bd bl 300077f4 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 3000b0fc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3000b100: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3000b104: e3a02006 mov r2, #6 ; 0x6 <== NOT EXECUTED 3000b108: ebffea0d bl 30005944 <_Internal_error_Occurred> <== NOT EXECUTED (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); break; case THREAD_START_POINTER: executing->Wait.return_argument = 3000b10c: e59500a4 ldr r0, [r5, #164] <== NOT EXECUTED 3000b110: e1a0e00f mov lr, pc <== NOT EXECUTED 3000b114: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED 3000b118: e5850028 str r0, [r5, #40] <== NOT EXECUTED * 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 ); 3000b11c: e1a00005 mov r0, r5 <== NOT EXECUTED 3000b120: ebfff1b3 bl 300077f4 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 3000b124: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3000b128: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3000b12c: e3a02006 mov r2, #6 ; 0x6 <== NOT EXECUTED 3000b130: ebffea03 bl 30005944 <_Internal_error_Occurred> <== NOT EXECUTED __main (); #endif switch ( executing->Start.prototype ) { case THREAD_START_NUMERIC: executing->Wait.return_argument = 3000b134: e59500a8 ldr r0, [r5, #168] 3000b138: e1a0e00f mov lr, pc 3000b13c: e595f09c ldr pc, [r5, #156] 3000b140: 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 ); 3000b144: e1a00005 mov r0, r5 3000b148: ebfff1a9 bl 300077f4 <_User_extensions_Thread_exitted> _Internal_error_Occurred( 3000b14c: e3a00000 mov r0, #0 ; 0x0 3000b150: e3a01001 mov r1, #1 ; 0x1 3000b154: e3a02006 mov r2, #6 ; 0x6 3000b158: ebffe9f9 bl 30005944 <_Internal_error_Occurred> * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { _init (); 3000b15c: eb002497 bl 300143c0 <__start_set_sysctl_set> 3000b160: eaffffcb b 3000b094 <_Thread_Handler+0x48> 3000b164: 30016124 .word 0x30016124 3000b168: 30015ec8 .word 0x30015ec8 30006884 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 30006884: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 30006888: 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 ) { 3000688c: e1a04003 mov r4, r3 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; 30006890: 13a03000 movne r3, #0 ; 0x0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 30006894: e5dda02c ldrb sl, [sp, #44] 30006898: e1a09000 mov r9, r0 3000689c: e1a05001 mov r5, r1 300068a0: e59d8028 ldr r8, [sp, #40] 300068a4: e59db030 ldr fp, [sp, #48] 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; 300068a8: 15c130c0 strbne r3, [r1, #192] 300068ac: 11a0c004 movne ip, r4 300068b0: 11a02006 movne r2, r6 /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 300068b4: 0a000034 beq 3000698c <_Thread_Initialize+0x108> /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 300068b8: e59f416c ldr r4, [pc, #364] ; 30006a2c <_Thread_Initialize+0x1a8> Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 300068bc: e3a06000 mov r6, #0 ; 0x0 300068c0: e5940000 ldr r0, [r4] Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 300068c4: e58520c8 str r2, [r5, #200] 300068c8: e1500006 cmp r0, r6 the_stack->size = size; 300068cc: e585c0c4 str ip, [r5, #196] 300068d0: e5856050 str r6, [r5, #80] the_watchdog->routine = routine; 300068d4: e5856064 str r6, [r5, #100] the_watchdog->id = id; 300068d8: e5856068 str r6, [r5, #104] the_watchdog->user_data = user_data; 300068dc: e585606c str r6, [r5, #108] /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 300068e0: e5856100 str r6, [r5, #256] return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 300068e4: 05850110 streq r0, [r5, #272] 300068e8: 01a07000 moveq r7, r0 /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 300068ec: 1a000033 bne 300069c0 <_Thread_Initialize+0x13c> * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 300068f0: e59d3034 ldr r3, [sp, #52] switch ( budget_algorithm ) { 300068f4: e35b0002 cmp fp, #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; 300068f8: 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; 300068fc: 059f312c ldreq r3, [pc, #300] ; 30006a30 <_Thread_Initialize+0x1ac> } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; 30006900: 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; 30006904: 05932000 ldreq r2, [r3] break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 30006908: e3a06001 mov r6, #1 ; 0x1 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; 3000690c: 05852078 streq r2, [r5, #120] break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 30006910: e59d3038 ldr r3, [sp, #56] 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 ); 30006914: e1a01008 mov r1, r8 break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 30006918: 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 ); 3000691c: e1a00005 mov r0, r5 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 30006920: e5c5a0ac strb sl, [r5, #172] the_thread->Start.budget_algorithm = budget_algorithm; 30006924: e585b0b0 str fp, [r5, #176] break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 30006928: e5856010 str r6, [r5, #16] the_thread->Wait.queue = NULL; 3000692c: e5854044 str r4, [r5, #68] the_thread->resource_count = 0; 30006930: e585401c str r4, [r5, #28] the_thread->suspend_count = 0; 30006934: e5854070 str r4, [r5, #112] the_thread->real_priority = priority; 30006938: e5858018 str r8, [r5, #24] the_thread->Start.initial_priority = priority; 3000693c: e58580bc str r8, [r5, #188] _Thread_Set_priority( the_thread, priority ); 30006940: eb0001fc bl 30007138 <_Thread_Set_priority> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 30006944: e1d530b8 ldrh r3, [r5, #8] 30006948: 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; 3000694c: e5854088 str r4, [r5, #136] 30006950: e7825103 str r5, [r2, r3, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 30006954: e59d303c ldr r3, [sp, #60] * 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 ); 30006958: e1a00005 mov r0, r5 3000695c: 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; 30006960: 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 ); 30006964: eb0003c8 bl 3000788c <_User_extensions_Thread_create> if ( !extension_status ) { 30006968: e1500004 cmp r0, r4 3000696c: 1a000011 bne 300069b8 <_Thread_Initialize+0x134> if ( extensions_area ) 30006970: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 30006974: 11a00007 movne r0, r7 <== NOT EXECUTED 30006978: 1b0004d2 blne 30007cc8 <_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 ); 3000697c: e1a00005 mov r0, r5 <== NOT EXECUTED 30006980: eb0002aa bl 30007430 <_Thread_Stack_Free> <== NOT EXECUTED 30006984: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return FALSE; } return TRUE; } 30006988: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED */ if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 3000698c: e1a00001 mov r0, r1 30006990: e1a01004 mov r1, r4 30006994: eb000285 bl 300073b0 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 30006998: e1540000 cmp r4, r0 3000699c: 93a03000 movls r3, #0 ; 0x0 300069a0: 83a03001 movhi r3, #1 ; 0x1 300069a4: e3500000 cmp r0, #0 ; 0x0 300069a8: 03833001 orreq r3, r3, #1 ; 0x1 300069ac: e3530000 cmp r3, #0 ; 0x0 300069b0: e1a0c000 mov ip, r0 300069b4: 0a000014 beq 30006a0c <_Thread_Initialize+0x188> * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); if ( !extension_status ) { 300069b8: e1a00006 mov r0, r6 300069bc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 300069c0: e2800001 add r0, r0, #1 ; 0x1 300069c4: e1a00100 lsl r0, r0, #2 300069c8: eb0004c2 bl 30007cd8 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 300069cc: e2507000 subs r7, r0, #0 ; 0x0 300069d0: 0a000011 beq 30006a1c <_Thread_Initialize+0x198> * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 300069d4: e5943000 ldr r3, [r4] return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 300069d8: e5857110 str r7, [r5, #272] * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 300069dc: e3730001 cmn r3, #1 ; 0x1 300069e0: 0affffc2 beq 300068f0 <_Thread_Initialize+0x6c> 300069e4: e1a02006 mov r2, r6 300069e8: e1a01007 mov r1, r7 the_thread->extensions[i] = NULL; 300069ec: e1a00006 mov r0, r6 * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 300069f0: e5943000 ldr r3, [r4] the_thread->extensions[i] = NULL; 300069f4: e7810102 str r0, [r1, r2, lsl #2] * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 300069f8: e2833001 add r3, r3, #1 ; 0x1 300069fc: e2822001 add r2, r2, #1 ; 0x1 30006a00: e1530002 cmp r3, r2 30006a04: 8afffff9 bhi 300069f0 <_Thread_Initialize+0x16c> 30006a08: eaffffb8 b 300068f0 <_Thread_Initialize+0x6c> if ( !actual_stack_size || actual_stack_size < stack_size ) return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = TRUE; 30006a0c: e3a03001 mov r3, #1 ; 0x1 30006a10: e5c530c0 strb 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; 30006a14: e59520cc ldr r2, [r5, #204] 30006a18: eaffffa6 b 300068b8 <_Thread_Initialize+0x34> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); 30006a1c: e1a00005 mov r0, r5 <== NOT EXECUTED 30006a20: eb000282 bl 30007430 <_Thread_Stack_Free> <== NOT EXECUTED 30006a24: e1a00007 mov r0, r7 <== NOT EXECUTED 30006a28: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30006a2c: 30016104 .word 0x30016104 30006a30: 30016024 .word 0x30016024 3000b584 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 3000b584: e92d4030 push {r4, r5, lr} the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; 3000b588: e5d0c0ac ldrb ip, [r0, #172] the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 3000b58c: e590e0b0 ldr lr, [r0, #176] the_thread->budget_callout = the_thread->Start.budget_callout; 3000b590: e59040b4 ldr r4, [r0, #180] Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; 3000b594: e3a03000 mov r3, #0 ; 0x0 the_thread->suspend_count = 0; 3000b598: e5803070 str r3, [r0, #112] the_thread->is_preemptible = the_thread->Start.is_preemptible; 3000b59c: e5c0c076 strb ip, [r0, #118] the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 3000b5a0: e580e07c str lr, [r0, #124] the_thread->budget_callout = the_thread->Start.budget_callout; 3000b5a4: e5804080 str r4, [r0, #128] the_thread->Start.pointer_argument = pointer_argument; 3000b5a8: e58010a4 str r1, [r0, #164] the_thread->Start.numeric_argument = numeric_argument; 3000b5ac: e58020a8 str r2, [r0, #168] Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; 3000b5b0: e580301c str r3, [r0, #28] void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 3000b5b4: e1a05000 mov r5, r0 the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 3000b5b8: ebfff1b7 bl 30007c9c <_Thread_queue_Extract_with_proxy> 3000b5bc: e3500000 cmp r0, #0 ; 0x0 3000b5c0: 1a000002 bne 3000b5d0 <_Thread_Reset+0x4c> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 3000b5c4: e5953050 ldr r3, [r5, #80] 3000b5c8: e3530002 cmp r3, #2 ; 0x2 3000b5cc: 0a000007 beq 3000b5f0 <_Thread_Reset+0x6c> (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 3000b5d0: e59510bc ldr r1, [r5, #188] 3000b5d4: e5953014 ldr r3, [r5, #20] 3000b5d8: e1530001 cmp r3, r1 3000b5dc: 08bd8030 popeq {r4, r5, pc} the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 3000b5e0: e1a00005 mov r0, r5 if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { the_thread->real_priority = the_thread->Start.initial_priority; 3000b5e4: e5851018 str r1, [r5, #24] _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); } } 3000b5e8: e8bd4030 pop {r4, r5, lr} (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 3000b5ec: eafff22d b 30007ea8 <_Thread_Set_priority> the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); 3000b5f0: e2850048 add r0, r5, #72 ; 0x48 <== NOT EXECUTED 3000b5f4: ebfff4d0 bl 3000893c <_Watchdog_Remove> <== NOT EXECUTED 3000b5f8: eafffff4 b 3000b5d0 <_Thread_Reset+0x4c> <== NOT EXECUTED 30007e34 <_Thread_Restart>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 30007e34: e5903010 ldr r3, [r0, #16] bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 30007e38: e92d4070 push {r4, r5, r6, lr} if ( !_States_Is_dormant( the_thread->current_state ) ) { 30007e3c: e3130001 tst r3, #1 ; 0x1 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 30007e40: e1a04000 mov r4, r0 30007e44: e1a06001 mov r6, r1 30007e48: e1a05002 mov r5, r2 if ( !_States_Is_dormant( the_thread->current_state ) ) { 30007e4c: 13a00000 movne r0, #0 ; 0x0 30007e50: 18bd8070 popne {r4, r5, r6, pc} _Thread_Set_transient( the_thread ); 30007e54: eb000089 bl 30008080 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 30007e58: e1a02005 mov r2, r5 30007e5c: e1a01006 mov r1, r6 30007e60: e1a00004 mov r0, r4 30007e64: eb000dc6 bl 3000b584 <_Thread_Reset> _Thread_Load_environment( the_thread ); 30007e68: e1a00004 mov r0, r4 30007e6c: eb000cdf bl 3000b1f0 <_Thread_Load_environment> _Thread_Ready( the_thread ); 30007e70: e1a00004 mov r0, r4 30007e74: eb000d7d bl 3000b470 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 30007e78: e1a00004 mov r0, r4 30007e7c: eb000209 bl 300086a8 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 30007e80: e59f301c ldr r3, [pc, #28] ; 30007ea4 <_Thread_Restart+0x70> 30007e84: e5932000 ldr r2, [r3] 30007e88: e1540002 cmp r4, r2 30007e8c: 13a00001 movne r0, #1 ; 0x1 30007e90: 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 ); 30007e94: e28400d0 add r0, r4, #208 ; 0xd0 30007e98: eb00032f bl 30008b5c <_CPU_Context_restore> 30007e9c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return TRUE; } return FALSE; } 30007ea0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30007ea4: 30019664 .word 0x30019664 30008c3c <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 30008c3c: e92d0030 push {r4, r5} 30008c40: e20110ff and r1, r1, #255 ; 0xff 30008c44: e1a04000 mov r4, r0 ISR_Level level; States_Control current_state; _ISR_Disable( level ); 30008c48: e10f5000 mrs r5, CPSR 30008c4c: e38530c0 orr r3, r5, #192 ; 0xc0 30008c50: e129f003 msr CPSR_fc, r3 if ( force == TRUE ) 30008c54: e3510000 cmp r1, #0 ; 0x0 the_thread->suspend_count = 0; 30008c58: 13a03000 movne r3, #0 ; 0x0 30008c5c: 15803070 strne r3, [r0, #112] ISR_Level level; States_Control current_state; _ISR_Disable( level ); if ( force == TRUE ) 30008c60: 1a000006 bne 30008c80 <_Thread_Resume+0x44> the_thread->suspend_count = 0; else the_thread->suspend_count--; 30008c64: e5903070 ldr r3, [r0, #112] <== NOT EXECUTED 30008c68: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 30008c6c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED _ISR_Disable( level ); if ( force == TRUE ) the_thread->suspend_count = 0; else the_thread->suspend_count--; 30008c70: e5803070 str r3, [r0, #112] <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 30008c74: 0a000001 beq 30008c80 <_Thread_Resume+0x44> <== NOT EXECUTED _ISR_Enable( level ); 30008c78: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 30008c7c: ea000003 b 30008c90 <_Thread_Resume+0x54> <== NOT EXECUTED return; } current_state = the_thread->current_state; 30008c80: e5943010 ldr r3, [r4, #16] if ( current_state & STATES_SUSPENDED ) { 30008c84: e3130002 tst r3, #2 ; 0x2 30008c88: 1a000002 bne 30008c98 <_Thread_Resume+0x5c> _Context_Switch_necessary = TRUE; } } } _ISR_Enable( level ); 30008c8c: e129f005 msr CPSR_fc, r5 } 30008c90: e8bd0030 pop {r4, r5} 30008c94: e12fff1e bx lr 30008c98: e3c33002 bic r3, r3, #2 ; 0x2 current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 30008c9c: e3530000 cmp r3, #0 ; 0x0 return; } current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = 30008ca0: e5843010 str r3, [r4, #16] the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 30008ca4: 1afffff8 bne 30008c8c <_Thread_Resume+0x50> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 30008ca8: e5940090 ldr r0, [r4, #144] 30008cac: e1d429b6 ldrh r2, [r4, #150] 30008cb0: e1d030b0 ldrh r3, [r0] _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 30008cb4: e594108c ldr r1, [r4, #140] 30008cb8: e1833002 orr r3, r3, r2 _Priority_Major_bit_map |= the_priority_map->ready_major; 30008cbc: e59fc080 ldr ip, [pc, #128] ; 30008d44 <_Thread_Resume+0x108> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 30008cc0: e1c030b0 strh r3, [r0] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 30008cc4: e2812004 add r2, r1, #4 ; 0x4 30008cc8: e5842000 str r2, [r4] _Priority_Major_bit_map |= the_priority_map->ready_major; 30008ccc: e1dc30b0 ldrh r3, [ip] 30008cd0: e1d429b4 ldrh r2, [r4, #148] old_last_node = the_chain->last; 30008cd4: e5910008 ldr r0, [r1, #8] 30008cd8: e1833002 orr r3, r3, r2 the_chain->last = the_node; 30008cdc: e5814008 str r4, [r1, #8] 30008ce0: e1cc30b0 strh r3, [ip] old_last_node->next = the_node; the_node->previous = old_last_node; 30008ce4: 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; 30008ce8: e5804000 str r4, [r0] _ISR_Flash( level ); 30008cec: e10f3000 mrs r3, CPSR 30008cf0: e129f005 msr CPSR_fc, r5 30008cf4: e129f003 msr CPSR_fc, r3 if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 30008cf8: e59f1048 ldr r1, [pc, #72] ; 30008d48 <_Thread_Resume+0x10c> 30008cfc: e5940014 ldr r0, [r4, #20] 30008d00: e5913000 ldr r3, [r1] 30008d04: e5932014 ldr r2, [r3, #20] 30008d08: e1500002 cmp r0, r2 30008d0c: 2affffde bcs 30008c8c <_Thread_Resume+0x50> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 30008d10: e59f3034 ldr r3, [pc, #52] ; 30008d4c <_Thread_Resume+0x110> _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; 30008d14: e5814000 str r4, [r1] if ( _Thread_Executing->is_preemptible || 30008d18: e5932000 ldr r2, [r3] 30008d1c: e5d21076 ldrb r1, [r2, #118] 30008d20: e3510000 cmp r1, #0 ; 0x0 30008d24: 0a000003 beq 30008d38 <_Thread_Resume+0xfc> the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 30008d28: e59f3020 ldr r3, [pc, #32] ; 30008d50 <_Thread_Resume+0x114> 30008d2c: e3a02001 mov r2, #1 ; 0x1 30008d30: e5c32000 strb r2, [r3] 30008d34: eaffffd4 b 30008c8c <_Thread_Resume+0x50> _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 30008d38: e3500000 cmp r0, #0 ; 0x0 30008d3c: 1affffd2 bne 30008c8c <_Thread_Resume+0x50> 30008d40: eafffff8 b 30008d28 <_Thread_Resume+0xec> <== NOT EXECUTED 30008d44: 30022458 .word 0x30022458 30008d48: 30022430 .word 0x30022430 30008d4c: 30022464 .word 0x30022464 30008d50: 30022474 .word 0x30022474 300073b0 <_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 ) { 300073b0: e59f3070 ldr r3, [pc, #112] ; 30007428 <_Thread_Stack_Allocate+0x78> size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 300073b4: e59f2070 ldr r2, [pc, #112] ; 3000742c <_Thread_Stack_Allocate+0x7c> * 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 ) { 300073b8: e593c000 ldr ip, [r3] size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 300073bc: e5923000 ldr r3, [r2] * 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 ) { 300073c0: e59c2020 ldr r2, [ip, #32] size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 300073c4: e92d4030 push {r4, r5, lr} 300073c8: e1510003 cmp r1, r3 300073cc: 21a04001 movcs r4, r1 300073d0: 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 ) { 300073d4: e3520000 cmp r2, #0 ; 0x0 size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 300073d8: e1a05000 mov r5, r0 * Call ONLY the CPU table stack allocate hook, _or_ the * the RTEMS workspace allocate. This is so the stack free * routine can call the correct deallocation routine. */ if ( _Configuration_Table->stack_allocate_hook ) { 300073dc: 0a000008 beq 30007404 <_Thread_Stack_Allocate+0x54> stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 300073e0: e1a00004 mov r0, r4 <== NOT EXECUTED 300073e4: e1a0e00f mov lr, pc <== NOT EXECUTED 300073e8: e12fff12 bx r2 <== NOT EXECUTED 300073ec: e1a03000 mov r3, r0 <== NOT EXECUTED the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 300073f0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300073f4: 11a00004 movne r0, r4 <== NOT EXECUTED 300073f8: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 300073fc: e58530cc str r3, [r5, #204] <== NOT EXECUTED return the_stack_size; } 30007400: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; 30007404: 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 ); 30007408: e1a00004 mov r0, r4 3000740c: eb000231 bl 30007cd8 <_Workspace_Allocate> 30007410: e1a03000 mov r3, r0 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 30007414: e3530000 cmp r3, #0 ; 0x0 30007418: 11a00004 movne r0, r4 3000741c: 03a00000 moveq r0, #0 ; 0x0 } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 30007420: e58530cc str r3, [r5, #204] return the_stack_size; } 30007424: e8bd8030 pop {r4, r5, pc} 30007428: 300160fc .word 0x300160fc 3000742c: 300152b4 .word 0x300152b4 30007430 <_Thread_Stack_Free>: { /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 30007430: e5d030c0 ldrb r3, [r0, #192] */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 30007434: 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 ) 30007438: e3530000 cmp r3, #0 ; 0x0 3000743c: 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 ) 30007440: e59f3028 ldr r3, [pc, #40] ; 30007470 <_Thread_Stack_Free+0x40> 30007444: e5932000 ldr r2, [r3] 30007448: e5923024 ldr r3, [r2, #36] 3000744c: e3530000 cmp r3, #0 ; 0x0 30007450: 0a000003 beq 30007464 <_Thread_Stack_Free+0x34> (*_Configuration_Table->stack_free_hook)( 30007454: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 30007458: e1a0e00f mov lr, pc <== NOT EXECUTED 3000745c: e12fff13 bx r3 <== NOT EXECUTED 30007460: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 30007464: e59000c8 ldr r0, [r0, #200] } 30007468: 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 ); 3000746c: ea000215 b 30007cc8 <_Workspace_Free> 30007470: 300160fc .word 0x300160fc 3000750c <_Thread_Tickle_timeslice>: void _Thread_Tickle_timeslice( void ) { Thread_Control *executing; executing = _Thread_Executing; 3000750c: e59f3084 ldr r3, [pc, #132] ; 30007598 <_Thread_Tickle_timeslice+0x8c> * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 30007510: e92d4010 push {r4, lr} Thread_Control *executing; executing = _Thread_Executing; 30007514: e5934000 ldr r4, [r3] /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 30007518: e5d42076 ldrb r2, [r4, #118] 3000751c: e3520000 cmp r2, #0 ; 0x0 30007520: 08bd8010 popeq {r4, pc} return; if ( !_States_Is_ready( executing->current_state ) ) 30007524: e5943010 ldr r3, [r4, #16] 30007528: e3530000 cmp r3, #0 ; 0x0 3000752c: 18bd8010 popne {r4, pc} /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 30007530: e594307c ldr r3, [r4, #124] 30007534: e3530001 cmp r3, #1 ; 0x1 30007538: 38bd8010 popcc {r4, pc} 3000753c: e3530002 cmp r3, #2 ; 0x2 30007540: 9a00000a bls 30007570 <_Thread_Tickle_timeslice+0x64> 30007544: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 30007548: 18bd8010 popne {r4, pc} <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 3000754c: e5943078 ldr r3, [r4, #120] <== NOT EXECUTED 30007550: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30007554: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30007558: e5843078 str r3, [r4, #120] <== NOT EXECUTED 3000755c: 18bd8010 popne {r4, pc} <== NOT EXECUTED (*executing->budget_callout)( executing ); 30007560: e1a00004 mov r0, r4 <== NOT EXECUTED 30007564: e1a0e00f mov lr, pc <== NOT EXECUTED 30007568: e594f080 ldr pc, [r4, #128] <== NOT EXECUTED 3000756c: e8bd8010 pop {r4, pc} <== 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 ) { 30007570: e5943078 ldr r3, [r4, #120] 30007574: e2433001 sub r3, r3, #1 ; 0x1 30007578: e3530000 cmp r3, #0 ; 0x0 3000757c: e5843078 str r3, [r4, #120] 30007580: c8bd8010 popgt {r4, pc} _Thread_Reset_timeslice(); 30007584: eb000c64 bl 3000a71c <_Thread_Reset_timeslice> executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 30007588: e59f300c ldr r3, [pc, #12] ; 3000759c <_Thread_Tickle_timeslice+0x90> 3000758c: e5932000 ldr r2, [r3] 30007590: e5842078 str r2, [r4, #120] 30007594: e8bd8010 pop {r4, pc} 30007598: 30016124 .word 0x30016124 3000759c: 30016024 .word 0x30016024 30006d7c <_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 ) { 30006d7c: e92d07f0 push {r4, r5, r6, r7, r8, r9, sl} */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30006d80: e281303c add r3, r1, #60 ; 0x3c Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 30006d84: e5914014 ldr r4, [r1, #20] Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 30006d88: e1a07001 mov r7, r1 30006d8c: e1a08000 mov r8, r0 30006d90: e5813038 str r3, [r1, #56] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 30006d94: e2810038 add r0, r1, #56 ; 0x38 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 30006d98: e3a01000 mov r1, #0 ; 0x0 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 ) ) 30006d9c: e3140020 tst r4, #32 ; 0x20 30006da0: e587103c str r1, [r7, #60] RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); 30006da4: e1a01324 lsr r1, r4, #6 Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 30006da8: e1a0a002 mov sl, r2 the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 30006dac: 11a02201 lslne r2, r1, #4 30006db0: 10423101 subne r3, r2, r1, lsl #2 30006db4: 10882003 addne r2, r8, r3 the_chain->last = _Chain_Head(the_chain); 30006db8: e5870040 str r0, [r7, #64] _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; 30006dbc: e5986038 ldr r6, [r8, #56] 30006dc0: 159f91d4 ldrne r9, [pc, #468] ; 30006f9c <_Thread_queue_Enqueue_priority+0x220> restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 30006dc4: 12820008 addne r0, r2, #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 ) ) 30006dc8: 1a000028 bne 30006e70 <_Thread_queue_Enqueue_priority+0xf4> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30006dcc: e1a03081 lsl r3, r1, #1 30006dd0: e0833001 add r3, r3, r1 30006dd4: e2833001 add r3, r3, #1 ; 0x1 30006dd8: e1a02201 lsl r2, r1, #4 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; 30006ddc: e0422101 sub r2, r2, r1, lsl #2 30006de0: e1a03103 lsl r3, r3, #2 30006de4: e0880003 add r0, r8, r3 30006de8: e0882002 add r2, r8, r2 if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 30006dec: e10f5000 mrs r5, CPSR 30006df0: e38530c0 orr r3, r5, #192 ; 0xc0 30006df4: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->first; 30006df8: e5921000 ldr r1, [r2] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 30006dfc: e1510000 cmp r1, r0 30006e00: 1a00000f bne 30006e44 <_Thread_queue_Enqueue_priority+0xc8> 30006e04: ea000061 b 30006f90 <_Thread_queue_Enqueue_priority+0x214> search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.next; 30006e08: e5911000 ldr r1, [r1] if ( _Chain_Is_tail( header, (Chain_Node *)search_thread ) ) 30006e0c: e1510000 cmp r1, r0 30006e10: 0a00000e beq 30006e50 <_Thread_queue_Enqueue_priority+0xd4> break; search_priority = search_thread->current_priority; 30006e14: e591c014 ldr ip, [r1, #20] if ( priority <= search_priority ) 30006e18: e154000c cmp r4, ip 30006e1c: 9a00000b bls 30006e50 <_Thread_queue_Enqueue_priority+0xd4> break; #endif _ISR_Flash( level ); 30006e20: e10f3000 mrs r3, CPSR 30006e24: e129f005 msr CPSR_fc, r5 30006e28: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 30006e2c: e5913010 ldr r3, [r1, #16] 30006e30: e1160003 tst r6, r3 30006e34: 0a000049 beq 30006f60 <_Thread_queue_Enqueue_priority+0x1e4> _ISR_Enable( level ); goto restart_forward_search; } search_thread = 30006e38: 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 ) ) { 30006e3c: e1510000 cmp r1, r0 30006e40: 0a000002 beq 30006e50 <_Thread_queue_Enqueue_priority+0xd4> search_priority = search_thread->current_priority; 30006e44: e591c014 ldr ip, [r1, #20] if ( priority <= search_priority ) 30006e48: e154000c cmp r4, ip 30006e4c: 8affffed bhi 30006e08 <_Thread_queue_Enqueue_priority+0x8c> 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 ) ) { 30006e50: e1a06005 mov r6, r5 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 30006e54: e5980030 ldr r0, [r8, #48] 30006e58: e3500001 cmp r0, #1 ; 0x1 30006e5c: 0a000034 beq 30006f34 <_Thread_queue_Enqueue_priority+0x1b8> * 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; 30006e60: e58a6000 str r6, [sl] <== NOT EXECUTED return the_thread_queue->sync_state; } 30006e64: e8bd07f0 pop {r4, r5, r6, r7, r8, r9, sl} 30006e68: e12fff1e bx lr if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 30006e6c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 30006e70: e5d93000 ldrb r3, [r9] 30006e74: e283c001 add ip, r3, #1 ; 0x1 _ISR_Disable( level ); 30006e78: e10f5000 mrs r5, CPSR 30006e7c: e38530c0 orr r3, r5, #192 ; 0xc0 30006e80: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->last; 30006e84: e5901000 ldr r1, [r0] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 30006e88: e1520001 cmp r2, r1 30006e8c: 0a000018 beq 30006ef4 <_Thread_queue_Enqueue_priority+0x178> search_priority = search_thread->current_priority; 30006e90: e591c014 ldr ip, [r1, #20] if ( priority >= search_priority ) 30006e94: e154000c cmp r4, ip 30006e98: 2a000015 bcs 30006ef4 <_Thread_queue_Enqueue_priority+0x178> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 30006e9c: e5911004 ldr r1, [r1, #4] if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 30006ea0: e1520001 cmp r2, r1 30006ea4: 1a00000f bne 30006ee8 <_Thread_queue_Enqueue_priority+0x16c> 30006ea8: ea000011 b 30006ef4 <_Thread_queue_Enqueue_priority+0x178> break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 30006eac: e10f3000 mrs r3, CPSR 30006eb0: e129f005 msr CPSR_fc, r5 30006eb4: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 30006eb8: e5913010 ldr r3, [r1, #16] 30006ebc: e1160003 tst r6, r3 30006ec0: 0affffe9 beq 30006e6c <_Thread_queue_Enqueue_priority+0xf0> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 30006ec4: 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 ) ) { 30006ec8: e1510002 cmp r1, r2 30006ecc: 0a000008 beq 30006ef4 <_Thread_queue_Enqueue_priority+0x178> search_priority = search_thread->current_priority; 30006ed0: e591c014 ldr ip, [r1, #20] if ( priority >= search_priority ) 30006ed4: e154000c cmp r4, ip 30006ed8: 2a000005 bcs 30006ef4 <_Thread_queue_Enqueue_priority+0x178> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 30006edc: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 30006ee0: e1510002 cmp r1, r2 <== NOT EXECUTED 30006ee4: 0a000002 beq 30006ef4 <_Thread_queue_Enqueue_priority+0x178> <== NOT EXECUTED break; search_priority = search_thread->current_priority; 30006ee8: e591c014 ldr ip, [r1, #20] if ( priority >= search_priority ) 30006eec: e154000c cmp r4, ip 30006ef0: 3affffed bcc 30006eac <_Thread_queue_Enqueue_priority+0x130> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006ef4: e5980030 ldr r0, [r8, #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 ) ) { 30006ef8: e1a06005 mov r6, r5 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006efc: e3500001 cmp r0, #1 ; 0x1 30006f00: 1affffd6 bne 30006e60 <_Thread_queue_Enqueue_priority+0xe4> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 30006f04: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 30006f08: e154000c cmp r4, ip if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 30006f0c: e5883030 str r3, [r8, #48] if ( priority == search_priority ) 30006f10: 0a000014 beq 30006f68 <_Thread_queue_Enqueue_priority+0x1ec> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 30006f14: e5913000 ldr r3, [r1] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 30006f18: e5871004 str r1, [r7, #4] search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 30006f1c: e5873000 str r3, [r7] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006f20: e5878044 str r8, [r7, #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; 30006f24: e5817000 str r7, [r1] next_node->previous = the_node; 30006f28: e5837004 str r7, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 30006f2c: e129f005 msr CPSR_fc, r5 30006f30: eaffffcb b 30006e64 <_Thread_queue_Enqueue_priority+0xe8> if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 30006f34: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 30006f38: e154000c cmp r4, ip if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 30006f3c: e5883030 str r3, [r8, #48] if ( priority == search_priority ) 30006f40: 0a000008 beq 30006f68 <_Thread_queue_Enqueue_priority+0x1ec> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 30006f44: e5913004 ldr r3, [r1, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 30006f48: e887000a stm r7, {r1, r3} the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006f4c: e5878044 str r8, [r7, #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; 30006f50: e5837000 str r7, [r3] search_node->previous = the_node; 30006f54: e5817004 str r7, [r1, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 30006f58: e129f005 msr CPSR_fc, r5 30006f5c: eaffffc0 b 30006e64 <_Thread_queue_Enqueue_priority+0xe8> if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 30006f60: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 30006f64: eaffffa0 b 30006dec <_Thread_queue_Enqueue_priority+0x70> <== NOT EXECUTED 30006f68: e281303c add r3, r1, #60 ; 0x3c _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; 30006f6c: e5932004 ldr r2, [r3, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 30006f70: e5873000 str r3, [r7] the_node->previous = previous_node; 30006f74: e5872004 str r2, [r7, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006f78: e5878044 str r8, [r7, #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; 30006f7c: e5827000 str r7, [r2] search_node->previous = the_node; 30006f80: e5837004 str r7, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 30006f84: e129f006 msr CPSR_fc, r6 30006f88: e3a00001 mov r0, #1 ; 0x1 30006f8c: eaffffb4 b 30006e64 <_Thread_queue_Enqueue_priority+0xe8> 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 ) ) { 30006f90: e1a06005 mov r6, r5 30006f94: e3e0c000 mvn ip, #0 ; 0x0 30006f98: eaffffad b 30006e54 <_Thread_queue_Enqueue_priority+0xd8> 30006f9c: 300152b8 .word 0x300152b8 3000b16c <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 3000b16c: e92d4010 push {r4, lr} 3000b170: e1a04001 mov r4, r1 ISR_Level level; _ISR_Disable( level ); 3000b174: e10f0000 mrs r0, CPSR 3000b178: e38030c0 orr r3, r0, #192 ; 0xc0 3000b17c: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 3000b180: e59f3064 ldr r3, [pc, #100] ; 3000b1ec <_Thread_queue_Extract_fifo+0x80> 3000b184: e5912010 ldr r2, [r1, #16] 3000b188: e0023003 and r3, r2, r3 3000b18c: e3530000 cmp r3, #0 ; 0x0 3000b190: 0a00000d beq 3000b1cc <_Thread_queue_Extract_fifo+0x60> _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 3000b194: e5913050 ldr r3, [r1, #80] { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 3000b198: e5942004 ldr r2, [r4, #4] ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 3000b19c: e5911000 ldr r1, [r1] 3000b1a0: e3530002 cmp r3, #2 ; 0x2 return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 3000b1a4: e3a03000 mov r3, #0 ; 0x0 previous = the_node->previous; next->previous = previous; previous->next = next; 3000b1a8: e5821000 str r1, [r2] 3000b1ac: e5843044 str r3, [r4, #68] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 3000b1b0: e5812004 str r2, [r1, #4] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 3000b1b4: 0a000006 beq 3000b1d4 <_Thread_queue_Extract_fifo+0x68> _ISR_Enable( level ); 3000b1b8: e129f000 msr CPSR_fc, r0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 3000b1bc: e59f102c ldr r1, [pc, #44] ; 3000b1f0 <_Thread_queue_Extract_fifo+0x84> 3000b1c0: e1a00004 mov r0, r4 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 3000b1c4: e8bd4010 pop {r4, lr} 3000b1c8: eaffec75 b 300063a4 <_Thread_Clear_state> ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); 3000b1cc: 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 } 3000b1d0: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000b1d4: e3a03003 mov r3, #3 ; 0x3 3000b1d8: e5843050 str r3, [r4, #80] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 3000b1dc: e129f000 msr CPSR_fc, r0 (void) _Watchdog_Remove( &the_thread->Timer ); 3000b1e0: e2840048 add r0, r4, #72 ; 0x48 3000b1e4: ebfff265 bl 30007b80 <_Watchdog_Remove> 3000b1e8: eafffff3 b 3000b1bc <_Thread_queue_Extract_fifo+0x50> 3000b1ec: 0003bee0 .word 0x0003bee0 3000b1f0: 1003fff8 .word 0x1003fff8 3000a4e0 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { 3000a4e0: e92d4070 push {r4, r5, r6, lr} 3000a4e4: e1a04001 mov r4, r1 3000a4e8: 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 ); 3000a4ec: e10fc000 mrs ip, CPSR 3000a4f0: e38c30c0 orr r3, ip, #192 ; 0xc0 3000a4f4: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 3000a4f8: e59f30b4 ldr r3, [pc, #180] ; 3000a5b4 <_Thread_queue_Extract_priority_helper+0xd4> 3000a4fc: e5912010 ldr r2, [r1, #16] 3000a500: e0023003 and r3, r2, r3 3000a504: e3530000 cmp r3, #0 ; 0x0 3000a508: 0a000021 beq 3000a594 <_Thread_queue_Extract_priority_helper+0xb4> */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 3000a50c: e5911038 ldr r1, [r1, #56] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 3000a510: e284303c add r3, r4, #60 ; 0x3c 3000a514: e1510003 cmp r1, r3 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 3000a518: 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; 3000a51c: 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; 3000a520: 05832000 streq r2, [r3] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 3000a524: 0a00000e beq 3000a564 <_Thread_queue_Extract_priority_helper+0x84> new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; 3000a528: e5945040 ldr r5, [r4, #64] new_second_node = new_first_node->next; 3000a52c: e5910000 ldr r0, [r1] previous_node->next = new_first_node; next_node->previous = new_first_node; 3000a530: 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; 3000a534: e5831000 str r1, [r3] next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 3000a538: e881000c stm r1, {r2, r3} if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 3000a53c: e5942038 ldr r2, [r4, #56] 3000a540: e5943040 ldr r3, [r4, #64] 3000a544: e1520003 cmp r2, r3 3000a548: 0a000005 beq 3000a564 <_Thread_queue_Extract_priority_helper+0x84> 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 ); 3000a54c: 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 = 3000a550: e2813038 add r3, r1, #56 ; 0x38 3000a554: e5803004 str r3, [r0, #4] _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 3000a558: e5810038 str r0, [r1, #56] new_first_thread->Wait.Block2n.last = last_node; 3000a55c: e5815040 str r5, [r1, #64] last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 3000a560: e5852000 str r2, [r5] /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 3000a564: e3560000 cmp r6, #0 ; 0x0 3000a568: 1a000007 bne 3000a58c <_Thread_queue_Extract_priority_helper+0xac> _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 3000a56c: e5943050 ldr r3, [r4, #80] 3000a570: e3530002 cmp r3, #2 ; 0x2 3000a574: 0a000008 beq 3000a59c <_Thread_queue_Extract_priority_helper+0xbc> _ISR_Enable( level ); 3000a578: e129f00c msr CPSR_fc, ip 3000a57c: e59f1034 ldr r1, [pc, #52] ; 3000a5b8 <_Thread_queue_Extract_priority_helper+0xd8> 3000a580: e1a00004 mov r0, r4 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 3000a584: e8bd4070 pop {r4, r5, r6, lr} 3000a588: eaffef85 b 300063a4 <_Thread_Clear_state> /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { _ISR_Enable( level ); 3000a58c: e129f00c msr CPSR_fc, ip 3000a590: e8bd8070 pop {r4, r5, r6, pc} Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); 3000a594: e129f00c msr CPSR_fc, ip <== NOT EXECUTED 3000a598: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000a59c: e3a03003 mov r3, #3 ; 0x3 <== NOT EXECUTED 3000a5a0: e5843050 str r3, [r4, #80] <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 3000a5a4: e129f00c msr CPSR_fc, ip <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 3000a5a8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED 3000a5ac: ebfff573 bl 30007b80 <_Watchdog_Remove> <== NOT EXECUTED 3000a5b0: eafffff1 b 3000a57c <_Thread_queue_Extract_priority_helper+0x9c> <== NOT EXECUTED 3000a5b4: 0003bee0 .word 0x0003bee0 3000a5b8: 1003fff8 .word 0x1003fff8 30012ae4 <_Timer_Server_process_insertions>: * onto one of the Timer Server chains. * * @note It is only to be called from the Timer Server task. */ static void _Timer_Server_process_insertions(void) { 30012ae4: e52de004 push {lr} ; (str lr, [sp, #-4]!) Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 30012ae8: e59f005c ldr r0, [pc, #92] ; 30012b4c <_Timer_Server_process_insertions+0x68> 30012aec: eb00027f bl 300134f0 <_Chain_Get> if ( the_timer == NULL ) 30012af0: e3500000 cmp r0, #0 ; 0x0 30012af4: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { 30012af8: e5903038 ldr r3, [r0, #56] 30012afc: e3530001 cmp r3, #1 ; 0x1 30012b00: 0a00000c beq 30012b38 <_Timer_Server_process_insertions+0x54> _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 30012b04: e3530003 cmp r3, #3 ; 0x3 30012b08: 0a000005 beq 30012b24 <_Timer_Server_process_insertions+0x40> } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 30012b0c: ebfffff4 bl 30012ae4 <_Timer_Server_process_insertions> <== NOT EXECUTED static void _Timer_Server_process_insertions(void) { Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 30012b10: e59f0034 ldr r0, [pc, #52] ; 30012b4c <_Timer_Server_process_insertions+0x68> 30012b14: eb000275 bl 300134f0 <_Chain_Get> if ( the_timer == NULL ) 30012b18: e3500000 cmp r0, #0 ; 0x0 30012b1c: 1afffff5 bne 30012af8 <_Timer_Server_process_insertions+0x14> 30012b20: e49df004 pop {pc} ; (ldr pc, [sp], #4) break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { _Watchdog_Insert( &_Timer_Seconds_chain, &the_timer->Ticker ); 30012b24: e2801010 add r1, r0, #16 ; 0x10 30012b28: e59f0020 ldr r0, [pc, #32] ; 30012b50 <_Timer_Server_process_insertions+0x6c> 30012b2c: eb001123 bl 30016fc0 <_Watchdog_Insert> } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 30012b30: ebffffeb bl 30012ae4 <_Timer_Server_process_insertions> 30012b34: eafffff5 b 30012b10 <_Timer_Server_process_insertions+0x2c> the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); if ( the_timer == NULL ) break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); 30012b38: e2801010 add r1, r0, #16 ; 0x10 30012b3c: e59f0010 ldr r0, [pc, #16] ; 30012b54 <_Timer_Server_process_insertions+0x70> 30012b40: eb00111e bl 30016fc0 <_Watchdog_Insert> } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 30012b44: ebffffe6 bl 30012ae4 <_Timer_Server_process_insertions> 30012b48: eafffff0 b 30012b10 <_Timer_Server_process_insertions+0x2c> 30012b4c: 300312cc .word 0x300312cc 30012b50: 300312c0 .word 0x300312c0 30012b54: 300312ac .word 0x300312ac 30012a60 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 30012a60: e59f3040 ldr r3, [pc, #64] ; 30012aa8 <_Timespec_From_ticks+0x48> <== NOT EXECUTED 30012a64: e5932000 ldr r2, [r3] <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 30012a68: e59f303c ldr r3, [pc, #60] ; 30012aac <_Timespec_From_ticks+0x4c> <== NOT EXECUTED struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 30012a6c: e00c0092 mul ip, r2, r0 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 30012a70: e0802c93 umull r2, r0, r3, ip <== NOT EXECUTED 30012a74: e1a00920 lsr r0, r0, #18 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 30012a78: e1a03400 lsl r3, r0, #8 <== NOT EXECUTED 30012a7c: e0433180 sub r3, r3, r0, lsl #3 <== NOT EXECUTED 30012a80: e1a02303 lsl r2, r3, #6 <== NOT EXECUTED 30012a84: e0632002 rsb r2, r3, r2 <== NOT EXECUTED 30012a88: e0822000 add r2, r2, r0 <== NOT EXECUTED 30012a8c: e04cc302 sub ip, ip, r2, lsl #6 <== NOT EXECUTED 30012a90: e1a0338c lsl r3, ip, #7 <== NOT EXECUTED 30012a94: e043310c sub r3, r3, ip, lsl #2 <== NOT EXECUTED 30012a98: e083300c add r3, r3, ip <== NOT EXECUTED 30012a9c: e1a03183 lsl r3, r3, #3 <== NOT EXECUTED 30012aa0: e8810009 stm r1, {r0, r3} <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 30012aa4: e12fff1e bx lr <== NOT EXECUTED 30012aa8: 30025f50 .word 0x30025f50 30012aac: 431bde83 .word 0x431bde83 30012ab0 <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) 30012ab0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30012ab4: 0a00000a beq 30012ae4 <_Timespec_Is_valid+0x34> <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 30012ab8: e5903000 ldr r3, [r0] <== NOT EXECUTED 30012abc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30012ac0: ba000007 blt 30012ae4 <_Timespec_Is_valid+0x34> <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 30012ac4: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED 30012ac8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30012acc: ba000004 blt 30012ae4 <_Timespec_Is_valid+0x34> <== NOT EXECUTED 30012ad0: e59f3014 ldr r3, [pc, #20] ; 30012aec <_Timespec_Is_valid+0x3c> <== NOT EXECUTED 30012ad4: e1500003 cmp r0, r3 <== NOT EXECUTED 30012ad8: 83a00000 movhi r0, #0 ; 0x0 <== NOT EXECUTED 30012adc: 93a00001 movls r0, #1 ; 0x1 <== NOT EXECUTED 30012ae0: e12fff1e bx lr <== NOT EXECUTED 30012ae4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 30012ae8: e12fff1e bx lr <== NOT EXECUTED 30012aec: 3b9ac9ff .word 0x3b9ac9ff 30012af0 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 30012af0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 30012af4: e5907000 ldr r7, [r0] <== NOT EXECUTED 30012af8: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 30012afc: 15906004 ldrne r6, [r0, #4] <== NOT EXECUTED 30012b00: 1a000003 bne 30012b14 <_Timespec_To_ticks+0x24> <== NOT EXECUTED 30012b04: e5906004 ldr r6, [r0, #4] <== NOT EXECUTED 30012b08: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 30012b0c: 01a00006 moveq r0, r6 <== NOT EXECUTED 30012b10: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 30012b14: e59f3030 ldr r3, [pc, #48] ; 30012b4c <_Timespec_To_ticks+0x5c> <== NOT EXECUTED 30012b18: e59f0030 ldr r0, [pc, #48] ; 30012b50 <_Timespec_To_ticks+0x60> <== NOT EXECUTED 30012b1c: e5934000 ldr r4, [r3] <== NOT EXECUTED 30012b20: e1a01004 mov r1, r4 <== NOT EXECUTED 30012b24: ebffb78f bl 30000968 <__aeabi_uidiv> <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 30012b28: e59f3024 ldr r3, [pc, #36] ; 30012b54 <_Timespec_To_ticks+0x64> <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 30012b2c: e0050097 mul r5, r7, r0 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 30012b30: e0802693 umull r2, r0, r3, r6 <== NOT EXECUTED 30012b34: e1a01004 mov r1, r4 <== NOT EXECUTED 30012b38: e1a00320 lsr r0, r0, #6 <== NOT EXECUTED 30012b3c: ebffb789 bl 30000968 <__aeabi_uidiv> <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 30012b40: e0900005 adds r0, r0, r5 <== NOT EXECUTED 30012b44: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return ticks; return 1; } 30012b48: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30012b4c: 30025f50 .word 0x30025f50 30012b50: 000f4240 .word 0x000f4240 30012b54: 10624dd3 .word 0x10624dd3 3000d5f0 <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 3000d5f0: e92d4010 push {r4, lr} 3000d5f4: e1a04000 mov r4, r0 _Chain_Extract( &the_extension->Node ); 3000d5f8: eb001192 bl 30011c48 <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 3000d5fc: e5943024 ldr r3, [r4, #36] 3000d600: e3530000 cmp r3, #0 ; 0x0 3000d604: 08bd8010 popeq {r4, pc} _Chain_Extract( &the_extension->Switch.Node ); 3000d608: e2840008 add r0, r4, #8 ; 0x8 <== NOT EXECUTED } 3000d60c: 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 ); 3000d610: ea00118c b 30011c48 <_Chain_Extract> <== NOT EXECUTED 3000983c <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 3000983c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30009840: e1a07000 mov r7, r0 30009844: e1a04002 mov r4, r2 ISR_Level level; _ISR_Disable( level ); 30009848: e10fc000 mrs ip, CPSR 3000984c: e38c30c0 orr r3, ip, #192 ; 0xc0 30009850: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 30009854: e1a06000 mov r6, r0 30009858: e4960004 ldr r0, [r6], #4 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 3000985c: e1500006 cmp r0, r6 30009860: 0a000019 beq 300098cc <_Watchdog_Adjust+0x90> switch ( direction ) { 30009864: e3510000 cmp r1, #0 ; 0x0 30009868: 1a000019 bne 300098d4 <_Watchdog_Adjust+0x98> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 3000986c: e3520000 cmp r2, #0 ; 0x0 30009870: 0a000015 beq 300098cc <_Watchdog_Adjust+0x90> if ( units < _Watchdog_First( header )->delta_interval ) { 30009874: e5905010 ldr r5, [r0, #16] RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 30009878: e1a01000 mov r1, r0 3000987c: e1520005 cmp r2, r5 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 30009880: 23a08001 movcs r8, #1 ; 0x1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 30009884: 2a000005 bcs 300098a0 <_Watchdog_Adjust+0x64> 30009888: ea000017 b 300098ec <_Watchdog_Adjust+0xb0> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 3000988c: e0544005 subs r4, r4, r5 30009890: 0a00000d beq 300098cc <_Watchdog_Adjust+0x90> if ( units < _Watchdog_First( header )->delta_interval ) { 30009894: e5915010 ldr r5, [r1, #16] 30009898: e1550004 cmp r5, r4 3000989c: 8a000012 bhi 300098ec <_Watchdog_Adjust+0xb0> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 300098a0: e5818010 str r8, [r1, #16] _ISR_Enable( level ); 300098a4: e129f00c msr CPSR_fc, ip _Watchdog_Tickle( header ); 300098a8: e1a00007 mov r0, r7 300098ac: eb0000ab bl 30009b60 <_Watchdog_Tickle> _ISR_Disable( level ); 300098b0: e10fc000 mrs ip, CPSR 300098b4: e38c30c0 orr r3, ip, #192 ; 0xc0 300098b8: e129f003 msr CPSR_fc, r3 300098bc: e5973000 ldr r3, [r7] if ( _Chain_Is_empty( header ) ) 300098c0: e1560003 cmp r6, r3 300098c4: e1a01003 mov r1, r3 300098c8: 1affffef bne 3000988c <_Watchdog_Adjust+0x50> } break; } } _ISR_Enable( level ); 300098cc: e129f00c msr CPSR_fc, ip } 300098d0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 300098d4: e3510001 cmp r1, #1 ; 0x1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 300098d8: 05903010 ldreq r3, [r0, #16] 300098dc: 00833002 addeq r3, r3, r2 300098e0: 05803010 streq r3, [r0, #16] } break; } } _ISR_Enable( level ); 300098e4: e129f00c msr CPSR_fc, ip } 300098e8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 300098ec: e0643005 rsb r3, r4, r5 300098f0: e5813010 str r3, [r1, #16] 300098f4: eafffff4 b 300098cc <_Watchdog_Adjust+0x90> 30016f08 <_Watchdog_Adjust_to_chain>: { Watchdog_Interval units = units_arg; ISR_Level level; Chain_Node *node; if ( !units ) { 30016f08: e2513000 subs r3, r1, #0 ; 0x0 Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 30016f0c: e92d01f0 push {r4, r5, r6, r7, r8} 30016f10: e1a01002 mov r1, r2 Watchdog_Interval units = units_arg; ISR_Level level; Chain_Node *node; if ( !units ) { 30016f14: 0a000027 beq 30016fb8 <_Watchdog_Adjust_to_chain+0xb0> return; } _ISR_Disable( level ); 30016f18: e10f7000 mrs r7, CPSR 30016f1c: e38720c0 orr r2, r7, #192 ; 0xc0 30016f20: e129f002 msr CPSR_fc, r2 30016f24: e1a02000 mov r2, r0 30016f28: e492c004 ldr ip, [r2], #4 if ( !_Chain_Is_empty( header ) ) { 30016f2c: e15c0002 cmp ip, r2 30016f30: 0a00001f beq 30016fb4 <_Watchdog_Adjust_to_chain+0xac> 30016f34: e59c4010 ldr r4, [ip, #16] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30016f38: e1a05003 mov r5, r3 30016f3c: e2816004 add r6, r1, #4 ; 0x4 if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 0; 30016f40: e3a08000 mov r8, #0 ; 0x0 } _ISR_Disable( level ); if ( !_Chain_Is_empty( header ) ) { while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 30016f44: e1540005 cmp r4, r5 30016f48: 8a000017 bhi 30016fac <_Watchdog_Adjust_to_chain+0xa4> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 0; 30016f4c: e58c8010 str r8, [ip, #16] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 30016f50: e152000c cmp r2, ip { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 30016f54: 159c3000 ldrne r3, [ip] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 30016f58: 03a0c000 moveq ip, #0 ; 0x0 Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 30016f5c: 15803000 strne r3, [r0] new_first->previous = _Chain_Head(the_chain); 30016f60: 15830004 strne r0, [r3, #4] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 30016f64: e58c6000 str r6, [ip] old_last_node = the_chain->last; 30016f68: e5913008 ldr r3, [r1, #8] the_chain->last = the_node; 30016f6c: e581c008 str ip, [r1, #8] old_last_node->next = the_node; the_node->previous = old_last_node; 30016f70: e58c3004 str r3, [ip, #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; 30016f74: e583c000 str ip, [r3] do { node = _Chain_Get_unprotected( header ); _Chain_Append_unprotected( to_fire, node ); _ISR_Flash( level ); 30016f78: e10f3000 mrs r3, CPSR 30016f7c: e129f007 msr CPSR_fc, r7 30016f80: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 30016f84: e590c000 ldr ip, [r0] } while ( !_Chain_Is_empty( header ) && _Watchdog_First( header )->delta_interval == 0 ); 30016f88: e152000c cmp r2, ip 30016f8c: 0a000008 beq 30016fb4 <_Watchdog_Adjust_to_chain+0xac> 30016f90: e59c3010 ldr r3, [ip, #16] 30016f94: e3530000 cmp r3, #0 ; 0x0 30016f98: 0affffec beq 30016f50 <_Watchdog_Adjust_to_chain+0x48> return; } _ISR_Disable( level ); if ( !_Chain_Is_empty( header ) ) { while ( units ) { 30016f9c: e0555004 subs r5, r5, r4 30016fa0: 0a000003 beq 30016fb4 <_Watchdog_Adjust_to_chain+0xac> 30016fa4: e1a04003 mov r4, r3 <== NOT EXECUTED 30016fa8: eaffffe5 b 30016f44 <_Watchdog_Adjust_to_chain+0x3c> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 30016fac: e0653004 rsb r3, r5, r4 30016fb0: e58c3010 str r3, [ip, #16] break; } } } _ISR_Enable( level ); 30016fb4: e129f007 msr CPSR_fc, r7 } 30016fb8: e8bd01f0 pop {r4, r5, r6, r7, r8} 30016fbc: e12fff1e bx lr 300079c4 <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 300079c4: e59f3144 ldr r3, [pc, #324] ; 30007b10 <_Watchdog_Insert+0x14c> void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 300079c8: e92d01f0 push {r4, r5, r6, r7, r8} 300079cc: e1a04001 mov r4, r1 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 300079d0: e5935000 ldr r5, [r3] _ISR_Disable( level ); 300079d4: e10f6000 mrs r6, CPSR 300079d8: e38630c0 orr r3, r6, #192 ; 0xc0 300079dc: 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 ) { 300079e0: e5913008 ldr r3, [r1, #8] 300079e4: e3530000 cmp r3, #0 ; 0x0 300079e8: 1a000041 bne 30007af4 <_Watchdog_Insert+0x130> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 300079ec: e59f8120 ldr r8, [pc, #288] ; 30007b14 <_Watchdog_Insert+0x150> if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 300079f0: e3a03001 mov r3, #1 ; 0x1 _Watchdog_Sync_count++; 300079f4: e5982000 ldr r2, [r8] 300079f8: e59f7118 ldr r7, [pc, #280] ; 30007b18 <_Watchdog_Insert+0x154> 300079fc: e2822001 add r2, r2, #1 ; 0x1 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 30007a00: e5813008 str r3, [r1, #8] _Watchdog_Sync_count++; 30007a04: e5882000 str r2, [r8] restart: delta_interval = the_watchdog->initial; 30007a08: e594c00c ldr ip, [r4, #12] * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 30007a0c: e5902000 ldr r2, [r0] ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 30007a10: e35c0000 cmp ip, #0 ; 0x0 30007a14: 0a000023 beq 30007aa8 <_Watchdog_Insert+0xe4> 30007a18: e5923000 ldr r3, [r2] 30007a1c: e3530000 cmp r3, #0 ; 0x0 30007a20: 0a000020 beq 30007aa8 <_Watchdog_Insert+0xe4> break; if ( delta_interval < after->delta_interval ) { 30007a24: e5921010 ldr r1, [r2, #16] 30007a28: e15c0001 cmp ip, r1 30007a2c: 3a000032 bcc 30007afc <_Watchdog_Insert+0x138> * 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 ); 30007a30: e10f3000 mrs r3, CPSR 30007a34: e129f006 msr CPSR_fc, r6 30007a38: e129f003 msr CPSR_fc, r3 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 30007a3c: e5943008 ldr r3, [r4, #8] 30007a40: e3530001 cmp r3, #1 ; 0x1 30007a44: 1a000023 bne 30007ad8 <_Watchdog_Insert+0x114> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 30007a48: e5973000 ldr r3, [r7] 30007a4c: e1550003 cmp r5, r3 if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 30007a50: 2061c00c rsbcs ip, r1, ip if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 30007a54: 2a000010 bcs 30007a9c <_Watchdog_Insert+0xd8> 30007a58: ea00002a b 30007b08 <_Watchdog_Insert+0x144> */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 30007a5c: e5923000 ldr r3, [r2] 30007a60: e3530000 cmp r3, #0 ; 0x0 30007a64: 0a00000f beq 30007aa8 <_Watchdog_Insert+0xe4> break; if ( delta_interval < after->delta_interval ) { 30007a68: e5921010 ldr r1, [r2, #16] 30007a6c: e151000c cmp r1, ip 30007a70: 8a000021 bhi 30007afc <_Watchdog_Insert+0x138> * 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 ); 30007a74: e10f3000 mrs r3, CPSR 30007a78: e129f006 msr CPSR_fc, r6 30007a7c: e129f003 msr CPSR_fc, r3 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 30007a80: e5943008 ldr r3, [r4, #8] if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 30007a84: e061c00c rsb ip, r1, ip * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 30007a88: e3530001 cmp r3, #1 ; 0x1 30007a8c: 1a000011 bne 30007ad8 <_Watchdog_Insert+0x114> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 30007a90: e5973000 ldr r3, [r7] 30007a94: e1550003 cmp r5, r3 30007a98: 3a00001a bcc 30007b08 <_Watchdog_Insert+0x144> */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 30007a9c: e35c0000 cmp ip, #0 ; 0x0 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 30007aa0: e5922000 ldr r2, [r2] 30007aa4: 1affffec bne 30007a5c <_Watchdog_Insert+0x98> _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 30007aa8: e5921004 ldr r1, [r2, #4] the_watchdog->start_time = _Watchdog_Ticks_since_boot; 30007aac: e59f3068 ldr r3, [pc, #104] ; 30007b1c <_Watchdog_Insert+0x158> ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 30007ab0: e5910000 ldr r0, [r1] 30007ab4: e5932000 ldr r2, [r3] RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 30007ab8: e3a03002 mov r3, #2 ; 0x2 after_node->next = the_node; 30007abc: e5814000 str r4, [r1] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 30007ac0: e5841004 str r1, [r4, #4] 30007ac4: e5842014 str r2, [r4, #20] 30007ac8: e5843008 str r3, [r4, #8] } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 30007acc: e584c010 str ip, [r4, #16] before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 30007ad0: e5804004 str r4, [r0, #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; 30007ad4: e5840000 str r0, [r4] _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; 30007ad8: e5875000 str r5, [r7] _Watchdog_Sync_count--; 30007adc: e5983000 ldr r3, [r8] 30007ae0: e2433001 sub r3, r3, #1 ; 0x1 30007ae4: e5883000 str r3, [r8] _ISR_Enable( level ); 30007ae8: e129f006 msr CPSR_fc, r6 } 30007aec: e8bd01f0 pop {r4, r5, r6, r7, r8} 30007af0: e12fff1e bx lr * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); 30007af4: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 30007af8: eafffffb b 30007aec <_Watchdog_Insert+0x128> <== NOT EXECUTED if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; 30007afc: e06c3001 rsb r3, ip, r1 30007b00: e5823010 str r3, [r2, #16] 30007b04: eaffffe7 b 30007aa8 <_Watchdog_Insert+0xe4> if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { _Watchdog_Sync_level = insert_isr_nest_level; 30007b08: e5875000 str r5, [r7] 30007b0c: eaffffbd b 30007a08 <_Watchdog_Insert+0x44> 30007b10: 30016100 .word 0x30016100 30007b14: 300161c0 .word 0x300161c0 30007b18: 30016120 .word 0x30016120 30007b1c: 300161c4 .word 0x300161c4 30007d10 <_Workspace_Handler_initialization>: */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 30007d10: e92d4030 push {r4, r5, lr} uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 30007d14: e2504000 subs r4, r0, #0 ; 0x0 */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 30007d18: e1a05001 mov r5, r1 uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 30007d1c: 0a000010 beq 30007d64 <_Workspace_Handler_initialization+0x54> 30007d20: e214c003 ands ip, r4, #3 ; 0x3 30007d24: 1a00000e bne 30007d64 <_Workspace_Handler_initialization+0x54> INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) 30007d28: e59f3054 ldr r3, [pc, #84] ; 30007d84 <_Workspace_Handler_initialization+0x74> 30007d2c: e5932000 ldr r2, [r3] 30007d30: e5d21028 ldrb r1, [r2, #40] 30007d34: e3510000 cmp r1, #0 ; 0x0 30007d38: 1a00000d bne 30007d74 <_Workspace_Handler_initialization+0x64> memset( starting_address, 0, size ); memory_available = _Heap_Initialize( 30007d3c: e1a01004 mov r1, r4 30007d40: e1a02005 mov r2, r5 30007d44: e59f003c ldr r0, [pc, #60] ; 30007d88 <_Workspace_Handler_initialization+0x78> 30007d48: e3a03004 mov r3, #4 ; 0x4 30007d4c: ebfff671 bl 30005718 <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 30007d50: e3500000 cmp r0, #0 ; 0x0 30007d54: 18bd8030 popne {r4, r5, pc} _Internal_error_Occurred( 30007d58: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 30007d5c: e3a02003 mov r2, #3 ; 0x3 <== NOT EXECUTED 30007d60: ebfff6f7 bl 30005944 <_Internal_error_Occurred> <== NOT EXECUTED ) { uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) _Internal_error_Occurred( 30007d64: e3a00000 mov r0, #0 ; 0x0 30007d68: e3a01001 mov r1, #1 ; 0x1 30007d6c: e3a02002 mov r2, #2 ; 0x2 30007d70: ebfff6f3 bl 30005944 <_Internal_error_Occurred> TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) memset( starting_address, 0, size ); 30007d74: e1a0100c mov r1, ip <== NOT EXECUTED 30007d78: e1a02005 mov r2, r5 <== NOT EXECUTED 30007d7c: eb000f4b bl 3000bab0 <== NOT EXECUTED 30007d80: eaffffed b 30007d3c <_Workspace_Handler_initialization+0x2c> <== NOT EXECUTED 30007d84: 300160fc .word 0x300160fc 30007d88: 3001608c .word 0x3001608c 30008cc8 <__assert>: void __assert( const char *file, int line, const char *failedexpr ) { 30008cc8: e1a03002 mov r3, r2 <== NOT EXECUTED __assert_func (file, line, NULL, failedexpr); 30008ccc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30008cd0: eaffffe9 b 30008c7c <__assert_func> <== NOT EXECUTED 30008c7c <__assert_func>: const char *file, int line, const char *func, const char *failedexpr ) { 30008c7c: e92d4010 push {r4, lr} <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 30008c80: e252c000 subs ip, r2, #0 ; 0x0 <== NOT EXECUTED 30008c84: 059fc030 ldreq ip, [pc, #48] ; 30008cbc <__assert_func+0x40> <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 30008c88: e1a04001 mov r4, r1 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 30008c8c: 159fe02c ldrne lr, [pc, #44] ; 30008cc0 <__assert_func+0x44> <== NOT EXECUTED const char *file, int line, const char *func, const char *failedexpr ) { 30008c90: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 30008c94: e1a01003 mov r1, r3 <== NOT EXECUTED printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 30008c98: 01a0e00c moveq lr, ip <== NOT EXECUTED 30008c9c: e1a02000 mov r2, r0 <== NOT EXECUTED 30008ca0: e1a03004 mov r3, r4 <== NOT EXECUTED 30008ca4: e59f0018 ldr r0, [pc, #24] ; 30008cc4 <__assert_func+0x48> <== NOT EXECUTED 30008ca8: e58de000 str lr, [sp] <== NOT EXECUTED 30008cac: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30008cb0: ebffe521 bl 3000213c <== NOT EXECUTED file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 30008cb4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30008cb8: ebfff073 bl 30004e8c <== NOT EXECUTED 30008cbc: 30014ce0 .word 0x30014ce0 30008cc0: 30014e98 .word 0x30014e98 30008cc4: 30014ea8 .word 0x30014ea8 300201f8 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 300201f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300201fc: e12fff1e bx lr <== NOT EXECUTED 30013ad8 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) _fini(); 30013ad8: e1a04000 mov r4, r0 30013adc: eb000240 bl 300143e4 <_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(); 30013ae0: ebffffe2 bl 30013a70 rtems_shutdown_executive(status); 30013ae4: e1a00004 mov r0, r4 30013ae8: eb000041 bl 30013bf4 30013aec: eafffffe b 30013aec <_exit+0x14> <== NOT EXECUTED 3002aa0c <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 3002aa0c: e1a00001 mov r0, r1 <== NOT EXECUTED 3002aa10: e1a01002 mov r1, r2 <== NOT EXECUTED 3002aa14: e1a02003 mov r2, r3 <== NOT EXECUTED 3002aa18: eaffff73 b 3002a7ec <== NOT EXECUTED 3002009c <_getpid_r>: pid_t _getpid_r( struct _reent *ptr ) { return getpid(); } 3002009c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 300200a0: e12fff1e bx lr <== NOT EXECUTED 300090e4 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 300090e4: eaffffe4 b 3000907c <== NOT EXECUTED 300201f0 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 300201f0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300201f4: e12fff1e bx lr <== NOT EXECUTED 3001f308 <_link_r>: struct _reent *ptr, const char *existing, const char *new ) { return link( existing, new ); 3001f308: e1a00001 mov r0, r1 <== NOT EXECUTED 3001f30c: e1a01002 mov r1, r2 <== NOT EXECUTED 3001f310: eaffff6a b 3001f0c0 <== NOT EXECUTED 30013a58 <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 30013a58: e1a00001 mov r0, r1 <== NOT EXECUTED 30013a5c: e1a01002 mov r1, r2 <== NOT EXECUTED 30013a60: e1a02003 mov r2, r3 <== NOT EXECUTED 30013a64: eaffffbe b 30013964 <== NOT EXECUTED 3001f4f0 <_lstat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 3001f4f0: e1a00001 mov r0, r1 <== NOT EXECUTED 3001f4f4: e1a01002 mov r1, r2 <== NOT EXECUTED 3001f4f8: eaffffc6 b 3001f418 <== NOT EXECUTED 30001d44 <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 30001d44: e1a00001 mov r0, r1 <== NOT EXECUTED 30001d48: e1a01002 mov r1, r2 <== NOT EXECUTED 30001d4c: e1a02003 mov r2, r3 <== NOT EXECUTED 30001d50: eaffff55 b 30001aac <== NOT EXECUTED 30013bc8 <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 30013bc8: e1a00001 mov r0, r1 <== NOT EXECUTED 30013bcc: e1a01002 mov r1, r2 <== NOT EXECUTED 30013bd0: e1a02003 mov r2, r3 <== NOT EXECUTED 30013bd4: eaffffc5 b 30013af0 <== NOT EXECUTED 30013bd8 <_realloc_r>: struct _reent *ignored, void *ptr, size_t size ) { return realloc( ptr, size ); 30013bd8: e1a00001 mov r0, r1 <== NOT EXECUTED 30013bdc: e1a01002 mov r1, r2 <== NOT EXECUTED 30013be0: ea000012 b 30013c30 <== NOT EXECUTED 3003e3e4 <_rename_r>: int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3003e3e4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3003e3e8: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3003e3ec: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3003e3f0: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3003e3f4: e1a0100d mov r1, sp <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3003e3f8: e1a05002 mov r5, r2 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3003e3fc: ebff1ca2 bl 3000568c <== NOT EXECUTED if ( s < 0 ) 3003e400: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3003e404: ba00000a blt 3003e434 <_rename_r+0x50> <== NOT EXECUTED return s; s = link( old, new ); 3003e408: e1a01005 mov r1, r5 <== NOT EXECUTED 3003e40c: e1a00004 mov r0, r4 <== NOT EXECUTED 3003e410: ebff832a bl 3001f0c0 <== NOT EXECUTED if ( s < 0 ) 3003e414: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3003e418: ba000005 blt 3003e434 <_rename_r+0x50> <== NOT EXECUTED return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 3003e41c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3003e420: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 3003e424: e3530901 cmp r3, #16384 ; 0x4000 <== NOT EXECUTED 3003e428: 0a000003 beq 3003e43c <_rename_r+0x58> <== NOT EXECUTED 3003e42c: e1a00004 mov r0, r4 <== NOT EXECUTED 3003e430: ebff8718 bl 30020098 <== NOT EXECUTED } 3003e434: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 3003e438: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( s < 0 ) return s; s = link( old, new ); if ( s < 0 ) return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 3003e43c: e1a00004 mov r0, r4 <== NOT EXECUTED 3003e440: ebff860e bl 3001fc80 <== NOT EXECUTED 3003e444: eafffffa b 3003e434 <_rename_r+0x50> <== NOT EXECUTED 30005764 <_stat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 30005764: e1a00001 mov r0, r1 <== NOT EXECUTED 30005768: e1a01002 mov r1, r2 <== NOT EXECUTED 3000576c: eaffffc6 b 3000568c <== NOT EXECUTED 300201e4 <_unlink_r>: int _unlink_r( struct _reent *ptr, const char *path ) { return unlink( path ); 300201e4: e1a00001 mov r0, r1 <== NOT EXECUTED 300201e8: eaffffaa b 30020098 <== NOT EXECUTED 3001d5c4 : int access( const char *path, int amode ) { 3001d5c4: e92d4010 push {r4, lr} <== NOT EXECUTED 3001d5c8: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED 3001d5cc: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 3001d5d0: e1a0100d mov r1, sp <== NOT EXECUTED 3001d5d4: ebffa02c bl 3000568c <== NOT EXECUTED 3001d5d8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d5dc: 1a00000b bne 3001d610 <== NOT EXECUTED return -1; if ( amode & R_OK ) { 3001d5e0: e3140004 tst r4, #4 ; 0x4 <== NOT EXECUTED 3001d5e4: 1a000006 bne 3001d604 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { 3001d5e8: e3140002 tst r4, #2 ; 0x2 <== NOT EXECUTED 3001d5ec: 1a00000e bne 3001d62c <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { 3001d5f0: e3140001 tst r4, #1 ; 0x1 <== NOT EXECUTED 3001d5f4: 1a000007 bne 3001d618 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) 3001d5f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return -1; } return 0; } 3001d5fc: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 3001d600: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) 3001d604: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001d608: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001d60c: 1afffff5 bne 3001d5e8 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 3001d610: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001d614: eafffff8 b 3001d5fc <== NOT EXECUTED 3001d618: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001d61c: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED 3001d620: 1afffff4 bne 3001d5f8 <== NOT EXECUTED 3001d624: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001d628: eafffff3 b 3001d5fc <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) 3001d62c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001d630: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED 3001d634: 1affffed bne 3001d5f0 <== NOT EXECUTED return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 3001d638: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001d63c: eaffffee b 3001d5fc <== NOT EXECUTED 3001d898 : #include int chdir( const char *pathname ) { 3001d898: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 3001d89c: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED #include int chdir( const char *pathname ) { 3001d8a0: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 3001d8a4: e1a0200d mov r2, sp <== NOT EXECUTED 3001d8a8: e1a03001 mov r3, r1 <== NOT EXECUTED 3001d8ac: ebff9951 bl 30003df8 <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 3001d8b0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 3001d8b4: e1a0400d mov r4, sp <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 3001d8b8: 1a000021 bne 3001d944 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 3001d8bc: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001d8c0: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 3001d8c4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d8c8: 0a000015 beq 3001d924 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 3001d8cc: e1a0000d mov r0, sp <== NOT EXECUTED 3001d8d0: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d8d4: e12fff13 bx r3 <== NOT EXECUTED 3001d8d8: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3001d8dc: 1a00001a bne 3001d94c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 3001d8e0: e59f5098 ldr r5, [pc, #152] ; 3001d980 <== NOT EXECUTED 3001d8e4: e5950000 ldr r0, [r5] <== NOT EXECUTED 3001d8e8: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 3001d8ec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d8f0: 0a000004 beq 3001d908 <== NOT EXECUTED 3001d8f4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d8f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d8fc: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 3001d900: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d904: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 3001d908: e595c000 ldr ip, [r5] <== NOT EXECUTED 3001d90c: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 3001d910: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3001d914: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001d918: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3001d91c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d920: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 3001d924: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001d928: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d92c: 11a0000d movne r0, sp <== NOT EXECUTED 3001d930: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d934: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001d938: eb003d2f bl 3002cdfc <__errno> <== NOT EXECUTED 3001d93c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001d940: e5803000 str r3, [r0] <== NOT EXECUTED 3001d944: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001d948: eafffff3 b 3001d91c <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 3001d94c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001d950: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d954: 0a000004 beq 3001d96c <== NOT EXECUTED 3001d958: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d95c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d960: 11a0000d movne r0, sp <== NOT EXECUTED 3001d964: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d968: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 3001d96c: eb003d22 bl 3002cdfc <__errno> <== NOT EXECUTED 3001d970: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3001d974: e5803000 str r3, [r0] <== NOT EXECUTED 3001d978: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001d97c: eaffffe6 b 3001d91c <== NOT EXECUTED 3001d980: 30044b08 .word 0x30044b08 30003bb4 : int chmod( const char *path, mode_t mode ) { 30003bb4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 30003bb8: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 30003bbc: 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 ); 30003bc0: e1a0200d mov r2, sp <== NOT EXECUTED 30003bc4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30003bc8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30003bcc: eb000089 bl 30003df8 <== NOT EXECUTED if ( status != 0 ) 30003bd0: 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 ); 30003bd4: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 30003bd8: 1a000020 bne 30003c60 <== NOT EXECUTED return -1; if ( !loc.handlers ){ 30003bdc: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 30003be0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003be4: 0a000012 beq 30003c34 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 30003be8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003bec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003bf0: 0a00001c beq 30003c68 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 30003bf4: e1a01004 mov r1, r4 <== NOT EXECUTED 30003bf8: e1a0000d mov r0, sp <== NOT EXECUTED 30003bfc: e1a0e00f mov lr, pc <== NOT EXECUTED 30003c00: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30003c04: 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 ); 30003c08: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30003c0c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003c10: 0a000004 beq 30003c28 <== NOT EXECUTED 30003c14: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003c18: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003c1c: 11a0000d movne r0, sp <== NOT EXECUTED 30003c20: 11a0e00f movne lr, pc <== NOT EXECUTED 30003c24: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30003c28: e1a00004 mov r0, r4 <== NOT EXECUTED 30003c2c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30003c30: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 30003c34: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30003c38: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003c3c: 0a000004 beq 30003c54 <== NOT EXECUTED 30003c40: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003c44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003c48: 11a0000d movne r0, sp <== NOT EXECUTED 30003c4c: 11a0e00f movne lr, pc <== NOT EXECUTED 30003c50: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 30003c54: eb00a468 bl 3002cdfc <__errno> <== NOT EXECUTED 30003c58: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30003c5c: e5803000 str r3, [r0] <== NOT EXECUTED 30003c60: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30003c64: eaffffef b 30003c28 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 30003c68: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30003c6c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003c70: 0a000004 beq 30003c88 <== NOT EXECUTED 30003c74: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30003c78: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003c7c: 11a0000d movne r0, sp <== NOT EXECUTED 30003c80: 11a0e00f movne lr, pc <== NOT EXECUTED 30003c84: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30003c88: eb00a45b bl 3002cdfc <__errno> <== NOT EXECUTED 30003c8c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30003c90: e5803000 str r3, [r0] <== NOT EXECUTED 30003c94: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30003c98: eaffffe2 b 30003c28 <== NOT EXECUTED 3001d984 : int chown( const char *path, uid_t owner, gid_t group ) { 3001d984: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 3001d988: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001d98c: e1a0c801 lsl ip, r1, #16 <== NOT EXECUTED 3001d990: e1a04802 lsl r4, r2, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 3001d994: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001d998: e1a0200d mov r2, sp <== NOT EXECUTED 3001d99c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 3001d9a0: e1a0582c lsr r5, ip, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 3001d9a4: ebff9913 bl 30003df8 <== NOT EXECUTED 3001d9a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001d9ac: e1a0600d mov r6, sp <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 3001d9b0: e1a04824 lsr r4, r4, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 3001d9b4: 1a00001c bne 3001da2c <== NOT EXECUTED return -1; if ( !loc.ops->chown_h ) { 3001d9b8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001d9bc: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 3001d9c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d9c4: 0a000010 beq 3001da0c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 3001d9c8: e1a02004 mov r2, r4 <== NOT EXECUTED 3001d9cc: e1a01005 mov r1, r5 <== NOT EXECUTED 3001d9d0: e1a0000d mov r0, sp <== NOT EXECUTED 3001d9d4: e1a0e00f mov lr, pc <== NOT EXECUTED 3001d9d8: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d9dc: 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 ); 3001d9e0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001d9e4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d9e8: 0a000004 beq 3001da00 <== NOT EXECUTED 3001d9ec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001d9f0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001d9f4: 11a0000d movne r0, sp <== NOT EXECUTED 3001d9f8: 11a0e00f movne lr, pc <== NOT EXECUTED 3001d9fc: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001da00: e1a00004 mov r0, r4 <== NOT EXECUTED 3001da04: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001da08: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 3001da0c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001da10: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001da14: 11a0000d movne r0, sp <== NOT EXECUTED 3001da18: 11a0e00f movne lr, pc <== NOT EXECUTED 3001da1c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001da20: eb003cf5 bl 3002cdfc <__errno> <== NOT EXECUTED 3001da24: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001da28: e5803000 str r3, [r0] <== NOT EXECUTED 3001da2c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001da30: eafffff2 b 3001da00 <== NOT EXECUTED 3001da34 : #include int chroot( const char *pathname ) { 3001da34: 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) { 3001da38: e59f60c4 ldr r6, [pc, #196] ; 3001db04 <== NOT EXECUTED 3001da3c: e59f30c4 ldr r3, [pc, #196] ; 3001db08 <== NOT EXECUTED 3001da40: e5964000 ldr r4, [r6] <== NOT EXECUTED #include int chroot( const char *pathname ) { 3001da44: 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) { 3001da48: e1540003 cmp r4, r3 <== NOT EXECUTED #include int chroot( const char *pathname ) { 3001da4c: 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) { 3001da50: 0a00001b beq 3001dac4 <== NOT EXECUTED rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = chdir(pathname); 3001da54: e1a00005 mov r0, r5 <== NOT EXECUTED 3001da58: ebffff8e bl 3001d898 <== NOT EXECUTED if (result) { 3001da5c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001da60: 1a000020 bne 3001dae8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 3001da64: e1a01000 mov r1, r0 <== NOT EXECUTED 3001da68: e1a0200d mov r2, sp <== NOT EXECUTED 3001da6c: e59f0098 ldr r0, [pc, #152] ; 3001db0c <== NOT EXECUTED 3001da70: e1a03001 mov r3, r1 <== NOT EXECUTED 3001da74: ebff98df bl 30003df8 <== NOT EXECUTED 3001da78: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001da7c: e1a0400d mov r4, sp <== NOT EXECUTED 3001da80: 1a000018 bne 3001dae8 <== NOT EXECUTED /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); } rtems_filesystem_freenode(&rtems_filesystem_root); 3001da84: e5960000 ldr r0, [r6] <== NOT EXECUTED 3001da88: e590301c ldr r3, [r0, #28] <== NOT EXECUTED 3001da8c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001da90: 0a000004 beq 3001daa8 <== NOT EXECUTED 3001da94: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001da98: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001da9c: 12800014 addne r0, r0, #20 ; 0x14 <== NOT EXECUTED 3001daa0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001daa4: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_root = loc; 3001daa8: e596c000 ldr ip, [r6] <== NOT EXECUTED 3001daac: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 3001dab0: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 3001dab4: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001dab8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 3001dabc: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001dac0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED int result; rtems_filesystem_location_info_t loc; /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { rtems_libio_set_private_env(); /* try to set a new private env*/ 3001dac4: eb00075e bl 3001f844 <== NOT EXECUTED if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 3001dac8: e5963000 ldr r3, [r6] <== NOT EXECUTED 3001dacc: e1530004 cmp r3, r4 <== NOT EXECUTED 3001dad0: 1affffdf bne 3001da54 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001dad4: eb003cc8 bl 3002cdfc <__errno> <== NOT EXECUTED 3001dad8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001dadc: e5803000 str r3, [r0] <== NOT EXECUTED 3001dae0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001dae4: eafffff4 b 3001dabc <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 3001dae8: eb003cc3 bl 3002cdfc <__errno> <== NOT EXECUTED 3001daec: e1a04000 mov r4, r0 <== NOT EXECUTED 3001daf0: eb003cc1 bl 3002cdfc <__errno> <== NOT EXECUTED 3001daf4: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001daf8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001dafc: e5843000 str r3, [r4] <== NOT EXECUTED 3001db00: eaffffed b 3001dabc <== NOT EXECUTED 3001db04: 30044b08 .word 0x30044b08 3001db08: 300594e0 .word 0x300594e0 3001db0c: 3004035c .word 0x3004035c 30008e2c : ) { rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 30008e2c: e59f309c ldr r3, [pc, #156] ; 30008ed0 #include int close( int fd ) { 30008e30: e92d4030 push {r4, r5, lr} rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 30008e34: e5932000 ldr r2, [r3] 30008e38: e1500002 cmp r0, r2 30008e3c: 2a00001e bcs 30008ebc iop = rtems_libio_iop(fd); 30008e40: e59f208c ldr r2, [pc, #140] ; 30008ed4 30008e44: e1a03200 lsl r3, r0, #4 30008e48: e0433100 sub r3, r3, r0, lsl #2 30008e4c: e5921000 ldr r1, [r2] 30008e50: e0833000 add r3, r3, r0 30008e54: e1a03103 lsl r3, r3, #2 30008e58: e0814003 add r4, r1, r3 rtems_libio_check_is_open(iop); 30008e5c: e594200c ldr r2, [r4, #12] 30008e60: e3120c01 tst r2, #256 ; 0x100 30008e64: 0a000014 beq 30008ebc rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 30008e68: e5943030 ldr r3, [r4, #48] 30008e6c: e5933004 ldr r3, [r3, #4] 30008e70: e3530000 cmp r3, #0 ; 0x0 30008e74: 01a05003 moveq r5, r3 30008e78: 0a000003 beq 30008e8c rc = (*iop->handlers->close_h)( iop ); 30008e7c: e1a00004 mov r0, r4 30008e80: e1a0e00f mov lr, pc 30008e84: e12fff13 bx r3 30008e88: e1a05000 mov r5, r0 rtems_filesystem_freenode( &iop->pathinfo ); 30008e8c: e5943018 ldr r3, [r4, #24] 30008e90: e3530000 cmp r3, #0 ; 0x0 30008e94: 0a000004 beq 30008eac 30008e98: e593301c ldr r3, [r3, #28] 30008e9c: e3530000 cmp r3, #0 ; 0x0 30008ea0: 12840010 addne r0, r4, #16 ; 0x10 30008ea4: 11a0e00f movne lr, pc 30008ea8: 112fff13 bxne r3 rtems_libio_free( iop ); 30008eac: e1a00004 mov r0, r4 30008eb0: eb0000e9 bl 3000925c return rc; } 30008eb4: e1a00005 mov r0, r5 30008eb8: e8bd8030 pop {r4, r5, pc} rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 30008ebc: eb0008f2 bl 3000b28c <__errno> <== NOT EXECUTED 30008ec0: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30008ec4: e5803000 str r3, [r0] <== NOT EXECUTED 30008ec8: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 30008ecc: eafffff8 b 30008eb4 <== NOT EXECUTED 30008ed0: 3001520c .word 0x3001520c 30008ed4: 30015f00 .word 0x30015f00 3002a62c : * close a directory. */ int closedir( DIR *dirp ) { 3002a62c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int fd; if ( !dirp ) 3002a630: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3002a634: 0a00000b beq 3002a668 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; dirp->dd_loc = 0; 3002a638: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3002a63c: 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; 3002a640: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; 3002a644: e5954000 ldr r4, [r5] <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 3002a648: 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; 3002a64c: e5853000 str r3, [r5] <== NOT EXECUTED dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 3002a650: ebff663d bl 30003f4c <== NOT EXECUTED (void)free((void *)dirp); 3002a654: e1a00005 mov r0, r5 <== NOT EXECUTED 3002a658: ebff663b bl 30003f4c <== NOT EXECUTED return(close(fd)); 3002a65c: e1a00004 mov r0, r4 <== NOT EXECUTED } 3002a660: 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)); 3002a664: eaff658c b 30003c9c <== NOT EXECUTED DIR *dirp ) { int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); 3002a668: eb0009e3 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a66c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3002a670: 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)); } 3002a674: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3002a678: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000a854 : rtems_libio_t *iop, off_t length ) { return 0; } 3000a854: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3000a858: e12fff1e bx lr <== NOT EXECUTED 3000a888 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 3000a888: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 3000a88c: e590302c ldr r3, [r0, #44] <== NOT EXECUTED int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 3000a890: 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; 3000a894: e88d0007 stm sp, {r0, r1, r2} <== NOT EXECUTED the_jnode = iop->file_info; status = rtems_io_control( 3000a898: e5931054 ldr r1, [r3, #84] <== NOT EXECUTED 3000a89c: e5930050 ldr r0, [r3, #80] <== NOT EXECUTED 3000a8a0: e1a0200d mov r2, sp <== NOT EXECUTED 3000a8a4: eb00017e bl 3000aea4 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000a8a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; 3000a8ac: 059d000c ldreq r0, [sp, #12] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000a8b0: 1a000001 bne 3000a8bc <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; } 3000a8b4: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3000a8b8: e8bd8000 pop {pc} <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 3000a8bc: ebffffe6 bl 3000a85c <== NOT EXECUTED 3000a8c0: eafffffb b 3000a8b4 <== NOT EXECUTED 3000a84c : off_t offset, int whence ) { return offset; } 3000a84c: e1a00001 mov r0, r1 <== NOT EXECUTED 3000a850: e12fff1e bx lr <== NOT EXECUTED 3000a920 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000a920: 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; 3000a924: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000a928: 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; 3000a92c: 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; 3000a930: e590e02c ldr lr, [r0, #44] <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; 3000a934: e58d3004 str r3, [sp, #4] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 3000a938: 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; 3000a93c: e58d200c str r2, [sp, #12] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 3000a940: e58d1008 str r1, [sp, #8] <== NOT EXECUTED args.count = count; args.flags = iop->flags; 3000a944: e58dc010 str ip, [sp, #16] <== NOT EXECUTED args.bytes_moved = 0; 3000a948: e58d3014 str r3, [sp, #20] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 3000a94c: e58d0000 str r0, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 3000a950: e59e1054 ldr r1, [lr, #84] <== NOT EXECUTED 3000a954: e59e0050 ldr r0, [lr, #80] <== NOT EXECUTED 3000a958: e1a0200d mov r2, sp <== NOT EXECUTED 3000a95c: eb00017a bl 3000af4c <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000a960: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 3000a964: 059d0014 ldreq r0, [sp, #20] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000a968: 1a000001 bne 3000a974 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } 3000a96c: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED 3000a970: e8bd8000 pop {pc} <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 3000a974: ebffffb8 bl 3000a85c <== NOT EXECUTED 3000a978: eafffffb b 3000a96c <== NOT EXECUTED 3000a8c4 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 3000a8c4: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 3000a8c8: e5903008 ldr r3, [r0, #8] ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 3000a8cc: e24dd018 sub sp, sp, #24 ; 0x18 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 3000a8d0: e590c00c ldr ip, [r0, #12] { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3000a8d4: e590e02c ldr lr, [r0, #44] args.iop = iop; args.offset = iop->offset; 3000a8d8: e58d3004 str r3, [sp, #4] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 3000a8dc: e3a03000 mov r3, #0 ; 0x0 the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; 3000a8e0: e58d200c str r2, [sp, #12] the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 3000a8e4: e58d1008 str r1, [sp, #8] args.count = count; args.flags = iop->flags; 3000a8e8: e58dc010 str ip, [sp, #16] args.bytes_moved = 0; 3000a8ec: e58d3014 str r3, [sp, #20] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 3000a8f0: e58d0000 str r0, [sp] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 3000a8f4: e59e1054 ldr r1, [lr, #84] 3000a8f8: e59e0050 ldr r0, [lr, #80] 3000a8fc: e1a0200d mov r2, sp 3000a900: eb0001a6 bl 3000afa0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000a904: e3500000 cmp r0, #0 ; 0x0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 3000a908: 059d0014 ldreq r0, [sp, #20] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000a90c: 1a000001 bne 3000a918 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } 3000a910: e28dd018 add sp, sp, #24 ; 0x18 3000a914: e8bd8000 pop {pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 3000a918: ebffffcf bl 3000a85c <== NOT EXECUTED 3000a91c: eafffffb b 3000a910 <== NOT EXECUTED 30002f3c : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002f3c: e59030b4 ldr r3, [r0, #180] /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002f40: e92d4030 push {r4, r5, lr} rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002f44: e3530000 cmp r3, #0 ; 0x0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002f48: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002f4c: 08bd8030 popeq {r4, r5, pc} rtems_interrupt_disable (level); 30002f50: e10f1000 mrs r1, CPSR <== NOT EXECUTED 30002f54: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30002f58: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 30002f5c: e5902084 ldr r2, [r0, #132] <== NOT EXECUTED 30002f60: e5903080 ldr r3, [r0, #128] <== NOT EXECUTED 30002f64: e1520003 cmp r2, r3 <== NOT EXECUTED 30002f68: 0a00000f beq 30002fac <== NOT EXECUTED tty->rawOutBufState = rob_wait; 30002f6c: e3a05002 mov r5, #2 ; 0x2 <== NOT EXECUTED 30002f70: e5845094 str r5, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 30002f74: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 30002f78: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30002f7c: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 30002f80: e1a02001 mov r2, r1 <== NOT EXECUTED 30002f84: eb000604 bl 3000479c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30002f88: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30002f8c: 1a000008 bne 30002fb4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 30002f90: e10f1000 mrs r1, CPSR <== NOT EXECUTED 30002f94: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30002f98: 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) { 30002f9c: e5942084 ldr r2, [r4, #132] <== NOT EXECUTED 30002fa0: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 30002fa4: e1520003 cmp r2, r3 <== NOT EXECUTED 30002fa8: 1afffff0 bne 30002f70 <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 30002fac: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30002fb0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 30002fb4: eb0007b4 bl 30004e8c <== NOT EXECUTED 300029e0 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 300029e0: e92d4010 push {r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 300029e4: e591303c ldr r3, [r1, #60] <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 300029e8: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 300029ec: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 300029f0: e1a04001 mov r4, r1 <== NOT EXECUTED 300029f4: e200c0ff and ip, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 300029f8: 0a000006 beq 30002a18 <== NOT EXECUTED 300029fc: e59f3060 ldr r3, [pc, #96] ; 30002a64 <== NOT EXECUTED 30002a00: e25c0009 subs r0, ip, #9 ; 0x9 <== NOT EXECUTED 30002a04: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 30002a08: e5932000 ldr r2, [r3] <== NOT EXECUTED 30002a0c: e7d2100c ldrb r1, [r2, ip] <== NOT EXECUTED 30002a10: e01002a1 ands r0, r0, r1, lsr #5 <== NOT EXECUTED 30002a14: 1a000004 bne 30002a2c <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 30002a18: e1a0000c mov r0, ip <== NOT EXECUTED 30002a1c: e1a01004 mov r1, r4 <== NOT EXECUTED 30002a20: ebffff95 bl 3000287c <== NOT EXECUTED } } 30002a24: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 30002a28: e8bd8010 pop {r4, pc} <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 30002a2c: e35c000a cmp ip, #10 ; 0xa <== NOT EXECUTED 30002a30: 0afffff8 beq 30002a18 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; 30002a34: e3a0305e mov r3, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; 30002a38: e22cc040 eor ip, ip, #64 ; 0x40 <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 30002a3c: e28d0002 add r0, sp, #2 ; 0x2 <== NOT EXECUTED 30002a40: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 30002a44: 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] = '^'; 30002a48: e5cd3002 strb r3, [sp, #2] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 30002a4c: e5cdc003 strb ip, [sp, #3] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 30002a50: ebffff41 bl 3000275c <== NOT EXECUTED tty->column += 2; 30002a54: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 30002a58: e2833002 add r3, r3, #2 ; 0x2 <== NOT EXECUTED 30002a5c: e5843028 str r3, [r4, #40] <== NOT EXECUTED 30002a60: eaffffef b 30002a24 <== NOT EXECUTED 30002a64: 30015860 .word 0x30015860 3001e5d8 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 3001e5d8: e59f300c ldr r3, [pc, #12] ; 3001e5ec <== NOT EXECUTED 3001e5dc: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001e5e0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e5e4: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 3001e5e8: ea003a54 b 3002cf40 <== NOT EXECUTED 3001e5ec: 30058828 .word 0x30058828 3001e5f0 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 3001e5f0: e59f300c ldr r3, [pc, #12] ; 3001e604 <== NOT EXECUTED 3001e5f4: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001e5f8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e5fc: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 3001e600: ea003a4e b 3002cf40 <== NOT EXECUTED 3001e604: 30058740 .word 0x30058740 30002a68 : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) 30002a68: 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) { 30002a6c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED if (tty->ccount == 0) 30002a70: 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) { 30002a74: e1a04000 mov r4, r0 <== NOT EXECUTED 30002a78: e1a07001 mov r7, r1 <== NOT EXECUTED if (tty->ccount == 0) 30002a7c: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return; if (lineFlag) { 30002a80: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30002a84: 0590103c ldreq r1, [r0, #60] <== NOT EXECUTED 30002a88: 1a000019 bne 30002af4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 30002a8c: e59f81a8 ldr r8, [pc, #424] ; 30002c3c <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 30002a90: e2430001 sub r0, r3, #1 ; 0x1 <== NOT EXECUTED 30002a94: e594c01c ldr ip, [r4, #28] <== NOT EXECUTED 30002a98: e5840020 str r0, [r4, #32] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 30002a9c: e3110008 tst r1, #8 ; 0x8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 30002aa0: e7dc5000 ldrb r5, [ip, r0] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 30002aa4: 0a00000b beq 30002ad8 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 30002aa8: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 30002aac: 1a000001 bne 30002ab8 <== NOT EXECUTED 30002ab0: e3110010 tst r1, #16 ; 0x10 <== NOT EXECUTED 30002ab4: 0a00005c beq 30002c2c <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 30002ab8: e3550009 cmp r5, #9 ; 0x9 <== NOT EXECUTED 30002abc: 0a000037 beq 30002ba0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 30002ac0: e5983000 ldr r3, [r8] <== NOT EXECUTED 30002ac4: e7d32005 ldrb r2, [r3, r5] <== NOT EXECUTED 30002ac8: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED 30002acc: 0a000028 beq 30002b74 <== NOT EXECUTED 30002ad0: e3110c02 tst r1, #512 ; 0x200 <== NOT EXECUTED 30002ad4: 1a000017 bne 30002b38 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 30002ad8: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 30002adc: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 30002ae0: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002ae4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002ae8: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 30002aec: e594103c ldr r1, [r4, #60] <== NOT EXECUTED 30002af0: eaffffe6 b 30002a90 <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 30002af4: e590103c ldr r1, [r0, #60] <== NOT EXECUTED 30002af8: e2112008 ands r2, r1, #8 ; 0x8 <== NOT EXECUTED tty->ccount = 0; 30002afc: 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)) { 30002b00: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 30002b04: e2112010 ands r2, r1, #16 ; 0x10 <== NOT EXECUTED 30002b08: 1affffdf bne 30002a8c <== NOT EXECUTED tty->ccount = 0; 30002b0c: e5802020 str r2, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 30002b10: e1a01004 mov r1, r4 <== NOT EXECUTED 30002b14: e5d00044 ldrb r0, [r0, #68] <== NOT EXECUTED 30002b18: ebffffb0 bl 300029e0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 30002b1c: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 30002b20: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 30002b24: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED echo ('\n', tty); 30002b28: e1a01004 mov r1, r4 <== NOT EXECUTED 30002b2c: e3a0000a mov r0, #10 ; 0xa <== NOT EXECUTED } } if (!lineFlag) break; } } 30002b30: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 30002b34: eaffffa9 b 300029e0 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 30002b38: e1a02004 mov r2, r4 <== NOT EXECUTED 30002b3c: e59f00fc ldr r0, [pc, #252] ; 30002c40 <== NOT EXECUTED 30002b40: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 30002b44: ebffff04 bl 3000275c <== NOT EXECUTED if (tty->column) 30002b48: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 30002b4c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 30002b50: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002b54: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 30002b58: e5983000 ldr r3, [r8] <== NOT EXECUTED 30002b5c: e7d32005 ldrb r2, [r3, r5] <== NOT EXECUTED 30002b60: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED 30002b64: 0a000002 beq 30002b74 <== NOT EXECUTED 30002b68: e594103c ldr r1, [r4, #60] <== NOT EXECUTED 30002b6c: e3110c02 tst r1, #512 ; 0x200 <== NOT EXECUTED 30002b70: 0affffd8 beq 30002ad8 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 30002b74: e59f00c4 ldr r0, [pc, #196] ; 30002c40 <== NOT EXECUTED 30002b78: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 30002b7c: e1a02004 mov r2, r4 <== NOT EXECUTED 30002b80: ebfffef5 bl 3000275c <== NOT EXECUTED if (tty->column) 30002b84: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 30002b88: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 30002b8c: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002b90: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } } } if (!lineFlag) 30002b94: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 30002b98: 1affffd0 bne 30002ae0 <== NOT EXECUTED 30002b9c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002ba0: e3500000 cmp r0, #0 ; 0x0 <== 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; 30002ba4: e594502c ldr r5, [r4, #44] <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002ba8: 0a000010 beq 30002bf0 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 30002bac: e5986000 ldr r6, [r8] <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 30002bb0: e2011c02 and r1, r1, #512 ; 0x200 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 30002bb4: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 30002bb8: e7dc3002 ldrb r3, [ip, r2] <== NOT EXECUTED 30002bbc: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED if (c == '\t') { 30002bc0: e3530009 cmp r3, #9 ; 0x9 <== NOT EXECUTED col = (col | 7) + 1; 30002bc4: 03853007 orreq r3, r5, #7 ; 0x7 <== NOT EXECUTED 30002bc8: 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') { 30002bcc: 0a000005 beq 30002be8 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 30002bd0: e7d63003 ldrb r3, [r6, r3] <== NOT EXECUTED 30002bd4: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 30002bd8: 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)) { 30002bdc: 0a000001 beq 30002be8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 30002be0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED col += 2; 30002be4: 12855002 addne r5, r5, #2 ; 0x2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002be8: e1500002 cmp r0, r2 <== NOT EXECUTED 30002bec: 1afffff1 bne 30002bb8 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002bf0: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 30002bf4: e1530005 cmp r3, r5 <== NOT EXECUTED 30002bf8: daffffb6 ble 30002ad8 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 30002bfc: e59f0040 ldr r0, [pc, #64] ; 30002c44 <== NOT EXECUTED 30002c00: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 30002c04: e1a02004 mov r2, r4 <== NOT EXECUTED 30002c08: ebfffed3 bl 3000275c <== NOT EXECUTED tty->column--; 30002c0c: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 30002c10: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002c14: e1530005 cmp r3, r5 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; 30002c18: e5843028 str r3, [r4, #40] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002c1c: cafffff6 bgt 30002bfc <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 30002c20: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 30002c24: 1affffad bne 30002ae0 <== NOT EXECUTED 30002c28: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== 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); 30002c2c: e5d40043 ldrb r0, [r4, #67] <== NOT EXECUTED 30002c30: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } 30002c34: e8bd41f0 pop {r4, r5, r6, r7, r8, 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); 30002c38: eaffff68 b 300029e0 <== NOT EXECUTED 30002c3c: 30015860 .word 0x30015860 30002c40: 30014d10 .word 0x30014d10 30002c44: 30014d0c .word 0x30014d0c 3002a67c : #include int fchdir( int fd ) { 3002a67c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 3002a680: e59f3154 ldr r3, [pc, #340] ; 3002a7dc <== NOT EXECUTED #include int fchdir( int fd ) { 3002a684: e24dd020 sub sp, sp, #32 ; 0x20 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 3002a688: e5932000 ldr r2, [r3] <== NOT EXECUTED 3002a68c: e1500002 cmp r0, r2 <== NOT EXECUTED 3002a690: 2a00003c bcs 3002a788 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3002a694: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 3002a698: e59f2140 ldr r2, [pc, #320] ; 3002a7e0 <== NOT EXECUTED 3002a69c: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 3002a6a0: e0833000 add r3, r3, r0 <== NOT EXECUTED 3002a6a4: e5921000 ldr r1, [r2] <== NOT EXECUTED 3002a6a8: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3002a6ac: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3002a6b0: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 3002a6b4: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 3002a6b8: 0a000032 beq 3002a788 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 3002a6bc: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 3002a6c0: 0a00003b beq 3002a7b4 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 3002a6c4: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED 3002a6c8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3002a6cc: 0a00003d beq 3002a7c8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 3002a6d0: e5922010 ldr r2, [r2, #16] <== NOT EXECUTED 3002a6d4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3002a6d8: 0a00003a beq 3002a7c8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 3002a6dc: e2804010 add r4, r0, #16 ; 0x10 <== NOT EXECUTED 3002a6e0: e1a00004 mov r0, r4 <== NOT EXECUTED 3002a6e4: e1a0e00f mov lr, pc <== NOT EXECUTED 3002a6e8: e12fff12 bx r2 <== NOT EXECUTED 3002a6ec: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3002a6f0: 1a00001f bne 3002a774 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 3002a6f4: e59f70e8 ldr r7, [pc, #232] ; 3002a7e4 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 3002a6f8: e28d6010 add r6, sp, #16 ; 0x10 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 3002a6fc: e597c000 ldr ip, [r7] <== NOT EXECUTED 3002a700: e1a0500d mov r5, sp <== NOT EXECUTED 3002a704: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3002a708: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3002a70c: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 3002a710: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 3002a714: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 3002a718: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3002a71c: e59f00c4 ldr r0, [pc, #196] ; 3002a7e8 <== NOT EXECUTED 3002a720: e1a02006 mov r2, r6 <== NOT EXECUTED 3002a724: e1a03001 mov r3, r1 <== NOT EXECUTED 3002a728: ebff65b2 bl 30003df8 <== NOT EXECUTED 3002a72c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002a730: 1a000019 bne 3002a79c <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 3002a734: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3002a738: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002a73c: 0a000004 beq 3002a754 <== NOT EXECUTED 3002a740: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3002a744: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002a748: 11a0000d movne r0, sp <== NOT EXECUTED 3002a74c: 11a0e00f movne lr, pc <== NOT EXECUTED 3002a750: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 3002a754: e597c000 ldr ip, [r7] <== NOT EXECUTED 3002a758: e896000f ldm r6, {r0, r1, r2, r3} <== NOT EXECUTED 3002a75c: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3002a760: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3002a764: e3a0e000 mov lr, #0 ; 0x0 <== NOT EXECUTED return 0; } 3002a768: e1a0000e mov r0, lr <== NOT EXECUTED 3002a76c: e28dd020 add sp, sp, #32 ; 0x20 <== NOT EXECUTED 3002a770: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 3002a774: eb0009a0 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a778: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3002a77c: e5803000 str r3, [r0] <== NOT EXECUTED 3002a780: e3e0e000 mvn lr, #0 ; 0x0 <== NOT EXECUTED 3002a784: eafffff7 b 3002a768 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3002a788: eb00099b bl 3002cdfc <__errno> <== NOT EXECUTED 3002a78c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3002a790: e5803000 str r3, [r0] <== NOT EXECUTED 3002a794: e3e0e000 mvn lr, #0 ; 0x0 <== NOT EXECUTED 3002a798: eafffff2 b 3002a768 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 3002a79c: e597c000 ldr ip, [r7] <== NOT EXECUTED 3002a7a0: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3002a7a4: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3002a7a8: e3e0e000 mvn lr, #0 ; 0x0 <== NOT EXECUTED 3002a7ac: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3002a7b0: eaffffec b 3002a768 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 3002a7b4: eb000990 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a7b8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3002a7bc: e5803000 str r3, [r0] <== NOT EXECUTED 3002a7c0: e3e0e000 mvn lr, #0 ; 0x0 <== NOT EXECUTED 3002a7c4: eaffffe7 b 3002a768 <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); 3002a7c8: eb00098b bl 3002cdfc <__errno> <== NOT EXECUTED 3002a7cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3002a7d0: e5803000 str r3, [r0] <== NOT EXECUTED 3002a7d4: e3e0e000 mvn lr, #0 ; 0x0 <== NOT EXECUTED 3002a7d8: eaffffe2 b 3002a768 <== NOT EXECUTED 3002a7dc: 30043fa0 .word 0x30043fa0 3002a7e0: 30059028 .word 0x30059028 3002a7e4: 30044b08 .word 0x30044b08 3002a7e8: 3004035c .word 0x3004035c 3001dd3c : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001dd3c: e59f309c ldr r3, [pc, #156] ; 3001dde0 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 3001dd40: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001dd44: e5932000 ldr r2, [r3] <== NOT EXECUTED 3001dd48: e1500002 cmp r0, r2 <== NOT EXECUTED 3001dd4c: 2a000014 bcs 3001dda4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3001dd50: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 3001dd54: e59f2088 ldr r2, [pc, #136] ; 3001dde4 <== NOT EXECUTED 3001dd58: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 3001dd5c: e0833000 add r3, r3, r0 <== NOT EXECUTED 3001dd60: e5920000 ldr r0, [r2] <== NOT EXECUTED 3001dd64: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3001dd68: e080c003 add ip, r0, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3001dd6c: e59c300c ldr r3, [ip, #12] <== NOT EXECUTED 3001dd70: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001dd74: 0a00000a beq 3001dda4 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001dd78: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 3001dd7c: 0a00000d beq 3001ddb8 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 3001dd80: e59c3030 ldr r3, [ip, #48] <== NOT EXECUTED 3001dd84: e593201c ldr r2, [r3, #28] <== NOT EXECUTED 3001dd88: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001dd8c: 0a00000e beq 3001ddcc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 3001dd90: e28c0010 add r0, ip, #16 ; 0x10 <== NOT EXECUTED 3001dd94: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED 3001dd98: e1a0e00f mov lr, pc <== NOT EXECUTED 3001dd9c: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 3001dda0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3001dda4: eb003c14 bl 3002cdfc <__errno> <== NOT EXECUTED 3001dda8: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001ddac: e5803000 str r3, [r0] <== NOT EXECUTED 3001ddb0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001ddb4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001ddb8: eb003c0f bl 3002cdfc <__errno> <== NOT EXECUTED 3001ddbc: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001ddc0: e5803000 str r3, [r0] <== NOT EXECUTED 3001ddc4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001ddc8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001ddcc: eb003c0a bl 3002cdfc <__errno> <== NOT EXECUTED 3001ddd0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001ddd4: e5803000 str r3, [r0] <== NOT EXECUTED 3001ddd8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001dddc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001dde0: 30043fa0 .word 0x30043fa0 3001dde4: 30059028 .word 0x30059028 3001dde8 : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001dde8: e59f30b4 ldr r3, [pc, #180] ; 3001dea4 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 3001ddec: e1a0c000 mov ip, r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001ddf0: e5930000 ldr r0, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 3001ddf4: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 3001ddf8: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001ddfc: e15c0000 cmp ip, r0 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 3001de00: e92d4010 push {r4, lr} <== NOT EXECUTED 3001de04: e1a0e821 lsr lr, r1, #16 <== NOT EXECUTED 3001de08: e1a04822 lsr r4, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001de0c: 2a000015 bcs 3001de68 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3001de10: e1a0320c lsl r3, ip, #4 <== NOT EXECUTED 3001de14: e59f208c ldr r2, [pc, #140] ; 3001dea8 <== NOT EXECUTED 3001de18: e043310c sub r3, r3, ip, lsl #2 <== NOT EXECUTED 3001de1c: e083300c add r3, r3, ip <== NOT EXECUTED 3001de20: e5921000 ldr r1, [r2] <== NOT EXECUTED 3001de24: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3001de28: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3001de2c: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 3001de30: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3001de34: 0a00000b beq 3001de68 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001de38: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 3001de3c: 0a00000e beq 3001de7c <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 3001de40: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED 3001de44: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 3001de48: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001de4c: 0a00000f beq 3001de90 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 3001de50: e1a0100e mov r1, lr <== NOT EXECUTED 3001de54: e1a02004 mov r2, r4 <== NOT EXECUTED 3001de58: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED 3001de5c: e1a0e00f mov lr, pc <== NOT EXECUTED 3001de60: e12fff13 bx r3 <== NOT EXECUTED } 3001de64: e8bd8010 pop {r4, pc} <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3001de68: eb003be3 bl 3002cdfc <__errno> <== NOT EXECUTED 3001de6c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001de70: e5803000 str r3, [r0] <== NOT EXECUTED 3001de74: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001de78: e8bd8010 pop {r4, pc} <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001de7c: eb003bde bl 3002cdfc <__errno> <== NOT EXECUTED 3001de80: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001de84: e5803000 str r3, [r0] <== NOT EXECUTED 3001de88: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001de8c: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001de90: eb003bd9 bl 3002cdfc <__errno> <== NOT EXECUTED 3001de94: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001de98: e5803000 str r3, [r0] <== NOT EXECUTED 3001de9c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001dea0: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3001dea4: 30043fa0 .word 0x30043fa0 3001dea8: 30059028 .word 0x30059028 3002a7ec : int fcntl( int fd, int cmd, ... ) { 3002a7ec: e92d000e push {r1, r2, r3} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 3002a7f0: e59f3208 ldr r3, [pc, #520] ; 3002aa00 <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 3002a7f4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 3002a7f8: e5932000 ldr r2, [r3] <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 3002a7fc: e59da01c ldr sl, [sp, #28] <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 3002a800: e1500002 cmp r0, r2 <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 3002a804: e28d1020 add r1, sp, #32 ; 0x20 <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 3002a808: 2a000070 bcs 3002a9d0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3002a80c: e59f51f0 ldr r5, [pc, #496] ; 3002aa04 <== NOT EXECUTED 3002a810: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 3002a814: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 3002a818: e0833000 add r3, r3, r0 <== NOT EXECUTED 3002a81c: e5954000 ldr r4, [r5] <== NOT EXECUTED 3002a820: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3002a824: e0846003 add r6, r4, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3002a828: e596700c ldr r7, [r6, #12] <== NOT EXECUTED 3002a82c: e3170c01 tst r7, #256 ; 0x100 <== NOT EXECUTED 3002a830: 0a000066 beq 3002a9d0 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 3002a834: e35a0009 cmp sl, #9 ; 0x9 <== NOT EXECUTED 3002a838: 979ff10a ldrls pc, [pc, sl, lsl #2] <== NOT EXECUTED 3002a83c: ea000029 b 3002a8e8 <== NOT EXECUTED 3002a840: 3002a8fc .word 0x3002a8fc <== NOT EXECUTED 3002a844: 3002a990 .word 0x3002a990 <== NOT EXECUTED 3002a848: 3002a99c .word 0x3002a99c <== NOT EXECUTED 3002a84c: 3002a9c0 .word 0x3002a9c0 <== NOT EXECUTED 3002a850: 3002a888 .word 0x3002a888 <== NOT EXECUTED 3002a854: 3002a868 .word 0x3002a868 <== NOT EXECUTED 3002a858: 3002a868 .word 0x3002a868 <== NOT EXECUTED 3002a85c: 3002a868 .word 0x3002a868 <== NOT EXECUTED 3002a860: 3002a868 .word 0x3002a868 <== NOT EXECUTED 3002a864: 3002a868 .word 0x3002a868 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 3002a868: eb000963 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a86c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3002a870: e5803000 str r3, [r0] <== NOT EXECUTED 3002a874: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 3002a878: e1a00005 mov r0, r5 <== NOT EXECUTED 3002a87c: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 3002a880: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 3002a884: e12fff1e bx lr <== NOT EXECUTED case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 3002a888: e5910000 ldr r0, [r1] <== NOT EXECUTED 3002a88c: ebff66e8 bl 30004434 <== NOT EXECUTED /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 3002a890: e596300c ldr r3, [r6, #12] <== NOT EXECUTED 3002a894: e59f216c ldr r2, [pc, #364] ; 3002aa08 <== NOT EXECUTED 3002a898: e3c33c02 bic r3, r3, #512 ; 0x200 <== NOT EXECUTED 3002a89c: e0002002 and r2, r0, r2 <== NOT EXECUTED 3002a8a0: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 3002a8a4: e1822003 orr r2, r2, r3 <== NOT EXECUTED 3002a8a8: e586200c str r2, [r6, #12] <== NOT EXECUTED 3002a8ac: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { 3002a8b0: e5963030 ldr r3, [r6, #48] <== NOT EXECUTED 3002a8b4: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 3002a8b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002a8bc: 0affffed beq 3002a878 <== NOT EXECUTED int err = (*iop->handlers->fcntl_h)( cmd, iop ); 3002a8c0: e1a0000a mov r0, sl <== NOT EXECUTED 3002a8c4: e1a01006 mov r1, r6 <== NOT EXECUTED 3002a8c8: e1a0e00f mov lr, pc <== NOT EXECUTED 3002a8cc: e12fff13 bx r3 <== NOT EXECUTED if (err) { 3002a8d0: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3002a8d4: 0affffe7 beq 3002a878 <== NOT EXECUTED errno = err; 3002a8d8: eb000947 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a8dc: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3002a8e0: e5804000 str r4, [r0] <== NOT EXECUTED 3002a8e4: eaffffe3 b 3002a878 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 3002a8e8: eb000943 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a8ec: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3002a8f0: e5803000 str r3, [r0] <== NOT EXECUTED 3002a8f4: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3002a8f8: eaffffde b 3002a878 <== NOT EXECUTED * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 3002a8fc: e5910000 ldr r0, [r1] <== NOT EXECUTED if ( fd2 ) 3002a900: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002a904: 0a000036 beq 3002a9e4 <== NOT EXECUTED diop = rtems_libio_iop( fd2 ); 3002a908: e1520000 cmp r2, r0 <== NOT EXECUTED 3002a90c: 81a03200 lslhi r3, r0, #4 <== NOT EXECUTED 3002a910: 80433100 subhi r3, r3, r0, lsl #2 <== NOT EXECUTED 3002a914: 80833000 addhi r3, r3, r0 <== NOT EXECUTED 3002a918: 81a03103 lslhi r3, r3, #2 <== NOT EXECUTED 3002a91c: 93a08000 movls r8, #0 ; 0x0 <== NOT EXECUTED 3002a920: 80848003 addhi r8, r4, r3 <== NOT EXECUTED 3002a924: 91a03008 movls r3, r8 <== NOT EXECUTED 3002a928: 81a03008 movhi r3, r8 <== 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); 3002a92c: e5950000 ldr r0, [r5] <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 3002a930: e5965030 ldr r5, [r6, #48] <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 3002a934: e0600003 rsb r0, r0, r3 <== NOT EXECUTED 3002a938: e1a00140 asr r0, r0, #2 <== NOT EXECUTED 3002a93c: e1a03300 lsl r3, r0, #6 <== NOT EXECUTED 3002a940: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 3002a944: e1a02303 lsl r2, r3, #6 <== NOT EXECUTED 3002a948: e0632002 rsb r2, r3, r2 <== NOT EXECUTED 3002a94c: e1a01602 lsl r1, r2, #12 <== NOT EXECUTED 3002a950: e0822001 add r2, r2, r1 <== NOT EXECUTED 3002a954: e0822000 add r2, r2, r0 <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 3002a958: e596302c ldr r3, [r6, #44] <== NOT EXECUTED diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 3002a95c: e1a02202 lsl r2, r2, #4 <== NOT EXECUTED 3002a960: e0602002 rsb r2, r0, r2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 3002a964: e2884010 add r4, r8, #16 ; 0x10 <== NOT EXECUTED 3002a968: e286c010 add ip, r6, #16 ; 0x10 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 3002a96c: e5885030 str r5, [r8, #48] <== NOT EXECUTED diop->file_info = iop->file_info; 3002a970: e588302c str r3, [r8, #44] <== NOT EXECUTED diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 3002a974: e0405102 sub r5, r0, r2, lsl #2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 3002a978: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3002a97c: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; 3002a980: e588700c str r7, [r8, #12] <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 3002a984: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 3002a988: aaffffc8 bge 3002a8b0 <== NOT EXECUTED 3002a98c: eaffffb9 b 3002a878 <== NOT EXECUTED diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 3002a990: e1a035a7 lsr r3, r7, #11 <== NOT EXECUTED 3002a994: e2035001 and r5, r3, #1 ; 0x1 <== NOT EXECUTED 3002a998: eaffffc4 b 3002a8b0 <== 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 ) ) 3002a99c: e5910000 ldr r0, [r1] <== NOT EXECUTED 3002a9a0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 3002a9a4: 13873b02 orrne r3, r7, #2048 ; 0x800 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 3002a9a8: 03c73b02 biceq r3, r7, #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; 3002a9ac: 1586300c strne r3, [r6, #12] <== NOT EXECUTED 3002a9b0: 13a05000 movne r5, #0 ; 0x0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 3002a9b4: 0586300c streq r3, [r6, #12] <== NOT EXECUTED 3002a9b8: 01a05000 moveq r5, r0 <== NOT EXECUTED 3002a9bc: eaffffbb b 3002a8b0 <== NOT EXECUTED break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 3002a9c0: e1a00007 mov r0, r7 <== NOT EXECUTED 3002a9c4: ebff65e6 bl 30004164 <== NOT EXECUTED 3002a9c8: e1a05000 mov r5, r0 <== NOT EXECUTED 3002a9cc: eaffffec b 3002a984 <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3002a9d0: eb000909 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a9d4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3002a9d8: e5803000 str r3, [r0] <== NOT EXECUTED 3002a9dc: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3002a9e0: eaffffa4 b 3002a878 <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 3002a9e4: ebff664e bl 30004324 <== NOT EXECUTED if ( diop == 0 ) { 3002a9e8: e2508000 subs r8, r0, #0 ; 0x0 <== NOT EXECUTED 3002a9ec: 1596700c ldrne r7, [r6, #12] <== NOT EXECUTED 3002a9f0: 11a03008 movne r3, r8 <== NOT EXECUTED 3002a9f4: 1affffcc bne 3002a92c <== NOT EXECUTED if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; 3002a9f8: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3002a9fc: eaffff9d b 3002a878 <== NOT EXECUTED 3002aa00: 30043fa0 .word 0x30043fa0 3002aa04: 30059028 .word 0x30059028 3002aa08: 00000201 .word 0x00000201 30020204 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 30020204: e59f0044 ldr r0, [pc, #68] ; 30020250 <== NOT EXECUTED 30020208: e4902004 ldr r2, [r0], #4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 3002020c: e1520000 cmp r2, r0 <== NOT EXECUTED 30020210: 0a00000a beq 30020240 <== NOT EXECUTED 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 ) { 30020214: e591100c ldr r1, [r1, #12] <== NOT EXECUTED 30020218: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 3002021c: e1530001 cmp r3, r1 <== NOT EXECUTED 30020220: 1a000003 bne 30020234 <== NOT EXECUTED 30020224: ea000007 b 30020248 <== NOT EXECUTED 30020228: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 3002022c: e1530001 cmp r3, r1 <== NOT EXECUTED 30020230: 0a000004 beq 30020248 <== 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 ) { 30020234: e5922000 ldr r2, [r2] <== 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 ); 30020238: e1520000 cmp r2, r0 <== NOT EXECUTED 3002023c: 1afffff9 bne 30020228 <== NOT EXECUTED 30020240: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; } } return false; } 30020244: e12fff1e bx lr <== 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 ); 30020248: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3002024c: e12fff1e bx lr <== NOT EXECUTED 30020250: 300590c4 .word 0x300590c4 30008ee0 : void free( void *ptr ) { MSBUMP(free_calls, 1); 30008ee0: e59f2084 ldr r2, [pc, #132] ; 30008f6c 30008ee4: e92d4030 push {r4, r5, lr} 30008ee8: e592300c ldr r3, [r2, #12] if ( !ptr ) 30008eec: e2505000 subs r5, r0, #0 ; 0x0 void free( void *ptr ) { MSBUMP(free_calls, 1); 30008ef0: e2833001 add r3, r3, #1 ; 0x1 30008ef4: e582300c str r3, [r2, #12] if ( !ptr ) 30008ef8: 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()) && 30008efc: e59f306c ldr r3, [pc, #108] ; 30008f70 30008f00: e5932000 ldr r2, [r3] 30008f04: e3520003 cmp r2, #3 ; 0x3 30008f08: 0a000011 beq 30008f54 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30008f0c: e59f3060 ldr r3, [pc, #96] ; 30008f74 30008f10: e5933000 ldr r3, [r3] 30008f14: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 30008f18: 11a00005 movne r0, r5 30008f1c: 11a0e00f movne lr, pc 30008f20: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { 30008f24: e59f404c ldr r4, [pc, #76] ; 30008f78 30008f28: e1a01005 mov r1, r5 30008f2c: e1a00004 mov r0, r4 30008f30: eb000505 bl 3000a34c <_Protected_heap_Free> 30008f34: e3500000 cmp r0, #0 ; 0x0 30008f38: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 30008f3c: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 30008f40: e59f0034 ldr r0, [pc, #52] ; 30008f7c <== NOT EXECUTED 30008f44: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED 30008f48: e1a01005 mov r1, r5 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 30008f4c: 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", 30008f50: eaffe479 b 3000213c <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 30008f54: eb000127 bl 300093f8 30008f58: e3500000 cmp r0, #0 ; 0x0 30008f5c: 1affffea bne 30008f0c !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 30008f60: e1a00005 mov r0, r5 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 30008f64: 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); 30008f68: ea000135 b 30009444 <== NOT EXECUTED 30008f6c: 30015f64 .word 0x30015f64 30008f70: 30016214 .word 0x30016214 30008f74: 30015d68 .word 0x30015d68 30008f78: 30015f0c .word 0x30015f0c 30008f7c: 30014ee4 .word 0x30014ee4 3001f730 : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3001f730: e59f3058 ldr r3, [pc, #88] ; 3001f790 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 3001f734: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3001f738: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 3001f73c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3001f740: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 3001f744: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 3001f748: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f74c: 0a000004 beq 3001f764 <== NOT EXECUTED 3001f750: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f754: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f758: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 3001f75c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f760: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 3001f764: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 3001f768: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f76c: 0a000004 beq 3001f784 <== NOT EXECUTED 3001f770: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f774: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f778: 12840014 addne r0, r4, #20 ; 0x14 <== NOT EXECUTED 3001f77c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f780: 112fff13 bxne r3 <== NOT EXECUTED free(env); 3001f784: e1a00004 mov r0, r4 <== NOT EXECUTED } } 3001f788: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 3001f78c: eaff91ee b 30003f4c <== NOT EXECUTED 3001f790: 300594e0 .word 0x300594e0 30013858 : int fstat( int fd, struct stat *sbuf ) { 30013858: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 3001385c: e2515000 subs r5, r1, #0 ; 0x0 30013860: 0a000027 beq 30013904 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 30013864: e59f30ac ldr r3, [pc, #172] ; 30013918 30013868: e5932000 ldr r2, [r3] 3001386c: e1500002 cmp r0, r2 30013870: 2a000019 bcs 300138dc 30013874: e59f20a0 ldr r2, [pc, #160] ; 3001391c 30013878: e1a03200 lsl r3, r0, #4 3001387c: e0433100 sub r3, r3, r0, lsl #2 30013880: e5921000 ldr r1, [r2] 30013884: e0833000 add r3, r3, r0 30013888: e1a03103 lsl r3, r3, #2 3001388c: e0814003 add r4, r1, r3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 30013890: e594200c ldr r2, [r4, #12] 30013894: e3120c01 tst r2, #256 ; 0x100 30013898: 0a00000f beq 300138dc if ( !iop->handlers ) 3001389c: e5943030 ldr r3, [r4, #48] 300138a0: e3530000 cmp r3, #0 ; 0x0 300138a4: 0a00000c beq 300138dc rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 300138a8: e5933018 ldr r3, [r3, #24] 300138ac: e3530000 cmp r3, #0 ; 0x0 300138b0: 0a00000e beq 300138f0 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 300138b4: e3a01000 mov r1, #0 ; 0x0 300138b8: e3a0204c mov r2, #76 ; 0x4c 300138bc: e1a00005 mov r0, r5 300138c0: ebffe07a bl 3000bab0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 300138c4: e2840010 add r0, r4, #16 ; 0x10 300138c8: e1a01005 mov r1, r5 300138cc: e5943030 ldr r3, [r4, #48] 300138d0: e1a0e00f mov lr, pc 300138d4: e593f018 ldr pc, [r3, #24] } 300138d8: e8bd8030 pop {r4, r5, pc} iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 300138dc: ebffde6a bl 3000b28c <__errno> <== NOT EXECUTED 300138e0: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 300138e4: e5803000 str r3, [r0] <== NOT EXECUTED 300138e8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300138ec: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 300138f0: ebffde65 bl 3000b28c <__errno> <== NOT EXECUTED 300138f4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300138f8: e5803000 str r3, [r0] <== NOT EXECUTED 300138fc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013900: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 30013904: ebffde60 bl 3000b28c <__errno> <== NOT EXECUTED 30013908: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 3001390c: e5803000 str r3, [r0] <== NOT EXECUTED 30013910: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013914: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30013918: 3001520c .word 0x3001520c 3001391c: 30015f00 .word 0x30015f00 3001df80 : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001df80: e59f309c ldr r3, [pc, #156] ; 3001e024 <== NOT EXECUTED #include int fsync( int fd ) { 3001df84: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001df88: e5932000 ldr r2, [r3] <== NOT EXECUTED 3001df8c: e1500002 cmp r0, r2 <== NOT EXECUTED 3001df90: 2a000014 bcs 3001dfe8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3001df94: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 3001df98: e59f2088 ldr r2, [pc, #136] ; 3001e028 <== NOT EXECUTED 3001df9c: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 3001dfa0: e0833000 add r3, r3, r0 <== NOT EXECUTED 3001dfa4: e5921000 ldr r1, [r2] <== NOT EXECUTED 3001dfa8: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3001dfac: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 3001dfb0: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 3001dfb4: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 3001dfb8: 0a00000a beq 3001dfe8 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001dfbc: e3120004 tst r2, #4 ; 0x4 <== NOT EXECUTED 3001dfc0: 0a00000d beq 3001dffc <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) 3001dfc4: e5902030 ldr r2, [r0, #48] <== NOT EXECUTED 3001dfc8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001dfcc: 0a000005 beq 3001dfe8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 3001dfd0: e5922028 ldr r2, [r2, #40] <== NOT EXECUTED 3001dfd4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001dfd8: 0a00000c beq 3001e010 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 3001dfdc: e1a0e00f mov lr, pc <== NOT EXECUTED 3001dfe0: e12fff12 bx r2 <== NOT EXECUTED } 3001dfe4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 3001dfe8: eb003b83 bl 3002cdfc <__errno> <== NOT EXECUTED 3001dfec: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001dff0: e5803000 str r3, [r0] <== NOT EXECUTED 3001dff4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001dff8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3001dffc: eb003b7e bl 3002cdfc <__errno> <== NOT EXECUTED 3001e000: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001e004: e5803000 str r3, [r0] <== NOT EXECUTED 3001e008: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001e00c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001e010: eb003b79 bl 3002cdfc <__errno> <== NOT EXECUTED 3001e014: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001e018: e5803000 str r3, [r0] <== NOT EXECUTED 3001e01c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001e020: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001e024: 30043fa0 .word 0x30043fa0 3001e028: 30059028 .word 0x30059028 30008f80 : int ftruncate( int fd, off_t length ) { 30008f80: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 30008f84: e59f30e8 ldr r3, [pc, #232] ; 30009074 <== NOT EXECUTED int ftruncate( int fd, off_t length ) { 30008f88: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 30008f8c: e5932000 ldr r2, [r3] <== NOT EXECUTED int ftruncate( int fd, off_t length ) { 30008f90: e1a05001 mov r5, r1 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 30008f94: e1500002 cmp r0, r2 <== NOT EXECUTED 30008f98: 2a000021 bcs 30009024 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30008f9c: e59f20d4 ldr r2, [pc, #212] ; 30009078 <== NOT EXECUTED 30008fa0: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 30008fa4: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 30008fa8: e5921000 ldr r1, [r2] <== NOT EXECUTED 30008fac: e0833000 add r3, r3, r0 <== NOT EXECUTED 30008fb0: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 30008fb4: e0814003 add r4, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30008fb8: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 30008fbc: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 30008fc0: 0a000017 beq 30009024 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 30008fc4: e284c010 add ip, r4, #16 ; 0x10 <== NOT EXECUTED 30008fc8: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 30008fcc: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 30008fd0: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 30008fd4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30008fd8: 0a00001b beq 3000904c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 30008fdc: e1a0000d mov r0, sp <== NOT EXECUTED 30008fe0: e1a0e00f mov lr, pc <== NOT EXECUTED 30008fe4: e12fff13 bx r3 <== NOT EXECUTED 30008fe8: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 30008fec: 0a00001b beq 30009060 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30008ff0: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 30008ff4: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 30008ff8: 0a00000e beq 30009038 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 30008ffc: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 30009000: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 30009004: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30009008: 0a00000f beq 3000904c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 3000900c: e1a00004 mov r0, r4 <== NOT EXECUTED 30009010: e1a01005 mov r1, r5 <== NOT EXECUTED 30009014: e1a0e00f mov lr, pc <== NOT EXECUTED 30009018: e12fff13 bx r3 <== NOT EXECUTED } 3000901c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30009020: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 30009024: eb000898 bl 3000b28c <__errno> <== NOT EXECUTED 30009028: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3000902c: e5803000 str r3, [r0] <== NOT EXECUTED 30009030: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009034: eafffff8 b 3000901c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30009038: eb000893 bl 3000b28c <__errno> <== NOT EXECUTED 3000903c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30009040: e5803000 str r3, [r0] <== NOT EXECUTED 30009044: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009048: eafffff3 b 3000901c <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000904c: eb00088e bl 3000b28c <__errno> <== NOT EXECUTED 30009050: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30009054: e5803000 str r3, [r0] <== NOT EXECUTED 30009058: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3000905c: eaffffee b 3000901c <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 30009060: eb000889 bl 3000b28c <__errno> <== NOT EXECUTED 30009064: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 30009068: e5803000 str r3, [r0] <== NOT EXECUTED 3000906c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009070: eaffffe9 b 3000901c <== NOT EXECUTED 30009074: 3001520c .word 0x3001520c 30009078: 30015f00 .word 0x30015f00 3001e128 : char * getcwd ( char *pt, size_t size) { 3001e128: 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) 3001e12c: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED char * getcwd ( char *pt, size_t size) { 3001e130: e24dd078 sub sp, sp, #120 ; 0x78 <== NOT EXECUTED 3001e134: 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) 3001e138: 0a000104 beq 3001e550 <== NOT EXECUTED { ptsize = 0; if (!size) 3001e13c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED { errno = EINVAL; return (char *) NULL; } ept = pt + size; 3001e140: 108ab001 addne fp, sl, r1 <== NOT EXECUTED 3001e144: 13a01000 movne r1, #0 ; 0x0 <== NOT EXECUTED 3001e148: 158d101c strne r1, [sp, #28] <== NOT EXECUTED */ if (pt) { ptsize = 0; if (!size) 3001e14c: 0a0000fa beq 3001e53c <== NOT EXECUTED return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; *bpt = '\0'; 3001e150: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 3001e154: e54b4001 strb r4, [fp, #-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))) 3001e158: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 3001e15c: ebff991a bl 300045cc <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; 3001e160: e24b3001 sub r3, fp, #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))) 3001e164: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; 3001e168: e58d3014 str r3, [sp, #20] <== 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))) 3001e16c: 0a000007 beq 3001e190 <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 3001e170: e3a0502e mov r5, #46 ; 0x2e <== NOT EXECUTED up[1] = '\0'; 3001e174: e5c64001 strb r4, [r6, #1] <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 3001e178: e5c65000 strb r5, [r6] <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 3001e17c: e59f03fc ldr r0, [pc, #1020] ; 3001e580 <== NOT EXECUTED 3001e180: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 3001e184: ebff9d40 bl 3000568c <== NOT EXECUTED 3001e188: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001e18c: 0a00000b beq 3001e1c0 <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); if (ptsize) 3001e190: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 3001e194: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001e198: 1a000005 bne 3001e1b4 <== NOT EXECUTED free (pt); free (up); 3001e19c: e1a00006 mov r0, r6 <== NOT EXECUTED 3001e1a0: ebff9769 bl 30003f4c <== NOT EXECUTED 3001e1a4: e3a0a000 mov sl, #0 ; 0x0 <== NOT EXECUTED return (char *) NULL; } 3001e1a8: e1a0000a mov r0, sl <== NOT EXECUTED 3001e1ac: e28dd078 add sp, sp, #120 ; 0x78 <== NOT EXECUTED 3001e1b0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED err: if(dir) (void) _closedir (dir); if (ptsize) free (pt); 3001e1b4: e1a0000a mov r0, sl <== NOT EXECUTED 3001e1b8: ebff9763 bl 30003f4c <== NOT EXECUTED 3001e1bc: eafffff6 b 3001e19c <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) goto err; root_dev = s.st_dev; 3001e1c0: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 3001e1c4: e891000e ldm r1, {r1, r2, r3} <== NOT EXECUTED 3001e1c8: e58d1008 str r1, [sp, #8] <== NOT EXECUTED 3001e1cc: e58d2004 str r2, [sp, #4] <== NOT EXECUTED root_ino = s.st_ino; 3001e1d0: e58d3018 str r3, [sp, #24] <== NOT EXECUTED errno = 0; /* XXX readdir has no error return. */ 3001e1d4: eb003b08 bl 3002cdfc <__errno> <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 3001e1d8: e2861b01 add r1, r6, #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. */ 3001e1dc: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3001e1e0: e3a03fff mov r3, #1020 ; 0x3fc <== NOT EXECUTED 3001e1e4: e5804000 str r4, [r0] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 3001e1e8: e58d1024 str r1, [sp, #36] <== 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. */ 3001e1ec: e1a08006 mov r8, r6 <== NOT EXECUTED 3001e1f0: e58d2010 str r2, [sp, #16] <== NOT EXECUTED 3001e1f4: e58d3020 str r3, [sp, #32] <== NOT EXECUTED for (first = 1;; first = 0) { /* Stat the current level. */ if (_stat (up, &s)) 3001e1f8: e1a00006 mov r0, r6 <== NOT EXECUTED 3001e1fc: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 3001e200: ebff9d21 bl 3000568c <== NOT EXECUTED 3001e204: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e208: 1affffe0 bne 3001e190 <== NOT EXECUTED goto err; /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; 3001e20c: e59d902c ldr r9, [sp, #44] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 3001e210: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 3001e214: e59d2034 ldr r2, [sp, #52] <== NOT EXECUTED dev = s.st_dev; 3001e218: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 3001e21c: e1510009 cmp r1, r9 <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 3001e220: e58d200c str r2, [sp, #12] <== NOT EXECUTED dev = s.st_dev; 3001e224: e58d3000 str r3, [sp] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 3001e228: 0a0000bd beq 3001e524 <== NOT EXECUTED 3001e22c: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED 3001e230: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED 3001e234: e1520001 cmp r2, r1 <== NOT EXECUTED 3001e238: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED 3001e23c: 02003001 andeq r3, r0, #1 ; 0x1 <== NOT EXECUTED 3001e240: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e244: 0a000009 beq 3001e270 <== NOT EXECUTED { *--bpt = '/'; 3001e248: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 3001e24c: e3a0302f mov r3, #47 ; 0x2f <== NOT EXECUTED 3001e250: e2421001 sub r1, r2, #1 ; 0x1 <== NOT EXECUTED 3001e254: e5423001 strb r3, [r2, #-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); 3001e258: e1a0000a mov r0, sl <== NOT EXECUTED 3001e25c: e061200b rsb r2, r1, fp <== NOT EXECUTED 3001e260: eb00449c bl 3002f4d8 <== NOT EXECUTED free (up); 3001e264: e1a00006 mov r0, r6 <== NOT EXECUTED 3001e268: ebff9737 bl 30003f4c <== NOT EXECUTED 3001e26c: eaffffcd b 3001e1a8 <== 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) 3001e270: e2883b01 add r3, r8, #1024 ; 0x400 <== NOT EXECUTED 3001e274: e59d1024 ldr r1, [sp, #36] <== NOT EXECUTED 3001e278: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 3001e27c: e1510003 cmp r1, r3 <== NOT EXECUTED 3001e280: 9a000053 bls 3001e3d4 <== NOT EXECUTED goto err; } bup = up; eup = up + upsize; } *bup++ = '.'; 3001e284: e1a04008 mov r4, r8 <== NOT EXECUTED 3001e288: e3a0102e mov r1, #46 ; 0x2e <== NOT EXECUTED 3001e28c: e4c41001 strb r1, [r4], #1 <== NOT EXECUTED *bup++ = '.'; *bup = '\0'; 3001e290: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 3001e294: e5c81001 strb r1, [r8, #1] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001e298: e1a00006 mov r0, r6 <== NOT EXECUTED bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; *bup = '\0'; 3001e29c: e5c42001 strb r2, [r4, #1] <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001e2a0: eb0004fe bl 3001f6a0 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 3001e2a4: e2843001 add r3, r4, #1 ; 0x1 <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001e2a8: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 3001e2ac: e58d3028 str r3, [sp, #40] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 3001e2b0: 0affffb6 beq 3001e190 <== NOT EXECUTED 3001e2b4: e5970000 ldr r0, [r7] <== NOT EXECUTED 3001e2b8: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 3001e2bc: ebfffefa bl 3001deac <== NOT EXECUTED 3001e2c0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e2c4: 1a00002c bne 3001e37c <== NOT EXECUTED goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 3001e2c8: e3a0102f mov r1, #47 ; 0x2f <== NOT EXECUTED 3001e2cc: e5c41001 strb r1, [r4, #1] <== NOT EXECUTED * the inode number in the directory is for the entry in the * parent directory, not the inode number of the mounted file. */ save_errno = 0; if (s.st_dev == dev) 3001e2d0: e59d302c ldr r3, [sp, #44] <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 3001e2d4: e59d2028 ldr r2, [sp, #40] <== 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) 3001e2d8: e1530009 cmp r3, r9 <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 3001e2dc: e2828001 add r8, r2, #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) 3001e2e0: 0a000048 beq 3001e408 <== NOT EXECUTED 3001e2e4: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 3001e2e8: e1a00007 mov r0, r7 <== NOT EXECUTED 3001e2ec: eb00059e bl 3001f96c <== NOT EXECUTED 3001e2f0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e2f4: 0a00001c beq 3001e36c <== NOT EXECUTED goto notfound; if (ISDOT (dp)) 3001e2f8: e5d0300c ldrb r3, [r0, #12] <== NOT EXECUTED 3001e2fc: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 3001e300: 1a000004 bne 3001e318 <== NOT EXECUTED 3001e304: e5d0300d ldrb r3, [r0, #13] <== NOT EXECUTED 3001e308: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e30c: 0afffff5 beq 3001e2e8 <== NOT EXECUTED 3001e310: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 3001e314: 0a00002a beq 3001e3c4 <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 3001e318: e280400c add r4, r0, #12 ; 0xc <== NOT EXECUTED 3001e31c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001e320: eb00514b bl 30032854 <== NOT EXECUTED 3001e324: e1a01004 mov r1, r4 <== NOT EXECUTED 3001e328: e2802001 add r2, r0, #1 ; 0x1 <== NOT EXECUTED 3001e32c: e1a00008 mov r0, r8 <== NOT EXECUTED 3001e330: eb004468 bl 3002f4d8 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 3001e334: e1a00006 mov r0, r6 <== NOT EXECUTED 3001e338: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 3001e33c: ebff9cd2 bl 3000568c <== NOT EXECUTED 3001e340: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e344: 0a00000f beq 3001e388 <== NOT EXECUTED { if (!save_errno) 3001e348: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 3001e34c: 0a000019 beq 3001e3b8 <== NOT EXECUTED save_errno = errno; errno = 0; 3001e350: eb003aa9 bl 3002cdfc <__errno> <== NOT EXECUTED 3001e354: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001e358: e5803000 str r3, [r0] <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 3001e35c: e1a00007 mov r0, r7 <== NOT EXECUTED 3001e360: eb000581 bl 3001f96c <== NOT EXECUTED 3001e364: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e368: 1affffe2 bne 3001e2f8 <== 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) 3001e36c: eb003aa2 bl 3002cdfc <__errno> <== NOT EXECUTED 3001e370: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001e374: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e378: 0a000064 beq 3001e510 <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 3001e37c: e1a00007 mov r0, r7 <== NOT EXECUTED 3001e380: eb0030a9 bl 3002a62c <== NOT EXECUTED 3001e384: eaffff81 b 3001e190 <== NOT EXECUTED if (!save_errno) save_errno = errno; errno = 0; continue; } if (s.st_dev == dev && s.st_ino == ino) 3001e388: e59d302c ldr r3, [sp, #44] <== NOT EXECUTED 3001e38c: e1530009 cmp r3, r9 <== NOT EXECUTED 3001e390: 1affffd4 bne 3001e2e8 <== NOT EXECUTED 3001e394: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 3001e398: e59d1000 ldr r1, [sp] <== NOT EXECUTED 3001e39c: e1530001 cmp r3, r1 <== NOT EXECUTED 3001e3a0: 1affffd0 bne 3001e2e8 <== NOT EXECUTED 3001e3a4: e59d3034 ldr r3, [sp, #52] <== NOT EXECUTED 3001e3a8: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED 3001e3ac: e1530002 cmp r3, r2 <== NOT EXECUTED 3001e3b0: 1affffcc bne 3001e2e8 <== NOT EXECUTED 3001e3b4: ea000020 b 3001e43c <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) { if (!save_errno) save_errno = errno; 3001e3b8: eb003a8f bl 3002cdfc <__errno> <== NOT EXECUTED 3001e3bc: e5905000 ldr r5, [r0] <== NOT EXECUTED 3001e3c0: eaffffe2 b 3001e350 <== NOT EXECUTED else for (;;) { if (!(dp = _readdir (dir))) goto notfound; if (ISDOT (dp)) 3001e3c4: e5d0300e ldrb r3, [r0, #14] <== NOT EXECUTED 3001e3c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e3cc: 0affffc5 beq 3001e2e8 <== NOT EXECUTED 3001e3d0: eaffffd0 b 3001e318 <== NOT EXECUTED * possible component name, plus a trailing NULL. */ if (bup + 3 + MAXNAMLEN + 1 >= eup) { if (!(up = (char *) realloc (up, upsize *= 2))) 3001e3d4: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED 3001e3d8: e1a00006 mov r0, r6 <== NOT EXECUTED 3001e3dc: e1a02082 lsl r2, r2, #1 <== NOT EXECUTED 3001e3e0: e1a01002 mov r1, r2 <== NOT EXECUTED 3001e3e4: e58d2020 str r2, [sp, #32] <== NOT EXECUTED 3001e3e8: eb0005d7 bl 3001fb4c <== NOT EXECUTED 3001e3ec: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 3001e3f0: 0affff66 beq 3001e190 <== NOT EXECUTED { goto err; } bup = up; eup = up + upsize; 3001e3f4: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 3001e3f8: e1a08006 mov r8, r6 <== NOT EXECUTED 3001e3fc: e0863003 add r3, r6, r3 <== NOT EXECUTED 3001e400: e58d3024 str r3, [sp, #36] <== NOT EXECUTED 3001e404: eaffff9e b 3001e284 <== 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) 3001e408: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 3001e40c: e59d1000 ldr r1, [sp] <== NOT EXECUTED 3001e410: e1530001 cmp r3, r1 <== NOT EXECUTED 3001e414: 1affffb2 bne 3001e2e4 <== NOT EXECUTED { for (;;) { if (!(dp = _readdir (dir))) 3001e418: e1a00007 mov r0, r7 <== NOT EXECUTED 3001e41c: eb000552 bl 3001f96c <== NOT EXECUTED 3001e420: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e424: 0a000042 beq 3001e534 <== NOT EXECUTED goto notfound; if (dp->d_ino == ino) 3001e428: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001e42c: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED 3001e430: e1530002 cmp r3, r2 <== NOT EXECUTED 3001e434: 1afffff7 bne 3001e418 <== NOT EXECUTED 3001e438: e280400c add r4, r0, #12 ; 0xc <== NOT EXECUTED /* * Check for length of the current name, preceding slash, * leading slash. */ if (bpt - pt <= strlen (dp->d_name) + (first ? 1 : 2)) 3001e43c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001e440: eb005103 bl 30032854 <== NOT EXECUTED 3001e444: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED 3001e448: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 3001e44c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 3001e450: 13a03001 movne r3, #1 ; 0x1 <== NOT EXECUTED 3001e454: 03a03002 moveq r3, #2 ; 0x2 <== NOT EXECUTED 3001e458: e0833000 add r3, r3, r0 <== NOT EXECUTED 3001e45c: e06a5002 rsb r5, sl, r2 <== NOT EXECUTED 3001e460: e1550003 cmp r5, r3 <== NOT EXECUTED 3001e464: 8a000012 bhi 3001e4b4 <== NOT EXECUTED { size_t len, off; if (!ptsize) 3001e468: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED 3001e46c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e470: 0a00003e beq 3001e570 <== NOT EXECUTED errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; if (!(pt = (char *) realloc (pt, ptsize *= 2))) 3001e474: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED 3001e478: e1a0000a mov r0, sl <== NOT EXECUTED 3001e47c: e1a01081 lsl r1, r1, #1 <== NOT EXECUTED 3001e480: e58d101c str r1, [sp, #28] <== NOT EXECUTED 3001e484: eb0005b0 bl 3001fb4c <== NOT EXECUTED 3001e488: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 3001e48c: 0affffba beq 3001e37c <== NOT EXECUTED { errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; 3001e490: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 3001e494: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED { errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; 3001e498: e063200b rsb r2, r3, fp <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 3001e49c: e08ab001 add fp, sl, r1 <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); 3001e4a0: e062300b rsb r3, r2, fp <== NOT EXECUTED 3001e4a4: e08a1005 add r1, sl, r5 <== NOT EXECUTED 3001e4a8: e1a00003 mov r0, r3 <== NOT EXECUTED 3001e4ac: e58d3014 str r3, [sp, #20] <== NOT EXECUTED 3001e4b0: eb004408 bl 3002f4d8 <== NOT EXECUTED bpt = ept - len; } if (!first) 3001e4b4: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED *--bpt = '/'; bpt -= strlen (dp->d_name); 3001e4b8: e1a00004 mov r0, r4 <== NOT EXECUTED bpt = pt + off; ept = pt + ptsize; (void) bcopy (bpt, ept - len, len); bpt = ept - len; } if (!first) 3001e4bc: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED *--bpt = '/'; 3001e4c0: 059d2014 ldreq r2, [sp, #20] <== NOT EXECUTED 3001e4c4: 03a0302f moveq r3, #47 ; 0x2f <== NOT EXECUTED 3001e4c8: 05623001 strbeq r3, [r2, #-1]! <== NOT EXECUTED 3001e4cc: 058d2014 streq r2, [sp, #20] <== NOT EXECUTED bpt -= strlen (dp->d_name); 3001e4d0: eb0050df bl 30032854 <== NOT EXECUTED 3001e4d4: e59d1014 ldr r1, [sp, #20] <== NOT EXECUTED 3001e4d8: e1a02000 mov r2, r0 <== NOT EXECUTED 3001e4dc: e0601001 rsb r1, r0, r1 <== NOT EXECUTED 3001e4e0: e58d1014 str r1, [sp, #20] <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); 3001e4e4: e59d0014 ldr r0, [sp, #20] <== NOT EXECUTED 3001e4e8: e1a01004 mov r1, r4 <== NOT EXECUTED 3001e4ec: eb0043f9 bl 3002f4d8 <== NOT EXECUTED (void) _closedir (dir); 3001e4f0: e1a00007 mov r0, r7 <== NOT EXECUTED 3001e4f4: eb00304c bl 3002a62c <== NOT EXECUTED dir = 0; /* Truncate any file name. */ *bup = '\0'; 3001e4f8: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED 3001e4fc: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001e500: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001e504: e5c23001 strb r3, [r2, #1] <== NOT EXECUTED 3001e508: e58d1010 str r1, [sp, #16] <== NOT EXECUTED 3001e50c: eaffff39 b 3001e1f8 <== NOT EXECUTED * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) errno = save_errno ? save_errno : ENOENT; 3001e510: eb003a39 bl 3002cdfc <__errno> <== NOT EXECUTED 3001e514: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 3001e518: 03a05002 moveq r5, #2 ; 0x2 <== NOT EXECUTED 3001e51c: e5805000 str r5, [r0] <== NOT EXECUTED 3001e520: eaffff95 b 3001e37c <== NOT EXECUTED /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 3001e524: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 3001e528: e1510003 cmp r1, r3 <== NOT EXECUTED 3001e52c: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 3001e530: eaffff3d b 3001e22c <== NOT EXECUTED (void) _closedir (dir); dir = 0; /* Truncate any file name. */ *bup = '\0'; } 3001e534: e1a05000 mov r5, r0 <== NOT EXECUTED 3001e538: eaffff8b b 3001e36c <== NOT EXECUTED if (pt) { ptsize = 0; if (!size) { errno = EINVAL; 3001e53c: eb003a2e bl 3002cdfc <__errno> <== NOT EXECUTED 3001e540: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001e544: e5803000 str r3, [r0] <== NOT EXECUTED 3001e548: e1a0a004 mov sl, r4 <== NOT EXECUTED 3001e54c: eaffff15 b 3001e1a8 <== NOT EXECUTED } ept = pt + size; } else { if (!(pt = (char *) malloc (ptsize = 1024 - 4))) 3001e550: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 3001e554: ebff981c bl 300045cc <== NOT EXECUTED 3001e558: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 3001e55c: 0affff11 beq 3001e1a8 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; 3001e560: e3a02fff mov r2, #1020 ; 0x3fc <== NOT EXECUTED 3001e564: e28abfff add fp, sl, #1020 ; 0x3fc <== NOT EXECUTED 3001e568: e58d201c str r2, [sp, #28] <== NOT EXECUTED 3001e56c: eafffef7 b 3001e150 <== NOT EXECUTED { size_t len, off; if (!ptsize) { errno = ERANGE; 3001e570: eb003a21 bl 3002cdfc <__errno> <== NOT EXECUTED 3001e574: e3a03022 mov r3, #34 ; 0x22 <== NOT EXECUTED 3001e578: e5803000 str r3, [r0] <== NOT EXECUTED 3001e57c: eaffff7e b 3001e37c <== NOT EXECUTED 3001e580: 30041fa0 .word 0x30041fa0 3002aa1c : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 3002aa1c: e59f30b8 ldr r3, [pc, #184] ; 3002aadc <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 3002aa20: e1a0c000 mov ip, r0 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 3002aa24: e5930000 ldr r0, [r3] <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 3002aa28: 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 ); 3002aa2c: e15c0000 cmp ip, r0 <== NOT EXECUTED 3002aa30: 31a0320c lslcc r3, ip, #4 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 3002aa34: e1a05002 mov r5, r2 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 3002aa38: 359f20a0 ldrcc r2, [pc, #160] ; 3002aae0 <== NOT EXECUTED 3002aa3c: 3043310c subcc r3, r3, ip, lsl #2 <== NOT EXECUTED 3002aa40: 3083300c addcc r3, r3, ip <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 3002aa44: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 3002aa48: 35921000 ldrcc r1, [r2] <== NOT EXECUTED 3002aa4c: 31a03103 lslcc r3, r3, #2 <== NOT EXECUTED 3002aa50: 30814003 addcc r4, r1, r3 <== NOT EXECUTED 3002aa54: 23a04000 movcs r4, #0 ; 0x0 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 3002aa58: 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; 3002aa5c: e284c010 add ip, r4, #16 ; 0x10 <== NOT EXECUTED 3002aa60: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3002aa64: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 3002aa68: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 3002aa6c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002aa70: 0a000014 beq 3002aac8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 3002aa74: e1a0000d mov r0, sp <== NOT EXECUTED 3002aa78: e1a0e00f mov lr, pc <== NOT EXECUTED 3002aa7c: e12fff13 bx r3 <== NOT EXECUTED 3002aa80: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3002aa84: 1a00000a bne 3002aab4 <== NOT EXECUTED /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 3002aa88: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 3002aa8c: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 3002aa90: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002aa94: 0a00000b beq 3002aac8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 3002aa98: e1a00004 mov r0, r4 <== NOT EXECUTED 3002aa9c: e1a01006 mov r1, r6 <== NOT EXECUTED 3002aaa0: e1a02005 mov r2, r5 <== NOT EXECUTED 3002aaa4: e1a0e00f mov lr, pc <== NOT EXECUTED 3002aaa8: e12fff13 bx r3 <== NOT EXECUTED } 3002aaac: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3002aab0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 3002aab4: eb0008d0 bl 3002cdfc <__errno> <== NOT EXECUTED 3002aab8: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3002aabc: e5803000 str r3, [r0] <== NOT EXECUTED 3002aac0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3002aac4: eafffff8 b 3002aaac <== NOT EXECUTED * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3002aac8: eb0008cb bl 3002cdfc <__errno> <== NOT EXECUTED 3002aacc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3002aad0: e5803000 str r3, [r0] <== NOT EXECUTED 3002aad4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3002aad8: eafffff3 b 3002aaac <== NOT EXECUTED 3002aadc: 30043fa0 .word 0x30043fa0 3002aae0: 30059028 .word 0x30059028 3001e584 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { 3001e584: e59f3008 ldr r3, [pc, #8] ; 3001e594 <== NOT EXECUTED 3001e588: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Egid; } 3001e58c: e1d203b0 ldrh r0, [r2, #48] <== NOT EXECUTED 3001e590: e12fff1e bx lr <== NOT EXECUTED 3001e594: 30044b08 .word 0x30044b08 3001e598 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { 3001e598: e59f3008 ldr r3, [pc, #8] ; 3001e5a8 <== NOT EXECUTED 3001e59c: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Euid; } 3001e5a0: e1d202be ldrh r0, [r2, #46] <== NOT EXECUTED 3001e5a4: e12fff1e bx lr <== NOT EXECUTED 3001e5a8: 30044b08 .word 0x30044b08 3001e5ac : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 3001e5ac: e59f3008 ldr r3, [pc, #8] ; 3001e5bc <== NOT EXECUTED 3001e5b0: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 3001e5b4: e1d202bc ldrh r0, [r2, #44] <== NOT EXECUTED 3001e5b8: e12fff1e bx lr <== NOT EXECUTED 3001e5bc: 30044b08 .word 0x30044b08 3001ec1c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 3001ec1c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 3001ec20: e59d801c ldr r8, [sp, #28] <== NOT EXECUTED 3001ec24: e1a06000 mov r6, r0 <== NOT EXECUTED 3001ec28: e1a0a001 mov sl, r1 <== NOT EXECUTED 3001ec2c: e1a04002 mov r4, r2 <== NOT EXECUTED 3001ec30: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 3001ec34: ebffffb2 bl 3001eb04 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { 3001ec38: e59f00b0 ldr r0, [pc, #176] ; 3001ecf0 <== NOT EXECUTED 3001ec3c: e59f10b0 ldr r1, [pc, #176] ; 3001ecf4 <== NOT EXECUTED 3001ec40: eb003ab1 bl 3002d70c <== NOT EXECUTED 3001ec44: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001ec48: 1a000006 bne 3001ec68 <== NOT EXECUTED 3001ec4c: ea000022 b 3001ecdc <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 3001ec50: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001ec54: eb004cd7 bl 30031fb8 <== NOT EXECUTED 3001ec58: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 3001ec5c: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED } else { match = (grp->gr_gid == gid); } if (match) { 3001ec60: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ec64: 1a00000f bne 3001eca8 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 3001ec68: e1a01004 mov r1, r4 <== NOT EXECUTED 3001ec6c: e1a02007 mov r2, r7 <== NOT EXECUTED 3001ec70: e1a03008 mov r3, r8 <== NOT EXECUTED 3001ec74: e1a00005 mov r0, r5 <== NOT EXECUTED 3001ec78: ebfffede bl 3001e7f8 <== NOT EXECUTED 3001ec7c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 3001ec80: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 3001ec84: 0a00000d beq 3001ecc0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 3001ec88: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 3001ec8c: 1affffef bne 3001ec50 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 3001ec90: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 3001ec94: e153000a cmp r3, sl <== NOT EXECUTED 3001ec98: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3001ec9c: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 3001eca0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001eca4: 0affffef beq 3001ec68 <== NOT EXECUTED fclose(fp); 3001eca8: e1a00005 mov r0, r5 <== NOT EXECUTED 3001ecac: eb0038a3 bl 3002cf40 <== NOT EXECUTED *result = grp; 3001ecb0: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 3001ecb4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001ecb8: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 3001ecbc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 3001ecc0: eb00384d bl 3002cdfc <__errno> <== NOT EXECUTED 3001ecc4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001ecc8: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 3001eccc: e1a00005 mov r0, r5 <== NOT EXECUTED 3001ecd0: eb00389a bl 3002cf40 <== NOT EXECUTED 3001ecd4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001ecd8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 3001ecdc: eb003846 bl 3002cdfc <__errno> <== NOT EXECUTED 3001ece0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001ece4: e5803000 str r3, [r0] <== NOT EXECUTED 3001ece8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001ecec: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3001ecf0: 30041ebc .word 0x30041ebc 3001ecf4: 30042dc8 .word 0x30042dc8 3001e950 : return p; } struct group *getgrent() { if (group_fp == NULL) 3001e950: e59f3030 ldr r3, [pc, #48] ; 3001e988 <== NOT EXECUTED return NULL; return p; } struct group *getgrent() { 3001e954: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (group_fp == NULL) 3001e958: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001e95c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e960: 0a000006 beq 3001e980 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 3001e964: e59f1020 ldr r1, [pc, #32] ; 3001e98c <== NOT EXECUTED 3001e968: e59f2020 ldr r2, [pc, #32] ; 3001e990 <== NOT EXECUTED 3001e96c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001e970: ebffffa0 bl 3001e7f8 <== NOT EXECUTED 3001e974: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001e978: 159f000c ldrne r0, [pc, #12] ; 3001e98c <== NOT EXECUTED 3001e97c: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 3001e980: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &grent; } 3001e984: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001e988: 30058828 .word 0x30058828 3001e98c: 300588f4 .word 0x300588f4 3001e990: 3005882c .word 0x3005882c 3001ed34 : struct group *getgrgid( gid_t gid ) { 3001ed34: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001ed38: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 3001ed3c: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 3001ed40: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001ed44: e59f1024 ldr r1, [pc, #36] ; 3001ed70 <== NOT EXECUTED 3001ed48: e59f2024 ldr r2, [pc, #36] ; 3001ed74 <== NOT EXECUTED 3001ed4c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001ed50: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 3001ed54: e58dc000 str ip, [sp] <== NOT EXECUTED 3001ed58: ebffffe6 bl 3001ecf8 <== NOT EXECUTED 3001ed5c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ed60: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001ed64: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001ed68: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ed6c: e8bd8000 pop {pc} <== NOT EXECUTED 3001ed70: 300588f4 .word 0x300588f4 3001ed74: 3005882c .word 0x3005882c 3001ecf8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 3001ecf8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001ecfc: e1a0c001 mov ip, r1 <== NOT EXECUTED 3001ed00: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ed04: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001ed08: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 3001ed0c: e1a0200c mov r2, ip <== NOT EXECUTED 3001ed10: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001ed14: e58d3000 str r3, [sp] <== NOT EXECUTED 3001ed18: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 3001ed1c: e1a0300e mov r3, lr <== NOT EXECUTED 3001ed20: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001ed24: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001ed28: ebffffbb bl 3001ec1c <== NOT EXECUTED } 3001ed2c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ed30: e8bd8000 pop {pc} <== NOT EXECUTED 3001eda8 : struct group *getgrnam( const char *name ) { 3001eda8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001edac: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 3001edb0: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001edb4: e59f1020 ldr r1, [pc, #32] ; 3001eddc <== NOT EXECUTED 3001edb8: e59f2020 ldr r2, [pc, #32] ; 3001ede0 <== NOT EXECUTED 3001edbc: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001edc0: e58dc000 str ip, [sp] <== NOT EXECUTED 3001edc4: ebffffeb bl 3001ed78 <== NOT EXECUTED 3001edc8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001edcc: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001edd0: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001edd4: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001edd8: e8bd8000 pop {pc} <== NOT EXECUTED 3001eddc: 300588f4 .word 0x300588f4 3001ede0: 3005882c .word 0x3005882c 3001ed78 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 3001ed78: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001ed7c: e1a0c002 mov ip, r2 <== NOT EXECUTED 3001ed80: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getgr_r(name, 0, grp, buffer, bufsize, result); 3001ed84: e58d3000 str r3, [sp] <== NOT EXECUTED 3001ed88: e1a0300c mov r3, ip <== NOT EXECUTED 3001ed8c: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001ed90: e1a02001 mov r2, r1 <== NOT EXECUTED 3001ed94: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001ed98: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001ed9c: ebffff9e bl 3001ec1c <== NOT EXECUTED } 3001eda0: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001eda4: e8bd8000 pop {pc} <== NOT EXECUTED 30020094 : */ pid_t getpid( void ) { return _Objects_Local_node; } 30020094: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30020098: e12fff1e bx lr <== NOT EXECUTED 3001ee1c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 3001ee1c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 3001ee20: e59d801c ldr r8, [sp, #28] <== NOT EXECUTED 3001ee24: e1a06000 mov r6, r0 <== NOT EXECUTED 3001ee28: e1a0a001 mov sl, r1 <== NOT EXECUTED 3001ee2c: e1a04002 mov r4, r2 <== NOT EXECUTED 3001ee30: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 3001ee34: ebffff32 bl 3001eb04 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { 3001ee38: e59f00b0 ldr r0, [pc, #176] ; 3001eef0 <== NOT EXECUTED 3001ee3c: e59f10b0 ldr r1, [pc, #176] ; 3001eef4 <== NOT EXECUTED 3001ee40: eb003a31 bl 3002d70c <== NOT EXECUTED 3001ee44: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001ee48: 1a000006 bne 3001ee68 <== NOT EXECUTED 3001ee4c: ea000022 b 3001eedc <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 3001ee50: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001ee54: eb004c57 bl 30031fb8 <== NOT EXECUTED 3001ee58: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 3001ee5c: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED } else { match = (pwd->pw_uid == uid); } if (match) { 3001ee60: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ee64: 1a00000f bne 3001eea8 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 3001ee68: e1a01004 mov r1, r4 <== NOT EXECUTED 3001ee6c: e1a02007 mov r2, r7 <== NOT EXECUTED 3001ee70: e1a03008 mov r3, r8 <== NOT EXECUTED 3001ee74: e1a00005 mov r0, r5 <== NOT EXECUTED 3001ee78: ebfffec5 bl 3001e994 <== NOT EXECUTED 3001ee7c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 3001ee80: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 3001ee84: 0a00000d beq 3001eec0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 3001ee88: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 3001ee8c: 1affffef bne 3001ee50 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 3001ee90: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 3001ee94: e153000a cmp r3, sl <== NOT EXECUTED 3001ee98: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3001ee9c: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 3001eea0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001eea4: 0affffef beq 3001ee68 <== NOT EXECUTED fclose(fp); 3001eea8: e1a00005 mov r0, r5 <== NOT EXECUTED 3001eeac: eb003823 bl 3002cf40 <== NOT EXECUTED *result = pwd; 3001eeb0: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 3001eeb4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001eeb8: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 3001eebc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 3001eec0: eb0037cd bl 3002cdfc <__errno> <== NOT EXECUTED 3001eec4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001eec8: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 3001eecc: e1a00005 mov r0, r5 <== NOT EXECUTED 3001eed0: eb00381a bl 3002cf40 <== NOT EXECUTED 3001eed4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001eed8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 3001eedc: eb0037c6 bl 3002cdfc <__errno> <== NOT EXECUTED 3001eee0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001eee4: e5803000 str r3, [r0] <== NOT EXECUTED 3001eee8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3001eeec: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3001eef0: 30041e48 .word 0x30041e48 3001eef4: 30042dc8 .word 0x30042dc8 3001eac0 : return p; } struct passwd *getpwent() { if (passwd_fp == NULL) 3001eac0: e59f3030 ldr r3, [pc, #48] ; 3001eaf8 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent() { 3001eac4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (passwd_fp == NULL) 3001eac8: e5930000 ldr r0, [r3] <== NOT EXECUTED 3001eacc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ead0: 0a000006 beq 3001eaf0 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 3001ead4: e59f1020 ldr r1, [pc, #32] ; 3001eafc <== NOT EXECUTED 3001ead8: e59f2020 ldr r2, [pc, #32] ; 3001eb00 <== NOT EXECUTED 3001eadc: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001eae0: ebffffab bl 3001e994 <== NOT EXECUTED 3001eae4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001eae8: 159f000c ldrne r0, [pc, #12] ; 3001eafc <== NOT EXECUTED 3001eaec: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 3001eaf0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &pwent; } 3001eaf4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3001eaf8: 30058740 .word 0x30058740 3001eafc: 3005880c .word 0x3005880c 3001eb00: 30058744 .word 0x30058744 3001efa8 : struct passwd *getpwnam( const char *name ) { 3001efa8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001efac: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 3001efb0: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001efb4: e59f1020 ldr r1, [pc, #32] ; 3001efdc <== NOT EXECUTED 3001efb8: e59f2020 ldr r2, [pc, #32] ; 3001efe0 <== NOT EXECUTED 3001efbc: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001efc0: e58dc000 str ip, [sp] <== NOT EXECUTED 3001efc4: ebffffeb bl 3001ef78 <== NOT EXECUTED 3001efc8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001efcc: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001efd0: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001efd4: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001efd8: e8bd8000 pop {pc} <== NOT EXECUTED 3001efdc: 3005880c .word 0x3005880c 3001efe0: 30058744 .word 0x30058744 3001ef78 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 3001ef78: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001ef7c: e1a0c002 mov ip, r2 <== NOT EXECUTED 3001ef80: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getpw_r(name, 0, pwd, buffer, bufsize, result); 3001ef84: e58d3000 str r3, [sp] <== NOT EXECUTED 3001ef88: e1a0300c mov r3, ip <== NOT EXECUTED 3001ef8c: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001ef90: e1a02001 mov r2, r1 <== NOT EXECUTED 3001ef94: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001ef98: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001ef9c: ebffff9e bl 3001ee1c <== NOT EXECUTED } 3001efa0: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001efa4: e8bd8000 pop {pc} <== NOT EXECUTED 3001ef34 : struct passwd *getpwuid( uid_t uid ) { 3001ef34: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001ef38: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 3001ef3c: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 3001ef40: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 3001ef44: e59f1024 ldr r1, [pc, #36] ; 3001ef70 <== NOT EXECUTED 3001ef48: e59f2024 ldr r2, [pc, #36] ; 3001ef74 <== NOT EXECUTED 3001ef4c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3001ef50: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 3001ef54: e58dc000 str ip, [sp] <== NOT EXECUTED 3001ef58: ebffffe6 bl 3001eef8 <== NOT EXECUTED 3001ef5c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ef60: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 3001ef64: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3001ef68: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ef6c: e8bd8000 pop {pc} <== NOT EXECUTED 3001ef70: 3005880c .word 0x3005880c 3001ef74: 30058744 .word 0x30058744 3001eef8 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 3001eef8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 3001eefc: e1a0c001 mov ip, r1 <== NOT EXECUTED 3001ef00: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ef04: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001ef08: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 3001ef0c: e1a0200c mov r2, ip <== NOT EXECUTED 3001ef10: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3001ef14: e58d3000 str r3, [sp] <== NOT EXECUTED 3001ef18: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 3001ef1c: e1a0300e mov r3, lr <== NOT EXECUTED 3001ef20: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001ef24: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3001ef28: ebffffbb bl 3001ee1c <== NOT EXECUTED } 3001ef2c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001ef30: e8bd8000 pop {pc} <== NOT EXECUTED 3000907c : int gettimeofday( struct timeval *tp, void * __tz ) { 3000907c: e92d4030 push {r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 30009080: e2505000 subs r5, r0, #0 ; 0x0 int gettimeofday( struct timeval *tp, void * __tz ) { 30009084: e24dd008 sub sp, sp, #8 ; 0x8 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 30009088: 0a00000f beq 300090cc ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 3000908c: e10f4000 mrs r4, CPSR 30009090: e38430c0 orr r3, r4, #192 ; 0xc0 30009094: e129f003 msr CPSR_fc, r3 _TOD_Get( &now ); 30009098: e1a0000d mov r0, sp 3000909c: ebfff14b bl 300055d0 <_TOD_Get> _ISR_Enable(level); 300090a0: e129f004 msr CPSR_fc, r4 time->tv_sec = now.tv_sec; 300090a4: e59d3000 ldr r3, [sp] time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 300090a8: e59f1030 ldr r1, [pc, #48] ; 300090e0 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); time->tv_sec = now.tv_sec; 300090ac: e5853000 str r3, [r5] time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 300090b0: e59d2004 ldr r2, [sp, #4] 300090b4: e3a00000 mov r0, #0 ; 0x0 300090b8: e083c291 umull ip, r3, r1, r2 300090bc: e1a03323 lsr r3, r3, #6 300090c0: e5853004 str r3, [r5, #4] * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 300090c4: e28dd008 add sp, sp, #8 ; 0x8 300090c8: e8bd8030 pop {r4, r5, pc} void * __tz ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 300090cc: eb00086e bl 3000b28c <__errno> <== NOT EXECUTED 300090d0: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 300090d4: e5803000 str r3, [r0] <== NOT EXECUTED 300090d8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300090dc: eafffff8 b 300090c4 <== NOT EXECUTED 300090e0: 10624dd3 .word 0x10624dd3 30004064 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 30004064: e59f3008 ldr r3, [pc, #8] ; 30004074 <== NOT EXECUTED 30004068: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } 3000406c: e1d202ba ldrh r0, [r2, #42] <== NOT EXECUTED 30004070: e12fff1e bx lr <== NOT EXECUTED 30004074: 30044b08 .word 0x30044b08 3002a200 : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } 3002a200: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3002a204: e12fff1e bx lr <== NOT EXECUTED 3002a208 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 3002a208: e5903000 ldr r3, [r0] <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 3002a20c: e92d0030 push {r4, r5} <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 3002a210: 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; 3002a214: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 3002a218: e5812008 str r2, [r1, #8] <== 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; 3002a21c: e581503c str r5, [r1, #60] <== NOT EXECUTED buf->st_blocks = 0; 3002a220: e5815040 str r5, [r1, #64] <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; 3002a224: e5932040 ldr r2, [r3, #64] <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 3002a228: 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; 3002a22c: e5842024 str r2, [r4, #36] <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 3002a230: e1d323b4 ldrh r2, [r3, #52] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 3002a234: 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; 3002a238: e1c421b0 strh r2, [r4, #16] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 3002a23c: 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; 3002a240: e593c044 ldr ip, [r3, #68] <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; 3002a244: e5840018 str r0, [r4, #24] <== NOT EXECUTED 3002a248: e584101c str r1, [r4, #28] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 3002a24c: 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; 3002a250: e1d313bc ldrh r1, [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; 3002a254: e5932030 ldr r2, [r3, #48] <== 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; 3002a258: e584c02c str ip, [r4, #44] <== 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; 3002a25c: e1c411b2 strh r1, [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; 3002a260: e593c048 ldr ip, [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; 3002a264: 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; 3002a268: 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; 3002a26c: e584c034 str ip, [r4, #52] <== NOT EXECUTED buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 3002a270: e1c421b4 strh r2, [r4, #20] <== NOT EXECUTED buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; buf->st_size = 0; 3002a274: e5845020 str r5, [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 ; 3002a278: e5931050 ldr r1, [r3, #80] <== NOT EXECUTED 3002a27c: e2833054 add r3, r3, #84 ; 0x54 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ) ; 3002a280: e1510003 cmp r1, r3 <== NOT EXECUTED 3002a284: 0a000005 beq 3002a2a0 <== NOT EXECUTED 3002a288: e1a02005 mov r2, r5 <== NOT EXECUTED the_node = the_node->next ) { 3002a28c: e5911000 ldr r1, [r1] <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); 3002a290: e2822f43 add r2, r2, #268 ; 0x10c <== 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 ) ; 3002a294: e1510003 cmp r1, r3 <== NOT EXECUTED the_node = the_node->next ) { buf->st_size = buf->st_size + sizeof( struct dirent ); 3002a298: e5842020 str r2, [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 ) ; 3002a29c: 1afffffa bne 3002a28c <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } 3002a2a0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3002a2a4: e8bd0030 pop {r4, r5} <== NOT EXECUTED 3002a2a8: e12fff1e bx lr <== NOT EXECUTED 3002a2ac : rtems_libio_t *iop, off_t offset, int whence ) { switch( whence ) { 3002a2ac: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED off_t imfs_dir_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 3002a2b0: e92d4010 push {r4, lr} <== NOT EXECUTED switch( whence ) { 3002a2b4: 9a000005 bls 3002a2d0 <== 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 ); 3002a2b8: eb000acf bl 3002cdfc <__errno> <== NOT EXECUTED 3002a2bc: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3002a2c0: e3e0c000 mvn ip, #0 ; 0x0 <== NOT EXECUTED 3002a2c4: e5803000 str r3, [r0] <== NOT EXECUTED break; } return 0; } 3002a2c8: e1a0000c mov r0, ip <== NOT EXECUTED 3002a2cc: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { switch( whence ) { case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) * 3002a2d0: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED 3002a2d4: e59f3028 ldr r3, [pc, #40] ; 3002a304 <== NOT EXECUTED 3002a2d8: e3a0c000 mov ip, #0 ; 0x0 <== NOT EXECUTED 3002a2dc: e0824193 umull r4, r2, r3, r1 <== NOT EXECUTED 3002a2e0: e1a021a2 lsr r2, r2, #3 <== NOT EXECUTED 3002a2e4: e1a03102 lsl r3, r2, #2 <== NOT EXECUTED 3002a2e8: e1a01302 lsl r1, r2, #6 <== NOT EXECUTED 3002a2ec: e0833001 add r3, r3, r1 <== NOT EXECUTED 3002a2f0: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 3002a2f4: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3002a2f8: e5803008 str r3, [r0, #8] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } 3002a2fc: e1a0000c mov r0, ip <== NOT EXECUTED 3002a300: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3002a304: 07a44c6b .word 0x07a44c6b 3002a1e0 : IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 3002a1e0: e590302c ldr r3, [r0, #44] <== NOT EXECUTED 3002a1e4: e593204c ldr r2, [r3, #76] <== NOT EXECUTED 3002a1e8: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 3002a1ec: 03a03000 moveq r3, #0 ; 0x0 <== NOT EXECUTED 3002a1f0: 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 ) 3002a1f4: 13e00000 mvnne r0, #0 ; 0x0 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 3002a1f8: 01a00003 moveq r0, r3 <== NOT EXECUTED return 0; } 3002a1fc: e12fff1e bx lr <== NOT EXECUTED 3002a3f8 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3002a3f8: 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; 3002a3fc: e590302c ldr r3, [r0, #44] <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3002a400: e24dde11 sub sp, sp, #272 ; 0x110 <== NOT EXECUTED 3002a404: 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)); 3002a408: e5936050 ldr r6, [r3, #80] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 3002a40c: 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 ) ) 3002a410: e156000b cmp r6, fp <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3002a414: e1a08000 mov r8, r0 <== NOT EXECUTED 3002a418: e1a01002 mov r1, 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 ) ) 3002a41c: 0a000032 beq 3002a4ec <== 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); 3002a420: e59f30cc ldr r3, [pc, #204] ; 3002a4f4 <== NOT EXECUTED /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 3002a424: e5909008 ldr r9, [r0, #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); 3002a428: e0820193 umull r0, r2, r3, r1 <== NOT EXECUTED 3002a42c: e1a021a2 lsr r2, r2, #3 <== NOT EXECUTED 3002a430: e1a03102 lsl r3, r2, #2 <== NOT EXECUTED 3002a434: e1a01302 lsl r1, r2, #6 <== NOT EXECUTED 3002a438: e0833001 add r3, r3, r1 <== NOT EXECUTED 3002a43c: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 3002a440: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3002a444: e083a009 add sl, r3, r9 <== NOT EXECUTED /* The directory was not empty so try to move to the desired entry in chain*/ for ( current_entry = 0; current_entry < last_entry; 3002a448: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED 3002a44c: c3a07000 movgt r7, #0 ; 0x0 <== NOT EXECUTED 3002a450: c1a05007 movgt r5, r7 <== NOT EXECUTED 3002a454: ca000006 bgt 3002a474 <== NOT EXECUTED 3002a458: ea000023 b 3002a4ec <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3002a45c: 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; 3002a460: e15a0005 cmp sl, r5 <== NOT EXECUTED ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 3002a464: e5966000 ldr r6, [r6] <== 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; 3002a468: da00001c ble 3002a4e0 <== NOT EXECUTED current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 3002a46c: e156000b cmp r6, fp <== NOT EXECUTED 3002a470: 0a00001a beq 3002a4e0 <== NOT EXECUTED /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 3002a474: e1590005 cmp r9, r5 <== NOT EXECUTED 3002a478: cafffff7 bgt 3002a45c <== NOT EXECUTED /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 3002a47c: e58d5008 str r5, [sp, #8] <== NOT EXECUTED tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 3002a480: e5963038 ldr r3, [r6, #56] <== NOT EXECUTED tmp_dirent.d_namlen = strlen( the_jnode->name ); 3002a484: e286400c add r4, r6, #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; 3002a488: e58d3004 str r3, [sp, #4] <== 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 ); 3002a48c: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 3002a490: e1cd30bc strh r3, [sp, #12] <== 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 ); 3002a494: e1a00004 mov r0, r4 <== NOT EXECUTED 3002a498: eb0020ed bl 30032854 <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 3002a49c: 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 ); 3002a4a0: e1cd00be strh r0, [sp, #14] <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 3002a4a4: e28d0010 add r0, sp, #16 ; 0x10 <== NOT EXECUTED 3002a4a8: eb001efc bl 300320a0 <== NOT EXECUTED memcpy( 3002a4ac: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3002a4b0: e28d1004 add r1, sp, #4 ; 0x4 <== NOT EXECUTED 3002a4b4: e0830007 add r0, r3, r7 <== NOT EXECUTED 3002a4b8: e3a02f43 mov r2, #268 ; 0x10c <== NOT EXECUTED 3002a4bc: eb0013c6 bl 3002f3dc <== NOT EXECUTED buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 3002a4c0: e5983008 ldr r3, [r8, #8] <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3002a4c4: e2855f43 add r5, r5, #268 ; 0x10c <== NOT EXECUTED memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 3002a4c8: e2833f43 add r3, r3, #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; 3002a4cc: e15a0005 cmp sl, r5 <== NOT EXECUTED buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); 3002a4d0: e2877f43 add r7, r7, #268 ; 0x10c <== NOT EXECUTED memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 3002a4d4: e5883008 str r3, [r8, #8] <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 3002a4d8: e5966000 ldr r6, [r6] <== 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; 3002a4dc: caffffe2 bgt 3002a46c <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 3002a4e0: e1a00007 mov r0, r7 <== NOT EXECUTED 3002a4e4: e28dde11 add sp, sp, #272 ; 0x110 <== NOT EXECUTED 3002a4e8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== 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; 3002a4ec: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED 3002a4f0: eafffffa b 3002a4e0 <== NOT EXECUTED 3002a4f4: 07a44c6b .word 0x07a44c6b 3002a308 : */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 3002a308: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 3002a30c: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 3002a310: 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 ) ) 3002a314: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 3002a318: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 3002a31c: e1520003 cmp r2, r3 <== NOT EXECUTED */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 3002a320: 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 ) ) 3002a324: 1a000028 bne 3002a3cc <== NOT EXECUTED /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 3002a328: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 3002a32c: e5932018 ldr r2, [r3, #24] <== NOT EXECUTED 3002a330: e1540002 cmp r4, r2 <== NOT EXECUTED 3002a334: 0a000029 beq 3002a3e0 <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 3002a338: e594505c ldr r5, [r4, #92] <== NOT EXECUTED 3002a33c: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 3002a340: 1a000026 bne 3002a3e0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 3002a344: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3002a348: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002a34c: 0a000002 beq 3002a35c <== NOT EXECUTED 3002a350: e1a00004 mov r0, r4 <== NOT EXECUTED 3002a354: ebffdc01 bl 30021360 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 3002a358: e5845008 str r5, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 3002a35c: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 3002a360: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 3002a364: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3002a368: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 3002a36c: e1a0000d mov r0, sp <== NOT EXECUTED 3002a370: ebff671d bl 30003fec <== NOT EXECUTED 3002a374: 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) ) { 3002a378: 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 ); 3002a37c: 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) ) { 3002a380: ebff6787 bl 300041a4 <== NOT EXECUTED 3002a384: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002a388: 1a00000c bne 3002a3c0 <== NOT EXECUTED 3002a38c: e1d403b4 ldrh r0, [r4, #52] <== NOT EXECUTED 3002a390: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3002a394: 1a000009 bne 3002a3c0 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 3002a398: e59f2054 ldr r2, [pc, #84] ; 3002a3f4 <== NOT EXECUTED 3002a39c: e5963000 ldr r3, [r6] <== NOT EXECUTED 3002a3a0: e5922000 ldr r2, [r2] <== NOT EXECUTED 3002a3a4: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED 3002a3a8: e1510003 cmp r1, r3 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; 3002a3ac: 05820004 streq r0, [r2, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 3002a3b0: e1a00004 mov r0, r4 <== NOT EXECUTED 3002a3b4: ebff66e4 bl 30003f4c <== NOT EXECUTED 3002a3b8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3002a3bc: ea000000 b 3002a3c4 <== NOT EXECUTED 3002a3c0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 3002a3c4: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3002a3c8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) rtems_set_errno_and_return_minus_one( ENOTEMPTY ); 3002a3cc: eb000a8a bl 3002cdfc <__errno> <== NOT EXECUTED 3002a3d0: e3a0305a mov r3, #90 ; 0x5a <== NOT EXECUTED 3002a3d4: e5803000 str r3, [r0] <== NOT EXECUTED 3002a3d8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3002a3dc: eafffff8 b 3002a3c4 <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 3002a3e0: eb000a85 bl 3002cdfc <__errno> <== NOT EXECUTED 3002a3e4: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 3002a3e8: e5803000 str r3, [r0] <== NOT EXECUTED 3002a3ec: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3002a3f0: eafffff3 b 3002a3c4 <== NOT EXECUTED 3002a3f4: 30044b08 .word 0x30044b08 3001eb04 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 3001eb04: e92d4030 push {r4, r5, lr} <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 3001eb08: e59f20b0 ldr r2, [pc, #176] ; 3001ebc0 <== NOT EXECUTED 3001eb0c: e5d23000 ldrb r3, [r2] <== NOT EXECUTED 3001eb10: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001eb14: 18bd8030 popne {r4, r5, pc} <== NOT EXECUTED return; etc_passwd_initted = 1; 3001eb18: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED mkdir("/etc", 0777); 3001eb1c: e59f10a0 ldr r1, [pc, #160] ; 3001ebc4 <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 3001eb20: e5c24000 strb r4, [r2] <== NOT EXECUTED mkdir("/etc", 0777); 3001eb24: e59f009c ldr r0, [pc, #156] ; 3001ebc8 <== NOT EXECUTED 3001eb28: ebff9726 bl 300047c8 <== NOT EXECUTED /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 3001eb2c: e59f0098 ldr r0, [pc, #152] ; 3001ebcc <== NOT EXECUTED 3001eb30: e59f1098 ldr r1, [pc, #152] ; 3001ebd0 <== NOT EXECUTED 3001eb34: eb003af4 bl 3002d70c <== NOT EXECUTED 3001eb38: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001eb3c: 0a000007 beq 3001eb60 <== NOT EXECUTED } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 3001eb40: eb0038fe bl 3002cf40 <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 3001eb44: e59f0088 ldr r0, [pc, #136] ; 3001ebd4 <== NOT EXECUTED 3001eb48: e59f1080 ldr r1, [pc, #128] ; 3001ebd0 <== NOT EXECUTED 3001eb4c: eb003aee bl 3002d70c <== NOT EXECUTED 3001eb50: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001eb54: 0a00000d beq 3001eb90 <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 3001eb58: e8bd4030 pop {r4, r5, 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); 3001eb5c: ea0038f7 b 3002cf40 <== NOT EXECUTED * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 3001eb60: e59f0064 ldr r0, [pc, #100] ; 3001ebcc <== NOT EXECUTED 3001eb64: e59f106c ldr r1, [pc, #108] ; 3001ebd8 <== NOT EXECUTED 3001eb68: eb003ae7 bl 3002d70c <== NOT EXECUTED 3001eb6c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001eb70: 0afffff3 beq 3001eb44 <== NOT EXECUTED fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 3001eb74: e1a01004 mov r1, r4 <== NOT EXECUTED 3001eb78: e59f005c ldr r0, [pc, #92] ; 3001ebdc <== NOT EXECUTED 3001eb7c: e3a02066 mov r2, #102 ; 0x66 <== NOT EXECUTED 3001eb80: e1a03005 mov r3, r5 <== NOT EXECUTED 3001eb84: eb003de4 bl 3002e31c <== NOT EXECUTED "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 3001eb88: e1a00005 mov r0, r5 <== NOT EXECUTED 3001eb8c: eaffffeb b 3001eb40 <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 3001eb90: e59f003c ldr r0, [pc, #60] ; 3001ebd4 <== NOT EXECUTED 3001eb94: e59f103c ldr r1, [pc, #60] ; 3001ebd8 <== NOT EXECUTED 3001eb98: eb003adb bl 3002d70c <== NOT EXECUTED 3001eb9c: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001eba0: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" 3001eba4: e59f0034 ldr r0, [pc, #52] ; 3001ebe0 <== NOT EXECUTED 3001eba8: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3001ebac: e3a0202a mov r2, #42 ; 0x2a <== NOT EXECUTED 3001ebb0: e1a03004 mov r3, r4 <== NOT EXECUTED 3001ebb4: eb003dd8 bl 3002e31c <== NOT EXECUTED "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 3001ebb8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ebbc: eaffffe5 b 3001eb58 <== NOT EXECUTED 3001ebc0: 3005873c .word 0x3005873c 3001ebc4: 000001ff .word 0x000001ff 3001ebc8: 30041e40 .word 0x30041e40 3001ebcc: 30041e48 .word 0x30041e48 3001ebd0: 30042dc8 .word 0x30042dc8 3001ebd4: 30041ebc .word 0x30041ebc 3001ebd8: 3004008c .word 0x3004008c 3001ebdc: 30041e54 .word 0x30041e54 3001ebe0: 30041ec8 .word 0x30041ec8 30014a70 : int ioctl( int fd, ioctl_command_t command, ... ) { 30014a70: 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 ); 30014a74: e59f3090 ldr r3, [pc, #144] ; 30014b0c <== NOT EXECUTED int ioctl( int fd, ioctl_command_t command, ... ) { 30014a78: 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 ); 30014a7c: e5932000 ldr r2, [r3] <== NOT EXECUTED 30014a80: e1500002 cmp r0, r2 <== NOT EXECUTED 30014a84: 2a000016 bcs 30014ae4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30014a88: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 30014a8c: e59f207c ldr r2, [pc, #124] ; 30014b10 <== NOT EXECUTED 30014a90: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 30014a94: e0833000 add r3, r3, r0 <== NOT EXECUTED 30014a98: e5921000 ldr r1, [r2] <== NOT EXECUTED 30014a9c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 30014aa0: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30014aa4: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 30014aa8: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 30014aac: 0a00000c beq 30014ae4 <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 30014ab0: e590c030 ldr ip, [r0, #48] <== NOT EXECUTED iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 30014ab4: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 30014ab8: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 30014abc: 0a000008 beq 30014ae4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 30014ac0: e59c3010 ldr r3, [ip, #16] <== NOT EXECUTED 30014ac4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30014ac8: 0a00000a beq 30014af8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 30014acc: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 30014ad0: e1a0e00f mov lr, pc <== NOT EXECUTED 30014ad4: e12fff13 bx r3 <== NOT EXECUTED return rc; } 30014ad8: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 30014adc: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 30014ae0: e12fff1e bx lr <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 30014ae4: eb00021b bl 30015358 <__errno> <== NOT EXECUTED 30014ae8: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30014aec: e5803000 str r3, [r0] <== NOT EXECUTED 30014af0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30014af4: eafffff7 b 30014ad8 <== NOT EXECUTED if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30014af8: eb000216 bl 30015358 <__errno> <== NOT EXECUTED 30014afc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30014b00: e5803000 str r3, [r0] <== NOT EXECUTED 30014b04: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30014b08: eafffff2 b 30014ad8 <== NOT EXECUTED 30014b0c: 30023e3c .word 0x30023e3c 30014b10: 30025c38 .word 0x30025c38 30002c48 : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) 30002c48: e591c030 ldr ip, [r1, #48] <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002c4c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 30002c50: e31c0020 tst ip, #32 ; 0x20 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002c54: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; 30002c58: 1200407f andne r4, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 30002c5c: e31c0c02 tst ip, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002c60: e1a05001 mov r5, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) 30002c64: 0a000006 beq 30002c84 <== NOT EXECUTED c = tolower (c); 30002c68: e59f3190 ldr r3, [pc, #400] ; 30002e00 <== NOT EXECUTED 30002c6c: e1a00004 mov r0, r4 <== NOT EXECUTED 30002c70: e5932000 ldr r2, [r3] <== NOT EXECUTED 30002c74: e7d21004 ldrb r1, [r2, r4] <== NOT EXECUTED 30002c78: e3110001 tst r1, #1 ; 0x1 <== NOT EXECUTED 30002c7c: 12840020 addne r0, r4, #32 ; 0x20 <== NOT EXECUTED 30002c80: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { 30002c84: e354000d cmp r4, #13 ; 0xd <== NOT EXECUTED 30002c88: 0a000034 beq 30002d60 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 30002c8c: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 30002c90: 0a000010 beq 30002cd8 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 30002c94: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30002c98: 1a000011 bne 30002ce4 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 30002c9c: e59f2160 ldr r2, [pc, #352] ; 30002e04 <== NOT EXECUTED 30002ca0: e5951020 ldr r1, [r5, #32] <== NOT EXECUTED 30002ca4: e5923000 ldr r3, [r2] <== NOT EXECUTED 30002ca8: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002cac: e1510003 cmp r1, r3 <== NOT EXECUTED 30002cb0: aa00002c bge 30002d68 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 30002cb4: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 30002cb8: e3130008 tst r3, #8 ; 0x8 <== NOT EXECUTED 30002cbc: 1a00002f bne 30002d80 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 30002cc0: e595301c ldr r3, [r5, #28] <== NOT EXECUTED 30002cc4: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED 30002cc8: e7c34001 strb r4, [r3, r1] <== NOT EXECUTED 30002ccc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30002cd0: e5852020 str r2, [r5, #32] <== NOT EXECUTED 30002cd4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002cd8: e31c0040 tst ip, #64 ; 0x40 <== NOT EXECUTED 30002cdc: 03a0400a moveq r4, #10 ; 0xa <== NOT EXECUTED 30002ce0: 13a0400d movne r4, #13 ; 0xd <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 30002ce4: e595203c ldr r2, [r5, #60] <== NOT EXECUTED 30002ce8: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 30002cec: 0affffea beq 30002c9c <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 30002cf0: e5d53043 ldrb r3, [r5, #67] <== NOT EXECUTED 30002cf4: e1530004 cmp r3, r4 <== NOT EXECUTED 30002cf8: 0a000036 beq 30002dd8 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 30002cfc: e5d53044 ldrb r3, [r5, #68] <== NOT EXECUTED 30002d00: e1530004 cmp r3, r4 <== NOT EXECUTED 30002d04: 0a000038 beq 30002dec <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 30002d08: e5d53045 ldrb r3, [r5, #69] <== NOT EXECUTED 30002d0c: e1530004 cmp r3, r4 <== NOT EXECUTED 30002d10: 0a00002e beq 30002dd0 <== NOT EXECUTED return 1; } else if (c == '\n') { 30002d14: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 30002d18: 0a000022 beq 30002da8 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); tty->cbuf[tty->ccount++] = c; return 1; } else if ((c == tty->termios.c_cc[VEOL]) 30002d1c: e5d5304c ldrb r3, [r5, #76] <== NOT EXECUTED 30002d20: e1530004 cmp r3, r4 <== NOT EXECUTED 30002d24: 0a000002 beq 30002d34 <== NOT EXECUTED 30002d28: e5d53051 ldrb r3, [r5, #81] <== NOT EXECUTED 30002d2c: e1530004 cmp r3, r4 <== NOT EXECUTED 30002d30: 1affffd9 bne 30002c9c <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) 30002d34: e3120008 tst r2, #8 ; 0x8 <== NOT EXECUTED echo (c, tty); 30002d38: 11a00004 movne r0, r4 <== NOT EXECUTED 30002d3c: 11a01005 movne r1, r5 <== NOT EXECUTED 30002d40: 1bffff26 blne 300029e0 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002d44: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30002d48: e595201c ldr r2, [r5, #28] <== NOT EXECUTED 30002d4c: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 30002d50: e7c24003 strb r4, [r2, r3] <== NOT EXECUTED 30002d54: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30002d58: e5851020 str r1, [r5, #32] <== NOT EXECUTED 30002d5c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) 30002d60: e31c0080 tst ip, #128 ; 0x80 <== NOT EXECUTED 30002d64: 0a000001 beq 30002d70 <== 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; 30002d68: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 30002d6c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) 30002d70: e31c0c01 tst ip, #256 ; 0x100 <== NOT EXECUTED 30002d74: 03a0400d moveq r4, #13 ; 0xd <== NOT EXECUTED 30002d78: 13a0400a movne r4, #10 ; 0xa <== NOT EXECUTED 30002d7c: eaffffd8 b 30002ce4 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 30002d80: e1a00004 mov r0, r4 <== NOT EXECUTED 30002d84: e1a01005 mov r1, r5 <== NOT EXECUTED 30002d88: ebffff14 bl 300029e0 <== NOT EXECUTED 30002d8c: e5951020 ldr r1, [r5, #32] <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002d90: e595301c ldr r3, [r5, #28] <== NOT EXECUTED 30002d94: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED 30002d98: e7c34001 strb r4, [r3, r1] <== NOT EXECUTED 30002d9c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30002da0: e5852020 str r2, [r5, #32] <== NOT EXECUTED 30002da4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 30002da8: e3120048 tst r2, #72 ; 0x48 <== NOT EXECUTED echo (c, tty); 30002dac: 11a00004 movne r0, r4 <== NOT EXECUTED 30002db0: 11a01005 movne r1, r5 <== NOT EXECUTED 30002db4: 1bffff09 blne 300029e0 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002db8: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED 30002dbc: e595101c ldr r1, [r5, #28] <== NOT EXECUTED 30002dc0: e2820001 add r0, r2, #1 ; 0x1 <== NOT EXECUTED 30002dc4: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED 30002dc8: e7c13002 strb r3, [r1, r2] <== NOT EXECUTED 30002dcc: e5850020 str r0, [r5, #32] <== NOT EXECUTED 30002dd0: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30002dd4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); 30002dd8: e1a00005 mov r0, r5 <== NOT EXECUTED 30002ddc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30002de0: ebffff20 bl 30002a68 <== NOT EXECUTED 30002de4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30002de8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 30002dec: e1a00005 mov r0, r5 <== NOT EXECUTED 30002df0: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 30002df4: ebffff1b bl 30002a68 <== NOT EXECUTED 30002df8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30002dfc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002e00: 30015860 .word 0x30015860 30002e04: 300157fc .word 0x300157fc 300201e8 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 300201e8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300201ec: e12fff1e bx lr <== NOT EXECUTED 3001f0c0 : int link( const char *existing, const char *new ) { 3001f0c0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 3001f0c4: e24dd024 sub sp, sp, #36 ; 0x24 <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 3001f0c8: e28d6010 add r6, sp, #16 ; 0x10 <== NOT EXECUTED int link( const char *existing, const char *new ) { 3001f0cc: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 3001f0d0: e1a02006 mov r2, r6 <== NOT EXECUTED 3001f0d4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001f0d8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3001f0dc: ebff9345 bl 30003df8 <== NOT EXECUTED if ( result != 0 ) 3001f0e0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001f0e4: 1a00004d bne 3001f220 <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 3001f0e8: e5d53000 ldrb r3, [r5] <== NOT EXECUTED 3001f0ec: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 3001f0f0: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 3001f0f4: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 3001f0f8: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 3001f0fc: 1a000032 bne 3001f1cc <== NOT EXECUTED 3001f100: e59f31fc ldr r3, [pc, #508] ; 3001f304 <== NOT EXECUTED 3001f104: e1a0400d mov r4, sp <== NOT EXECUTED 3001f108: e593c000 ldr ip, [r3] <== NOT EXECUTED 3001f10c: e3a0e001 mov lr, #1 ; 0x1 <== NOT EXECUTED 3001f110: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 3001f114: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001f118: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 3001f11c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001f120: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 3001f124: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f128: 0a000031 beq 3001f1f4 <== NOT EXECUTED 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 ); 3001f12c: e085000e add r0, r5, lr <== NOT EXECUTED 3001f130: e1a0100d mov r1, sp <== NOT EXECUTED 3001f134: e28d2020 add r2, sp, #32 ; 0x20 <== NOT EXECUTED 3001f138: e1a0e00f mov lr, pc <== NOT EXECUTED 3001f13c: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 3001f140: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3001f144: 1a00004c bne 3001f27c <== 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 ) { 3001f148: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 3001f14c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3001f150: e1530002 cmp r3, r2 <== NOT EXECUTED 3001f154: 1a000033 bne 3001f228 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 3001f158: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001f15c: e5923008 ldr r3, [r2, #8] <== NOT EXECUTED 3001f160: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f164: 0a000050 beq 3001f2ac <== 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 ); 3001f168: e1a00006 mov r0, r6 <== NOT EXECUTED 3001f16c: e1a0100d mov r1, sp <== NOT EXECUTED 3001f170: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED 3001f174: e1a0e00f mov lr, pc <== NOT EXECUTED 3001f178: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001f17c: 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 ); 3001f180: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 3001f184: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f188: 0a000004 beq 3001f1a0 <== NOT EXECUTED 3001f18c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f190: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f194: 11a00006 movne r0, r6 <== NOT EXECUTED 3001f198: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f19c: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 3001f1a0: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001f1a4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f1a8: 0a000004 beq 3001f1c0 <== NOT EXECUTED 3001f1ac: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f1b0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f1b4: 11a0000d movne r0, sp <== NOT EXECUTED 3001f1b8: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f1bc: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001f1c0: e1a00005 mov r0, r5 <== NOT EXECUTED 3001f1c4: e28dd024 add sp, sp, #36 ; 0x24 <== NOT EXECUTED 3001f1c8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 3001f1cc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f1d0: 0affffca beq 3001f100 <== NOT EXECUTED 3001f1d4: e59f3128 ldr r3, [pc, #296] ; 3001f304 <== NOT EXECUTED 3001f1d8: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001f1dc: e593c000 ldr ip, [r3] <== NOT EXECUTED 3001f1e0: e1a0400d mov r4, sp <== NOT EXECUTED 3001f1e4: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3001f1e8: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001f1ec: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001f1f0: eaffffc9 b 3001f11c <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 3001f1f4: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001f1f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f1fc: 0a000004 beq 3001f214 <== NOT EXECUTED 3001f200: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f204: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f208: 11a00006 movne r0, r6 <== NOT EXECUTED 3001f20c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f210: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001f214: eb0036f8 bl 3002cdfc <__errno> <== NOT EXECUTED 3001f218: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001f21c: e5803000 str r3, [r0] <== NOT EXECUTED 3001f220: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3001f224: eaffffe5 b 3001f1c0 <== 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 ) { rtems_filesystem_freenode( &existing_loc ); 3001f228: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001f22c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f230: 0a000004 beq 3001f248 <== NOT EXECUTED 3001f234: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f238: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f23c: 11a00006 movne r0, r6 <== NOT EXECUTED 3001f240: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f244: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 3001f248: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001f24c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f250: 0a000004 beq 3001f268 <== NOT EXECUTED 3001f254: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f258: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f25c: 11a0000d movne r0, sp <== NOT EXECUTED 3001f260: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f264: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 3001f268: eb0036e3 bl 3002cdfc <__errno> <== NOT EXECUTED 3001f26c: e3a03012 mov r3, #18 ; 0x12 <== NOT EXECUTED 3001f270: e5803000 str r3, [r0] <== NOT EXECUTED 3001f274: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3001f278: eaffffd0 b 3001f1c0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); 3001f27c: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001f280: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f284: 0a000004 beq 3001f29c <== NOT EXECUTED 3001f288: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f28c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f290: 11a00006 movne r0, r6 <== NOT EXECUTED 3001f294: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f298: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 3001f29c: eb0036d6 bl 3002cdfc <__errno> <== NOT EXECUTED 3001f2a0: e5805000 str r5, [r0] <== NOT EXECUTED 3001f2a4: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3001f2a8: eaffffc4 b 3001f1c0 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 3001f2ac: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 3001f2b0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f2b4: 0a000006 beq 3001f2d4 <== NOT EXECUTED 3001f2b8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f2bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f2c0: 0a000003 beq 3001f2d4 <== NOT EXECUTED 3001f2c4: e1a00006 mov r0, r6 <== NOT EXECUTED 3001f2c8: e1a0e00f mov lr, pc <== NOT EXECUTED 3001f2cc: e12fff13 bx r3 <== NOT EXECUTED 3001f2d0: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 3001f2d4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001f2d8: 0a000004 beq 3001f2f0 <== NOT EXECUTED 3001f2dc: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001f2e0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f2e4: 11a0000d movne r0, sp <== NOT EXECUTED 3001f2e8: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f2ec: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001f2f0: eb0036c1 bl 3002cdfc <__errno> <== NOT EXECUTED 3001f2f4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001f2f8: e5803000 str r3, [r0] <== NOT EXECUTED 3001f2fc: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3001f300: eaffffae b 3001f1c0 <== NOT EXECUTED 3001f304: 30044b08 .word 0x30044b08 30013964 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30013964: e59f30e4 ldr r3, [pc, #228] ; 30013a50 <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 30013968: e1a0c000 mov ip, r0 <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 3001396c: e5930000 ldr r0, [r3] <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 30013970: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30013974: e15c0000 cmp ip, r0 <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 30013978: e1a0e001 mov lr, r1 <== NOT EXECUTED 3001397c: e1a00002 mov r0, r2 <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30013980: 2a000028 bcs 30013a28 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30013984: e59f20c8 ldr r2, [pc, #200] ; 30013a54 <== NOT EXECUTED 30013988: e1a0320c lsl r3, ip, #4 <== NOT EXECUTED 3001398c: e043310c sub r3, r3, ip, lsl #2 <== NOT EXECUTED 30013990: e5921000 ldr r1, [r2] <== NOT EXECUTED 30013994: e083300c add r3, r3, ip <== NOT EXECUTED 30013998: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3001399c: e0814003 add r4, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 300139a0: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 300139a4: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 300139a8: 0a00001e beq 30013a28 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 300139ac: e594c030 ldr ip, [r4, #48] <== NOT EXECUTED 300139b0: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED 300139b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300139b8: 0a00001f beq 30013a3c <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 300139bc: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; 300139c0: e5945008 ldr r5, [r4, #8] <== NOT EXECUTED switch ( whence ) { 300139c4: 0a000014 beq 30013a1c <== NOT EXECUTED 300139c8: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 300139cc: 0a000007 beq 300139f0 <== NOT EXECUTED 300139d0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED case SEEK_SET: iop->offset = offset; 300139d4: 0584e008 streq lr, [r4, #8] <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 300139d8: 0a000007 beq 300139fc <== NOT EXECUTED case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 300139dc: ebffde2a bl 3000b28c <__errno> <== NOT EXECUTED 300139e0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 300139e4: e5803000 str r3, [r0] <== NOT EXECUTED 300139e8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300139ec: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 300139f0: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 300139f4: e08e3003 add r3, lr, r3 <== NOT EXECUTED 300139f8: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 300139fc: e1a02000 mov r2, r0 <== NOT EXECUTED 30013a00: e1a0100e mov r1, lr <== NOT EXECUTED 30013a04: e1a00004 mov r0, r4 <== NOT EXECUTED 30013a08: e1a0e00f mov lr, pc <== NOT EXECUTED 30013a0c: e59cf014 ldr pc, [ip, #20] <== NOT EXECUTED if ( status == (off_t) -1 ) 30013a10: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED iop->offset = old_offset; 30013a14: 05845008 streq r5, [r4, #8] <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 30013a18: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 30013a1c: e08e3005 add r3, lr, r5 <== NOT EXECUTED 30013a20: e5843008 str r3, [r4, #8] <== NOT EXECUTED 30013a24: eafffff4 b 300139fc <== NOT EXECUTED off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 30013a28: ebffde17 bl 3000b28c <__errno> <== NOT EXECUTED 30013a2c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30013a30: e5803000 str r3, [r0] <== NOT EXECUTED 30013a34: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013a38: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30013a3c: ebffde12 bl 3000b28c <__errno> <== NOT EXECUTED 30013a40: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30013a44: e5803000 str r3, [r0] <== NOT EXECUTED 30013a48: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013a4c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30013a50: 3001520c .word 0x3001520c 30013a54: 30015f00 .word 0x30015f00 3001f418 : int _STAT_NAME( const char *path, struct stat *buf ) { 3001f418: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 3001f41c: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 3001f420: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 3001f424: 0a00002c beq 3001f4dc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 3001f428: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001f42c: e1a0200d mov r2, sp <== NOT EXECUTED 3001f430: e1a03001 mov r3, r1 <== NOT EXECUTED 3001f434: ebff926f bl 30003df8 <== NOT EXECUTED if ( status != 0 ) 3001f438: 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 ); 3001f43c: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 3001f440: 1a000023 bne 3001f4d4 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 3001f444: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3001f448: e5932018 ldr r2, [r3, #24] <== NOT EXECUTED 3001f44c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001f450: 0a000014 beq 3001f4a8 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 3001f454: e1a01000 mov r1, r0 <== NOT EXECUTED 3001f458: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 3001f45c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001f460: eb00406d bl 3002f61c <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 3001f464: e1a01004 mov r1, r4 <== NOT EXECUTED 3001f468: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3001f46c: e1a0000d mov r0, sp <== NOT EXECUTED 3001f470: e1a0e00f mov lr, pc <== NOT EXECUTED 3001f474: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001f478: 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 ); 3001f47c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001f480: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f484: 0a000004 beq 3001f49c <== NOT EXECUTED 3001f488: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f48c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f490: 11a0000d movne r0, sp <== NOT EXECUTED 3001f494: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f498: 112fff13 bxne r3 <== NOT EXECUTED return status; } 3001f49c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001f4a0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001f4a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 3001f4a8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001f4ac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f4b0: 0a000004 beq 3001f4c8 <== NOT EXECUTED 3001f4b4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001f4b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f4bc: 11a0000d movne r0, sp <== NOT EXECUTED 3001f4c0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001f4c4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001f4c8: eb00364b bl 3002cdfc <__errno> <== NOT EXECUTED 3001f4cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001f4d0: e5803000 str r3, [r0] <== NOT EXECUTED 3001f4d4: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001f4d8: eaffffef b 3001f49c <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 3001f4dc: eb003646 bl 3002cdfc <__errno> <== NOT EXECUTED 3001f4e0: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 3001f4e4: e5803000 str r3, [r0] <== NOT EXECUTED 3001f4e8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001f4ec: eaffffea b 3001f49c <== NOT EXECUTED 30009478 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 30009478: e59f20d0 ldr r2, [pc, #208] ; 30009550 3000947c: e92d4070 push {r4, r5, r6, lr} 30009480: e5923004 ldr r3, [r2, #4] 30009484: e1a06000 mov r6, r0 30009488: e2833001 add r3, r3, #1 ; 0x1 3000948c: e5823004 str r3, [r2, #4] /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 30009490: ebffffef bl 30009454 /* * Validate the parameters */ if ( !size ) 30009494: e3560000 cmp r6, #0 ; 0x0 30009498: 0a00001c beq 30009510 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 3000949c: e59f30b0 ldr r3, [pc, #176] ; 30009554 300094a0: e5932000 ldr r2, [r3] 300094a4: e3520003 cmp r2, #3 ; 0x3 300094a8: 0a000015 beq 30009504 * 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 ); 300094ac: e59f00a4 ldr r0, [pc, #164] ; 30009558 300094b0: e1a01006 mov r1, r6 300094b4: eb000395 bl 3000a310 <_Protected_heap_Allocate> if ( !return_this ) { 300094b8: e2504000 subs r4, r0, #0 ; 0x0 if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0; 300094bc: 11a05004 movne r5, r4 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); if ( !return_this ) { 300094c0: 0a000015 beq 3000951c } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 300094c4: e59f3090 ldr r3, [pc, #144] ; 3000955c 300094c8: e5933000 ldr r3, [r3] 300094cc: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_dirty_helper)( return_this, size ); 300094d0: 11a01006 movne r1, r6 300094d4: 11a00005 movne r0, r5 300094d8: 11a0e00f movne lr, pc 300094dc: 112fff13 bxne r3 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 300094e0: e59f3078 ldr r3, [pc, #120] ; 30009560 300094e4: e5933000 ldr r3, [r3] 300094e8: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 300094ec: 11a00005 movne r0, r5 300094f0: 11a0e00f movne lr, pc 300094f4: 1593f004 ldrne pc, [r3, #4] 300094f8: e1a04005 mov r4, r5 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 300094fc: e1a00004 mov r0, r4 30009500: e8bd8070 pop {r4, r5, r6, pc} return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 30009504: ebffffbb bl 300093f8 30009508: e3500000 cmp r0, #0 ; 0x0 3000950c: 1affffe6 bne 300094ac /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 30009510: 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; } 30009514: e1a00004 mov r0, r4 <== NOT EXECUTED 30009518: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 3000951c: e59f3040 ldr r3, [pc, #64] ; 30009564 30009520: e5933000 ldr r3, [r3] 30009524: e3530000 cmp r3, #0 ; 0x0 30009528: 0a000004 beq 30009540 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 3000952c: e1a00006 mov r0, r6 <== NOT EXECUTED 30009530: e1a0e00f mov lr, pc <== NOT EXECUTED 30009534: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 30009538: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 3000953c: 1affffe0 bne 300094c4 <== NOT EXECUTED errno = ENOMEM; 30009540: eb000751 bl 3000b28c <__errno> 30009544: e3a0300c mov r3, #12 ; 0xc 30009548: e5803000 str r3, [r0] 3000954c: eaffffea b 300094fc 30009550: 30015f64 .word 0x30015f64 30009554: 30016214 .word 0x30016214 30009558: 30015f0c .word 0x30015f0c 3000955c: 30015d70 .word 0x30015d70 30009560: 30015d68 .word 0x30015d68 30009564: 30015d6c .word 0x30015d6c 30009444 : } void malloc_deferred_free( void *pointer ) { 30009444: 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 ); 30009448: e59f0000 ldr r0, [pc, #0] ; 30009450 <== NOT EXECUTED 3000944c: eaffef60 b 300051d4 <_Chain_Append> <== NOT EXECUTED 30009450: 300162ac .word 0x300162ac 30009454 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 30009454: e52de004 push {lr} ; (str lr, [sp, #-4]!) 30009458: ea000000 b 30009460 /* * 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); 3000945c: ebfffe9f bl 30008ee0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 30009460: e59f000c ldr r0, [pc, #12] ; 30009474 30009464: eb000257 bl 30009dc8 <_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) 30009468: e3500000 cmp r0, #0 ; 0x0 3000946c: 1afffffa bne 3000945c free(to_be_freed); } 30009470: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30009474: 300162ac .word 0x300162ac 30024100 : void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 30024100: e59f3024 ldr r3, [pc, #36] ; 3002412c <== NOT EXECUTED */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 30024104: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 30024108: e5931000 ldr r1, [r3] <== NOT EXECUTED 3002410c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30024110: ebff7e95 bl 30003b6c <== NOT EXECUTED if ( memory ) 30024114: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED memfile_blocks_allocated++; 30024118: 159f2010 ldrne r2, [pc, #16] ; 30024130 <== NOT EXECUTED 3002411c: 15923000 ldrne r3, [r2] <== NOT EXECUTED 30024120: 12833001 addne r3, r3, #1 ; 0x1 <== NOT EXECUTED 30024124: 15823000 strne r3, [r2] <== NOT EXECUTED return memory; } 30024128: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3002412c: 30045fd8 .word 0x30045fd8 30024130: 30058904 .word 0x30058904 300245d4 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 300245d4: e92d4010 push {r4, lr} <== NOT EXECUTED 300245d8: 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) ) { 300245dc: ebff7ef0 bl 300041a4 <== NOT EXECUTED 300245e0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300245e4: 1a00000d bne 30024620 <== NOT EXECUTED 300245e8: e1d413b4 ldrh r1, [r4, #52] <== NOT EXECUTED 300245ec: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 300245f0: 1a00000a bne 30024620 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 300245f4: e59f302c ldr r3, [pc, #44] ; 30024628 <== NOT EXECUTED 300245f8: e5933000 ldr r3, [r3] <== NOT EXECUTED 300245fc: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED 30024600: e1520004 cmp r2, r4 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; 30024604: 05831004 streq r1, [r3, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 30024608: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 3002460c: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED IMFS_memfile_remove( the_jnode ); 30024610: 11a00004 movne r0, r4 <== NOT EXECUTED 30024614: 1bffff8c blne 3002444c <== NOT EXECUTED free( the_jnode ); 30024618: e1a00004 mov r0, r4 <== NOT EXECUTED 3002461c: ebff7e4a bl 30003f4c <== NOT EXECUTED } return 0; } 30024620: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30024624: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30024628: 30044b08 .word 0x30044b08 30024684 : */ int memfile_close( rtems_libio_t *iop ) { 30024684: 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) 30024688: e590300c ldr r3, [r0, #12] <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3002468c: e590202c ldr r2, [r0, #44] <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) 30024690: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 30024694: 15923050 ldrne r3, [r2, #80] <== NOT EXECUTED 30024698: 15803008 strne r3, [r0, #8] <== NOT EXECUTED memfile_check_rmnod( the_jnode ); 3002469c: e1a00002 mov r0, r2 <== NOT EXECUTED 300246a0: ebffffcb bl 300245d4 <== NOT EXECUTED return 0; } 300246a4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300246a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300240e0 : */ void memfile_free_block( void *memory ) { 300240e0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); 300240e4: ebff7f98 bl 30003f4c <== NOT EXECUTED memfile_blocks_allocated--; 300240e8: e59f200c ldr r2, [pc, #12] ; 300240fc <== NOT EXECUTED 300240ec: e5923000 ldr r3, [r2] <== NOT EXECUTED 300240f0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 300240f4: e5823000 str r3, [r2] <== NOT EXECUTED } 300240f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300240fc: 30058904 .word 0x30058904 300243c4 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 300243c4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 300243c8: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 300243cc: e1a07001 mov r7, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 300243d0: 0a000014 beq 30024428 <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED 300243e0: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 300243e4: e1a04005 mov r4, r5 <== NOT EXECUTED if ( b[i] ) { memfile_free_block( b[i] ); b[i] = 0; 300243e8: e1a08005 mov r8, r5 <== NOT EXECUTED */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED memfile_free_block( b[i] ); 300243f8: ebffff38 bl 300240e0 <== NOT EXECUTED b[i] = 0; 300243fc: e7868004 str r8, [r6, r4] <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED 30024410: e59a6000 ldr r6, [sl] <== 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 ); 30024414: e1a00006 mov r0, r6 <== NOT EXECUTED 30024418: ebffff30 bl 300240e0 <== NOT EXECUTED *block_table = 0; 3002441c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30024420: e58a3000 str r3, [sl] <== NOT EXECUTED } 30024424: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 30024428: e59f000c ldr r0, [pc, #12] ; 3002443c <== NOT EXECUTED 3002442c: e59f100c ldr r1, [pc, #12] ; 30024440 <== NOT EXECUTED 30024430: e59f200c ldr r2, [pc, #12] ; 30024444 <== NOT EXECUTED 30024434: e59f300c ldr r3, [pc, #12] ; 30024448 <== NOT EXECUTED 30024438: ebffe480 bl 3001d640 <__assert_func> <== NOT EXECUTED 3002443c: 30042114 .word 0x30042114 30024440: 000001b1 .word 0x000001b1 30024444: 3003eb14 .word 0x3003eb14 30024448: 30042190 .word 0x30042190 3002486c : int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 3002486c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 30024870: e590402c ldr r4, [r0, #44] <== NOT EXECUTED int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 30024874: 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 ) 30024878: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 3002487c: e1530001 cmp r3, r1 <== NOT EXECUTED 30024880: ba000009 blt 300248ac <== 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; 30024884: e5841050 str r1, [r4, #80] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30024888: e5801004 str r1, [r0, #4] <== NOT EXECUTED IMFS_update_atime( the_jnode ); 3002488c: e1a0000d mov r0, sp <== NOT EXECUTED 30024890: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30024894: ebff7dd4 bl 30003fec <== NOT EXECUTED 30024898: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3002489c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300248a0: e5843040 str r3, [r4, #64] <== NOT EXECUTED return 0; } 300248a4: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 300248a8: e8bd8010 pop {r4, pc} <== NOT EXECUTED * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) return IMFS_memfile_extend( the_jnode, length ); 300248ac: e1a00004 mov r0, r4 <== NOT EXECUTED 300248b0: ebffffa0 bl 30024738 <== NOT EXECUTED 300248b4: eafffffa b 300248a4 <== NOT EXECUTED 300240d8 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } 300240d8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300240dc: e12fff1e bx lr <== NOT EXECUTED 300248b8 : off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 300248b8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 300248bc: e590402c ldr r4, [r0, #44] <== NOT EXECUTED off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 300248c0: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 300248c4: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 300248c8: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED 300248cc: 1a000005 bne 300248e8 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) 300248d0: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 300248d4: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED 300248d8: e1500003 cmp r0, r3 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 300248dc: c5853008 strgt r3, [r5, #8] <== NOT EXECUTED 300248e0: c1a00003 movgt r0, r3 <== NOT EXECUTED 300248e4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 300248e8: e1a00004 mov r0, r4 <== NOT EXECUTED 300248ec: e5951008 ldr r1, [r5, #8] <== NOT EXECUTED 300248f0: ebffff90 bl 30024738 <== NOT EXECUTED 300248f4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300248f8: 1a000003 bne 3002490c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 300248fc: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 30024900: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED 30024904: e5853004 str r3, [r5, #4] <== NOT EXECUTED } return iop->offset; } 30024908: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); 3002490c: eb00213a bl 3002cdfc <__errno> <== NOT EXECUTED 30024910: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 30024914: e5803000 str r3, [r0] <== NOT EXECUTED 30024918: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3002491c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30024b98 : the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30024b98: e590200c ldr r2, [r0, #12] <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 30024b9c: 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)) 30024ba0: e3120f81 tst r2, #516 ; 0x204 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 30024ba4: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 30024ba8: e590402c ldr r4, [r0, #44] <== NOT EXECUTED /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30024bac: 0a000002 beq 30024bbc <== NOT EXECUTED 30024bb0: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 30024bb4: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED 30024bb8: 0a000006 beq 30024bd8 <== 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) 30024bbc: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 30024bc0: 15943050 ldrne r3, [r4, #80] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30024bc4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ((count != 0) && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; 30024bc8: 15853008 strne r3, [r5, #8] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30024bcc: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 30024bd0: e5853004 str r3, [r5, #4] <== NOT EXECUTED return 0; } 30024bd4: e8bd8030 pop {r4, r5, pc} <== 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; 30024bd8: 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; 30024bdc: 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; 30024be0: e2433001 sub r3, r3, #1 ; 0x1 <== 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) 30024be4: 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; 30024be8: e5942054 ldr r2, [r4, #84] <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 30024bec: e584304c str r3, [r4, #76] <== NOT EXECUTED the_jnode->info.file.size = 0; 30024bf0: e5841050 str r1, [r4, #80] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 30024bf4: e5841058 str r1, [r4, #88] <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 30024bf8: 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; 30024bfc: e5841054 str r1, [r4, #84] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 30024c00: 0595200c ldreq r2, [r5, #12] <== NOT EXECUTED 30024c04: 0affffec beq 30024bbc <== NOT EXECUTED 30024c08: e1a03000 mov r3, r0 <== NOT EXECUTED 30024c0c: e1a00004 mov r0, r4 <== NOT EXECUTED 30024c10: ebffff42 bl 30024920 <== NOT EXECUTED 30024c14: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 30024c18: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED 30024c1c: e595200c ldr r2, [r5, #12] <== NOT EXECUTED 30024c20: eaffffe5 b 30024bbc <== NOT EXECUTED 30024e80 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30024e80: 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 ); 30024e84: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED 30024e88: e590002c ldr r0, [r0, #44] <== NOT EXECUTED ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30024e8c: 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 ); 30024e90: e1a0200c mov r2, ip <== NOT EXECUTED 30024e94: eaffff62 b 30024c24 <== NOT EXECUTED 3002462c : */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 3002462c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 30024630: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 30024634: 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 ) { 30024638: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3002463c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30024640: 0a000003 beq 30024654 <== NOT EXECUTED 30024644: e1a00004 mov r0, r4 <== NOT EXECUTED 30024648: ebfff344 bl 30021360 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 3002464c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30024650: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 30024654: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30024658: e1a0000d mov r0, sp <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 3002465c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 30024660: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 30024664: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30024668: ebff7e5f bl 30003fec <== NOT EXECUTED 3002466c: e59d3000 ldr r3, [sp] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 30024670: 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 ); 30024674: e5843048 str r3, [r4, #72] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 30024678: ebffffd5 bl 300245d4 <== NOT EXECUTED } 3002467c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 30024680: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30024b6c : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30024b6c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 30024b70: e590502c ldr r5, [r0, #44] <== NOT EXECUTED ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30024b74: e1a04000 mov r4, r0 <== NOT EXECUTED 30024b78: 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 ); 30024b7c: e1a00005 mov r0, r5 <== NOT EXECUTED 30024b80: e1a02001 mov r2, r1 <== NOT EXECUTED 30024b84: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED 30024b88: ebffff64 bl 30024920 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30024b8c: e5953050 ldr r3, [r5, #80] <== NOT EXECUTED 30024b90: e5843004 str r3, [r4, #4] <== NOT EXECUTED return status; } 30024b94: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3001f610 : int mkfifo( const char *path, mode_t mode ) { return mknod( path, mode | S_IFIFO, 0LL ); 3001f610: e3811a01 orr r1, r1, #4096 ; 0x1000 <== NOT EXECUTED 3001f614: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3001f618: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001f61c: eaff946d b 300047d8 <== NOT EXECUTED 30001668 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 30001668: e92d41f0 push {r4, r5, r6, r7, r8, lr} 3000166c: e1a05001 mov r5, 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) ) ) 30001670: e2111a0f ands r1, r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 30001674: e24dd018 sub sp, sp, #24 ; 0x18 30001678: e1a06000 mov r6, r0 3000167c: e1a07002 mov r7, r2 30001680: 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) ) ) 30001684: 0a000045 beq 300017a0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( S_ISFIFO(mode) ) 30001688: e3510a01 cmp r1, #4096 ; 0x1000 3000168c: 0a000032 beq 3000175c rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 30001690: e5d03000 ldrb r3, [r0] 30001694: e353005c cmp r3, #92 ; 0x5c 30001698: 1353002f cmpne r3, #47 ; 0x2f 3000169c: 13a02000 movne r2, #0 ; 0x0 300016a0: 03a02001 moveq r2, #1 ; 0x1 300016a4: 1a000033 bne 30001778 300016a8: e59f3104 ldr r3, [pc, #260] ; 300017b4 300016ac: e28d4004 add r4, sp, #4 ; 0x4 300016b0: e593c000 ldr ip, [r3] 300016b4: e3a0e001 mov lr, #1 ; 0x1 300016b8: e28cc014 add ip, ip, #20 ; 0x14 300016bc: e89c000f ldm ip, {r0, r1, r2, r3} 300016c0: e884000f stm r4, {r0, r1, r2, r3} if ( !temp_loc.ops->evalformake_h ) { 300016c4: e59d300c ldr r3, [sp, #12] 300016c8: e5933004 ldr r3, [r3, #4] 300016cc: e3530000 cmp r3, #0 ; 0x0 300016d0: 0a000021 beq 3000175c rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 300016d4: e086000e add r0, r6, lr 300016d8: e1a01004 mov r1, r4 300016dc: e28d2014 add r2, sp, #20 ; 0x14 300016e0: e1a0e00f mov lr, pc 300016e4: e12fff13 bx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 300016e8: e3500000 cmp r0, #0 ; 0x0 300016ec: 1a00001d bne 30001768 return -1; if ( !temp_loc.ops->mknod_h ) { 300016f0: e59d300c ldr r3, [sp, #12] 300016f4: e593c014 ldr ip, [r3, #20] 300016f8: e35c0000 cmp ip, #0 ; 0x0 300016fc: 0a000011 beq 30001748 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 ); 30001700: e1a01005 mov r1, r5 30001704: e1a03008 mov r3, r8 30001708: e58d4000 str r4, [sp] 3000170c: e59d0014 ldr r0, [sp, #20] 30001710: e1a02007 mov r2, r7 30001714: e1a0e00f mov lr, pc 30001718: e12fff1c bx ip rtems_filesystem_freenode( &temp_loc ); 3000171c: 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 ); 30001720: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 30001724: e3530000 cmp r3, #0 ; 0x0 30001728: 0a00000f beq 3000176c 3000172c: e593301c ldr r3, [r3, #28] 30001730: e3530000 cmp r3, #0 ; 0x0 30001734: 0a00000c beq 3000176c 30001738: e1a00004 mov r0, r4 <== NOT EXECUTED 3000173c: e1a0e00f mov lr, pc <== NOT EXECUTED 30001740: e12fff13 bx r3 <== NOT EXECUTED 30001744: ea000008 b 3000176c <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 30001748: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000174c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001750: 11a00004 movne r0, r4 <== NOT EXECUTED 30001754: 11a0e00f movne lr, pc <== NOT EXECUTED 30001758: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000175c: eb0026ca bl 3000b28c <__errno> <== NOT EXECUTED 30001760: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001764: e5803000 str r3, [r0] <== NOT EXECUTED 30001768: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); return result; } 3000176c: e1a00005 mov r0, r5 30001770: e28dd018 add sp, sp, #24 ; 0x18 30001774: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} rtems_set_errno_and_return_minus_one( EINVAL ); if ( S_ISFIFO(mode) ) rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 30001778: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000177c: 0affffc9 beq 300016a8 <== NOT EXECUTED 30001780: e59f302c ldr r3, [pc, #44] ; 300017b4 <== NOT EXECUTED 30001784: e28d4004 add r4, sp, #4 ; 0x4 <== NOT EXECUTED 30001788: e593c000 ldr ip, [r3] <== NOT EXECUTED 3000178c: e1a0e002 mov lr, r2 <== NOT EXECUTED 30001790: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 30001794: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 30001798: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 3000179c: eaffffc8 b 300016c4 <== NOT EXECUTED int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); 300017a0: eb0026b9 bl 3000b28c <__errno> <== NOT EXECUTED 300017a4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 300017a8: e5803000 str r3, [r0] <== NOT EXECUTED 300017ac: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 300017b0: eaffffed b 3000176c <== NOT EXECUTED 300017b4: 30015814 .word 0x30015814 30009594 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 30009594: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 30009598: e251a000 subs sl, r1, #0 ; 0x0 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 3000959c: e24dd010 sub sp, sp, #16 ; 0x10 300095a0: e1a09000 mov r9, r0 300095a4: e1a07002 mov r7, r2 300095a8: e1a05003 mov r5, r3 300095ac: e59d6030 ldr r6, [sp, #48] /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 300095b0: 0a000092 beq 30009800 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 300095b4: e3520001 cmp r2, #1 ; 0x1 300095b8: 8a000090 bhi 30009800 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 300095bc: e59a4024 ldr r4, [sl, #36] 300095c0: e3540000 cmp r4, #0 ; 0x0 300095c4: 0a000032 beq 30009694 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 300095c8: e3530000 cmp r3, #0 ; 0x0 300095cc: 03a00064 moveq r0, #100 ; 0x64 300095d0: 0a000002 beq 300095e0 size += strlen( device ) + 1; 300095d4: e1a00003 mov r0, r3 <== NOT EXECUTED 300095d8: eb000c61 bl 3000c764 <== NOT EXECUTED 300095dc: e2800065 add r0, r0, #101 ; 0x65 <== NOT EXECUTED temp_mt_entry = malloc( size ); 300095e0: ebffffa4 bl 30009478 if ( !temp_mt_entry ) { 300095e4: e3500000 cmp r0, #0 ; 0x0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 300095e8: e1a04000 mov r4, r0 300095ec: e1a08000 mov r8, r0 if ( !temp_mt_entry ) { 300095f0: 0a000087 beq 30009814 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 300095f4: 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; 300095f8: e5807028 str r7, [r0, #40] if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 300095fc: 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; 30009600: 05805060 streq r5, [r0, #96] return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 30009604: 0a000004 beq 3000961c temp_mt_entry->dev = 30009608: e2803064 add r3, r0, #100 ; 0x64 <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 3000960c: e1a00003 mov r0, r3 <== NOT EXECUTED 30009610: e1a01005 mov r1, r5 <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 30009614: e5843060 str r3, [r4, #96] <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 30009618: eb000c23 bl 3000c6ac <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 3000961c: e3560000 cmp r6, #0 ; 0x0 30009620: 0a000024 beq 300096b8 if ( rtems_filesystem_evaluate_path( 30009624: e1a00006 mov r0, r6 <== NOT EXECUTED 30009628: e3a01007 mov r1, #7 ; 0x7 <== NOT EXECUTED 3000962c: e1a0200d mov r2, sp <== NOT EXECUTED 30009630: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30009634: ebffdf51 bl 30001380 <== NOT EXECUTED 30009638: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 3000963c: e1a0500d mov r5, sp <== NOT EXECUTED 30009640: 0a000017 beq 300096a4 <== NOT EXECUTED /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 30009644: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30009648: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 3000964c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30009650: 0a00005c beq 300097c8 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 30009654: e1a0000d mov r0, sp <== NOT EXECUTED 30009658: e1a0e00f mov lr, pc <== NOT EXECUTED 3000965c: e12fff13 bx r3 <== NOT EXECUTED 30009660: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 30009664: 0a00002c beq 3000971c <== NOT EXECUTED errno = ENOTDIR; 30009668: eb000707 bl 3000b28c <__errno> <== NOT EXECUTED 3000966c: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 30009670: e5803000 str r3, [r0] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 30009674: e1a00004 mov r0, r4 <== NOT EXECUTED 30009678: ebfffe18 bl 30008ee0 <== NOT EXECUTED 3000967c: e1a0500d mov r5, sp <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 30009680: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED 30009684: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30009688: 1a000052 bne 300097d8 <== NOT EXECUTED 3000968c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009690: ea000006 b 300096b0 <== NOT EXECUTED return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 30009694: eb0006fc bl 3000b28c <__errno> <== NOT EXECUTED 30009698: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000969c: e5803000 str r3, [r0] <== NOT EXECUTED 300096a0: e1a08004 mov r8, r4 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 300096a4: e1a00008 mov r0, r8 <== NOT EXECUTED 300096a8: ebfffe0c bl 30008ee0 <== NOT EXECUTED 300096ac: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 300096b0: e28dd010 add sp, sp, #16 ; 0x10 300096b4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} * 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; 300096b8: e5846018 str r6, [r4, #24] temp_mt_entry->mt_fs_root.handlers = NULL; 300096bc: e584601c str r6, [r4, #28] temp_mt_entry->mt_fs_root.ops = NULL; 300096c0: e5846020 str r6, [r4, #32] temp_mt_entry->mt_point_node.node_access = NULL; 300096c4: e5846008 str r6, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; 300096c8: e584600c str r6, [r4, #12] temp_mt_entry->mt_point_node.ops = NULL; 300096cc: e5846010 str r6, [r4, #16] temp_mt_entry->mt_point_node.mt_entry = NULL; 300096d0: e5846014 str r6, [r4, #20] 300096d4: e1a05006 mov r5, r6 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 300096d8: e1a00004 mov r0, r4 300096dc: e1a0e00f mov lr, pc 300096e0: e59af024 ldr pc, [sl, #36] 300096e4: e2506000 subs r6, r0, #0 ; 0x0 300096e8: 0a00002a beq 30009798 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 300096ec: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 300096f0: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 300096f4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 300096f8: 11a00004 movne r0, r4 <== NOT EXECUTED 300096fc: 11a0e00f movne lr, pc <== NOT EXECUTED 30009700: 112fff13 bxne r3 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 30009704: e1a00004 mov r0, r4 <== NOT EXECUTED 30009708: ebfffdf4 bl 30008ee0 <== NOT EXECUTED if ( loc_to_free ) 3000970c: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30009710: 1affffda bne 30009680 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 30009714: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009718: eaffffe4 b 300096b0 <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 3000971c: e59f1104 ldr r1, [pc, #260] ; 30009828 <== NOT EXECUTED 30009720: e4912004 ldr r2, [r1], #4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 30009724: e1520001 cmp r2, r1 <== NOT EXECUTED 30009728: 0a000032 beq 300097f8 <== NOT EXECUTED 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 ) 3000972c: e59d0000 ldr r0, [sp] <== NOT EXECUTED 30009730: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 30009734: e1530000 cmp r3, r0 <== NOT EXECUTED 30009738: 1a000003 bne 3000974c <== NOT EXECUTED 3000973c: ea00001d b 300097b8 <== NOT EXECUTED 30009740: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 30009744: e1530000 cmp r3, r0 <== NOT EXECUTED 30009748: 0a00001a beq 300097b8 <== 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 ) { 3000974c: 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 ); 30009750: e1520001 cmp r2, r1 <== NOT EXECUTED 30009754: 1afffff9 bne 30009740 <== 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; 30009758: 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 ){ 3000975c: e593c020 ldr ip, [r3, #32] <== NOT EXECUTED */ 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; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 30009760: e59d100c ldr r1, [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 ){ 30009764: e35c0000 cmp ip, #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; 30009768: e5840008 str r0, [r4, #8] <== NOT EXECUTED temp_mt_entry->mt_point_node.handlers = loc.handlers; 3000976c: 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; 30009770: e5841014 str r1, [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; 30009774: 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 ){ 30009778: 0a000012 beq 300097c8 <== NOT EXECUTED errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 3000977c: e1a00004 mov r0, r4 <== NOT EXECUTED 30009780: e1a0e00f mov lr, pc <== NOT EXECUTED 30009784: e12fff1c bx ip <== NOT EXECUTED 30009788: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED goto cleanup_and_bail; 3000978c: 01a0500d moveq r5, sp <== NOT EXECUTED if ( !loc.ops->mount_h ){ errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 30009790: 0affffd0 beq 300096d8 <== NOT EXECUTED 30009794: eaffffb6 b 30009674 <== 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 ); 30009798: e59f0088 ldr r0, [pc, #136] ; 30009828 3000979c: e1a01004 mov r1, r4 300097a0: ebffee8b bl 300051d4 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 300097a4: e3590000 cmp r9, #0 ; 0x0 300097a8: 01a00009 moveq r0, r9 *mt_entry = temp_mt_entry; 300097ac: 15894000 strne r4, [r9] 300097b0: 11a00006 movne r0, r6 300097b4: eaffffbd b 300096b0 /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 300097b8: eb0006b3 bl 3000b28c <__errno> <== NOT EXECUTED 300097bc: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 300097c0: e5803000 str r3, [r0] <== NOT EXECUTED 300097c4: eaffffaa b 30009674 <== 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; 300097c8: eb0006af bl 3000b28c <__errno> <== NOT EXECUTED 300097cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300097d0: e5803000 str r3, [r0] <== NOT EXECUTED 300097d4: eaffffa6 b 30009674 <== NOT EXECUTED cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 300097d8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300097dc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300097e0: 0affffa9 beq 3000968c <== NOT EXECUTED 300097e4: e1a00005 mov r0, r5 <== NOT EXECUTED 300097e8: e1a0e00f mov lr, pc <== NOT EXECUTED 300097ec: e12fff13 bx r3 <== NOT EXECUTED 300097f0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300097f4: eaffffad b 300096b0 <== NOT EXECUTED 300097f8: e59d0000 ldr r0, [sp] <== NOT EXECUTED 300097fc: eaffffd5 b 30009758 <== NOT EXECUTED * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 30009800: eb0006a1 bl 3000b28c <__errno> <== NOT EXECUTED 30009804: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30009808: e5803000 str r3, [r0] <== NOT EXECUTED 3000980c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009810: eaffffa6 b 300096b0 <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 30009814: eb00069c bl 3000b28c <__errno> <== NOT EXECUTED 30009818: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3000981c: e5803000 str r3, [r0] <== NOT EXECUTED 30009820: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30009824: eaffffa1 b 300096b0 <== NOT EXECUTED 30009828: 300162b8 .word 0x300162b8 30001844 : */ int newlib_free_buffers( FILE *fp ) { 30001844: e92d4010 push {r4, lr} 30001848: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 3000184c: eb00275b bl 3000b5c0 30001850: e3500002 cmp r0, #2 ; 0x2 30001854: 9a000003 bls 30001868 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 30001858: e1a00004 mov r0, r4 <== NOT EXECUTED 3000185c: eb0026db bl 3000b3d0 <== NOT EXECUTED } return 0; } 30001860: e3a00000 mov r0, #0 ; 0x0 30001864: e8bd8010 pop {r4, pc} { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 30001868: e1d430bc ldrh r3, [r4, #12] 3000186c: e3130080 tst r3, #128 ; 0x80 30001870: 0afffffa beq 30001860 free( fp->_bf._base ); 30001874: e5940010 ldr r0, [r4, #16] 30001878: eb001d98 bl 30008ee0 fp->_flags &= ~__SMBF; 3000187c: e1d430bc ldrh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001880: e3a02000 mov r2, #0 ; 0x0 case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 30001884: e3c33080 bic r3, r3, #128 ; 0x80 fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001888: e5842010 str r2, [r4, #16] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 3000188c: e1c430bc strh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001890: e5842000 str r2, [r4] break; default: fclose(fp); } return 0; } 30001894: e3a00000 mov r0, #0 ; 0x0 30001898: e8bd8010 pop {r4, pc} 3000201c : void *pargp ) { rtems_device_driver status; if ( !initialized ) { 3000201c: e59fc040 ldr ip, [pc, #64] ; 30002064 rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 30002020: e92d4010 push {r4, lr} rtems_device_driver status; if ( !initialized ) { 30002024: e5dc2000 ldrb r2, [ip] rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 30002028: e1a04000 mov r4, r0 rtems_device_driver status; if ( !initialized ) { 3000202c: e3520000 cmp r2, #0 ; 0x0 30002030: 0a000001 beq 3000203c NULL_major = major; } return RTEMS_SUCCESSFUL; } 30002034: e3a00000 mov r0, #0 ; 0x0 30002038: e8bd8010 pop {r4, pc} ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 3000203c: e3a03001 mov r3, #1 ; 0x1 status = rtems_io_register_name( 30002040: e59f0020 ldr r0, [pc, #32] ; 30002068 30002044: e1a01004 mov r1, r4 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 30002048: e5cc3000 strb r3, [ip] status = rtems_io_register_name( 3000204c: eb00004b bl 30002180 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 30002050: e3500000 cmp r0, #0 ; 0x0 rtems_fatal_error_occurred(status); NULL_major = major; 30002054: 059f3010 ldreq r3, [pc, #16] ; 3000206c 30002058: 05834000 streq r4, [r3] "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 3000205c: 0afffff4 beq 30002034 rtems_fatal_error_occurred(status); 30002060: eb000fe1 bl 30005fec <== NOT EXECUTED 30002064: 30019c08 .word 0x30019c08 30002068: 30017ff8 .word 0x30017ff8 3000206c: 30019da8 .word 0x30019da8 30001aac : int open( const char *pathname, int flags, ... ) { 30001aac: e92d000e push {r1, r2, r3} 30001ab0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30001ab4: e24dd010 sub sp, sp, #16 ; 0x10 30001ab8: e59d702c ldr r7, [sp, #44] 30001abc: e1a08000 mov r8, r0 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 30001ac0: e2873001 add r3, r7, #1 ; 0x1 if ( ( status & _FREAD ) == _FREAD ) 30001ac4: e2132001 ands r2, r3, #1 ; 0x1 30001ac8: 01a04002 moveq r4, r2 30001acc: 13a04004 movne r4, #4 ; 0x4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 30001ad0: e3130002 tst r3, #2 ; 0x2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 30001ad4: 13844002 orrne r4, r4, #2 ; 0x2 va_start(ap, flags); mode = va_arg( ap, int ); 30001ad8: 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(); 30001adc: eb001df4 bl 300092b4 if ( iop == 0 ) { 30001ae0: e2505000 subs r5, r0, #0 ; 0x0 30001ae4: 03a08017 moveq r8, #23 ; 0x17 30001ae8: 0a000030 beq 30001bb0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 30001aec: e1a01004 mov r1, r4 30001af0: e1a00008 mov r0, r8 30001af4: e1a0200d mov r2, sp 30001af8: e3a03001 mov r3, #1 ; 0x1 30001afc: ebfffe1f bl 30001380 pathname, eval_flags, &loc, true ); if ( status == -1 ) { 30001b00: e3700001 cmn r0, #1 ; 0x1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 30001b04: e1a0600d mov r6, sp pathname, eval_flags, &loc, true ); if ( status == -1 ) { 30001b08: 0a000040 beq 30001c10 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 30001b0c: e2073c0a and r3, r7, #2560 ; 0xa00 30001b10: e3530c0a cmp r3, #2560 ; 0xa00 30001b14: 01a0400d moveq r4, sp 30001b18: 03a08011 moveq r8, #17 ; 0x11 30001b1c: 0a000055 beq 30001c78 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 30001b20: e89d000c ldm sp, {r2, r3} 30001b24: e5853030 str r3, [r5, #48] iop->file_info = loc.node_access; 30001b28: e585202c str r2, [r5, #44] iop->flags |= rtems_libio_fcntl_flags( flags ); 30001b2c: e1a00007 mov r0, r7 30001b30: e595400c ldr r4, [r5, #12] 30001b34: eb001e22 bl 300093c4 iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 30001b38: e5953030 ldr r3, [r5, #48] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001b3c: e1800004 orr r0, r0, r4 iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 30001b40: e5934000 ldr r4, [r3] */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 30001b44: e285c010 add ip, r5, #16 ; 0x10 if ( !iop->handlers->open_h ) { 30001b48: 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 ); 30001b4c: e585000c str r0, [r5, #12] iop->pathinfo = loc; 30001b50: e896000f ldm r6, {r0, r1, r2, r3} 30001b54: e88c000f stm ip, {r0, r1, r2, r3} if ( !iop->handlers->open_h ) { 30001b58: 0a000044 beq 30001c70 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 30001b5c: e1a01008 mov r1, r8 30001b60: e1a0300a mov r3, sl 30001b64: e1a00005 mov r0, r5 30001b68: e1a02007 mov r2, r7 30001b6c: e1a0e00f mov lr, pc 30001b70: e12fff14 bx r4 if ( rc ) 30001b74: e2508000 subs r8, r0, #0 ; 0x0 30001b78: 11a0400d movne r4, sp 30001b7c: 0a00000f beq 30001bc0 done: va_end(ap); if ( rc ) { if ( iop ) rtems_libio_free( iop ); 30001b80: e1a00005 mov r0, r5 <== NOT EXECUTED 30001b84: eb001db4 bl 3000925c <== NOT EXECUTED if ( loc_to_free ) 30001b88: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30001b8c: 0a000007 beq 30001bb0 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 30001b90: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 30001b94: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001b98: 0a000004 beq 30001bb0 <== NOT EXECUTED 30001b9c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30001ba0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001ba4: 11a00004 movne r0, r4 <== NOT EXECUTED 30001ba8: 11a0e00f movne lr, pc <== NOT EXECUTED 30001bac: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( rc ); 30001bb0: eb0025b5 bl 3000b28c <__errno> 30001bb4: e5808000 str r8, [r0] 30001bb8: e3e00000 mvn r0, #0 ; 0x0 30001bbc: ea00000f b 30001c00 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 30001bc0: e3170b01 tst r7, #1024 ; 0x400 30001bc4: 1a000034 bne 30001c9c 30001bc8: e59f4170 ldr r4, [pc, #368] ; 30001d40 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 30001bcc: e5941000 ldr r1, [r4] 30001bd0: e0611005 rsb r1, r1, r5 30001bd4: e1a01141 asr r1, r1, #2 30001bd8: e1a02301 lsl r2, r1, #6 30001bdc: e0422101 sub r2, r2, r1, lsl #2 30001be0: e1a03302 lsl r3, r2, #6 30001be4: e0623003 rsb r3, r2, r3 30001be8: e1a00603 lsl r0, r3, #12 30001bec: e0833000 add r3, r3, r0 30001bf0: e0833001 add r3, r3, r1 30001bf4: e1a03203 lsl r3, r3, #4 30001bf8: e0613003 rsb r3, r1, r3 30001bfc: e0410103 sub r0, r1, r3, lsl #2 } 30001c00: e28dd010 add sp, sp, #16 ; 0x10 30001c04: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} 30001c08: e28dd00c add sp, sp, #12 ; 0xc 30001c0c: e12fff1e bx lr status = rtems_filesystem_evaluate_path( pathname, eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 30001c10: eb00259d bl 3000b28c <__errno> <== NOT EXECUTED 30001c14: e5900000 ldr r0, [r0] <== NOT EXECUTED 30001c18: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 30001c1c: 1a000018 bne 30001c84 <== 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) ) { 30001c20: e2173c02 ands r3, r7, #512 ; 0x200 <== NOT EXECUTED 30001c24: 01a08000 moveq r8, r0 <== NOT EXECUTED 30001c28: 01a04003 moveq r4, r3 <== NOT EXECUTED 30001c2c: 0a000011 beq 30001c78 <== NOT EXECUTED rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 30001c30: e1a00008 mov r0, r8 <== NOT EXECUTED 30001c34: e38a1902 orr r1, sl, #32768 ; 0x8000 <== NOT EXECUTED 30001c38: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30001c3c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30001c40: ebfffe88 bl 30001668 <== NOT EXECUTED if ( rc ) { 30001c44: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 30001c48: 1a00000d bne 30001c84 <== NOT EXECUTED rc = errno; goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, 0x0, &loc, true ); 30001c4c: e1a00008 mov r0, r8 <== NOT EXECUTED 30001c50: e1a01004 mov r1, r4 <== NOT EXECUTED 30001c54: e1a0200d mov r2, sp <== NOT EXECUTED 30001c58: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30001c5c: ebfffdc7 bl 30001380 <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ 30001c60: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30001c64: 13a0800d movne r8, #13 ; 0xd <== NOT EXECUTED 30001c68: 1a000002 bne 30001c78 <== NOT EXECUTED 30001c6c: eaffffab b 30001b20 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 30001c70: e1a0400d mov r4, sp <== NOT EXECUTED 30001c74: e3a08086 mov r8, #134 ; 0x86 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 30001c78: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30001c7c: 0affffc1 beq 30001b88 <== NOT EXECUTED 30001c80: eaffffbe b 30001b80 <== NOT EXECUTED } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 30001c84: eb002580 bl 3000b28c <__errno> <== NOT EXECUTED 30001c88: e5908000 ldr r8, [r0] <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 30001c8c: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 30001c90: 0affffcc beq 30001bc8 <== NOT EXECUTED 30001c94: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 30001c98: eafffff6 b 30001c78 <== NOT EXECUTED /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 30001c9c: e59f409c ldr r4, [pc, #156] ; 30001d40 <== NOT EXECUTED 30001ca0: e1a01008 mov r1, r8 <== NOT EXECUTED 30001ca4: e5942000 ldr r2, [r4] <== NOT EXECUTED 30001ca8: e0622005 rsb r2, r2, r5 <== NOT EXECUTED 30001cac: e1a02142 asr r2, r2, #2 <== NOT EXECUTED 30001cb0: e1a03302 lsl r3, r2, #6 <== NOT EXECUTED 30001cb4: e0433102 sub r3, r3, r2, lsl #2 <== NOT EXECUTED 30001cb8: e1a00303 lsl r0, r3, #6 <== NOT EXECUTED 30001cbc: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 30001cc0: e1a0c600 lsl ip, r0, #12 <== NOT EXECUTED 30001cc4: e080000c add r0, r0, ip <== NOT EXECUTED 30001cc8: e0800002 add r0, r0, r2 <== NOT EXECUTED 30001ccc: e1a00200 lsl r0, r0, #4 <== NOT EXECUTED 30001cd0: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 30001cd4: e0420100 sub r0, r2, r0, lsl #2 <== NOT EXECUTED 30001cd8: eb001ca8 bl 30008f80 <== NOT EXECUTED if ( rc ) { 30001cdc: e2508000 subs r8, r0, #0 ; 0x0 <== NOT EXECUTED 30001ce0: 0affffb9 beq 30001bcc <== NOT EXECUTED if(errno) rc = errno; 30001ce4: eb002568 bl 3000b28c <__errno> <== NOT EXECUTED 30001ce8: e5903000 ldr r3, [r0] <== NOT EXECUTED 30001cec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001cf0: 1a00000f bne 30001d34 <== NOT EXECUTED close( iop - rtems_libio_iops ); 30001cf4: e5942000 ldr r2, [r4] <== NOT EXECUTED 30001cf8: e0622005 rsb r2, r2, r5 <== NOT EXECUTED 30001cfc: e1a02142 asr r2, r2, #2 <== NOT EXECUTED 30001d00: e1a03302 lsl r3, r2, #6 <== NOT EXECUTED 30001d04: e0433102 sub r3, r3, r2, lsl #2 <== NOT EXECUTED 30001d08: e1a00303 lsl r0, r3, #6 <== NOT EXECUTED 30001d0c: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 30001d10: e1a01600 lsl r1, r0, #12 <== NOT EXECUTED 30001d14: e0800001 add r0, r0, r1 <== NOT EXECUTED 30001d18: e0800002 add r0, r0, r2 <== NOT EXECUTED 30001d1c: e1a00200 lsl r0, r0, #4 <== NOT EXECUTED 30001d20: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 30001d24: e0420100 sub r0, r2, r0, lsl #2 <== NOT EXECUTED 30001d28: eb001c3f bl 30008e2c <== NOT EXECUTED 30001d2c: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 30001d30: eaffffd5 b 30001c8c <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 30001d34: eb002554 bl 3000b28c <__errno> <== NOT EXECUTED 30001d38: e5908000 ldr r8, [r0] <== NOT EXECUTED 30001d3c: eaffffec b 30001cf4 <== NOT EXECUTED 30001d40: 30015f00 .word 0x30015f00 30001a44 : int error_code = 'S' << 24 | 'T' << 16 | 'D' << 8; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 30001a44: e3a01000 mov r1, #0 ; 0x0 /* * This is a replaceable stub */ void open_dev_console(void) { 30001a48: 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) { 30001a4c: e59f004c ldr r0, [pc, #76] ; 30001aa0 30001a50: e1a02001 mov r2, r1 30001a54: eb000014 bl 30001aac 30001a58: e3700001 cmn r0, #1 ; 0x1 30001a5c: 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) 30001a60: e59f0038 ldr r0, [pc, #56] ; 30001aa0 30001a64: e3a01001 mov r1, #1 ; 0x1 30001a68: e3a02000 mov r2, #0 ; 0x0 30001a6c: eb00000e bl 30001aac 30001a70: e3700001 cmn r0, #1 ; 0x1 30001a74: 0a000007 beq 30001a98 rtems_fatal_error_occurred( error_code | '1' ); if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 30001a78: e59f0020 ldr r0, [pc, #32] ; 30001aa0 30001a7c: e3a01001 mov r1, #1 ; 0x1 30001a80: e3a02000 mov r2, #0 ; 0x0 30001a84: eb000008 bl 30001aac 30001a88: e3700001 cmn r0, #1 ; 0x1 30001a8c: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( error_code | '2' ); 30001a90: e59f000c ldr r0, [pc, #12] ; 30001aa4 <== NOT EXECUTED 30001a94: eb000cfc bl 30004e8c <== NOT EXECUTED /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( error_code | '1' ); 30001a98: e59f0008 ldr r0, [pc, #8] ; 30001aa8 <== NOT EXECUTED 30001a9c: eb000cfa bl 30004e8c <== NOT EXECUTED 30001aa0: 30014c80 .word 0x30014c80 30001aa4: 53544432 .word 0x53544432 30001aa8: 53544431 .word 0x53544431 3001f6a0 : * open a directory. */ DIR * opendir( const char *name ) { 3001f6a0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register DIR *dirp; register int fd; if ((fd = open(name, 0)) == -1) 3001f6a4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001f6a8: ebff9608 bl 30004ed0 <== NOT EXECUTED 3001f6ac: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 3001f6b0: e1a05000 mov r5, r0 <== NOT EXECUTED 3001f6b4: 0a00001a beq 3001f724 <== NOT EXECUTED return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || 3001f6b8: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 3001f6bc: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3001f6c0: eb002c49 bl 3002a7ec <== NOT EXECUTED 3001f6c4: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 3001f6c8: 0a000013 beq 3001f71c <== NOT EXECUTED 3001f6cc: e3a00018 mov r0, #24 ; 0x18 <== NOT EXECUTED 3001f6d0: ebff93bd bl 300045cc <== NOT EXECUTED 3001f6d4: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001f6d8: 0a00000f beq 3001f71c <== 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); 3001f6dc: e3a00c02 mov r0, #512 ; 0x200 <== NOT EXECUTED 3001f6e0: ebff93b9 bl 300045cc <== NOT EXECUTED dirp->dd_len = 512; 3001f6e4: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED if (dirp->dd_buf == NULL) { 3001f6e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED * 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); dirp->dd_len = 512; 3001f6ec: e5843010 str r3, [r4, #16] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 3001f6f0: 13a03000 movne r3, #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); 3001f6f4: e1a02000 mov r2, r0 <== NOT EXECUTED 3001f6f8: e584000c str r0, [r4, #12] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; 3001f6fc: 15845000 strne r5, [r4] <== NOT EXECUTED dirp->dd_loc = 0; dirp->dd_seek = 0; 3001f700: 15843014 strne r3, [r4, #20] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 3001f704: 15843004 strne r3, [r4, #4] <== NOT EXECUTED * to user space to be done by getdirentries() */ dirp->dd_buf = malloc (512); dirp->dd_len = 512; if (dirp->dd_buf == NULL) { 3001f708: 1a000006 bne 3001f728 <== NOT EXECUTED close (fd); 3001f70c: e1a00005 mov r0, r5 <== NOT EXECUTED 3001f710: e1a04002 mov r4, r2 <== NOT EXECUTED 3001f714: ebff9160 bl 30003c9c <== NOT EXECUTED 3001f718: ea000002 b 3001f728 <== NOT EXECUTED if ((fd = open(name, 0)) == -1) return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || (dirp = (DIR *)malloc(sizeof(DIR))) == NULL) { close (fd); 3001f71c: e1a00005 mov r0, r5 <== NOT EXECUTED 3001f720: ebff915d bl 30003c9c <== NOT EXECUTED 3001f724: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 3001f728: e1a00004 mov r0, r4 <== NOT EXECUTED 3001f72c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000287c : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 3000287c: e92d4010 push {r4, lr} int i; if (tty->termios.c_oflag & OPOST) { 30002880: e5912034 ldr r2, [r1, #52] /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 30002884: e24dd004 sub sp, sp, #4 ; 0x4 int i; if (tty->termios.c_oflag & OPOST) { 30002888: e3120001 tst r2, #1 ; 0x1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 3000288c: e1a04001 mov r4, r1 30002890: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { 30002894: 0a000016 beq 300028f4 switch (c) { 30002898: e5dd1000 ldrb r1, [sp] 3000289c: e2413008 sub r3, r1, #8 ; 0x8 300028a0: e3530005 cmp r3, #5 ; 0x5 300028a4: 979ff103 ldrls pc, [pc, r3, lsl #2] 300028a8: ea000017 b 3000290c 300028ac: 30002954 .word 0x30002954 <== NOT EXECUTED 300028b0: 30002998 .word 0x30002998 <== NOT EXECUTED 300028b4: 30002968 .word 0x30002968 <== NOT EXECUTED 300028b8: 3000290c .word 0x3000290c <== NOT EXECUTED 300028bc: 3000290c .word 0x3000290c <== NOT EXECUTED 300028c0: 300028c4 .word 0x300028c4 <== NOT EXECUTED tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 300028c4: e3120010 tst r2, #16 ; 0x10 <== NOT EXECUTED 300028c8: 0a000002 beq 300028d8 <== NOT EXECUTED 300028cc: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 300028d0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300028d4: 0a00000a beq 30002904 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 300028d8: e2123008 ands r3, r2, #8 ; 0x8 <== NOT EXECUTED 300028dc: 0a00001a beq 3000294c <== NOT EXECUTED c = '\n'; 300028e0: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 300028e4: 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'; 300028e8: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) tty->column = 0; 300028ec: 1243300a subne r3, r3, #10 ; 0xa <== NOT EXECUTED 300028f0: 15843028 strne r3, [r4, #40] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 300028f4: e1a02004 mov r2, r4 300028f8: e1a0000d mov r0, sp 300028fc: e3a01001 mov r1, #1 ; 0x1 30002900: ebffff95 bl 3000275c } 30002904: e28dd004 add sp, sp, #4 ; 0x4 30002908: e8bd8010 pop {r4, pc} if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 3000290c: e3120002 tst r2, #2 ; 0x2 30002910: 059f00bc ldreq r0, [pc, #188] ; 300029d4 30002914: 0a000006 beq 30002934 c = toupper(c); 30002918: e59f00b4 ldr r0, [pc, #180] ; 300029d4 <== NOT EXECUTED 3000291c: e5903000 ldr r3, [r0] <== NOT EXECUTED 30002920: e7d32001 ldrb r2, [r3, r1] <== NOT EXECUTED 30002924: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 30002928: 12411020 subne r1, r1, #32 ; 0x20 <== NOT EXECUTED 3000292c: e5cd1000 strb r1, [sp] <== NOT EXECUTED 30002930: e5dd1000 ldrb r1, [sp] <== NOT EXECUTED if (!iscntrl(c)) 30002934: e5903000 ldr r3, [r0] 30002938: e7d32001 ldrb r2, [r3, r1] 3000293c: e3120020 tst r2, #32 ; 0x20 30002940: 1affffeb bne 300028f4 tty->column++; 30002944: e5943028 ldr r3, [r4, #40] 30002948: e2833001 add r3, r3, #1 ; 0x1 3000294c: e5843028 str r3, [r4, #40] 30002950: eaffffe7 b 300028f4 } tty->column += i; break; case '\b': if (tty->column > 0) 30002954: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 30002958: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 3000295c: c2433001 subgt r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002960: c5843028 strgt r3, [r4, #40] <== NOT EXECUTED 30002964: eaffffe2 b 300028f4 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 30002968: e3120020 tst r2, #32 ; 0x20 tty->column = 0; 3000296c: 13a03000 movne r3, #0 ; 0x0 30002970: 15843028 strne r3, [r4, #40] if (tty->termios.c_oflag & ONLCR) { 30002974: e3120004 tst r2, #4 ; 0x4 30002978: 0affffdd beq 300028f4 rtems_termios_puts ("\r", 1, tty); 3000297c: e59f0054 ldr r0, [pc, #84] ; 300029d8 30002980: e3a01001 mov r1, #1 ; 0x1 30002984: e1a02004 mov r2, r4 30002988: ebffff73 bl 3000275c tty->column = 0; 3000298c: e3a03000 mov r3, #0 ; 0x0 30002990: e5843028 str r3, [r4, #40] 30002994: eaffffd6 b 300028f4 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 30002998: e5941028 ldr r1, [r4, #40] <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 3000299c: e2023b06 and r3, r2, #6144 ; 0x1800 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 300029a0: e2012007 and r2, r1, #7 ; 0x7 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 300029a4: e3530b06 cmp r3, #6144 ; 0x1800 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 300029a8: e2620008 rsb r0, r2, #8 ; 0x8 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 300029ac: 10803001 addne r3, r0, r1 <== NOT EXECUTED 300029b0: 15843028 strne r3, [r4, #40] <== NOT EXECUTED tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 300029b4: 1affffce bne 300028f4 <== NOT EXECUTED tty->column += i; 300029b8: e0803001 add r3, r0, r1 <== NOT EXECUTED 300029bc: e5843028 str r3, [r4, #40] <== NOT EXECUTED rtems_termios_puts ( " ", i, tty); 300029c0: e1a01000 mov r1, r0 <== NOT EXECUTED 300029c4: e1a02004 mov r2, r4 <== NOT EXECUTED 300029c8: e59f000c ldr r0, [pc, #12] ; 300029dc <== NOT EXECUTED 300029cc: ebffff62 bl 3000275c <== NOT EXECUTED 300029d0: eaffffcb b 30002904 <== NOT EXECUTED 300029d4: 30015860 .word 0x30015860 300029d8: 30014dc4 .word 0x30014dc4 300029dc: 30014d00 .word 0x30014d00 30013af0 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013af0: e59f30c8 ldr r3, [pc, #200] ; 30013bc0 <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 30013af4: e1a0c000 mov ip, r0 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013af8: e5930000 ldr r0, [r3] <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 30013afc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013b00: e15c0000 cmp ip, r0 <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 30013b04: e1a06001 mov r6, r1 <== NOT EXECUTED 30013b08: e1a05002 mov r5, r2 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013b0c: 2a00001c bcs 30013b84 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30013b10: e1a0320c lsl r3, ip, #4 <== NOT EXECUTED 30013b14: e59f00a8 ldr r0, [pc, #168] ; 30013bc4 <== NOT EXECUTED 30013b18: e043310c sub r3, r3, ip, lsl #2 <== NOT EXECUTED 30013b1c: e083300c add r3, r3, ip <== NOT EXECUTED 30013b20: e590c000 ldr ip, [r0] <== NOT EXECUTED 30013b24: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 30013b28: e08c4003 add r4, ip, r3 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 30013b2c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 30013b30: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30013b34: 0a000012 beq 30013b84 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 30013b38: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30013b3c: 0a000015 beq 30013b98 <== NOT EXECUTED rtems_libio_check_count( count ); 30013b40: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30013b44: 01a00002 moveq r0, r2 <== NOT EXECUTED 30013b48: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30013b4c: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 30013b50: 0a000010 beq 30013b98 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 30013b54: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 30013b58: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30013b5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30013b60: 0a000011 beq 30013bac <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 30013b64: e1a00004 mov r0, r4 <== NOT EXECUTED 30013b68: e1a0e00f mov lr, pc <== NOT EXECUTED 30013b6c: e12fff13 bx r3 <== NOT EXECUTED if ( rc > 0 ) 30013b70: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED iop->offset += rc; 30013b74: c5943008 ldrgt r3, [r4, #8] <== NOT EXECUTED 30013b78: c0833000 addgt r3, r3, r0 <== NOT EXECUTED 30013b7c: c5843008 strgt r3, [r4, #8] <== NOT EXECUTED return rc; } 30013b80: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 30013b84: ebffddc0 bl 3000b28c <__errno> <== NOT EXECUTED 30013b88: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30013b8c: e5803000 str r3, [r0] <== NOT EXECUTED 30013b90: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013b94: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30013b98: ebffddbb bl 3000b28c <__errno> <== NOT EXECUTED 30013b9c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30013ba0: e5803000 str r3, [r0] <== NOT EXECUTED 30013ba4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013ba8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30013bac: ebffddb6 bl 3000b28c <__errno> <== NOT EXECUTED 30013bb0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30013bb4: e5803000 str r3, [r0] <== NOT EXECUTED 30013bb8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013bbc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30013bc0: 3001520c .word 0x3001520c 30013bc4: 30015f00 .word 0x30015f00 3001f96c : /* * get next entry in a directory. */ struct dirent * readdir( DIR *dirp ) { 3001f96c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register struct dirent *dp; if ( !dirp ) 3001f970: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3001f974: 0a000022 beq 3001fa04 <== NOT EXECUTED 3001f978: e594600c ldr r6, [r4, #12] <== NOT EXECUTED if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { dirp->dd_loc = 0; 3001f97c: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { 3001f980: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 3001f984: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001f988: 0a000014 beq 3001f9e0 <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 3001f98c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3001f990: e1530002 cmp r3, r2 <== NOT EXECUTED dirp->dd_loc = 0; 3001f994: d5845004 strle r5, [r4, #4] <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 3001f998: dafffff8 ble 3001f980 <== NOT EXECUTED dirp->dd_loc = 0; continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 3001f99c: e0860002 add r0, r6, r2 <== NOT EXECUTED if ((intptr_t)dp & 03) /* bogus pointer check */ 3001f9a0: e3100003 tst r0, #3 ; 0x3 <== NOT EXECUTED 3001f9a4: 1a000016 bne 3001fa04 <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || 3001f9a8: e1d0c0b8 ldrh ip, [r0, #8] <== NOT EXECUTED 3001f9ac: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 3001f9b0: e082100c add r1, r2, ip <== 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 || 3001f9b4: 0a000012 beq 3001fa04 <== NOT EXECUTED 3001f9b8: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3001f9bc: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 3001f9c0: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 3001f9c4: e15c0003 cmp ip, r3 <== NOT EXECUTED 3001f9c8: ca00000d bgt 3001fa04 <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 3001f9cc: e5841004 str r1, [r4, #4] <== NOT EXECUTED if (dp->d_ino == 0) 3001f9d0: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001f9d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001f9d8: 0affffe8 beq 3001f980 <== NOT EXECUTED 3001f9dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 3001f9e0: e1a01006 mov r1, r6 <== NOT EXECUTED 3001f9e4: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001f9e8: e5942010 ldr r2, [r4, #16] <== NOT EXECUTED 3001f9ec: eb002c0a bl 3002aa1c <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 3001f9f0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 3001f9f4: e5840008 str r0, [r4, #8] <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 3001f9f8: c5942004 ldrgt r2, [r4, #4] <== NOT EXECUTED 3001f9fc: c594600c ldrgt r6, [r4, #12] <== NOT EXECUTED 3001fa00: caffffe1 bgt 3001f98c <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; if (dp->d_ino == 0) 3001fa04: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED continue; return (dp); } } 3001fa08: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3001fa0c : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 3001fa0c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 3001fa10: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 3001fa14: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001fa18: e1a06002 mov r6, r2 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 3001fa1c: 0a00002e beq 3001fadc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 3001fa20: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001fa24: e1a0200d mov r2, sp <== NOT EXECUTED 3001fa28: e1a03001 mov r3, r1 <== NOT EXECUTED 3001fa2c: ebff90f1 bl 30003df8 <== NOT EXECUTED if ( result != 0 ) 3001fa30: 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 ); 3001fa34: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 3001fa38: 1a000025 bne 3001fad4 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 3001fa3c: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001fa40: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 3001fa44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fa48: 0a000019 beq 3001fab4 <== 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 ){ 3001fa4c: e1a0000d mov r0, sp <== NOT EXECUTED 3001fa50: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fa54: e12fff13 bx r3 <== NOT EXECUTED 3001fa58: e3500004 cmp r0, #4 ; 0x4 <== NOT EXECUTED 3001fa5c: 1a000023 bne 3001faf0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 3001fa60: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001fa64: e592303c ldr r3, [r2, #60] <== NOT EXECUTED 3001fa68: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fa6c: 0a00002c beq 3001fb24 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 3001fa70: e1a01004 mov r1, r4 <== NOT EXECUTED 3001fa74: e1a02006 mov r2, r6 <== NOT EXECUTED 3001fa78: e1a0000d mov r0, sp <== NOT EXECUTED 3001fa7c: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fa80: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001fa84: 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 ); 3001fa88: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001fa8c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fa90: 0a000004 beq 3001faa8 <== NOT EXECUTED 3001fa94: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001fa98: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fa9c: 11a0000d movne r0, sp <== NOT EXECUTED 3001faa0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001faa4: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001faa8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001faac: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001fab0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 3001fab4: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001fab8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fabc: 11a0000d movne r0, sp <== NOT EXECUTED 3001fac0: 11a0e00f movne lr, pc <== NOT EXECUTED 3001fac4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001fac8: eb0034cb bl 3002cdfc <__errno> <== NOT EXECUTED 3001facc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001fad0: e5803000 str r3, [r0] <== NOT EXECUTED 3001fad4: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001fad8: eafffff2 b 3001faa8 <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 3001fadc: eb0034c6 bl 3002cdfc <__errno> <== NOT EXECUTED 3001fae0: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 3001fae4: e5803000 str r3, [r0] <== NOT EXECUTED 3001fae8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001faec: eaffffed b 3001faa8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ rtems_filesystem_freenode( &loc ); 3001faf0: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001faf4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001faf8: 0a000004 beq 3001fb10 <== NOT EXECUTED 3001fafc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001fb00: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fb04: 11a0000d movne r0, sp <== NOT EXECUTED 3001fb08: 11a0e00f movne lr, pc <== NOT EXECUTED 3001fb0c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 3001fb10: eb0034b9 bl 3002cdfc <__errno> <== NOT EXECUTED 3001fb14: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3001fb18: e5803000 str r3, [r0] <== NOT EXECUTED 3001fb1c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001fb20: eaffffe0 b 3001faa8 <== NOT EXECUTED } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 3001fb24: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001fb28: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fb2c: 11a0000d movne r0, sp <== NOT EXECUTED 3001fb30: 11a0e00f movne lr, pc <== NOT EXECUTED 3001fb34: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001fb38: eb0034af bl 3002cdfc <__errno> <== NOT EXECUTED 3001fb3c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001fb40: e5803000 str r3, [r0] <== NOT EXECUTED 3001fb44: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001fb48: eaffffd6 b 3001faa8 <== NOT EXECUTED 30013c30 : { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30013c30: e92d40f0 push {r4, r5, r6, r7, lr} /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30013c34: e59f2114 ldr r2, [pc, #276] ; 30013d50 { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30013c38: e59f7114 ldr r7, [pc, #276] ; 30013d54 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30013c3c: e592c000 ldr ip, [r2] { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30013c40: e5973010 ldr r3, [r7, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30013c44: e35c0003 cmp ip, #3 ; 0x3 { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 30013c48: e2833001 add r3, r3, #1 ; 0x1 30013c4c: e24dd004 sub sp, sp, #4 ; 0x4 30013c50: e5873010 str r3, [r7, #16] 30013c54: e1a04000 mov r4, r0 30013c58: e1a06001 mov r6, r1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30013c5c: 0a00001f beq 30013ce0 } /* * Continue with realloc(). */ if ( !ptr ) 30013c60: e3540000 cmp r4, #0 ; 0x0 30013c64: 0a000010 beq 30013cac return malloc( size ); if ( !size ) { 30013c68: e3560000 cmp r6, #0 ; 0x0 30013c6c: 0a000012 beq 30013cbc free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { 30013c70: e59f00e0 ldr r0, [pc, #224] ; 30013d58 30013c74: e1a01004 mov r1, r4 30013c78: e1a0200d mov r2, sp 30013c7c: eb00006e bl 30013e3c <_Protected_heap_Get_block_size> 30013c80: e2505000 subs r5, r0, #0 ; 0x0 30013c84: 0a000010 beq 30013ccc #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 ) ) { 30013c88: e59f00c8 ldr r0, [pc, #200] ; 30013d58 30013c8c: e1a01004 mov r1, r4 30013c90: e1a02006 mov r2, r6 30013c94: eb000079 bl 30013e80 <_Protected_heap_Resize_block> 30013c98: e3500000 cmp r0, #0 ; 0x0 30013c9c: 0a00001b beq 30013d10 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 30013ca0: e1a00004 mov r0, r4 30013ca4: e28dd004 add sp, sp, #4 ; 0x4 30013ca8: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 30013cac: e1a00006 mov r0, r6 <== NOT EXECUTED 30013cb0: ebffd5f0 bl 30009478 <== NOT EXECUTED 30013cb4: e1a04000 mov r4, r0 <== NOT EXECUTED 30013cb8: eafffff8 b 30013ca0 <== NOT EXECUTED if ( !size ) { free( ptr ); 30013cbc: e1a00004 mov r0, r4 <== NOT EXECUTED 30013cc0: ebffd486 bl 30008ee0 <== NOT EXECUTED 30013cc4: e1a04006 mov r4, r6 <== NOT EXECUTED 30013cc8: eafffff4 b 30013ca0 <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 30013ccc: ebffdd6e bl 3000b28c <__errno> 30013cd0: e3a03016 mov r3, #22 ; 0x16 30013cd4: e5803000 str r3, [r0] 30013cd8: e1a04005 mov r4, r5 30013cdc: eaffffef b 30013ca0 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) 30013ce0: e59f3074 ldr r3, [pc, #116] ; 30013d5c 30013ce4: e5932000 ldr r2, [r3] 30013ce8: e3520000 cmp r2, #0 ; 0x0 30013cec: 0a000001 beq 30013cf8 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 30013cf0: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 30013cf4: eaffffe9 b 30013ca0 <== NOT EXECUTED if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 30013cf8: e59f3060 ldr r3, [pc, #96] ; 30013d60 30013cfc: e5932000 ldr r2, [r3] 30013d00: e3520000 cmp r2, #0 ; 0x0 30013d04: 0affffd5 beq 30013c60 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 30013d08: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 30013d0c: eaffffe3 b 30013ca0 <== NOT EXECUTED * There used to be a free on this error case but it is wrong to * free the memory per OpenGroup Single UNIX Specification V2 * and the C Standard. */ new_area = malloc( size ); 30013d10: e1a00006 mov r0, r6 30013d14: ebffd5d7 bl 30009478 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 30013d18: e5973004 ldr r3, [r7, #4] if ( !new_area ) { 30013d1c: e2505000 subs r5, r0, #0 ; 0x0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 30013d20: e2433001 sub r3, r3, #1 ; 0x1 30013d24: e5873004 str r3, [r7, #4] if ( !new_area ) { 30013d28: 0afffff0 beq 30013cf0 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 30013d2c: e59d2000 ldr r2, [sp] 30013d30: e1a01004 mov r1, r4 30013d34: e1560002 cmp r6, r2 30013d38: 31a02006 movcc r2, r6 30013d3c: ebffdf1c bl 3000b9b4 free( ptr ); 30013d40: e1a00004 mov r0, r4 30013d44: ebffd465 bl 30008ee0 30013d48: e1a04005 mov r4, r5 30013d4c: eaffffd3 b 30013ca0 30013d50: 30016214 .word 0x30016214 30013d54: 30015f64 .word 0x30015f64 30013d58: 30015f0c .word 0x30015f0c 30013d5c: 3001606c .word 0x3001606c 30013d60: 30016100 .word 0x30016100 3001fc80 : #include int rmdir( const char *pathname ) { 3001fc80: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 3001fc84: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int rmdir( const char *pathname ) { 3001fc88: 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 ); 3001fc8c: e1a0200d mov r2, sp <== NOT EXECUTED 3001fc90: e1a03001 mov r3, r1 <== NOT EXECUTED 3001fc94: ebff9057 bl 30003df8 <== NOT EXECUTED if ( result != 0 ) 3001fc98: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 3001fc9c: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 3001fca0: 0a000003 beq 3001fcb4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); 3001fca4: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 3001fca8: e1a00004 mov r0, r4 <== NOT EXECUTED 3001fcac: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3001fcb0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 3001fcb4: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 3001fcb8: e1a0100d mov r1, sp <== NOT EXECUTED 3001fcbc: ebff9023 bl 30003d50 <== NOT EXECUTED if (result != 0) { 3001fcc0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001fcc4: 1a000027 bne 3001fd68 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 3001fcc8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001fccc: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 3001fcd0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fcd4: 0a00002e beq 3001fd94 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 3001fcd8: e1a0000d mov r0, sp <== NOT EXECUTED 3001fcdc: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fce0: e12fff13 bx r3 <== NOT EXECUTED 3001fce4: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 3001fce8: 1a000011 bne 3001fd34 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 3001fcec: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3001fcf0: e5933034 ldr r3, [r3, #52] <== NOT EXECUTED 3001fcf4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fcf8: 0a000030 beq 3001fdc0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); 3001fcfc: e1a0000d mov r0, sp <== NOT EXECUTED 3001fd00: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fd04: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001fd08: 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 ); 3001fd0c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001fd10: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fd14: 0affffe3 beq 3001fca8 <== NOT EXECUTED 3001fd18: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001fd1c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fd20: 0affffe0 beq 3001fca8 <== NOT EXECUTED 3001fd24: e1a0000d mov r0, sp <== NOT EXECUTED 3001fd28: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fd2c: e12fff13 bx r3 <== NOT EXECUTED 3001fd30: eaffffdc b 3001fca8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); 3001fd34: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001fd38: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fd3c: 0a000004 beq 3001fd54 <== NOT EXECUTED 3001fd40: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001fd44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fd48: 11a0000d movne r0, sp <== NOT EXECUTED 3001fd4c: 11a0e00f movne lr, pc <== NOT EXECUTED 3001fd50: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 3001fd54: eb003428 bl 3002cdfc <__errno> <== NOT EXECUTED 3001fd58: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3001fd5c: e5803000 str r3, [r0] <== NOT EXECUTED 3001fd60: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001fd64: eaffffcf b 3001fca8 <== NOT EXECUTED if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0) { rtems_filesystem_freenode( &loc ); 3001fd68: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001fd6c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fd70: 0affffcb beq 3001fca4 <== NOT EXECUTED 3001fd74: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001fd78: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fd7c: 0affffc8 beq 3001fca4 <== NOT EXECUTED 3001fd80: e1a0000d mov r0, sp <== NOT EXECUTED 3001fd84: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fd88: e12fff13 bx r3 <== NOT EXECUTED 3001fd8c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001fd90: eaffffc4 b 3001fca8 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 3001fd94: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001fd98: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fd9c: 0a000002 beq 3001fdac <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 3001fda0: e1a0000d mov r0, sp <== NOT EXECUTED 3001fda4: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fda8: e12fff13 bx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001fdac: eb003412 bl 3002cdfc <__errno> <== NOT EXECUTED 3001fdb0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001fdb4: e5803000 str r3, [r0] <== NOT EXECUTED 3001fdb8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3001fdbc: eaffffb9 b 3001fca8 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 3001fdc0: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001fdc4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fdc8: 0afffff7 beq 3001fdac <== NOT EXECUTED 3001fdcc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001fdd0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fdd4: 1afffff1 bne 3001fda0 <== NOT EXECUTED 3001fdd8: eafffff3 b 3001fdac <== NOT EXECUTED 3000abe0 : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000abe0: e92d41f0 push {r4, r5, r6, r7, r8, lr} 3000abe4: e3a06000 mov r6, #0 ; 0x0 3000abe8: e1a08000 mov r8, r0 3000abec: e1a07001 mov r7, r1 3000abf0: e3a04001 mov r4, #1 ; 0x1 3000abf4: e1a05006 mov r5, r6 3000abf8: ea000002 b 3000ac08 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 3000abfc: e3550020 cmp r5, #32 ; 0x20 3000ac00: e1a04084 lsl r4, r4, #1 3000ac04: 0a000009 beq 3000ac30 if (b & remote_value) 3000ac08: e1140007 tst r4, r7 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 3000ac0c: e2855001 add r5, r5, #1 ; 0x1 if (b & remote_value) 3000ac10: 0afffff9 beq 3000abfc local_value |= rtems_assoc_local_by_remote(ap, b); 3000ac14: e1a01004 mov r1, r4 <== NOT EXECUTED 3000ac18: e1a00008 mov r0, r8 <== NOT EXECUTED 3000ac1c: eb000005 bl 3000ac38 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 3000ac20: e3550020 cmp r5, #32 ; 0x20 <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); 3000ac24: e1866000 orr r6, r6, r0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 3000ac28: e1a04084 lsl r4, r4, #1 <== NOT EXECUTED 3000ac2c: 1afffff5 bne 3000ac08 <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } 3000ac30: e1a00006 mov r0, r6 3000ac34: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 300149cc : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 300149cc: e59f0000 ldr r0, [pc, #0] ; 300149d4 <== NOT EXECUTED 300149d0: e12fff1e bx lr <== NOT EXECUTED 300149d4: 30024e6c .word 0x30024e6c 30010848 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 30010848: e92d4010 push {r4, lr} <== NOT EXECUTED 3001084c: e1a04001 mov r4, r1 <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 30010850: eb000006 bl 30010870 <== NOT EXECUTED if (nap) 30010854: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30010858: 0a000001 beq 30010864 <== NOT EXECUTED return nap->name; return rtems_assoc_name_bad(local_value); } 3001085c: e5900000 ldr r0, [r0] <== NOT EXECUTED 30010860: 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); 30010864: e1a00004 mov r0, r4 <== NOT EXECUTED } 30010868: 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); 3001086c: ea001056 b 300149cc <== NOT EXECUTED 3000b1f4 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000b1f4: e92d4030 push {r4, r5, lr} 3000b1f8: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000b1fc: e5900000 ldr r0, [r0] const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000b200: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000b204: e3500000 cmp r0, #0 ; 0x0 3000b208: 01a04000 moveq r4, r0 3000b20c: 0a000013 beq 3000b260 3000b210: e59f105c ldr r1, [pc, #92] ; 3000b274 3000b214: eb0004ea bl 3000c5c4 3000b218: e3500000 cmp r0, #0 ; 0x0 3000b21c: 13a01000 movne r1, #0 ; 0x0 3000b220: 1a00000b bne 3000b254 default_ap = ap++; for ( ; ap->name; ap++) 3000b224: e594300c ldr r3, [r4, #12] <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 3000b228: e284200c add r2, r4, #12 ; 0xc <== NOT EXECUTED for ( ; ap->name; ap++) 3000b22c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000b230: 0a00000a beq 3000b260 <== NOT EXECUTED 3000b234: e1a01004 mov r1, r4 <== NOT EXECUTED 3000b238: e1a04002 mov r4, r2 <== NOT EXECUTED if (ap->local_value == local_value) 3000b23c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 3000b240: e1530005 cmp r3, r5 <== NOT EXECUTED 3000b244: 0a000005 beq 3000b260 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000b248: e5b4300c ldr r3, [r4, #12]! 3000b24c: e3530000 cmp r3, #0 ; 0x0 3000b250: 0a000004 beq 3000b268 if (ap->local_value == local_value) 3000b254: e5943004 ldr r3, [r4, #4] 3000b258: e1530005 cmp r3, r5 3000b25c: 1afffff9 bne 3000b248 return ap; return default_ap; } 3000b260: e1a00004 mov r0, r4 3000b264: e8bd8030 pop {r4, r5, pc} const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000b268: e1a04001 mov r4, r1 if (ap->local_value == local_value) return ap; return default_ap; } 3000b26c: e1a00004 mov r0, r4 3000b270: e8bd8030 pop {r4, r5, pc} 3000b274: 3001501c .word 0x3001501c 3000ac4c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000ac4c: e92d4030 push {r4, r5, lr} 3000ac50: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000ac54: e5900000 ldr r0, [r0] const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000ac58: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000ac5c: e3500000 cmp r0, #0 ; 0x0 3000ac60: 01a04000 moveq r4, r0 3000ac64: 0a000013 beq 3000acb8 3000ac68: e59f105c ldr r1, [pc, #92] ; 3000accc 3000ac6c: eb000654 bl 3000c5c4 3000ac70: e3500000 cmp r0, #0 ; 0x0 3000ac74: 13a01000 movne r1, #0 ; 0x0 3000ac78: 1a00000b bne 3000acac default_ap = ap++; for ( ; ap->name; ap++) 3000ac7c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 3000ac80: e284200c add r2, r4, #12 ; 0xc <== NOT EXECUTED for ( ; ap->name; ap++) 3000ac84: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000ac88: 0a00000a beq 3000acb8 <== NOT EXECUTED 3000ac8c: e1a01004 mov r1, r4 <== NOT EXECUTED 3000ac90: e1a04002 mov r4, r2 <== NOT EXECUTED if (ap->remote_value == remote_value) 3000ac94: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3000ac98: e1530005 cmp r3, r5 <== NOT EXECUTED 3000ac9c: 0a000005 beq 3000acb8 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000aca0: e5b4300c ldr r3, [r4, #12]! 3000aca4: e3530000 cmp r3, #0 ; 0x0 3000aca8: 0a000004 beq 3000acc0 if (ap->remote_value == remote_value) 3000acac: e5943008 ldr r3, [r4, #8] 3000acb0: e1530005 cmp r3, r5 3000acb4: 1afffff9 bne 3000aca0 return ap; return default_ap; } 3000acb8: e1a00004 mov r0, r4 3000acbc: e8bd8030 pop {r4, r5, pc} const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000acc0: e1a04001 mov r4, r1 <== NOT EXECUTED if (ap->remote_value == remote_value) return ap; return default_ap; } 3000acc4: e1a00004 mov r0, r4 <== NOT EXECUTED 3000acc8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000accc: 3001501c .word 0x3001501c 3000acd0 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000acd0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000acd4: eb000146 bl 3000b1f4 <== NOT EXECUTED if (nap) 3000acd8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return nap->remote_value; 3000acdc: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } 3000ace0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30003eb4 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 30003eb4: e92d4010 push {r4, lr} if ( !time_buffer ) 30003eb8: e2514000 subs r4, r1, #0 ; 0x0 30003ebc: 03a00009 moveq r0, #9 ; 0x9 30003ec0: 08bd8010 popeq {r4, pc} return RTEMS_INVALID_ADDRESS; switch ( option ) { 30003ec4: e3500004 cmp r0, #4 ; 0x4 30003ec8: 979ff100 ldrls pc, [pc, r0, lsl #2] 30003ecc: ea000004 b 30003ee4 30003ed0: 30003eec .word 0x30003eec <== NOT EXECUTED 30003ed4: 30003ef8 .word 0x30003ef8 <== NOT EXECUTED 30003ed8: 30003f04 .word 0x30003f04 <== NOT EXECUTED 30003edc: 30003f14 .word 0x30003f14 <== NOT EXECUTED 30003ee0: 30003f24 .word 0x30003f24 <== NOT EXECUTED 30003ee4: e3a0000a mov r0, #10 ; 0xa 30003ee8: e8bd8010 pop {r4, pc} case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 30003eec: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 30003ef0: 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 ); 30003ef4: ea000027 b 30003f98 case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 30003ef8: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 30003efc: 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); 30003f00: ea00000a b 30003f30 case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 30003f04: eb00001f bl 30003f88 30003f08: e5840000 str r0, [r4] 30003f0c: e3a00000 mov r0, #0 ; 0x0 30003f10: e8bd8010 pop {r4, pc} return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TICKS_PER_SECOND: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); 30003f14: eb000013 bl 30003f68 30003f18: e5840000 str r0, [r4] 30003f1c: e3a00000 mov r0, #0 ; 0x0 30003f20: e8bd8010 pop {r4, pc} return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TIME_VALUE: return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 30003f24: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 30003f28: 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 ); 30003f2c: ea00004d b 30004068 3000a85c : { 0, 0, 0 }, }; static int rtems_deviceio_errno(rtems_status_code code) { 3000a85c: e92d4010 push {r4, lr} <== NOT EXECUTED 3000a860: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) 3000a864: e59f0018 ldr r0, [pc, #24] ; 3000a884 <== NOT EXECUTED 3000a868: eb000118 bl 3000acd0 <== NOT EXECUTED 3000a86c: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 3000a870: 0a000001 beq 3000a87c <== NOT EXECUTED { errno = rc; 3000a874: eb000284 bl 3000b28c <__errno> <== NOT EXECUTED 3000a878: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } 3000a87c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3000a880: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000a884: 300146e4 .word 0x300146e4 30006944 : int rtems_error( int error_flag, const char *printf_format, ... ) { 30006944: e92d000e push {r1, r2, r3} <== NOT EXECUTED 30006948: 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); 3000694c: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 30006950: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 30006954: ebffff7b bl 30006748 <== NOT EXECUTED va_end(arglist); return chars_written; } 30006958: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 3000695c: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 30006960: e12fff1e bx lr <== NOT EXECUTED 300012d8 : int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 300012d8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 300012dc: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 300012e0: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 300012e4: e1a0e000 mov lr, r0 <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 300012e8: 0a00001e beq 30001368 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 300012ec: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 300012f0: e593c000 ldr ip, [r3] <== NOT EXECUTED 300012f4: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 300012f8: 0a000015 beq 30001354 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; 300012fc: e891000f ldm r1, {r0, r1, r2, r3} <== NOT EXECUTED 30001300: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 30001304: e1a0100e mov r1, lr <== NOT EXECUTED 30001308: e59f006c ldr r0, [pc, #108] ; 3000137c <== NOT EXECUTED 3000130c: e1a0200d mov r2, sp <== NOT EXECUTED 30001310: e1a0e00f mov lr, pc <== NOT EXECUTED 30001314: e12fff1c bx ip <== NOT EXECUTED if (result != 0){ 30001318: e2505000 subs r5, 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; 3000131c: e1a0400d mov r4, sp <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); if (result != 0){ 30001320: 13e05000 mvnne r5, #0 ; 0x0 <== NOT EXECUTED 30001324: 1a000007 bne 30001348 <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); 30001328: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3000132c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001330: 0a000004 beq 30001348 <== NOT EXECUTED 30001334: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30001338: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000133c: 11a0000d movne r0, sp <== NOT EXECUTED 30001340: 11a0e00f movne lr, pc <== NOT EXECUTED 30001344: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30001348: e1a00005 mov r0, r5 <== NOT EXECUTED 3000134c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30001350: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001354: eb0027cc bl 3000b28c <__errno> <== NOT EXECUTED 30001358: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000135c: e5803000 str r3, [r0] <== NOT EXECUTED 30001360: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 30001364: eafffff7 b 30001348 <== NOT EXECUTED { rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 30001368: eb0027c7 bl 3000b28c <__errno> <== NOT EXECUTED 3000136c: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 30001370: e5803000 str r3, [r0] <== NOT EXECUTED 30001374: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 30001378: eafffff2 b 30001348 <== NOT EXECUTED 3000137c: 30014ce4 .word 0x30014ce4 30001380 : const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001380: e92d40f0 push {r4, r5, r6, r7, lr} /* * Verify Input parameters. */ if ( !pathname ) 30001384: e2505000 subs r5, r0, #0 ; 0x0 const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001388: e1a07001 mov r7, r1 3000138c: e1a04002 mov r4, r2 30001390: e1a06003 mov r6, r3 /* * Verify Input parameters. */ if ( !pathname ) 30001394: 0a000043 beq 300014a8 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 30001398: e3520000 cmp r2, #0 ; 0x0 3000139c: 0a000046 beq 300014bc /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 300013a0: e5d53000 ldrb r3, [r5] 300013a4: e353005c cmp r3, #92 ; 0x5c 300013a8: 1353002f cmpne r3, #47 ; 0x2f 300013ac: 13a02000 movne r2, #0 ; 0x0 300013b0: 03a02001 moveq r2, #1 ; 0x1 300013b4: 1a000028 bne 3000145c 300013b8: e59f3110 ldr r3, [pc, #272] ; 300014d0 300013bc: e3a0e001 mov lr, #1 ; 0x1 300013c0: e593c000 ldr ip, [r3] 300013c4: e28cc014 add ip, ip, #20 ; 0x14 300013c8: e89c000f ldm ip, {r0, r1, r2, r3} 300013cc: e884000f stm r4, {r0, r1, r2, r3} if ( !pathloc->ops->evalpath_h ) 300013d0: e5943008 ldr r3, [r4, #8] 300013d4: e5933000 ldr r3, [r3] 300013d8: e3530000 cmp r3, #0 ; 0x0 300013dc: 0a00002c beq 30001494 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 300013e0: e085000e add r0, r5, lr 300013e4: e1a01007 mov r1, r7 300013e8: e1a02004 mov r2, r4 300013ec: e1a0e00f mov lr, pc 300013f0: e12fff13 bx r3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 300013f4: e2703001 rsbs r3, r0, #1 ; 0x1 300013f8: 33a03000 movcc r3, #0 ; 0x0 300013fc: e3560000 cmp r6, #0 ; 0x0 30001400: 03a03000 moveq r3, #0 ; 0x0 30001404: e3530000 cmp r3, #0 ; 0x0 30001408: 08bd80f0 popeq {r4, r5, r6, r7, pc} if ( !pathloc->ops->node_type_h ){ 3000140c: e5942008 ldr r2, [r4, #8] 30001410: e5923010 ldr r3, [r2, #16] 30001414: e3530000 cmp r3, #0 ; 0x0 30001418: 0a000018 beq 30001480 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 3000141c: e1a00004 mov r0, r4 30001420: e1a0e00f mov lr, pc 30001424: e12fff13 bx r3 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 30001428: e2400003 sub r0, r0, #3 ; 0x3 3000142c: e3500001 cmp r0, #1 ; 0x1 30001430: 83a00000 movhi r0, #0 ; 0x0 30001434: 88bd80f0 pophi {r4, r5, r6, r7, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 30001438: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED 3000143c: e5923034 ldr r3, [r2, #52] <== NOT EXECUTED 30001440: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001444: 0a00000d beq 30001480 <== 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 ); 30001448: e1a00004 mov r0, r4 <== NOT EXECUTED 3000144c: e1a01007 mov r1, r7 <== NOT EXECUTED 30001450: e1a0e00f mov lr, pc <== NOT EXECUTED 30001454: e12fff13 bx r3 <== NOT EXECUTED } } return result; } 30001458: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 3000145c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001460: 0affffd4 beq 300013b8 <== NOT EXECUTED 30001464: e59f3064 ldr r3, [pc, #100] ; 300014d0 <== NOT EXECUTED 30001468: e1a0e002 mov lr, r2 <== NOT EXECUTED 3000146c: e593c000 ldr ip, [r3] <== NOT EXECUTED 30001470: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 30001474: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 30001478: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 3000147c: eaffffd3 b 300013d0 <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 30001480: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30001484: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001488: 11a00004 movne r0, r4 <== NOT EXECUTED 3000148c: 11a0e00f movne lr, pc <== NOT EXECUTED 30001490: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001494: eb00277c bl 3000b28c <__errno> <== NOT EXECUTED 30001498: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000149c: e5803000 str r3, [r0] <== NOT EXECUTED 300014a0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300014a4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 300014a8: eb002777 bl 3000b28c <__errno> <== NOT EXECUTED 300014ac: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 300014b0: e5803000 str r3, [r0] <== NOT EXECUTED 300014b4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300014b8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 300014bc: eb002772 bl 3000b28c <__errno> <== NOT EXECUTED 300014c0: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 300014c4: e5803000 str r3, [r0] <== NOT EXECUTED 300014c8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300014cc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 300014d0: 30015814 .word 0x30015814 30008cd4 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 30008cd4: e92d4070 push {r4, r5, r6, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 30008cd8: e59f60e0 ldr r6, [pc, #224] ; 30008dc0 30008cdc: e3a03012 mov r3, #18 ; 0x12 30008ce0: e5962000 ldr r2, [r6] * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 30008ce4: e24dd018 sub sp, sp, #24 ; 0x18 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 30008ce8: e5823024 str r3, [r2, #36] init_fs_mount_table(); 30008cec: eb000221 bl 30009578 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 30008cf0: e59f30cc ldr r3, [pc, #204] ; 30008dc4 30008cf4: e5932000 ldr r2, [r3] 30008cf8: e3520000 cmp r2, #0 ; 0x0 30008cfc: 0a000029 beq 30008da8 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 30008d00: e59f30c0 ldr r3, [pc, #192] ; 30008dc8 status = mount( 30008d04: e28d0014 add r0, sp, #20 ; 0x14 */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 30008d08: e593c000 ldr ip, [r3] status = mount( 30008d0c: e89c001e ldm ip, {r1, r2, r3, r4} 30008d10: e58d4000 str r4, [sp] 30008d14: eb00021e bl 30009594 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 30008d18: e3700001 cmn r0, #1 ; 0x1 30008d1c: 0a000023 beq 30008db0 rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 30008d20: e5965000 ldr r5, [r6] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 30008d24: e59dc014 ldr ip, [sp, #20] 30008d28: e285e014 add lr, r5, #20 ; 0x14 30008d2c: e28cc018 add ip, ip, #24 ; 0x18 30008d30: e89c000f ldm ip, {r0, r1, r2, r3} /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 30008d34: 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; 30008d38: e88e000f stm lr, {r0, r1, r2, r3} /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 30008d3c: 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; 30008d40: e3a03000 mov r3, #0 ; 0x0 30008d44: e1c532b8 strh r3, [r5, #40] * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 30008d48: e1a02004 mov r2, r4 30008d4c: e1a03001 mov r3, r1 30008d50: e59f0074 ldr r0, [pc, #116] ; 30008dcc 30008d54: ebffe189 bl 30001380 rtems_filesystem_root = loc; 30008d58: e894000f ldm r4, {r0, r1, r2, r3} 30008d5c: e596c000 ldr ip, [r6] 30008d60: e28cc014 add ip, ip, #20 ; 0x14 30008d64: e88c000f stm ip, {r0, r1, r2, r3} /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 30008d68: e3a01000 mov r1, #0 ; 0x0 30008d6c: e1a02004 mov r2, r4 30008d70: e1a03001 mov r3, r1 30008d74: e59f0050 ldr r0, [pc, #80] ; 30008dcc 30008d78: ebffe180 bl 30001380 rtems_filesystem_current = loc; 30008d7c: e894000f ldm r4, {r0, r1, r2, r3} 30008d80: e596c000 ldr ip, [r6] 30008d84: e28cc004 add ip, ip, #4 ; 0x4 30008d88: 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); 30008d8c: e59f003c ldr r0, [pc, #60] ; 30008dd0 30008d90: e59f103c ldr r1, [pc, #60] ; 30008dd4 30008d94: eb0001f3 bl 30009568 if ( status != 0 ) 30008d98: e3500000 cmp r0, #0 ; 0x0 30008d9c: 1a000005 bne 30008db8 * before device drivers are initialized. So we return via a base * filesystem image and nothing auto-mounted at this point. */ #endif } 30008da0: e28dd018 add sp, sp, #24 ; 0x18 30008da4: e8bd8070 pop {r4, r5, r6, pc} /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 30008da8: e59f0028 ldr r0, [pc, #40] ; 30008dd8 <== NOT EXECUTED 30008dac: ebfff036 bl 30004e8c <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 30008db0: e59f0024 ldr r0, [pc, #36] ; 30008ddc <== NOT EXECUTED 30008db4: ebfff034 bl 30004e8c <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 30008db8: e59f0020 ldr r0, [pc, #32] ; 30008de0 <== NOT EXECUTED 30008dbc: ebfff032 bl 30004e8c <== NOT EXECUTED 30008dc0: 30015814 .word 0x30015814 30008dc4: 30014410 .word 0x30014410 30008dc8: 30015214 .word 0x30015214 30008dcc: 30014ed8 .word 0x30014ed8 30008dd0: 30014edc .word 0x30014edc 30008dd4: 000001ff .word 0x000001ff 30008dd8: abcd0001 .word 0xabcd0001 30008ddc: abcd0002 .word 0xabcd0002 30008de0: abcd0003 .word 0xabcd0003 300201ec : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 300201ec: e5903000 ldr r3, [r0] <== NOT EXECUTED 300201f0: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 300201f4: e1530000 cmp r3, r0 <== NOT EXECUTED 300201f8: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 300201fc: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 30020200: e12fff1e bx lr <== NOT EXECUTED 300011a0 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 300011a0: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 300011a4: 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 ); 300011a8: e1a0200d mov r2, sp <== NOT EXECUTED 300011ac: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 300011b0: 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 ); 300011b4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 300011b8: 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 ); 300011bc: eb00006f bl 30001380 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 300011c0: 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 ); 300011c4: e1a0700d mov r7, sp <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 300011c8: 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 ); 300011cc: e1a04000 mov r4, r0 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 300011d0: 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; 300011d4: e59d8000 ldr r8, [sp] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 300011d8: 0a000013 beq 3000122c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 300011dc: e1a0000d mov r0, sp <== NOT EXECUTED 300011e0: e1a0e00f mov lr, pc <== NOT EXECUTED 300011e4: e12fff13 bx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 300011e8: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 300011ec: 03540000 cmpeq r4, #0 ; 0x0 <== NOT EXECUTED 300011f0: 03a04000 moveq r4, #0 ; 0x0 <== NOT EXECUTED 300011f4: 13a04001 movne r4, #1 ; 0x1 <== NOT EXECUTED 300011f8: 0a000015 beq 30001254 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300011fc: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30001200: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001204: 0a000025 beq 300012a0 <== NOT EXECUTED 30001208: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000120c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001210: 0a000022 beq 300012a0 <== NOT EXECUTED 30001214: e1a0000d mov r0, sp <== NOT EXECUTED 30001218: e1a0e00f mov lr, pc <== NOT EXECUTED 3000121c: e12fff13 bx r3 <== NOT EXECUTED 30001220: e3a0000d mov r0, #13 ; 0xd <== NOT EXECUTED rtems_filesystem_freenode( &loc ); #endif return RTEMS_SUCCESSFUL; } 30001224: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30001228: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 3000122c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30001230: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001234: 11a0000d movne r0, sp <== NOT EXECUTED 30001238: 11a0e00f movne lr, pc <== NOT EXECUTED 3000123c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001240: eb002811 bl 3000b28c <__errno> <== NOT EXECUTED 30001244: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001248: e5803000 str r3, [r0] <== NOT EXECUTED 3000124c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30001250: eafffff3 b 30001224 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 30001254: e5856000 str r6, [r5] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 30001258: e1a00006 mov r0, r6 <== NOT EXECUTED 3000125c: eb002d40 bl 3000c764 <== NOT EXECUTED 30001260: e5850004 str r0, [r5, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 30001264: e5983050 ldr r3, [r8, #80] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 30001268: e59d1008 ldr r1, [sp, #8] <== 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; 3000126c: e5853008 str r3, [r5, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 30001270: e5982054 ldr r2, [r8, #84] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30001274: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; 30001278: e585200c str r2, [r5, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3000127c: 0a000009 beq 300012a8 <== NOT EXECUTED 30001280: e591301c ldr r3, [r1, #28] <== NOT EXECUTED 30001284: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30001288: 0a000006 beq 300012a8 <== NOT EXECUTED 3000128c: e1a0000d mov r0, sp <== NOT EXECUTED 30001290: e1a0e00f mov lr, pc <== NOT EXECUTED 30001294: e12fff13 bx r3 <== NOT EXECUTED 30001298: e1a00004 mov r0, r4 <== NOT EXECUTED 3000129c: eaffffe0 b 30001224 <== NOT EXECUTED 300012a0: e3a0000d mov r0, #13 ; 0xd <== NOT EXECUTED 300012a4: eaffffde b 30001224 <== NOT EXECUTED 300012a8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300012ac: eaffffdc b 30001224 <== NOT EXECUTED 3000627c : { /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 3000627c: e251c000 subs ip, r1, #0 ; 0x0 rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 30006280: e92d00f0 push {r4, r5, r6, r7} 30006284: e1a06000 mov r6, r0 30006288: e1a07002 mov r7, r2 /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 3000628c: 0a00003e beq 3000638c return RTEMS_INVALID_ADDRESS; if ( !registered_major ) 30006290: e3520000 cmp r2, #0 ; 0x0 30006294: 0a00003c beq 3000638c return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 30006298: e59c3000 ldr r3, [ip] 3000629c: e3530000 cmp r3, #0 ; 0x0 300062a0: 0a000036 beq 30006380 return RTEMS_INVALID_ADDRESS; *registered_major = 0; 300062a4: e3a03000 mov r3, #0 ; 0x0 /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 300062a8: e59f20e4 ldr r2, [pc, #228] ; 30006394 return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) return RTEMS_INVALID_ADDRESS; *registered_major = 0; 300062ac: e5873000 str r3, [r7] /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 300062b0: e5922000 ldr r2, [r2] 300062b4: e1520006 cmp r2, r6 300062b8: 93a0000a movls r0, #10 ; 0xa 300062bc: 9a00002b bls 30006370 /* * Test for initialise/open being present to indicate the driver slot is * in use. */ if ( major == 0 ) { 300062c0: e3560000 cmp r6, #0 ; 0x0 300062c4: 1a00001d bne 30006340 bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 300062c8: e2526001 subs r6, r2, #1 ; 0x1 300062cc: 0a000029 beq 30006378 300062d0: e1a03282 lsl r3, r2, #5 300062d4: e0433182 sub r3, r3, r2, lsl #3 300062d8: e59f20b8 ldr r2, [pc, #184] ; 30006398 300062dc: e2433018 sub r3, r3, #24 ; 0x18 300062e0: e5921000 ldr r1, [r2] 300062e4: e0811003 add r1, r1, r3 300062e8: ea000002 b 300062f8 300062ec: e2566001 subs r6, r6, #1 ; 0x1 300062f0: e2411018 sub r1, r1, #24 ; 0x18 300062f4: 0a00001f beq 30006378 if ( !_IO_Driver_address_table[major].initialization_entry && 300062f8: e5913000 ldr r3, [r1] * in use. */ if ( major == 0 ) { bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 300062fc: e1a05001 mov r5, r1 if ( !_IO_Driver_address_table[major].initialization_entry && 30006300: e3530000 cmp r3, #0 ; 0x0 30006304: 1afffff8 bne 300062ec 30006308: e5913004 ldr r3, [r1, #4] 3000630c: e3530000 cmp r3, #0 ; 0x0 30006310: 1afffff5 bne 300062ec if ( _IO_Driver_address_table[major].initialization_entry || _IO_Driver_address_table[major].open_entry ) return RTEMS_RESOURCE_IN_USE; _IO_Driver_address_table[major] = *driver_table; 30006314: e1a04005 mov r4, r5 30006318: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000631c: e8a4000f stmia r4!, {r0, r1, r2, r3} 30006320: e89c0003 ldm ip, {r0, r1} 30006324: e8840003 stm r4, {r0, r1} *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 30006328: e3a01000 mov r1, #0 ; 0x0 3000632c: e1a00006 mov r0, r6 30006330: e1a02001 mov r2, r1 _IO_Driver_address_table[major].open_entry ) return RTEMS_RESOURCE_IN_USE; _IO_Driver_address_table[major] = *driver_table; *registered_major = major; 30006334: e5876000 str r6, [r7] return rtems_io_initialize( major, 0, NULL ); } 30006338: e8bd00f0 pop {r4, r5, r6, r7} _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 3000633c: eaffff58 b 300060a4 if ( !found ) return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry || 30006340: e59f2050 ldr r2, [pc, #80] ; 30006398 30006344: e1a03286 lsl r3, r6, #5 30006348: e5921000 ldr r1, [r2] 3000634c: e0433186 sub r3, r3, r6, lsl #3 30006350: e7912003 ldr r2, [r1, r3] 30006354: e0815003 add r5, r1, r3 30006358: e3520000 cmp r2, #0 ; 0x0 3000635c: 1a000002 bne 3000636c 30006360: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 30006364: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30006368: 0affffe9 beq 30006314 <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 3000636c: e3a0000c mov r0, #12 ; 0xc } 30006370: e8bd00f0 pop {r4, r5, r6, r7} 30006374: e12fff1e bx lr _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 30006378: e3a00005 mov r0, #5 ; 0x5 3000637c: eafffffb b 30006370 return RTEMS_INVALID_ADDRESS; if ( !registered_major ) return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 30006380: e59c3004 ldr r3, [ip, #4] 30006384: e3530000 cmp r3, #0 ; 0x0 30006388: 1affffc5 bne 300062a4 _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 3000638c: e3a00009 mov r0, #9 ; 0x9 30006390: eafffff6 b 30006370 30006394: 3001a100 .word 0x3001a100 30006398: 3001a104 .word 0x3001a104 300014d4 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 300014d4: e92d4010 push {r4, lr} rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 300014d8: e59f40b4 ldr r4, [pc, #180] ; 30001594 * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 300014dc: e24dd004 sub sp, sp, #4 ; 0x4 rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 300014e0: e5940000 ldr r0, [r4] 300014e4: e3500000 cmp r0, #0 ; 0x0 300014e8: 0a00001a beq 30001558 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 300014ec: e3a01034 mov r1, #52 ; 0x34 300014f0: eb001e3b bl 30008de4 300014f4: e59f309c ldr r3, [pc, #156] ; 30001598 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 300014f8: 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, 300014fc: e5830000 str r0, [r3] 30001500: e1a02000 mov r2, r0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 30001504: 0a00001f beq 30001588 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++) 30001508: e5941000 ldr r1, [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; 3000150c: e59f3088 ldr r3, [pc, #136] ; 3000159c for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 30001510: e3510001 cmp r1, #1 ; 0x1 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; 30001514: e5830000 str r0, [r3] for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 30001518: 0a00000c beq 30001550 3000151c: e2803034 add r3, r0, #52 ; 0x34 30001520: e3a02001 mov r2, #1 ; 0x1 iop->data1 = iop + 1; 30001524: e2822001 add r2, r2, #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++) 30001528: e1520001 cmp r2, r1 iop->data1 = iop + 1; 3000152c: e503300c str r3, [r3, #-12] 30001530: 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++) 30001534: 1afffffa bne 30001524 30001538: e1a03202 lsl r3, r2, #4 3000153c: e0433102 sub r3, r3, r2, lsl #2 30001540: e0833002 add r3, r3, r2 30001544: e1a03103 lsl r3, r3, #2 30001548: e2433034 sub r3, r3, #52 ; 0x34 3000154c: e0802003 add r2, r0, r3 iop->data1 = iop + 1; iop->data1 = NULL; 30001550: e3a03000 mov r3, #0 ; 0x0 30001554: e5823028 str r3, [r2, #40] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 30001558: e59fc040 ldr ip, [pc, #64] ; 300015a0 3000155c: e59f0040 ldr r0, [pc, #64] ; 300015a4 30001560: e3a01001 mov r1, #1 ; 0x1 30001564: e3a02054 mov r2, #84 ; 0x54 30001568: e3a03000 mov r3, #0 ; 0x0 3000156c: e58dc000 str ip, [sp] 30001570: eb000be5 bl 3000450c 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 30001574: e3500000 cmp r0, #0 ; 0x0 30001578: 1a000004 bne 30001590 /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); } 3000157c: e28dd004 add sp, sp, #4 ; 0x4 30001580: e8bd4010 pop {r4, lr} /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); 30001584: ea001dd2 b 30008cd4 if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 30001588: e280001a add r0, r0, #26 ; 0x1a <== NOT EXECUTED 3000158c: eb000e3e bl 30004e8c <== NOT EXECUTED RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) rtems_fatal_error_occurred( rc ); 30001590: eb000e3d bl 30004e8c <== NOT EXECUTED 30001594: 3001520c .word 0x3001520c 30001598: 30015f00 .word 0x30015f00 3000159c: 30015f04 .word 0x30015f04 300015a0: 30015f08 .word 0x30015f08 300015a4: 4c42494f .word 0x4c42494f 30009134 : */ int rtems_libio_is_file_open( void *node_access ) { 30009134: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; int result=0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 30009138: e59f507c ldr r5, [pc, #124] ; 300091bc <== NOT EXECUTED 3000913c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30009140: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_file_open( void *node_access ) { 30009144: 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 ); 30009148: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000914c: ebffed92 bl 3000479c <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 30009150: e59f3068 ldr r3, [pc, #104] ; 300091c0 <== NOT EXECUTED 30009154: e59f2068 ldr r2, [pc, #104] ; 300091c4 <== NOT EXECUTED 30009158: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000915c: e5922000 ldr r2, [r2] <== NOT EXECUTED 30009160: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30009164: 0a00000a beq 30009194 <== NOT EXECUTED 30009168: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 3000916c: e592300c ldr r3, [r2, #12] <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 30009170: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 30009174: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30009178: 0a000002 beq 30009188 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 3000917c: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 30009180: e1530004 cmp r3, r4 <== NOT EXECUTED 30009184: 0a000007 beq 300091a8 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 30009188: e1510000 cmp r1, r0 <== NOT EXECUTED 3000918c: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 30009190: 3afffff5 bcc 3000916c <== NOT EXECUTED 30009194: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 30009198: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000919c: ebffedc5 bl 300048b8 <== NOT EXECUTED return result; } 300091a0: e1a00004 mov r0, r4 <== NOT EXECUTED 300091a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 300091a8: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 300091ac: e5950000 ldr r0, [r5] <== NOT EXECUTED 300091b0: ebffedc0 bl 300048b8 <== NOT EXECUTED return result; } 300091b4: e1a00004 mov r0, r4 <== NOT EXECUTED 300091b8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 300091bc: 30015f08 .word 0x30015f08 300091c0: 3001520c .word 0x3001520c 300091c4: 30015f00 .word 0x30015f00 300091c8 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 300091c8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; int result = 0; int i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 300091cc: e59f507c ldr r5, [pc, #124] ; 30009250 <== NOT EXECUTED 300091d0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300091d4: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 300091d8: 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 ); 300091dc: e5950000 ldr r0, [r5] <== NOT EXECUTED 300091e0: ebffed6d bl 3000479c <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 300091e4: e59f3068 ldr r3, [pc, #104] ; 30009254 <== NOT EXECUTED 300091e8: e59f2068 ldr r2, [pc, #104] ; 30009258 <== NOT EXECUTED 300091ec: e5930000 ldr r0, [r3] <== NOT EXECUTED 300091f0: e5922000 ldr r2, [r2] <== NOT EXECUTED 300091f4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300091f8: 0a00000a beq 30009228 <== NOT EXECUTED 300091fc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 30009200: e592300c ldr r3, [r2, #12] <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 30009204: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 30009208: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3000920c: 0a000002 beq 3000921c <== 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 ) { 30009210: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30009214: e1530004 cmp r3, r4 <== NOT EXECUTED 30009218: 0a000007 beq 3000923c <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 3000921c: e1510000 cmp r1, r0 <== NOT EXECUTED 30009220: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 30009224: 3afffff5 bcc 30009200 <== NOT EXECUTED 30009228: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 3000922c: e5950000 ldr r0, [r5] <== NOT EXECUTED 30009230: ebffeda0 bl 300048b8 <== NOT EXECUTED return result; } 30009234: e1a00004 mov r0, r4 <== NOT EXECUTED 30009238: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 3000923c: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 30009240: e5950000 ldr r0, [r5] <== NOT EXECUTED 30009244: ebffed9b bl 300048b8 <== NOT EXECUTED return result; } 30009248: e1a00004 mov r0, r4 <== NOT EXECUTED 3000924c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30009250: 30015f08 .word 0x30015f08 30009254: 3001520c .word 0x3001520c 30009258: 30015f00 .word 0x30015f00 3001f844 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 3001f844: e92d41f0 push {r4, r5, r6, r7, r8, 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); 3001f848: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 3001f84c: 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); 3001f850: e1a01000 mov r1, r0 <== NOT EXECUTED 3001f854: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 3001f858: eb0004f4 bl 30020c30 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 3001f85c: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 3001f860: 1a000029 bne 3001f90c <== NOT EXECUTED /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 3001f864: e59f70ec ldr r7, [pc, #236] ; 3001f958 <== NOT EXECUTED 3001f868: e59f50ec ldr r5, [pc, #236] ; 3001f95c <== NOT EXECUTED 3001f86c: e5973000 ldr r3, [r7] <== NOT EXECUTED 3001f870: e1530005 cmp r3, r5 <== NOT EXECUTED 3001f874: 0a000027 beq 3001f918 <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 3001f878: e5974000 ldr r4, [r7] <== NOT EXECUTED 3001f87c: e1a0c005 mov ip, r5 <== NOT EXECUTED 3001f880: e1a0e004 mov lr, r4 <== NOT EXECUTED 3001f884: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3001f888: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3001f88c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3001f890: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3001f894: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3001f898: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3001f89c: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001f8a0: e88e000f stm lr, {r0, r1, r2, r3} <== NOT EXECUTED rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 3001f8a4: e59f20b4 ldr r2, [pc, #180] ; 3001f960 <== 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*/ 3001f8a8: 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); 3001f8ac: 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*/ 3001f8b0: e4843014 str r3, [r4], #20 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 3001f8b4: e592c000 ldr ip, [r2] <== NOT EXECUTED 3001f8b8: e28cc018 add ip, ip, #24 ; 0x18 <== NOT EXECUTED 3001f8bc: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001f8c0: 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); 3001f8c4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001f8c8: e1a0200d mov r2, sp <== NOT EXECUTED 3001f8cc: e1a03001 mov r3, r1 <== NOT EXECUTED 3001f8d0: e59f008c ldr r0, [pc, #140] ; 3001f964 <== NOT EXECUTED 3001f8d4: ebff9147 bl 30003df8 <== NOT EXECUTED rtems_filesystem_root = loc; 3001f8d8: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001f8dc: e597c000 ldr ip, [r7] <== NOT EXECUTED 3001f8e0: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 3001f8e4: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 3001f8e8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3001f8ec: e1a0200d mov r2, sp <== NOT EXECUTED 3001f8f0: e1a03001 mov r3, r1 <== NOT EXECUTED 3001f8f4: e59f0068 ldr r0, [pc, #104] ; 3001f964 <== NOT EXECUTED 3001f8f8: ebff913e bl 30003df8 <== NOT EXECUTED rtems_filesystem_current = loc; 3001f8fc: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001f900: e597c000 ldr ip, [r7] <== NOT EXECUTED 3001f904: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3001f908: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 3001f90c: e1a00006 mov r0, r6 <== NOT EXECUTED 3001f910: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001f914: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED sc=rtems_task_ident(RTEMS_SELF,0,&task_id); if (sc != RTEMS_SUCCESSFUL) return sc; /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 3001f918: e2800040 add r0, r0, #64 ; 0x40 <== NOT EXECUTED 3001f91c: ebff932a bl 300045cc <== NOT EXECUTED if (!tmp) 3001f920: e2508000 subs r8, r0, #0 ; 0x0 <== NOT EXECUTED 3001f924: 03a0601a moveq r6, #26 ; 0x1a <== NOT EXECUTED 3001f928: 0afffff7 beq 3001f90c <== 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); 3001f92c: e1a00006 mov r0, r6 <== NOT EXECUTED 3001f930: e1a01007 mov r1, r7 <== NOT EXECUTED 3001f934: e59f202c ldr r2, [pc, #44] ; 3001f968 <== NOT EXECUTED 3001f938: eb0005c6 bl 30021058 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 3001f93c: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 3001f940: 05878000 streq r8, [r7] <== 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) { 3001f944: 0affffcb beq 3001f878 <== NOT EXECUTED /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 3001f948: e1a00008 mov r0, r8 <== NOT EXECUTED 3001f94c: ebff917e bl 30003f4c <== NOT EXECUTED 3001f950: e1a06004 mov r6, r4 <== NOT EXECUTED 3001f954: eaffffec b 3001f90c <== NOT EXECUTED 3001f958: 30044b08 .word 0x30044b08 3001f95c: 300594e0 .word 0x300594e0 3001f960: 300590c4 .word 0x300590c4 3001f964: 30041fa0 .word 0x30041fa0 3001f968: 3001f730 .word 0x3001f730 3001f794 : * 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) { 3001f794: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 3001f798: e1a05000 mov r5, r0 <== NOT EXECUTED 3001f79c: 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); 3001f7a0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001f7a4: e1a0200d mov r2, sp <== NOT EXECUTED 3001f7a8: e1a01000 mov r1, r0 <== NOT EXECUTED 3001f7ac: eb00051f bl 30020c30 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 3001f7b0: e2502000 subs r2, r0, #0 ; 0x0 <== NOT EXECUTED 3001f7b4: 1a00000d bne 3001f7f0 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 3001f7b8: e59f6078 ldr r6, [pc, #120] ; 3001f838 <== NOT EXECUTED 3001f7bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3001f7c0: e5964000 ldr r4, [r6] <== NOT EXECUTED 3001f7c4: e5942000 ldr r2, [r4] <== NOT EXECUTED 3001f7c8: e1520003 cmp r2, r3 <== NOT EXECUTED 3001f7cc: 0a00000a beq 3001f7fc <== NOT EXECUTED free_user_env(tmp); }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 3001f7d0: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 3001f7d4: e1a00005 mov r0, r5 <== NOT EXECUTED 3001f7d8: e59f1058 ldr r1, [pc, #88] ; 3001f838 <== NOT EXECUTED 3001f7dc: eb00066f bl 300211a0 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 3001f7e0: e2502000 subs r2, r0, #0 ; 0x0 <== NOT EXECUTED 3001f7e4: 0a00000b beq 3001f818 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 3001f7e8: e59f304c ldr r3, [pc, #76] ; 3001f83c <== NOT EXECUTED 3001f7ec: e5863000 str r3, [r6] <== NOT EXECUTED return sc; } 3001f7f0: e1a00002 mov r0, r2 <== NOT EXECUTED 3001f7f4: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 3001f7f8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_current_user_env->task_id==current_task_id) { /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 3001f7fc: e1a01006 mov r1, r6 <== NOT EXECUTED 3001f800: eb000641 bl 3002110c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 3001f804: e2502000 subs r2, r0, #0 ; 0x0 <== NOT EXECUTED 3001f808: 1afffff8 bne 3001f7f0 <== NOT EXECUTED free_user_env(tmp); 3001f80c: e1a00004 mov r0, r4 <== NOT EXECUTED 3001f810: ebffffc6 bl 3001f730 <== NOT EXECUTED 3001f814: eaffffed b 3001f7d0 <== NOT EXECUTED sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 3001f818: e59f2020 ldr r2, [pc, #32] ; 3001f840 <== NOT EXECUTED 3001f81c: e59f1014 ldr r1, [pc, #20] ; 3001f838 <== NOT EXECUTED 3001f820: eb00060c bl 30021058 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 3001f824: e2502000 subs r2, 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; 3001f828: 059d3004 ldreq r3, [sp, #4] <== NOT EXECUTED 3001f82c: 05863000 streq r3, [r6] <== 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) 3001f830: 1affffec bne 3001f7e8 <== NOT EXECUTED 3001f834: eaffffed b 3001f7f0 <== NOT EXECUTED 3001f838: 30044b08 .word 0x30044b08 3001f83c: 300594e0 .word 0x300594e0 3001f840: 3001f730 .word 0x3001f730 300090f4 : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 300090f4: e2003006 and r3, r0, #6 ; 0x6 <== NOT EXECUTED 300090f8: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 300090fc: e1a02000 mov r2, r0 <== NOT EXECUTED uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 30009100: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 30009104: 0a000003 beq 30009118 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 30009108: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 3000910c: 01a03122 lsreq r3, r2, #2 <== NOT EXECUTED 30009110: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30009114: 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 ) { 30009118: e3120001 tst r2, #1 ; 0x1 <== NOT EXECUTED fcntl_flags |= O_NONBLOCK; 3000911c: 13800901 orrne r0, r0, #16384 ; 0x4000 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 30009120: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED fcntl_flags |= O_APPEND; 30009124: 13800008 orrne r0, r0, #8 ; 0x8 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 30009128: e3120b01 tst r2, #1024 ; 0x400 <== NOT EXECUTED fcntl_flags |= O_CREAT; 3000912c: 13800c02 orrne r0, r0, #512 ; 0x200 <== NOT EXECUTED } return fcntl_flags; } 30009130: e12fff1e bx lr <== NOT EXECUTED 300046bc : * size and thus we skip updating the statistics. */ void rtems_malloc_statistics_at_free( void *pointer ) { 300046bc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 300046c0: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 300046c4: e1a01000 mov r1, r0 <== NOT EXECUTED size_t size; if (_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &size) ) { 300046c8: e1a0200d mov r2, sp <== NOT EXECUTED 300046cc: e59f0034 ldr r0, [pc, #52] ; 30004708 <== NOT EXECUTED 300046d0: eb0014c9 bl 300099fc <_Protected_heap_Get_block_size> <== NOT EXECUTED 300046d4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300046d8: 0a000008 beq 30004700 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 300046dc: e59d1000 ldr r1, [sp] <== NOT EXECUTED 300046e0: e59f3024 ldr r3, [pc, #36] ; 3000470c <== NOT EXECUTED 300046e4: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300046e8: e2834024 add r4, r3, #36 ; 0x24 <== NOT EXECUTED 300046ec: e8940030 ldm r4, {r4, r5} <== NOT EXECUTED 300046f0: e0911004 adds r1, r1, r4 <== NOT EXECUTED 300046f4: e0a22005 adc r2, r2, r5 <== NOT EXECUTED 300046f8: e5831024 str r1, [r3, #36] <== NOT EXECUTED 300046fc: e5832028 str r2, [r3, #40] <== NOT EXECUTED } } 30004700: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 30004704: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30004708: 30059040 .word 0x30059040 3000470c: 30059098 .word 0x30059098 30004710 : } void rtems_malloc_statistics_at_malloc( void *pointer ) { 30004710: 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 ) 30004714: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED } void rtems_malloc_statistics_at_malloc( void *pointer ) { 30004718: 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 ) 3000471c: 0a000014 beq 30004774 <== NOT EXECUTED void rtems_malloc_statistics_at_malloc( void *pointer ) { size_t actual_size = 0; 30004720: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30004724: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 30004728: 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); 3000472c: e1a01000 mov r1, r0 <== NOT EXECUTED 30004730: e1a0200d mov r2, sp <== NOT EXECUTED 30004734: e59f0040 ldr r0, [pc, #64] ; 3000477c <== NOT EXECUTED 30004738: eb0014af bl 300099fc <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 3000473c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30004740: e59fe038 ldr lr, [pc, #56] ; 30004780 <== NOT EXECUTED 30004744: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 30004748: e28e101c add r1, lr, #28 ; 0x1c <== NOT EXECUTED 3000474c: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 30004750: e59ec024 ldr ip, [lr, #36] <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 30004754: e0933001 adds r3, r3, r1 <== NOT EXECUTED 30004758: e0a44002 adc r4, r4, r2 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 3000475c: e59e0018 ldr r0, [lr, #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; 30004760: e06c2003 rsb r2, ip, r3 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 30004764: e58e301c str r3, [lr, #28] <== NOT EXECUTED 30004768: e58e4020 str r4, [lr, #32] <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 3000476c: e1520000 cmp r2, r0 <== NOT EXECUTED s->max_depth = current_depth; 30004770: 858e2018 strhi r2, [lr, #24] <== NOT EXECUTED } 30004774: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 30004778: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000477c: 30059040 .word 0x30059040 30004780: 30059098 .word 0x30059098 30004784 : void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 30004784: e59f1038 ldr r1, [pc, #56] ; 300047c4 <== NOT EXECUTED 30004788: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3000478c: e1a03001 mov r3, r1 <== NOT EXECUTED 30004790: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30004794: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 30004798: e4832004 str r2, [r3], #4 <== NOT EXECUTED 3000479c: e4832004 str r2, [r3], #4 <== NOT EXECUTED 300047a0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 300047a4: e4832004 str r2, [r3], #4 <== NOT EXECUTED 300047a8: e4832004 str r2, [r3], #4 <== NOT EXECUTED 300047ac: e4832004 str r2, [r3], #4 <== NOT EXECUTED 300047b0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 300047b4: e4832004 str r2, [r3], #4 <== NOT EXECUTED 300047b8: e5832000 str r2, [r3] <== NOT EXECUTED 300047bc: e5812004 str r2, [r1, #4] <== NOT EXECUTED } 300047c0: e12fff1e bx lr <== NOT EXECUTED 300047c4: 30059098 .word 0x30059098 30006920 : void rtems_panic( const char *printf_format, ... ) { 30006920: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED 30006924: 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); 30006928: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 3000692c: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 30006930: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED 30006934: ebffff83 bl 30006748 <== NOT EXECUTED va_end(arglist); } 30006938: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 3000693c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30006940: e12fff1e bx lr <== NOT EXECUTED 30005964 : rtems_status_code rtems_rate_monotonic_period( Objects_Id id, rtems_interval length ) { 30005964: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30005968: e1a06000 mov r6, r0 3000596c: e24dd004 sub sp, sp, #4 ; 0x4 30005970: e1a07001 mov r7, r1 RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 30005974: e59f0180 ldr r0, [pc, #384] ; 30005afc 30005978: e1a01006 mov r1, r6 3000597c: e1a0200d mov r2, sp 30005980: eb000887 bl 30007ba4 <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 30005984: e59d3000 ldr r3, [sp] 30005988: e1a05000 mov r5, r0 3000598c: e3530000 cmp r3, #0 ; 0x0 30005990: 0a000003 beq 300059a4 the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 30005994: e3a04004 mov r4, #4 ; 0x4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 30005998: e1a00004 mov r0, r4 3000599c: e28dd004 add sp, sp, #4 ; 0x4 300059a0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 300059a4: e59f4154 ldr r4, [pc, #340] ; 30005b00 300059a8: e5902050 ldr r2, [r0, #80] 300059ac: e5943000 ldr r3, [r4] 300059b0: e1520003 cmp r2, r3 300059b4: 0a000002 beq 300059c4 _Thread_Enable_dispatch(); 300059b8: eb000abb bl 300084ac <_Thread_Enable_dispatch> 300059bc: e3a04017 mov r4, #23 ; 0x17 300059c0: eafffff4 b 30005998 return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { 300059c4: e3570000 cmp r7, #0 ; 0x0 300059c8: 0a000031 beq 30005a94 } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 300059cc: e10f8000 mrs r8, CPSR 300059d0: e38830c0 orr r3, r8, #192 ; 0xc0 300059d4: e129f003 msr CPSR_fc, r3 switch ( the_period->state ) { 300059d8: e5903038 ldr r3, [r0, #56] 300059dc: e3530002 cmp r3, #2 ; 0x2 300059e0: 0a000014 beq 30005a38 300059e4: e3530004 cmp r3, #4 ; 0x4 300059e8: 0a000033 beq 30005abc 300059ec: e3530000 cmp r3, #0 ; 0x0 300059f0: 1affffe7 bne 30005994 case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 300059f4: e129f008 msr CPSR_fc, r8 /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 300059f8: ebffff61 bl 30005784 <_Rate_monotonic_Initiate_statistics> Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 300059fc: e59f2100 ldr r2, [pc, #256] ; 30005b04 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 30005a00: e3a04000 mov r4, #0 ; 0x0 the_period->state = RATE_MONOTONIC_ACTIVE; 30005a04: e3a03002 mov r3, #2 ; 0x2 30005a08: e5853038 str r3, [r5, #56] the_watchdog->routine = routine; 30005a0c: e585202c str r2, [r5, #44] the_watchdog->id = id; 30005a10: e5856030 str r6, [r5, #48] Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 30005a14: e585701c str r7, [r5, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30005a18: e2851010 add r1, r5, #16 ; 0x10 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 30005a1c: e5854018 str r4, [r5, #24] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 30005a20: e5854034 str r4, [r5, #52] _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 30005a24: e585704c str r7, [r5, #76] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30005a28: e59f00d8 ldr r0, [pc, #216] ; 30005b08 30005a2c: eb000fc9 bl 30009958 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 30005a30: eb000a9d bl 300084ac <_Thread_Enable_dispatch> 30005a34: eaffffd7 b 30005998 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 30005a38: ebffff71 bl 30005804 <_Rate_monotonic_Update_statistics> /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; 30005a3c: e3a03001 mov r3, #1 ; 0x1 30005a40: e5853038 str r3, [r5, #56] the_period->next_length = length; 30005a44: e585704c str r7, [r5, #76] _ISR_Enable( level ); 30005a48: e129f008 msr CPSR_fc, r8 _Thread_Executing->Wait.id = the_period->Object.id; 30005a4c: e5943000 ldr r3, [r4] 30005a50: e5952008 ldr r2, [r5, #8] _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 30005a54: e1a00003 mov r0, r3 the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; 30005a58: e5832020 str r2, [r3, #32] _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 30005a5c: e3a01901 mov r1, #16384 ; 0x4000 30005a60: eb000d26 bl 30008f00 <_Thread_Set_state> /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 30005a64: e10f1000 mrs r1, CPSR 30005a68: e38130c0 orr r3, r1, #192 ; 0xc0 30005a6c: e129f003 msr CPSR_fc, r3 local_state = the_period->state; the_period->state = RATE_MONOTONIC_ACTIVE; 30005a70: e3a03002 mov r3, #2 ; 0x2 /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); local_state = the_period->state; 30005a74: e5952038 ldr r2, [r5, #56] the_period->state = RATE_MONOTONIC_ACTIVE; 30005a78: e5853038 str r3, [r5, #56] _ISR_Enable( level ); 30005a7c: e129f001 msr CPSR_fc, r1 /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) 30005a80: e3520003 cmp r2, #3 ; 0x3 30005a84: 0a000018 beq 30005aec _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 30005a88: eb000a87 bl 300084ac <_Thread_Enable_dispatch> 30005a8c: e3a04000 mov r4, #0 ; 0x0 30005a90: eaffffc0 b 30005998 _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 30005a94: e5900038 ldr r0, [r0, #56] 30005a98: e3500000 cmp r0, #0 ; 0x0 30005a9c: 03a0400b moveq r4, #11 ; 0xb 30005aa0: 0affffe2 beq 30005a30 30005aa4: e2403003 sub r3, r0, #3 ; 0x3 30005aa8: e3530001 cmp r3, #1 ; 0x1 30005aac: 93a04006 movls r4, #6 ; 0x6 30005ab0: 83a04000 movhi r4, #0 ; 0x0 ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 30005ab4: eb000a7c bl 300084ac <_Thread_Enable_dispatch> 30005ab8: eaffffb6 b 30005998 case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 30005abc: ebffff50 bl 30005804 <_Rate_monotonic_Update_statistics> _ISR_Enable( level ); 30005ac0: e129f008 msr CPSR_fc, r8 the_period->state = RATE_MONOTONIC_ACTIVE; 30005ac4: e3a03002 mov r3, #2 ; 0x2 30005ac8: e5853038 str r3, [r5, #56] Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 30005acc: e585701c str r7, [r5, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30005ad0: e2851010 add r1, r5, #16 ; 0x10 the_period->next_length = length; 30005ad4: e585704c str r7, [r5, #76] 30005ad8: e59f0028 ldr r0, [pc, #40] ; 30005b08 30005adc: eb000f9d bl 30009958 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 30005ae0: e3a04006 mov r4, #6 ; 0x6 30005ae4: eb000a70 bl 300084ac <_Thread_Enable_dispatch> 30005ae8: eaffffaa b 30005998 /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 30005aec: e5940000 ldr r0, [r4] <== NOT EXECUTED 30005af0: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED 30005af4: eb000966 bl 30008094 <_Thread_Clear_state> <== NOT EXECUTED 30005af8: eaffffe2 b 30005a88 <== NOT EXECUTED 30005afc: 3001a808 .word 0x3001a808 30005b00: 3001a9e4 .word 0x3001a9e4 30005b04: 30005e14 .word 0x30005e14 30005b08: 3001aa04 .word 0x3001aa04 30011000 : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 30011000: e92d41f0 push {r4, r5, r6, r7, r8, lr} Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Region_Control *the_region; if ( !starting_address ) 30011004: e2517000 subs r7, r1, #0 ; 0x0 rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 30011008: e1a04000 mov r4, r0 3001100c: e24dd008 sub sp, sp, #8 ; 0x8 30011010: 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 ) 30011014: 03a04009 moveq r4, #9 ; 0x9 30011018: 0a000020 beq 300110a0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 3001101c: e59f80a0 ldr r8, [pc, #160] ; 300110c4 30011020: e5980000 ldr r0, [r8] 30011024: eb0008fe bl 30013424 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 30011028: e1a01004 mov r1, r4 3001102c: e59f0094 ldr r0, [pc, #148] ; 300110c8 30011030: e1a0200d mov r2, sp 30011034: eb000fc4 bl 30014f4c <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 30011038: e59d4000 ldr r4, [sp] 3001103c: e1a05000 mov r5, r0 30011040: e3540000 cmp r4, #0 ; 0x0 30011044: 1a000018 bne 300110ac case OBJECTS_LOCAL: heap_status = _Heap_Extend( 30011048: e1a01007 mov r1, r7 3001104c: e1a02006 mov r2, r6 30011050: e2800068 add r0, r0, #104 ; 0x68 30011054: e28d3004 add r3, sp, #4 ; 0x4 30011058: eb000c0f bl 3001409c <_Heap_Extend> starting_address, length, &amount_extended ); switch ( heap_status ) { 3001105c: e3500001 cmp r0, #1 ; 0x1 30011060: 03a04009 moveq r4, #9 ; 0x9 30011064: 0a00000b beq 30011098 30011068: 2a000007 bcs 3001108c case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 3001106c: e59d1004 ldr r1, [sp, #4] 30011070: e5952054 ldr r2, [r5, #84] the_region->maximum_segment_size += amount_extended; 30011074: e595305c ldr r3, [r5, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 30011078: e0822001 add r2, r2, r1 the_region->maximum_segment_size += amount_extended; 3001107c: e0833001 add r3, r3, r1 30011080: e585305c str r3, [r5, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 30011084: e5852054 str r2, [r5, #84] 30011088: ea000002 b 30011098 starting_address, length, &amount_extended ); switch ( heap_status ) { 3001108c: e3500002 cmp r0, #2 ; 0x2 30011090: 0a000009 beq 300110bc case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 30011094: e3a04019 mov r4, #25 ; 0x19 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 30011098: e5980000 ldr r0, [r8] 3001109c: eb0008fc bl 30013494 <_API_Mutex_Unlock> return return_status; } 300110a0: e1a00004 mov r0, r4 300110a4: e28dd008 add sp, sp, #8 ; 0x8 300110a8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( id, &location ); switch ( location ) { 300110ac: e3540001 cmp r4, #1 ; 0x1 300110b0: 03a04004 moveq r4, #4 ; 0x4 300110b4: 1afffff6 bne 30011094 300110b8: eafffff6 b 30011098 switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 300110bc: e3a04018 mov r4, #24 ; 0x18 300110c0: eafffff4 b 30011098 300110c4: 300313fc .word 0x300313fc 300110c8: 300311ec .word 0x300311ec 300113e8 : Objects_Id id, void *segment, size_t size, size_t *old_size ) { 300113e8: 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 ) 300113ec: e253a000 subs sl, r3, #0 ; 0x0 Objects_Id id, void *segment, size_t size, size_t *old_size ) { 300113f0: e24dd010 sub sp, sp, #16 ; 0x10 300113f4: e1a04000 mov r4, r0 300113f8: e1a05001 mov r5, r1 300113fc: e1a06002 mov r6, r2 uint32_t osize; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) 30011400: 0a000028 beq 300114a8 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 30011404: e59f70b4 ldr r7, [pc, #180] ; 300114c0 30011408: e5970000 ldr r0, [r7] 3001140c: eb000804 bl 30013424 <_API_Mutex_Lock> 30011410: e1a01004 mov r1, r4 30011414: e59f00a8 ldr r0, [pc, #168] ; 300114c4 30011418: e28d2008 add r2, sp, #8 ; 0x8 3001141c: eb000eca bl 30014f4c <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 30011420: e59d3008 ldr r3, [sp, #8] 30011424: e1a08000 mov r8, r0 30011428: e3530000 cmp r3, #0 ; 0x0 3001142c: 0a000007 beq 30011450 30011430: e3530001 cmp r3, #1 ; 0x1 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 30011434: e5970000 ldr r0, [r7] return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 30011438: 03a04004 moveq r4, #4 ; 0x4 3001143c: 13a04019 movne r4, #25 ; 0x19 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 30011440: eb000813 bl 30013494 <_API_Mutex_Unlock> return return_status; } 30011444: e1a00004 mov r0, r4 30011448: e28dd010 add sp, sp, #16 ; 0x10 3001144c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 30011450: e1a01005 mov r1, r5 30011454: e28d3004 add r3, sp, #4 ; 0x4 30011458: e28dc00c add ip, sp, #12 ; 0xc 3001145c: e1a02006 mov r2, r6 30011460: e2800068 add r0, r0, #104 ; 0x68 30011464: e58dc000 str ip, [sp] 30011468: eb000c95 bl 300146c4 <_Heap_Resize_block> segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 3001146c: e59d3004 ldr r3, [sp, #4] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 30011470: e2505000 subs r5, r0, #0 ; 0x0 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 30011474: e58a3000 str r3, [sl] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 30011478: 1a000005 bne 30011494 3001147c: e59d400c ldr r4, [sp, #12] <== NOT EXECUTED 30011480: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 30011484: 1a000009 bne 300114b0 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); 30011488: e5970000 ldr r0, [r7] <== NOT EXECUTED 3001148c: eb000800 bl 30013494 <_API_Mutex_Unlock> <== NOT EXECUTED 30011490: eaffffeb b 30011444 <== NOT EXECUTED 30011494: e5970000 ldr r0, [r7] 30011498: eb0007fd bl 30013494 <_API_Mutex_Unlock> return 3001149c: e3550001 cmp r5, #1 ; 0x1 300114a0: 03a0400d moveq r4, #13 ; 0xd 300114a4: 0affffe6 beq 30011444 return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 300114a8: e3a04009 mov r4, #9 ; 0x9 300114ac: eaffffe4 b 30011444 *old_size = (uint32_t) osize; _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) _Region_Process_queue( the_region ); /* unlocks allocator */ 300114b0: e1a00008 mov r0, r8 <== NOT EXECUTED 300114b4: eb001eee bl 30019074 <_Region_Process_queue> <== NOT EXECUTED 300114b8: e1a04005 mov r4, r5 <== NOT EXECUTED 300114bc: eaffffe0 b 30011444 <== NOT EXECUTED 300114c0: 300313fc .word 0x300313fc 300114c4: 300311ec .word 0x300311ec 3000450c : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 3000450c: 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 ) ) 30004510: e250a000 subs sl, r0, #0 ; 0x0 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 30004514: e24dd018 sub sp, sp, #24 ; 0x18 30004518: e1a06001 mov r6, r1 3000451c: e1a04002 mov r4, r2 30004520: e1a08003 mov r8, r3 register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attributes; CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) 30004524: 02800003 addeq r0, r0, #3 ; 0x3 30004528: 0a000037 beq 3000460c return RTEMS_INVALID_NAME; if ( !id ) 3000452c: e59d3038 ldr r3, [sp, #56] 30004530: e3530000 cmp r3, #0 ; 0x0 30004534: 03a00009 moveq r0, #9 ; 0x9 30004538: 0a000033 beq 3000460c return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 3000453c: e21230c0 ands r3, r2, #192 ; 0xc0 30004540: 02025030 andeq r5, r2, #48 ; 0x30 30004544: 1a000032 bne 30004614 if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 30004548: e3550000 cmp r5, #0 ; 0x0 3000454c: 0a000002 beq 3000455c 30004550: e3560001 cmp r6, #1 ; 0x1 30004554: 83a0000a movhi r0, #10 ; 0xa 30004558: 8a00002b bhi 3000460c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 3000455c: e59f218c ldr r2, [pc, #396] ; 300046f0 30004560: e5923000 ldr r3, [r2] 30004564: e2833001 add r3, r3, #1 ; 0x1 30004568: 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 ); 3000456c: e59f9180 ldr r9, [pc, #384] ; 300046f4 30004570: e1a00009 mov r0, r9 30004574: eb00050c bl 300059ac <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 30004578: e2507000 subs r7, r0, #0 ; 0x0 3000457c: 0a000048 beq 300046a4 * 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 ) ) { 30004580: e3550000 cmp r5, #0 ; 0x0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 30004584: e5874010 str r4, [r7, #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 ) ) { 30004588: 0a00002e beq 30004648 CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 3000458c: e3140040 tst r4, #64 ; 0x40 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 30004590: 13a03002 movne r3, #2 ; 0x2 30004594: 158d3008 strne r3, [sp, #8] */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 30004598: 1a000007 bne 300045bc the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 3000459c: e3140080 tst r4, #128 ; 0x80 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 300045a0: 13a03003 movne r3, #3 ; 0x3 300045a4: 158d3008 strne r3, [sp, #8] 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 ) ) 300045a8: 1a000003 bne 300045bc the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; else if ( _Attributes_Is_priority( attribute_set ) ) 300045ac: e2143004 ands r3, r4, #4 ; 0x4 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; 300045b0: 13a03001 movne r3, #1 ; 0x1 300045b4: 158d3008 strne r3, [sp, #8] else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; 300045b8: 058d3008 streq r3, [sp, #8] if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 300045bc: e3550010 cmp r5, #16 ; 0x10 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; 300045c0: 13a03002 movne r3, #2 ; 0x2 the_mutex_attributes.only_owner_release = FALSE; 300045c4: 13a02000 movne r2, #0 ; 0x0 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; 300045c8: 158d3000 strne r3, [sp] the_mutex_attributes.only_owner_release = FALSE; 300045cc: 15cd2004 strbne r2, [sp, #4] the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 300045d0: 0a000036 beq 300046b0 the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; mutex_status = _CORE_mutex_Initialize( 300045d4: e3560001 cmp r6, #1 ; 0x1 300045d8: 13a02000 movne r2, #0 ; 0x0 300045dc: 03a02001 moveq r2, #1 ; 0x1 300045e0: e2870014 add r0, r7, #20 ; 0x14 300045e4: 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; 300045e8: e58d800c str r8, [sp, #12] mutex_status = _CORE_mutex_Initialize( 300045ec: eb000304 bl 30005204 <_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 ) { 300045f0: e3500006 cmp r0, #6 ; 0x6 300045f4: 1a000020 bne 3000467c */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 300045f8: e59f00f4 ldr r0, [pc, #244] ; 300046f4 <== NOT EXECUTED 300045fc: e1a01007 mov r1, r7 <== NOT EXECUTED 30004600: eb0005d1 bl 30005d4c <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 30004604: eb00086c bl 300067bc <_Thread_Enable_dispatch> <== NOT EXECUTED 30004608: e3a00013 mov r0, #19 ; 0x13 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 3000460c: e28dd018 add sp, sp, #24 ; 0x18 30004610: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 30004614: e2025030 and r5, r2, #48 ; 0x30 #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 30004618: e3550010 cmp r5, #16 ; 0x10 3000461c: 0a000003 beq 30004630 30004620: e3550020 cmp r5, #32 ; 0x20 30004624: 0a000001 beq 30004630 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 30004628: e3a0000b mov r0, #11 ; 0xb 3000462c: eafffff6 b 3000460c #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 30004630: e3140004 tst r4, #4 ; 0x4 30004634: 0afffffb beq 30004628 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 30004638: e35300c0 cmp r3, #192 ; 0xc0 3000463c: 1affffc1 bne 30004548 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 30004640: e3a0000b mov r0, #11 ; 0xb 30004644: eafffff0 b 3000460c _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) 30004648: e3140004 tst r4, #4 ; 0x4 the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 3000464c: 13a03001 movne r3, #1 ; 0x1 /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 30004650: 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; 30004654: 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( 30004658: e1a02006 mov r2, r6 /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 3000465c: 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( 30004660: e2870014 add r0, r7, #20 ; 0x14 30004664: 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; 30004668: 058d5014 streq r5, [sp, #20] /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 3000466c: 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; 30004670: e58dc00c str ip, [sp, #12] /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 30004674: e58dc000 str ip, [sp] the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 30004678: eb0003b5 bl 30005554 <_CORE_semaphore_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 3000467c: e5971008 ldr r1, [r7, #8] 30004680: e599201c ldr r2, [r9, #28] 30004684: e1a03801 lsl r3, r1, #16 30004688: e7827723 str r7, [r2, r3, lsr #14] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 3000468c: e59d3038 ldr r3, [sp, #56] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 30004690: e587a00c str sl, [r7, #12] 30004694: e5831000 str r1, [r3] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 30004698: eb000847 bl 300067bc <_Thread_Enable_dispatch> 3000469c: e3a00000 mov r0, #0 ; 0x0 300046a0: eaffffd9 b 3000460c _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 300046a4: eb000844 bl 300067bc <_Thread_Enable_dispatch> 300046a8: e3a00005 mov r0, #5 ; 0x5 300046ac: eaffffd6 b 3000460c if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 300046b0: 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; 300046b4: e3a03000 mov r3, #0 ; 0x0 300046b8: e58d3000 str r3, [sp] switch ( the_mutex_attributes.discipline ) { 300046bc: e3520003 cmp r2, #3 ; 0x3 300046c0: 979ff102 ldrls pc, [pc, r2, lsl #2] 300046c4: eaffffc2 b 300045d4 <== NOT EXECUTED 300046c8: 300046e4 .word 0x300046e4 <== NOT EXECUTED 300046cc: 300046e4 .word 0x300046e4 <== NOT EXECUTED 300046d0: 300046d8 .word 0x300046d8 <== NOT EXECUTED 300046d4: 300046d8 .word 0x300046d8 <== 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; 300046d8: e3a03001 mov r3, #1 ; 0x1 300046dc: e5cd3004 strb r3, [sp, #4] 300046e0: eaffffbb b 300045d4 the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { case CORE_MUTEX_DISCIPLINES_FIFO: case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; 300046e4: e3a03000 mov r3, #0 ; 0x0 300046e8: e5cd3004 strb r3, [sp, #4] 300046ec: eaffffb8 b 300045d4 300046f0: 3001606c .word 0x3001606c 300046f4: 30015f9c .word 0x30015f9c 30020b84 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 30020b84: e52de004 push {lr} ; (str lr, [sp, #-4]!) 30020b88: e24dd004 sub sp, sp, #4 ; 0x4 30020b8c: e1a01000 mov r1, r0 30020b90: e1a0200d mov r2, sp 30020b94: e59f004c ldr r0, [pc, #76] ; 30020be8 30020b98: ebffa2de bl 30009718 <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 30020b9c: e59d1000 ldr r1, [sp] 30020ba0: e3510000 cmp r1, #0 ; 0x0 30020ba4: 13a00004 movne r0, #4 ; 0x4 30020ba8: 1a000008 bne 30020bd0 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 30020bac: e5903010 ldr r3, [r0, #16] 30020bb0: e2133030 ands r3, r3, #48 ; 0x30 30020bb4: 1a000007 bne 30020bd8 &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 30020bb8: e2800014 add r0, r0, #20 ; 0x14 <== NOT EXECUTED 30020bbc: e1a01003 mov r1, r3 <== NOT EXECUTED 30020bc0: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30020bc4: ebffa014 bl 30008c1c <_CORE_semaphore_Flush> <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 30020bc8: ebffa52d bl 3000a084 <_Thread_Enable_dispatch> 30020bcc: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 30020bd0: e28dd004 add sp, sp, #4 ; 0x4 30020bd4: e8bd8000 pop {pc} the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Flush( 30020bd8: e2800014 add r0, r0, #20 ; 0x14 30020bdc: e3a02001 mov r2, #1 ; 0x1 30020be0: ebff9f39 bl 300088cc <_CORE_mutex_Flush> 30020be4: eafffff7 b 30020bc8 30020be8: 300590dc .word 0x300590dc 30013bf4 : */ void rtems_shutdown_executive( uint32_t result ) { 30013bf4: e52de004 push {lr} ; (str lr, [sp, #-4]!) if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 30013bf8: e59f2028 ldr r2, [pc, #40] ; 30013c28 */ void rtems_shutdown_executive( uint32_t result ) { 30013bfc: e24dd030 sub sp, sp, #48 ; 0x30 if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 30013c00: e5923000 ldr r3, [r2] 30013c04: e3530004 cmp r3, #4 ; 0x4 30013c08: 0a000004 beq 30013c20 30013c0c: e3a03004 mov 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 ); 30013c10: e1a0000d mov r0, sp 30013c14: e59f1010 ldr r1, [pc, #16] ; 30013c2c 30013c18: e5823000 str r3, [r2] 30013c1c: ebffd05a bl 30007d8c <_CPU_Context_switch> _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } } 30013c20: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED 30013c24: e8bd8000 pop {pc} <== NOT EXECUTED 30013c28: 30016214 .word 0x30016214 30013c2c: 3001603c .word 0x3001603c 30002b58 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30002b58: e1a0c00d mov ip, sp <== NOT EXECUTED 30002b5c: e92dd830 push {r4, r5, fp, ip, lr, pc} <== NOT EXECUTED Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30002b60: e59f407c ldr r4, [pc, #124] ; 30002be4 <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30002b64: e24cb004 sub fp, ip, #4 ; 0x4 <== NOT EXECUTED Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30002b68: e5943000 ldr r3, [r4] <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 30002b6c: e59300c8 ldr r0, [r3, #200] <== NOT EXECUTED 30002b70: e15b0000 cmp fp, r0 <== NOT EXECUTED 30002b74: 33a05000 movcc r5, #0 ; 0x0 <== NOT EXECUTED 30002b78: 3a000004 bcc 30002b90 <== NOT EXECUTED 30002b7c: e59330c4 ldr r3, [r3, #196] <== NOT EXECUTED 30002b80: e0803003 add r3, r0, r3 <== NOT EXECUTED 30002b84: e15b0003 cmp fp, r3 <== NOT EXECUTED 30002b88: 83a05000 movhi r5, #0 ; 0x0 <== NOT EXECUTED 30002b8c: 93a05001 movls r5, #1 ; 0x1 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 30002b90: e59f3050 ldr r3, [pc, #80] ; 30002be8 <== NOT EXECUTED 30002b94: e5932000 ldr r2, [r3] <== NOT EXECUTED 30002b98: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30002b9c: 03a01001 moveq r1, #1 ; 0x1 <== NOT EXECUTED 30002ba0: 1a000008 bne 30002bc8 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 30002ba4: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 30002ba8: 0a000002 beq 30002bb8 <== NOT EXECUTED 30002bac: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30002bb0: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30002bb4: 189da830 ldmne sp, {r4, r5, fp, sp, pc} <== NOT EXECUTED return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 30002bb8: e5940000 ldr r0, [r4] <== NOT EXECUTED 30002bbc: ebffffc9 bl 30002ae8 <== NOT EXECUTED 30002bc0: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return true; } 30002bc4: e89da830 ldm sp, {r4, r5, fp, sp, pc} <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { pattern_ok = (!memcmp( 30002bc8: e59f101c ldr r1, [pc, #28] ; 30002bec <== NOT EXECUTED 30002bcc: e2800008 add r0, r0, #8 ; 0x8 <== NOT EXECUTED 30002bd0: e3a02010 mov r2, #16 ; 0x10 <== NOT EXECUTED 30002bd4: eb00b1d5 bl 3002f330 <== NOT EXECUTED 30002bd8: e2701001 rsbs r1, r0, #1 ; 0x1 <== NOT EXECUTED 30002bdc: 33a01000 movcc r1, #0 ; 0x0 <== NOT EXECUTED 30002be0: eaffffef b 30002ba4 <== NOT EXECUTED 30002be4: 30059264 .word 0x30059264 30002be8: 30045fcc .word 0x30045fcc 30002bec: 30059010 .word 0x30059010 30002ad8 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 30002ad8: e59f1004 ldr r1, [pc, #4] ; 30002ae4 <== NOT EXECUTED 30002adc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30002ae0: eaffffe1 b 30002a6c <== NOT EXECUTED 30002ae4: 30005580 .word 0x30005580 30002a6c : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 30002a6c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED print_context = context; 30002a70: e59f704c ldr r7, [pc, #76] ; 30002ac4 <== NOT EXECUTED print_handler = print; 30002a74: e59f604c ldr r6, [pc, #76] ; 30002ac8 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 30002a78: e1a04001 mov r4, r1 <== NOT EXECUTED 30002a7c: e1a05000 mov r5, r0 <== NOT EXECUTED print_context = context; print_handler = print; 30002a80: e5861000 str r1, [r6] <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 30002a84: e5870000 str r0, [r7] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 30002a88: e59f103c ldr r1, [pc, #60] ; 30002acc <== NOT EXECUTED 30002a8c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002a90: e12fff14 bx r4 <== NOT EXECUTED (*print)( context, 30002a94: e59f1034 ldr r1, [pc, #52] ; 30002ad0 <== NOT EXECUTED 30002a98: e1a00005 mov r0, r5 <== NOT EXECUTED 30002a9c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002aa0: 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 ); 30002aa4: e59f0028 ldr r0, [pc, #40] ; 30002ad4 <== NOT EXECUTED 30002aa8: eb001972 bl 30009078 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 30002aac: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30002ab0: ebffff93 bl 30002904 <== NOT EXECUTED print_context = NULL; 30002ab4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED print_handler = NULL; 30002ab8: 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; 30002abc: e5873000 str r3, [r7] <== NOT EXECUTED print_handler = NULL; } 30002ac0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30002ac4: 30045fd0 .word 0x30045fd0 30002ac8: 30045fd4 .word 0x30045fd4 30002acc: 3003fcd0 .word 0x3003fcd0 30002ad0: 3003fce8 .word 0x3003fce8 30002ad4: 30002904 .word 0x30002904 30002bf0 : */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 30002bf0: e1a0c00d mov ip, sp 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; 30002bf4: e59020c8 ldr r2, [r0, #200] */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 30002bf8: e92dd810 push {r4, fp, ip, lr, pc} 30002bfc: e24cb004 sub fp, ip, #4 ; 0x4 ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 30002c00: e15b0002 cmp fp, r2 */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 30002c04: 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; 30002c08: e2820008 add r0, r2, #8 ; 0x8 ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 30002c0c: 3a000003 bcc 30002c20 return false; } if ( sp > (the_stack->area + the_stack->size) ) { 30002c10: e59430c4 ldr r3, [r4, #196] 30002c14: e0823003 add r3, r2, r3 30002c18: e15b0003 cmp fp, r3 30002c1c: 9a000007 bls 30002c40 /* * 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, 30002c20: e59f1034 ldr r1, [pc, #52] ; 30002c5c <== NOT EXECUTED 30002c24: e3a02010 mov r2, #16 ; 0x10 <== NOT EXECUTED 30002c28: eb00b1c0 bl 3002f330 <== NOT EXECUTED 30002c2c: e2701001 rsbs r1, r0, #1 ; 0x1 <== NOT EXECUTED 30002c30: 33a01000 movcc r1, #0 ; 0x0 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 30002c34: e1a00004 mov r0, r4 <== NOT EXECUTED } } 30002c38: e89d6810 ldm sp, {r4, 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 ); 30002c3c: eaffffa9 b 30002ae8 <== NOT EXECUTED /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, 30002c40: e59f1014 ldr r1, [pc, #20] ; 30002c5c 30002c44: e3a02010 mov r2, #16 ; 0x10 30002c48: eb00b1b8 bl 3002f330 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 30002c4c: e3500000 cmp r0, #0 ; 0x0 30002c50: 13a01000 movne r1, #0 ; 0x0 30002c54: 1afffff6 bne 30002c34 30002c58: e89da810 ldm sp, {r4, fp, sp, pc} 30002c5c: 30059010 .word 0x30059010 30006738 : const char * rtems_status_text( rtems_status_code status ) { 30006738: e1a01000 mov r1, r0 <== NOT EXECUTED return rtems_assoc_name_by_local(rtems_status_assoc, status); 3000673c: e59f0000 ldr r0, [pc, #0] ; 30006744 <== NOT EXECUTED 30006740: ea002840 b 30010848 <== NOT EXECUTED 30006744: 30020550 .word 0x30020550 300021a4 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 300021a4: e59f3018 ldr r3, [pc, #24] ; 300021c4 <== NOT EXECUTED 300021a8: e5830000 str r0, [r3] <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 300021ac: e59f0014 ldr r0, [pc, #20] ; 300021c8 <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 300021b0: e59f3014 ldr r3, [pc, #20] ; 300021cc <== NOT EXECUTED int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; 300021b4: e5801000 str r1, [r0] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 300021b8: e5832000 str r2, [r3] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 300021bc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300021c0: e12fff1e bx lr <== NOT EXECUTED 300021c4: 300157fc .word 0x300157fc 300021c8: 30015800 .word 0x30015800 300021cc: 30015804 .word 0x30015804 300037a8 : } } rtems_status_code rtems_termios_close (void *arg) { 300037a8: e92d4070 push {r4, r5, r6, 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); 300037ac: e59f6188 ldr r6, [pc, #392] ; 3000393c rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 300037b0: e5903000 ldr r3, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 300037b4: e3a01000 mov r1, #0 ; 0x0 } } rtems_status_code rtems_termios_close (void *arg) { 300037b8: 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); 300037bc: e1a02001 mov r2, r1 300037c0: e5960000 ldr r0, [r6] rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 300037c4: e5934028 ldr r4, [r3, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 300037c8: eb0003f3 bl 3000479c if (sc != RTEMS_SUCCESSFUL) 300037cc: e3500000 cmp r0, #0 ; 0x0 300037d0: 1a000046 bne 300038f0 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 300037d4: e5943008 ldr r3, [r4, #8] 300037d8: e2433001 sub r3, r3, #1 ; 0x1 300037dc: e3530000 cmp r3, #0 ; 0x0 300037e0: e5843008 str r3, [r4, #8] 300037e4: 1a000030 bne 300038ac if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 300037e8: e59430cc ldr r3, [r4, #204] 300037ec: e59f214c ldr r2, [pc, #332] ; 30003940 300037f0: e1a03183 lsl r3, r3, #3 300037f4: e2833001 add r3, r3, #1 ; 0x1 300037f8: e7923103 ldr r3, [r2, r3, lsl #2] 300037fc: e3530000 cmp r3, #0 ; 0x0 30003800: 0a00003b beq 300038f4 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 30003804: e1a00004 mov r0, r4 <== NOT EXECUTED 30003808: e1a0e00f mov lr, pc <== NOT EXECUTED 3000380c: e12fff13 bx r3 <== NOT EXECUTED * default: just flush output buffer */ drainOutput (tty); } if (tty->device.outputUsesInterrupts 30003810: e59430b4 ldr r3, [r4, #180] 30003814: e3530002 cmp r3, #2 ; 0x2 30003818: 0a00002a beq 300038c8 tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 3000381c: e594309c ldr r3, [r4, #156] 30003820: e3530000 cmp r3, #0 ; 0x0 (*tty->device.lastClose)(tty->major, tty->minor, arg); 30003824: 11a02005 movne r2, r5 30003828: 1594000c ldrne r0, [r4, #12] 3000382c: 15941010 ldrne r1, [r4, #16] 30003830: 11a0e00f movne lr, pc 30003834: 112fff13 bxne r3 if (tty->forw == NULL) { 30003838: e5941000 ldr r1, [r4] 3000383c: e3510000 cmp r1, #0 ; 0x0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 30003840: 15943004 ldrne r3, [r4, #4] 30003844: 15813004 strne r3, [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) { 30003848: 0a00002c beq 30003900 } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 3000384c: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 30003850: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 30003854: 15821000 strne r1, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 30003858: 0a000032 beq 30003928 <== NOT EXECUTED } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); 3000385c: e5940014 ldr r0, [r4, #20] 30003860: eb0003a4 bl 300046f8 rtems_semaphore_delete (tty->osem); 30003864: e5940018 ldr r0, [r4, #24] 30003868: eb0003a2 bl 300046f8 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 3000386c: e594008c ldr r0, [r4, #140] 30003870: eb0003a0 bl 300046f8 if ((tty->device.pollRead == NULL) || 30003874: e59430a0 ldr r3, [r4, #160] 30003878: e3530000 cmp r3, #0 ; 0x0 3000387c: 0a00000e beq 300038bc 30003880: e59430b4 ldr r3, [r4, #180] 30003884: e3530002 cmp r3, #2 ; 0x2 30003888: 0a00000b beq 300038bc (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 3000388c: e5940058 ldr r0, [r4, #88] 30003890: eb001592 bl 30008ee0 free (tty->rawOutBuf.theBuf); 30003894: e594007c ldr r0, [r4, #124] 30003898: eb001590 bl 30008ee0 free (tty->cbuf); 3000389c: e594001c ldr r0, [r4, #28] 300038a0: eb00158e bl 30008ee0 free (tty); 300038a4: e1a00004 mov r0, r4 300038a8: eb00158c bl 30008ee0 } rtems_semaphore_release (rtems_termios_ttyMutex); 300038ac: e5960000 ldr r0, [r6] 300038b0: eb000400 bl 300048b8 return RTEMS_SUCCESSFUL; } 300038b4: e3a00000 mov r0, #0 ; 0x0 300038b8: e8bd8070 pop {r4, r5, r6, pc} rtems_semaphore_delete (tty->isem); rtems_semaphore_delete (tty->osem); rtems_semaphore_delete (tty->rawOutBuf.Semaphore); if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 300038bc: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED 300038c0: eb00038c bl 300046f8 <== NOT EXECUTED 300038c4: eafffff0 b 3000388c <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 300038c8: e59400c4 ldr r0, [r4, #196] <== NOT EXECUTED 300038cc: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 300038d0: eb000277 bl 300042b4 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 300038d4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300038d8: 1a000004 bne 300038f0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 300038dc: e59400c8 ldr r0, [r4, #200] <== NOT EXECUTED 300038e0: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 300038e4: eb000272 bl 300042b4 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 300038e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300038ec: 0affffca beq 3000381c <== NOT EXECUTED rtems_fatal_error_occurred (sc); 300038f0: eb000565 bl 30004e8c <== NOT EXECUTED } else { /* * default: just flush output buffer */ drainOutput (tty); 300038f4: e1a00004 mov r0, r4 300038f8: ebfffd8f bl 30002f3c 300038fc: eaffffc3 b 30003810 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; 30003900: e5942004 ldr r2, [r4, #4] 30003904: e59f3038 ldr r3, [pc, #56] ; 30003944 if ( rtems_termios_ttyTail != NULL ) { 30003908: 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; 3000390c: e5832000 str r2, [r3] if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; 30003910: 15821000 strne r1, [r2] 30003914: 15941000 ldrne r1, [r4] } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; if ( rtems_termios_ttyTail != NULL ) { 30003918: 1affffcb bne 3000384c } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 3000391c: e59f3024 ldr r3, [pc, #36] ; 30003948 30003920: e5832000 str r2, [r3] 30003924: eaffffcc b 3000385c 30003928: e59f3018 ldr r3, [pc, #24] ; 30003948 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { 3000392c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 30003930: e5831000 str r1, [r3] <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; 30003934: 15812004 strne r2, [r1, #4] <== NOT EXECUTED 30003938: eaffffc7 b 3000385c <== NOT EXECUTED 3000393c: 30015f90 .word 0x30015f90 30003940: 30015d84 .word 0x30015d84 30003944: 30015f94 .word 0x30015f94 30003948: 30015f98 .word 0x30015f98 300023ec : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 300023ec: e5903090 ldr r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300023f0: e590c0b4 ldr ip, [r0, #180] <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 300023f4: e0833001 add r3, r3, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300023f8: 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) { 300023fc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 30002400: e5803090 str r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30002404: 0a00000b beq 30002438 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 30002408: e59030cc ldr r3, [r0, #204] <== NOT EXECUTED 3000240c: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 30002410: 1a000006 bne 30002430 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 30002414: e59f3034 ldr r3, [pc, #52] ; 30002450 <== NOT EXECUTED 30002418: e59330b4 ldr r3, [r3, #180] <== NOT EXECUTED 3000241c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 30002420: 11a0e00f movne lr, pc <== NOT EXECUTED 30002424: 112fff13 bxne r3 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 30002428: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3000242c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30002430: 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); 30002434: eaffff68 b 300021dc <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 30002438: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 3000243c: e1a0100c mov r1, ip <== NOT EXECUTED 30002440: eb00079b bl 300042b4 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 30002444: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30002448: 0afffff6 beq 30002428 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3000244c: eb000a8e bl 30004e8c <== NOT EXECUTED 30002450: 30015d84 .word 0x30015d84 30002454 : 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) { 30002454: 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) { 30002458: 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) { 3000245c: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED 30002460: e59f62ec ldr r6, [pc, #748] ; 30002754 <== NOT EXECUTED 30002464: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30002468: e7963203 ldr r3, [r6, r3, lsl #4] <== 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) { 3000246c: 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) { 30002470: e3530000 cmp r3, #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) { 30002474: e1a05000 mov r5, r0 <== NOT EXECUTED 30002478: e1a08001 mov r8, r1 <== NOT EXECUTED 3000247c: e1a07002 mov r7, r2 <== 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) { 30002480: 0a000020 beq 30002508 <== NOT EXECUTED while (len--) { 30002484: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30002488: 0a00000c beq 300024c0 <== NOT EXECUTED 3000248c: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 30002490: ea000003 b 300024a4 <== NOT EXECUTED 30002494: e59530cc ldr r3, [r5, #204] <== NOT EXECUTED 30002498: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED 3000249c: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 300024a0: e7963203 ldr r3, [r6, r3, lsl #4] <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 300024a4: e7d80004 ldrb r0, [r8, r4] <== NOT EXECUTED 300024a8: e1a01005 mov r1, r5 <== NOT EXECUTED 300024ac: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED 300024b0: e1a0e00f mov lr, pc <== NOT EXECUTED 300024b4: e12fff13 bx r3 <== 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--) { 300024b8: e1540007 cmp r4, r7 <== NOT EXECUTED 300024bc: 1afffff4 bne 30002494 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 300024c0: e59540e4 ldr r4, [r5, #228] <== NOT EXECUTED 300024c4: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 300024c8: 1a00000a bne 300024f8 <== NOT EXECUTED 300024cc: e59530dc ldr r3, [r5, #220] <== NOT EXECUTED 300024d0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300024d4: 0a000007 beq 300024f8 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 300024d8: e2850030 add r0, r5, #48 ; 0x30 <== NOT EXECUTED 300024dc: e59510e0 ldr r1, [r5, #224] <== NOT EXECUTED 300024e0: e1a0e00f mov lr, pc <== NOT EXECUTED 300024e4: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 300024e8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300024ec: e58530e4 str r3, [r5, #228] <== NOT EXECUTED 300024f0: e1a09004 mov r9, r4 <== NOT EXECUTED 300024f4: ea000000 b 300024fc <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 300024f8: e3a09000 mov r9, #0 ; 0x0 <== NOT EXECUTED } 300024fc: e1a00009 mov r0, r9 <== NOT EXECUTED 30002500: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 30002504: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== 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); 30002508: e1a09003 mov r9, r3 <== 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, 3000250c: e280204a add r2, r0, #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); 30002510: e2803030 add r3, r0, #48 ; 0x30 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 30002514: e2577001 subs r7, r7, #1 ; 0x1 <== 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, 30002518: e58d2000 str r2, [sp] <== 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); 3000251c: e58d3008 str r3, [sp, #8] <== NOT EXECUTED 30002520: e1a0b009 mov fp, r9 <== NOT EXECUTED 30002524: e1a0a009 mov sl, r9 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 30002528: 3a000047 bcc 3000264c <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 3000252c: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 30002530: e7d8600a ldrb r6, [r8, sl] <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 30002534: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED 30002538: 0a000008 beq 30002560 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 3000253c: e5d5204a ldrb r2, [r5, #74] <== NOT EXECUTED 30002540: e1520006 cmp r2, r6 <== NOT EXECUTED 30002544: 0a000046 beq 30002664 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 30002548: e5d53049 ldrb r3, [r5, #73] <== NOT EXECUTED 3000254c: e1530006 cmp r3, r6 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 30002550: 059530b8 ldreq r3, [r5, #184] <== NOT EXECUTED 30002554: 03c33010 biceq r3, r3, #16 ; 0x10 <== NOT EXECUTED 30002558: 058530b8 streq r3, [r5, #184] <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 3000255c: 0a000048 beq 30002684 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 30002560: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED 30002564: 1a000046 bne 30002684 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 30002568: e5950060 ldr r0, [r5, #96] <== NOT EXECUTED 3000256c: e5951064 ldr r1, [r5, #100] <== NOT EXECUTED 30002570: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 30002574: eb003eb3 bl 30012048 <__umodsi3> <== NOT EXECUTED 30002578: e1a04000 mov r4, r0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 3000257c: e10f2000 mrs r2, CPSR <== NOT EXECUTED 30002580: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 30002584: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30002588: e58d2004 str r2, [sp, #4] <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 3000258c: e595305c ldr r3, [r5, #92] <== NOT EXECUTED 30002590: e5950064 ldr r0, [r5, #100] <== NOT EXECUTED 30002594: e5951064 ldr r1, [r5, #100] <== NOT EXECUTED 30002598: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 3000259c: e0800004 add r0, r0, r4 <== NOT EXECUTED 300025a0: eb003ea8 bl 30012048 <__umodsi3> <== NOT EXECUTED 300025a4: e59530c0 ldr r3, [r5, #192] <== NOT EXECUTED 300025a8: e1500003 cmp r0, r3 <== NOT EXECUTED 300025ac: 9a00000e bls 300025ec <== NOT EXECUTED 300025b0: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 300025b4: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 300025b8: 1a00000b bne 300025ec <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 300025bc: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 300025c0: e59f1190 ldr r1, [pc, #400] ; 30002758 <== 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; 300025c4: e3833001 orr r3, r3, #1 ; 0x1 <== NOT EXECUTED 300025c8: e58530b8 str r3, [r5, #184] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 300025cc: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 300025d0: e0021001 and r1, r2, r1 <== NOT EXECUTED 300025d4: e3510b01 cmp r1, #1024 ; 0x400 <== NOT EXECUTED 300025d8: 0a000044 beq 300026f0 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 300025dc: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 300025e0: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED 300025e4: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED 300025e8: 0a00004f beq 3000272c <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 300025ec: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 300025f0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 300025f4: e595305c ldr r3, [r5, #92] <== NOT EXECUTED 300025f8: e1530004 cmp r3, r4 <== NOT EXECUTED dropped++; 300025fc: 02899001 addeq r9, r9, #1 ; 0x1 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 30002600: 0a00000e beq 30002640 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 30002604: e5953058 ldr r3, [r5, #88] <== NOT EXECUTED 30002608: e7c36004 strb r6, [r3, r4] <== 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 )) { 3000260c: e59520e4 ldr r2, [r5, #228] <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 30002610: e5854060 str r4, [r5, #96] <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 30002614: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30002618: 1a000008 bne 30002640 <== NOT EXECUTED 3000261c: e59530dc ldr r3, [r5, #220] <== NOT EXECUTED 30002620: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002624: 0a000005 beq 30002640 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 30002628: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED 3000262c: e59510e0 ldr r1, [r5, #224] <== NOT EXECUTED 30002630: e1a0e00f mov lr, pc <== NOT EXECUTED 30002634: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 30002638: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3000263c: e58520e4 str r2, [r5, #228] <== NOT EXECUTED 30002640: e28aa001 add sl, sl, #1 ; 0x1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 30002644: e2577001 subs r7, r7, #1 ; 0x1 <== NOT EXECUTED 30002648: 2affffb7 bcs 3000252c <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 3000264c: e5953078 ldr r3, [r5, #120] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 30002650: e5950068 ldr r0, [r5, #104] <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 30002654: e0833009 add r3, r3, r9 <== NOT EXECUTED 30002658: e5853078 str r3, [r5, #120] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 3000265c: eb000895 bl 300048b8 <== NOT EXECUTED 30002660: eaffffa5 b 300024fc <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { 30002664: e5d53049 ldrb r3, [r5, #73] <== NOT EXECUTED 30002668: e1530002 cmp r3, r2 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 3000266c: 059530b8 ldreq r3, [r5, #184] <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 30002670: 159530b8 ldrne r3, [r5, #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; 30002674: 02233010 eoreq r3, r3, #16 ; 0x10 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 30002678: 13833010 orrne r3, r3, #16 ; 0x10 <== 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; 3000267c: 058530b8 streq r3, [r5, #184] <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 30002680: 158530b8 strne r3, [r5, #184] <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 30002684: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30002688: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED 3000268c: e3530020 cmp r3, #32 ; 0x20 <== NOT EXECUTED 30002690: 0a000002 beq 300026a0 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 30002694: e3a0b001 mov fp, #1 ; 0x1 <== 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); tty->tty_rcvwakeup = 1; 30002698: e28aa001 add sl, sl, #1 ; 0x1 <== NOT EXECUTED 3000269c: eaffffe8 b 30002644 <== 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); 300026a0: e10f4000 mrs r4, CPSR <== NOT EXECUTED 300026a4: e38430c0 orr r3, r4, #192 ; 0xc0 <== NOT EXECUTED 300026a8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 300026ac: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300026b0: e5952094 ldr r2, [r5, #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; 300026b4: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300026b8: 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; 300026bc: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300026c0: 1a000002 bne 300026d0 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); } /* reenable interrupts */ rtems_interrupt_enable(level); 300026c4: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED 300026c8: e3a0b001 mov fp, #1 ; 0x1 <== NOT EXECUTED 300026cc: eafffff1 b 30002698 <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 300026d0: e5953084 ldr r3, [r5, #132] <== NOT EXECUTED 300026d4: e595107c ldr r1, [r5, #124] <== NOT EXECUTED 300026d8: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 300026dc: e0811003 add r1, r1, r3 <== NOT EXECUTED 300026e0: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 300026e4: e1a0e00f mov lr, pc <== NOT EXECUTED 300026e8: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED 300026ec: eafffff4 b 300026c4 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 300026f0: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 300026f4: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 300026f8: 1a000002 bne 30002708 <== NOT EXECUTED 300026fc: e5953094 ldr r3, [r5, #148] <== NOT EXECUTED 30002700: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30002704: 1affffb8 bne 300025ec <== 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; 30002708: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED (*tty->device.write)(tty->minor, 3000270c: e5950010 ldr r0, [r5, #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; 30002710: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 30002714: e58530b8 str r3, [r5, #184] <== NOT EXECUTED (*tty->device.write)(tty->minor, 30002718: e59d1000 ldr r1, [sp] <== NOT EXECUTED 3000271c: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30002720: e1a0e00f mov lr, pc <== NOT EXECUTED 30002724: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED 30002728: eaffffaf b 300025ec <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 3000272c: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 30002730: e59520ac ldr r2, [r5, #172] <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 30002734: e3833004 orr r3, r3, #4 ; 0x4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 30002738: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 3000273c: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 30002740: 0affffa9 beq 300025ec <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 30002744: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 30002748: e1a0e00f mov lr, pc <== NOT EXECUTED 3000274c: e12fff12 bx r2 <== NOT EXECUTED 30002750: eaffffa5 b 300025ec <== NOT EXECUTED 30002754: 30015d84 .word 0x30015d84 30002758: 00000402 .word 0x00000402 3000215c : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 3000215c: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 30002160: e59fc034 ldr ip, [pc, #52] ; 3000219c struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 30002164: e24dd004 sub sp, sp, #4 ; 0x4 rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 30002168: e59c3000 ldr r3, [ip] 3000216c: e3530000 cmp r3, #0 ; 0x0 30002170: 0a000001 beq 3000217c RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 30002174: e28dd004 add sp, sp, #4 ; 0x4 30002178: e8bd8000 pop {pc} /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( 3000217c: e59f001c ldr r0, [pc, #28] ; 300021a0 30002180: e3a01001 mov r1, #1 ; 0x1 30002184: e3a02054 mov r2, #84 ; 0x54 30002188: e58dc000 str ip, [sp] 3000218c: eb0008de bl 3000450c rtems_build_name ('T', 'R', 'm', 'i'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) 30002190: e3500000 cmp r0, #0 ; 0x0 30002194: 0afffff6 beq 30002174 rtems_fatal_error_occurred (sc); 30002198: eb000b3b bl 30004e8c <== NOT EXECUTED 3000219c: 30015f90 .word 0x30015f90 300021a0: 54526d69 .word 0x54526d69 300033bc : } } rtems_status_code rtems_termios_ioctl (void *arg) { 300033bc: 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; 300033c0: e5903000 ldr r3, [r0] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 300033c4: 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; 300033c8: e5935028 ldr r5, [r3, #40] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 300033cc: e580100c str r1, [r0, #12] <== NOT EXECUTED } } rtems_status_code rtems_termios_ioctl (void *arg) { 300033d0: e1a06000 mov r6, r0 <== NOT EXECUTED 300033d4: 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); 300033d8: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 300033dc: 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; 300033e0: 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); 300033e4: eb0004ec bl 3000479c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 300033e8: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED 300033ec: 1a00000a bne 3000341c <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 300033f0: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED 300033f4: e3520004 cmp r2, #4 ; 0x4 <== NOT EXECUTED 300033f8: 0a00001f beq 3000347c <== NOT EXECUTED 300033fc: 8a00000a bhi 3000342c <== NOT EXECUTED 30003400: e3520002 cmp r2, #2 ; 0x2 <== NOT EXECUTED 30003404: 0a00005e beq 30003584 <== NOT EXECUTED 30003408: 9a000045 bls 30003524 <== NOT EXECUTED if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 3000340c: e1a00005 mov r0, r5 <== NOT EXECUTED 30003410: ebfffec9 bl 30002f3c <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 30003414: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30003418: eb000526 bl 300048b8 <== NOT EXECUTED args->ioctl_return = sc; 3000341c: e586700c str r7, [r6, #12] <== NOT EXECUTED return sc; } 30003420: e1a00007 mov r0, r7 <== NOT EXECUTED 30003424: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 30003428: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== 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) { 3000342c: e59f3364 ldr r3, [pc, #868] ; 30003798 <== NOT EXECUTED 30003430: e1520003 cmp r2, r3 <== NOT EXECUTED 30003434: 0a000046 beq 30003554 <== NOT EXECUTED 30003438: 8a000017 bhi 3000349c <== NOT EXECUTED 3000343c: e3520005 cmp r2, #5 ; 0x5 <== NOT EXECUTED 30003440: 0a000011 beq 3000348c <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 30003444: e59520cc ldr r2, [r5, #204] <== NOT EXECUTED 30003448: e59f334c ldr r3, [pc, #844] ; 3000379c <== NOT EXECUTED 3000344c: e1a02282 lsl r2, r2, #5 <== NOT EXECUTED 30003450: e0833002 add r3, r3, r2 <== NOT EXECUTED 30003454: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30003458: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000345c: 03a0700a moveq r7, #10 ; 0xa <== NOT EXECUTED 30003460: 0affffeb beq 30003414 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 30003464: e1a00005 mov r0, r5 <== NOT EXECUTED 30003468: e1a01006 mov r1, r6 <== NOT EXECUTED 3000346c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003470: e12fff13 bx r3 <== NOT EXECUTED 30003474: e1a07000 mov r7, r0 <== NOT EXECUTED 30003478: eaffffe5 b 30003414 <== NOT EXECUTED case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 3000347c: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 30003480: e58530e0 str r3, [r5, #224] <== NOT EXECUTED 30003484: e58520dc str r2, [r5, #220] <== NOT EXECUTED 30003488: eaffffe1 b 30003414 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 3000348c: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 30003490: e58530d8 str r3, [r5, #216] <== NOT EXECUTED 30003494: e58520d4 str r2, [r5, #212] <== NOT EXECUTED 30003498: eaffffdd b 30003414 <== 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) { 3000349c: e59f32fc ldr r3, [pc, #764] ; 300037a0 <== NOT EXECUTED 300034a0: e1520003 cmp r2, r3 <== NOT EXECUTED 300034a4: 0a00001a beq 30003514 <== NOT EXECUTED 300034a8: e2833105 add r3, r3, #1073741825 ; 0x40000001 <== NOT EXECUTED 300034ac: e1520003 cmp r2, r3 <== NOT EXECUTED 300034b0: 1affffe3 bne 30003444 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 300034b4: e59530cc ldr r3, [r5, #204] <== NOT EXECUTED 300034b8: e59f42dc ldr r4, [pc, #732] ; 3000379c <== NOT EXECUTED 300034bc: e1a03183 lsl r3, r3, #3 <== NOT EXECUTED 300034c0: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 300034c4: e7943103 ldr r3, [r4, r3, lsl #2] <== NOT EXECUTED 300034c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300034cc: 0a000003 beq 300034e0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 300034d0: e1a00005 mov r0, r5 <== NOT EXECUTED 300034d4: e1a0e00f mov lr, pc <== NOT EXECUTED 300034d8: e12fff13 bx r3 <== NOT EXECUTED 300034dc: e1a07000 mov r7, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 300034e0: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 300034e4: e3a02000 mov r2, #0 ; 0x0 <== 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); 300034e8: e5931000 ldr r1, [r3] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 300034ec: e58520d0 str r2, [r5, #208] <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 300034f0: e7943281 ldr r3, [r4, r1, lsl #5] <== 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); 300034f4: e58510cc str r1, [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) { 300034f8: e1530002 cmp r3, r2 <== NOT EXECUTED 300034fc: 0affffc4 beq 30003414 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 30003500: e1a00005 mov r0, r5 <== NOT EXECUTED 30003504: e1a0e00f mov lr, pc <== NOT EXECUTED 30003508: e12fff13 bx r3 <== NOT EXECUTED 3000350c: e1a07000 mov r7, r0 <== NOT EXECUTED 30003510: eaffffbf b 30003414 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 30003514: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED 30003518: e59530cc ldr r3, [r5, #204] <== NOT EXECUTED 3000351c: e5823000 str r3, [r2] <== NOT EXECUTED 30003520: eaffffbb b 30003414 <== 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) { 30003524: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED 30003528: 1affffc5 bne 30003444 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 3000352c: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED 30003530: e285c030 add ip, r5, #48 ; 0x30 <== NOT EXECUTED 30003534: e1a0e004 mov lr, r4 <== NOT EXECUTED 30003538: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3000353c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30003540: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30003544: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30003548: e59c3000 ldr r3, [ip] <== NOT EXECUTED 3000354c: e58e3000 str r3, [lr] <== NOT EXECUTED 30003550: eaffffaf b 30003414 <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 30003554: e5952060 ldr r2, [r5, #96] <== NOT EXECUTED 30003558: 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; 3000355c: e5961008 ldr r1, [r6, #8] <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) 30003560: e0520003 subs r0, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 30003564: 45953064 ldrmi r3, [r5, #100] <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 30003568: 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; 3000356c: 40800003 addmi r0, r0, r3 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 30003570: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30003574: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 30003578: e0833000 add r3, r3, r0 <== NOT EXECUTED 3000357c: e5813000 str r3, [r1] <== NOT EXECUTED 30003580: eaffffa3 b 30003414 <== 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; 30003584: e596c008 ldr ip, [r6, #8] <== NOT EXECUTED 30003588: e2858030 add r8, r5, #48 ; 0x30 <== NOT EXECUTED 3000358c: e1a0e00c mov lr, ip <== NOT EXECUTED 30003590: e1a04008 mov r4, r8 <== NOT EXECUTED 30003594: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30003598: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED 3000359c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 300035a0: e8a4000f stmia r4!, {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) && 300035a4: 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; 300035a8: 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) && 300035ac: 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; 300035b0: e5842000 str r2, [r4] <== 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) && 300035b4: 0a000012 beq 30003604 <== NOT EXECUTED 300035b8: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 300035bc: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 300035c0: 1a00000f bne 30003604 <== NOT EXECUTED !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 300035c4: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 300035c8: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED 300035cc: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 300035d0: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 300035d4: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED 300035d8: 0a000009 beq 30003604 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 300035dc: e10f4000 mrs r4, CPSR <== NOT EXECUTED 300035e0: e38430c0 orr r3, r4, #192 ; 0xc0 <== NOT EXECUTED 300035e4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 300035e8: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300035ec: 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; 300035f0: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300035f4: 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; 300035f8: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300035fc: 1a00005d bne 30003778 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } /* reenable interrupts */ rtems_interrupt_enable(level); 30003600: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 30003604: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003608: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 3000360c: 0a000008 beq 30003634 <== NOT EXECUTED 30003610: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 30003614: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED 30003618: 1a000005 bne 30003634 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 3000361c: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003620: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED 30003624: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 30003628: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 3000362c: e3c22002 bic r2, r2, #2 ; 0x2 <== NOT EXECUTED 30003630: e58520b8 str r2, [r5, #184] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 30003634: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003638: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3000363c: 05951038 ldreq r1, [r5, #56] <== NOT EXECUTED 30003640: 0a000012 beq 30003690 <== NOT EXECUTED 30003644: e5951038 ldr r1, [r5, #56] <== NOT EXECUTED 30003648: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 3000364c: ba00003d blt 30003748 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 30003650: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003654: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 30003658: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 3000365c: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 30003660: e3120004 tst r2, #4 ; 0x4 <== NOT EXECUTED 30003664: 0a000006 beq 30003684 <== NOT EXECUTED 30003668: e59530b0 ldr r3, [r5, #176] <== NOT EXECUTED 3000366c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003670: 0a000003 beq 30003684 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 30003674: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 30003678: e1a0e00f mov lr, pc <== NOT EXECUTED 3000367c: e12fff13 bx r3 <== NOT EXECUTED 30003680: e5951038 ldr r1, [r5, #56] <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 30003684: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 30003688: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED 3000368c: 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) { 30003690: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30003694: ba00002b blt 30003748 <== NOT EXECUTED tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 30003698: e5952030 ldr r2, [r5, #48] <== NOT EXECUTED 3000369c: e3120a01 tst r2, #4096 ; 0x1000 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXOF; 300036a0: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 300036a4: 13833b01 orrne r3, r3, #1024 ; 0x400 <== NOT EXECUTED 300036a8: 158530b8 strne r3, [r5, #184] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 300036ac: e3120b01 tst r2, #1024 ; 0x400 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 300036b0: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 300036b4: 13833c02 orrne r3, r3, #512 ; 0x200 <== NOT EXECUTED 300036b8: 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) { 300036bc: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 300036c0: e2134002 ands r4, r3, #2 ; 0x2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 300036c4: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 300036c8: 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; 300036cc: 1585306c strne r3, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 300036d0: 15853070 strne r3, [r5, #112] <== 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) { 300036d4: 0a000007 beq 300036f8 <== NOT EXECUTED else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 300036d8: e59530a8 ldr r3, [r5, #168] <== NOT EXECUTED 300036dc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300036e0: 0affff4b beq 30003414 <== NOT EXECUTED (*tty->device.setAttributes)(tty->minor, &tty->termios); 300036e4: e1a01008 mov r1, r8 <== NOT EXECUTED 300036e8: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 300036ec: e1a0e00f mov lr, pc <== NOT EXECUTED 300036f0: e12fff13 bx r3 <== NOT EXECUTED 300036f4: eaffff46 b 30003414 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); 300036f8: e1a0100d mov r1, sp <== NOT EXECUTED 300036fc: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 30003700: eb0001eb bl 30003eb4 <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 30003704: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30003708: e5d50046 ldrb r0, [r5, #70] <== NOT EXECUTED 3000370c: e59f2090 ldr r2, [pc, #144] ; 300037a4 <== NOT EXECUTED 30003710: e0010093 mul r1, r3, r0 <== NOT EXECUTED 30003714: e083c192 umull ip, r3, r2, r1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 30003718: e3500000 cmp r0, #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; 3000371c: e1a021a3 lsr r2, r3, #3 <== NOT EXECUTED 30003720: e5852054 str r2, [r5, #84] <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 30003724: 0a00000b beq 30003758 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 30003728: e5d53047 ldrb r3, [r5, #71] <== 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; 3000372c: e585406c str r4, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 30003730: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003734: 01a03002 moveq r3, r2 <== NOT EXECUTED 30003738: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED 3000373c: 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; 30003740: e5852070 str r2, [r5, #112] <== NOT EXECUTED 30003744: eaffffe3 b 300036d8 <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { tty->flow_ctrl |= FL_MDRTS; 30003748: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3000374c: e3833c01 orr r3, r3, #256 ; 0x100 <== NOT EXECUTED 30003750: e58530b8 str r3, [r5, #184] <== NOT EXECUTED 30003754: eaffffcf b 30003698 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 30003758: e5d53047 ldrb r3, [r5, #71] <== NOT EXECUTED 3000375c: 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; 30003760: 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; 30003764: 15850074 strne r0, [r5, #116] <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 30003768: 1585006c strne r0, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 3000376c: 15850070 strne r0, [r5, #112] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 30003770: 0585306c streq r3, [r5, #108] <== NOT EXECUTED 30003774: eaffffd7 b 300036d8 <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, 30003778: e5953084 ldr r3, [r5, #132] <== NOT EXECUTED 3000377c: e595107c ldr r1, [r5, #124] <== NOT EXECUTED 30003780: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 30003784: e0811003 add r1, r1, r3 <== NOT EXECUTED 30003788: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3000378c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003790: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED 30003794: eaffff99 b 30003600 <== NOT EXECUTED 30003798: 4004667f .word 0x4004667f 3000379c: 30015d84 .word 0x30015d84 300037a0: 4004741a .word 0x4004741a 300037a4: cccccccd .word 0xcccccccd 3000394c : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3000394c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003950: e59fb40c ldr fp, [pc, #1036] ; 30003d64 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003954: e24dd00c sub sp, sp, #12 ; 0xc 30003958: e1a07001 mov r7, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3000395c: e3a01000 mov r1, #0 ; 0x0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003960: e58d2008 str r2, [sp, #8] 30003964: e1a05000 mov r5, r0 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003968: e1a02001 mov r2, r1 3000396c: e59b0000 ldr r0, [fp] rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003970: e1a08003 mov r8, r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003974: eb000388 bl 3000479c RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30003978: e2509000 subs r9, r0, #0 ; 0x0 3000397c: 1a000021 bne 30003a08 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 30003980: e59fa3e0 ldr sl, [pc, #992] ; 30003d68 30003984: e59a4000 ldr r4, [sl] 30003988: e3540000 cmp r4, #0 ; 0x0 3000398c: 1a000003 bne 300039a0 30003990: ea00001f b 30003a14 30003994: e5944000 ldr r4, [r4] <== NOT EXECUTED 30003998: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 3000399c: 0a00001c beq 30003a14 <== NOT EXECUTED if ((tty->major == major) && (tty->minor == minor)) 300039a0: e594300c ldr r3, [r4, #12] 300039a4: e1530005 cmp r3, r5 300039a8: 1afffff9 bne 30003994 300039ac: e5943010 ldr r3, [r4, #16] 300039b0: e1530007 cmp r3, r7 300039b4: 1afffff6 bne 30003994 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 300039b8: e59d1008 ldr r1, [sp, #8] if (!tty->refcount++) { 300039bc: e5943008 ldr r3, [r4, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 300039c0: e5912000 ldr r2, [r1] if (!tty->refcount++) { 300039c4: e3530000 cmp r3, #0 ; 0x0 300039c8: e2833001 add r3, r3, #1 ; 0x1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 300039cc: e5824028 str r4, [r2, #40] if (!tty->refcount++) { 300039d0: e5843008 str r3, [r4, #8] 300039d4: 1a000009 bne 30003a00 if (tty->device.firstOpen) 300039d8: e5943098 ldr r3, [r4, #152] 300039dc: e3530000 cmp r3, #0 ; 0x0 (*tty->device.firstOpen)(major, minor, arg); 300039e0: 11a00005 movne r0, r5 300039e4: 11a01007 movne r1, r7 300039e8: 159d2008 ldrne r2, [sp, #8] 300039ec: 11a0e00f movne lr, pc 300039f0: 112fff13 bxne r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300039f4: e59430b4 ldr r3, [r4, #180] 300039f8: e3530002 cmp r3, #2 ; 0x2 300039fc: 0a00009a beq 30003c6c (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 30003a00: e59b0000 ldr r0, [fp] 30003a04: eb0003ab bl 300048b8 return RTEMS_SUCCESSFUL; } 30003a08: e1a00009 mov r0, r9 30003a0c: e28dd00c add sp, sp, #12 ; 0xc 30003a10: 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)); 30003a14: e3a00001 mov r0, #1 ; 0x1 30003a18: e3a010e8 mov r1, #232 ; 0xe8 30003a1c: eb0014f0 bl 30008de4 if (tty == NULL) { 30003a20: e3500000 cmp r0, #0 ; 0x0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 30003a24: e1a06000 mov r6, r0 30003a28: e1a04000 mov r4, r0 if (tty == NULL) { 30003a2c: 0a0000a1 beq 30003cb8 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 30003a30: e59f3334 ldr r3, [pc, #820] ; 30003d6c 30003a34: e5932000 ldr r2, [r3] 30003a38: e5862064 str r2, [r6, #100] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 30003a3c: e5960064 ldr r0, [r6, #100] 30003a40: eb00168c bl 30009478 if (tty->rawInBuf.theBuf == NULL) { 30003a44: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 30003a48: e5860058 str r0, [r6, #88] if (tty->rawInBuf.theBuf == NULL) { 30003a4c: 0a000097 beq 30003cb0 return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 30003a50: e59f3318 ldr r3, [pc, #792] ; 30003d70 30003a54: e5932000 ldr r2, [r3] 30003a58: e5862088 str r2, [r6, #136] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 30003a5c: e5960088 ldr r0, [r6, #136] 30003a60: eb001684 bl 30009478 if (tty->rawOutBuf.theBuf == NULL) { 30003a64: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 30003a68: e586007c str r0, [r6, #124] if (tty->rawOutBuf.theBuf == NULL) { 30003a6c: 0a00008d beq 30003ca8 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 30003a70: e59f32fc ldr r3, [pc, #764] ; 30003d74 30003a74: e5930000 ldr r0, [r3] 30003a78: eb00167e bl 30009478 if (tty->cbuf == NULL) { 30003a7c: e3500000 cmp r0, #0 ; 0x0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 30003a80: e586001c str r0, [r6, #28] if (tty->cbuf == NULL) { 30003a84: 0a000085 beq 30003ca0 tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 30003a88: e59a2000 ldr r2, [sl] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 30003a8c: e3a03000 mov r3, #0 ; 0x0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) 30003a90: e1520003 cmp r2, r3 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 30003a94: e886000c stm r6, {r2, r3} if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; 30003a98: 15826004 strne r6, [r2, #4] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 30003a9c: e59f22d4 ldr r2, [pc, #724] ; 30003d78 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 30003aa0: e58630d4 str r3, [r6, #212] tty->tty_snd.sw_arg = NULL; 30003aa4: e58630d8 str r3, [r6, #216] tty->tty_rcv.sw_pfn = NULL; 30003aa8: e58630dc str r3, [r6, #220] tty->tty_rcv.sw_arg = NULL; 30003aac: e58630e0 str r3, [r6, #224] tty->tty_rcvwakeup = 0; 30003ab0: e58630e4 str r3, [r6, #228] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003ab4: e59f12c0 ldr r1, [pc, #704] ; 30003d7c 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) 30003ab8: e5923000 ldr r3, [r2] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003abc: e59f02bc ldr r0, [pc, #700] ; 30003d80 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) 30003ac0: e3530000 cmp r3, #0 ; 0x0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003ac4: e5d13000 ldrb r3, [r1] tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; 30003ac8: 05826000 streq r6, [r2] */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 30003acc: e58a6000 str r6, [sl] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003ad0: e286c014 add ip, r6, #20 ; 0x14 30003ad4: e1830000 orr r0, r3, r0 30003ad8: e3a01001 mov r1, #1 ; 0x1 30003adc: e3a03000 mov r3, #0 ; 0x0 30003ae0: e3a02054 mov r2, #84 ; 0x54 30003ae4: e58dc000 str ip, [sp] rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 30003ae8: e5867010 str r7, [r6, #16] tty->major = major; 30003aec: e586500c str r5, [r6, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003af0: eb000285 bl 3000450c 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) 30003af4: e2503000 subs r3, r0, #0 ; 0x0 30003af8: 1a000067 bne 30003c9c rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 30003afc: e59f1278 ldr r1, [pc, #632] ; 30003d7c 30003b00: e59f027c ldr r0, [pc, #636] ; 30003d84 30003b04: e5d12000 ldrb r2, [r1] 30003b08: e286c018 add ip, r6, #24 ; 0x18 30003b0c: e1820000 orr r0, r2, r0 30003b10: e3a01001 mov r1, #1 ; 0x1 30003b14: e3a02054 mov r2, #84 ; 0x54 30003b18: e58dc000 str ip, [sp] 30003b1c: eb00027a bl 3000450c 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) 30003b20: e2501000 subs r1, r0, #0 ; 0x0 30003b24: 1a00005c bne 30003c9c rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 30003b28: e59f224c ldr r2, [pc, #588] ; 30003d7c 30003b2c: e59f0254 ldr r0, [pc, #596] ; 30003d88 30003b30: e5d23000 ldrb r3, [r2] 30003b34: e286c08c add ip, r6, #140 ; 0x8c 30003b38: e1830000 orr r0, r3, r0 30003b3c: e3a02020 mov r2, #32 ; 0x20 30003b40: e1a03001 mov r3, r1 30003b44: e58dc000 str ip, [sp] 30003b48: eb00026f bl 3000450c rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 30003b4c: e250a000 subs sl, r0, #0 ; 0x0 30003b50: 1a000051 bne 30003c9c tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 30003b54: e286c098 add ip, r6, #152 ; 0x98 30003b58: e1a0e008 mov lr, r8 30003b5c: e8be000f ldm lr!, {r0, r1, r2, r3} 30003b60: e8ac000f stmia ip!, {r0, r1, r2, r3} 30003b64: e89e000f ldm lr, {r0, r1, r2, r3} 30003b68: e88c000f stm ip, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30003b6c: e59630b4 ldr r3, [r6, #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; 30003b70: e586a094 str sl, [r6, #148] tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30003b74: e3530002 cmp r3, #2 ; 0x2 30003b78: 0a00005f beq 30003cfc &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 30003b7c: e59630a0 ldr r3, [r6, #160] 30003b80: e3530000 cmp r3, #0 ; 0x0 30003b84: 0a00004f beq 30003cc8 30003b88: e59630b4 ldr r3, [r6, #180] 30003b8c: e3530002 cmp r3, #2 ; 0x2 30003b90: 0a00004c beq 30003cc8 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'; 30003b94: e3a00000 mov r0, #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; 30003b98: e58600b8 str r0, [r6, #184] /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 30003b9c: e596c064 ldr ip, [r6, #100] tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003ba0: e59f31d4 ldr r3, [pc, #468] ; 30003d7c 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; 30003ba4: e5961064 ldr r1, [r6, #100] /* * Bump name characer */ if (c++ == 'z') 30003ba8: e5d32000 ldrb r2, [r3] 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; 30003bac: e1a03081 lsl r3, r1, #1 30003bb0: e0833001 add r3, r3, r1 /* * Bump name characer */ if (c++ == 'z') 30003bb4: e59f11c0 ldr r1, [pc, #448] ; 30003d7c 30003bb8: e352007a cmp r2, #122 ; 0x7a 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; 30003bbc: e1a03123 lsr r3, r3, #2 /* * Bump name characer */ if (c++ == 'z') 30003bc0: e2822001 add r2, r2, #1 ; 0x1 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; 30003bc4: e58630c0 str r3, [r6, #192] /* * Bump name characer */ if (c++ == 'z') 30003bc8: e5c12000 strb r2, [r1] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 30003bcc: e59f31b8 ldr r3, [pc, #440] ; 30003d8c tty->termios.c_oflag = OPOST | ONLCR | XTABS; 30003bd0: e59f21b8 ldr r2, [pc, #440] ; 30003d90 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 30003bd4: e5863030 str r3, [r6, #48] tty->termios.c_oflag = OPOST | ONLCR | XTABS; 30003bd8: e5862034 str r2, [r6, #52] tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 30003bdc: e59f31b0 ldr r3, [pc, #432] ; 30003d94 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 30003be0: e59f21b0 ldr r2, [pc, #432] ; 30003d98 /* * 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; 30003be4: e5863038 str r3, [r6, #56] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 30003be8: e586203c str r2, [r6, #60] tty->termios.c_cc[VINTR] = '\003'; 30003bec: e3a03003 mov r3, #3 ; 0x3 tty->termios.c_cc[VQUIT] = '\034'; 30003bf0: e3a0201c mov r2, #28 ; 0x1c 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'; 30003bf4: e5c63041 strb r3, [r6, #65] tty->termios.c_cc[VQUIT] = '\034'; 30003bf8: e5c62042 strb r2, [r6, #66] tty->termios.c_cc[VERASE] = '\177'; 30003bfc: e283307c add r3, r3, #124 ; 0x7c tty->termios.c_cc[VKILL] = '\025'; 30003c00: e2422007 sub r2, r2, #7 ; 0x7 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'; tty->termios.c_cc[VERASE] = '\177'; 30003c04: e5c63043 strb r3, [r6, #67] tty->termios.c_cc[VKILL] = '\025'; 30003c08: e5c62044 strb r2, [r6, #68] tty->termios.c_cc[VEOF] = '\004'; 30003c0c: e243307b sub r3, r3, #123 ; 0x7b tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 30003c10: e2422004 sub r2, r2, #4 ; 0x4 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'; 30003c14: e5c63045 strb r3, [r6, #69] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 30003c18: e5c62049 strb r2, [r6, #73] tty->termios.c_cc[VSTOP] = '\023'; 30003c1c: e283300f add r3, r3, #15 ; 0xf tty->termios.c_cc[VSUSP] = '\032'; 30003c20: e2822009 add r2, r2, #9 ; 0x9 tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; 30003c24: e5c6304a strb r3, [r6, #74] tty->termios.c_cc[VSUSP] = '\032'; 30003c28: e5c6204b strb r2, [r6, #75] tty->termios.c_cc[VREPRINT] = '\022'; 30003c2c: e2433001 sub r3, r3, #1 ; 0x1 tty->termios.c_cc[VDISCARD] = '\017'; 30003c30: e242200b sub r2, r2, #11 ; 0xb tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; 30003c34: e5c6304d strb r3, [r6, #77] tty->termios.c_cc[VDISCARD] = '\017'; 30003c38: e5c6204e strb r2, [r6, #78] tty->termios.c_cc[VWERASE] = '\027'; 30003c3c: e2833005 add r3, r3, #5 ; 0x5 tty->termios.c_cc[VLNEXT] = '\026'; 30003c40: e2822007 add r2, r2, #7 ; 0x7 tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; 30003c44: e5c6304f strb r3, [r6, #79] tty->termios.c_cc[VLNEXT] = '\026'; 30003c48: e5c62050 strb r2, [r6, #80] /* 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; 30003c4c: e1a0c0ac lsr ip, ip, #1 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 30003c50: 0282204b addeq r2, r2, #75 ; 0x4b 30003c54: 01a03001 moveq r3, r1 /* 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; 30003c58: e586c0bc str ip, [r6, #188] 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'; 30003c5c: e5c6004c strb r0, [r6, #76] tty->termios.c_cc[VEOL2] = '\000'; 30003c60: e5c60051 strb r0, [r6, #81] tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 30003c64: 05c32000 strbeq r2, [r3] 30003c68: eaffff52 b 300039b8 (*tty->device.firstOpen)(major, minor, arg); /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_start(tty->rxTaskId, 30003c6c: e59400c4 ldr r0, [r4, #196] <== NOT EXECUTED 30003c70: e59f1124 ldr r1, [pc, #292] ; 30003d9c <== NOT EXECUTED 30003c74: e1a02004 mov r2, r4 <== NOT EXECUTED 30003c78: eb0003e4 bl 30004c10 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 30003c7c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003c80: 1a000005 bne 30003c9c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 30003c84: e1a02004 mov r2, r4 <== NOT EXECUTED 30003c88: e59400c8 ldr r0, [r4, #200] <== NOT EXECUTED 30003c8c: e59f110c ldr r1, [pc, #268] ; 30003da0 <== NOT EXECUTED 30003c90: eb0003de bl 30004c10 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 30003c94: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003c98: 0affff58 beq 30003a00 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30003c9c: eb00047a bl 30004e8c <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 30003ca0: e596007c ldr r0, [r6, #124] <== NOT EXECUTED 30003ca4: eb00148d bl 30008ee0 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 30003ca8: e5960058 ldr r0, [r6, #88] <== NOT EXECUTED 30003cac: eb00148b bl 30008ee0 <== NOT EXECUTED free(tty); 30003cb0: e1a00006 mov r0, r6 <== NOT EXECUTED 30003cb4: eb001489 bl 30008ee0 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 30003cb8: e59b0000 ldr r0, [fp] <== NOT EXECUTED 30003cbc: eb0002fd bl 300048b8 <== NOT EXECUTED 30003cc0: e3a0901a mov r9, #26 ; 0x1a <== NOT EXECUTED 30003cc4: eaffff4f b 30003a08 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 30003cc8: e59f10ac ldr r1, [pc, #172] ; 30003d7c <== NOT EXECUTED 30003ccc: e59f00d0 ldr r0, [pc, #208] ; 30003da4 <== NOT EXECUTED 30003cd0: e5d13000 ldrb r3, [r1] <== NOT EXECUTED 30003cd4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30003cd8: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003cdc: e286c068 add ip, r6, #104 ; 0x68 <== NOT EXECUTED 30003ce0: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED 30003ce4: e1a03001 mov r3, r1 <== NOT EXECUTED 30003ce8: e58dc000 str ip, [sp] <== NOT EXECUTED 30003cec: eb000206 bl 3000450c <== 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) 30003cf0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003cf4: 0affffa6 beq 30003b94 <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 30003cf8: eb000463 bl 30004e8c <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 30003cfc: e59f1078 ldr r1, [pc, #120] ; 30003d7c <== NOT EXECUTED 30003d00: e59f00a0 ldr r0, [pc, #160] ; 30003da8 <== NOT EXECUTED 30003d04: e5d13000 ldrb r3, [r1] <== NOT EXECUTED 30003d08: e286c0c8 add ip, r6, #200 ; 0xc8 <== NOT EXECUTED 30003d0c: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003d10: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 30003d14: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 30003d18: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 30003d1c: e88d1400 stm sp, {sl, ip} <== NOT EXECUTED 30003d20: eb00030d bl 3000495c <== 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) 30003d24: e250e000 subs lr, r0, #0 ; 0x0 <== NOT EXECUTED 30003d28: 1affffdb bne 30003c9c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 30003d2c: e59f2048 ldr r2, [pc, #72] ; 30003d7c <== NOT EXECUTED 30003d30: e59f0074 ldr r0, [pc, #116] ; 30003dac <== NOT EXECUTED 30003d34: e5d23000 ldrb r3, [r2] <== NOT EXECUTED 30003d38: e286c0c4 add ip, r6, #196 ; 0xc4 <== NOT EXECUTED 30003d3c: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003d40: e3a01009 mov r1, #9 ; 0x9 <== NOT EXECUTED 30003d44: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 30003d48: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 30003d4c: e58de000 str lr, [sp] <== NOT EXECUTED 30003d50: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30003d54: eb000300 bl 3000495c <== 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) 30003d58: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003d5c: 0affff86 beq 30003b7c <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 30003d60: eb000449 bl 30004e8c <== NOT EXECUTED 30003d64: 30015f90 .word 0x30015f90 30003d68: 30015f98 .word 0x30015f98 30003d6c: 30015800 .word 0x30015800 30003d70: 30015804 .word 0x30015804 30003d74: 300157fc .word 0x300157fc 30003d78: 30015f94 .word 0x30015f94 30003d7c: 30015808 .word 0x30015808 30003d80: 54526900 .word 0x54526900 30003d84: 54526f00 .word 0x54526f00 30003d88: 54527800 .word 0x54527800 30003d8c: 00002502 .word 0x00002502 30003d90: 00001805 .word 0x00001805 30003d94: 000008bd .word 0x000008bd 30003d98: 0000823b .word 0x0000823b 30003d9c: 30003e24 .word 0x30003e24 30003da0: 30003db0 .word 0x30003db0 30003da4: 54527200 .word 0x54527200 30003da8: 54785400 .word 0x54785400 30003dac: 52785400 .word 0x52785400 3000275c : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 3000275c: 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) { 30002760: 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) { 30002764: 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) { 30002768: e1a04002 mov r4, r2 3000276c: e1a0b000 mov fp, r0 30002770: e1a09001 mov r9, r1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 30002774: 0a00003a beq 30002864 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 30002778: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 3000277c: e5928080 ldr r8, [r2, #128] <== NOT EXECUTED while (len) { 30002780: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30002784: e3a0a000 mov sl, #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; 30002788: e3a07002 mov r7, #2 ; 0x2 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 3000278c: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 30002790: e2880001 add r0, r8, #1 ; 0x1 <== NOT EXECUTED 30002794: eb003e2b bl 30012048 <__umodsi3> <== NOT EXECUTED 30002798: e1a08000 mov r8, r0 <== NOT EXECUTED rtems_interrupt_disable (level); 3000279c: e10f5000 mrs r5, CPSR <== NOT EXECUTED 300027a0: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 300027a4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 300027a8: e5946084 ldr r6, [r4, #132] <== NOT EXECUTED 300027ac: e1560000 cmp r6, r0 <== NOT EXECUTED 300027b0: 1a00000d bne 300027ec <== NOT EXECUTED tty->rawOutBufState = rob_wait; 300027b4: e5847094 str r7, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 300027b8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 300027bc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300027c0: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 300027c4: e1a02001 mov r2, r1 <== NOT EXECUTED 300027c8: eb0007f3 bl 3000479c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 300027cc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300027d0: 1a00001a bne 30002840 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 300027d4: e10f5000 mrs r5, CPSR <== NOT EXECUTED 300027d8: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 300027dc: 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) { 300027e0: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 300027e4: e1530006 cmp r3, r6 <== NOT EXECUTED 300027e8: 0afffff1 beq 300027b4 <== 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++; 300027ec: e5940080 ldr r0, [r4, #128] <== NOT EXECUTED 300027f0: e7db200a ldrb r2, [fp, sl] <== NOT EXECUTED 300027f4: e594307c ldr r3, [r4, #124] <== NOT EXECUTED 300027f8: e7c32000 strb r2, [r3, r0] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 300027fc: e5941094 ldr r1, [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; 30002800: e5848080 str r8, [r4, #128] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 30002804: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 30002808: 1a000007 bne 3000282c <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 3000280c: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30002810: 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; 30002814: 159430b8 ldrne r3, [r4, #184] <== NOT EXECUTED 30002818: 13833020 orrne r3, r3, #32 ; 0x20 <== NOT EXECUTED 3000281c: 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)) { 30002820: 0a000007 beq 30002844 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 30002824: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30002828: e5843094 str r3, [r4, #148] <== NOT EXECUTED } rtems_interrupt_enable (level); 3000282c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 30002830: e2599001 subs r9, r9, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; 30002834: e28aa001 add sl, sl, #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) { 30002838: 1affffd3 bne 3000278c <== NOT EXECUTED 3000283c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 30002840: eb000991 bl 30004e8c <== 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)) { (*tty->device.write)(tty->minor, 30002844: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 30002848: e594107c ldr r1, [r4, #124] <== NOT EXECUTED 3000284c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002850: e0811003 add r1, r1, r3 <== NOT EXECUTED 30002854: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30002858: e1a0e00f mov lr, pc <== NOT EXECUTED 3000285c: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 30002860: eaffffef b 30002824 <== NOT EXECUTED unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); 30002864: e1a01000 mov r1, r0 30002868: e1a02009 mov r2, r9 3000286c: e5940010 ldr r0, [r4, #16] 30002870: e1a0e00f mov lr, pc 30002874: e594f0a4 ldr pc, [r4, #164] 30002878: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 30002fb8 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002fb8: 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; 30002fbc: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002fc0: e1a08000 mov r8, r0 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002fc4: 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); 30002fc8: 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; 30002fcc: e5983008 ldr r3, [r8, #8] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002fd0: e24dd010 sub sp, sp, #16 ; 0x10 <== 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); 30002fd4: e1a02001 mov r2, r1 <== NOT EXECUTED 30002fd8: 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; 30002fdc: e598600c ldr r6, [r8, #12] <== NOT EXECUTED char *buffer = args->buffer; 30002fe0: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002fe4: eb0005ec bl 3000479c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 30002fe8: e2509000 subs r9, r0, #0 ; 0x0 <== NOT EXECUTED 30002fec: 1a00000f bne 30003030 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 30002ff0: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 30002ff4: e59f23b4 ldr r2, [pc, #948] ; 300033b0 <== NOT EXECUTED 30002ff8: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 30002ffc: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30003000: e7923183 ldr r3, [r2, r3, lsl #3] <== NOT EXECUTED 30003004: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003008: 0a00000b beq 3000303c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 3000300c: e1a01008 mov r1, r8 <== NOT EXECUTED 30003010: e1a00004 mov r0, r4 <== NOT EXECUTED 30003014: e1a0e00f mov lr, pc <== NOT EXECUTED 30003018: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 3000301c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 30003020: e1a09000 mov r9, r0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 30003024: e58430e4 str r3, [r4, #228] <== NOT EXECUTED rtems_semaphore_release (tty->isem); 30003028: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 3000302c: eb000621 bl 300048b8 <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } 30003030: e1a00009 mov r0, r9 <== NOT EXECUTED 30003034: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30003038: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { 3000303c: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 30003040: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30003044: e1520003 cmp r2, r3 <== NOT EXECUTED 30003048: 0a00001b beq 300030bc <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 3000304c: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 30003050: 0a000011 beq 3000309c <== NOT EXECUTED 30003054: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 30003058: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3000305c: e1520003 cmp r2, r3 <== NOT EXECUTED 30003060: aa00000d bge 3000309c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30003064: e59d3000 ldr r3, [sp] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30003068: e1a01002 mov r1, r2 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 3000306c: e0620003 rsb r0, r2, r3 <== NOT EXECUTED 30003070: ea000002 b 30003080 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30003074: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30003078: e1530001 cmp r3, r1 <== NOT EXECUTED 3000307c: da000006 ble 3000309c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30003080: e594201c ldr r2, [r4, #28] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30003084: e2566001 subs r6, r6, #1 ; 0x1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30003088: e7d23001 ldrb r3, [r2, r1] <== NOT EXECUTED 3000308c: e7c03001 strb r3, [r0, r1] <== NOT EXECUTED 30003090: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 30003094: e5841024 str r1, [r4, #36] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30003098: 1afffff5 bne 30003074 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 3000309c: e598300c ldr r3, [r8, #12] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 300030a0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 300030a4: e0663003 rsb r3, r6, r3 <== NOT EXECUTED 300030a8: e5883014 str r3, [r8, #20] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 300030ac: e58420e4 str r2, [r4, #228] <== NOT EXECUTED rtems_semaphore_release (tty->isem); 300030b0: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 300030b4: eb0005ff bl 300048b8 <== NOT EXECUTED 300030b8: eaffffdc b 30003030 <== NOT EXECUTED return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 300030bc: e59420a0 ldr r2, [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; 300030c0: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED if (tty->device.pollRead != NULL 300030c4: e3520000 cmp r2, #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; 300030c8: e584302c str r3, [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; 300030cc: e5849020 str r9, [r4, #32] <== NOT EXECUTED 300030d0: e5849024 str r9, [r4, #36] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 300030d4: e1a01002 mov r1, r2 <== NOT EXECUTED 300030d8: 0a000002 beq 300030e8 <== NOT EXECUTED 300030dc: e59430b4 ldr r3, [r4, #180] <== NOT EXECUTED 300030e0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300030e4: 0a00005d beq 30003260 <== 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, 300030e8: e2843049 add r3, r4, #73 ; 0x49 <== 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; 300030ec: e5945074 ldr r5, [r4, #116] <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 300030f0: e59fa2bc ldr sl, [pc, #700] ; 300033b4 <== 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)) 300030f4: e59fb2bc ldr fp, [pc, #700] ; 300033b8 <== 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, 300030f8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED 300030fc: e3a07001 mov r7, #1 ; 0x1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30003100: e594205c ldr r2, [r4, #92] <== NOT EXECUTED 30003104: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 30003108: e1520003 cmp r2, r3 <== NOT EXECUTED 3000310c: 0a000035 beq 300031e8 <== NOT EXECUTED 30003110: e59a3000 ldr r3, [sl] <== NOT EXECUTED 30003114: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30003118: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3000311c: e1520003 cmp r2, r3 <== NOT EXECUTED 30003120: aa000030 bge 300031e8 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 30003124: e594005c ldr r0, [r4, #92] <== NOT EXECUTED 30003128: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 3000312c: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 30003130: eb003bc4 bl 30012048 <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 30003134: 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; 30003138: e1a02000 mov r2, r0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 3000313c: e7d35000 ldrb r5, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; 30003140: e584005c str r0, [r4, #92] <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 30003144: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 30003148: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 3000314c: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 30003150: e0800003 add r0, r0, r3 <== NOT EXECUTED 30003154: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 30003158: eb003bba bl 30012048 <__umodsi3> <== NOT EXECUTED 3000315c: e59430bc ldr r3, [r4, #188] <== NOT EXECUTED 30003160: e1500003 cmp r0, r3 <== NOT EXECUTED 30003164: 2a000012 bcs 300031b4 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 30003168: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 3000316c: e59f1244 ldr r1, [pc, #580] ; 300033b8 <== 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; 30003170: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 30003174: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 30003178: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED 3000317c: e0021001 and r1, r2, r1 <== NOT EXECUTED 30003180: e151000b cmp r1, fp <== NOT EXECUTED 30003184: 0a000029 beq 30003230 <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 30003188: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 3000318c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30003190: 0a000007 beq 300031b4 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 30003194: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 30003198: 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; 3000319c: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 300031a0: 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; 300031a4: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { tty->device.startRemoteTx(tty->minor); 300031a8: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 300031ac: 11a0e00f movne lr, pc <== NOT EXECUTED 300031b0: 112fff12 bxne r2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 300031b4: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 300031b8: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 300031bc: 0a000012 beq 3000320c <== NOT EXECUTED if (siproc (c, tty)) 300031c0: e1a00005 mov r0, r5 <== NOT EXECUTED 300031c4: e1a01004 mov r1, r4 <== NOT EXECUTED 300031c8: ebffff0e bl 30002e08 <== NOT EXECUTED 300031cc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300031d0: 1a000014 bne 30003228 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 300031d4: e594205c ldr r2, [r4, #92] <== NOT EXECUTED 300031d8: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 300031dc: e5945070 ldr r5, [r4, #112] <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 300031e0: e1520003 cmp r2, r3 <== NOT EXECUTED 300031e4: 1affffc9 bne 30003110 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 300031e8: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 300031ec: 0affff96 beq 3000304c <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 300031f0: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED 300031f4: e594106c ldr r1, [r4, #108] <== NOT EXECUTED 300031f8: e1a02005 mov r2, r5 <== NOT EXECUTED 300031fc: eb000566 bl 3000479c <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 30003200: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30003204: 0affffbd beq 30003100 <== NOT EXECUTED 30003208: eaffff8f b 3000304c <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 3000320c: e1a00005 mov r0, r5 <== NOT EXECUTED 30003210: e1a01004 mov r1, r4 <== NOT EXECUTED 30003214: ebfffefb bl 30002e08 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30003218: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 3000321c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30003220: e1530002 cmp r3, r2 <== NOT EXECUTED 30003224: baffffea blt 300031d4 <== NOT EXECUTED 30003228: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED 3000322c: eaffffe8 b 300031d4 <== 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)) 30003230: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 30003234: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003238: 0a000002 beq 30003248 <== NOT EXECUTED 3000323c: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 30003240: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 30003244: 0affffcf beq 30003188 <== 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, 30003248: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3000324c: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 30003250: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 30003254: e1a0e00f mov lr, pc <== NOT EXECUTED 30003258: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 3000325c: eaffffd4 b 300031b4 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 30003260: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 30003264: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 30003268: 1a000032 bne 30003338 <== NOT EXECUTED } } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 3000326c: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 30003270: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003274: 1a000006 bne 30003294 <== NOT EXECUTED 30003278: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 3000327c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003280: 0a000003 beq 30003294 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 30003284: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 30003288: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 3000328c: eb000308 bl 30003eb4 <== NOT EXECUTED 30003290: e59420a0 ldr r2, [r4, #160] <== 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); 30003294: e28d700c add r7, sp, #12 ; 0xc <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 30003298: e28d5008 add r5, sp, #8 ; 0x8 <== 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); 3000329c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300032a0: e1a0e00f mov lr, pc <== NOT EXECUTED 300032a4: e12fff12 bx r2 <== NOT EXECUTED if (n < 0) { 300032a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300032ac: aa000010 bge 300032f4 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 300032b0: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 300032b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300032b8: 0a00002f beq 3000337c <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 300032bc: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 300032c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300032c4: 0a000002 beq 300032d4 <== NOT EXECUTED 300032c8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 300032cc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300032d0: 1a00002c bne 30003388 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 300032d4: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 300032d8: eb000667 bl 30004c7c <== NOT EXECUTED 300032dc: e59420a0 ldr r2, [r4, #160] <== 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); 300032e0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300032e4: e1a0e00f mov lr, pc <== NOT EXECUTED 300032e8: e12fff12 bx r2 <== NOT EXECUTED if (n < 0) { 300032ec: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300032f0: baffffee blt 300032b0 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 300032f4: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED 300032f8: e1a01004 mov r1, r4 <== NOT EXECUTED 300032fc: ebfffec1 bl 30002e08 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30003300: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 30003304: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30003308: e1530002 cmp r3, r2 <== NOT EXECUTED 3000330c: aaffff4e bge 3000304c <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 30003310: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 30003314: 0a000002 beq 30003324 <== NOT EXECUTED 30003318: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 3000331c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003320: 1a000010 bne 30003368 <== NOT EXECUTED 30003324: e59420a0 ldr r2, [r4, #160] <== NOT EXECUTED 30003328: eaffffdb b 3000329c <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 3000332c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 30003330: eb000651 bl 30004c7c <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 30003334: e59410a0 ldr r1, [r4, #160] <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 30003338: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3000333c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003340: e12fff11 bx r1 <== NOT EXECUTED if (n < 0) { 30003344: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 30003348: e1a01004 mov r1, r4 <== NOT EXECUTED 3000334c: 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) { 30003350: bafffff5 blt 3000332c <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 30003354: ebfffeab bl 30002e08 <== NOT EXECUTED 30003358: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3000335c: 1affff3a bne 3000304c <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 30003360: e59410a0 ldr r1, [r4, #160] <== NOT EXECUTED 30003364: eafffff3 b 30003338 <== 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); 30003368: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 3000336c: e1a01007 mov r1, r7 <== NOT EXECUTED 30003370: eb0002cf bl 30003eb4 <== NOT EXECUTED 30003374: e59420a0 ldr r2, [r4, #160] <== NOT EXECUTED 30003378: eaffffc7 b 3000329c <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 3000337c: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 30003380: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30003384: 0affff30 beq 3000304c <== NOT EXECUTED break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 30003388: e1a01005 mov r1, r5 <== NOT EXECUTED 3000338c: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 30003390: eb0002c7 bl 30003eb4 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 30003394: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED 30003398: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3000339c: e5941054 ldr r1, [r4, #84] <== NOT EXECUTED 300033a0: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 300033a4: e1530001 cmp r3, r1 <== NOT EXECUTED 300033a8: 9affffc9 bls 300032d4 <== NOT EXECUTED 300033ac: eaffff26 b 3000304c <== NOT EXECUTED 300033b0: 30015d84 .word 0x30015d84 300033b4: 300157fc .word 0x300157fc 300033b8: 00000202 .word 0x00000202 300021dc : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 300021dc: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 300021e0: e59f21fc ldr r2, [pc, #508] ; 300023e4 <== NOT EXECUTED 300021e4: e59f11fc ldr r1, [pc, #508] ; 300023e8 <== NOT EXECUTED 300021e8: e0032002 and r2, r3, r2 <== NOT EXECUTED 300021ec: e1520001 cmp r2, r1 <== 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) { 300021f0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 300021f4: 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)) 300021f8: 0a000038 beq 300022e0 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 300021fc: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 30002200: e2033003 and r3, r3, #3 ; 0x3 <== NOT EXECUTED 30002204: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 30002208: 0a000051 beq 30002354 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 3000220c: e5902080 ldr r2, [r0, #128] <== NOT EXECUTED 30002210: e5903084 ldr r3, [r0, #132] <== NOT EXECUTED 30002214: e1520003 cmp r2, r3 <== NOT EXECUTED 30002218: 0a00002a beq 300022c8 <== NOT EXECUTED rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 3000221c: e10f2000 mrs r2, CPSR <== NOT EXECUTED 30002220: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 30002224: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; 30002228: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; 3000222c: e590c090 ldr ip, [r0, #144] <== NOT EXECUTED tty->t_dqlen = 0; 30002230: e5803090 str r3, [r0, #144] <== NOT EXECUTED rtems_interrupt_enable(level); 30002234: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 30002238: e5900084 ldr r0, [r0, #132] <== NOT EXECUTED 3000223c: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 30002240: e08c0000 add r0, ip, r0 <== NOT EXECUTED 30002244: eb003f7f bl 30012048 <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 30002248: 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; 3000224c: e1a06000 mov r6, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 30002250: 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; 30002254: e5840084 str r0, [r4, #132] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 30002258: 0a00005a beq 300023c8 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 3000225c: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 30002260: e1530006 cmp r3, r6 <== NOT EXECUTED 30002264: 0a00002f beq 30002328 <== NOT EXECUTED if ( tty->tty_snd.sw_pfn != NULL) { (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 30002268: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 3000226c: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED 30002270: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED 30002274: 0a000048 beq 3000239c <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 30002278: 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, 3000227c: e594107c ldr r1, [r4, #124] <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 30002280: e1560003 cmp r6, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 30002284: 85943088 ldrhi r3, [r4, #136] <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 30002288: 95943080 ldrls r3, [r4, #128] <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 3000228c: 80665003 rsbhi r5, r6, r3 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 30002290: 90665003 rsbls 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)) { 30002294: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 30002298: e0811006 add r1, r1, r6 <== 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)) { 3000229c: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED 300022a0: 13a05001 movne r5, #1 ; 0x1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 300022a4: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300022a8: e5843094 str r3, [r4, #148] <== NOT EXECUTED (*tty->device.write)(tty->minor, 300022ac: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300022b0: e1a02005 mov r2, r5 <== NOT EXECUTED 300022b4: e1a0e00f mov lr, pc <== NOT EXECUTED 300022b8: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 300022bc: e5846084 str r6, [r4, #132] <== NOT EXECUTED } return nToSend; } 300022c0: e1a00005 mov r0, r5 <== NOT EXECUTED 300022c4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 300022c8: e5903094 ldr r3, [r0, #148] <== NOT EXECUTED 300022cc: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 300022d0: 0a00003f beq 300023d4 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 300022d4: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 300022d8: e1a00005 mov r0, r5 <== NOT EXECUTED 300022dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 300022e0: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED 300022e4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 300022e8: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 300022ec: e1a0e00f mov lr, pc <== NOT EXECUTED 300022f0: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 300022f4: e10f1000 mrs r1, CPSR <== NOT EXECUTED 300022f8: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 300022fc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 30002300: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 30002304: 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--; 30002308: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 3000230c: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 30002310: 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--; 30002314: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); 30002318: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 3000231c: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 30002320: e1a00005 mov r0, r5 <== NOT EXECUTED 30002324: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 30002328: e59420d4 ldr r2, [r4, #212] <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 3000232c: 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) { 30002330: e1520005 cmp r2, r5 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 30002334: 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) { 30002338: 01a05002 moveq r5, r2 <== NOT EXECUTED 3000233c: 0affffde beq 300022bc <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 30002340: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 30002344: e59410d8 ldr r1, [r4, #216] <== NOT EXECUTED 30002348: e1a0e00f mov lr, pc <== NOT EXECUTED 3000234c: e12fff12 bx r2 <== NOT EXECUTED 30002350: eaffffd9 b 300022bc <== 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, 30002354: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED 30002358: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3000235c: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30002360: e1a0e00f mov lr, pc <== NOT EXECUTED 30002364: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 30002368: e10f1000 mrs r1, CPSR <== NOT EXECUTED 3000236c: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 30002370: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 30002374: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 30002378: 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--; 3000237c: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 30002380: e3c33002 bic r3, r3, #2 ; 0x2 <== NOT EXECUTED 30002384: 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--; 30002388: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; rtems_interrupt_enable(level); 3000238c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 30002390: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 30002394: e1a00005 mov r0, r5 <== NOT EXECUTED 30002398: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); 3000239c: e10f3000 mrs r3, CPSR <== NOT EXECUTED 300023a0: e38320c0 orr r2, r3, #192 ; 0xc0 <== NOT EXECUTED 300023a4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 300023a8: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 300023ac: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 300023b0: e3822020 orr r2, r2, #32 ; 0x20 <== NOT EXECUTED 300023b4: e58420b8 str r2, [r4, #184] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 300023b8: e5841094 str r1, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable(level); 300023bc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 300023c0: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 300023c4: eaffffbc b 300022bc <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 300023c8: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 300023cc: eb000939 bl 300048b8 <== NOT EXECUTED 300023d0: eaffffa1 b 3000225c <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 300023d4: e590008c ldr r0, [r0, #140] <== NOT EXECUTED 300023d8: eb000936 bl 300048b8 <== NOT EXECUTED 300023dc: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 300023e0: eaffffbc b 300022d8 <== NOT EXECUTED 300023e4: 00000403 .word 0x00000403 300023e8: 00000401 .word 0x00000401 30003e24 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 30003e24: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 30003e28: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 30003e2c: e1a04000 mov r4, r0 <== NOT EXECUTED 30003e30: e28d6007 add r6, sp, #7 ; 0x7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 30003e34: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED 30003e38: e1a0300d mov r3, sp <== NOT EXECUTED 30003e3c: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 30003e40: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30003e44: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 30003e48: eb0000b7 bl 3000412c <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 30003e4c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30003e50: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 30003e54: 1a000012 bne 30003ea4 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 30003e58: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30003e5c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003e60: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED 30003e64: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { 30003e68: e3730001 cmn r3, #1 ; 0x1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 30003e6c: e1a01006 mov r1, r6 <== NOT EXECUTED 30003e70: e1a00004 mov r0, r4 <== NOT EXECUTED 30003e74: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { 30003e78: 0affffee beq 30003e38 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 30003e7c: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 30003e80: ebfff973 bl 30002454 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 30003e84: e1a0300d mov r3, sp <== NOT EXECUTED 30003e88: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 30003e8c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30003e90: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 30003e94: eb0000a4 bl 3000412c <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 30003e98: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30003e9c: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 30003ea0: 0affffec beq 30003e58 <== NOT EXECUTED tty->rxTaskId = 0; 30003ea4: e58470c4 str r7, [r4, #196] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 30003ea8: e1a00007 mov r0, r7 <== NOT EXECUTED 30003eac: eb0002f9 bl 30004a98 <== NOT EXECUTED 30003eb0: eaffffe0 b 30003e38 <== NOT EXECUTED 300021d0 : 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); 300021d0: e59000c4 ldr r0, [r0, #196] <== NOT EXECUTED 300021d4: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 300021d8: ea000835 b 300042b4 <== NOT EXECUTED 30003db0 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 30003db0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 30003db4: e59f7064 ldr r7, [pc, #100] ; 30003e20 <== NOT EXECUTED 30003db8: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 30003dbc: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 30003dc0: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 30003dc4: e1a0300d mov r3, sp <== NOT EXECUTED 30003dc8: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 30003dcc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30003dd0: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 30003dd4: eb0000d4 bl 3000412c <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 30003dd8: 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); 30003ddc: 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) { 30003de0: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 30003de4: 1a000009 bne 30003e10 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 30003de8: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 30003dec: e1a03283 lsl r3, r3, #5 <== NOT EXECUTED 30003df0: e0873003 add r3, r7, r3 <== NOT EXECUTED 30003df4: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 30003df8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 30003dfc: 11a0e00f movne lr, pc <== NOT EXECUTED 30003e00: 112fff13 bxne r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 30003e04: e1a00004 mov r0, r4 <== NOT EXECUTED 30003e08: ebfff8f3 bl 300021dc <== NOT EXECUTED 30003e0c: eaffffec b 30003dc4 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { tty->txTaskId = 0; 30003e10: e58460c8 str r6, [r4, #200] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 30003e14: e1a00006 mov r0, r6 <== NOT EXECUTED 30003e18: eb00031e bl 30004a98 <== NOT EXECUTED 30003e1c: eaffffe8 b 30003dc4 <== NOT EXECUTED 30003e20: 30015d84 .word 0x30015d84 30002e68 : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002e68: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002e6c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002e70: e5935028 ldr r5, [r3, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002e74: e3a01000 mov r1, #0 ; 0x0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002e78: e1a06000 mov r6, 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); 30002e7c: e1a02001 mov r2, r1 30002e80: e5950018 ldr r0, [r5, #24] 30002e84: eb000644 bl 3000479c if (sc != RTEMS_SUCCESSFUL) 30002e88: e250a000 subs sl, r0, #0 ; 0x0 30002e8c: 1a00000d bne 30002ec8 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 30002e90: e59520cc ldr r2, [r5, #204] 30002e94: e59f309c ldr r3, [pc, #156] ; 30002f38 30002e98: e1a02282 lsl r2, r2, #5 30002e9c: e0833002 add r3, r3, r2 30002ea0: e593300c ldr r3, [r3, #12] 30002ea4: e3530000 cmp r3, #0 ; 0x0 30002ea8: 0a000008 beq 30002ed0 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 30002eac: e1a01006 mov r1, r6 <== NOT EXECUTED 30002eb0: e1a00005 mov r0, r5 <== NOT EXECUTED 30002eb4: e1a0e00f mov lr, pc <== NOT EXECUTED 30002eb8: e12fff13 bx r3 <== NOT EXECUTED 30002ebc: e1a0a000 mov sl, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 30002ec0: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30002ec4: eb00067b bl 300048b8 <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } 30002ec8: e1a0000a mov r0, sl <== NOT EXECUTED 30002ecc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_write != NULL) { sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 30002ed0: e5953034 ldr r3, [r5, #52] 30002ed4: e3130001 tst r3, #1 ; 0x1 30002ed8: 0a000011 beq 30002f24 uint32_t count = args->count; 30002edc: e596800c ldr r8, [r6, #12] char *buffer = args->buffer; 30002ee0: e5967008 ldr r7, [r6, #8] while (count--) 30002ee4: e3580000 cmp r8, #0 ; 0x0 30002ee8: 01a0300a moveq r3, sl 30002eec: 0a000007 beq 30002f10 30002ef0: e1a0400a mov r4, sl oproc (*buffer++, tty); 30002ef4: e7d70004 ldrb r0, [r7, r4] 30002ef8: e1a01005 mov r1, r5 30002efc: e2844001 add r4, r4, #1 ; 0x1 30002f00: ebfffe5d bl 3000287c return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 30002f04: e1580004 cmp r8, r4 30002f08: 1afffff9 bne 30002ef4 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 30002f0c: e596300c ldr r3, [r6, #12] 30002f10: e5863014 str r3, [r6, #20] } rtems_semaphore_release (tty->osem); 30002f14: e5950018 ldr r0, [r5, #24] 30002f18: eb000666 bl 300048b8 return sc; } 30002f1c: e1a0000a mov r0, sl 30002f20: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 30002f24: e5960008 ldr r0, [r6, #8] <== NOT EXECUTED 30002f28: e596100c ldr r1, [r6, #12] <== NOT EXECUTED 30002f2c: e1a02005 mov r2, r5 <== NOT EXECUTED 30002f30: ebfffe09 bl 3000275c <== NOT EXECUTED 30002f34: eafffff4 b 30002f0c <== NOT EXECUTED 30002f38: 30015d84 .word 0x30015d84 300123fc : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 300123fc: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 30012400: e2518000 subs r8, r1, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30012404: e1a06000 mov r6, r0 30012408: e24dd004 sub sp, sp, #4 ; 0x4 3001240c: e1a05002 mov r5, r2 30012410: e1a07003 mov r7, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 30012414: 03a0000a moveq r0, #10 ; 0xa 30012418: 0a000020 beq 300124a0 return RTEMS_INVALID_NUMBER; if ( !routine ) 3001241c: e3520000 cmp r2, #0 ; 0x0 30012420: 03a00009 moveq r0, #9 ; 0x9 30012424: 0a00001d beq 300124a0 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 30012428: e59f0088 ldr r0, [pc, #136] ; 300124b8 3001242c: e1a01006 mov r1, r6 30012430: e1a0200d mov r2, sp 30012434: eb000ad5 bl 30014f90 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 30012438: e59d3000 ldr r3, [sp] 3001243c: e1a04000 mov r4, r0 30012440: e3530000 cmp r3, #0 ; 0x0 30012444: 13a00004 movne r0, #4 ; 0x4 30012448: 1a000014 bne 300124a0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 3001244c: e284a010 add sl, r4, #16 ; 0x10 30012450: e1a0000a mov r0, sl 30012454: eb001348 bl 3001717c <_Watchdog_Remove> _ISR_Disable( level ); 30012458: e10f2000 mrs r2, CPSR 3001245c: e38230c0 orr r3, r2, #192 ; 0xc0 30012460: 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 ) { 30012464: e5943018 ldr r3, [r4, #24] 30012468: e3530000 cmp r3, #0 ; 0x0 3001246c: 1a00000d bne 300124a8 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 30012470: e5843018 str r3, [r4, #24] the_watchdog->routine = routine; 30012474: e584502c str r5, [r4, #44] the_watchdog->id = id; 30012478: e5846030 str r6, [r4, #48] the_watchdog->user_data = user_data; 3001247c: e5847034 str r7, [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; 30012480: e5843038 str r3, [r4, #56] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 30012484: e129f002 msr CPSR_fc, r2 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30012488: e59f002c ldr r0, [pc, #44] ; 300124bc 3001248c: e1a0100a mov r1, sl Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 30012490: e584801c str r8, [r4, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 30012494: eb0012c9 bl 30016fc0 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 30012498: eb000cfe bl 30015898 <_Thread_Enable_dispatch> 3001249c: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 300124a0: e28dd004 add sp, sp, #4 ; 0x4 300124a4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); 300124a8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Thread_Enable_dispatch(); 300124ac: eb000cf9 bl 30015898 <_Thread_Enable_dispatch> <== NOT EXECUTED 300124b0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300124b4: eafffff9 b 300124a0 <== NOT EXECUTED 300124b8: 300315f0 .word 0x300315f0 300124bc: 30031424 .word 0x30031424 30012900 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 30012900: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30012904: e3500000 cmp r0, #0 ; 0x0 30012908: e24dd010 sub sp, sp, #16 ; 0x10 3001290c: e1a07001 mov r7, r1 30012910: e1a06002 mov r6, r2 30012914: 1a000002 bne 30012924 * but there is actually no way (in normal circumstances) that the * start can fail. The id and starting address are known to be * be good. If this service fails, something is weirdly wrong on the * target such as a stray write in an ISR or incorrect memory layout. */ initialized = false; 30012918: e3a00013 mov r0, #19 ; 0x13 } return status; } 3001291c: e28dd010 add sp, sp, #16 ; 0x10 30012920: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 30012924: e59f3144 ldr r3, [pc, #324] ; 30012a70 30012928: e5d32000 ldrb r2, [r3] 3001292c: e1500002 cmp r0, r2 30012930: 8a00004a bhi 30012a60 30012934: e1a08000 mov r8, r0 <== NOT EXECUTED 30012938: e59f3134 ldr r3, [pc, #308] ; 30012a74 3001293c: e5932000 ldr r2, [r3] 30012940: e2822001 add r2, r2, #1 ; 0x1 30012944: e5832000 str r2, [r3] /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 30012948: e59fa128 ldr sl, [pc, #296] ; 30012a78 initialized = true; 3001294c: e3a03001 mov r3, #1 ; 0x1 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 30012950: e5da5000 ldrb r5, [sl] initialized = true; 30012954: e5ca3000 strb r3, [sl] _Thread_Enable_dispatch(); 30012958: eb000bce bl 30015898 <_Thread_Enable_dispatch> if ( tmpInitialized ) 3001295c: e3550000 cmp r5, #0 ; 0x0 30012960: 13a0000e movne r0, #14 ; 0xe 30012964: 1affffec bne 3001291c */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30012968: e59f410c ldr r4, [pc, #268] ; 30012a7c * other library rules. For example, if using a TSR written in Ada the * Server should run at the same priority as the priority Ada task. * Otherwise, the priority ceiling for the mutex used to protect the * GNAT run-time is violated. */ status = rtems_task_create( 3001296c: e386e902 orr lr, r6, #32768 ; 0x8000 30012970: e284c004 add ip, r4, #4 ; 0x4 30012974: e584c000 str ip, [r4] 30012978: e28dc00c add ip, sp, #12 ; 0xc the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 3001297c: e5844008 str r4, [r4, #8] 30012980: e1a01008 mov r1, r8 30012984: e58de000 str lr, [sp] 30012988: e58dc004 str ip, [sp, #4] 3001298c: e1a02007 mov r2, r7 30012990: e59f00e8 ldr r0, [pc, #232] ; 30012a80 30012994: e3a03c01 mov r3, #256 ; 0x100 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 30012998: e5845004 str r5, [r4, #4] 3001299c: ebfffc60 bl 30011b24 /* user may want floating point but we need */ /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { 300129a0: e3500000 cmp r0, #0 ; 0x0 initialized = false; 300129a4: 15ca5000 strbne r5, [sl] /* user may want floating point but we need */ /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { 300129a8: 1affffdb bne 3001291c * to a TCB pointer from here out. * * NOTE: Setting the pointer to the Timer Server TCB to a value other than * NULL indicates that task-based timer support is initialized. */ _Timer_Server = (Thread_Control *)_Objects_Get_local_object( 300129ac: e59d200c ldr r2, [sp, #12] RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( Objects_Information *information, uint16_t index ) { if ( index > information->maximum ) 300129b0: e59fc0cc ldr ip, [pc, #204] ; 30012a84 300129b4: e1a03802 lsl r3, r2, #16 300129b8: e58d2008 str r2, [sp, #8] 300129bc: e1dc21b0 ldrh r2, [ip, #16] 300129c0: e1a01823 lsr r1, r3, #16 300129c4: e1520001 cmp r2, r1 300129c8: 259c301c ldrcs r3, [ip, #28] 300129cc: 31a09000 movcc r9, r0 300129d0: 27939101 ldrcs r9, [r3, r1, lsl #2] the_watchdog->routine = routine; 300129d4: e59f30ac ldr r3, [pc, #172] ; 30012a88 /* * Initialize the pointer to the timer reset method so applications * that do not use the Timer Server do not have to pull it in. */ _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; 300129d8: e59fe0ac ldr lr, [pc, #172] ; 30012a8c 300129dc: e5893064 str r3, [r9, #100] 300129e0: e59f30a8 ldr r3, [pc, #168] ; 30012a90 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 300129e4: e59f40a8 ldr r4, [pc, #168] ; 30012a94 the_watchdog->id = id; 300129e8: e59f50a8 ldr r5, [pc, #168] ; 30012a98 300129ec: e59d2008 ldr r2, [sp, #8] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 300129f0: e59f60a4 ldr r6, [pc, #164] ; 30012a9c 300129f4: e583e000 str lr, [r3] * to a TCB pointer from here out. * * NOTE: Setting the pointer to the Timer Server TCB to a value other than * NULL indicates that task-based timer support is initialized. */ _Timer_Server = (Thread_Control *)_Objects_Get_local_object( 300129f8: e59fc0a0 ldr ip, [pc, #160] ; 30012aa0 the_watchdog->routine = routine; 300129fc: e59f3084 ldr r3, [pc, #132] ; 30012a88 the_chain->permanent_null = NULL; 30012a00: e3a0b000 mov fp, #0 ; 0x0 _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 30012a04: e1a00002 mov r0, r2 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30012a08: e2847004 add r7, r4, #4 ; 0x4 30012a0c: e2858004 add r8, r5, #4 ; 0x4 the_watchdog->id = id; 30012a10: e5892068 str r2, [r9, #104] the_watchdog->user_data = user_data; 30012a14: e589b06c str fp, [r9, #108] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 30012a18: e589b050 str fp, [r9, #80] 30012a1c: e59f1080 ldr r1, [pc, #128] ; 30012aa4 30012a20: e1a0200b mov r2, fp * to a TCB pointer from here out. * * NOTE: Setting the pointer to the Timer Server TCB to a value other than * NULL indicates that task-based timer support is initialized. */ _Timer_Server = (Thread_Control *)_Objects_Get_local_object( 30012a24: e58c9000 str r9, [ip] 30012a28: e5847000 str r7, [r4] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 30012a2c: e5844008 str r4, [r4, #8] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30012a30: e5858000 str r8, [r5] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 30012a34: e5855008 str r5, [r5, #8] the_watchdog->routine = routine; 30012a38: e586301c str r3, [r6, #28] the_watchdog->id = id; the_watchdog->user_data = user_data; 30012a3c: e586b024 str fp, [r6, #36] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 30012a40: e584b004 str fp, [r4, #4] 30012a44: e585b004 str fp, [r5, #4] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 30012a48: e586b008 str fp, [r6, #8] the_watchdog->routine = routine; the_watchdog->id = id; 30012a4c: e5860020 str r0, [r6, #32] _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 30012a50: ebfffd8e bl 30012090 id, /* the id from create */ (rtems_task_entry) _Timer_Server_body, /* the timer server entry point */ 0 /* there is no argument */ ); if (status) { 30012a54: e3500000 cmp r0, #0 ; 0x0 * but there is actually no way (in normal circumstances) that the * start can fail. The id and starting address are known to be * be good. If this service fails, something is weirdly wrong on the * target such as a stray write in an ISR or incorrect memory layout. */ initialized = false; 30012a58: 15cab000 strbne fp, [sl] 30012a5c: eaffffae b 3001291c * structured so we check it is invalid before looking for * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) 30012a60: e3700001 cmn r0, #1 ; 0x1 30012a64: 03a08000 moveq r8, #0 ; 0x0 30012a68: 0affffb2 beq 30012938 30012a6c: eaffffa9 b 30012918 30012a70: 3002c208 .word 0x3002c208 30012a74: 3003134c .word 0x3003134c 30012a78: 3002ce18 .word 0x3002ce18 30012a7c: 300312cc .word 0x300312cc 30012a80: 54494d45 .word 0x54494d45 30012a84: 3003126c .word 0x3003126c 30012a88: 30015704 .word 0x30015704 30012a8c: 30012aa8 .word 0x30012aa8 30012a90: 30031630 .word 0x30031630 30012a94: 300312ac .word 0x300312ac 30012a98: 300312c0 .word 0x300312c0 30012a9c: 300312d8 .word 0x300312d8 30012aa0: 30031634 .word 0x30031634 30012aa4: 30012b58 .word 0x30012b58 30012648 : */ rtems_status_code rtems_timer_reset( Objects_Id id ) { 30012648: e92d4030 push {r4, r5, lr} 3001264c: e24dd004 sub sp, sp, #4 ; 0x4 30012650: e1a01000 mov r1, r0 30012654: e1a0200d mov r2, sp 30012658: e59f00a8 ldr r0, [pc, #168] ; 30012708 3001265c: eb000a4b bl 30014f90 <_Objects_Get> Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 30012660: e59d3000 ldr r3, [sp] 30012664: e1a04000 mov r4, r0 30012668: e3530000 cmp r3, #0 ; 0x0 3001266c: 13a00004 movne r0, #4 ; 0x4 30012670: 1a00000a bne 300126a0 case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 30012674: e5943038 ldr r3, [r4, #56] 30012678: e3530004 cmp r3, #4 ; 0x4 3001267c: 979ff103 ldrls pc, [pc, r3, lsl #2] 30012680: ea000011 b 300126cc <== NOT EXECUTED 30012684: 300126e4 .word 0x300126e4 <== NOT EXECUTED 30012688: 300126a8 .word 0x300126a8 <== NOT EXECUTED 3001268c: 300126d8 .word 0x300126d8 <== NOT EXECUTED 30012690: 300126d8 .word 0x300126d8 <== NOT EXECUTED 30012694: 300126d8 .word 0x300126d8 <== NOT EXECUTED _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { _Thread_Enable_dispatch(); 30012698: eb000c7e bl 30015898 <_Thread_Enable_dispatch> <== NOT EXECUTED 3001269c: e3a0000e mov r0, #14 ; 0xe <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 300126a0: e28dd004 add sp, sp, #4 ; 0x4 300126a4: e8bd8030 pop {r4, r5, pc} case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); break; case TIMER_INTERVAL_ON_TASK: if ( !_Timer_Server_schedule_operation ) { 300126a8: e59f505c ldr r5, [pc, #92] ; 3001270c 300126ac: e5953000 ldr r3, [r5] 300126b0: e3530000 cmp r3, #0 ; 0x0 300126b4: 0afffff7 beq 30012698 _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } _Watchdog_Remove( &the_timer->Ticker ); 300126b8: e2840010 add r0, r4, #16 ; 0x10 300126bc: eb0012ae bl 3001717c <_Watchdog_Remove> (*_Timer_Server_schedule_operation)( the_timer ); 300126c0: e1a00004 mov r0, r4 300126c4: e1a0e00f mov lr, pc 300126c8: e595f000 ldr pc, [r5] case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 300126cc: eb000c71 bl 30015898 <_Thread_Enable_dispatch> 300126d0: e3a00000 mov r0, #0 ; 0x0 300126d4: eafffff1 b 300126a0 (*_Timer_Server_schedule_operation)( the_timer ); break; case TIMER_TIME_OF_DAY: case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); 300126d8: eb000c6e bl 30015898 <_Thread_Enable_dispatch> 300126dc: e3a0000b mov r0, #11 ; 0xb 300126e0: eaffffee b 300126a0 switch ( location ) { case OBJECTS_LOCAL: switch ( the_timer->the_class ) { case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); 300126e4: e2844010 add r4, r4, #16 ; 0x10 300126e8: e1a00004 mov r0, r4 300126ec: eb0012a2 bl 3001717c <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 300126f0: e59f0018 ldr r0, [pc, #24] ; 30012710 300126f4: e1a01004 mov r1, r4 300126f8: eb001230 bl 30016fc0 <_Watchdog_Insert> case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 300126fc: eb000c65 bl 30015898 <_Thread_Enable_dispatch> 30012700: e3a00000 mov r0, #0 ; 0x0 30012704: eaffffe5 b 300126a0 30012708: 300315f0 .word 0x300315f0 3001270c: 30031630 .word 0x30031630 30012710: 30031424 .word 0x30031424 30012714 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30012714: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30012718: e1a07000 mov r7, r0 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 3001271c: e59f00cc ldr r0, [pc, #204] ; 300127f0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30012720: e24dd004 sub sp, sp, #4 ; 0x4 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 30012724: e590c000 ldr ip, [r0] Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30012728: e1a06001 mov r6, r1 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 3001272c: e35c0000 cmp ip, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 30012730: e1a05002 mov r5, r2 30012734: e1a08003 mov r8, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 30012738: 03a0000e moveq r0, #14 ; 0xe 3001273c: 0a000005 beq 30012758 return RTEMS_INCORRECT_STATE; if ( !routine ) 30012740: e3520000 cmp r2, #0 ; 0x0 30012744: 03a00009 moveq r0, #9 ; 0x9 30012748: 0a000002 beq 30012758 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 3001274c: e3510000 cmp r1, #0 ; 0x0 30012750: 03a0000a moveq r0, #10 ; 0xa 30012754: 1a000001 bne 30012760 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 30012758: e28dd004 add sp, sp, #4 ; 0x4 3001275c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30012760: e59f008c ldr r0, [pc, #140] ; 300127f4 30012764: e1a01007 mov r1, r7 30012768: e1a0200d mov r2, sp 3001276c: eb000a07 bl 30014f90 <_Objects_Get> if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 30012770: e59d3000 ldr r3, [sp] 30012774: e1a04000 mov r4, r0 30012778: e3530000 cmp r3, #0 ; 0x0 3001277c: 13a00004 movne r0, #4 ; 0x4 30012780: 1afffff4 bne 30012758 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 30012784: e2840010 add r0, r4, #16 ; 0x10 30012788: eb00127b bl 3001717c <_Watchdog_Remove> _ISR_Disable( level ); 3001278c: e10f1000 mrs r1, CPSR 30012790: e38130c0 orr r3, r1, #192 ; 0xc0 30012794: 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 ) { 30012798: e5942018 ldr r2, [r4, #24] 3001279c: e3520000 cmp r2, #0 ; 0x0 300127a0: 1a00000e bne 300127e0 /* * 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; 300127a4: e3a03001 mov r3, #1 ; 0x1 300127a8: e5843038 str r3, [r4, #56] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 300127ac: e5842018 str r2, [r4, #24] the_watchdog->routine = routine; 300127b0: e584502c str r5, [r4, #44] the_watchdog->id = id; 300127b4: e5847030 str r7, [r4, #48] the_watchdog->user_data = user_data; 300127b8: e5848034 str r8, [r4, #52] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 300127bc: e584601c str r6, [r4, #28] _ISR_Enable( level ); 300127c0: 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 ); 300127c4: e59f302c ldr r3, [pc, #44] ; 300127f8 300127c8: e1a00004 mov r0, r4 300127cc: e1a0e00f mov lr, pc 300127d0: e593f000 ldr pc, [r3] _Thread_Enable_dispatch(); 300127d4: eb000c2f bl 30015898 <_Thread_Enable_dispatch> 300127d8: e3a00000 mov r0, #0 ; 0x0 300127dc: eaffffdd b 30012758 * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); 300127e0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_Enable_dispatch(); 300127e4: eb000c2b bl 30015898 <_Thread_Enable_dispatch> <== NOT EXECUTED 300127e8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300127ec: eaffffd9 b 30012758 <== NOT EXECUTED 300127f0: 30031634 .word 0x30031634 300127f4: 300315f0 .word 0x300315f0 300127f8: 30031630 .word 0x30031630 30006748 : static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 30006748: 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) 3000674c: e2109202 ands r9, r0, #536870912 ; 0x20000000 <== NOT EXECUTED static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 30006750: e1a05000 mov r5, r0 <== NOT EXECUTED 30006754: e1a06001 mov r6, r1 <== NOT EXECUTED 30006758: e1a0a002 mov sl, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 3000675c: 0a00000c beq 30006794 <== NOT EXECUTED { if (rtems_panic_in_progress++) 30006760: e59f1190 ldr r1, [pc, #400] ; 300068f8 <== NOT EXECUTED 30006764: e5913000 ldr r3, [r1] <== NOT EXECUTED 30006768: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3000676c: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30006770: e5813000 str r3, [r1] <== NOT EXECUTED 30006774: 0a000003 beq 30006788 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 30006778: e59f217c ldr r2, [pc, #380] ; 300068fc <== NOT EXECUTED 3000677c: e5923000 ldr r3, [r2] <== NOT EXECUTED 30006780: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 30006784: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 30006788: e5913000 ldr r3, [r1] <== NOT EXECUTED 3000678c: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 30006790: ca00002f bgt 30006854 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 30006794: e59f8164 ldr r8, [pc, #356] ; 30006900 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 30006798: e3c54207 bic r4, r5, #1879048192 ; 0x70000000 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 3000679c: e5983000 ldr r3, [r8] <== NOT EXECUTED 300067a0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 300067a4: eb003bab bl 30015658 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 300067a8: e2150101 ands r0, r5, #1073741824 ; 0x40000000 <== NOT EXECUTED 300067ac: 01a07000 moveq r7, r0 <== NOT EXECUTED 300067b0: 1a000037 bne 30006894 <== 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); 300067b4: e5983000 ldr r3, [r8] <== NOT EXECUTED 300067b8: e1a01006 mov r1, r6 <== NOT EXECUTED 300067bc: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 300067c0: e1a0200a mov r2, sl <== NOT EXECUTED 300067c4: eb0054c6 bl 3001bae4 <== NOT EXECUTED if (status) 300067c8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); 300067cc: e1a06000 mov r6, r0 <== NOT EXECUTED if (status) 300067d0: 1a000021 bne 3000685c <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 300067d4: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 300067d8: 0a00000b beq 3000680c <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 300067dc: da000004 ble 300067f4 <== NOT EXECUTED 300067e0: e1a00007 mov r0, r7 <== NOT EXECUTED 300067e4: eb0048a9 bl 30018a90 <== NOT EXECUTED 300067e8: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 300067ec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300067f0: 1a000032 bne 300068c0 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 300067f4: e5983000 ldr r3, [r8] <== NOT EXECUTED 300067f8: e59f1104 ldr r1, [pc, #260] ; 30006904 <== NOT EXECUTED 300067fc: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30006800: e1a02007 mov r2, r7 <== NOT EXECUTED 30006804: eb003ce6 bl 30015ba4 <== NOT EXECUTED 30006808: e0866000 add r6, r6, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 3000680c: e5983000 ldr r3, [r8] <== NOT EXECUTED 30006810: e59f10f0 ldr r1, [pc, #240] ; 30006908 <== NOT EXECUTED 30006814: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30006818: eb003ce1 bl 30015ba4 <== NOT EXECUTED (void) fflush(stderr); 3000681c: e5983000 ldr r3, [r8] <== 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"); 30006820: e1a04000 mov r4, r0 <== NOT EXECUTED (void) fflush(stderr); 30006824: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30006828: eb003b8a bl 30015658 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 3000682c: e3150203 tst r5, #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"); 30006830: 00840006 addeq r0, r4, r6 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 30006834: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 30006838: e3590000 cmp r9, #0 ; 0x0 <== NOT EXECUTED 3000683c: 0a000029 beq 300068e8 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 30006840: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30006844: e59f10c0 ldr r1, [pc, #192] ; 3000690c <== NOT EXECUTED 30006848: eb00003d bl 30006944 <== NOT EXECUTED _exit(local_errno); 3000684c: e1a00007 mov r0, r7 <== NOT EXECUTED 30006850: eb000219 bl 300070bc <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); abort(); 30006854: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } } return chars_written; } 30006858: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 3000685c: e59f309c ldr r3, [pc, #156] ; 30006900 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 30006860: e1a01004 mov r1, r4 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30006864: e5932000 ldr r2, [r3] <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 30006868: e59f00a0 ldr r0, [pc, #160] ; 30006910 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 3000686c: e592400c ldr r4, [r2, #12] <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 30006870: eb0027f4 bl 30010848 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30006874: e59f1098 ldr r1, [pc, #152] ; 30006914 <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 30006878: 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)); 3000687c: e1a00004 mov r0, r4 <== NOT EXECUTED 30006880: eb003cc7 bl 30015ba4 <== NOT EXECUTED if (local_errno) 30006884: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30006888: e0866000 add r6, r6, r0 <== NOT EXECUTED if (local_errno) 3000688c: 0affffde beq 3000680c <== NOT EXECUTED 30006890: eaffffd1 b 300067dc <== NOT EXECUTED (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; 30006894: eb003aaf bl 30015358 <__errno> <== 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); 30006898: e5983000 ldr r3, [r8] <== NOT EXECUTED (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; 3000689c: 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); 300068a0: e1a01006 mov r1, r6 <== NOT EXECUTED 300068a4: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 300068a8: e1a0200a mov r2, sl <== NOT EXECUTED 300068ac: eb00548c bl 3001bae4 <== NOT EXECUTED if (status) 300068b0: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); 300068b4: e1a06000 mov r6, r0 <== NOT EXECUTED if (status) 300068b8: 0affffc5 beq 300067d4 <== NOT EXECUTED 300068bc: eaffffe6 b 3000685c <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 300068c0: e5983000 ldr r3, [r8] <== NOT EXECUTED 300068c4: e1a00007 mov r0, r7 <== NOT EXECUTED 300068c8: e593400c ldr r4, [r3, #12] <== NOT EXECUTED 300068cc: eb00486f bl 30018a90 <== NOT EXECUTED 300068d0: e59f1040 ldr r1, [pc, #64] ; 30006918 <== NOT EXECUTED 300068d4: e1a02000 mov r2, r0 <== NOT EXECUTED 300068d8: e1a00004 mov r0, r4 <== NOT EXECUTED 300068dc: eb003cb0 bl 30015ba4 <== NOT EXECUTED 300068e0: e0866000 add r6, r6, r0 <== NOT EXECUTED 300068e4: eaffffc8 b 3000680c <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 300068e8: e59f102c ldr r1, [pc, #44] ; 3000691c <== NOT EXECUTED 300068ec: e1a00009 mov r0, r9 <== NOT EXECUTED 300068f0: eb000013 bl 30006944 <== NOT EXECUTED abort(); 300068f4: eb003a8e bl 30015334 <== NOT EXECUTED 300068f8: 30025c34 .word 0x30025c34 300068fc: 30025dac .word 0x30025dac 30006900: 30024e98 .word 0x30024e98 30006904: 30021d1c .word 0x30021d1c 30006908: 30021618 .word 0x30021618 3000690c: 30021d30 .word 0x30021d30 30006910: 30020550 .word 0x30020550 30006914: 30021cfc .word 0x30021cfc 30006918: 30021d0c .word 0x30021d0c 3000691c: 30021d48 .word 0x30021d48 3001e608 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 3001e608: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 3001e60c: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 3001e610: e59f90ec ldr r9, [pc, #236] ; 3001e704 <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 3001e614: e59f80ec ldr r8, [pc, #236] ; 3001e708 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 3001e618: e59fa0ec ldr sl, [pc, #236] ; 3001e70c <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 3001e61c: e1a05000 mov r5, r0 <== NOT EXECUTED 3001e620: e1a0b001 mov fp, r1 <== NOT EXECUTED 3001e624: e3e07102 mvn r7, #-2147483648 ; 0x80000000 <== NOT EXECUTED 3001e628: e1a06004 mov r6, r4 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 3001e62c: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 3001e630: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3001e634: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e638: e5853004 str r3, [r5, #4] <== NOT EXECUTED 3001e63c: ba00001d blt 3001e6b8 <== NOT EXECUTED 3001e640: e5953000 ldr r3, [r5] <== NOT EXECUTED 3001e644: e4d30001 ldrb r0, [r3], #1 <== NOT EXECUTED if (c == ':') 3001e648: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 3001e64c: e5853000 str r3, [r5] <== NOT EXECUTED if (c == ':') 3001e650: 0a00001d beq 3001e6cc <== NOT EXECUTED break; if (sign == 0) { 3001e654: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 3001e658: 1a000004 bne 3001e670 <== NOT EXECUTED if (c == '-') { 3001e65c: e350002d cmp r0, #45 ; 0x2d <== NOT EXECUTED sign = -1; limit++; 3001e660: 02877001 addeq r7, r7, #1 ; 0x1 <== NOT EXECUTED 3001e664: 02466001 subeq r6, r6, #1 ; 0x1 <== NOT EXECUTED for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 3001e668: 0affffef beq 3001e62c <== NOT EXECUTED sign = -1; limit++; continue; 3001e66c: e3a06001 mov r6, #1 ; 0x1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 3001e670: e5983000 ldr r3, [r8] <== NOT EXECUTED 3001e674: e7d32000 ldrb r2, [r3, r0] <== NOT EXECUTED 3001e678: e3120004 tst r2, #4 ; 0x4 <== NOT EXECUTED 3001e67c: 0a000017 beq 3001e6e0 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 3001e680: e083279a umull r2, r3, sl, r7 <== NOT EXECUTED 3001e684: e15401a3 cmp r4, r3, lsr #3 <== NOT EXECUTED 3001e688: 8a000014 bhi 3001e6e0 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 3001e68c: e2400030 sub r0, r0, #48 ; 0x30 <== NOT EXECUTED 3001e690: 11a01184 lslne r1, r4, #3 <== NOT EXECUTED 3001e694: 11a02084 lslne r2, r4, #1 <== NOT EXECUTED if ((i > (limit / 10)) 3001e698: 0a000012 beq 3001e6e8 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 3001e69c: e0823001 add r3, r2, r1 <== NOT EXECUTED 3001e6a0: e0804003 add r4, r0, r3 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 3001e6a4: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 3001e6a8: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3001e6ac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e6b0: e5853004 str r3, [r5, #4] <== NOT EXECUTED 3001e6b4: aaffffe1 bge 3001e640 <== NOT EXECUTED 3001e6b8: e5990000 ldr r0, [r9] <== NOT EXECUTED 3001e6bc: e1a01005 mov r1, r5 <== NOT EXECUTED 3001e6c0: eb004c33 bl 30031794 <__srget_r> <== NOT EXECUTED if (c == ':') 3001e6c4: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 3001e6c8: 1affffe1 bne 3001e654 <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 3001e6cc: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED return 0; *val = i * sign; 3001e6d0: 10030694 mulne r3, r4, r6 <== NOT EXECUTED 3001e6d4: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 3001e6d8: 158b3000 strne r3, [fp] <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 3001e6dc: 18bd8ff0 popne {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED return 0; *val = i * sign; return 1; 3001e6e0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001e6e4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 3001e6e8: e1a01184 lsl r1, r4, #3 <== NOT EXECUTED 3001e6ec: e1a02084 lsl r2, r4, #1 <== NOT EXECUTED 3001e6f0: e0823001 add r3, r2, r1 <== NOT EXECUTED 3001e6f4: e0633007 rsb r3, r3, r7 <== NOT EXECUTED 3001e6f8: e1500003 cmp r0, r3 <== NOT EXECUTED 3001e6fc: 9affffe6 bls 3001e69c <== NOT EXECUTED 3001e700: eafffff6 b 3001e6e0 <== NOT EXECUTED 3001e704: 300459d0 .word 0x300459d0 3001e708: 300459c4 .word 0x300459c4 3001e70c: cccccccd .word 0xcccccccd 3001e710 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 3001e710: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3001e714: e1a05002 mov r5, r2 <== NOT EXECUTED int c; *name = *bufp; 3001e718: e5922000 ldr r2, [r2] <== NOT EXECUTED for (;;) { c = getc(fp); 3001e71c: e59f70d0 ldr r7, [pc, #208] ; 3001e7f4 <== NOT EXECUTED static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 3001e720: 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) { 3001e724: e1a04000 mov r4, r0 <== NOT EXECUTED 3001e728: e1a06003 mov r6, r3 <== NOT EXECUTED 3001e72c: ea000013 b 3001e780 <== NOT EXECUTED int c; *name = *bufp; for (;;) { c = getc(fp); 3001e730: e5943000 ldr r3, [r4] <== NOT EXECUTED 3001e734: e4d30001 ldrb r0, [r3], #1 <== NOT EXECUTED if (c == ':') { 3001e738: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 3001e73c: e5843000 str r3, [r4] <== NOT EXECUTED if (c == ':') { 3001e740: 0a000018 beq 3001e7a8 <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { 3001e744: e350000a cmp r0, #10 ; 0xa <== NOT EXECUTED 3001e748: 0a000024 beq 3001e7e0 <== NOT EXECUTED if (!nlFlag) return 0; break; } if (c == EOF) 3001e74c: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 3001e750: 0a000025 beq 3001e7ec <== NOT EXECUTED return 0; if (*nleft < 2) 3001e754: e5963000 ldr r3, [r6] <== NOT EXECUTED 3001e758: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 3001e75c: 9a000022 bls 3001e7ec <== NOT EXECUTED return 0; **bufp = c; 3001e760: e5953000 ldr r3, [r5] <== NOT EXECUTED 3001e764: e5c30000 strb r0, [r3] <== NOT EXECUTED ++(*bufp); 3001e768: e5952000 ldr r2, [r5] <== NOT EXECUTED --(*nleft); 3001e76c: e5963000 ldr r3, [r6] <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 3001e770: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 3001e774: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 3001e778: e5852000 str r2, [r5] <== NOT EXECUTED --(*nleft); 3001e77c: e5863000 str r3, [r6] <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 3001e780: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 3001e784: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3001e788: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e78c: e5843004 str r3, [r4, #4] <== NOT EXECUTED 3001e790: aaffffe6 bge 3001e730 <== NOT EXECUTED 3001e794: e5970000 ldr r0, [r7] <== NOT EXECUTED 3001e798: e1a01004 mov r1, r4 <== NOT EXECUTED 3001e79c: eb004bfc bl 30031794 <__srget_r> <== NOT EXECUTED if (c == ':') { 3001e7a0: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 3001e7a4: 1affffe6 bne 3001e744 <== NOT EXECUTED if (nlFlag) 3001e7a8: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED 3001e7ac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e7b0: 1a00000d bne 3001e7ec <== NOT EXECUTED return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 3001e7b4: e5951000 ldr r1, [r5] <== NOT EXECUTED 3001e7b8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001e7bc: e5c13000 strb r3, [r1] <== NOT EXECUTED ++(*bufp); 3001e7c0: e5952000 ldr r2, [r5] <== NOT EXECUTED --(*nleft); 3001e7c4: e5963000 ldr r3, [r6] <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 3001e7c8: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 3001e7cc: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 3001e7d0: e5852000 str r2, [r5] <== NOT EXECUTED --(*nleft); 3001e7d4: e5863000 str r3, [r6] <== NOT EXECUTED 3001e7d8: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3001e7dc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 3001e7e0: e59dc014 ldr ip, [sp, #20] <== NOT EXECUTED 3001e7e4: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 3001e7e8: 1afffff1 bne 3001e7b4 <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 3001e7ec: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001e7f0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 3001e7f4: 300459d0 .word 0x300459d0 3001e7f8 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 3001e7f8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 3001e7fc: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3001e800: e28d5008 add r5, sp, #8 ; 0x8 <== NOT EXECUTED 3001e804: e28d6004 add r6, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 3001e808: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 3001e80c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3001e810: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED 3001e814: e1a02005 mov r2, r5 <== NOT EXECUTED 3001e818: e1a03006 mov r3, r6 <== NOT EXECUTED 3001e81c: e58d7000 str r7, [sp] <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 3001e820: e1a04000 mov r4, r0 <== NOT EXECUTED 3001e824: e1a08001 mov r8, r1 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3001e828: ebffffb8 bl 3001e710 <== NOT EXECUTED 3001e82c: e1500007 cmp r0, r7 <== NOT EXECUTED 3001e830: 1a000002 bne 3001e840 <== NOT EXECUTED *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 3001e834: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001e838: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001e83c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3001e840: e1a00004 mov r0, r4 <== NOT EXECUTED 3001e844: e2881004 add r1, r8, #4 ; 0x4 <== NOT EXECUTED 3001e848: e1a02005 mov r2, r5 <== NOT EXECUTED 3001e84c: e1a03006 mov r3, r6 <== NOT EXECUTED 3001e850: e58d7000 str r7, [sp] <== NOT EXECUTED 3001e854: ebffffad bl 3001e710 <== NOT EXECUTED 3001e858: e1500007 cmp r0, r7 <== NOT EXECUTED 3001e85c: 0afffff4 beq 3001e834 <== NOT EXECUTED 3001e860: e1a00004 mov r0, r4 <== NOT EXECUTED 3001e864: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 3001e868: ebffff66 bl 3001e608 <== NOT EXECUTED 3001e86c: e1500007 cmp r0, r7 <== NOT EXECUTED 3001e870: 0affffef beq 3001e834 <== NOT EXECUTED 3001e874: e1a00004 mov r0, r4 <== NOT EXECUTED 3001e878: e1a02005 mov r2, r5 <== NOT EXECUTED 3001e87c: e1a03006 mov r3, r6 <== NOT EXECUTED 3001e880: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 3001e884: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 3001e888: e58d4000 str r4, [sp] <== NOT EXECUTED 3001e88c: ebffff9f bl 3001e710 <== NOT EXECUTED 3001e890: e1500007 cmp r0, r7 <== NOT EXECUTED 3001e894: 0affffe6 beq 3001e834 <== 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; 3001e898: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e89c: e59d000c ldr r0, [sp, #12] <== 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; 3001e8a0: e1c830b8 strh r3, [r8, #8] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e8a4: e5d02000 ldrb r2, [r0] <== NOT EXECUTED 3001e8a8: e1520007 cmp r2, r7 <== NOT EXECUTED 3001e8ac: 03a02017 moveq r2, #23 ; 0x17 <== NOT EXECUTED 3001e8b0: 0a000008 beq 3001e8d8 <== NOT EXECUTED 3001e8b4: e1a03004 mov r3, r4 <== NOT EXECUTED 3001e8b8: e1a01000 mov r1, r0 <== NOT EXECUTED if(*cp == ',') 3001e8bc: e352002c cmp r2, #44 ; 0x2c <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e8c0: e5f12001 ldrb r2, [r1, #1]! <== NOT EXECUTED if(*cp == ',') memcount++; 3001e8c4: 02833001 addeq r3, r3, #1 ; 0x1 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e8c8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3001e8cc: 1afffffa bne 3001e8bc <== NOT EXECUTED 3001e8d0: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3001e8d4: e2832013 add r2, r3, #19 ; 0x13 <== NOT EXECUTED } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 3001e8d8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3001e8dc: e1530002 cmp r3, r2 <== NOT EXECUTED 3001e8e0: 3affffd3 bcc 3001e834 <== NOT EXECUTED return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 3001e8e4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001e8e8: e283300f add r3, r3, #15 ; 0xf <== NOT EXECUTED 3001e8ec: e3c3300f bic r3, r3, #15 ; 0xf <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 3001e8f0: e5830000 str r0, [r3] <== NOT EXECUTED for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e8f4: e59d200c ldr r2, [sp, #12] <== 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); 3001e8f8: e588300c str r3, [r8, #12] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e8fc: e5d23000 ldrb r3, [r2] <== NOT EXECUTED 3001e900: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e904: 03a01004 moveq r1, #4 ; 0x4 <== NOT EXECUTED 3001e908: 0a00000b beq 3001e93c <== NOT EXECUTED 3001e90c: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED 3001e910: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; 3001e914: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 3001e918: e353002c cmp r3, #44 ; 0x2c <== NOT EXECUTED *cp = '\0'; 3001e91c: 05420001 strbeq r0, [r2, #-1] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 3001e920: 0598300c ldreq r3, [r8, #12] <== NOT EXECUTED 3001e924: 07832101 streq r2, [r3, r1, lsl #2] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e928: e4d23001 ldrb r3, [r2], #1 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; 3001e92c: 02811001 addeq r1, r1, #1 ; 0x1 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3001e930: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001e934: 1afffff7 bne 3001e918 <== NOT EXECUTED 3001e938: e1a01101 lsl r1, r1, #2 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 3001e93c: e598200c ldr r2, [r8, #12] <== NOT EXECUTED 3001e940: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 3001e944: e7823001 str r3, [r2, r1] <== NOT EXECUTED 3001e948: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3001e94c: eaffffb9 b 3001e838 <== NOT EXECUTED 3001e994 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3001e994: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 3001e998: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3001e99c: e28d7008 add r7, sp, #8 ; 0x8 <== NOT EXECUTED 3001e9a0: e28d8004 add r8, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3001e9a4: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 3001e9a8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3001e9ac: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 3001e9b0: e1a02007 mov r2, r7 <== NOT EXECUTED 3001e9b4: e1a03008 mov r3, r8 <== NOT EXECUTED 3001e9b8: e58d6000 str r6, [sp] <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3001e9bc: e1a04000 mov r4, r0 <== NOT EXECUTED 3001e9c0: e1a05001 mov r5, r1 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3001e9c4: ebffff51 bl 3001e710 <== NOT EXECUTED 3001e9c8: e1500006 cmp r0, r6 <== NOT EXECUTED 3001e9cc: 1a000002 bne 3001e9dc <== NOT EXECUTED || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; 3001e9d0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 3001e9d4: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001e9d8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3001e9dc: e1a00004 mov r0, r4 <== NOT EXECUTED 3001e9e0: e2851004 add r1, r5, #4 ; 0x4 <== NOT EXECUTED 3001e9e4: e1a02007 mov r2, r7 <== NOT EXECUTED 3001e9e8: e1a03008 mov r3, r8 <== NOT EXECUTED 3001e9ec: e58d6000 str r6, [sp] <== NOT EXECUTED 3001e9f0: ebffff46 bl 3001e710 <== NOT EXECUTED 3001e9f4: e1500006 cmp r0, r6 <== NOT EXECUTED 3001e9f8: 0afffff4 beq 3001e9d0 <== NOT EXECUTED 3001e9fc: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ea00: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 3001ea04: ebfffeff bl 3001e608 <== NOT EXECUTED 3001ea08: e1500006 cmp r0, r6 <== NOT EXECUTED 3001ea0c: 0affffef beq 3001e9d0 <== NOT EXECUTED 3001ea10: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ea14: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 3001ea18: ebfffefa bl 3001e608 <== NOT EXECUTED 3001ea1c: e1500006 cmp r0, r6 <== NOT EXECUTED 3001ea20: 0affffea beq 3001e9d0 <== NOT EXECUTED 3001ea24: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ea28: e285100c add r1, r5, #12 ; 0xc <== NOT EXECUTED 3001ea2c: e1a02007 mov r2, r7 <== NOT EXECUTED 3001ea30: e1a03008 mov r3, r8 <== NOT EXECUTED 3001ea34: e58d6000 str r6, [sp] <== NOT EXECUTED 3001ea38: ebffff34 bl 3001e710 <== NOT EXECUTED 3001ea3c: e1500006 cmp r0, r6 <== NOT EXECUTED 3001ea40: 0affffe2 beq 3001e9d0 <== NOT EXECUTED 3001ea44: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ea48: e2851010 add r1, r5, #16 ; 0x10 <== NOT EXECUTED 3001ea4c: e1a02007 mov r2, r7 <== NOT EXECUTED 3001ea50: e1a03008 mov r3, r8 <== NOT EXECUTED 3001ea54: e58d6000 str r6, [sp] <== NOT EXECUTED 3001ea58: ebffff2c bl 3001e710 <== NOT EXECUTED 3001ea5c: e1500006 cmp r0, r6 <== NOT EXECUTED 3001ea60: 0affffda beq 3001e9d0 <== NOT EXECUTED 3001ea64: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ea68: e2851014 add r1, r5, #20 ; 0x14 <== NOT EXECUTED 3001ea6c: e1a02007 mov r2, r7 <== NOT EXECUTED 3001ea70: e1a03008 mov r3, r8 <== NOT EXECUTED 3001ea74: e58d6000 str r6, [sp] <== NOT EXECUTED 3001ea78: ebffff24 bl 3001e710 <== NOT EXECUTED 3001ea7c: e1500006 cmp r0, r6 <== NOT EXECUTED 3001ea80: 0affffd2 beq 3001e9d0 <== NOT EXECUTED 3001ea84: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ea88: e1a02007 mov r2, r7 <== NOT EXECUTED 3001ea8c: e1a03008 mov r3, r8 <== NOT EXECUTED 3001ea90: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 3001ea94: e2851018 add r1, r5, #24 ; 0x18 <== NOT EXECUTED 3001ea98: e58d4000 str r4, [sp] <== NOT EXECUTED 3001ea9c: ebffff1b bl 3001e710 <== NOT EXECUTED 3001eaa0: e1500006 cmp r0, r6 <== NOT EXECUTED 3001eaa4: 0affffc9 beq 3001e9d0 <== 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; 3001eaa8: e1dd30bc ldrh r3, [sp, #12] <== NOT EXECUTED 3001eaac: e1a00004 mov r0, r4 <== NOT EXECUTED 3001eab0: 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; 3001eab4: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED 3001eab8: e1c530b8 strh r3, [r5, #8] <== NOT EXECUTED 3001eabc: eaffffc4 b 3001e9d4 <== NOT EXECUTED 3001e5c0 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 3001e5c0: e59f300c ldr r3, [pc, #12] ; 3001e5d4 <== NOT EXECUTED 3001e5c4: e5932000 ldr r2, [r3] <== NOT EXECUTED 3001e5c8: e1c202bc strh r0, [r2, #44] <== NOT EXECUTED return 0; } 3001e5cc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 3001e5d0: e12fff1e bx lr <== NOT EXECUTED 3001e5d4: 30044b08 .word 0x30044b08 3001ebe4 : return NULL; return &grent; } void setgrent(void) { 3001ebe4: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (group_fp != NULL) 3001ebe8: e59f4020 ldr r4, [pc, #32] ; 3001ec10 <== NOT EXECUTED return &grent; } void setgrent(void) { init_etc_passwd_group(); 3001ebec: ebffffc4 bl 3001eb04 <== NOT EXECUTED if (group_fp != NULL) 3001ebf0: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001ebf4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(group_fp); 3001ebf8: 1b0038d0 blne 3002cf40 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 3001ebfc: e59f0010 ldr r0, [pc, #16] ; 3001ec14 <== NOT EXECUTED 3001ec00: e59f1010 ldr r1, [pc, #16] ; 3001ec18 <== NOT EXECUTED 3001ec04: eb003ac0 bl 3002d70c <== NOT EXECUTED 3001ec08: e5840000 str r0, [r4] <== NOT EXECUTED } 3001ec0c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3001ec10: 30058828 .word 0x30058828 3001ec14: 30041ebc .word 0x30041ebc 3001ec18: 30042dc8 .word 0x30042dc8 3001ede4 : return NULL; return &pwent; } void setpwent(void) { 3001ede4: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (passwd_fp != NULL) 3001ede8: e59f4020 ldr r4, [pc, #32] ; 3001ee10 <== NOT EXECUTED return &pwent; } void setpwent(void) { init_etc_passwd_group(); 3001edec: ebffff44 bl 3001eb04 <== NOT EXECUTED if (passwd_fp != NULL) 3001edf0: e5940000 ldr r0, [r4] <== NOT EXECUTED 3001edf4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(passwd_fp); 3001edf8: 1b003850 blne 3002cf40 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 3001edfc: e59f0010 ldr r0, [pc, #16] ; 3001ee14 <== NOT EXECUTED 3001ee00: e59f1010 ldr r1, [pc, #16] ; 3001ee18 <== NOT EXECUTED 3001ee04: eb003a40 bl 3002d70c <== NOT EXECUTED 3001ee08: e5840000 str r0, [r4] <== NOT EXECUTED } 3001ee0c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3001ee10: 30058740 .word 0x30058740 3001ee14: 30041e48 .word 0x30041e48 3001ee18: 30042dc8 .word 0x30042dc8 30004078 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 30004078: e59f300c ldr r3, [pc, #12] ; 3000408c <== NOT EXECUTED 3000407c: e5932000 ldr r2, [r3] <== NOT EXECUTED 30004080: e1c202ba strh r0, [r2, #42] <== NOT EXECUTED return 0; } 30004084: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30004088: e12fff1e bx lr <== NOT EXECUTED 3000408c: 30044b08 .word 0x30044b08 30002e08 : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 30002e08: e591303c ldr r3, [r1, #60] <== NOT EXECUTED 30002e0c: e59f2050 ldr r2, [pc, #80] ; 30002e64 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002e10: 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)) { 30002e14: e0032002 and r2, r3, r2 <== NOT EXECUTED 30002e18: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002e1c: e1a05001 mov r5, r1 <== NOT EXECUTED 30002e20: 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)) { 30002e24: 1a000002 bne 30002e34 <== 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); 30002e28: e1a00004 mov r0, r4 <== NOT EXECUTED } return i; } 30002e2c: 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); 30002e30: eaffff84 b 30002c48 <== NOT EXECUTED /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002e34: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30002e38: e1a02001 mov r2, r1 <== NOT EXECUTED 30002e3c: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30002e40: eb000655 bl 3000479c <== NOT EXECUTED i = iproc (c, tty); 30002e44: e1a01005 mov r1, r5 <== NOT EXECUTED 30002e48: e1a00004 mov r0, r4 <== NOT EXECUTED 30002e4c: ebffff7d bl 30002c48 <== NOT EXECUTED 30002e50: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 30002e54: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 30002e58: eb000696 bl 300048b8 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 30002e5c: e1a00004 mov r0, r4 <== NOT EXECUTED 30002e60: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002e64: 00000e78 .word 0x00000e78 3000568c : int _STAT_NAME( const char *path, struct stat *buf ) { 3000568c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30005690: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 30005694: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30005698: 0a00002c beq 30005750 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 3000569c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 300056a0: e1a0200d mov r2, sp <== NOT EXECUTED 300056a4: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 300056a8: ebfff9d2 bl 30003df8 <== NOT EXECUTED if ( status != 0 ) 300056ac: 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 ); 300056b0: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 300056b4: 1a000023 bne 30005748 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 300056b8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 300056bc: e5932018 ldr r2, [r3, #24] <== NOT EXECUTED 300056c0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 300056c4: 0a000014 beq 3000571c <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 300056c8: e1a01000 mov r1, r0 <== NOT EXECUTED 300056cc: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 300056d0: e1a00004 mov r0, r4 <== NOT EXECUTED 300056d4: eb00a7d0 bl 3002f61c <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 300056d8: e1a01004 mov r1, r4 <== NOT EXECUTED 300056dc: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 300056e0: e1a0000d mov r0, sp <== NOT EXECUTED 300056e4: e1a0e00f mov lr, pc <== NOT EXECUTED 300056e8: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300056ec: 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 ); 300056f0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300056f4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300056f8: 0a000004 beq 30005710 <== NOT EXECUTED 300056fc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30005700: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30005704: 11a0000d movne r0, sp <== NOT EXECUTED 30005708: 11a0e00f movne lr, pc <== NOT EXECUTED 3000570c: 112fff13 bxne r3 <== NOT EXECUTED return status; } 30005710: e1a00004 mov r0, r4 <== NOT EXECUTED 30005714: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30005718: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 3000571c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30005720: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30005724: 0a000004 beq 3000573c <== NOT EXECUTED 30005728: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000572c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30005730: 11a0000d movne r0, sp <== NOT EXECUTED 30005734: 11a0e00f movne lr, pc <== NOT EXECUTED 30005738: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000573c: eb009dae bl 3002cdfc <__errno> <== NOT EXECUTED 30005740: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30005744: e5803000 str r3, [r0] <== NOT EXECUTED 30005748: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3000574c: eaffffef b 30005710 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 30005750: eb009da9 bl 3002cdfc <__errno> <== NOT EXECUTED 30005754: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 30005758: e5803000 str r3, [r0] <== NOT EXECUTED 3000575c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30005760: eaffffea b 30005710 <== NOT EXECUTED 3001fddc : int symlink( const char *actualpath, const char *sympath ) { 3001fddc: 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 ); 3001fde0: e5d13000 ldrb r3, [r1] <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 3001fde4: 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 ); 3001fde8: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 3001fdec: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 3001fdf0: e1a05001 mov r5, r1 <== NOT EXECUTED 3001fdf4: 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 ); 3001fdf8: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 3001fdfc: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 3001fe00: 0a000001 beq 3001fe0c <== NOT EXECUTED 3001fe04: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fe08: 1a000023 bne 3001fe9c <== NOT EXECUTED 3001fe0c: e59f30d0 ldr r3, [pc, #208] ; 3001fee4 <== NOT EXECUTED 3001fe10: e1a0400d mov r4, sp <== NOT EXECUTED 3001fe14: e593c000 ldr ip, [r3] <== NOT EXECUTED 3001fe18: e3a0e001 mov lr, #1 ; 0x1 <== NOT EXECUTED 3001fe1c: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 3001fe20: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001fe24: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 3001fe28: e085000e add r0, r5, lr <== NOT EXECUTED 3001fe2c: e1a0100d mov r1, sp <== NOT EXECUTED 3001fe30: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 3001fe34: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3001fe38: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fe3c: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( result != 0 ) 3001fe40: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001fe44: 1a000024 bne 3001fedc <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { 3001fe48: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 3001fe4c: e5923038 ldr r3, [r2, #56] <== NOT EXECUTED 3001fe50: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fe54: 0a000018 beq 3001febc <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 3001fe58: e1a01006 mov r1, r6 <== NOT EXECUTED 3001fe5c: e1a0000d mov r0, sp <== NOT EXECUTED 3001fe60: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED 3001fe64: e1a0e00f mov lr, pc <== NOT EXECUTED 3001fe68: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001fe6c: 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); 3001fe70: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3001fe74: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fe78: 0a000004 beq 3001fe90 <== NOT EXECUTED 3001fe7c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3001fe80: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fe84: 11a0000d movne r0, sp <== NOT EXECUTED 3001fe88: 11a0e00f movne lr, pc <== NOT EXECUTED 3001fe8c: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3001fe90: e1a00005 mov r0, r5 <== NOT EXECUTED 3001fe94: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 3001fe98: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 3001fe9c: e59f3040 ldr r3, [pc, #64] ; 3001fee4 <== NOT EXECUTED 3001fea0: e1a0e002 mov lr, r2 <== NOT EXECUTED 3001fea4: e593c000 ldr ip, [r3] <== NOT EXECUTED 3001fea8: e1a0400d mov r4, sp <== NOT EXECUTED 3001feac: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 3001feb0: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 3001feb4: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 3001feb8: eaffffda b 3001fe28 <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); 3001febc: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3001fec0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3001fec4: 11a0000d movne r0, sp <== NOT EXECUTED 3001fec8: 11a0e00f movne lr, pc <== NOT EXECUTED 3001fecc: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001fed0: eb0033c9 bl 3002cdfc <__errno> <== NOT EXECUTED 3001fed4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001fed8: e5803000 str r3, [r0] <== NOT EXECUTED 3001fedc: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 3001fee0: eaffffea b 3001fe90 <== NOT EXECUTED 3001fee4: 30044b08 .word 0x30044b08 3001fee8 : int tcdrain( int fd ) { return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); 3001fee8: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 3001feec: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3001fef0: eafffc3b b 3001efe4 <== NOT EXECUTED 30011370 : int tcgetattr( int fd, struct termios *tp ) { 30011370: e1a02001 mov r2, r1 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); 30011374: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 30011378: ea000dbc b 30014a70 <== NOT EXECUTED 3001137c : int fd, int opt, struct termios *tp ) { switch (opt) { 3001137c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int tcsetattr( int fd, int opt, struct termios *tp ) { 30011380: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 30011384: e1a05002 mov r5, r2 <== NOT EXECUTED 30011388: e1a04000 mov r4, r0 <== NOT EXECUTED switch (opt) { 3001138c: 0a00000b beq 300113c0 <== NOT EXECUTED 30011390: e3510001 cmp r1, #1 ; 0x1 <== NOT EXECUTED 30011394: 0a000004 beq 300113ac <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 30011398: eb000fee bl 30015358 <__errno> <== NOT EXECUTED 3001139c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300113a0: e5803000 str r3, [r0] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 300113a4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 300113a8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 300113ac: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 300113b0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 300113b4: eb000dad bl 30014a70 <== NOT EXECUTED 300113b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300113bc: bafffff8 blt 300113a4 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 300113c0: e1a00004 mov r0, r4 <== NOT EXECUTED 300113c4: e1a02005 mov r2, r5 <== NOT EXECUTED 300113c8: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED } } 300113cc: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 300113d0: ea000da6 b 30014a70 <== NOT EXECUTED 30020050 : */ char *ttyname( int fd ) { 30020050: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 30020054: e59f1018 ldr r1, [pc, #24] ; 30020074 <== NOT EXECUTED 30020058: e59f2018 ldr r2, [pc, #24] ; 30020078 <== NOT EXECUTED 3002005c: ebffffbd bl 3001ff58 <== NOT EXECUTED 30020060: e59f300c ldr r3, [pc, #12] ; 30020074 <== NOT EXECUTED return ttyname_buf; return NULL; } 30020064: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30020068: 01a00003 moveq r0, r3 <== NOT EXECUTED 3002006c: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 30020070: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30020074: 30044b0c .word 0x30044b0c 30020078: 00000406 .word 0x00000406 3001ff58 : int ttyname_r( int fd, char *name, size_t namesize ) { 3001ff58: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3001ff5c: e24dd0bc sub sp, sp, #188 ; 0xbc <== NOT EXECUTED 3001ff60: e1a05001 mov r5, r1 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 3001ff64: e28d1098 add r1, sp, #152 ; 0x98 <== NOT EXECUTED int ttyname_r( int fd, char *name, size_t namesize ) { 3001ff68: e1a04000 mov r4, r0 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 3001ff6c: ebffffe0 bl 3001fef4 <== NOT EXECUTED 3001ff70: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ff74: ba000008 blt 3001ff9c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) 3001ff78: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ff7c: e28d104c add r1, sp, #76 ; 0x4c <== NOT EXECUTED 3001ff80: ebfff7c9 bl 3001deac <== NOT EXECUTED 3001ff84: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ff88: 1a000003 bne 3001ff9c <== NOT EXECUTED 3001ff8c: e59d3058 ldr r3, [sp, #88] <== NOT EXECUTED 3001ff90: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 3001ff94: e3530a02 cmp r3, #8192 ; 0x2000 <== NOT EXECUTED 3001ff98: 0a000005 beq 3001ffb4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); 3001ff9c: eb003396 bl 3002cdfc <__errno> <== NOT EXECUTED 3001ffa0: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3001ffa4: e5803000 str r3, [r0] <== NOT EXECUTED 3001ffa8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED rval = name; break; } (void) closedir (dp); return 0; } 3001ffac: e28dd0bc add sp, sp, #188 ; 0xbc <== NOT EXECUTED 3001ffb0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== 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) 3001ffb4: e59f0090 ldr r0, [pc, #144] ; 3002004c <== NOT EXECUTED 3001ffb8: ebfffdb8 bl 3001f6a0 <== NOT EXECUTED 3001ffbc: 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); 3001ffc0: 12856005 addne r6, r5, #5 ; 0x5 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 3001ffc4: 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) 3001ffc8: 0afffff3 beq 3001ff9c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); for (rval = NULL; (dirp = readdir (dp)) != NULL ;) 3001ffcc: e1a00004 mov r0, r4 <== NOT EXECUTED 3001ffd0: ebfffe65 bl 3001f96c <== NOT EXECUTED 3001ffd4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3001ffd8: 0a000017 beq 3002003c <== NOT EXECUTED { if (dirp->d_ino != sb.st_ino) 3001ffdc: e5902000 ldr r2, [r0] <== NOT EXECUTED 3001ffe0: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 3001ffe4: e1520003 cmp r2, r3 <== NOT EXECUTED 3001ffe8: 1afffff7 bne 3001ffcc <== NOT EXECUTED continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 3001ffec: e280100c add r1, r0, #12 ; 0xc <== NOT EXECUTED 3001fff0: e1a00006 mov r0, r6 <== NOT EXECUTED 3001fff4: eb004829 bl 300320a0 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 3001fff8: e1a00005 mov r0, r5 <== NOT EXECUTED 3001fffc: e1a0100d mov r1, sp <== NOT EXECUTED 30020000: ebff95a1 bl 3000568c <== NOT EXECUTED 30020004: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30020008: 1affffef bne 3001ffcc <== NOT EXECUTED 3002000c: e59d2000 ldr r2, [sp] <== NOT EXECUTED 30020010: e59d304c ldr r3, [sp, #76] <== NOT EXECUTED 30020014: e1530002 cmp r3, r2 <== NOT EXECUTED 30020018: 1affffeb bne 3001ffcc <== NOT EXECUTED 3002001c: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 30020020: e59d3050 ldr r3, [sp, #80] <== NOT EXECUTED 30020024: e1530002 cmp r3, r2 <== NOT EXECUTED 30020028: 1affffe7 bne 3001ffcc <== NOT EXECUTED 3002002c: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 30020030: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 30020034: e1530002 cmp r3, r2 <== NOT EXECUTED 30020038: 1affffe3 bne 3001ffcc <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 3002003c: e1a00004 mov r0, r4 <== NOT EXECUTED 30020040: eb002979 bl 3002a62c <== NOT EXECUTED 30020044: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 30020048: eaffffd7 b 3001ffac <== NOT EXECUTED 3002004c: 30041f9c .word 0x30041f9c 3002007c : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; 3002007c: e59f3010 ldr r3, [pc, #16] ; 30020094 <== NOT EXECUTED 30020080: e5932000 ldr r2, [r3] <== NOT EXECUTED 30020084: e5921024 ldr r1, [r2, #36] <== NOT EXECUTED rtems_filesystem_umask = cmask; 30020088: e5820024 str r0, [r2, #36] <== NOT EXECUTED return old_mask; } 3002008c: e1a00001 mov r0, r1 <== NOT EXECUTED 30020090: e12fff1e bx lr <== NOT EXECUTED 30020094: 30044b08 .word 0x30044b08 30020098 : #include int unlink( const char *path ) { 30020098: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 3002009c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int unlink( const char *path ) { 300200a0: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 300200a4: e1a0200d mov r2, sp <== NOT EXECUTED 300200a8: e1a03001 mov r3, r1 <== NOT EXECUTED 300200ac: ebff8f51 bl 30003df8 <== NOT EXECUTED if ( result != 0 ) 300200b0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 300200b4: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 300200b8: 0a000003 beq 300200cc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); 300200bc: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 300200c0: e1a00004 mov r0, r4 <== NOT EXECUTED 300200c4: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 300200c8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); 300200cc: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 300200d0: e1a0100d mov r1, sp <== NOT EXECUTED 300200d4: ebff8f1d bl 30003d50 <== NOT EXECUTED if (result != 0 && errno != ENOTSUP) { 300200d8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300200dc: 1a00001a bne 3002014c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return -1; } if ( !loc.ops->node_type_h ) { 300200e0: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 300200e4: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 300200e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300200ec: 0a000025 beq 30020188 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 300200f0: e1a0000d mov r0, sp <== NOT EXECUTED 300200f4: e1a0e00f mov lr, pc <== NOT EXECUTED 300200f8: e12fff13 bx r3 <== NOT EXECUTED 300200fc: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 30020100: 0a00002a beq 300201b0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 30020104: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 30020108: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 3002010c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020110: 0a00001c beq 30020188 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); 30020114: e1a0000d mov r0, sp <== NOT EXECUTED 30020118: e1a0e00f mov lr, pc <== NOT EXECUTED 3002011c: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30020120: 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 ); 30020124: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30020128: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002012c: 0affffe3 beq 300200c0 <== NOT EXECUTED 30020130: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30020134: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020138: 0affffe0 beq 300200c0 <== NOT EXECUTED 3002013c: e1a0000d mov r0, sp <== NOT EXECUTED 30020140: e1a0e00f mov lr, pc <== NOT EXECUTED 30020144: e12fff13 bx r3 <== NOT EXECUTED 30020148: eaffffdc b 300200c0 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0 && errno != ENOTSUP) { 3002014c: eb00332a bl 3002cdfc <__errno> <== NOT EXECUTED 30020150: e5903000 ldr r3, [r0] <== NOT EXECUTED 30020154: e3530086 cmp r3, #134 ; 0x86 <== NOT EXECUTED 30020158: 0affffe0 beq 300200e0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3002015c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30020160: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020164: 0affffd4 beq 300200bc <== NOT EXECUTED 30020168: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3002016c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020170: 0affffd1 beq 300200bc <== NOT EXECUTED 30020174: e1a0000d mov r0, sp <== NOT EXECUTED 30020178: e1a0e00f mov lr, pc <== NOT EXECUTED 3002017c: e12fff13 bx r3 <== NOT EXECUTED 30020180: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 30020184: eaffffcd b 300200c0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); 30020188: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3002018c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020190: 11a0000d movne r0, sp <== NOT EXECUTED 30020194: 11a0e00f movne lr, pc <== NOT EXECUTED 30020198: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3002019c: eb003316 bl 3002cdfc <__errno> <== NOT EXECUTED 300201a0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300201a4: e5803000 str r3, [r0] <== NOT EXECUTED 300201a8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 300201ac: eaffffc3 b 300200c0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 300201b0: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 300201b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300201b8: 0a000004 beq 300201d0 <== NOT EXECUTED 300201bc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300201c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300201c4: 11a0000d movne r0, sp <== NOT EXECUTED 300201c8: 11a0e00f movne lr, pc <== NOT EXECUTED 300201cc: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 300201d0: eb003309 bl 3002cdfc <__errno> <== NOT EXECUTED 300201d4: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 300201d8: e5803000 str r3, [r0] <== NOT EXECUTED 300201dc: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 300201e0: eaffffb6 b 300200c0 <== NOT EXECUTED 30020254 : */ int unmount( const char *path ) { 30020254: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 30020258: 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 ) ) 3002025c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30020260: e1a0200d mov r2, sp <== NOT EXECUTED 30020264: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 30020268: ebff8ee2 bl 30003df8 <== NOT EXECUTED 3002026c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30020270: e1a0500d mov r5, sp <== NOT EXECUTED 30020274: 1a000032 bne 30020344 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 30020278: 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) ){ 3002027c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30020280: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED 30020284: e1520003 cmp r2, r3 <== NOT EXECUTED 30020288: 1a000035 bne 30020364 <== NOT EXECUTED /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 3002028c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30020290: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020294: 0a000004 beq 300202ac <== NOT EXECUTED 30020298: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3002029c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300202a0: 11a0000d movne r0, sp <== NOT EXECUTED 300202a4: 11a0e00f movne lr, pc <== NOT EXECUTED 300202a8: 112fff13 bxne r3 <== NOT EXECUTED /* * Verify Unmount is supported by both filesystems. */ if ( !fs_mount_loc->ops->unmount_h ) 300202ac: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 300202b0: e5932028 ldr r2, [r3, #40] <== NOT EXECUTED 300202b4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 300202b8: 0a000052 beq 30020408 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) 300202bc: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 300202c0: e593202c ldr r2, [r3, #44] <== NOT EXECUTED 300202c4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 300202c8: 0a00004e beq 30020408 <== 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 ) 300202cc: e59f3148 ldr r3, [pc, #328] ; 3002041c <== NOT EXECUTED 300202d0: e5932000 ldr r2, [r3] <== NOT EXECUTED 300202d4: e5921010 ldr r1, [r2, #16] <== NOT EXECUTED 300202d8: e1510004 cmp r1, r4 <== NOT EXECUTED 300202dc: 0a00001b beq 30020350 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 300202e0: e59f1138 ldr r1, [pc, #312] ; 30020420 <== NOT EXECUTED 300202e4: e4912004 ldr r2, [r1], #4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 300202e8: e1510002 cmp r1, r2 <== NOT EXECUTED 300202ec: 0a00000a beq 3002031c <== NOT EXECUTED 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 ) { 300202f0: e5940024 ldr r0, [r4, #36] <== NOT EXECUTED 300202f4: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 300202f8: e1530000 cmp r3, r0 <== NOT EXECUTED 300202fc: 1a000003 bne 30020310 <== NOT EXECUTED 30020300: ea000012 b 30020350 <== NOT EXECUTED 30020304: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 30020308: e1500003 cmp r0, r3 <== NOT EXECUTED 3002030c: 0a00000f beq 30020350 <== 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 ) { 30020310: e5922000 ldr r2, [r2] <== 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 ); 30020314: e1510002 cmp r1, r2 <== NOT EXECUTED 30020318: 1afffff9 bne 30020304 <== 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 ) 3002031c: e1a00004 mov r0, r4 <== NOT EXECUTED 30020320: ebff8fc4 bl 30004238 <== NOT EXECUTED 30020324: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 30020328: 0a000008 beq 30020350 <== 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 ) 3002032c: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 30020330: e1a00004 mov r0, r4 <== NOT EXECUTED 30020334: e1a0e00f mov lr, pc <== NOT EXECUTED 30020338: e593f028 ldr pc, [r3, #40] <== NOT EXECUTED 3002033c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 30020340: 0a000014 beq 30020398 <== NOT EXECUTED */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 30020344: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED } 30020348: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3002034c: e8bd8030 pop {r4, r5, pc} <== 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 ); 30020350: eb0032a9 bl 3002cdfc <__errno> <== NOT EXECUTED 30020354: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 30020358: e5803000 str r3, [r0] <== NOT EXECUTED 3002035c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30020360: eafffff8 b 30020348 <== NOT EXECUTED /* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ rtems_filesystem_freenode( &loc ); 30020364: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30020368: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3002036c: 0a000004 beq 30020384 <== NOT EXECUTED 30020370: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30020374: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020378: 11a0000d movne r0, sp <== NOT EXECUTED 3002037c: 11a0e00f movne lr, pc <== NOT EXECUTED 30020380: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); 30020384: eb00329c bl 3002cdfc <__errno> <== NOT EXECUTED 30020388: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 3002038c: e5803000 str r3, [r0] <== NOT EXECUTED 30020390: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30020394: eaffffeb b 30020348 <== 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){ 30020398: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3002039c: e1a00004 mov r0, r4 <== NOT EXECUTED 300203a0: e1a0e00f mov lr, pc <== NOT EXECUTED 300203a4: e593f02c ldr pc, [r3, #44] <== NOT EXECUTED 300203a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300203ac: 1a00000d bne 300203e8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 300203b0: e1a00004 mov r0, r4 <== NOT EXECUTED 300203b4: eb0003e9 bl 30021360 <_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 ); 300203b8: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 300203bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300203c0: 0a000004 beq 300203d8 <== NOT EXECUTED 300203c4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300203c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300203cc: 12840008 addne r0, r4, #8 ; 0x8 <== NOT EXECUTED 300203d0: 11a0e00f movne lr, pc <== NOT EXECUTED 300203d4: 112fff13 bxne r3 <== NOT EXECUTED free( mt_entry ); 300203d8: e1a00004 mov r0, r4 <== NOT EXECUTED 300203dc: ebff8eda bl 30003f4c <== NOT EXECUTED 300203e0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 300203e4: eaffffd7 b 30020348 <== NOT EXECUTED * This was response was questionable but the best we could * come up with. */ if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){ if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 300203e8: e1a00004 mov r0, r4 <== NOT EXECUTED 300203ec: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 300203f0: e1a0e00f mov lr, pc <== NOT EXECUTED 300203f4: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED 300203f8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 300203fc: 0affffd0 beq 30020344 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 30020400: e1a00005 mov r0, r5 <== NOT EXECUTED 30020404: ebffa046 bl 30008524 <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30020408: eb00327b bl 3002cdfc <__errno> <== NOT EXECUTED 3002040c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30020410: e5803000 str r3, [r0] <== NOT EXECUTED 30020414: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30020418: eaffffca b 30020348 <== NOT EXECUTED 3002041c: 30044b08 .word 0x30044b08 30020420: 300590c4 .word 0x300590c4 30020424 : int utime( const char *path, const struct utimbuf *times ) { 30020424: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 30020428: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3002042c: 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 ) ) 30020430: e1a0200d mov r2, sp <== NOT EXECUTED 30020434: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 30020438: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3002043c: ebff8e6d bl 30003df8 <== NOT EXECUTED 30020440: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 30020444: e1a0500d mov r5, sp <== NOT EXECUTED 30020448: 1a00001b bne 300204bc <== NOT EXECUTED return -1; if ( !temp_loc.ops->utime_h ){ 3002044c: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 30020450: e5923030 ldr r3, [r2, #48] <== NOT EXECUTED 30020454: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020458: 0a00000f beq 3002049c <== NOT EXECUTED 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 ); 3002045c: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED 30020460: e1a0000d mov r0, sp <== NOT EXECUTED 30020464: e1a0e00f mov lr, pc <== NOT EXECUTED 30020468: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 3002046c: 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 ); 30020470: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 30020474: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020478: 0a000004 beq 30020490 <== NOT EXECUTED 3002047c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30020480: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30020484: 11a0000d movne r0, sp <== NOT EXECUTED 30020488: 11a0e00f movne lr, pc <== NOT EXECUTED 3002048c: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30020490: e1a00004 mov r0, r4 <== NOT EXECUTED 30020494: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 30020498: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); 3002049c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300204a0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 300204a4: 11a0000d movne r0, sp <== NOT EXECUTED 300204a8: 11a0e00f movne lr, pc <== NOT EXECUTED 300204ac: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300204b0: eb003251 bl 3002cdfc <__errno> <== NOT EXECUTED 300204b4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300204b8: e5803000 str r3, [r0] <== NOT EXECUTED 300204bc: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 300204c0: eafffff2 b 30020490 <== NOT EXECUTED 30001d54 : */ void vprintk( const char *fmt, va_list ap ) { 30001d54: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30001d58: e1a08000 mov r8, r0 char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 30001d5c: e5d00000 ldrb r0, [r0] */ void vprintk( const char *fmt, va_list ap ) { 30001d60: e24dd01c sub sp, sp, #28 ; 0x1c char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 30001d64: e3500000 cmp r0, #0 ; 0x0 */ void vprintk( const char *fmt, va_list ap ) { 30001d68: e1a07001 mov r7, r1 char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 30001d6c: 0a0000a1 beq 30001ff8 30001d70: e59fa3bc ldr sl, [pc, #956] ; 30002134 base = 0; sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { 30001d74: e3500025 cmp r0, #37 ; 0x25 30001d78: 1a000059 bne 30001ee4 fmt++; if (*fmt == '0' ) { 30001d7c: e5d80001 ldrb r0, [r8, #1] sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { fmt++; 30001d80: e2881001 add r1, r8, #1 ; 0x1 if (*fmt == '0' ) { 30001d84: e3500030 cmp r0, #48 ; 0x30 lead = '0'; fmt++; 30001d88: 05f10001 ldrbeq r0, [r1, #1]! width = 0; minus = 0; lead = ' '; if (*fmt == '%') { fmt++; if (*fmt == '0' ) { 30001d8c: 13a09020 movne r9, #32 ; 0x20 lead = '0'; fmt++; 30001d90: 03a09030 moveq r9, #48 ; 0x30 } if (*fmt == '-' ) { 30001d94: e350002d cmp r0, #45 ; 0x2d minus = 1; fmt++; 30001d98: 05f10001 ldrbeq r0, [r1, #1]! 30001d9c: 03a03001 moveq r3, #1 ; 0x1 fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; } if (*fmt == '-' ) { 30001da0: 13a02000 movne r2, #0 ; 0x0 minus = 1; fmt++; 30001da4: 058d3000 streq r3, [sp] } while (*fmt >= '0' && *fmt <= '9' ) { 30001da8: e2403030 sub r3, r0, #48 ; 0x30 fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; } if (*fmt == '-' ) { 30001dac: 158d2000 strne r2, [sp] minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 30001db0: e3530009 cmp r3, #9 ; 0x9 30001db4: 83a04000 movhi r4, #0 ; 0x0 30001db8: 81a08001 movhi r8, r1 30001dbc: 81a0b004 movhi fp, r4 30001dc0: 8a00000b bhi 30001df4 30001dc4: e3a04000 mov r4, #0 ; 0x0 width *= 10; width += (*fmt - '0'); 30001dc8: e1a03184 lsl r3, r4, #3 30001dcc: e1a02084 lsl r2, r4, #1 30001dd0: e0822003 add r2, r2, r3 30001dd4: e0822000 add r2, r2, r0 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 30001dd8: e5f10001 ldrb r0, [r1, #1]! width *= 10; width += (*fmt - '0'); 30001ddc: e2424030 sub r4, r2, #48 ; 0x30 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 30001de0: e2403030 sub r3, r0, #48 ; 0x30 30001de4: e3530009 cmp r3, #9 ; 0x9 30001de8: 9afffff6 bls 30001dc8 30001dec: e1a0b004 mov fp, r4 30001df0: e1a08001 mov r8, r1 width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 30001df4: e350006c cmp r0, #108 ; 0x6c lflag = 1; c = *++fmt; 30001df8: 05d10001 ldrbeq r0, [r1, #1] 30001dfc: 02818001 addeq r8, r1, #1 ; 0x1 } switch (c) { 30001e00: e2403044 sub r3, r0, #68 ; 0x44 30001e04: e3530034 cmp r3, #52 ; 0x34 30001e08: 979ff103 ldrls pc, [pc, r3, lsl #2] 30001e0c: ea000034 b 30001ee4 30001e10: 30002000 .word 0x30002000 <== NOT EXECUTED 30001e14: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e18: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e1c: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e20: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e24: 30002000 .word 0x30002000 <== NOT EXECUTED 30001e28: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e2c: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e30: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e34: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e38: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e3c: 30001f04 .word 0x30001f04 <== NOT EXECUTED 30001e40: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e44: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e48: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e4c: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e50: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e54: 300020f4 .word 0x300020f4 <== NOT EXECUTED 30001e58: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e5c: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e60: 30002128 .word 0x30002128 <== NOT EXECUTED 30001e64: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e68: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e6c: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e70: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e74: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e78: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e7c: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e80: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e84: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e88: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e8c: 300020dc .word 0x300020dc <== NOT EXECUTED 30001e90: 30002000 .word 0x30002000 <== NOT EXECUTED 30001e94: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e98: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001e9c: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001ea0: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001ea4: 30002000 .word 0x30002000 <== NOT EXECUTED 30001ea8: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001eac: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001eb0: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001eb4: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001eb8: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001ebc: 30001f04 .word 0x30001f04 <== NOT EXECUTED 30001ec0: 30002128 .word 0x30002128 <== NOT EXECUTED 30001ec4: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001ec8: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001ecc: 30002038 .word 0x30002038 <== NOT EXECUTED 30001ed0: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001ed4: 300020f4 .word 0x300020f4 <== NOT EXECUTED 30001ed8: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001edc: 30001ee4 .word 0x30001ee4 <== NOT EXECUTED 30001ee0: 30002128 .word 0x30002128 <== NOT EXECUTED if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), base, sign, width, lead); } else { BSP_output_char(*fmt); 30001ee4: e1a0e00f mov lr, pc 30001ee8: e59af000 ldr pc, [sl] 30001eec: e58d7004 str r7, [sp, #4] ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 30001ef0: e5f80001 ldrb r0, [r8, #1]! 30001ef4: e3500000 cmp r0, #0 ; 0x0 30001ef8: 0a00003e beq 30001ff8 30001efc: e59d7004 ldr r7, [sp, #4] 30001f00: eaffff9b b 30001d74 break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 30001f04: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 30001f08: e3a06008 mov r6, #8 ; 0x8 <== NOT EXECUTED break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 30001f0c: e5975000 ldr r5, [r7] 30001f10: e2877004 add r7, r7, #4 ; 0x4 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 30001f14: e0133fa5 ands r3, r3, r5, lsr #31 BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 30001f18: e58d7004 str r7, [sp, #4] { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 30001f1c: 1a00003e bne 3000201c num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 30001f20: e1a00005 mov r0, r5 30001f24: e1a01006 mov r1, r6 30001f28: eb004002 bl 30011f38 <__aeabi_uidiv> 30001f2c: e3500000 cmp r0, #0 ; 0x0 30001f30: 01a04000 moveq r4, r0 30001f34: 03a07001 moveq r7, #1 ; 0x1 30001f38: 0a000010 beq 30001f80 30001f3c: e1a02005 mov r2, r5 30001f40: e3a04000 mov r4, #0 ; 0x0 30001f44: e1a05000 mov r5, r0 30001f48: ea000000 b 30001f50 30001f4c: e1a05000 mov r5, r0 toPrint[count++] = (num - (n*base)); 30001f50: e0030596 mul r3, r6, r5 30001f54: e0633002 rsb r3, r3, r2 30001f58: e28d2008 add r2, sp, #8 ; 0x8 30001f5c: e7c23004 strb r3, [r2, r4] num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 30001f60: e1a00005 mov r0, r5 30001f64: e1a01006 mov r1, r6 30001f68: eb003ff2 bl 30011f38 <__aeabi_uidiv> 30001f6c: e3500000 cmp r0, #0 ; 0x0 30001f70: e1a02005 mov r2, r5 toPrint[count++] = (num - (n*base)); 30001f74: e2844001 add r4, r4, #1 ; 0x1 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 30001f78: 1afffff3 bne 30001f4c 30001f7c: e2847001 add r7, r4, #1 ; 0x1 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 30001f80: e28d201c add r2, sp, #28 ; 0x1c 30001f84: e0823004 add r3, r2, r4 for (n=maxwidth ; n > count; n-- ) 30001f88: e157000b cmp r7, fp 30001f8c: e1a0600b mov r6, fp count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 30001f90: e5435014 strb r5, [r3, #-20] for (n=maxwidth ; n > count; n-- ) 30001f94: 2a000006 bcs 30001fb4 30001f98: e20940ff and r4, r9, #255 ; 0xff 30001f9c: e2466001 sub r6, r6, #1 ; 0x1 BSP_output_char(lead); 30001fa0: e1a00004 mov r0, r4 30001fa4: e1a0e00f mov lr, pc 30001fa8: e59af000 ldr pc, [sl] toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 30001fac: e1570006 cmp r7, r6 30001fb0: 3afffff9 bcc 30001f9c BSP_output_char(lead); for (n = 0; n < count; n++) { 30001fb4: e3570000 cmp r7, #0 ; 0x0 30001fb8: 0affffcc beq 30001ef0 30001fbc: e28d301c add r3, sp, #28 ; 0x1c 30001fc0: e3a04000 mov r4, #0 ; 0x0 30001fc4: e0835007 add r5, r3, r7 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 30001fc8: e0643005 rsb r3, r4, r5 30001fcc: e5532015 ldrb r2, [r3, #-21] 30001fd0: e59f3160 ldr r3, [pc, #352] ; 30002138 toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 30001fd4: e2844001 add r4, r4, #1 ; 0x1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 30001fd8: e7d30002 ldrb r0, [r3, r2] 30001fdc: e1a0e00f mov lr, pc 30001fe0: e59af000 ldr pc, [sl] toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 30001fe4: e1570004 cmp r7, r4 30001fe8: 8afffff6 bhi 30001fc8 ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 30001fec: e5f80001 ldrb r0, [r8, #1]! 30001ff0: e3500000 cmp r0, #0 ; 0x0 30001ff4: 1affffc0 bne 30001efc base, sign, width, lead); } else { BSP_output_char(*fmt); } } } 30001ff8: e28dd01c add sp, sp, #28 ; 0x1c 30001ffc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 30002000: e5975000 ldr r5, [r7] if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 30002004: e3a03001 mov r3, #1 ; 0x1 BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 30002008: e2877004 add r7, r7, #4 ; 0x4 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 3000200c: e0133fa5 ands r3, r3, r5, lsr #31 if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 30002010: e3a0600a mov r6, #10 ; 0xa BSP_output_char(c); break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 30002014: e58d7004 str r7, [sp, #4] { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 30002018: 0affffc0 beq 30001f20 BSP_output_char('-'); 3000201c: e3a0002d mov r0, #45 ; 0x2d <== NOT EXECUTED 30002020: e1a0e00f mov lr, pc <== NOT EXECUTED 30002024: e59af000 ldr pc, [sl] <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; 30002028: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { BSP_output_char('-'); num = -num; 3000202c: e2655000 rsb r5, r5, #0 ; 0x0 <== NOT EXECUTED if (maxwidth) maxwidth--; 30002030: 124bb001 subne fp, fp, #1 ; 0x1 <== NOT EXECUTED 30002034: eaffffb9 b 30001f20 <== NOT EXECUTED case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 30002038: e5979000 ldr r9, [r7] 3000203c: e2877004 add r7, r7, #4 ; 0x4 30002040: e58d7004 str r7, [sp, #4] /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 30002044: e5d93000 ldrb r3, [r9] 30002048: e3530000 cmp r3, #0 ; 0x0 3000204c: 01a06003 moveq r6, r3 30002050: 0a000004 beq 30002068 30002054: e3a06000 mov r6, #0 ; 0x0 30002058: e2866001 add r6, r6, #1 ; 0x1 3000205c: e7d93006 ldrb r3, [r9, r6] 30002060: e3530000 cmp r3, #0 ; 0x0 30002064: 1afffffb bne 30002058 ; /* leading spaces */ if ( !minus ) 30002068: e59d2000 ldr r2, [sp] 3000206c: e3520000 cmp r2, #0 ; 0x0 30002070: 0a000022 beq 30002100 for ( i=len ; i 30002084: e5d90000 ldrb r0, [r9] 30002088: e3500000 cmp r0, #0 ; 0x0 3000208c: 0a000005 beq 300020a8 30002090: e1a04009 mov r4, r9 BSP_output_char(*str); 30002094: e1a0e00f mov lr, pc 30002098: e59af000 ldr pc, [sl] if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) 300020a8: e59d3000 ldr r3, [sp] 300020ac: e3530000 cmp r3, #0 ; 0x0 300020b0: 0affff8e beq 30001ef0 for ( i=len ; i 300020bc: e1a04006 mov r4, r6 300020c0: e2844001 add r4, r4, #1 ; 0x1 BSP_output_char(' '); 300020c4: e3a00020 mov r0, #32 ; 0x20 300020c8: e1a0e00f mov lr, pc 300020cc: e59af000 ldr pc, [sl] for ( i=0 ; i 300020d8: eaffff84 b 30001ef0 BSP_output_char(' '); } break; case 'c': BSP_output_char(va_arg(ap, int)); 300020dc: e5d70000 ldrb r0, [r7] <== NOT EXECUTED 300020e0: e2877004 add r7, r7, #4 ; 0x4 <== NOT EXECUTED 300020e4: e58d7004 str r7, [sp, #4] <== NOT EXECUTED 300020e8: e1a0e00f mov lr, pc <== NOT EXECUTED 300020ec: e59af000 ldr pc, [sl] <== NOT EXECUTED 300020f0: eaffff7e b 30001ef0 <== NOT EXECUTED if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 300020f4: e3a03000 mov r3, #0 ; 0x0 300020f8: e3a0600a mov r6, #10 ; 0xa 300020fc: eaffff82 b 30001f0c for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 30002108: e1a05006 mov r5, r6 <== NOT EXECUTED 3000210c: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED BSP_output_char(' '); 30002110: e3a00020 mov r0, #32 ; 0x20 <== NOT EXECUTED 30002114: e1a0e00f mov lr, pc <== NOT EXECUTED 30002118: e59af000 ldr pc, [sl] <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i <== NOT EXECUTED 30002124: eaffffd4 b 3000207c <== NOT EXECUTED break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 30002128: e3a03000 mov r3, #0 ; 0x0 3000212c: e3a06010 mov r6, #16 ; 0x10 30002130: eaffff75 b 30001f0c 30002134: 300153d8 .word 0x300153d8 30002138: 30014cec .word 0x30014cec 30013d64 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013d64: e59f30c8 ldr r3, [pc, #200] ; 30013e34 ssize_t write( int fd, const void *buffer, size_t count ) { 30013d68: e1a0c000 mov ip, r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013d6c: e5930000 ldr r0, [r3] ssize_t write( int fd, const void *buffer, size_t count ) { 30013d70: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013d74: e15c0000 cmp ip, r0 ssize_t write( int fd, const void *buffer, size_t count ) { 30013d78: e1a06001 mov r6, r1 30013d7c: e1a05002 mov r5, r2 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30013d80: 2a00001c bcs 30013df8 iop = rtems_libio_iop( fd ); 30013d84: e1a0320c lsl r3, ip, #4 30013d88: e59f00a8 ldr r0, [pc, #168] ; 30013e38 30013d8c: e043310c sub r3, r3, ip, lsl #2 30013d90: e083300c add r3, r3, ip 30013d94: e590c000 ldr ip, [r0] 30013d98: e1a03103 lsl r3, r3, #2 30013d9c: e08c4003 add r4, ip, r3 rtems_libio_check_is_open( iop ); 30013da0: e594300c ldr r3, [r4, #12] 30013da4: e3130c01 tst r3, #256 ; 0x100 30013da8: 0a000012 beq 30013df8 rtems_libio_check_buffer( buffer ); 30013dac: e3510000 cmp r1, #0 ; 0x0 30013db0: 0a000015 beq 30013e0c rtems_libio_check_count( count ); 30013db4: e3520000 cmp r2, #0 ; 0x0 30013db8: 01a00002 moveq r0, r2 30013dbc: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30013dc0: e3130004 tst r3, #4 ; 0x4 30013dc4: 0a000010 beq 30013e0c /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 30013dc8: e5943030 ldr r3, [r4, #48] 30013dcc: e593300c ldr r3, [r3, #12] 30013dd0: e3530000 cmp r3, #0 ; 0x0 30013dd4: 0a000011 beq 30013e20 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 30013dd8: e1a00004 mov r0, r4 30013ddc: e1a0e00f mov lr, pc 30013de0: e12fff13 bx r3 if ( rc > 0 ) 30013de4: e3500000 cmp r0, #0 ; 0x0 iop->offset += rc; 30013de8: c5943008 ldrgt r3, [r4, #8] 30013dec: c0833000 addgt r3, r3, r0 30013df0: c5843008 strgt r3, [r4, #8] return rc; } 30013df4: e8bd8070 pop {r4, r5, r6, pc} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 30013df8: ebffdd23 bl 3000b28c <__errno> <== NOT EXECUTED 30013dfc: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 30013e00: e5803000 str r3, [r0] <== NOT EXECUTED 30013e04: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013e08: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30013e0c: ebffdd1e bl 3000b28c <__errno> <== NOT EXECUTED 30013e10: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 30013e14: e5803000 str r3, [r0] <== NOT EXECUTED 30013e18: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013e1c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30013e20: ebffdd19 bl 3000b28c <__errno> <== NOT EXECUTED 30013e24: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30013e28: e5803000 str r3, [r0] <== NOT EXECUTED 30013e2c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 30013e30: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30013e34: 3001520c .word 0x3001520c 30013e38: 30015f00 .word 0x30015f00