000080b8 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 80b8: e5903000 ldr r3, [r0] 80bc: 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; 80c0: e590100c ldr r1, [r0, #12] switch( node->type ) { 80c4: e2422001 sub r2, r2, #1 ; 0x1 ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 80c8: e591302c ldr r3, [r1, #44] switch( node->type ) { 80cc: e3520005 cmp r2, #5 ; 0x5 80d0: 979ff102 ldrls pc, [pc, r2, lsl #2] 80d4: ea000007 b 80f8 <== NOT EXECUTED 80d8: 00008110 .word 0x00008110 <== NOT EXECUTED 80dc: 00008120 .word 0x00008120 <== NOT EXECUTED 80e0: 00008100 .word 0x00008100 <== NOT EXECUTED 80e4: 00008100 .word 0x00008100 <== NOT EXECUTED 80e8: 80f0 .short 0x80f0 <== NOT EXECUTED 80ea: 0000 .short 0x0000 <== NOT EXECUTED 80ec: 000080f0 .word 0x000080f0 <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 80f0: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 80f4: e5803004 str r3, [r0, #4] <== NOT EXECUTED break; } return 0; } 80f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 80fc: 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; 8100: e59f3028 ldr r3, [pc, #40] ; 8130 <== NOT EXECUTED 8104: e5803004 str r3, [r0, #4] <== NOT EXECUTED loc->handlers = fs_info->memfile_handlers; break; } return 0; } 8108: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 810c: 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; 8110: e5933008 ldr r3, [r3, #8] 8114: e5803004 str r3, [r0, #4] loc->handlers = fs_info->memfile_handlers; break; } return 0; } 8118: e3a00000 mov r0, #0 ; 0x0 811c: e12fff1e bx lr switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 8120: e59f300c ldr r3, [pc, #12] ; 8134 8124: e5803004 str r3, [r0, #4] loc->handlers = fs_info->memfile_handlers; break; } return 0; } 8128: e3a00000 mov r0, #0 ; 0x0 812c: e12fff1e bx lr 8130: 0001519c .word 0x0001519c 8134: 00015164 .word 0x00015164 0001cae0 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 1cae0: 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; 1cae4: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 1cae8: 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; 1caec: e1c413bc strh r1, [r4, #60] <== NOT EXECUTED jnode->st_gid = group; 1caf0: e1c423be strh r2, [r4, #62] <== NOT EXECUTED IMFS_update_ctime( jnode ); 1caf4: e1a0000d mov r0, sp <== NOT EXECUTED 1caf8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1cafc: ebff9d3d bl 3ff8 <== NOT EXECUTED 1cb00: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 1cb04: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 1cb08: e5843048 str r3, [r4, #72] <== NOT EXECUTED return 0; } 1cb0c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1cb10: e8bd8010 pop {r4, pc} <== NOT EXECUTED 0000aa90 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { aa90: 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 ) aa94: e250a000 subs sl, r0, #0 ; 0x0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { aa98: e24dd008 sub sp, sp, #8 ; 0x8 aa9c: e1a07001 mov r7, r1 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); aaa0: e3a00001 mov r0, #1 ; 0x1 aaa4: 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 ) aaa8: 01a0800a moveq r8, sl parent = parent_loc->node_access; aaac: 159a8000 ldrne r8, [sl] IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { aab0: e1a05002 mov r5, r2 aab4: e1a06003 mov r6, r3 /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); aab8: ebfff8e8 bl 8e60 if ( !node ) aabc: e2504000 subs r4, r0, #0 ; 0x0 aac0: 0a000034 beq ab98 /* * Fill in the basic information */ node->st_nlink = 1; aac4: e3a02001 mov r2, #1 ; 0x1 node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); aac8: e1a01005 mov r1, r5 /* * Fill in the basic information */ node->st_nlink = 1; aacc: e1c423b4 strh r2, [r4, #52] node->type = type; aad0: e584704c str r7, [r4, #76] strncpy( node->name, name, IMFS_NAME_MAX ); aad4: e3a02020 mov r2, #32 ; 0x20 aad8: e284000c add r0, r4, #12 ; 0xc aadc: eb000770 bl c8a4 /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode & ~rtems_filesystem_umask; aae0: e59f2120 ldr r2, [pc, #288] ; ac08 aae4: e5921000 ldr r1, [r2] aae8: e5913024 ldr r3, [r1, #36] aaec: e1e03003 mvn r3, r3 aaf0: e0063003 and r3, r6, r3 aaf4: e5843030 str r3, [r4, #48] #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; aaf8: e3a03000 mov r3, #0 ; 0x0 aafc: e1c433bc strh r3, [r4, #60] node->st_gid = 0; ab00: e1c433be strh r3, [r4, #62] /* * Now set all the times. */ gettimeofday( &tv, 0 ); ab04: e1a0000d mov r0, sp ab08: e3a01000 mov r1, #0 ; 0x0 ab0c: ebfff979 bl 90f8 node->stat_atime = (time_t) tv.tv_sec; ab10: e59d3000 ldr r3, [sp] /* * Set the type specific information */ switch (type) { ab14: 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; ab18: e5843048 str r3, [r4, #72] * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; ab1c: e5843040 str r3, [r4, #64] node->stat_mtime = (time_t) tv.tv_sec; ab20: e5843044 str r3, [r4, #68] /* * Set the type specific information */ switch (type) { ab24: e3520005 cmp r2, #5 ; 0x5 ab28: 979ff102 ldrls pc, [pc, r2, lsl #2] ab2c: ea000020 b abb4 <== NOT EXECUTED ab30: 0000abc8 .word 0x0000abc8 <== NOT EXECUTED ab34: 0000abe4 .word 0x0000abe4 <== NOT EXECUTED ab38: 0000abf8 .word 0x0000abf8 <== NOT EXECUTED ab3c: 0000aba4 .word 0x0000aba4 <== NOT EXECUTED ab40: 0000ab54 .word 0x0000ab54 <== NOT EXECUTED ab44: 0000ab48 .word 0x0000ab48 <== 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; ab48: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.linearfile.direct = 0; ab4c: 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; ab50: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; ab54: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; ab58: 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; ab5c: e5843050 str r3, [r4, #80] <== NOT EXECUTED node->info.file.indirect = 0; ab60: e5843054 str r3, [r4, #84] <== NOT EXECUTED node->info.file.doubly_indirect = 0; ab64: e5843058 str r3, [r4, #88] <== NOT EXECUTED /* * If this node has a parent, then put it in that directory list. */ if ( parent ) { ab68: e3580000 cmp r8, #0 ; 0x0 ab6c: 0a000009 beq ab98 RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ab70: e1a01004 mov r1, r4 ab74: e2880050 add r0, r8, #80 ; 0x50 ab78: ebffe9a7 bl 521c <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); node->Parent = parent; fs_info = parent_loc->mt_entry->fs_info; ab7c: e59a300c ldr r3, [sl, #12] ab80: e593102c ldr r1, [r3, #44] node->st_ino = ++fs_info->ino_count; ab84: e5912000 ldr r2, [r1] ab88: e2822001 add r2, r2, #1 ; 0x1 ab8c: e5812000 str r2, [r1] * 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; ab90: e5848008 str r8, [r4, #8] fs_info = parent_loc->mt_entry->fs_info; node->st_ino = ++fs_info->ino_count; ab94: e5842038 str r2, [r4, #56] } return node; } ab98: e1a00004 mov r0, r4 ab9c: e28dd008 add sp, sp, #8 ; 0x8 aba0: 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; aba4: e59d2024 ldr r2, [sp, #36] <== NOT EXECUTED aba8: e5923000 ldr r3, [r2] <== NOT EXECUTED abac: e5843050 str r3, [r4, #80] <== NOT EXECUTED abb0: eaffffec b ab68 <== NOT EXECUTED node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; break; default: assert(0); abb4: e59f0050 ldr r0, [pc, #80] ; ac0c <== NOT EXECUTED abb8: e3a01074 mov r1, #116 ; 0x74 <== NOT EXECUTED abbc: e59f204c ldr r2, [pc, #76] ; ac10 <== NOT EXECUTED abc0: e59f304c ldr r3, [pc, #76] ; ac14 <== NOT EXECUTED abc4: ebfff848 bl 8cec <__assert_func> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); abc8: e2843054 add r3, r4, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); abcc: 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; abd0: e3a02000 mov r2, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); abd4: e5843050 str r3, [r4, #80] the_chain->permanent_null = NULL; abd8: e5842054 str r2, [r4, #84] the_chain->last = _Chain_Head(the_chain); abdc: e5841058 str r1, [r4, #88] abe0: eaffffe0 b ab68 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; abe4: e59d1024 ldr r1, [sp, #36] abe8: e891000c ldm r1, {r2, r3} abec: 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; abf0: e5842050 str r2, [r4, #80] abf4: eaffffdb b ab68 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; abf8: e59d1024 ldr r1, [sp, #36] <== NOT EXECUTED abfc: e5913000 ldr r3, [r1] <== NOT EXECUTED ac00: e5843050 str r3, [r4, #80] <== NOT EXECUTED ac04: eaffffd7 b ab68 <== NOT EXECUTED ac08: 00014a18 .word 0x00014a18 ac0c: 00015aec .word 0x00015aec ac10: 000152e8 .word 0x000152e8 ac14: 000157fc .word 0x000157fc 0000829c : int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 829c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 82a0: e24dd03c sub sp, sp, #60 ; 0x3c /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 82a4: e5925000 ldr r5, [r2] int IMFS_eval_path( const char *pathname, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 82a8: e58d1000 str r1, [sp] 82ac: e1a07002 mov r7, r2 82b0: e1a0a000 mov sl, r0 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 82b4: e3a08000 mov r8, #0 ; 0x0 82b8: e28d9007 add r9, sp, #7 ; 0x7 82bc: 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 ); 82c0: e08a0008 add r0, sl, r8 82c4: e1a01009 mov r1, r9 82c8: e1a0200b mov r2, fp 82cc: eb00017d bl 88c8 i += len; if ( !pathloc->node_access ) 82d0: e597e000 ldr lr, [r7] 82d4: e35e0000 cmp lr, #0 ; 0x0 * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], token, &len ); 82d8: e1a04000 mov r4, r0 i += len; 82dc: e59d6038 ldr r6, [sp, #56] if ( !pathloc->node_access ) 82e0: 0a000053 beq 8434 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 82e4: 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; 82e8: 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 ) 82ec: 1a000012 bne 833c * 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 ) { 82f0: e59e304c ldr r3, [lr, #76] 82f4: e3530001 cmp r3, #1 ; 0x1 82f8: 1a00005d bne 8474 if ( node->info.directory.mt_fs != NULL ) { 82fc: e59ee05c ldr lr, [lr, #92] 8300: e35e0000 cmp lr, #0 ; 0x0 8304: 0a00005a beq 8474 newloc = node->info.directory.mt_fs->mt_fs_root; 8308: e28ee018 add lr, lr, #24 ; 0x18 <== NOT EXECUTED 830c: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED 8310: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 8314: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 8318: 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; 831c: e887000f stm r7, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 8320: e5923000 ldr r3, [r2] <== NOT EXECUTED 8324: e08a000e add r0, sl, lr <== NOT EXECUTED 8328: e59d1000 ldr r1, [sp] <== NOT EXECUTED 832c: e1a02007 mov r2, r7 <== NOT EXECUTED 8330: e1a0e00f mov lr, pc <== NOT EXECUTED 8334: e12fff13 bx r3 <== NOT EXECUTED 8338: ea000032 b 8408 <== NOT EXECUTED /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 833c: e595304c ldr r3, [r5, #76] 8340: e3530001 cmp r3, #1 ; 0x1 8344: 11a0500e movne r5, lr 8348: 0a000030 beq 8410 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 834c: e3540003 cmp r4, #3 ; 0x3 8350: 0a000006 beq 8370 8354: e3540004 cmp r4, #4 ; 0x4 8358: 0a000026 beq 83f8 835c: e3540002 cmp r4, #2 ; 0x2 8360: 0a000014 beq 83b8 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 8364: e3540004 cmp r4, #4 ; 0x4 8368: 1affffd4 bne 82c0 836c: eaffffdf b 82f0 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 8370: e59e304c ldr r3, [lr, #76] 8374: e3530003 cmp r3, #3 ; 0x3 8378: 0a000032 beq 8448 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 837c: e3530004 cmp r3, #4 ; 0x4 8380: 0a00004c beq 84b8 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 8384: e595304c ldr r3, [r5, #76] 8388: e3530001 cmp r3, #1 ; 0x1 838c: 1a000033 bne 8460 /* * 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 ) { 8390: e595e05c ldr lr, [r5, #92] 8394: e35e0000 cmp lr, #0 ; 0x0 8398: 1a00003f bne 849c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 839c: e1a00005 mov r0, r5 83a0: e1a01009 mov r1, r9 83a4: eb000118 bl 880c if ( !node ) 83a8: e2505000 subs r5, r0, #0 ; 0x0 83ac: 0a000020 beq 8434 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 83b0: e5875000 str r5, [r7] 83b4: eaffffc1 b 82c0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 83b8: e59f2120 ldr r2, [pc, #288] ; 84e0 <== NOT EXECUTED 83bc: e5923000 ldr r3, [r2] <== NOT EXECUTED 83c0: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 83c4: e15e0002 cmp lr, r2 <== NOT EXECUTED 83c8: 0affffbc beq 82c0 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 83cc: e597200c ldr r2, [r7, #12] <== NOT EXECUTED 83d0: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 83d4: e15e0003 cmp lr, r3 <== NOT EXECUTED 83d8: 0a00003e beq 84d8 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),flags,pathloc); } } else { if ( !node->Parent ) 83dc: e59e5008 ldr r5, [lr, #8] <== NOT EXECUTED 83e0: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 83e4: 1afffff1 bne 83b0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 83e8: eb000bd0 bl b330 <__errno> <== NOT EXECUTED 83ec: e5804000 str r4, [r0] <== NOT EXECUTED 83f0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 83f4: ea000003 b 8408 <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 83f8: eb000bcc bl b330 <__errno> <== NOT EXECUTED 83fc: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 8400: e5803000 str r3, [r0] <== NOT EXECUTED 8404: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 8408: e28dd03c add sp, sp, #60 ; 0x3c 840c: 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 ) 8410: e59e3030 ldr r3, [lr, #48] 8414: e3130040 tst r3, #64 ; 0x40 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 8418: 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 ) 841c: 1affffca bne 834c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 8420: eb000bc2 bl b330 <__errno> <== NOT EXECUTED 8424: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 8428: e5803000 str r3, [r0] <== NOT EXECUTED 842c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8430: eafffff4 b 8408 <== 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 ); 8434: eb000bbd bl b330 <__errno> <== NOT EXECUTED 8438: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 843c: e5803000 str r3, [r0] <== NOT EXECUTED 8440: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8444: eaffffef b 8408 <== NOT EXECUTED * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 8448: e1a00007 mov r0, r7 <== NOT EXECUTED 844c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 8450: ebffff40 bl 8158 <== NOT EXECUTED node = pathloc->node_access; 8454: e5975000 ldr r5, [r7] <== NOT EXECUTED if ( !node ) 8458: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 845c: 1affffc8 bne 8384 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 8460: eb000bb2 bl b330 <__errno> <== NOT EXECUTED 8464: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 8468: e5803000 str r3, [r0] <== NOT EXECUTED 846c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8470: eaffffe4 b 8408 <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 8474: e1a00007 mov r0, r7 8478: ebffff0e bl 80b8 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 847c: e5973000 ldr r3, [r7] 8480: e5932030 ldr r2, [r3, #48] 8484: e59d3000 ldr r3, [sp] 8488: e1a01303 lsl r1, r3, #6 848c: e0012002 and r2, r1, r2 8490: e1510002 cmp r1, r2 8494: 1affffe1 bne 8420 8498: eaffffda b 8408 * 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; 849c: e28ee018 add lr, lr, #24 ; 0x18 <== NOT EXECUTED 84a0: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 84a4: 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; 84a8: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 84ac: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc ); 84b0: e06ee008 rsb lr, lr, r8 <== NOT EXECUTED 84b4: eaffff98 b 831c <== 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 ); 84b8: e1a00007 mov r0, r7 <== NOT EXECUTED 84bc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 84c0: ebffff3e bl 81c0 <== NOT EXECUTED node = pathloc->node_access; if ( result == -1 ) 84c4: 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; 84c8: e5973000 ldr r3, [r7] <== NOT EXECUTED if ( result == -1 ) 84cc: 0affffcd beq 8408 <== NOT EXECUTED } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 84d0: e1a05003 mov r5, r3 <== NOT EXECUTED 84d4: eaffffaa b 8384 <== 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; 84d8: e282e008 add lr, r2, #8 ; 0x8 <== NOT EXECUTED 84dc: eaffff8a b 830c <== NOT EXECUTED 84e0: 00014a18 .word 0x00014a18 000085a4 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 85a4: 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; 85a8: 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 */ ) { 85ac: e24dd038 sub sp, sp, #56 ; 0x38 85b0: e1a05001 mov r5, r1 85b4: e1a08000 mov r8, r0 85b8: e1a0b002 mov fp, r2 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 85bc: e3a06000 mov r6, #0 ; 0x0 85c0: e28da003 add sl, sp, #3 ; 0x3 85c4: 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 ); 85c8: e1a0100a mov r1, sl 85cc: e0880006 add r0, r8, r6 85d0: e1a02009 mov r2, r9 85d4: eb0000bb bl 88c8 i += len; if ( !pathloc->node_access ) 85d8: e5951000 ldr r1, [r5] 85dc: e3510000 cmp r1, #0 ; 0x0 */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 85e0: e59d7034 ldr r7, [sp, #52] if ( !pathloc->node_access ) 85e4: 0a000039 beq 86d0 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 85e8: e3500000 cmp r0, #0 ; 0x0 85ec: 1a000005 bne 8608 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 85f0: eb000b4e bl b330 <__errno> <== NOT EXECUTED 85f4: e3a03011 mov r3, #17 ; 0x11 <== NOT EXECUTED 85f8: e5803000 str r3, [r0] <== NOT EXECUTED 85fc: 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; } 8600: e28dd038 add sp, sp, #56 ; 0x38 8604: 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 ) 8608: e594304c ldr r3, [r4, #76] 860c: e3530001 cmp r3, #1 ; 0x1 8610: 11a04001 movne r4, r1 8614: 0a000032 beq 86e4 */ while( !done ) { type = IMFS_get_token( &path[i], token, &len ); i += len; 8618: e0866007 add r6, r6, r7 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 861c: e3500004 cmp r0, #4 ; 0x4 8620: 979ff100 ldrls pc, [pc, r0, lsl #2] 8624: eaffffe7 b 85c8 <== NOT EXECUTED 8628: 000085f0 .word 0x000085f0 <== NOT EXECUTED 862c: 000085c8 .word 0x000085c8 <== NOT EXECUTED 8630: 000086a0 .word 0x000086a0 <== NOT EXECUTED 8634: 00008650 .word 0x00008650 <== NOT EXECUTED 8638: 0000863c .word 0x0000863c <== 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 ); 863c: eb000b3b bl b330 <__errno> <== NOT EXECUTED 8640: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 8644: e5803000 str r3, [r0] <== NOT EXECUTED 8648: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 864c: eaffffeb b 8600 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 8650: e591304c ldr r3, [r1, #76] 8654: e3530003 cmp r3, #3 ; 0x3 8658: 0a00005d beq 87d4 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 865c: e3530004 cmp r3, #4 ; 0x4 8660: 0a00005b beq 87d4 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 8664: e3510000 cmp r1, #0 ; 0x0 8668: 0a000046 beq 8788 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 866c: e591304c ldr r3, [r1, #76] 8670: e3530001 cmp r3, #1 ; 0x1 8674: 1a000043 bne 8788 /* * 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 ) { 8678: e591e05c ldr lr, [r1, #92] 867c: e35e0000 cmp lr, #0 ; 0x0 8680: 1a000045 bne 879c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 8684: e1a00001 mov r0, r1 8688: e1a0100a mov r1, sl 868c: eb00005e bl 880c /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 8690: e2504000 subs r4, r0, #0 ; 0x0 8694: 0a00001b beq 8708 done = true; else pathloc->node_access = node; 8698: e5854000 str r4, [r5] 869c: eaffffc9 b 85c8 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 86a0: e59f2160 ldr r2, [pc, #352] ; 8808 <== NOT EXECUTED 86a4: e5923000 ldr r3, [r2] <== NOT EXECUTED 86a8: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 86ac: e1510002 cmp r1, r2 <== NOT EXECUTED 86b0: 0affffc4 beq 85c8 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 86b4: e595e00c ldr lr, [r5, #12] <== NOT EXECUTED 86b8: e59e3018 ldr r3, [lr, #24] <== NOT EXECUTED 86bc: e1510003 cmp r1, r3 <== NOT EXECUTED 86c0: 0a00004a beq 87f0 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 86c4: e5914008 ldr r4, [r1, #8] <== NOT EXECUTED 86c8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 86cc: 1afffff1 bne 8698 <== 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 ); 86d0: eb000b16 bl b330 <__errno> <== NOT EXECUTED 86d4: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 86d8: e5803000 str r3, [r0] <== NOT EXECUTED 86dc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 86e0: eaffffc6 b 8600 <== 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 ) 86e4: e5913030 ldr r3, [r1, #48] 86e8: e3130040 tst r3, #64 ; 0x40 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 86ec: 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 ) 86f0: 1affffc8 bne 8618 /* * 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 ); 86f4: eb000b0d bl b330 <__errno> <== NOT EXECUTED 86f8: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 86fc: e5803000 str r3, [r0] <== NOT EXECUTED 8700: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8704: eaffffbd b 8600 <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 8708: e59d3034 ldr r3, [sp, #52] 870c: e0633006 rsb r3, r3, r6 8710: e0883003 add r3, r8, r3 8714: 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++) { 8718: e7d82006 ldrb r2, [r8, r6] 871c: e3520000 cmp r2, #0 ; 0x0 8720: e0880006 add r0, r8, r6 8724: 1a000004 bne 873c 8728: ea00000b b 875c 872c: e5d02001 ldrb r2, [r0, #1] <== NOT EXECUTED 8730: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) 8734: e2800001 add r0, r0, #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++) { 8738: 0a000007 beq 875c <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) 873c: e352002f cmp r2, #47 ; 0x2f <== NOT EXECUTED 8740: 1352005c cmpne r2, #92 ; 0x5c <== NOT EXECUTED 8744: 0afffff8 beq 872c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); 8748: eb000af8 bl b330 <__errno> <== NOT EXECUTED 874c: e3a03002 mov r3, #2 ; 0x2 <== NOT EXECUTED 8750: e5803000 str r3, [r0] <== NOT EXECUTED 8754: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8758: eaffffa8 b 8600 <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 875c: e1a00005 mov r0, r5 8760: ebfffe54 bl 80b8 /* * The returned node must be a directory */ node = pathloc->node_access; 8764: e5951000 ldr r1, [r5] if ( node->type != IMFS_DIRECTORY ) 8768: e591304c ldr r3, [r1, #76] 876c: e3530001 cmp r3, #1 ; 0x1 8770: 1a000004 bne 8788 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 8774: e5913030 ldr r3, [r1, #48] 8778: e20330c0 and r3, r3, #192 ; 0xc0 877c: e35300c0 cmp r3, #192 ; 0xc0 8780: 1affffdb bne 86f4 8784: eaffff9d b 8600 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 8788: eb000ae8 bl b330 <__errno> <== NOT EXECUTED 878c: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 8790: e5803000 str r3, [r0] <== NOT EXECUTED 8794: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8798: eaffff98 b 8600 <== 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; 879c: e28ee018 add lr, lr, #24 ; 0x18 <== NOT EXECUTED 87a0: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED 87a4: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 87a8: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 87ac: e59de034 ldr lr, [sp, #52] <== NOT EXECUTED 87b0: e06ee006 rsb lr, lr, r6 <== NOT EXECUTED * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 87b4: e885000f stm r5, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 87b8: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 87bc: e088000e add r0, r8, lr <== NOT EXECUTED 87c0: e1a01005 mov r1, r5 <== NOT EXECUTED 87c4: e1a0200b mov r2, fp <== NOT EXECUTED 87c8: e1a0e00f mov lr, pc <== NOT EXECUTED 87cc: e12fff13 bx r3 <== NOT EXECUTED 87d0: eaffff8a b 8600 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 87d4: e1a00005 mov r0, r5 <== NOT EXECUTED 87d8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 87dc: ebffff40 bl 84e4 <== NOT EXECUTED if ( result == -1 ) 87e0: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 87e4: 0affff85 beq 8600 <== NOT EXECUTED 87e8: e5951000 ldr r1, [r5] <== NOT EXECUTED 87ec: eaffff9c b 8664 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 87f0: e28ee008 add lr, lr, #8 ; 0x8 <== NOT EXECUTED 87f4: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED 87f8: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED 87fc: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 8800: e067e006 rsb lr, r7, r6 <== NOT EXECUTED 8804: eaffffea b 87b4 <== NOT EXECUTED 8808: 00014a18 .word 0x00014a18 00008158 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 8158: e5902000 ldr r2, [r0] <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 815c: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 8160: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 8164: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 8168: e1a04000 mov r4, r0 <== NOT EXECUTED 816c: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 8170: 1a00000f bne 81b4 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 8174: e5923050 ldr r3, [r2, #80] <== NOT EXECUTED 8178: e5803000 str r3, [r0] <== NOT EXECUTED IMFS_Set_handlers( node ); 817c: ebffffcd bl 80b8 <== 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 ) 8180: e5942000 ldr r2, [r4] <== NOT EXECUTED 8184: e5923030 ldr r3, [r2, #48] <== NOT EXECUTED 8188: e1a01305 lsl r1, r5, #6 <== NOT EXECUTED 818c: e0013003 and r3, r1, r3 <== NOT EXECUTED 8190: e1510003 cmp r1, r3 <== NOT EXECUTED 8194: 0a000004 beq 81ac <== 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 ); 8198: eb000c64 bl b330 <__errno> <== NOT EXECUTED 819c: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 81a0: e5803000 str r3, [r0] <== NOT EXECUTED 81a4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 81a8: 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 ) 81ac: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 81b0: 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); 81b4: e3a0032b mov r0, #-1409286144 ; 0xac000000 <== NOT EXECUTED 81b8: e2400833 sub r0, r0, #3342336 ; 0x330000 <== NOT EXECUTED 81bc: ebfff340 bl 4ec4 <== NOT EXECUTED 000084e4 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 84e4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 84e8: e59f60b0 ldr r6, [pc, #176] ; 85a0 <== NOT EXECUTED 84ec: e1a05000 mov r5, r0 <== NOT EXECUTED 84f0: e1a07001 mov r7, r1 <== NOT EXECUTED 84f4: ea000004 b 850c <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 84f8: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 84fc: 0a00001c beq 8574 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 8500: e2433003 sub r3, r3, #3 ; 0x3 <== NOT EXECUTED 8504: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 8508: 8a000014 bhi 8560 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 850c: e5962000 ldr r2, [r6] <== NOT EXECUTED 8510: e1d232b8 ldrh r3, [r2, #40] <== NOT EXECUTED 8514: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 8518: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED 851c: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 8520: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 8524: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 8528: e5954000 ldr r4, [r5] <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 852c: 8a000014 bhi 8584 <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 8530: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 8534: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 8538: 1affffee bne 84f8 <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); 853c: e1a00005 mov r0, r5 <== NOT EXECUTED 8540: e1a01007 mov r1, r7 <== NOT EXECUTED 8544: ebffff03 bl 8158 <== 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 ) ) ); 8548: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 854c: 1a000004 bne 8564 <== NOT EXECUTED 8550: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 8554: e2433003 sub r3, r3, #3 ; 0x3 <== NOT EXECUTED 8558: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 855c: 9affffea bls 850c <== NOT EXECUTED 8560: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 8564: e5963000 ldr r3, [r6] <== NOT EXECUTED 8568: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 856c: e1c322b8 strh r2, [r3, #40] <== NOT EXECUTED return result; } 8570: 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 ); 8574: e1a00005 mov r0, r5 <== NOT EXECUTED 8578: e1a01007 mov r1, r7 <== NOT EXECUTED 857c: ebffff0f bl 81c0 <== NOT EXECUTED 8580: eafffff0 b 8548 <== NOT EXECUTED * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; 8584: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 8588: e1c232b8 strh r3, [r2, #40] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); 858c: eb000b67 bl b330 <__errno> <== NOT EXECUTED 8590: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED 8594: e5803000 str r3, [r0] <== NOT EXECUTED 8598: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 859c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 85a0: 00014a18 .word 0x00014a18 00008138 : /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 8138: e5903000 ldr r3, [r0] <== NOT EXECUTED 813c: e5930030 ldr r0, [r3, #48] <== NOT EXECUTED 8140: e1a01301 lsl r1, r1, #6 <== NOT EXECUTED 8144: e0010000 and r0, r1, r0 <== NOT EXECUTED return 1; return 0; } 8148: e1510000 cmp r1, r0 <== NOT EXECUTED 814c: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 8150: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 8154: e12fff1e bx lr <== NOT EXECUTED 000081c0 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 81c0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; 81c4: e590e000 ldr lr, [r0] <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 81c8: e59e304c ldr r3, [lr, #76] <== NOT EXECUTED 81cc: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 81d0: e1a04000 mov r4, r0 <== NOT EXECUTED 81d4: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 81d8: 1a000028 bne 8280 <== NOT EXECUTED rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 81dc: e59e3008 ldr r3, [lr, #8] <== NOT EXECUTED 81e0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 81e4: 0a000028 beq 828c <== 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; 81e8: e5803000 str r3, [r0] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( 81ec: e59e0050 ldr r0, [lr, #80] <== NOT EXECUTED 81f0: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 81f4: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 81f8: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 81fc: 13a02000 movne r2, #0 ; 0x0 <== NOT EXECUTED 8200: 03a02001 moveq r2, #1 ; 0x1 <== NOT EXECUTED 8204: 1a000019 bne 8270 <== NOT EXECUTED 8208: e59f3088 ldr r3, [pc, #136] ; 8298 <== NOT EXECUTED 820c: e593c000 ldr ip, [r3] <== NOT EXECUTED 8210: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 8214: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 8218: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 821c: e59e0050 ldr r0, [lr, #80] <== NOT EXECUTED 8220: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 8224: e0800003 add r0, r0, r3 <== NOT EXECUTED 8228: e1a01006 mov r1, r6 <== NOT EXECUTED 822c: e1a02004 mov r2, r4 <== NOT EXECUTED 8230: eb000019 bl 829c <== NOT EXECUTED 8234: e1a05000 mov r5, r0 <== NOT EXECUTED &jnode->info.sym_link.name[i], flags, node ); IMFS_Set_handlers( node ); 8238: e1a00004 mov r0, r4 <== NOT EXECUTED 823c: ebffff9d bl 80b8 <== 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 ) 8240: e5943000 ldr r3, [r4] <== NOT EXECUTED 8244: e5932030 ldr r2, [r3, #48] <== NOT EXECUTED 8248: e1a01306 lsl r1, r6, #6 <== NOT EXECUTED 824c: e0012002 and r2, r1, r2 <== NOT EXECUTED 8250: e1510002 cmp r1, r2 <== NOT EXECUTED 8254: 0a000003 beq 8268 <== 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 ); 8258: eb000c34 bl b330 <__errno> <== NOT EXECUTED 825c: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 8260: e5803000 str r3, [r0] <== NOT EXECUTED 8264: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED return result; } 8268: e1a00005 mov r0, r5 <== NOT EXECUTED 826c: 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( 8270: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 8274: 11a03002 movne r3, r2 <== NOT EXECUTED 8278: 1affffe9 bne 8224 <== NOT EXECUTED 827c: eaffffe1 b 8208 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 8280: e3a0032b mov r0, #-1409286144 ; 0xac000000 <== NOT EXECUTED 8284: e2400833 sub r0, r0, #3342336 ; 0x330000 <== NOT EXECUTED 8288: ebfff30d bl 4ec4 <== NOT EXECUTED if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 828c: e3a004ba mov r0, #-1174405120 ; 0xba000000 <== NOT EXECUTED 8290: e280060d add r0, r0, #13631488 ; 0xd00000 <== NOT EXECUTED 8294: ebfff30a bl 4ec4 <== NOT EXECUTED 8298: 00014a18 .word 0x00014a18 0000ac18 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ac18: 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 ) ) ) ac1c: e3c14f7f bic r4, r1, #508 ; 0x1fc <== NOT EXECUTED ac20: e3c44003 bic r4, r4, #3 ; 0x3 <== NOT EXECUTED ac24: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ac28: 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; ac2c: 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 ) ) ) ac30: 1a00000c bne ac68 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); jnode->st_mode |= mode; ac34: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED ac38: e3c33f7f bic r3, r3, #508 ; 0x1fc <== NOT EXECUTED ac3c: e3c33003 bic r3, r3, #3 ; 0x3 <== NOT EXECUTED ac40: e1813003 orr r3, r1, r3 <== NOT EXECUTED ac44: e5853030 str r3, [r5, #48] <== NOT EXECUTED IMFS_update_ctime( jnode ); ac48: e1a0000d mov r0, sp <== NOT EXECUTED ac4c: e1a01004 mov r1, r4 <== NOT EXECUTED ac50: ebfff928 bl 90f8 <== NOT EXECUTED ac54: e59d3000 ldr r3, [sp] <== NOT EXECUTED ac58: e5853048 str r3, [r5, #72] <== NOT EXECUTED ac5c: e1a00004 mov r0, r4 <== NOT EXECUTED return 0; } ac60: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED ac64: 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 ); ac68: eb0001b0 bl b330 <__errno> <== NOT EXECUTED ac6c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED ac70: e5803000 str r3, [r0] <== NOT EXECUTED ac74: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED ac78: eafffff8 b ac60 <== NOT EXECUTED 0002a6ac : int cmd, rtems_libio_t *iop ) { return 0; } 2a6ac: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2a6b0: e12fff1e bx lr <== NOT EXECUTED 0002a6b4 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } 2a6b4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2a6b8: e12fff1e bx lr <== NOT EXECUTED 0000880c : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 880c: e92d4070 push {r4, r5, r6, lr} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 8810: e2504000 subs r4, r0, #0 ; 0x0 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 8814: e1a05001 mov r5, r1 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 8818: 0a000020 beq 88a0 if ( !name ) 881c: e3510000 cmp r1, #0 ; 0x0 8820: 0a00001b beq 8894 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 8824: e1a00001 mov r0, r1 8828: e59f1084 ldr r1, [pc, #132] ; 88b4 882c: eb000f8d bl c668 8830: e3500000 cmp r0, #0 ; 0x0 8834: 1a000001 bne 8840 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 8838: e1a00004 mov r0, r4 883c: e8bd8070 pop {r4, r5, r6, pc} */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) 8840: e1a00005 mov r0, r5 8844: e59f106c ldr r1, [pc, #108] ; 88b8 8848: eb000f86 bl c668 884c: e3500000 cmp r0, #0 ; 0x0 return directory->Parent; 8850: 05944008 ldreq r4, [r4, #8] */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) 8854: 0afffff7 beq 8838 return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 8858: e5946050 ldr r6, [r4, #80] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 885c: e2844054 add r4, r4, #84 ; 0x54 !rtems_chain_is_tail( the_chain, the_node ); 8860: e1560004 cmp r6, r4 8864: 1a000003 bne 8878 8868: ea000009 b 8894 the_node = the_node->next ) { 886c: 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 ); 8870: e1560004 cmp r6, r4 8874: 0a000006 beq 8894 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) 8878: e1a00005 mov r0, r5 887c: e286100c add r1, r6, #12 ; 0xc 8880: eb000f78 bl c668 8884: e3500000 cmp r0, #0 ; 0x0 8888: 1afffff7 bne 886c 888c: e1a04006 mov r4, r6 8890: eaffffe8 b 8838 return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); 8894: e3a04000 mov r4, #0 ; 0x0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 8898: e1a00004 mov r0, r4 889c: e8bd8070 pop {r4, r5, r6, pc} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 88a0: e59f0014 ldr r0, [pc, #20] ; 88bc <== NOT EXECUTED 88a4: e3a0102a mov r1, #42 ; 0x2a <== NOT EXECUTED 88a8: e59f2010 ldr r2, [pc, #16] ; 88c0 <== NOT EXECUTED 88ac: e59f3010 ldr r3, [pc, #16] ; 88c4 <== NOT EXECUTED 88b0: eb00010d bl 8cec <__assert_func> <== NOT EXECUTED 88b4: 00015144 .word 0x00015144 88b8: 00015148 .word 0x00015148 88bc: 00015954 .word 0x00015954 88c0: 0001514c .word 0x0001514c 88c4: 000159a4 .word 0x000159a4 0001d3f0 : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } 1d3f0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1d3f4: e12fff1e bx lr <== NOT EXECUTED 0001d3f8 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 1d3f8: 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; 1d3fc: e1a0e000 mov lr, r0 <== NOT EXECUTED 1d400: 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 ) { 1d404: 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; 1d408: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 1d40c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; 1d410: 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; 1d414: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1d418: e58c3018 str r3, [ip, #24] <== 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; 1d41c: e1a0500d mov r5, sp <== NOT EXECUTED temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 1d420: e1a0000d mov r0, sp <== NOT EXECUTED temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; 1d424: e58d4000 str r4, [sp] <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 1d428: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 1d42c: ebfffe1a bl 1cc9c <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { 1d430: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 1d434: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 1d438: 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 ) { 1d43c: 1a000010 bne 1d484 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 1d440: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 1d444: e1530002 cmp r3, r2 <== NOT EXECUTED 1d448: 0a00000d beq 1d484 <== NOT EXECUTED result = IMFS_unlink( &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 1d44c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 1d450: 0a000008 beq 1d478 <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { 1d454: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 1d458: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 1d45c: 1affffef bne 1d420 <== NOT EXECUTED if ( jnode_has_children( jnode ) ) 1d460: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 1d464: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 1d468: e1520003 cmp r2, r3 <== NOT EXECUTED 1d46c: 0affffeb beq 1d420 <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 1d470: e2524000 subs r4, r2, #0 ; 0x0 <== NOT EXECUTED 1d474: 1affffe9 bne 1d420 <== NOT EXECUTED 1d478: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 1d47c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1d480: 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 ); 1d484: e1a0000d mov r0, sp <== NOT EXECUTED 1d488: ebff9921 bl 3914 <== NOT EXECUTED if (result != 0) 1d48c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d490: 01a04006 moveq r4, r6 <== NOT EXECUTED 1d494: 0affffec beq 1d44c <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 1d498: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1d49c: eafffff6 b 1d47c <== NOT EXECUTED 000088c8 : IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 88c8: e92d4010 push {r4, lr} register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 88cc: e5d03000 ldrb r3, [r0] while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { 88d0: e353002f cmp r3, #47 ; 0x2f 88d4: 1353005c cmpne r3, #92 ; 0x5c IMFS_token_types IMFS_get_token( const char *path, char *token, int *token_len ) { 88d8: e1a04001 mov r4, r1 88dc: 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) ) { 88e0: 0a000025 beq 897c 88e4: e3530000 cmp r3, #0 ; 0x0 token[i] = c; 88e8: 15c13000 strbne r3, [r1] 88ec: 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) ) { 88f0: 1a000009 bne 891c 88f4: ea000029 b 89a0 88f8: e2523000 subs r3, r2, #0 ; 0x0 88fc: 13a03001 movne r3, #1 ; 0x1 8900: e3510020 cmp r1, #32 ; 0x20 8904: c3a03000 movgt r3, #0 ; 0x0 8908: e3530000 cmp r3, #0 ; 0x0 890c: 0a000007 beq 8930 token[i] = c; if ( i == IMFS_NAME_MAX ) 8910: 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; 8914: e7c42001 strb r2, [r4, r1] if ( i == IMFS_NAME_MAX ) 8918: 0a00001e beq 8998 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 891c: e2811001 add r1, r1, #1 ; 0x1 8920: 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) ) { 8924: e352002f cmp r2, #47 ; 0x2f 8928: 1352005c cmpne r2, #92 ; 0x5c 892c: 1afffff1 bne 88f8 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 8930: e0843001 add r3, r4, r1 8934: e5532001 ldrb r2, [r3, #-1] 8938: e3520000 cmp r2, #0 ; 0x0 token[i] = '\0'; 893c: 13a03000 movne r3, #0 ; 0x0 8940: 17c43001 strbne r3, [r4, r1] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 8944: e1a00004 mov r0, r4 /* * Set token_len to the number of characters copied. */ *token_len = i; 8948: 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 ) 894c: e59f1060 ldr r1, [pc, #96] ; 89b4 8950: eb000f44 bl c668 8954: e3500000 cmp r0, #0 ; 0x0 8958: 02800002 addeq r0, r0, #2 ; 0x2 895c: 08bd8010 popeq {r4, pc} type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 8960: e1a00004 mov r0, r4 8964: e59f104c ldr r1, [pc, #76] ; 89b8 8968: eb000f3e bl c668 896c: e3500000 cmp r0, #0 ; 0x0 8970: 13a00003 movne r0, #3 ; 0x3 8974: 03a00001 moveq r0, #1 ; 0x1 type = IMFS_CURRENT_DIR; } return type; } 8978: e8bd8010 pop {r4, pc} */ if ( i == 0 ) { token[i] = c; if ( token[i] != '\0' ) { 897c: e3530000 cmp r3, #0 ; 0x0 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 8980: e5c13000 strb r3, [r1] if ( token[i] != '\0' ) { 8984: 13a03001 movne r3, #1 ; 0x1 8988: 11a00003 movne r0, r3 898c: 0a000004 beq 89a4 /* * Set token_len to the number of characters copied. */ *token_len = i; 8990: e58c3000 str r3, [ip] 8994: e8bd8010 pop {r4, pc} c = path[i]; while ( (!IMFS_is_separator(c)) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) 8998: e3a00004 mov r0, #4 ; 0x4 <== NOT EXECUTED 899c: e8bd8010 pop {r4, pc} <== NOT EXECUTED /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 89a0: e5c43000 strb r3, [r4] type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; 89a4: e3a03000 mov r3, #0 ; 0x0 89a8: e1a00003 mov r0, r3 /* * Set token_len to the number of characters copied. */ *token_len = i; 89ac: e58c3000 str r3, [ip] 89b0: e8bd8010 pop {r4, pc} 89b4: 00015800 .word 0x00015800 89b8: 000159b0 .word 0x000159b0 00003544 : int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( 3544: e59f1008 ldr r1, [pc, #8] ; 3554 <== NOT EXECUTED 3548: e59f2008 ldr r2, [pc, #8] ; 3558 <== NOT EXECUTED 354c: e59f3008 ldr r3, [pc, #8] ; 355c <== NOT EXECUTED 3550: ea000002 b 3560 <== NOT EXECUTED 3554: 00040668 .word 0x00040668 3558: 00040a30 .word 0x00040a30 355c: 000409c0 .word 0x000409c0 000089bc : 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 ) { 89bc: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 89c0: e59fc0f0 ldr ip, [pc, #240] ; 8ab8 89c4: e59ce000 ldr lr, [ip] * 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) { 89c8: 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 ) { 89cc: e1a09002 mov r9, r2 89d0: e1a08003 mov r8, r3 89d4: e24dd004 sub sp, sp, #4 ; 0x4 89d8: e1a06000 mov r6, r0 89dc: 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) { 89e0: 13a02020 movne r2, #32 ; 0x20 89e4: 13a03000 movne r3, #0 ; 0x0 89e8: 0a000006 beq 8a08 89ec: e15e0002 cmp lr, r2 /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 89f0: e2833001 add r3, r3, #1 ; 0x1 89f4: e1a02082 lsl r2, r2, #1 if (bit_mask == requested_bytes_per_block) { 89f8: 0a000002 beq 8a08 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); 89fc: e3530005 cmp r3, #5 ; 0x5 8a00: 1afffff9 bne 89ec 8a04: 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) 8a08: e59fc0ac ldr ip, [pc, #172] ; 8abc * 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( 8a0c: e3a07000 mov r7, #0 ; 0x0 8a10: e3a03c41 mov r3, #16640 ; 0x4100 bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 8a14: 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( 8a18: e28330ed add r3, r3, #237 ; 0xed 8a1c: e3a01001 mov r1, #1 ; 0x1 8a20: e59f2098 ldr r2, [pc, #152] ; 8ac0 8a24: e1a00007 mov r0, r7 8a28: e58d7000 str r7, [sp] 8a2c: eb000817 bl aa90 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; 8a30: e59f508c ldr r5, [pc, #140] ; 8ac4 8a34: 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( 8a38: 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; 8a3c: e8b4000f ldm r4!, {r0, r1, r2, r3} 8a40: e286c030 add ip, r6, #48 ; 0x30 8a44: e8ac000f stmia ip!, {r0, r1, r2, r3} 8a48: e8b4000f ldm r4!, {r0, r1, r2, r3} 8a4c: e8ac000f stmia ip!, {r0, r1, r2, r3} 8a50: 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; 8a54: e586a020 str sl, [r6, #32] temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 8a58: e88c000f stm ip, {r0, r1, r2, r3} "", ( S_IFDIR | 0755 ), NULL ); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 8a5c: 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 ) ); 8a60: e3a00001 mov r0, #1 ; 0x1 8a64: e3a0100c mov r1, #12 ; 0xc 8a68: eb0000fc bl 8e60 if ( !fs_info ){ 8a6c: e3500000 cmp r0, #0 ; 0x0 8a70: 0a000009 beq 8a9c 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; 8a74: e5962018 ldr r2, [r6, #24] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 8a78: e3a03001 mov r3, #1 ; 0x1 8a7c: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 8a80: e5823038 str r3, [r2, #56] * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 8a84: e5808008 str r8, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 8a88: 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; 8a8c: 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; 8a90: e1a00007 mov r0, r7 return 0; } 8a94: e28dd004 add sp, sp, #4 ; 0x4 8a98: 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); 8a9c: e5960018 ldr r0, [r6, #24] <== NOT EXECUTED 8aa0: eb00012d bl 8f5c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 8aa4: eb000a21 bl b330 <__errno> <== NOT EXECUTED 8aa8: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 8aac: e5803000 str r3, [r0] <== NOT EXECUTED 8ab0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8ab4: eafffff6 b 8a94 <== NOT EXECUTED 8ab8: 00014448 .word 0x00014448 8abc: 00015e5c .word 0x00015e5c 8ac0: 000157f0 .word 0x000157f0 8ac4: 000152b8 .word 0x000152b8 0000366c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 366c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 3670: e590c000 ldr ip, [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 */ ) { 3674: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 3678: e58dc028 str ip, [sp, #40] <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 367c: e1dc33b4 ldrh r3, [ip, #52] <== NOT EXECUTED 3680: e3530007 cmp r3, #7 ; 0x7 <== NOT EXECUTED int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 3684: e1a05001 mov r5, r1 <== NOT EXECUTED 3688: 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 ) 368c: 8a00001a bhi 36fc <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, new_name, &i ); 3690: e28d4007 add r4, sp, #7 ; 0x7 <== NOT EXECUTED 3694: e1a01004 mov r1, r4 <== NOT EXECUTED 3698: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 369c: ebffff6b bl 3450 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 36a0: e3a03ca2 mov r3, #41472 ; 0xa200 <== NOT EXECUTED 36a4: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 36a8: e1a00005 mov r0, r5 <== NOT EXECUTED 36ac: e1a02004 mov r2, r4 <== NOT EXECUTED 36b0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 36b4: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 36b8: e58dc000 str ip, [sp] <== NOT EXECUTED 36bc: eb006514 bl 1cb14 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 36c0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 36c4: 0a000011 beq 3710 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 36c8: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED 36cc: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED 36d0: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 36d4: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 36d8: e28d0038 add r0, sp, #56 ; 0x38 <== NOT EXECUTED 36dc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 36e0: eb000244 bl 3ff8 <== NOT EXECUTED 36e4: e59d2038 ldr r2, [sp, #56] <== NOT EXECUTED 36e8: e59d3028 ldr r3, [sp, #40] <== NOT EXECUTED 36ec: e5832048 str r2, [r3, #72] <== NOT EXECUTED 36f0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 36f4: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 36f8: 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 ); 36fc: eb00a612 bl 2cf4c <__errno> <== NOT EXECUTED 3700: e3a0301f mov r3, #31 ; 0x1f <== NOT EXECUTED 3704: e5803000 str r3, [r0] <== NOT EXECUTED 3708: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 370c: eafffff8 b 36f4 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 3710: eb00a60d bl 2cf4c <__errno> <== NOT EXECUTED 3714: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3718: e5803000 str r3, [r0] <== NOT EXECUTED 371c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3720: eafffff3 b 36f4 <== NOT EXECUTED 000247f4 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 247f4: e2503000 subs r3, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 247f8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 247fc: 0a00000f beq 24840 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 24800: e593304c ldr r3, [r3, #76] <== NOT EXECUTED 24804: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 24808: 1a000012 bne 24858 <== 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 ); 2480c: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 24810: ebfffe99 bl 2427c <== NOT EXECUTED if ( *block_entry_ptr ) 24814: e5905000 ldr r5, [r0] <== NOT EXECUTED 24818: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); 2481c: e1a04000 mov r4, r0 <== NOT EXECUTED if ( *block_entry_ptr ) 24820: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 24824: 18bd8030 popne {r4, r5, pc} <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 24828: ebfffe86 bl 24248 <== NOT EXECUTED if ( !memory ) 2482c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 24830: 15840000 strne r0, [r4] <== NOT EXECUTED fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 24834: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return 1; *block_entry_ptr = memory; 24838: 11a00005 movne r0, r5 <== NOT EXECUTED return 0; } 2483c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 24840: e3a01f5a mov r1, #360 ; 0x168 <== NOT EXECUTED 24844: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24848: e59f0020 ldr r0, [pc, #32] ; 24870 <== NOT EXECUTED 2484c: e59f2020 ldr r2, [pc, #32] ; 24874 <== NOT EXECUTED 24850: e59f3020 ldr r3, [pc, #32] ; 24878 <== NOT EXECUTED 24854: ebffe3b9 bl 1d740 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 24858: e3a01f5b mov r1, #364 ; 0x16c <== NOT EXECUTED 2485c: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24860: e59f0008 ldr r0, [pc, #8] ; 24870 <== NOT EXECUTED 24864: e59f2008 ldr r2, [pc, #8] ; 24874 <== NOT EXECUTED 24868: e59f300c ldr r3, [pc, #12] ; 2487c <== NOT EXECUTED 2486c: ebffe3b3 bl 1d740 <__assert_func> <== NOT EXECUTED 24870: 000441f4 .word 0x000441f4 24874: 00040c4c .word 0x00040c4c 24878: 00044240 .word 0x00044240 2487c: 0004424c .word 0x0004424c 00024880 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 24880: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24884: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 24888: e1a08001 mov r8, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2488c: 0a000037 beq 24970 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 24890: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 24894: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 24898: 1a00003a bne 24988 <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 2489c: e59f20fc ldr r2, [pc, #252] ; 249a0 <== NOT EXECUTED 248a0: e5924000 ldr r4, [r2] <== NOT EXECUTED 248a4: e1a03124 lsr r3, r4, #2 <== NOT EXECUTED 248a8: e0213393 mla r1, r3, r3, r3 <== NOT EXECUTED 248ac: e0223391 mla r2, r1, r3, r3 <== NOT EXECUTED 248b0: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED 248b4: e0030294 mul r3, r4, r2 <== NOT EXECUTED 248b8: e1580003 cmp r8, r3 <== NOT EXECUTED 248bc: 2a000026 bcs 2495c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 248c0: e5956050 ldr r6, [r5, #80] <== NOT EXECUTED 248c4: e1580006 cmp r8, r6 <== NOT EXECUTED 248c8: d3a00000 movle r0, #0 ; 0x0 <== NOT EXECUTED 248cc: 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; 248d0: e1a01004 mov r1, r4 <== NOT EXECUTED 248d4: e1a00008 mov r0, r8 <== NOT EXECUTED 248d8: eb006261 bl 3d264 <__aeabi_idiv> <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 248dc: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 248e0: e1a07000 mov r7, r0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 248e4: e1a00006 mov r0, r6 <== NOT EXECUTED 248e8: eb00625d bl 3d264 <__aeabi_idiv> <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 248ec: 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; 248f0: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 248f4: 3a000015 bcc 24950 <== NOT EXECUTED 248f8: e1a04000 mov r4, r0 <== NOT EXECUTED 248fc: ea000002 b 2490c <== NOT EXECUTED 24900: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED 24904: e1570004 cmp r7, r4 <== NOT EXECUTED 24908: 3a000010 bcc 24950 <== NOT EXECUTED if ( IMFS_memfile_addblock( the_jnode, block ) ) { 2490c: e1a00005 mov r0, r5 <== NOT EXECUTED 24910: e1a01004 mov r1, r4 <== NOT EXECUTED 24914: ebffffb6 bl 247f4 <== NOT EXECUTED 24918: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2491c: 0afffff7 beq 24900 <== NOT EXECUTED 24920: ea000003 b 24934 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 24924: e1a01004 mov r1, r4 <== NOT EXECUTED 24928: 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-- ) { 2492c: e2444001 sub r4, r4, #1 ; 0x1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 24930: ebfffeeb bl 244e4 <== 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-- ) { 24934: e1560004 cmp r6, r4 <== NOT EXECUTED 24938: 9afffff9 bls 24924 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 2493c: eb002182 bl 2cf4c <__errno> <== NOT EXECUTED 24940: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 24944: e5803000 str r3, [r0] <== NOT EXECUTED 24948: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2494c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 24950: e5858050 str r8, [r5, #80] <== NOT EXECUTED 24954: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 24958: 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 ); 2495c: eb00217a bl 2cf4c <__errno> <== NOT EXECUTED 24960: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 24964: e5803000 str r3, [r0] <== NOT EXECUTED 24968: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2496c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24970: e3a01e13 mov r1, #304 ; 0x130 <== NOT EXECUTED 24974: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24978: e59f0024 ldr r0, [pc, #36] ; 249a4 <== NOT EXECUTED 2497c: e59f2024 ldr r2, [pc, #36] ; 249a8 <== NOT EXECUTED 24980: e59f3024 ldr r3, [pc, #36] ; 249ac <== NOT EXECUTED 24984: ebffe36d bl 1d740 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 24988: e3a01f4d mov r1, #308 ; 0x134 <== NOT EXECUTED 2498c: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24990: e59f000c ldr r0, [pc, #12] ; 249a4 <== NOT EXECUTED 24994: e59f200c ldr r2, [pc, #12] ; 249a8 <== NOT EXECUTED 24998: e59f3010 ldr r3, [pc, #16] ; 249b0 <== NOT EXECUTED 2499c: ebffe367 bl 1d740 <__assert_func> <== NOT EXECUTED 249a0: 000460bc .word 0x000460bc 249a4: 000441f4 .word 0x000441f4 249a8: 00040c64 .word 0x00040c64 249ac: 00044240 .word 0x00044240 249b0: 0004424c .word 0x0004424c 0002427c : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 2427c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24280: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 24284: e1a04001 mov r4, r1 <== NOT EXECUTED 24288: e1a07002 mov r7, r2 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2428c: 0a00002a beq 2433c <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 24290: e596304c ldr r3, [r6, #76] <== NOT EXECUTED 24294: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 24298: 1a00002d bne 24354 <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 2429c: e59f322c ldr r3, [pc, #556] ; 244d0 <== NOT EXECUTED 242a0: e5932000 ldr r2, [r3] <== NOT EXECUTED 242a4: e1a05122 lsr r5, r2, #2 <== NOT EXECUTED 242a8: e2453001 sub r3, r5, #1 ; 0x1 <== NOT EXECUTED 242ac: e1510003 cmp r1, r3 <== NOT EXECUTED 242b0: 9a000019 bls 2431c <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 242b4: e0215595 mla r1, r5, r5, r5 <== NOT EXECUTED 242b8: e2413001 sub r3, r1, #1 ; 0x1 <== NOT EXECUTED 242bc: e1540003 cmp r4, r3 <== NOT EXECUTED 242c0: 8a00002d bhi 2437c <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 242c4: e0654004 rsb r4, r5, r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 242c8: e1a00004 mov r0, r4 <== NOT EXECUTED 242cc: e1a01005 mov r1, r5 <== NOT EXECUTED 242d0: eb006433 bl 3d3a4 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 242d4: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 242d8: e1a08000 mov r8, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 242dc: e1a00004 mov r0, r4 <== NOT EXECUTED 242e0: eb00639b bl 3d154 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 242e4: 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; 242e8: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->doubly_indirect; 242ec: e5960058 ldr r0, [r6, #88] <== NOT EXECUTED if ( malloc_it ) { 242f0: 0a000047 beq 24414 <== NOT EXECUTED if ( !p ) { 242f4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 242f8: 0a000052 beq 24448 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 242fc: e7901104 ldr r1, [r0, r4, lsl #2] <== NOT EXECUTED 24300: e1a03104 lsl r3, r4, #2 <== NOT EXECUTED if ( !p1 ) { 24304: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 24308: e0804003 add r4, r0, r3 <== NOT EXECUTED if ( !p1 ) { 2430c: 0a000052 beq 2445c <== NOT EXECUTED if ( !p1 ) return 0; p[ doubly ] = (block_p) p1; } return (block_p *)&p1[ singly ]; 24310: e1a03108 lsl r3, r8, #2 <== NOT EXECUTED 24314: e0810003 add r0, r1, r3 <== NOT EXECUTED 24318: 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 ) { 2431c: 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; 24320: e5960054 ldr r0, [r6, #84] <== NOT EXECUTED if ( malloc_it ) { 24324: 0a000010 beq 2436c <== NOT EXECUTED if ( !p ) { 24328: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2432c: 0a000040 beq 24434 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; 24330: e1a03104 lsl r3, r4, #2 <== NOT EXECUTED 24334: e0800003 add r0, r0, r3 <== NOT EXECUTED 24338: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 2433c: e3a01fe1 mov r1, #900 ; 0x384 <== NOT EXECUTED 24340: e2811002 add r1, r1, #2 ; 0x2 <== NOT EXECUTED 24344: e59f0188 ldr r0, [pc, #392] ; 244d4 <== NOT EXECUTED 24348: e59f2188 ldr r2, [pc, #392] ; 244d8 <== NOT EXECUTED 2434c: e59f3188 ldr r3, [pc, #392] ; 244dc <== NOT EXECUTED 24350: ebffe4fa bl 1d740 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 24354: e3a01fe2 mov r1, #904 ; 0x388 <== NOT EXECUTED 24358: e2811002 add r1, r1, #2 ; 0x2 <== NOT EXECUTED 2435c: e59f0170 ldr r0, [pc, #368] ; 244d4 <== NOT EXECUTED 24360: e59f2170 ldr r2, [pc, #368] ; 244d8 <== NOT EXECUTED 24364: e59f3174 ldr r3, [pc, #372] ; 244e0 <== NOT EXECUTED 24368: ebffe4f4 bl 1d740 <__assert_func> <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 2436c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24370: 1affffee bne 24330 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 24374: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 24378: 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 ) { 2437c: e0235591 mla r3, r1, r5, r5 <== NOT EXECUTED 24380: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 24384: e1540003 cmp r4, r3 <== NOT EXECUTED 24388: 8afffff9 bhi 24374 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 2438c: e0614004 rsb r4, r1, r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 24390: e1a00004 mov r0, r4 <== NOT EXECUTED 24394: e1a01005 mov r1, r5 <== NOT EXECUTED 24398: eb006401 bl 3d3a4 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 2439c: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 243a0: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 243a4: e1a00004 mov r0, r4 <== NOT EXECUTED 243a8: eb006369 bl 3d154 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 243ac: 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; 243b0: e1a04000 mov r4, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 243b4: eb006366 bl 3d154 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 243b8: 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; 243bc: e1a08000 mov r8, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 243c0: e1a00004 mov r0, r4 <== NOT EXECUTED 243c4: eb0063f6 bl 3d3a4 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 243c8: 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; 243cc: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->triply_indirect; 243d0: e596005c ldr r0, [r6, #92] <== NOT EXECUTED if ( malloc_it ) { 243d4: 0a000025 beq 24470 <== NOT EXECUTED if ( !p ) { 243d8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 243dc: 0a00002c beq 24494 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 243e0: e790c108 ldr ip, [r0, r8, lsl #2] <== NOT EXECUTED 243e4: e1a03108 lsl r3, r8, #2 <== NOT EXECUTED if ( !p1 ) { 243e8: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 243ec: e0805003 add r5, r0, r3 <== NOT EXECUTED if ( !p1 ) { 243f0: 0a000031 beq 244bc <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 243f4: e79c0104 ldr r0, [ip, r4, lsl #2] <== NOT EXECUTED 243f8: e1a03104 lsl r3, r4, #2 <== NOT EXECUTED if ( !p2 ) { 243fc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 24400: e08c4003 add r4, ip, r3 <== NOT EXECUTED if ( !p2 ) { 24404: 0a000027 beq 244a8 <== NOT EXECUTED p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 24408: e1a0310a lsl r3, sl, #2 <== NOT EXECUTED 2440c: e0800003 add r0, r0, r3 <== NOT EXECUTED 24410: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 24414: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24418: 0affffd5 beq 24374 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 2441c: e7900104 ldr r0, [r0, r4, lsl #2] <== NOT EXECUTED if ( !p ) 24420: 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 ]; 24424: 11a03108 lslne r3, r8, #2 <== NOT EXECUTED 24428: 10800003 addne r0, r0, r3 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) 2442c: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 24430: eaffffcf b 24374 <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 24434: ebffff83 bl 24248 <== NOT EXECUTED if ( !p ) 24438: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return 0; info->indirect = p; 2443c: 15860054 strne r0, [r6, #84] <== NOT EXECUTED if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); if ( !p ) 24440: 1affffba bne 24330 <== NOT EXECUTED 24444: eaffffca b 24374 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 24448: ebffff7e bl 24248 <== NOT EXECUTED if ( !p ) 2444c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24450: 0affffc7 beq 24374 <== NOT EXECUTED return 0; info->doubly_indirect = p; 24454: e5860058 str r0, [r6, #88] <== NOT EXECUTED 24458: eaffffa7 b 242fc <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 2445c: ebffff79 bl 24248 <== NOT EXECUTED if ( !p1 ) 24460: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 24464: 0affffc2 beq 24374 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 24468: e5841000 str r1, [r4] <== NOT EXECUTED 2446c: eaffffa7 b 24310 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 24470: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24474: 0affffbe beq 24374 <== 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 ]; 24478: e7900108 ldr r0, [r0, r8, lsl #2] <== NOT EXECUTED if ( !p1 ) 2447c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 24480: 17902104 ldrne r2, [r0, r4, lsl #2] <== NOT EXECUTED 24484: 11a0310a lslne r3, sl, #2 <== NOT EXECUTED 24488: 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 ) 2448c: 0affffb8 beq 24374 <== NOT EXECUTED 24490: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 24494: ebffff6b bl 24248 <== NOT EXECUTED if ( !p ) 24498: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2449c: 0affffb4 beq 24374 <== NOT EXECUTED return 0; info->triply_indirect = p; 244a0: e586005c str r0, [r6, #92] <== NOT EXECUTED 244a4: eaffffcd b 243e0 <== NOT EXECUTED p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); 244a8: ebffff66 bl 24248 <== NOT EXECUTED if ( !p2 ) 244ac: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 244b0: 0affffaf beq 24374 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 244b4: e5840000 str r0, [r4] <== NOT EXECUTED 244b8: eaffffd2 b 24408 <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 244bc: ebffff61 bl 24248 <== NOT EXECUTED if ( !p1 ) 244c0: e250c000 subs ip, r0, #0 ; 0x0 <== NOT EXECUTED 244c4: 0affffaa beq 24374 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 244c8: e585c000 str ip, [r5] <== NOT EXECUTED 244cc: eaffffc8 b 243f4 <== NOT EXECUTED 244d0: 000460bc .word 0x000460bc 244d4: 000441f4 .word 0x000441f4 244d8: 00040bd0 .word 0x00040bd0 244dc: 00044240 .word 0x00044240 244e0: 0004424c .word 0x0004424c 00024d58 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 24d58: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24d5c: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 24d60: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 24d64: e1a05001 mov r5, r1 <== NOT EXECUTED 24d68: e1a06002 mov r6, r2 <== NOT EXECUTED 24d6c: e1a00003 mov r0, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24d70: 0a00006c beq 24f28 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 24d74: e59a104c ldr r1, [sl, #76] <== NOT EXECUTED 24d78: e2413005 sub r3, r1, #5 ; 0x5 <== NOT EXECUTED 24d7c: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 24d80: 8a000073 bhi 24f54 <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 24d84: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 24d88: 0a00006c beq 24f40 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 24d8c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24d90: 0a00005f beq 24f14 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 24d94: e3510006 cmp r1, #6 ; 0x6 <== NOT EXECUTED 24d98: 0a00004d beq 24ed4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 24d9c: e59f91f4 ldr r9, [pc, #500] ; 24f98 <== 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 ) 24da0: e59a2050 ldr r2, [sl, #80] <== NOT EXECUTED 24da4: e0803005 add r3, r0, r5 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 24da8: 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 ) 24dac: e1530002 cmp r3, r2 <== NOT EXECUTED 24db0: 91a08000 movls r8, r0 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 24db4: e1a01004 mov r1, r4 <== NOT EXECUTED 24db8: 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; 24dbc: 80658002 rsbhi r8, r5, r2 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 24dc0: eb0061aa bl 3d470 <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 24dc4: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 24dc8: e1a07000 mov r7, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 24dcc: e1a00005 mov r0, r5 <== NOT EXECUTED 24dd0: eb006123 bl 3d264 <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 24dd4: 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; 24dd8: e1a05000 mov r5, r0 <== NOT EXECUTED if ( start_offset ) { 24ddc: 1a000029 bne 24e88 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 24de0: e5994000 ldr r4, [r9] <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 24de4: e1580004 cmp r8, r4 <== NOT EXECUTED 24de8: 3a000010 bcc 24e30 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 24dec: e1a0000a mov r0, sl <== NOT EXECUTED 24df0: e1a01005 mov r1, r5 <== NOT EXECUTED 24df4: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 24df8: ebfffd1f bl 2427c <== NOT EXECUTED assert( block_ptr ); 24dfc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24e00: 0a00003d beq 24efc <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 24e04: e5901000 ldr r1, [r0] <== NOT EXECUTED 24e08: e1a02004 mov r2, r4 <== NOT EXECUTED 24e0c: e1a00006 mov r0, r6 <== NOT EXECUTED 24e10: eb0029c5 bl 2f52c <== 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 ) { 24e14: 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; 24e18: 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 ) { 24e1c: 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; 24e20: e0866004 add r6, r6, r4 <== NOT EXECUTED block++; 24e24: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; copied += to_copy; 24e28: 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 ) { 24e2c: 9affffee bls 24dec <== NOT EXECUTED * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 24e30: 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 ) { 24e34: 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 ) { 24e38: 0a00000a beq 24e68 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 24e3c: e1a01005 mov r1, r5 <== NOT EXECUTED 24e40: e1a0000a mov r0, sl <== NOT EXECUTED 24e44: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 24e48: ebfffd0b bl 2427c <== NOT EXECUTED assert( block_ptr ); 24e4c: e2501000 subs r1, r0, #0 ; 0x0 <== NOT EXECUTED 24e50: 0a00004a beq 24f80 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 24e54: e1a00006 mov r0, r6 <== NOT EXECUTED 24e58: e5911000 ldr r1, [r1] <== NOT EXECUTED 24e5c: e1a02008 mov r2, r8 <== NOT EXECUTED 24e60: eb0029b1 bl 2f52c <== NOT EXECUTED copied += my_length; 24e64: e0884007 add r4, r8, r7 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); 24e68: e1a0000d mov r0, sp <== NOT EXECUTED 24e6c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 24e70: ebff7c60 bl 3ff8 <== NOT EXECUTED 24e74: e59d3000 ldr r3, [sp] <== NOT EXECUTED 24e78: e58a3040 str r3, [sl, #64] <== NOT EXECUTED return copied; 24e7c: e1a00004 mov r0, r4 <== NOT EXECUTED } 24e80: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 24e84: 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 ); 24e88: e1a0000a mov r0, sl <== NOT EXECUTED 24e8c: e1a01005 mov r1, r5 <== NOT EXECUTED 24e90: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 24e94: ebfffcf8 bl 2427c <== NOT EXECUTED assert( block_ptr ); 24e98: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24e9c: 0a000032 beq 24f6c <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 24ea0: 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; 24ea4: e0674004 rsb r4, r7, r4 <== NOT EXECUTED 24ea8: e1580004 cmp r8, r4 <== NOT EXECUTED 24eac: 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 ); 24eb0: e0811007 add r1, r1, r7 <== NOT EXECUTED 24eb4: e1a00006 mov r0, r6 <== NOT EXECUTED 24eb8: e1a02004 mov r2, r4 <== NOT EXECUTED 24ebc: eb00299a bl 2f52c <== NOT EXECUTED dest += to_copy; 24ec0: e0866004 add r6, r6, r4 <== NOT EXECUTED block++; 24ec4: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 24ec8: e0648008 rsb r8, r4, r8 <== NOT EXECUTED 24ecc: e1a07004 mov r7, r4 <== NOT EXECUTED 24ed0: eaffffc2 b 24de0 <== 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)) 24ed4: e59a4050 ldr r4, [sl, #80] <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 24ed8: 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)) 24edc: e0654004 rsb r4, r5, r4 <== NOT EXECUTED 24ee0: e1540000 cmp r4, r0 <== NOT EXECUTED 24ee4: 21a04000 movcs r4, r0 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); 24ee8: e0811005 add r1, r1, r5 <== NOT EXECUTED 24eec: e1a00002 mov r0, r2 <== NOT EXECUTED 24ef0: e1a02004 mov r2, r4 <== NOT EXECUTED 24ef4: eb00298c bl 2f52c <== NOT EXECUTED 24ef8: eaffffda b 24e68 <== 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 ); 24efc: e3a01fa9 mov r1, #676 ; 0x2a4 <== NOT EXECUTED 24f00: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24f04: e59f0090 ldr r0, [pc, #144] ; 24f9c <== NOT EXECUTED 24f08: e59f2090 ldr r2, [pc, #144] ; 24fa0 <== NOT EXECUTED 24f0c: e59f3090 ldr r3, [pc, #144] ; 24fa4 <== NOT EXECUTED 24f10: ebffe20a bl 1d740 <__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 ); 24f14: eb00200c bl 2cf4c <__errno> <== NOT EXECUTED 24f18: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 24f1c: e5803000 str r3, [r0] <== NOT EXECUTED 24f20: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 24f24: eaffffd5 b 24e80 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24f28: e3a01f92 mov r1, #584 ; 0x248 <== NOT EXECUTED 24f2c: e2811002 add r1, r1, #2 ; 0x2 <== NOT EXECUTED 24f30: e59f0064 ldr r0, [pc, #100] ; 24f9c <== NOT EXECUTED 24f34: e59f2064 ldr r2, [pc, #100] ; 24fa0 <== NOT EXECUTED 24f38: e59f3068 ldr r3, [pc, #104] ; 24fa8 <== NOT EXECUTED 24f3c: ebffe1ff bl 1d740 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 24f40: e59f0054 ldr r0, [pc, #84] ; 24f9c <== NOT EXECUTED 24f44: e3a01f96 mov r1, #600 ; 0x258 <== NOT EXECUTED 24f48: e59f2050 ldr r2, [pc, #80] ; 24fa0 <== NOT EXECUTED 24f4c: e59f3058 ldr r3, [pc, #88] ; 24fac <== NOT EXECUTED 24f50: ebffe1fa bl 1d740 <__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 || 24f54: e3a01f93 mov r1, #588 ; 0x24c <== NOT EXECUTED 24f58: e2811003 add r1, r1, #3 ; 0x3 <== NOT EXECUTED 24f5c: e59f0038 ldr r0, [pc, #56] ; 24f9c <== NOT EXECUTED 24f60: e59f2038 ldr r2, [pc, #56] ; 24fa0 <== NOT EXECUTED 24f64: e59f3044 ldr r3, [pc, #68] ; 24fb0 <== NOT EXECUTED 24f68: ebffe1f4 bl 1d740 <__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 ); 24f6c: e59f0028 ldr r0, [pc, #40] ; 24f9c <== NOT EXECUTED 24f70: e3a01fa5 mov r1, #660 ; 0x294 <== NOT EXECUTED 24f74: e59f2024 ldr r2, [pc, #36] ; 24fa0 <== NOT EXECUTED 24f78: e59f3024 ldr r3, [pc, #36] ; 24fa4 <== NOT EXECUTED 24f7c: ebffe1ef bl 1d740 <__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 ); 24f80: e3a01fad mov r1, #692 ; 0x2b4 <== NOT EXECUTED 24f84: e2811003 add r1, r1, #3 ; 0x3 <== NOT EXECUTED 24f88: e59f000c ldr r0, [pc, #12] ; 24f9c <== NOT EXECUTED 24f8c: e59f200c ldr r2, [pc, #12] ; 24fa0 <== NOT EXECUTED 24f90: e59f300c ldr r3, [pc, #12] ; 24fa4 <== NOT EXECUTED 24f94: ebffe1e9 bl 1d740 <__assert_func> <== NOT EXECUTED 24f98: 000460bc .word 0x000460bc 24f9c: 000441f4 .word 0x000441f4 24fa0: 00040c04 .word 0x00040c04 24fa4: 00044284 .word 0x00044284 24fa8: 00044240 .word 0x00044240 24fac: 000442dc .word 0x000442dc 24fb0: 00044290 .word 0x00044290 00024594 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 24594: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24598: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 2459c: 0a00004f beq 246e0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 245a0: e59a304c ldr r3, [sl, #76] <== NOT EXECUTED 245a4: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 245a8: 1a000051 bne 246f4 <== 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; 245ac: e59f7154 ldr r7, [pc, #340] ; 24708 <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 245b0: 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; 245b4: e5972000 ldr r2, [r7] <== NOT EXECUTED * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 245b8: 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; 245bc: e1a08122 lsr r8, r2, #2 <== NOT EXECUTED */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 245c0: 128a0054 addne r0, sl, #84 ; 0x54 <== NOT EXECUTED 245c4: 11a01008 movne r1, r8 <== NOT EXECUTED 245c8: 1bffffcf blne 2450c <== NOT EXECUTED } if ( info->doubly_indirect ) { 245cc: e59a0058 ldr r0, [sl, #88] <== NOT EXECUTED 245d0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 245d4: 0a000014 beq 2462c <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED 245e4: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 245e8: e1a02004 mov r2, r4 <== NOT EXECUTED 245ec: ea000000 b 245f4 <== NOT EXECUTED 245f0: e59a0058 ldr r0, [sl, #88] <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 245f4: e7903102 ldr r3, [r0, r2, lsl #2] <== NOT EXECUTED 245f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 245fc: e1a03102 lsl r3, r2, #2 <== NOT EXECUTED memfile_free_blocks_in_table( 24600: 10800003 addne r0, r0, r3 <== NOT EXECUTED 24604: 11a01008 movne r1, r8 <== NOT EXECUTED 24608: 1bffffbf blne 2450c <== 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 ); 24620: e28a0058 add r0, sl, #88 ; 0x58 <== NOT EXECUTED 24624: e1a01008 mov r1, r8 <== NOT EXECUTED 24628: ebffffb7 bl 2450c <== NOT EXECUTED } if ( info->triply_indirect ) { 2462c: e59a005c ldr r0, [sl, #92] <== NOT EXECUTED 24630: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24634: 0a000027 beq 246d8 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 24644: e5905000 ldr r5, [r0] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 24648: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 2464c: 13a06000 movne r6, #0 ; 0x0 <== NOT EXECUTED 24650: 11a09006 movne r9, r6 <== NOT EXECUTED 24654: 0a00001c beq 246cc <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 24664: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 24668: e1a02004 mov r2, r4 <== NOT EXECUTED if ( p[j] ) { 2466c: e7953102 ldr r3, [r5, r2, lsl #2] <== NOT EXECUTED 24670: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 24674: e1a03102 lsl r3, r2, #2 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 24678: 10850003 addne r0, r5, r3 <== NOT EXECUTED 2467c: 11a01008 movne r1, r8 <== NOT EXECUTED 24680: 1bffffa1 blne 2450c <== 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 24698: 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( 2469c: e0800009 add r0, r0, r9 <== NOT EXECUTED 246a0: e1a01008 mov r1, r8 <== NOT EXECUTED 246a4: ebffff98 bl 2450c <== 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]; 246b8: e59a005c ldr r0, [sl, #92] <== NOT EXECUTED 246bc: e7905106 ldr r5, [r0, r6, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 246c0: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 246c4: e1a09106 lsl r9, r6, #2 <== NOT EXECUTED 246c8: 1affffe2 bne 24658 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 246cc: e28a005c add r0, sl, #92 ; 0x5c <== NOT EXECUTED 246d0: e1a01008 mov r1, r8 <== NOT EXECUTED 246d4: ebffff8c bl 2450c <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 246d8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 246dc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 246e0: e59f0024 ldr r0, [pc, #36] ; 2470c <== NOT EXECUTED 246e4: e3a01f7b mov r1, #492 ; 0x1ec <== NOT EXECUTED 246e8: e59f2020 ldr r2, [pc, #32] ; 24710 <== NOT EXECUTED 246ec: e59f3020 ldr r3, [pc, #32] ; 24714 <== NOT EXECUTED 246f0: ebffe412 bl 1d740 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 246f4: e59f0010 ldr r0, [pc, #16] ; 2470c <== NOT EXECUTED 246f8: e3a01e1f mov r1, #496 ; 0x1f0 <== NOT EXECUTED 246fc: e59f200c ldr r2, [pc, #12] ; 24710 <== NOT EXECUTED 24700: e59f3010 ldr r3, [pc, #16] ; 24718 <== NOT EXECUTED 24704: ebffe40d bl 1d740 <__assert_func> <== NOT EXECUTED 24708: 000460bc .word 0x000460bc 2470c: 000441f4 .word 0x000441f4 24710: 00040c18 .word 0x00040c18 24714: 00044240 .word 0x00044240 24718: 0004424c .word 0x0004424c 000244e4 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 244e4: 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 ); 244e8: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 244ec: ebffff62 bl 2427c <== NOT EXECUTED ptr = *block_entry_ptr; 244f0: e5902000 ldr r2, [r0] <== NOT EXECUTED *block_entry_ptr = 0; 244f4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 244f8: e5803000 str r3, [r0] <== NOT EXECUTED memfile_free_block( ptr ); 244fc: e1a00002 mov r0, r2 <== NOT EXECUTED 24500: ebffff48 bl 24228 <== NOT EXECUTED return 1; } 24504: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 24508: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00024a68 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 24a68: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24a6c: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 24a70: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 24a74: e1a05001 mov r5, r1 <== NOT EXECUTED 24a78: e1a07002 mov r7, r2 <== NOT EXECUTED 24a7c: e1a0b003 mov fp, r3 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24a80: 0a00006e beq 24c40 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 24a84: e59a304c ldr r3, [sl, #76] <== NOT EXECUTED 24a88: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 24a8c: 1a000065 bne 24c28 <== NOT EXECUTED /* * Error check arguments */ assert( source ); 24a90: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 24a94: 0a00006f beq 24c58 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 24a98: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED 24a9c: 0a00005c beq 24c14 <== 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 ) { 24aa0: 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; 24aa4: e08b1001 add r1, fp, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { 24aa8: e1510003 cmp r1, r3 <== NOT EXECUTED 24aac: 8a00004a bhi 24bdc <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 24ab0: e59f91cc ldr r9, [pc, #460] ; 24c84 <== NOT EXECUTED 24ab4: e5994000 ldr r4, [r9] <== NOT EXECUTED 24ab8: e1a00005 mov r0, r5 <== NOT EXECUTED 24abc: e1a01004 mov r1, r4 <== NOT EXECUTED 24ac0: eb00626a bl 3d470 <__modsi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 24ac4: e1a01004 mov r1, r4 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 24ac8: e1a08000 mov r8, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 24acc: e1a00005 mov r0, r5 <== NOT EXECUTED 24ad0: eb0061e3 bl 3d264 <__aeabi_idiv> <== NOT EXECUTED if ( start_offset ) { 24ad4: 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; 24ad8: e1a06000 mov r6, r0 <== NOT EXECUTED if ( start_offset ) { 24adc: 01a0500b moveq r5, fp <== NOT EXECUTED 24ae0: 1a000029 bne 24b8c <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 24ae4: e5994000 ldr r4, [r9] <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 24ae8: e1550004 cmp r5, r4 <== NOT EXECUTED 24aec: 3a000010 bcc 24b34 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 24af0: e1a0000a mov r0, sl <== NOT EXECUTED 24af4: e1a01006 mov r1, r6 <== NOT EXECUTED 24af8: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 24afc: ebfffdde bl 2427c <== NOT EXECUTED assert( block_ptr ); 24b00: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24b04: 0a00003c beq 24bfc <== 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 ); 24b08: e1a01007 mov r1, r7 <== NOT EXECUTED 24b0c: e5900000 ldr r0, [r0] <== NOT EXECUTED 24b10: e1a02004 mov r2, r4 <== NOT EXECUTED 24b14: eb002a84 bl 2f52c <== 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 ) { 24b18: 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; 24b1c: 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 ) { 24b20: 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; 24b24: e0877004 add r7, r7, r4 <== NOT EXECUTED block++; 24b28: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 24b2c: 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 ) { 24b30: 9affffee bls 24af0 <== NOT EXECUTED */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 24b34: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 24b38: 0a00000a beq 24b68 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 24b3c: e1a01006 mov r1, r6 <== NOT EXECUTED 24b40: e1a0000a mov r0, sl <== NOT EXECUTED 24b44: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 24b48: ebfffdcb bl 2427c <== NOT EXECUTED assert( block_ptr ); 24b4c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24b50: 0a000046 beq 24c70 <== 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 ); 24b54: e5900000 ldr r0, [r0] <== NOT EXECUTED 24b58: e1a01007 mov r1, r7 <== NOT EXECUTED 24b5c: e1a02005 mov r2, r5 <== NOT EXECUTED 24b60: eb002a71 bl 2f52c <== NOT EXECUTED my_length = 0; copied += to_copy; 24b64: e0888005 add r8, r8, r5 <== NOT EXECUTED } IMFS_atime_mtime_update( the_jnode ); 24b68: e1a0000d mov r0, sp <== NOT EXECUTED 24b6c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 24b70: ebff7d20 bl 3ff8 <== NOT EXECUTED 24b74: e59d3000 ldr r3, [sp] <== NOT EXECUTED 24b78: e58a3040 str r3, [sl, #64] <== NOT EXECUTED 24b7c: e58a3044 str r3, [sl, #68] <== NOT EXECUTED return copied; } 24b80: e1a00008 mov r0, r8 <== NOT EXECUTED 24b84: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 24b88: 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 ); 24b8c: e1a01006 mov r1, r6 <== NOT EXECUTED 24b90: e1a0000a mov r0, sl <== NOT EXECUTED 24b94: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 24b98: ebfffdb7 bl 2427c <== NOT EXECUTED assert( block_ptr ); 24b9c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24ba0: 03a01fc6 moveq r1, #792 ; 0x318 <== NOT EXECUTED 24ba4: 0a000015 beq 24c00 <== 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 ); 24ba8: 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; 24bac: e0684004 rsb r4, r8, r4 <== NOT EXECUTED 24bb0: e154000b cmp r4, fp <== NOT EXECUTED 24bb4: 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 ); 24bb8: e0800008 add r0, r0, r8 <== NOT EXECUTED 24bbc: e1a01007 mov r1, r7 <== NOT EXECUTED 24bc0: e1a02004 mov r2, r4 <== NOT EXECUTED 24bc4: eb002a58 bl 2f52c <== NOT EXECUTED src += to_copy; 24bc8: e0877004 add r7, r7, r4 <== NOT EXECUTED block++; 24bcc: e2866001 add r6, r6, #1 ; 0x1 <== NOT EXECUTED my_length -= to_copy; 24bd0: e064500b rsb r5, r4, fp <== NOT EXECUTED copied += to_copy; 24bd4: e1a08004 mov r8, r4 <== NOT EXECUTED 24bd8: eaffffc1 b 24ae4 <== 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 ); 24bdc: ebffff27 bl 24880 <== NOT EXECUTED if ( status ) 24be0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24be4: 0affffb1 beq 24ab0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); 24be8: eb0020d7 bl 2cf4c <__errno> <== NOT EXECUTED 24bec: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 24bf0: e5803000 str r3, [r0] <== NOT EXECUTED 24bf4: e3e08000 mvn r8, #0 ; 0x0 <== NOT EXECUTED 24bf8: eaffffe0 b 24b80 <== 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 ); 24bfc: e3a01fcb mov r1, #812 ; 0x32c <== NOT EXECUTED 24c00: e2811002 add r1, r1, #2 ; 0x2 <== NOT EXECUTED 24c04: e59f007c ldr r0, [pc, #124] ; 24c88 <== NOT EXECUTED 24c08: e59f207c ldr r2, [pc, #124] ; 24c8c <== NOT EXECUTED 24c0c: e59f307c ldr r3, [pc, #124] ; 24c90 <== NOT EXECUTED 24c10: ebffe2ca bl 1d740 <__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 ); 24c14: eb0020cc bl 2cf4c <__errno> <== NOT EXECUTED 24c18: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 24c1c: e5803000 str r3, [r0] <== NOT EXECUTED 24c20: e3e08000 mvn r8, #0 ; 0x0 <== NOT EXECUTED 24c24: eaffffd5 b 24b80 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 24c28: e3a01fb9 mov r1, #740 ; 0x2e4 <== NOT EXECUTED 24c2c: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24c30: e59f0050 ldr r0, [pc, #80] ; 24c88 <== NOT EXECUTED 24c34: e59f2050 ldr r2, [pc, #80] ; 24c8c <== NOT EXECUTED 24c38: e59f3054 ldr r3, [pc, #84] ; 24c94 <== NOT EXECUTED 24c3c: ebffe2bf bl 1d740 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 24c40: e3a01e2e mov r1, #736 ; 0x2e0 <== NOT EXECUTED 24c44: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24c48: e59f0038 ldr r0, [pc, #56] ; 24c88 <== NOT EXECUTED 24c4c: e59f2038 ldr r2, [pc, #56] ; 24c8c <== NOT EXECUTED 24c50: e59f3040 ldr r3, [pc, #64] ; 24c98 <== NOT EXECUTED 24c54: ebffe2b9 bl 1d740 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 24c58: e3a01fbb mov r1, #748 ; 0x2ec <== NOT EXECUTED 24c5c: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24c60: e59f0020 ldr r0, [pc, #32] ; 24c88 <== NOT EXECUTED 24c64: e59f2020 ldr r2, [pc, #32] ; 24c8c <== NOT EXECUTED 24c68: e59f302c ldr r3, [pc, #44] ; 24c9c <== NOT EXECUTED 24c6c: ebffe2b3 bl 1d740 <__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 ); 24c70: e59f0010 ldr r0, [pc, #16] ; 24c88 <== NOT EXECUTED 24c74: e3a01fd1 mov r1, #836 ; 0x344 <== NOT EXECUTED 24c78: e59f200c ldr r2, [pc, #12] ; 24c8c <== NOT EXECUTED 24c7c: e59f300c ldr r3, [pc, #12] ; 24c90 <== NOT EXECUTED 24c80: ebffe2ae bl 1d740 <__assert_func> <== NOT EXECUTED 24c84: 000460bc .word 0x000460bc 24c88: 000441f4 .word 0x000441f4 24c8c: 00040bf0 .word 0x00040bf0 24c90: 00044284 .word 0x00044284 24c94: 0004424c .word 0x0004424c 24c98: 00044240 .word 0x00044240 24c9c: 0004427c .word 0x0004427c 00008ac8 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 8ac8: e92d40f0 push {r4, r5, r6, r7, lr} 8acc: 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 ); 8ad0: 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 */ ) { 8ad4: e1a05001 mov r5, r1 8ad8: 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 ); 8adc: e1a01007 mov r1, r7 8ae0: 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 */ ) { 8ae4: 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 ); 8ae8: ebffff76 bl 88c8 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 8aec: e2053a0f and r3, r5, #61440 ; 0xf000 8af0: e3530901 cmp r3, #16384 ; 0x4000 8af4: 0a000013 beq 8b48 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 8af8: e3530902 cmp r3, #32768 ; 0x8000 8afc: 03a01005 moveq r1, #5 ; 0x5 8b00: 0a000005 beq 8b1c type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 8b04: e3530a02 cmp r3, #8192 ; 0x2000 8b08: 13530a06 cmpne r3, #24576 ; 0x6000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 8b0c: 058d6028 streq r6, [sp, #40] 8b10: 058d402c streq r4, [sp, #44] 8b14: 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) ) { 8b18: 1a00000c bne 8b50 /* * Allocate and fill in an IMFS jnode */ new_node = IMFS_create_node( 8b1c: e28dc028 add ip, sp, #40 ; 0x28 8b20: e59d0050 ldr r0, [sp, #80] 8b24: e1a02007 mov r2, r7 8b28: e1a03005 mov r3, r5 8b2c: e58dc000 str ip, [sp] 8b30: eb0007d6 bl aa90 new_name, mode, &info ); if ( !new_node ) 8b34: e3500000 cmp r0, #0 ; 0x0 8b38: 13a00000 movne r0, #0 ; 0x0 8b3c: 0a000008 beq 8b64 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 8b40: e28dd03c add sp, sp, #60 ; 0x3c 8b44: 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 ); 8b48: e3a01001 mov r1, #1 ; 0x1 8b4c: eafffff2 b 8b1c 8b50: eb0009f6 bl b330 <__errno> <== NOT EXECUTED 8b54: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 8b58: e5803000 str r3, [r0] <== NOT EXECUTED 8b5c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8b60: eafffff6 b 8b40 <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 8b64: eb0009f1 bl b330 <__errno> <== NOT EXECUTED 8b68: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 8b6c: e5803000 str r3, [r0] <== NOT EXECUTED 8b70: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8b74: eafffff1 b 8b40 <== NOT EXECUTED 000037d4 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 37d4: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 37d8: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 37dc: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 37e0: 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 ) 37e4: 1a000002 bne 37f4 <== 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; 37e8: e582005c str r0, [r2, #92] <== NOT EXECUTED 37ec: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 37f0: 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 ); 37f4: eb00a5d4 bl 2cf4c <__errno> <== NOT EXECUTED 37f8: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 37fc: e5803000 str r3, [r0] <== NOT EXECUTED 3800: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3804: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00003814 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 3814: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *node; int i; node = loc->node_access; 3818: e5904000 ldr r4, [r0] <== NOT EXECUTED if ( node->type != IMFS_SYM_LINK ) 381c: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 3820: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 3824: 1a000013 bne 3878 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 3828: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 382c: 0a00000f beq 3870 <== NOT EXECUTED 3830: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 3834: e5d33000 ldrb r3, [r3] <== NOT EXECUTED 3838: 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 ); 383c: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 3840: 11a0c000 movne ip, r0 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 3844: 0a000009 beq 3870 <== NOT EXECUTED 3848: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 384c: e1520000 cmp r2, r0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; 3850: 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++ ) 3854: e1a0c000 mov ip, r0 <== NOT EXECUTED 3858: 98bd8010 popls {r4, pc} <== NOT EXECUTED 385c: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 3860: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED 3864: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3868: 1afffff6 bne 3848 <== NOT EXECUTED 386c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3870: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 3874: 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 ); 3878: eb00a5b3 bl 2cf4c <__errno> <== NOT EXECUTED 387c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3880: e5803000 str r3, [r0] <== NOT EXECUTED 3884: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3888: e8bd8010 pop {r4, pc} <== NOT EXECUTED 00008b84 : */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 8b84: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 8b88: e5904000 ldr r4, [r0] <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 8b8c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 8b90: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED */ int IMFS_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 8b94: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 8b98: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 8b9c: 0a000003 beq 8bb0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 8ba0: e1a00004 mov r0, r4 <== NOT EXECUTED 8ba4: eb00049f bl 9e28 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 8ba8: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 8bac: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 8bb0: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED 8bb4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 8bb8: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 8bbc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 8bc0: e1a0000d mov r0, sp <== NOT EXECUTED 8bc4: eb00014b bl 90f8 <== NOT EXECUTED 8bc8: 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) ) { 8bcc: 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 ); 8bd0: 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) ) { 8bd4: eb000175 bl 91b0 <== NOT EXECUTED 8bd8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 8bdc: 1a00000d bne 8c18 <== NOT EXECUTED 8be0: e1d413b4 ldrh r1, [r4, #52] <== NOT EXECUTED 8be4: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 8be8: 1a00000a bne 8c18 <== NOT EXECUTED /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 8bec: e59f3044 ldr r3, [pc, #68] ; 8c38 <== NOT EXECUTED 8bf0: e5930000 ldr r0, [r3] <== NOT EXECUTED 8bf4: e5952000 ldr r2, [r5] <== NOT EXECUTED 8bf8: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED 8bfc: e1530002 cmp r3, r2 <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 8c00: 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; 8c04: 05801004 streq r1, [r0, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 8c08: e3530004 cmp r3, #4 ; 0x4 <== NOT EXECUTED 8c0c: 0a000004 beq 8c24 <== NOT EXECUTED if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 8c10: e1a00004 mov r0, r4 <== NOT EXECUTED 8c14: eb0000d0 bl 8f5c <== NOT EXECUTED } return 0; } 8c18: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 8c1c: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 8c20: 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 ) 8c24: e5940050 ldr r0, [r4, #80] <== NOT EXECUTED 8c28: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 8c2c: 0afffff7 beq 8c10 <== NOT EXECUTED free( (void*) the_jnode->info.sym_link.name ); 8c30: eb0000c9 bl 8f5c <== NOT EXECUTED 8c34: eafffff5 b 8c10 <== NOT EXECUTED 8c38: 00014a18 .word 0x00014a18 00008c3c : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 8c3c: e5900000 ldr r0, [r0] switch ( the_jnode->type ) { 8c40: e590304c ldr r3, [r0, #76] 8c44: e2433002 sub r3, r3, #2 ; 0x2 int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 8c48: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 8c4c: e3530004 cmp r3, #4 ; 0x4 8c50: 979ff103 ldrls pc, [pc, r3, lsl #2] 8c54: ea000004 b 8c6c <== NOT EXECUTED 8c58: 00008cdc .word 0x00008cdc <== NOT EXECUTED 8c5c: 00008c6c .word 0x00008c6c <== NOT EXECUTED 8c60: 00008cd0 .word 0x00008cd0 <== NOT EXECUTED 8c64: 00008c80 .word 0x00008c80 <== NOT EXECUTED 8c68: 00008c80 .word 0x00008c80 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 8c6c: eb0009af bl b330 <__errno> <== NOT EXECUTED 8c70: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 8c74: e5803000 str r3, [r0] <== NOT EXECUTED 8c78: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 8c7c: 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; 8c80: e5903050 ldr r3, [r0, #80] <== NOT EXECUTED 8c84: 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; 8c88: e5903038 ldr r3, [r0, #56] 8c8c: e5813008 str r3, [r1, #8] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 8c90: e5902040 ldr r2, [r0, #64] 8c94: e5812024 str r2, [r1, #36] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 8c98: e1d0c3b4 ldrh ip, [r0, #52] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 8c9c: e5903044 ldr r3, [r0, #68] rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 8ca0: e1c1c1b0 strh ip, [r1, #16] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 8ca4: e581302c str r3, [r1, #44] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 8ca8: e5903030 ldr r3, [r0, #48] 8cac: e581300c str r3, [r1, #12] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 8cb0: e1d033bc ldrh r3, [r0, #60] 8cb4: e1c131b2 strh r3, [r1, #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; 8cb8: 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; 8cbc: e1d003be ldrh r0, [r0, #62] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 8cc0: e5812034 str r2, [r1, #52] buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 8cc4: e1c101b4 strh r0, [r1, #20] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 8cc8: e3a00000 mov r0, #0 ; 0x0 return 0; } 8ccc: 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; 8cd0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 8cd4: e5813020 str r3, [r1, #32] <== NOT EXECUTED 8cd8: eaffffea b 8c88 <== 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 ); 8cdc: e2802050 add r2, r0, #80 ; 0x50 8ce0: e892000c ldm r2, {r2, r3} 8ce4: e881000c stm r1, {r2, r3} 8ce8: eaffffe6 b 8c88 0000388c : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 388c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 3890: 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 ); 3894: 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 ) { 3898: e1a04001 mov r4, r1 <== NOT EXECUTED 389c: e1a05000 mov r5, r0 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, new_name, &i ); 38a0: e1a01006 mov r1, r6 <== NOT EXECUTED 38a4: e1a00002 mov r0, r2 <== NOT EXECUTED 38a8: e28d2038 add r2, sp, #56 ; 0x38 <== NOT EXECUTED 38ac: ebfffee7 bl 3450 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 38b0: e1a00004 mov r0, r4 <== NOT EXECUTED 38b4: eb00ba7b bl 322a8 <== NOT EXECUTED if (info.sym_link.name == NULL) { 38b8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup( link_name); 38bc: e58d0028 str r0, [sp, #40] <== NOT EXECUTED if (info.sym_link.name == NULL) { 38c0: 0a00000e beq 3900 <== NOT EXECUTED /* * Create a new link node. */ new_node = IMFS_create_node( 38c4: e3a03ca2 mov r3, #41472 ; 0xa200 <== NOT EXECUTED 38c8: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED 38cc: e1a00005 mov r0, r5 <== NOT EXECUTED 38d0: e1a02006 mov r2, r6 <== NOT EXECUTED 38d4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 38d8: e3a01004 mov r1, #4 ; 0x4 <== NOT EXECUTED 38dc: e58dc000 str ip, [sp] <== NOT EXECUTED 38e0: eb00648b bl 1cb14 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 38e4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 38e8: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 38ec: 0a000001 beq 38f8 <== NOT EXECUTED free( info.sym_link.name); rtems_set_errno_and_return_minus_one( ENOMEM); } return 0; } 38f0: e28dd03c add sp, sp, #60 ; 0x3c <== NOT EXECUTED 38f4: 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); 38f8: e59d0028 ldr r0, [sp, #40] <== NOT EXECUTED 38fc: eb000195 bl 3f58 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM); 3900: eb00a591 bl 2cf4c <__errno> <== NOT EXECUTED 3904: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 3908: e5803000 str r3, [r0] <== NOT EXECUTED 390c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3910: eafffff6 b 38f0 <== NOT EXECUTED 00003914 : #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 3914: 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; 3918: e5905000 ldr r5, [r0] <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 391c: e595304c ldr r3, [r5, #76] <== NOT EXECUTED 3920: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED #include int IMFS_unlink( rtems_filesystem_location_info_t *loc /* IN */ ) { 3924: e24dd018 sub sp, sp, #24 ; 0x18 <== NOT EXECUTED 3928: 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 ) { 392c: 1a000014 bne 3984 <== NOT EXECUTED if ( !node->info.hard_link.link_node ) 3930: e595c050 ldr ip, [r5, #80] <== NOT EXECUTED 3934: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 3938: 0a000017 beq 399c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 393c: e890000f ldm r0, {r0, r1, r2, r3} <== NOT EXECUTED 3940: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 3944: 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; 3948: e58dc000 str ip, [sp] <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 394c: eb0064d2 bl 1cc9c <== 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) 3950: e5952050 ldr r2, [r5, #80] <== NOT EXECUTED 3954: e1d233b4 ldrh r3, [r2, #52] <== NOT EXECUTED 3958: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 395c: 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) 3960: 0a000012 beq 39b0 <== NOT EXECUTED if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 3964: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3968: e1c233b4 strh r3, [r2, #52] <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 396c: e28d0010 add r0, sp, #16 ; 0x10 <== NOT EXECUTED 3970: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3974: eb00019f bl 3ff8 <== NOT EXECUTED 3978: e5952050 ldr r2, [r5, #80] <== NOT EXECUTED 397c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 3980: e5823048 str r3, [r2, #72] <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( loc ); 3984: e1a00004 mov r0, r4 <== NOT EXECUTED 3988: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 398c: e1a0e00f mov lr, pc <== NOT EXECUTED 3990: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED return result; } 3994: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED 3998: 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 ); 399c: eb00a56a bl 2cf4c <__errno> <== NOT EXECUTED 39a0: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 39a4: e5803000 str r3, [r0] <== NOT EXECUTED 39a8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 39ac: eafffff8 b 3994 <== 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 ); 39b0: e1a0000d mov r0, sp <== NOT EXECUTED 39b4: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 39b8: e1a0e00f mov lr, pc <== NOT EXECUTED 39bc: e593f034 ldr pc, [r3, #52] <== NOT EXECUTED if ( result != 0 ) 39c0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 39c4: 13e00000 mvnne r0, #0 ; 0x0 <== NOT EXECUTED 39c8: 0affffed beq 3984 <== NOT EXECUTED 39cc: eafffff0 b 3994 <== NOT EXECUTED 000039d0 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 39d0: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 39d4: e592304c ldr r3, [r2, #76] <== NOT EXECUTED 39d8: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 39dc: 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 ) 39e0: 1a000006 bne 3a00 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 39e4: e592305c ldr r3, [r2, #92] <== NOT EXECUTED 39e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 39ec: 0a000008 beq 3a14 <== 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; 39f0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 39f4: e582305c str r3, [r2, #92] <== NOT EXECUTED 39f8: e1a00003 mov r0, r3 <== NOT EXECUTED return 0; } 39fc: 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 ); 3a00: eb00a551 bl 2cf4c <__errno> <== NOT EXECUTED 3a04: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 3a08: e5803000 str r3, [r0] <== NOT EXECUTED 3a0c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3a10: 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 */ 3a14: eb00a54c bl 2cf4c <__errno> <== NOT EXECUTED 3a18: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 3a1c: e5803000 str r3, [r0] <== NOT EXECUTED 3a20: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 3a24: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00003a28 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 3a28: e5903000 ldr r3, [r0] <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } 3a2c: 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; 3a30: 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; 3a34: e5831040 str r1, [r3, #64] <== NOT EXECUTED the_jnode->stat_mtime = modtime; return 0; } 3a38: e12fff1e bx lr <== NOT EXECUTED 000015bc : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) 15bc: e59f30a4 ldr r3, [pc, #164] ; 1668 15c0: e5933000 ldr r3, [r3] 15c4: e3530000 cmp r3, #0 ; 0x0 void RTEMS_Malloc_Initialize( void *start, size_t length, size_t sbrk_amount ) { 15c8: e92d4070 push {r4, r5, r6, lr} 15cc: e1a06000 mov r6, r0 15d0: e1a05001 mov r5, r1 15d4: e1a04002 mov r4, r2 /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->initialize)(); 15d8: 11a0e00f movne lr, pc 15dc: 1593f000 ldrne pc, [r3] /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 15e0: eb001faf bl 94a4 starting_address = start; /* * Initialize the optional sbrk support for extending the heap */ if (rtems_malloc_sbrk_helpers) { 15e4: e59f3080 ldr r3, [pc, #128] ; 166c 15e8: e5933000 ldr r3, [r3] 15ec: e3530000 cmp r3, #0 ; 0x0 15f0: 01a04006 moveq r4, r6 15f4: 0a000004 beq 160c starting_address = (*rtems_malloc_sbrk_helpers->initialize)( 15f8: e1a01004 mov r1, r4 <== NOT EXECUTED 15fc: e1a00006 mov r0, r6 <== NOT EXECUTED 1600: e1a0e00f mov lr, pc <== NOT EXECUTED 1604: e593f000 ldr pc, [r3] <== NOT EXECUTED 1608: 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() ) 160c: e59f305c ldr r3, [pc, #92] ; 1670 1610: e5932000 ldr r2, [r3] 1614: e5d21028 ldrb r1, [r2, #40] 1618: e3510000 cmp r1, #0 ; 0x0 161c: 1a00000b bne 1650 void *starting_address, size_t size, uint32_t page_size ) { return _Heap_Initialize( the_heap, starting_address, size, page_size ); 1620: e1a01004 mov r1, r4 1624: e59f0048 ldr r0, [pc, #72] ; 1674 1628: e1a02005 mov r2, r5 162c: e3a03004 mov r3, #4 ; 0x4 1630: eb00104b bl 5764 <_Heap_Initialize> &RTEMS_Malloc_Heap, starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) 1634: e3500000 cmp r0, #0 ; 0x0 1638: 0a000009 beq 1664 rtems_print_buffer( (start + length) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif MSBUMP(space_available, length); 163c: e59f2034 ldr r2, [pc, #52] ; 1678 1640: e5923000 ldr r3, [r2] 1644: e0853003 add r3, r5, r3 1648: e5823000 str r3, [r2] } 164c: 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 ); 1650: e1a00004 mov r0, r4 <== NOT EXECUTED 1654: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1658: e1a02005 mov r2, r5 <== NOT EXECUTED 165c: eb00293c bl bb54 <== NOT EXECUTED 1660: eaffffee b 1620 <== NOT EXECUTED starting_address, length, CPU_HEAP_ALIGNMENT ); if ( !status ) rtems_fatal_error_occurred( status ); 1664: eb000e16 bl 4ec4 <== NOT EXECUTED 1668: 00015d44 .word 0x00015d44 166c: 00015d48 .word 0x00015d48 1670: 000160dc .word 0x000160dc 1674: 00015ee4 .word 0x00015ee4 1678: 00015f3c .word 0x00015f3c 00002910 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 2910: 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 ) 2914: 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 ) { 2918: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 291c: 0a000036 beq 29fc <== NOT EXECUTED return; if ( !print_handler ) 2920: e59f312c ldr r3, [pc, #300] ; 2a54 <== NOT EXECUTED 2924: e593a000 ldr sl, [r3] <== NOT EXECUTED 2928: e35a0000 cmp sl, #0 ; 0x0 <== NOT EXECUTED 292c: 0a000032 beq 29fc <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 2930: 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 ); 2934: 159490f4 ldrne r9, [r4, #244] <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 2938: 128470c4 addne r7, r4, #196 ; 0xc4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 293c: 0a000035 beq 2a18 <== 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); 2940: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 2944: e2835010 add r5, r3, #16 ; 0x10 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 2948: e2428010 sub r8, r2, #16 ; 0x10 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 294c: e1a00005 mov r0, r5 <== NOT EXECUTED 2950: e1a01008 mov r1, r8 <== NOT EXECUTED 2954: ebffffd8 bl 28bc <== NOT EXECUTED if ( high_water_mark ) 2958: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 295c: 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 ) 2960: 01a0b000 moveq fp, r0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 2964: 1060b003 rsbne fp, r0, r3 <== NOT EXECUTED else used = 0; if ( the_thread ) { 2968: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 296c: 0a000031 beq 2a38 <== NOT EXECUTED (*print_handler)( 2970: e5945008 ldr r5, [r4, #8] <== NOT EXECUTED 2974: e59f60dc ldr r6, [pc, #220] ; 2a58 <== NOT EXECUTED 2978: e28d200b add r2, sp, #11 ; 0xb <== NOT EXECUTED 297c: e3a01005 mov r1, #5 ; 0x5 <== NOT EXECUTED 2980: e1a00005 mov r0, r5 <== NOT EXECUTED 2984: e5964000 ldr r4, [r6] <== NOT EXECUTED 2988: eb0014a5 bl 7c24 <== NOT EXECUTED 298c: e1a02005 mov r2, r5 <== NOT EXECUTED 2990: e1a03000 mov r3, r0 <== NOT EXECUTED 2994: e59f10c0 ldr r1, [pc, #192] ; 2a5c <== NOT EXECUTED 2998: e1a00004 mov r0, r4 <== NOT EXECUTED 299c: e1a0e00f mov lr, pc <== NOT EXECUTED 29a0: e12fff1a bx sl <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 29a4: e5973000 ldr r3, [r7] <== NOT EXECUTED 29a8: e5972004 ldr r2, [r7, #4] <== NOT EXECUTED 29ac: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 29b0: e0823003 add r3, r2, r3 <== NOT EXECUTED 29b4: e5960000 ldr r0, [r6] <== NOT EXECUTED 29b8: e58d9000 str r9, [sp] <== NOT EXECUTED 29bc: e58d8004 str r8, [sp, #4] <== NOT EXECUTED 29c0: e59f1098 ldr r1, [pc, #152] ; 2a60 <== NOT EXECUTED 29c4: e59fc088 ldr ip, [pc, #136] ; 2a54 <== NOT EXECUTED 29c8: e1a0e00f mov lr, pc <== NOT EXECUTED 29cc: e59cf000 ldr pc, [ip] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 29d0: e59f308c ldr r3, [pc, #140] ; 2a64 <== NOT EXECUTED 29d4: e5932000 ldr r2, [r3] <== NOT EXECUTED 29d8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 29dc: e59f3070 ldr r3, [pc, #112] ; 2a54 <== NOT EXECUTED 29e0: e59f0070 ldr r0, [pc, #112] ; 2a58 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 29e4: 0a000006 beq 2a04 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 29e8: e5900000 ldr r0, [r0] <== NOT EXECUTED 29ec: e1a0200b mov r2, fp <== NOT EXECUTED 29f0: e59f1070 ldr r1, [pc, #112] ; 2a68 <== NOT EXECUTED 29f4: e1a0e00f mov lr, pc <== NOT EXECUTED 29f8: e593f000 ldr pc, [r3] <== NOT EXECUTED } } 29fc: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 2a00: 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" ); 2a04: e59f1060 ldr r1, [pc, #96] ; 2a6c <== NOT EXECUTED 2a08: e5900000 ldr r0, [r0] <== NOT EXECUTED 2a0c: e1a0e00f mov lr, pc <== NOT EXECUTED 2a10: e593f000 ldr pc, [r3] <== NOT EXECUTED 2a14: eafffff8 b 29fc <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 2a18: e59f2050 ldr r2, [pc, #80] ; 2a70 <== NOT EXECUTED 2a1c: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED 2a20: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED stack = &Stack_check_Interrupt_stack; the_thread = 0; current = 0; } else return; 2a24: 12844001 addne r4, r4, #1 ; 0x1 <== NOT EXECUTED 2a28: 11a07002 movne r7, r2 <== NOT EXECUTED 2a2c: 11a09004 movne r9, r4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 2a30: 1affffc2 bne 2940 <== NOT EXECUTED 2a34: eafffff0 b 29fc <== 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 ); 2a38: e59f6018 ldr r6, [pc, #24] ; 2a58 <== NOT EXECUTED 2a3c: e59f1030 ldr r1, [pc, #48] ; 2a74 <== NOT EXECUTED 2a40: e5960000 ldr r0, [r6] <== NOT EXECUTED 2a44: e3e02000 mvn r2, #0 ; 0x0 <== NOT EXECUTED 2a48: e1a0e00f mov lr, pc <== NOT EXECUTED 2a4c: e12fff1a bx sl <== NOT EXECUTED 2a50: eaffffd3 b 29a4 <== NOT EXECUTED 2a54: 000460b8 .word 0x000460b8 2a58: 000460b4 .word 0x000460b4 2a5c: 00041d58 .word 0x00041d58 2a60: 00041d78 .word 0x00041d78 2a64: 000460b0 .word 0x000460b0 2a68: 00041da8 .word 0x00041da8 2a6c: 00041d98 .word 0x00041d98 2a70: 0005910c .word 0x0005910c 2a74: 00041d68 .word 0x00041d68 000028bc : */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 28bc: e1a0c000 mov ip, 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++) 28c0: 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; 28c4: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 28c8: e0802001 add r2, r0, r1 <== NOT EXECUTED 28cc: e1500002 cmp r0, r2 <== NOT EXECUTED 28d0: 2a00000c bcs 2908 <== NOT EXECUTED if (*base != U32_PATTERN) 28d4: e3a03ca6 mov r3, #42496 ; 0xa600 <== NOT EXECUTED 28d8: e243305b sub r3, r3, #91 ; 0x5b <== NOT EXECUTED 28dc: e59c1010 ldr r1, [ip, #16] <== NOT EXECUTED 28e0: e1833803 orr r3, r3, r3, lsl #16 <== NOT EXECUTED 28e4: e1510003 cmp r1, r3 <== NOT EXECUTED 28e8: 0a000003 beq 28fc <== NOT EXECUTED 28ec: e12fff1e bx lr <== NOT EXECUTED 28f0: e5903000 ldr r3, [r0] <== NOT EXECUTED 28f4: e1530001 cmp r3, r1 <== NOT EXECUTED 28f8: 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++) 28fc: e2800004 add r0, r0, #4 ; 0x4 <== NOT EXECUTED 2900: e1520000 cmp r2, r0 <== NOT EXECUTED 2904: 8afffff9 bhi 28f0 <== NOT EXECUTED 2908: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 290c: e12fff1e bx lr <== NOT EXECUTED 00013634 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 13634: e590304c ldr r3, [r0, #76] 13638: 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 ) { 1363c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 13640: e1a07000 mov r7, r0 13644: e1a06002 mov r6, r2 13648: e1a08001 mov r8, r1 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 1364c: 33a00001 movcc r0, #1 ; 0x1 13650: 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 ) { 13654: e5973048 ldr r3, [r7, #72] 13658: 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))) { 1365c: 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 ) { 13660: 0a000009 beq 1368c <_CORE_message_queue_Broadcast+0x58> *count = 0; 13664: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 13668: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1366c: e5823000 str r3, [r2] <== NOT EXECUTED 13670: e1a00003 mov r0, r3 <== NOT EXECUTED 13674: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 13678: e594002c ldr r0, [r4, #44] 1367c: eb001e03 bl 1ae90 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 13680: e5943028 ldr r3, [r4, #40] 13684: e5836000 str r6, [r3] */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; 13688: e2855001 add r5, r5, #1 ; 0x1 * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { 1368c: e1a00007 mov r0, r7 13690: eb00099d bl 15d0c <_Thread_queue_Dequeue> 13694: e2504000 subs r4, r0, #0 ; 0x0 13698: e1a01008 mov r1, r8 1369c: e1a02006 mov r2, r6 136a0: 1afffff4 bne 13678 <_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; 136a4: e59d301c ldr r3, [sp, #28] 136a8: e1a00004 mov r0, r4 136ac: e5835000 str r5, [r3] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 136b0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 00014d94 <_CORE_message_queue_Insert_message>: ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 14d94: 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 ) { 14d98: e92d4030 push {r4, r5, lr} ISR_Level level; bool notify = false; the_message->priority = submit_type; 14d9c: 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 ) { 14da0: e1a05001 mov r5, r1 14da4: e1a04000 mov r4, r0 ISR_Level level; bool notify = false; the_message->priority = submit_type; switch ( submit_type ) { 14da8: 0a000037 beq 14e8c <_CORE_message_queue_Insert_message+0xf8> 14dac: e3720106 cmn r2, #-2147483647 ; 0x80000001 14db0: 0a000023 beq 14e44 <_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; 14db4: 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; 14db8: e2800054 add r0, r0, #84 ; 0x54 <== NOT EXECUTED while ( !_Chain_Is_tail( the_header, the_node ) ) { 14dbc: e1500001 cmp r0, r1 <== NOT EXECUTED 14dc0: 1a00001b bne 14e34 <_CORE_message_queue_Insert_message+0xa0> <== NOT EXECUTED 14dc4: e1a01000 mov r1, r0 <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 14dc8: e10fc000 mrs ip, CPSR <== NOT EXECUTED 14dcc: e38c30c0 orr r3, ip, #192 ; 0xc0 <== NOT EXECUTED 14dd0: 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 ); 14dd4: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 14dd8: e5941048 ldr r1, [r4, #72] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 14ddc: e5930000 ldr r0, [r3] <== NOT EXECUTED 14de0: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED after_node->next = the_node; 14de4: e5835000 str r5, [r3] <== NOT EXECUTED 14de8: e5842048 str r2, [r4, #72] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 14dec: e5853004 str r3, [r5, #4] <== NOT EXECUTED 14df0: e2712001 rsbs r2, r1, #1 ; 0x1 <== NOT EXECUTED 14df4: 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; 14df8: 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; 14dfc: e5850000 str r0, [r5] <== NOT EXECUTED notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 14e00: 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 ) 14e04: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 14e08: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED 14e0c: e5943060 ldr r3, [r4, #96] 14e10: e3530000 cmp r3, #0 ; 0x0 14e14: 08bd8030 popeq {r4, r5, pc} (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 14e18: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 14e1c: e1a0e00f mov lr, pc <== NOT EXECUTED 14e20: e12fff13 bx r3 <== NOT EXECUTED 14e24: 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; 14e28: 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 ) ) { 14e2c: e1500001 cmp r0, r1 <== NOT EXECUTED 14e30: 0affffe3 beq 14dc4 <_CORE_message_queue_Insert_message+0x30> <== NOT EXECUTED this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { 14e34: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 14e38: e1520003 cmp r2, r3 <== NOT EXECUTED 14e3c: aafffff9 bge 14e28 <_CORE_message_queue_Insert_message+0x94> <== NOT EXECUTED 14e40: eaffffe0 b 14dc8 <_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 ); 14e44: e10f0000 mrs r0, CPSR 14e48: e38030c0 orr r3, r0, #192 ; 0xc0 14e4c: e129f003 msr CPSR_fc, r3 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 14e50: e2843054 add r3, r4, #84 ; 0x54 14e54: e5813000 str r3, [r1] if ( the_message_queue->number_of_pending_messages++ == 0 ) 14e58: e5942048 ldr r2, [r4, #72] old_last_node = the_chain->last; 14e5c: e5941058 ldr r1, [r4, #88] 14e60: e2823001 add r3, r2, #1 ; 0x1 the_chain->last = the_node; 14e64: e5845058 str r5, [r4, #88] 14e68: e5843048 str r3, [r4, #72] 14e6c: e2722001 rsbs r2, r2, #1 ; 0x1 14e70: 33a02000 movcc r2, #0 ; 0x0 old_last_node->next = the_node; the_node->previous = old_last_node; 14e74: 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; 14e78: e5815000 str r5, [r1] notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 14e7c: 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 ) 14e80: e3520000 cmp r2, #0 ; 0x0 14e84: 1affffe0 bne 14e0c <_CORE_message_queue_Insert_message+0x78> 14e88: 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 ); 14e8c: e10fc000 mrs ip, CPSR 14e90: e38c30c0 orr r3, ip, #192 ; 0xc0 14e94: e129f003 msr CPSR_fc, r3 if ( the_message_queue->number_of_pending_messages++ == 0 ) 14e98: e5901048 ldr r1, [r0, #72] ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 14e9c: e5900050 ldr r0, [r0, #80] 14ea0: e2812001 add r2, r1, #1 ; 0x1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 14ea4: e2843050 add r3, r4, #80 ; 0x50 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 14ea8: e5853004 str r3, [r5, #4] 14eac: e5842048 str r2, [r4, #72] before_node = after_node->next; after_node->next = the_node; 14eb0: e5845050 str r5, [r4, #80] the_node->next = before_node; before_node->previous = the_node; 14eb4: e5805004 str r5, [r0, #4] 14eb8: e2712001 rsbs r2, r1, #1 ; 0x1 14ebc: 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; 14ec0: e5850000 str r0, [r5] notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 14ec4: 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 ) 14ec8: e3520000 cmp r2, #0 ; 0x0 14ecc: 1affffce bne 14e0c <_CORE_message_queue_Insert_message+0x78> 14ed0: e8bd8030 pop {r4, r5, pc} 00011e1c <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 11e1c: 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; 11e20: e59f8118 ldr r8, [pc, #280] ; 11f40 <_CORE_message_queue_Seize+0x124> 11e24: e598c000 ldr ip, [r8] void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 11e28: e1a05000 mov r5, r0 11e2c: 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; 11e30: e3a03000 mov r3, #0 ; 0x0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 11e34: e1a07002 mov r7, r2 11e38: e59da020 ldr sl, [sp, #32] 11e3c: 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; 11e40: e58c3034 str r3, [ip, #52] _ISR_Disable( level ); 11e44: e10f6000 mrs r6, CPSR 11e48: e38630c0 orr r3, r6, #192 ; 0xc0 11e4c: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 11e50: e5954050 ldr r4, [r5, #80] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 11e54: e2853054 add r3, r5, #84 ; 0x54 11e58: e1540003 cmp r4, r3 11e5c: 0a000021 beq 11ee8 <_CORE_message_queue_Seize+0xcc> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 11e60: e5941000 ldr r1, [r4] the_chain->first = new_first; 11e64: e1a03005 mov r3, r5 the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; 11e68: e5952048 ldr r2, [r5, #72] 11e6c: e5a31050 str r1, [r3, #80]! 11e70: e2422001 sub r2, r2, #1 ; 0x1 new_first->previous = _Chain_Head(the_chain); 11e74: e5813004 str r3, [r1, #4] 11e78: e5852048 str r2, [r5, #72] _ISR_Enable( level ); 11e7c: e129f006 msr CPSR_fc, r6 *size_p = the_message->Contents.size; 11e80: e594300c ldr r3, [r4, #12] _Thread_Executing->Wait.count = the_message->priority; 11e84: e5981000 ldr r1, [r8] 11e88: 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; 11e8c: e5803000 str r3, [r0] _Thread_Executing->Wait.count = the_message->priority; 11e90: e5812024 str r2, [r1, #36] _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size_p); 11e94: e2846010 add r6, r4, #16 ; 0x10 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 11e98: e5902000 ldr r2, [r0] 11e9c: e1a01006 mov r1, r6 11ea0: e1a00007 mov r0, r7 11ea4: eb001373 bl 16c78 * * 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 ); 11ea8: e1a00005 mov r0, r5 11eac: ebffeacd bl c9e8 <_Thread_queue_Dequeue> if ( !the_thread ) { 11eb0: e2501000 subs r1, r0, #0 ; 0x0 11eb4: 0a00001d beq 11f30 <_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; 11eb8: e5913024 ldr r3, [r1, #36] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 11ebc: 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; 11ec0: e5843008 str r3, [r4, #8] <== NOT EXECUTED the_message->Contents.size = (size_t) the_thread->Wait.option; 11ec4: e584200c str r2, [r4, #12] <== NOT EXECUTED 11ec8: e1a00006 mov r0, r6 <== NOT EXECUTED 11ecc: e591102c ldr r1, [r1, #44] <== NOT EXECUTED 11ed0: eb001368 bl 16c78 <== NOT EXECUTED the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 11ed4: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED 11ed8: e1a00005 mov r0, r5 <== NOT EXECUTED 11edc: 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 ); } 11ee0: 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( 11ee4: ea000baa b 14d94 <_CORE_message_queue_Insert_message> <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { 11ee8: e3520000 cmp r2, #0 ; 0x0 11eec: 1a000003 bne 11f00 <_CORE_message_queue_Seize+0xe4> _ISR_Enable( level ); 11ef0: e129f006 msr CPSR_fc, r6 executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 11ef4: e3a03004 mov r3, #4 ; 0x4 11ef8: 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 ); } 11efc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 11f00: e3a03001 mov r3, #1 ; 0x1 11f04: 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; 11f08: 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; 11f0c: e58c1020 str r1, [ip, #32] executing->Wait.return_argument_second.mutable_object = buffer; 11f10: 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; 11f14: 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 ); 11f18: e129f006 msr CPSR_fc, r6 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 11f1c: e59f2020 ldr r2, [pc, #32] ; 11f44 <_CORE_message_queue_Seize+0x128> 11f20: e1a00005 mov r0, r5 11f24: e1a0100a mov r1, sl } 11f28: 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 ); 11f2c: eaffeb0f b cb70 <_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 ); 11f30: e2850068 add r0, r5, #104 ; 0x68 11f34: e1a01004 mov r1, r4 } 11f38: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} 11f3c: eaffe3ff b af40 <_Chain_Append> 11f40: 00025e84 .word 0x00025e84 11f44: 0000cfa4 .word 0x0000cfa4 00011f48 <_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 ) { 11f48: 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 ) { 11f4c: e590c04c ldr ip, [r0, #76] 11f50: 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 ) { 11f54: e1a04000 mov r4, r0 11f58: e1a07002 mov r7, r2 11f5c: e1a0a001 mov sl, r1 11f60: e1a09003 mov r9, r3 11f64: 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 ) { 11f68: 33a00001 movcc r0, #1 ; 0x1 11f6c: 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 ) { 11f70: e5945048 ldr r5, [r4, #72] 11f74: e3550000 cmp r5, #0 ; 0x0 11f78: 0a00001d beq 11ff4 <_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 < 11f7c: e5943044 ldr r3, [r4, #68] 11f80: e1530005 cmp r3, r5 11f84: 8a00002a bhi 12034 <_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 ) { 11f88: e3580000 cmp r8, #0 ; 0x0 11f8c: 03a00002 moveq r0, #2 ; 0x2 11f90: 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() ) { 11f94: e59f30dc ldr r3, [pc, #220] ; 12078 <_CORE_message_queue_Submit+0x130> <== NOT EXECUTED 11f98: e5932000 ldr r2, [r3] <== NOT EXECUTED 11f9c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 11fa0: 1a000021 bne 1202c <_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; 11fa4: e59f30d0 ldr r3, [pc, #208] ; 1207c <_CORE_message_queue_Submit+0x134> <== NOT EXECUTED 11fa8: e5932000 ldr r2, [r3] <== NOT EXECUTED _ISR_Disable( level ); 11fac: e10f1000 mrs r1, CPSR <== NOT EXECUTED 11fb0: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 11fb4: 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; 11fb8: e59d3024 ldr r3, [sp, #36] <== NOT EXECUTED 11fbc: e5823024 str r3, [r2, #36] <== NOT EXECUTED 11fc0: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 11fc4: e5843030 str r3, [r4, #48] <== NOT EXECUTED Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; 11fc8: e5829020 str r9, [r2, #32] <== NOT EXECUTED executing->Wait.return_argument_second.immutable_object = buffer; 11fcc: e582a02c str sl, [r2, #44] <== NOT EXECUTED executing->Wait.option = (uint32_t) size; 11fd0: e5827030 str r7, [r2, #48] <== NOT EXECUTED { Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; 11fd4: e5824044 str r4, [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 ); 11fd8: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 11fdc: e59f209c ldr r2, [pc, #156] ; 12080 <_CORE_message_queue_Submit+0x138> <== NOT EXECUTED 11fe0: e1a00004 mov r0, r4 <== NOT EXECUTED 11fe4: e59d102c ldr r1, [sp, #44] <== NOT EXECUTED 11fe8: ebffeae0 bl cb70 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 11fec: e3a00007 mov r0, #7 ; 0x7 <== NOT EXECUTED 11ff0: 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 ); 11ff4: ebffea7b bl c9e8 <_Thread_queue_Dequeue> if ( the_thread ) { 11ff8: e2506000 subs r6, r0, #0 ; 0x0 11ffc: 05945048 ldreq r5, [r4, #72] 12000: 0affffdd beq 11f7c <_CORE_message_queue_Submit+0x34> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 12004: e1a0100a mov r1, sl 12008: e596002c ldr r0, [r6, #44] 1200c: e1a02007 mov r2, r7 12010: eb001318 bl 16c78 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 12014: e5963028 ldr r3, [r6, #40] 12018: e5837000 str r7, [r3] the_thread->Wait.count = submit_type; 1201c: e59d3024 ldr r3, [sp, #36] 12020: e1a00005 mov r0, r5 12024: e5863024 str r3, [r6, #36] 12028: 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; 1202c: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED } 12030: 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 *) 12034: e2840068 add r0, r4, #104 ; 0x68 12038: ebffe3cb bl af6c <_Chain_Get> /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { 1203c: e2505000 subs r5, r0, #0 ; 0x0 12040: 0afffff9 beq 1202c <_CORE_message_queue_Submit+0xe4> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 12044: e1a0100a mov r1, sl 12048: e1a02007 mov r2, r7 1204c: e2850010 add r0, r5, #16 ; 0x10 12050: eb001308 bl 16c78 buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; the_message->priority = submit_type; 12054: e59d3024 ldr r3, [sp, #36] 12058: e5853008 str r3, [r5, #8] _CORE_message_queue_Insert_message( 1205c: e1a00004 mov r0, r4 _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 12060: e585700c str r7, [r5, #12] the_message->priority = submit_type; _CORE_message_queue_Insert_message( 12064: e1a01005 mov r1, r5 12068: e59d2024 ldr r2, [sp, #36] 1206c: eb000b48 bl 14d94 <_CORE_message_queue_Insert_message> 12070: e3a00000 mov r0, #0 ; 0x0 12074: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 12078: 00025e60 .word 0x00025e60 1207c: 00025e84 .word 0x00025e84 12080: 0000cfa4 .word 0x0000cfa4 0000524c <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 524c: e92d40f0 push {r4, r5, r6, r7, lr} 5250: e1a05000 mov r5, r0 5254: e1a04002 mov r4, r2 5258: e1a07001 mov r7, r1 /* 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; 525c: e891000f ldm r1, {r0, r1, r2, r3} the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; 5260: e3a06000 mov r6, #0 ; 0x0 if ( initial_lock == CORE_MUTEX_LOCKED ) { 5264: e3540000 cmp r4, #0 ; 0x0 /* 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; 5268: e285c040 add ip, r5, #64 ; 0x40 526c: e88c000f stm ip, {r0, r1, r2, r3} the_mutex->lock = initial_lock; 5270: e5854050 str r4, [r5, #80] the_mutex->blocked_count = 0; 5274: e5856058 str r6, [r5, #88] _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; 5278: 15856060 strne r6, [r5, #96] #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; 527c: 15856054 strne r6, [r5, #84] the_mutex->holder = NULL; 5280: 1585605c strne r6, [r5, #92] the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { 5284: 1a00000b bne 52b8 <_CORE_mutex_Initialize+0x6c> the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; 5288: e59f2070 ldr r2, [pc, #112] ; 5300 <_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; 528c: e3a03001 mov r3, #1 ; 0x1 the_mutex->holder = _Thread_Executing; 5290: e5921000 ldr r1, [r2] 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; 5294: e5853054 str r3, [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; 5298: e5952048 ldr r2, [r5, #72] the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; 529c: e5913008 ldr r3, [r1, #8] if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 52a0: 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; 52a4: 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; 52a8: e585105c str r1, [r5, #92] the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 52ac: 0a00000a beq 52dc <_CORE_mutex_Initialize+0x90> 52b0: e3520003 cmp r2, #3 ; 0x3 52b4: 0a000008 beq 52dc <_CORE_mutex_Initialize+0x90> the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 52b8: e5971008 ldr r1, [r7, #8] 52bc: e1a00005 mov r0, r5 52c0: e2511000 subs r1, r1, #0 ; 0x0 52c4: 13a01001 movne r1, #1 ; 0x1 52c8: e3a02b01 mov r2, #1024 ; 0x400 52cc: e3a03005 mov r3, #5 ; 0x5 52d0: eb000768 bl 7078 <_Thread_queue_Initialize> 52d4: e3a00000 mov r0, #0 ; 0x0 STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 52d8: 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 < 52dc: e595304c ldr r3, [r5, #76] 52e0: e5912014 ldr r2, [r1, #20] 52e4: 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++; 52e8: 2591301c ldrcs r3, [r1, #28] 52ec: 22833001 addcs r3, r3, #1 ; 0x1 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 < 52f0: 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++; 52f4: 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 < 52f8: 2affffee bcs 52b8 <_CORE_mutex_Initialize+0x6c> 52fc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 5300: 00016104 .word 0x00016104 00009edc <_CORE_mutex_Seize_interrupt_trylock>: Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 9edc: e59f313c ldr r3, [pc, #316] ; a020 <_CORE_mutex_Seize_interrupt_trylock+0x144> 9ee0: e593c000 ldr ip, [r3] executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 9ee4: e3a02000 mov r2, #0 ; 0x0 #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 9ee8: e92d4010 push {r4, lr} CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 9eec: e5914000 ldr r4, [r1] /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 9ef0: e58c2034 str r2, [ip, #52] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 9ef4: e5903050 ldr r3, [r0, #80] 9ef8: e1530002 cmp r3, r2 9efc: 0a00000d beq 9f38 <_CORE_mutex_Seize_interrupt_trylock+0x5c> the_mutex->lock = CORE_MUTEX_LOCKED; 9f00: 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; 9f04: 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; 9f08: e59c2008 ldr r2, [ip, #8] the_mutex->nest_count = 1; 9f0c: e3a03001 mov r3, #1 ; 0x1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 9f10: 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; 9f14: e5802060 str r2, [r0, #96] the_mutex->nest_count = 1; 9f18: 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; 9f1c: 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 ) || 9f20: 0a000009 beq 9f4c <_CORE_mutex_Seize_interrupt_trylock+0x70> 9f24: e3510003 cmp r1, #3 ; 0x3 <== NOT EXECUTED 9f28: 0a000007 beq 9f4c <_CORE_mutex_Seize_interrupt_trylock+0x70> <== NOT EXECUTED executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( level ); 9f2c: e129f004 msr CPSR_fc, r4 9f30: e3a00000 mov r0, #0 ; 0x0 9f34: 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 ) ) { 9f38: e590305c ldr r3, [r0, #92] 9f3c: e15c0003 cmp ip, r3 9f40: 0a000017 beq 9fa4 <_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 ); 9f44: e3a00001 mov r0, #1 ; 0x1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 9f48: 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++; 9f4c: e59c301c ldr r3, [ip, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 9f50: 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++; 9f54: e2833001 add r3, r3, #1 ; 0x1 9f58: e58c301c str r3, [ip, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 9f5c: 1afffff2 bne 9f2c <_CORE_mutex_Seize_interrupt_trylock+0x50> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 9f60: e590204c ldr r2, [r0, #76] <== NOT EXECUTED current = executing->current_priority; 9f64: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED if ( current == ceiling ) { 9f68: e1520003 cmp r2, r3 <== NOT EXECUTED 9f6c: 0a00001c beq 9fe4 <_CORE_mutex_Seize_interrupt_trylock+0x108> <== NOT EXECUTED _ISR_Enable( level ); return 0; } if ( current > ceiling ) { 9f70: 3a00001e bcc 9ff0 <_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; 9f74: e3a03006 mov r3, #6 ; 0x6 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 9f78: 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; 9f7c: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 9f80: e58c3034 str r3, [ip, #52] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 9f84: 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; 9f88: e5801050 str r1, [r0, #80] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 9f8c: e59c301c ldr r3, [ip, #28] <== NOT EXECUTED 9f90: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 9f94: e58c301c str r3, [ip, #28] <== NOT EXECUTED _ISR_Enable( level ); 9f98: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED 9f9c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 9fa0: 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 ) { 9fa4: e5903040 ldr r3, [r0, #64] 9fa8: e3530000 cmp r3, #0 ; 0x0 9fac: 0a000006 beq 9fcc <_CORE_mutex_Seize_interrupt_trylock+0xf0> 9fb0: e3530001 cmp r3, #1 ; 0x1 9fb4: 1affffe2 bne 9f44 <_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; 9fb8: e3a03002 mov r3, #2 ; 0x2 9fbc: e58c3034 str r3, [ip, #52] _ISR_Enable( level ); 9fc0: e129f004 msr CPSR_fc, r4 9fc4: e3a00000 mov r0, #0 ; 0x0 9fc8: 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++; 9fcc: e5903054 ldr r3, [r0, #84] 9fd0: e2833001 add r3, r3, #1 ; 0x1 9fd4: e5803054 str r3, [r0, #84] _ISR_Enable( level ); 9fd8: e129f004 msr CPSR_fc, r4 9fdc: e3a00000 mov r0, #0 ; 0x0 9fe0: e8bd8010 pop {r4, pc} Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( level ); 9fe4: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED 9fe8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 9fec: e8bd8010 pop {r4, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 9ff0: e59f202c ldr r2, [pc, #44] ; a024 <_CORE_mutex_Seize_interrupt_trylock+0x148> <== NOT EXECUTED 9ff4: e5923000 ldr r3, [r2] <== NOT EXECUTED 9ff8: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 9ffc: e5823000 str r3, [r2] <== NOT EXECUTED return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( level ); a000: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _Thread_Change_priority( a004: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED a008: e590104c ldr r1, [r0, #76] <== NOT EXECUTED a00c: e590005c ldr r0, [r0, #92] <== NOT EXECUTED a010: ebfff092 bl 6260 <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); a014: ebfff203 bl 6828 <_Thread_Enable_dispatch> <== NOT EXECUTED a018: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED a01c: e8bd8010 pop {r4, pc} <== NOT EXECUTED a020: 00016104 .word 0x00016104 a024: 0001604c .word 0x0001604c 0000543c <_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 ) { 543c: e5d03044 ldrb r3, [r0, #68] 5440: 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 ) { 5444: e92d4010 push {r4, lr} 5448: 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; 544c: 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 ) { 5450: 0a000004 beq 5468 <_CORE_mutex_Surrender+0x2c> if ( !_Thread_Is_executing( holder ) ) 5454: e59f3138 ldr r3, [pc, #312] ; 5594 <_CORE_mutex_Surrender+0x158> 5458: e5932000 ldr r2, [r3] 545c: e1500002 cmp r0, r2 5460: 13a00003 movne r0, #3 ; 0x3 5464: 18bd8010 popne {r4, pc} return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 5468: e5943054 ldr r3, [r4, #84] 546c: e3530000 cmp r3, #0 ; 0x0 5470: 0a000020 beq 54f8 <_CORE_mutex_Surrender+0xbc> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 5474: e2433001 sub r3, r3, #1 ; 0x1 if ( the_mutex->nest_count != 0 ) { 5478: 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--; 547c: e5843054 str r3, [r4, #84] if ( the_mutex->nest_count != 0 ) { 5480: 1a00001e bne 5500 <_CORE_mutex_Surrender+0xc4> 5484: 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 ) || 5488: e3520002 cmp r2, #2 ; 0x2 548c: 0a00002c beq 5544 <_CORE_mutex_Surrender+0x108> 5490: e3520003 cmp r2, #3 ; 0x3 5494: 0a00002a beq 5544 <_CORE_mutex_Surrender+0x108> } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 5498: 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 ) || 549c: 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; 54a0: e5843060 str r3, [r4, #96] } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 54a4: 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 ) || 54a8: 0a00001b beq 551c <_CORE_mutex_Surrender+0xe0> 54ac: e3520003 cmp r2, #3 ; 0x3 54b0: 0a000019 beq 551c <_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 ) ) ) { 54b4: e1a00004 mov r0, r4 54b8: eb0005c0 bl 6bc0 <_Thread_queue_Dequeue> 54bc: e2501000 subs r1, r0, #0 ; 0x0 } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 54c0: 03a03001 moveq r3, #1 ; 0x1 54c4: 05843050 streq r3, [r4, #80] 54c8: 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 ) ) ) { 54cc: 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 ) { 54d0: e594c048 ldr ip, [r4, #72] } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 54d4: e5912008 ldr r2, [r1, #8] the_mutex->nest_count = 1; 54d8: e3a03001 mov r3, #1 ; 0x1 switch ( the_mutex->Attributes.discipline ) { 54dc: e35c0002 cmp ip, #2 ; 0x2 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 54e0: e5842060 str r2, [r4, #96] the_mutex->nest_count = 1; 54e4: e5843054 str r3, [r4, #84] } else #endif { the_mutex->holder = the_thread; 54e8: e584105c str r1, [r4, #92] the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 54ec: 0a000023 beq 5580 <_CORE_mutex_Surrender+0x144> 54f0: e35c0003 cmp ip, #3 ; 0x3 54f4: 0a000016 beq 5554 <_CORE_mutex_Surrender+0x118> } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 54f8: e3a00000 mov r0, #0 ; 0x0 return CORE_MUTEX_STATUS_SUCCESSFUL; } 54fc: 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 ) { 5500: e5943040 ldr r3, [r4, #64] 5504: e3530000 cmp r3, #0 ; 0x0 5508: 0afffffa beq 54f8 <_CORE_mutex_Surrender+0xbc> 550c: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 5510: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 5514: 1affffda bne 5484 <_CORE_mutex_Surrender+0x48> <== NOT EXECUTED 5518: 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 && 551c: e590301c ldr r3, [r0, #28] 5520: e3530000 cmp r3, #0 ; 0x0 5524: 1affffe2 bne 54b4 <_CORE_mutex_Surrender+0x78> 5528: e5901018 ldr r1, [r0, #24] 552c: e5903014 ldr r3, [r0, #20] 5530: e1510003 cmp r1, r3 5534: 0affffde beq 54b4 <_CORE_mutex_Surrender+0x78> holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 5538: e3a02001 mov r2, #1 ; 0x1 553c: eb000347 bl 6260 <_Thread_Change_priority> 5540: eaffffdb b 54b4 <_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--; 5544: e590301c ldr r3, [r0, #28] 5548: e2433001 sub r3, r3, #1 ; 0x1 554c: e580301c str r3, [r0, #28] 5550: eaffffd0 b 5498 <_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++; 5554: e591301c ldr r3, [r1, #28] <== NOT EXECUTED 5558: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 555c: e581301c str r3, [r1, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 5560: e5912014 ldr r2, [r1, #20] <== NOT EXECUTED 5564: e594104c ldr r1, [r4, #76] <== NOT EXECUTED 5568: e1510002 cmp r1, r2 <== NOT EXECUTED 556c: 2affffe1 bcs 54f8 <_CORE_mutex_Surrender+0xbc> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 5570: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 5574: eb000339 bl 6260 <_Thread_Change_priority> <== NOT EXECUTED 5578: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 557c: 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++; 5580: e591301c ldr r3, [r1, #28] 5584: e2833001 add r3, r3, #1 ; 0x1 5588: e581301c str r3, [r1, #28] 558c: e3a00000 mov r0, #0 ; 0x0 5590: e8bd8010 pop {r4, pc} 5594: 00016104 .word 0x00016104 0002148c <_Chain_Insert>: Chain_Node *node ) { ISR_Level level; _ISR_Disable( level ); 2148c: e10f2000 mrs r2, CPSR <== NOT EXECUTED 21490: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 21494: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 21498: e5903000 ldr r3, [r0] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 2149c: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 214a0: e5801000 str r1, [r0] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 214a4: 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; 214a8: e5813000 str r3, [r1] <== NOT EXECUTED _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); 214ac: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } 214b0: e12fff1e bx lr <== NOT EXECUTED 00009dbc <_Debug_Is_enabled>: */ bool _Debug_Is_enabled( rtems_debug_control level ) { 9dbc: e59f3010 ldr r3, [pc, #16] ; 9dd4 <_Debug_Is_enabled+0x18> <== NOT EXECUTED 9dc0: e5932000 ldr r2, [r3] <== NOT EXECUTED 9dc4: e1100002 tst r0, r2 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; } 9dc8: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED 9dcc: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 9dd0: e12fff1e bx lr <== NOT EXECUTED 9dd4: 00016108 .word 0x00016108 000041bc <_Event_Seize>: rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; 41bc: e59fc108 ldr ip, [pc, #264] ; 42cc <_Event_Seize+0x110> rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 41c0: e92d41f0 push {r4, r5, r6, r7, r8, lr} rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; 41c4: e59c5000 ldr r5, [ip] executing->Wait.return_code = RTEMS_SUCCESSFUL; 41c8: e3a04000 mov r4, #0 ; 0x0 41cc: e5854034 str r4, [r5, #52] rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 41d0: e1a08002 mov r8, r2 41d4: e1a07003 mov r7, r3 Thread_blocking_operation_States sync_state; executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 41d8: e5954104 ldr r4, [r5, #260] _ISR_Disable( level ); 41dc: e10f6000 mrs r6, CPSR 41e0: e38630c0 orr r3, r6, #192 ; 0xc0 41e4: e129f003 msr CPSR_fc, r3 pending_events = api->pending_events; 41e8: e5942000 ldr r2, [r4] seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 41ec: e010c002 ands ip, r0, r2 41f0: 0a000003 beq 4204 <_Event_Seize+0x48> 41f4: e150000c cmp r0, ip 41f8: 0a00001f beq 427c <_Event_Seize+0xc0> 41fc: e3110002 tst r1, #2 ; 0x2 4200: 1a00001d bne 427c <_Event_Seize+0xc0> _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 4204: e3110001 tst r1, #1 ; 0x1 4208: 1a000016 bne 4268 <_Event_Seize+0xac> executing->Wait.return_code = RTEMS_UNSATISFIED; *event_out = seized_events; return; } _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 420c: e59f40bc ldr r4, [pc, #188] ; 42d0 <_Event_Seize+0x114> 4210: e3a03001 mov r3, #1 ; 0x1 4214: e5843000 str r3, [r4] executing->Wait.option = (uint32_t) option_set; 4218: e5851030 str r1, [r5, #48] executing->Wait.count = (uint32_t) event_in; 421c: e5850024 str r0, [r5, #36] executing->Wait.return_argument = event_out; 4220: e5857028 str r7, [r5, #40] _ISR_Enable( level ); 4224: e129f006 msr CPSR_fc, r6 if ( ticks ) { 4228: e3580000 cmp r8, #0 ; 0x0 422c: 1a00001a bne 429c <_Event_Seize+0xe0> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 4230: e1a00005 mov r0, r5 4234: e3a01c01 mov r1, #256 ; 0x100 4238: eb000bfe bl 7238 <_Thread_Set_state> _ISR_Disable( level ); 423c: e10f2000 mrs r2, CPSR 4240: e38230c0 orr r3, r2, #192 ; 0xc0 4244: e129f003 msr CPSR_fc, r3 sync_state = _Event_Sync_state; 4248: e5940000 ldr r0, [r4] _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 424c: e3a03000 mov r3, #0 ; 0x0 if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 4250: e3500001 cmp r0, #1 ; 0x1 _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 4254: e5843000 str r3, [r4] if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 4258: 0a00000d beq 4294 <_Event_Seize+0xd8> * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); 425c: e1a01005 mov r1, r5 <== NOT EXECUTED } 4260: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); 4264: ea0007e9 b 6210 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); 4268: e129f006 msr CPSR_fc, r6 executing->Wait.return_code = RTEMS_UNSATISFIED; 426c: e3a0300d mov r3, #13 ; 0xd 4270: e5853034 str r3, [r5, #52] *event_out = seized_events; 4274: e587c000 str ip, [r7] 4278: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} pending_events = api->pending_events; seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = 427c: e1e0300c mvn r3, ip 4280: e0033002 and r3, r3, r2 4284: e5843000 str r3, [r4] _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 4288: e129f006 msr CPSR_fc, r6 *event_out = seized_events; 428c: e587c000 str ip, [r7] 4290: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} _ISR_Disable( level ); sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { _ISR_Enable( level ); 4294: e129f002 msr CPSR_fc, r2 4298: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} executing->Wait.return_argument = event_out; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( 429c: e5953008 ldr r3, [r5, #8] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 42a0: e59f202c ldr r2, [pc, #44] ; 42d4 <_Event_Seize+0x118> Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 42a4: e3a01000 mov r1, #0 ; 0x0 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 42a8: e585106c str r1, [r5, #108] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 42ac: e5851050 str r1, [r5, #80] the_watchdog->routine = routine; 42b0: e5852064 str r2, [r5, #100] the_watchdog->id = id; 42b4: e5853068 str r3, [r5, #104] Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 42b8: e5858054 str r8, [r5, #84] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 42bc: e59f0014 ldr r0, [pc, #20] ; 42d8 <_Event_Seize+0x11c> 42c0: e2851048 add r1, r5, #72 ; 0x48 42c4: eb000ddd bl 7a40 <_Watchdog_Insert> 42c8: eaffffd8 b 4230 <_Event_Seize+0x74> 42cc: 00016104 .word 0x00016104 42d0: 000162a4 .word 0x000162a4 42d4: 8c .byte 0x8c 42d5: 44 .byte 0x44 42d6: 0000 .short 0x0000 42d8: 00016124 .word 0x00016124 00004334 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 4334: 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 ]; 4338: e590c104 ldr ip, [r0, #260] */ void _Event_Surrender( Thread_Control *the_thread ) { 433c: 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; 4340: e5907030 ldr r7, [r0, #48] _ISR_Disable( level ); 4344: e10f6000 mrs r6, CPSR 4348: e38630c0 orr r3, r6, #192 ; 0xc0 434c: e129f003 msr CPSR_fc, r3 pending_events = api->pending_events; 4350: e59c0000 ldr r0, [ip] event_condition = (rtems_event_set) the_thread->Wait.count; 4354: 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 ) ) { 4358: e0115000 ands r5, r1, r0 435c: 0a000024 beq 43f4 <_Event_Surrender+0xc0> /* * 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() && 4360: e59f3118 ldr r3, [pc, #280] ; 4480 <_Event_Surrender+0x14c> 4364: e5932000 ldr r2, [r3] 4368: e3520000 cmp r2, #0 ; 0x0 436c: 0a000003 beq 4380 <_Event_Surrender+0x4c> 4370: e59f310c ldr r3, [pc, #268] ; 4484 <_Event_Surrender+0x150> 4374: e5932000 ldr r2, [r3] 4378: e1540002 cmp r4, r2 437c: 0a000029 beq 4428 <_Event_Surrender+0xf4> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 4380: e5943010 ldr r3, [r4, #16] 4384: e3130c01 tst r3, #256 ; 0x100 4388: 0a000017 beq 43ec <_Event_Surrender+0xb8> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 438c: e1510005 cmp r1, r5 4390: 0a000001 beq 439c <_Event_Surrender+0x68> 4394: e3170002 tst r7, #2 ; 0x2 4398: 0a000013 beq 43ec <_Event_Surrender+0xb8> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 439c: e1e03005 mvn r3, r5 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 43a0: 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 ); 43a4: e0033000 and r3, r3, r0 the_thread->Wait.count = 0; 43a8: 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 ); 43ac: e58c3000 str r3, [ip] the_thread->Wait.count = 0; 43b0: e5842024 str r2, [r4, #36] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 43b4: e5815000 str r5, [r1] _ISR_Flash( level ); 43b8: e10f3000 mrs r3, CPSR 43bc: e129f006 msr CPSR_fc, r6 43c0: e129f003 msr CPSR_fc, r3 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 43c4: e5943050 ldr r3, [r4, #80] 43c8: e3530002 cmp r3, #2 ; 0x2 43cc: 0a00000a beq 43fc <_Event_Surrender+0xc8> _ISR_Enable( level ); 43d0: e129f006 msr CPSR_fc, r6 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 43d4: e3a01201 mov r1, #268435456 ; 0x10000000 43d8: e2811bff add r1, r1, #261120 ; 0x3fc00 43dc: e1a00004 mov r0, r4 43e0: e2811ffe add r1, r1, #1016 ; 0x3f8 } return; } } _ISR_Enable( level ); } 43e4: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} 43e8: ea000807 b 640c <_Thread_Clear_state> _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 43ec: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 43f0: 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 ); 43f4: e129f006 msr CPSR_fc, r6 43f8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 43fc: e3a03003 mov r3, #3 ; 0x3 4400: 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 ); 4404: e129f006 msr CPSR_fc, r6 (void) _Watchdog_Remove( &the_thread->Timer ); 4408: e2840048 add r0, r4, #72 ; 0x48 440c: eb000dfa bl 7bfc <_Watchdog_Remove> 4410: e3a01201 mov r1, #268435456 ; 0x10000000 4414: e2811bff add r1, r1, #261120 ; 0x3fc00 4418: e1a00004 mov r0, r4 441c: e2811ffe add r1, r1, #1016 ; 0x3f8 } return; } } _ISR_Enable( level ); } 4420: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} 4424: ea0007f8 b 640c <_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() && 4428: e59f8058 ldr r8, [pc, #88] ; 4488 <_Event_Surrender+0x154> <== NOT EXECUTED 442c: e5983000 ldr r3, [r8] <== NOT EXECUTED 4430: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 4434: 0a000002 beq 4444 <_Event_Surrender+0x110> <== NOT EXECUTED 4438: e5983000 ldr r3, [r8] <== NOT EXECUTED 443c: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 4440: 1affffce bne 4380 <_Event_Surrender+0x4c> <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 4444: e1510005 cmp r1, r5 <== NOT EXECUTED 4448: 0a000001 beq 4454 <_Event_Surrender+0x120> <== NOT EXECUTED 444c: e3170002 tst r7, #2 ; 0x2 <== NOT EXECUTED 4450: 0a000008 beq 4478 <_Event_Surrender+0x144> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 4454: e1e03005 mvn r3, r5 <== NOT EXECUTED 4458: e0033000 and r3, r3, r0 <== NOT EXECUTED the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 445c: e5941028 ldr r1, [r4, #40] <== NOT EXECUTED 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 ); 4460: e58c3000 str r3, [ip] <== NOT EXECUTED the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 4464: e3a02003 mov r2, #3 ; 0x3 <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 4468: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 446c: e5843024 str r3, [r4, #36] <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 4470: e5882000 str r2, [r8] <== NOT EXECUTED ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 4474: e5815000 str r5, [r1] <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; } _ISR_Enable( level ); 4478: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 447c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 4480: 000160e0 .word 0x000160e0 4484: 00016104 .word 0x00016104 4488: 000162a4 .word 0x000162a4 0000448c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 448c: e52de004 push {lr} ; (str lr, [sp, #-4]!) 4490: e24dd004 sub sp, sp, #4 ; 0x4 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 4494: e1a0100d mov r1, sp 4498: eb0008eb bl 684c <_Thread_Get> switch ( location ) { 449c: e59d1000 ldr r1, [sp] 44a0: e3510000 cmp r1, #0 ; 0x0 44a4: 1a000015 bne 4500 <_Event_Timeout+0x74> * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 44a8: e10fc000 mrs ip, CPSR 44ac: e38c30c0 orr r3, ip, #192 ; 0xc0 44b0: e129f003 msr CPSR_fc, r3 if ( !the_thread->Wait.count ) { /* verify thread is waiting */ 44b4: e5903024 ldr r3, [r0, #36] 44b8: e3530000 cmp r3, #0 ; 0x0 44bc: 0a000011 beq 4508 <_Event_Timeout+0x7c> _ISR_Enable( level ); return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { 44c0: e59f3070 ldr r3, [pc, #112] ; 4538 <_Event_Timeout+0xac> 44c4: e5932000 ldr r2, [r3] 44c8: e1500002 cmp r0, r2 _Thread_Unnest_dispatch(); _ISR_Enable( level ); return; } the_thread->Wait.count = 0; 44cc: e5801024 str r1, [r0, #36] if ( _Thread_Is_executing( the_thread ) ) { 44d0: 0a000012 beq 4520 <_Event_Timeout+0x94> (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } the_thread->Wait.return_code = RTEMS_TIMEOUT; 44d4: e3a03006 mov r3, #6 ; 0x6 44d8: e5803034 str r3, [r0, #52] _ISR_Enable( level ); 44dc: e129f00c msr CPSR_fc, ip 44e0: e3a01201 mov r1, #268435456 ; 0x10000000 44e4: e2811bff add r1, r1, #261120 ; 0x3fc00 44e8: e2811ffe add r1, r1, #1016 ; 0x3f8 44ec: eb0007c6 bl 640c <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 44f0: e59f2044 ldr r2, [pc, #68] ; 453c <_Event_Timeout+0xb0> 44f4: e5923000 ldr r3, [r2] 44f8: e2433001 sub r3, r3, #1 ; 0x1 44fc: e5823000 str r3, [r2] case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 4500: e28dd004 add sp, sp, #4 ; 0x4 4504: e8bd8000 pop {pc} 4508: e59f202c ldr r2, [pc, #44] ; 453c <_Event_Timeout+0xb0> <== NOT EXECUTED 450c: e5923000 ldr r3, [r2] <== NOT EXECUTED 4510: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 4514: e5823000 str r3, [r2] <== NOT EXECUTED _ISR_Disable( level ); if ( !the_thread->Wait.count ) { /* verify thread is waiting */ _Thread_Unnest_dispatch(); _ISR_Enable( level ); 4518: e129f00c msr CPSR_fc, ip <== NOT EXECUTED 451c: eafffff7 b 4500 <_Event_Timeout+0x74> <== NOT EXECUTED return; } the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { Thread_blocking_operation_States sync = _Event_Sync_state; 4520: e59f2018 ldr r2, [pc, #24] ; 4540 <_Event_Timeout+0xb4> <== NOT EXECUTED 4524: e5923000 ldr r3, [r2] <== NOT EXECUTED if ( (sync == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) || 4528: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED (sync == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 452c: 93a03002 movls r3, #2 ; 0x2 <== NOT EXECUTED 4530: 95823000 strls r3, [r2] <== NOT EXECUTED 4534: eaffffe6 b 44d4 <_Event_Timeout+0x48> <== NOT EXECUTED 4538: 00016104 .word 0x00016104 453c: 0001604c .word 0x0001604c 4540: 000162a4 .word 0x000162a4 00008598 <_Heap_Allocate_aligned>: void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 8598: 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; 859c: e5909010 ldr r9, [r0, #16] void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 85a0: e1a07000 mov r7, r0 85a4: e1a03001 mov r3, r1 85a8: 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); 85ac: 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; 85b0: e2433004 sub r3, r3, #4 ; 0x4 void *_Heap_Allocate_aligned( Heap_Control *the_heap, size_t size, uint32_t alignment ) { 85b4: 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); 85b8: e1a01009 mov r1, r9 85bc: 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; 85c0: e58d3004 str r3, [sp, #4] uint32_t const the_size = _Heap_Calc_block_size(size, page_size, the_heap->min_block_size); 85c4: eb000163 bl 8b58 <_Heap_Calc_block_size> if(the_size == 0) 85c8: e3500000 cmp r0, #0 ; 0x0 85cc: e58d0008 str r0, [sp, #8] 85d0: 0a000064 beq 8768 <_Heap_Allocate_aligned+0x1d0> */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 85d4: e5975008 ldr r5, [r7, #8] return NULL; if(alignment == 0) 85d8: e35b0000 cmp fp, #0 ; 0x0 85dc: 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; 85e0: e1570005 cmp r7, r5 85e4: 0a00005f beq 8768 <_Heap_Allocate_aligned+0x1d0> 85e8: e3a0a000 mov sl, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 85ec: 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. */ 85f0: e59d1008 ldr r1, [sp, #8] 85f4: e3c36001 bic r6, r3, #1 ; 0x1 85f8: e1510006 cmp r1, r6 85fc: 8a000023 bhi 8690 <_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; 8600: 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; 8604: e0852006 add r2, r5, r6 aligned_user_addr = block_end - end_to_user_offs; 8608: e0634002 rsb r4, r3, r2 _H_uptr_t *value, uint32_t alignment ) { _H_uptr_t v = *value; *value = v - (v % alignment); 860c: e1a0100b mov r1, fp 8610: 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; 8614: e58d200c str r2, [sp, #12] 8618: eb003b8e bl 17458 <__umodsi3> 861c: 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)); 8620: e1a00008 mov r0, r8 8624: e1a01009 mov r1, r9 8628: eb003b8a bl 17458 <__umodsi3> 862c: e2854008 add r4, r5, #8 ; 0x8 8630: 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) { 8634: e1540002 cmp r4, r2 8638: 8a000014 bhi 8690 <_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) { 863c: e597c014 ldr ip, [r7, #20] 8640: e0643002 rsb r3, r4, r2 8644: e153000c cmp r3, ip 8648: 2a00001c bcs 86c0 <_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) { 864c: e0643008 rsb r3, r4, r8 8650: e1590003 cmp r9, r3 8654: 81a02004 movhi r2, r4 8658: 8a000018 bhi 86c0 <_Heap_Allocate_aligned+0x128> uint32_t alignment ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; 865c: e1a00004 mov r0, r4 8660: e1a0100b mov r1, fp 8664: e58dc000 str ip, [sp] 8668: eb003b7a bl 17458 <__umodsi3> *value = r ? v - r + a : v; 866c: e3500000 cmp r0, #0 ; 0x0 8670: 1084300b addne r3, r4, fp 8674: 10600003 rsbne r0, r0, r3 8678: 01a03000 moveq r3, r0 867c: 10643000 rsbne r3, r4, r0 8680: 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) { 8684: e1590003 cmp r9, r3 8688: e59dc000 ldr ip, [sp] 868c: 8a000009 bhi 86b8 <_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) 8690: e5955008 ldr r5, [r5, #8] 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; 8694: e1570005 cmp r7, r5 the_block = the_block->next, ++search_count) 8698: 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; 869c: 1affffd2 bne 85ec <_Heap_Allocate_aligned+0x54> 86a0: e3a00000 mov r0, #0 ; 0x0 } } } } if(stats->max_search < search_count) 86a4: e5973044 ldr r3, [r7, #68] 86a8: e153000a cmp r3, sl stats->max_search = search_count; 86ac: 3587a044 strcc sl, [r7, #68] return user_ptr; } 86b0: e28dd010 add sp, sp, #16 ; 0x10 86b4: 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) { 86b8: e1a02004 mov r2, r4 86bc: e1a08000 mov r8, r0 aligned_user_addr = 0; } } } if(aligned_user_addr) { 86c0: e3580000 cmp r8, #0 ; 0x0 86c4: 0afffff1 beq 8690 <_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; 86c8: e59d100c ldr r1, [sp, #12] 86cc: e2813008 add r3, r1, #8 ; 0x8 86d0: 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; 86d4: 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) { 86d8: 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; 86dc: 23823001 orrcs r3, r2, #1 ; 0x1 86e0: 25853004 strcs r3, [r5, #4] the_block = _Heap_Block_at(the_block, the_rest); the_block->prev_size = the_rest; 86e4: 27a52002 strcs r2, [r5, r2]! the_block->size = alloc_size; 86e8: 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) { 86ec: 2a000007 bcs 8710 <_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; 86f0: e5973038 ldr r3, [r7, #56] Heap_Block *the_block ) { Heap_Block *block = the_block; Heap_Block *next = block->next; 86f4: e2851008 add r1, r5, #8 ; 0x8 86f8: e8910006 ldm r1, {r1, r2} 86fc: e2433001 sub r3, r3, #1 ; 0x1 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; 8700: e581200c str r2, [r1, #12] 8704: e5873038 str r3, [r7, #56] { Heap_Block *block = the_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 8708: e5821008 str r1, [r2, #8] 870c: 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 ); 8710: 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; 8714: e5923004 ldr r3, [r2, #4] 8718: e3833001 orr r3, r3, #1 ; 0x1 871c: e5823004 str r3, [r2, #4] /* Update statistics */ stats->free_size -= alloc_size; 8720: e2871030 add r1, r7, #48 ; 0x30 8724: e891000a ldm r1, {r1, r3} 8728: e0641001 rsb r1, r4, r1 if(stats->min_free_size > stats->free_size) 872c: 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; 8730: 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; 8734: 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; 8738: e5871030 str r1, [r7, #48] if(stats->min_free_size > stats->free_size) stats->min_free_size = stats->free_size; 873c: 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; 8740: 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; 8744: 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; 8748: 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; 874c: e083300a add r3, r3, sl stats->allocs += 1; 8750: 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; 8754: 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; 8758: e587304c str r3, [r7, #76] stats->allocs += 1; 875c: e5871048 str r1, [r7, #72] check_result(the_heap, the_block, user_addr, aligned_user_addr, size); user_ptr = (void*)aligned_user_addr; 8760: e1a00008 mov r0, r8 8764: eaffffce b 86a4 <_Heap_Allocate_aligned+0x10c> } } } if(stats->max_search < search_count) stats->max_search = search_count; 8768: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 876c: eaffffcf b 86b0 <_Heap_Allocate_aligned+0x118> <== NOT EXECUTED 0002b3ac <_Heap_Get_information>: Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 2b3ac: e92d0070 push {r4, r5, r6} Heap_Block *the_block = the_heap->start; 2b3b0: e2802020 add r2, r0, #32 ; 0x20 2b3b4: e8920044 ldm r2, {r2, r6} 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; 2b3b8: 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 ) { 2b3bc: e1520006 cmp r2, r6 Heap_Get_information_status _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 2b3c0: 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; 2b3c4: 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; 2b3c8: e5813000 str r3, [r1] the_info->Free.total = 0; 2b3cc: e5813008 str r3, [r1, #8] the_info->Free.largest = 0; 2b3d0: e5813004 str r3, [r1, #4] the_info->Used.number = 0; 2b3d4: e581300c str r3, [r1, #12] the_info->Used.total = 0; 2b3d8: e5813014 str r3, [r1, #20] the_info->Used.largest = 0; while ( the_block != end ) { 2b3dc: 0a000020 beq 2b464 <_Heap_Get_information+0xb8> 2b3e0: e5925004 ldr r5, [r2, #4] 2b3e4: ea00000b b 2b418 <_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++; 2b3e8: e59c300c ldr r3, [ip, #12] the_info->Used.total += the_size; 2b3ec: e59c1014 ldr r1, [ip, #20] if ( the_info->Used.largest < the_size ) 2b3f0: e59c2010 ldr r2, [ip, #16] while ( the_block != end ) { uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { the_info->Used.number++; 2b3f4: e2833001 add r3, r3, #1 ; 0x1 the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) 2b3f8: e1520000 cmp r2, r0 uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { the_info->Used.number++; the_info->Used.total += the_size; 2b3fc: e0811000 add r1, r1, r0 while ( the_block != end ) { uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); if ( _Heap_Is_prev_used(next_block) ) { the_info->Used.number++; 2b400: e58c300c str r3, [ip, #12] the_info->Used.total += the_size; 2b404: e58c1014 str r1, [ip, #20] if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; 2b408: 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 ) { 2b40c: 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 ) 2b410: 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 ) { 2b414: 0a000012 beq 2b464 <_Heap_Get_information+0xb8> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 2b418: 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 ); 2b41c: e0824000 add r4, r2, r0 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 2b420: 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) ) { 2b424: e3150001 tst r5, #1 ; 0x1 2b428: 1affffee bne 2b3e8 <_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++; 2b42c: e59c3000 ldr r3, [ip] the_info->Free.total += the_size; 2b430: e59c1008 ldr r1, [ip, #8] if ( the_info->Free.largest < the_size ) 2b434: e59c2004 ldr r2, [ip, #4] the_info->Used.number++; the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; } else { the_info->Free.number++; 2b438: e2833001 add r3, r3, #1 ; 0x1 the_info->Free.total += the_size; if ( the_info->Free.largest < the_size ) 2b43c: e1520000 cmp r2, r0 the_info->Used.total += the_size; if ( the_info->Used.largest < the_size ) the_info->Used.largest = the_size; } else { the_info->Free.number++; the_info->Free.total += the_size; 2b440: e0811000 add r1, r1, r0 if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; 2b444: 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++; 2b448: e58c3000 str r3, [ip] the_info->Free.total += the_size; 2b44c: e58c1008 str r1, [ip, #8] if ( the_info->Free.largest < the_size ) the_info->Free.largest = the_size; if ( the_size != next_block->prev_size ) 2b450: e5943000 ldr r3, [r4] 2b454: e1530000 cmp r3, r0 2b458: 0affffeb beq 2b40c <_Heap_Get_information+0x60> 2b45c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 2b460: ea000003 b 2b474 <_Heap_Get_information+0xc8> <== 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; 2b464: e59c3014 ldr r3, [ip, #20] 2b468: e2833008 add r3, r3, #8 ; 0x8 2b46c: e58c3014 str r3, [ip, #20] 2b470: e3a00000 mov r0, #0 ; 0x0 return HEAP_GET_INFORMATION_SUCCESSFUL; } 2b474: e8bd0070 pop {r4, r5, r6} 2b478: e12fff1e bx lr 00013f20 <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 13f20: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 13f24: 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; 13f28: e59dc030 ldr ip, [sp, #48] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 13f2c: e1a05000 mov r5, r0 13f30: e1a09003 mov r9, r3 uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; 13f34: e3a03000 mov r3, #0 ; 0x0 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; 13f38: e5900014 ldr r0, [r0, #20] uint32_t const page_size = the_heap->page_size; 13f3c: e595b010 ldr fp, [r5, #16] *old_mem_size = 0; 13f40: e5893000 str r3, [r9] *avail_mem_size = 0; 13f44: 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; 13f48: e58d0004 str r0, [sp, #4] void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 13f4c: e1a04001 mov r4, r1 /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 13f50: e1a00001 mov r0, r1 13f54: e5951010 ldr r1, [r5, #16] 13f58: e1a08002 mov r8, r2 13f5c: ebfff862 bl 120ec <__umodsi3> 13f60: 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 ); 13f64: e595c020 ldr ip, [r5, #32] 13f68: 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); 13f6c: 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)) 13f70: e156000c cmp r6, ip 13f74: 33a03000 movcc r3, #0 ; 0x0 13f78: 23a03001 movcs r3, #1 ; 0x1 13f7c: e1560001 cmp r6, r1 13f80: 83a03000 movhi r3, #0 ; 0x0 13f84: e3530000 cmp r3, #0 ; 0x0 13f88: 0a00002d beq 14044 <_Heap_Resize_block+0x124> return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 13f8c: e5962004 ldr r2, [r6, #4] */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 13f90: 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 ); 13f94: 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) || 13f98: e15c0007 cmp ip, r7 13f9c: 83a03000 movhi r3, #0 ; 0x0 13fa0: 93a03001 movls r3, #1 ; 0x1 13fa4: e1510007 cmp r1, r7 13fa8: 33a03000 movcc r3, #0 ; 0x0 13fac: e3530000 cmp r3, #0 ; 0x0 13fb0: 0a000023 beq 14044 <_Heap_Resize_block+0x124> */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 13fb4: e5973004 ldr r3, [r7, #4] 13fb8: e3130001 tst r3, #1 ; 0x1 13fbc: 0a000020 beq 14044 <_Heap_Resize_block+0x124> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 13fc0: 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) || 13fc4: e1510007 cmp r1, r7 13fc8: 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 ); 13fcc: e0873003 add r3, r7, r3 13fd0: 15933004 ldrne r3, [r3, #4] 13fd4: 12033001 andne r3, r3, #1 ; 0x1 13fd8: 03a00001 moveq r0, #1 ; 0x1 13fdc: 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) 13fe0: e0643007 rsb r3, r4, r7 !_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) || 13fe4: 058d0008 streq r0, [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) 13fe8: e2830004 add r0, r3, #4 ; 0x4 + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; if (size > old_user_size) { 13fec: 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; 13ff0: 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; 13ff4: 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) { 13ff8: 2a000014 bcs 14050 <_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 */ 13ffc: e59d1008 ldr r1, [sp, #8] 14000: e3510000 cmp r1, #0 ; 0x0 14004: 1a00000c bne 1403c <_Heap_Resize_block+0x11c> return HEAP_RESIZE_UNSATISFIED; else { uint32_t add_block_size = size - old_user_size; 14008: e0604008 rsb r4, r0, r8 uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 1400c: e1a00004 mov r0, r4 14010: e1a0100b mov r1, fp 14014: ebfff834 bl 120ec <__umodsi3> *value = r ? v - r + a : v; 14018: e3500000 cmp r0, #0 ; 0x0 1401c: 1084300b addne r3, r4, fp 14020: e59d2004 ldr r2, [sp, #4] 14024: 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) 14028: e59d3000 ldr r3, [sp] 1402c: e1540002 cmp r4, r2 14030: 21a02004 movcs r2, r4 14034: e1530002 cmp r3, r2 14038: 2a000049 bcs 14164 <_Heap_Resize_block+0x244> } } } ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; 1403c: e3a00001 mov r0, #1 ; 0x1 14040: ea000000 b 14048 <_Heap_Resize_block+0x128> 14044: e3a00002 mov r0, #2 ; 0x2 } 14048: e28dd00c add sp, sp, #12 ; 0xc 1404c: 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; 14050: e0684000 rsb r4, r8, r0 uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 14054: e1a00004 mov r0, r4 14058: e1a0100b mov r1, fp 1405c: ebfff822 bl 120ec <__umodsi3> _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 14060: e0544000 subs r4, r4, r0 14064: 0a000020 beq 140ec <_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) { 14068: 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; 1406c: e064000a rsb r0, r4, sl if (new_block_size < min_block_size) { 14070: e15c0000 cmp ip, r0 14074: 9a000021 bls 14100 <_Heap_Resize_block+0x1e0> uint32_t delta = min_block_size - new_block_size; 14078: e060300c rsb r3, r0, ip _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 1407c: e0544003 subs r4, r4, r3 ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } new_block_size += delta; 14080: 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) { 14084: 1a00001d bne 14100 <_Heap_Resize_block+0x1e0> ++stats->resizes; 14088: e5953054 ldr r3, [r5, #84] 1408c: e2833001 add r3, r3, #1 ; 0x1 14090: e5853054 str r3, [r5, #84] 14094: e1a00004 mov r0, r4 14098: eaffffea b 14048 <_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) { 1409c: e59dc004 ldr ip, [sp, #4] <== NOT EXECUTED 140a0: e15c0004 cmp ip, r4 <== NOT EXECUTED 140a4: 8a000010 bhi 140ec <_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 ); 140a8: 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; 140ac: 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; 140b0: 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; 140b4: 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; 140b8: e5812004 str r2, [r1, #4] <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 140bc: e5953040 ldr r3, [r5, #64] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 140c0: 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 */ 140c4: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 140c8: 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 */ 140cc: e5853040 str r3, [r5, #64] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 140d0: e5852050 str r2, [r5, #80] <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 140d4: e2811008 add r1, r1, #8 ; 0x8 <== NOT EXECUTED 140d8: e1a00005 mov r0, r5 <== NOT EXECUTED 140dc: ebffd81e bl a15c <_Heap_Free> <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 140e0: e59d0030 ldr r0, [sp, #48] <== NOT EXECUTED 140e4: e2443004 sub r3, r4, #4 ; 0x4 <== NOT EXECUTED 140e8: e5803000 str r3, [r0] <== NOT EXECUTED } } } ++stats->resizes; 140ec: e5953054 ldr r3, [r5, #84] 140f0: e2833001 add r3, r3, #1 ; 0x1 140f4: e5853054 str r3, [r5, #84] 140f8: e3a00000 mov r0, #0 ; 0x0 140fc: eaffffd1 b 14048 <_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) { 14100: e59d1008 ldr r1, [sp, #8] 14104: e3510000 cmp r1, #0 ; 0x0 14108: 1affffe3 bne 1409c <_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; 1410c: 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; 14110: 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; 14114: e0842003 add r2, r4, r3 14118: e0861000 add r1, r6, r0 _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 1411c: e1803009 orr r3, r0, r9 new_next_block->size = new_next_block_size | HEAP_PREV_USED; 14120: e3820001 orr r0, r2, #1 ; 0x1 next_next_block->prev_size = new_next_block_size; 14124: 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; 14128: e5863004 str r3, [r6, #4] new_next_block->size = new_next_block_size | HEAP_PREV_USED; 1412c: 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; 14130: e5953030 ldr r3, [r5, #48] 14134: e0833004 add r3, r3, r4 Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 14138: e597000c ldr r0, [r7, #12] Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 1413c: e597c008 ldr ip, [r7, #8] 14140: e5853030 str r3, [r5, #48] *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 14144: e59d3030 ldr r3, [sp, #48] 14148: e2422004 sub r2, r2, #4 ; 0x4 Heap_Block *prev = block->prev; block = new_block; block->next = next; 1414c: e581c008 str ip, [r1, #8] block->prev = prev; 14150: e581000c str r0, [r1, #12] 14154: e5832000 str r2, [r3] next->prev = prev->next = block; 14158: e5801008 str r1, [r0, #8] 1415c: e58c100c str r1, [ip, #12] 14160: eaffffe1 b 140ec <_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 = 14164: e1a01007 mov r1, r7 14168: e1a00005 mov r0, r5 1416c: ebffc5d8 bl 58d4 <_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; 14170: e080000a add r0, r0, sl 14174: e1800009 orr r0, r0, r9 14178: e5860004 str r0, [r6, #4] --stats->used_blocks; 1417c: e5953040 ldr r3, [r5, #64] 14180: e2433001 sub r3, r3, #1 ; 0x1 14184: e5853040 str r3, [r5, #64] 14188: eaffffd7 b 140ec <_Heap_Resize_block+0x1cc> 0000da44 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { da44: 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; da48: e5903024 ldr r3, [r0, #36] Heap_Control *the_heap, int source, bool do_dump ) { Heap_Block *the_block = the_heap->start; da4c: e5906020 ldr r6, [r0, #32] bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { da50: e24dd004 sub sp, sp, #4 ; 0x4 Heap_Block *the_block = the_heap->start; Heap_Block *const end = the_heap->final; da54: e58d3000 str r3, [sp] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { da58: e5963004 ldr r3, [r6, #4] /* if ( !_System_state_Is_up( _System_state_Get() ) ) return TRUE; */ if (source < 0) da5c: e251b000 subs fp, r1, #0 ; 0x0 source = the_heap->stats.instance; da60: b590b028 ldrlt fp, [r0, #40] /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { da64: e3130001 tst r3, #1 ; 0x1 bool _Heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { da68: e1a05000 mov r5, r0 /* * Handle the 1st block */ if (!_Heap_Is_prev_used(the_block)) { da6c: 13a08000 movne r8, #0 ; 0x0 da70: 0a000086 beq dc90 <_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) { da74: e5962000 ldr r2, [r6] da78: e5953010 ldr r3, [r5, #16] da7c: e1520003 cmp r2, r3 da80: 0a000003 beq da94 <_Heap_Walk+0x50> printk("PASS: %d !prev_size of 1st block isn't page_size\n", source); da84: e59f0238 ldr r0, [pc, #568] ; dcc4 <_Heap_Walk+0x280> <== NOT EXECUTED da88: e1a0100b mov r1, fp <== NOT EXECUTED da8c: ebffdbfb bl 4a80 <== NOT EXECUTED da90: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED error = 1; } while ( the_block != end ) { da94: e59d3000 ldr r3, [sp] da98: e1560003 cmp r6, r3 da9c: 0a000080 beq dca4 <_Heap_Walk+0x260> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); daa0: 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)) { daa4: e5951020 ldr r1, [r5, #32] daa8: e3c07001 bic r7, r0, #1 ; 0x1 daac: 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 ); dab0: e0864007 add r4, r6, r7 dab4: e1540001 cmp r4, r1 dab8: 33a03000 movcc r3, #0 ; 0x0 dabc: 23a03001 movcs r3, #1 ; 0x1 dac0: e1540002 cmp r4, r2 dac4: 83a03000 movhi r3, #0 ; 0x0 dac8: e3530000 cmp r3, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); dacc: 1200a001 andne sl, r0, #1 ; 0x1 dad0: 11a09004 movne r9, r4 dad4: 0a000075 beq dcb0 <_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)) { dad8: e5943004 ldr r3, [r4, #4] dadc: e3130001 tst r3, #1 ; 0x1 dae0: 1a00003f bne dbe4 <_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) { dae4: e5943000 ldr r3, [r4] dae8: e1530007 cmp r3, r7 daec: 0a000003 beq db00 <_Heap_Walk+0xbc> if (do_dump) printk("\n"); printk("PASS: %d !front and back sizes don't match", source); daf0: e59f01d0 ldr r0, [pc, #464] ; dcc8 <_Heap_Walk+0x284> <== NOT EXECUTED daf4: e1a0100b mov r1, fp <== NOT EXECUTED daf8: ebffdbe0 bl 4a80 <== NOT EXECUTED dafc: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED error = 1; } if (!prev_used) { db00: e35a0000 cmp sl, #0 ; 0x0 db04: 1a000005 bne db20 <_Heap_Walk+0xdc> if (do_dump || error) printk("\n"); db08: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED db0c: 1a00005c bne dc84 <_Heap_Walk+0x240> <== NOT EXECUTED printk("PASS: %d !two consecutive blocks are free", source); db10: e59f01b4 ldr r0, [pc, #436] ; dccc <_Heap_Walk+0x288> <== NOT EXECUTED db14: e1a0100b mov r1, fp <== NOT EXECUTED db18: ebffdbd8 bl 4a80 <== NOT EXECUTED db1c: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; db20: 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) db24: e1530006 cmp r3, r6 db28: 11550003 cmpne r5, r3 db2c: 0a000003 beq db40 <_Heap_Walk+0xfc> block = block->next; db30: 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) db34: e1530006 cmp r3, r6 db38: 11550003 cmpne r5, r3 db3c: 1afffffb bne db30 <_Heap_Walk+0xec> block = block->next; if(block != the_block) { db40: e1530006 cmp r3, r6 db44: 0a000026 beq dbe4 <_Heap_Walk+0x1a0> if (do_dump || error) printk("\n"); db48: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED db4c: 1a000049 bne dc78 <_Heap_Walk+0x234> <== NOT EXECUTED printk("PASS: %d !the_block not in the free list", source); db50: e59f0178 ldr r0, [pc, #376] ; dcd0 <_Heap_Walk+0x28c> <== NOT EXECUTED db54: e1a0100b mov r1, fp <== NOT EXECUTED db58: ebffdbc8 bl 4a80 <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); db5c: e59f0170 ldr r0, [pc, #368] ; dcd4 <_Heap_Walk+0x290> <== NOT EXECUTED db60: ebffdbc6 bl 4a80 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { db64: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED db68: e1530007 cmp r3, r7 <== NOT EXECUTED error = 1; } } } if (do_dump || error) printk("\n"); db6c: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED if (the_size < the_heap->min_block_size) { db70: 8a000020 bhi dbf8 <_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)) { db74: e1a00007 mov r0, r7 db78: e5951010 ldr r1, [r5, #16] db7c: eb002635 bl 17458 <__umodsi3> db80: e3500000 cmp r0, #0 ; 0x0 db84: 1a000031 bne dc50 <_Heap_Walk+0x20c> printk("PASS: %d !block size is misaligned\n", source); error = 1; } if (++passes > (do_dump ? 10 : 0) && error) db88: e3580000 cmp r8, #0 ; 0x0 db8c: 1a000032 bne dc5c <_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 ) { db90: e59d3000 ldr r3, [sp] db94: e1530004 cmp r3, r4 db98: 0a000041 beq dca4 <_Heap_Walk+0x260> */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); db9c: 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)) { dba0: e5951020 ldr r1, [r5, #32] dba4: e3c07001 bic r7, r0, #1 ; 0x1 dba8: e5952024 ldr r2, [r5, #36] dbac: e0844007 add r4, r4, r7 dbb0: e1540001 cmp r4, r1 dbb4: 33a03000 movcc r3, #0 ; 0x0 dbb8: 23a03001 movcs r3, #1 ; 0x1 dbbc: e1540002 cmp r4, r2 dbc0: 83a03000 movhi r3, #0 ; 0x0 dbc4: e3530000 cmp r3, #0 ; 0x0 dbc8: 0a000037 beq dcac <_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)) { dbcc: e5943004 ldr r3, [r4, #4] dbd0: e3130001 tst r3, #1 ; 0x1 */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); dbd4: e1a06009 mov r6, r9 dbd8: e200a001 and sl, r0, #1 ; 0x1 dbdc: e1a09004 mov r9, r4 dbe0: 0affffbf beq dae4 <_Heap_Walk+0xa0> error = 1; } } } if (do_dump || error) printk("\n"); dbe4: e3580000 cmp r8, #0 ; 0x0 dbe8: 1affffdb bne db5c <_Heap_Walk+0x118> if (the_size < the_heap->min_block_size) { dbec: e5953014 ldr r3, [r5, #20] dbf0: e1530007 cmp r3, r7 dbf4: 9affffde bls db74 <_Heap_Walk+0x130> printk("PASS: %d !block size is too small\n", source); dbf8: e59f00d8 ldr r0, [pc, #216] ; dcd8 <_Heap_Walk+0x294> <== NOT EXECUTED dbfc: e1a0100b mov r1, fp <== NOT EXECUTED dc00: ebffdb9e bl 4a80 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", dc04: e59d3000 ldr r3, [sp] <== NOT EXECUTED dc08: e59f00cc ldr r0, [pc, #204] ; dcdc <_Heap_Walk+0x298> <== NOT EXECUTED dc0c: e1a0100b mov r1, fp <== NOT EXECUTED dc10: e1a02006 mov r2, r6 <== NOT EXECUTED dc14: ebffdb99 bl 4a80 <== NOT EXECUTED dc18: 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); dc1c: e5963004 ldr r3, [r6, #4] source, the_block, end); error = 1; } if (_Heap_Block_size(the_block) != the_heap->page_size) { dc20: e5950010 ldr r0, [r5, #16] dc24: e3c32001 bic r2, r3, #1 ; 0x1 dc28: e1500002 cmp r0, r2 dc2c: 01a00008 moveq r0, r8 dc30: 0a000004 beq dc48 <_Heap_Walk+0x204> printk("PASS: %d !last block's size isn't page_size (%d != %d)\n", source, dc34: e1a03000 mov r3, r0 <== NOT EXECUTED dc38: e1a0100b mov r1, fp <== NOT EXECUTED dc3c: e59f009c ldr r0, [pc, #156] ; dce0 <_Heap_Walk+0x29c> <== NOT EXECUTED dc40: ebffdb8e bl 4a80 <== NOT EXECUTED dc44: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED if(do_dump && error) _Internal_error_Occurred( INTERNAL_ERROR_CORE, TRUE, 0xffff0000 ); return error; } dc48: e28dd004 add sp, sp, #4 ; 0x4 dc4c: 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); dc50: e59f008c ldr r0, [pc, #140] ; dce4 <_Heap_Walk+0x2a0> <== NOT EXECUTED dc54: e1a0100b mov r1, fp <== NOT EXECUTED dc58: ebffdb88 bl 4a80 <== NOT EXECUTED the_block = next_block; } if (the_block != end) { printk("PASS: %d !last block address isn't equal to 'final' %p %p\n", dc5c: e59d3000 ldr r3, [sp] <== NOT EXECUTED dc60: e59f0074 ldr r0, [pc, #116] ; dcdc <_Heap_Walk+0x298> <== NOT EXECUTED dc64: e1a0100b mov r1, fp <== NOT EXECUTED dc68: e1a02006 mov r2, r6 <== NOT EXECUTED dc6c: ebffdb83 bl 4a80 <== NOT EXECUTED dc70: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED dc74: eaffffe8 b dc1c <_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"); dc78: e59f0054 ldr r0, [pc, #84] ; dcd4 <_Heap_Walk+0x290> <== NOT EXECUTED dc7c: ebffdb7f bl 4a80 <== NOT EXECUTED dc80: eaffffb2 b db50 <_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"); dc84: e59f0048 ldr r0, [pc, #72] ; dcd4 <_Heap_Walk+0x290> <== NOT EXECUTED dc88: ebffdb7c bl 4a80 <== NOT EXECUTED dc8c: eaffff9f b db10 <_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); dc90: e59f0050 ldr r0, [pc, #80] ; dce8 <_Heap_Walk+0x2a4> <== NOT EXECUTED dc94: e1a0100b mov r1, fp <== NOT EXECUTED dc98: ebffdb78 bl 4a80 <== NOT EXECUTED dc9c: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED dca0: eaffff73 b da74 <_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, dca4: e59d6000 ldr r6, [sp] dca8: eaffffdb b dc1c <_Heap_Walk+0x1d8> */ RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); dcac: 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); dcb0: e1a02004 mov r2, r4 <== NOT EXECUTED dcb4: e59f0030 ldr r0, [pc, #48] ; dcec <_Heap_Walk+0x2a8> <== NOT EXECUTED dcb8: e1a0100b mov r1, fp <== NOT EXECUTED dcbc: ebffdb6f bl 4a80 <== NOT EXECUTED dcc0: eaffffe5 b dc5c <_Heap_Walk+0x218> <== NOT EXECUTED dcc4: 0001ab08 .word 0x0001ab08 dcc8: 0001ab60 .word 0x0001ab60 dccc: 0001ab8c .word 0x0001ab8c dcd0: 0001abb8 .word 0x0001abb8 dcd4: 0001a11c .word 0x0001a11c dcd8: 0001abe4 .word 0x0001abe4 dcdc: 0001ac2c .word 0x0001ac2c dce0: 0001ac68 .word 0x0001ac68 dce4: 0001ac08 .word 0x0001ac08 dce8: 0001aad0 .word 0x0001aad0 dcec: 0001ab3c .word 0x0001ab3c 0000a34c <_Objects_API_maximum_class>: int _Objects_API_maximum_class( uint32_t api ) { switch (api) { a34c: e2400001 sub r0, r0, #1 ; 0x1 a350: e3500003 cmp r0, #3 ; 0x3 a354: 979ff100 ldrls pc, [pc, r0, lsl #2] a358: ea000003 b a36c <_Objects_API_maximum_class+0x20> a35c: 0000a38c .word 0x0000a38c <== NOT EXECUTED a360: 0000a384 .word 0x0000a384 <== NOT EXECUTED a364: 0000a37c .word 0x0000a37c <== NOT EXECUTED a368: 0000a374 .word 0x0000a374 <== 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; a36c: e3e00000 mvn r0, #0 ; 0x0 case OBJECTS_NO_API: default: break; } return -1; } a370: 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; a374: e3a00008 mov r0, #8 ; 0x8 a378: e12fff1e bx lr int _Objects_API_maximum_class( uint32_t api ) { switch (api) { a37c: e3a0000c mov r0, #12 ; 0xc <== NOT EXECUTED a380: e12fff1e bx lr <== NOT EXECUTED a384: e3a0000a mov r0, #10 ; 0xa a388: e12fff1e bx lr a38c: e3a00002 mov r0, #2 ; 0x2 a390: e12fff1e bx lr 00005ab8 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 5ab8: 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; 5abc: e1d0a0b8 ldrh sl, [r0, #8] minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 5ac0: e1d091b0 ldrh r9, [r0, #16] 5ac4: e159000a cmp r9, sl */ void _Objects_Extend_information( Objects_Information *information ) { 5ac8: e24dd014 sub sp, sp, #20 ; 0x14 5acc: e1a05000 mov r5, r0 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 5ad0: 2a000071 bcs 5c9c <_Objects_Extend_information+0x1e4> 5ad4: e3a07000 mov r7, #0 ; 0x0 5ad8: e5904014 ldr r4, [r0, #20] 5adc: e1a0800a mov r8, sl 5ae0: e1a06007 mov r6, r7 5ae4: e3a0b001 mov fp, #1 ; 0x1 5ae8: e3a00003 mov r0, #3 ; 0x3 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 5aec: e5d53012 ldrb r3, [r5, #18] * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 5af0: e0849009 add r9, r4, r9 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 5af4: e3530000 cmp r3, #0 ; 0x0 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 5af8: e58d9004 str r9, [sp, #4] /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 5afc: 1a000080 bne 5d04 <_Objects_Extend_information+0x24c> if ( !object_blocks ) return; } else { object_blocks = (void**) 5b00: e59d3004 ldr r3, [sp, #4] 5b04: e080000a add r0, r0, sl 5b08: e0800003 add r0, r0, r3 5b0c: e1a00100 lsl r0, r0, #2 5b10: eb000893 bl 7d64 <_Workspace_Allocate_or_fatal_error> * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 5b14: e1d531b0 ldrh r3, [r5, #16] /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 5b18: e1a0210b lsl r2, fp, #2 if ( !object_blocks ) return; } else { object_blocks = (void**) 5b1c: e1a0c000 mov ip, r0 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 5b20: e08c9002 add r9, ip, r2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 5b24: e153000a cmp r3, sl 5b28: e0894002 add r4, r9, r2 5b2c: 8a000080 bhi 5d34 <_Objects_Extend_information+0x27c> else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 5b30: 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, 5b34: 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; 5b38: 11a02003 movne r2, r3 else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 5b3c: 0a000003 beq 5b50 <_Objects_Extend_information+0x98> local_table[ index ] = NULL; 5b40: e7842103 str r2, [r4, r3, lsl #2] else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 5b44: e2833001 add r3, r3, #1 ; 0x1 5b48: e153000a cmp r3, sl 5b4c: 3afffffb bcc 5b40 <_Objects_Extend_information+0x88> 5b50: e1a07107 lsl r7, r7, #2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 5b54: e3a00000 mov r0, #0 ; 0x0 inactive_per_block[block_count] = 0; 5b58: e7890007 str r0, [r9, r7] for ( index=index_base ; index < ( information->allocation_size + index_base ); 5b5c: e5953014 ldr r3, [r5, #20] 5b60: e0881003 add r1, r8, r3 5b64: e1580001 cmp r8, r1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 5b68: e78c0007 str r0, [ip, r7] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 5b6c: 2a000006 bcs 5b8c <_Objects_Extend_information+0xd4> 5b70: e1a03108 lsl r3, r8, #2 5b74: e0842003 add r2, r4, r3 5b78: e1a03008 mov r3, r8 index++ ) { 5b7c: 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 ); 5b80: e1530001 cmp r3, r1 index++ ) { local_table[ index ] = NULL; 5b84: 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 ); 5b88: 3afffffb bcc 5b7c <_Objects_Extend_information+0xc4> index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 5b8c: e10f0000 mrs r0, CPSR 5b90: e38030c0 orr r3, r0, #192 ; 0xc0 5b94: 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( 5b98: 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; 5b9c: e59de004 ldr lr, [sp, #4] information->maximum_id = _Objects_Build_id( 5ba0: e1d510b4 ldrh r1, [r5, #4] 5ba4: 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; 5ba8: e1a0280e lsl r2, lr, #16 information->maximum_id = _Objects_Build_id( 5bac: 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; 5bb0: e1a02822 lsr r2, r2, #16 information->maximum_id = _Objects_Build_id( 5bb4: e1833d81 orr r3, r3, r1, lsl #27 5bb8: e1833002 orr r3, r3, r2 5bbc: 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; 5bc0: e5859030 str r9, [r5, #48] local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 5bc4: e5953034 ldr r3, [r5, #52] information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; 5bc8: e585401c str r4, [r5, #28] information->maximum = maximum; 5bcc: e1c521b0 strh r2, [r5, #16] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 5bd0: e585c034 str ip, [r5, #52] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 5bd4: e129f000 msr CPSR_fc, r0 if ( old_tables ) 5bd8: e3530000 cmp r3, #0 ; 0x0 _Workspace_Free( old_tables ); 5bdc: 11a00003 movne r0, r3 5be0: 1b000857 blne 7d44 <_Workspace_Free> 5be4: e5954014 ldr r4, [r5, #20] /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 5be8: e5d53012 ldrb r3, [r5, #18] 5bec: e3530000 cmp r3, #0 ; 0x0 5bf0: 0a000061 beq 5d7c <_Objects_Extend_information+0x2c4> information->object_blocks[ block ] = 5bf4: e5953018 ldr r3, [r5, #24] 5bf8: e0000493 mul r0, r3, r4 5bfc: e5954034 ldr r4, [r5, #52] 5c00: eb000853 bl 7d54 <_Workspace_Allocate> _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 5c04: e5953034 ldr r3, [r5, #52] /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 5c08: e7840106 str r0, [r4, r6, lsl #2] _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 5c0c: e7931106 ldr r1, [r3, r6, lsl #2] 5c10: e3510000 cmp r1, #0 ; 0x0 /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 5c14: e1a0a106 lsl sl, r6, #2 _Workspace_Allocate( (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 5c18: 0a00001d beq 5c94 <_Objects_Extend_information+0x1dc> /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 5c1c: e28d7008 add r7, sp, #8 ; 0x8 5c20: e1a00007 mov r0, r7 5c24: e2852014 add r2, r5, #20 ; 0x14 5c28: e892000c ldm r2, {r2, r3} 5c2c: eb001093 bl 9e80 <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 5c30: e1a04008 mov r4, r8 5c34: e2856020 add r6, r5, #32 ; 0x20 5c38: ea000008 b 5c60 <_Objects_Extend_information+0x1a8> index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 5c3c: e5953000 ldr r3, [r5] 5c40: e1d520b4 ldrh r2, [r5, #4] 5c44: e1a03c03 lsl r3, r3, #24 5c48: e3833801 orr r3, r3, #65536 ; 0x10000 5c4c: e1833d82 orr r3, r3, r2, lsl #27 5c50: e1833004 orr r3, r3, r4 5c54: e58c3008 str r3, [ip, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 5c58: ebfffd6f bl 521c <_Chain_Append> index++; 5c5c: 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 ) { 5c60: e1a00007 mov r0, r7 5c64: eb001078 bl 9e4c <_Chain_Get> 5c68: e250c000 subs ip, r0, #0 ; 0x0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 5c6c: e1a0100c mov r1, ip 5c70: 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 ) { 5c74: 1afffff0 bne 5c3c <_Objects_Extend_information+0x184> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 5c78: e5953014 ldr r3, [r5, #20] 5c7c: e5952030 ldr r2, [r5, #48] 5c80: e782300a str r3, [r2, sl] information->inactive += information->allocation_size; 5c84: e1d512bc ldrh r1, [r5, #44] 5c88: e5953014 ldr r3, [r5, #20] 5c8c: e0833001 add r3, r3, r1 5c90: e1c532bc strh r3, [r5, #44] } 5c94: e28dd014 add sp, sp, #20 ; 0x14 5c98: 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; 5c9c: e5904014 ldr r4, [r0, #20] 5ca0: e1a00009 mov r0, r9 5ca4: e1a01004 mov r1, r4 5ca8: eb0030cb bl 11fdc <__aeabi_uidiv> for ( ; block < block_count; block++ ) { 5cac: e2507000 subs r7, r0, #0 ; 0x0 5cb0: 0a00003a beq 5da0 <_Objects_Extend_information+0x2e8> if ( information->object_blocks[ block ] == NULL ) 5cb4: e5952034 ldr r2, [r5, #52] 5cb8: e5923000 ldr r3, [r2] 5cbc: e3530000 cmp r3, #0 ; 0x0 5cc0: 11a0800a movne r8, sl 5cc4: 13a06000 movne r6, #0 ; 0x0 5cc8: 1a000003 bne 5cdc <_Objects_Extend_information+0x224> 5ccc: ea000033 b 5da0 <_Objects_Extend_information+0x2e8> <== NOT EXECUTED 5cd0: e7923106 ldr r3, [r2, r6, lsl #2] 5cd4: e3530000 cmp r3, #0 ; 0x0 5cd8: 0a000003 beq 5cec <_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++ ) { 5cdc: e2866001 add r6, r6, #1 ; 0x1 5ce0: e1570006 cmp r7, r6 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 5ce4: e0888004 add r8, r8, r4 if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 5ce8: 8afffff8 bhi 5cd0 <_Objects_Extend_information+0x218> /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 5cec: e1580009 cmp r8, r9 5cf0: 3affffbc bcc 5be8 <_Objects_Extend_information+0x130> 5cf4: e287b001 add fp, r7, #1 ; 0x1 5cf8: e1a0308b lsl r3, fp, #1 5cfc: e083000b add r0, r3, fp 5d00: eaffff79 b 5aec <_Objects_Extend_information+0x34> /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { object_blocks = (void**) 5d04: e080000a add r0, r0, sl 5d08: e0800009 add r0, r0, r9 5d0c: e1a00100 lsl r0, r0, #2 5d10: eb00080f bl 7d54 <_Workspace_Allocate> block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 5d14: e250c000 subs ip, r0, #0 ; 0x0 5d18: 0affffdd beq 5c94 <_Objects_Extend_information+0x1dc> * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 5d1c: e1d531b0 ldrh r3, [r5, #16] /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 5d20: e1a0210b lsl r2, fp, #2 5d24: e08c9002 add r9, ip, r2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 5d28: e153000a cmp r3, sl 5d2c: e0894002 add r4, r9, r2 5d30: 9affff7e bls 5b30 <_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, 5d34: e1a07107 lsl r7, r7, #2 5d38: e1a0000c mov r0, ip 5d3c: e5951034 ldr r1, [r5, #52] 5d40: e1a02007 mov r2, r7 5d44: e58dc000 str ip, [sp] 5d48: eb001742 bl ba58 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 5d4c: e5951030 ldr r1, [r5, #48] 5d50: e1a02007 mov r2, r7 5d54: e1a00009 mov r0, r9 5d58: eb00173e bl ba58 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 5d5c: e1d521b0 ldrh r2, [r5, #16] 5d60: e08a2002 add r2, sl, r2 5d64: e1a02102 lsl r2, r2, #2 5d68: e1a00004 mov r0, r4 5d6c: e595101c ldr r1, [r5, #28] 5d70: eb001738 bl ba58 5d74: e59dc000 ldr ip, [sp] 5d78: eaffff75 b 5b54 <_Objects_Extend_information+0x9c> if ( !information->object_blocks[ block ] ) return; } else { information->object_blocks[ block ] = 5d7c: e5953018 ldr r3, [r5, #24] 5d80: e0000493 mul r0, r3, r4 5d84: e5954034 ldr r4, [r5, #52] 5d88: eb0007f5 bl 7d64 <_Workspace_Allocate_or_fatal_error> 5d8c: e5953034 ldr r3, [r5, #52] 5d90: e7840106 str r0, [r4, r6, lsl #2] 5d94: e1a0a106 lsl sl, r6, #2 5d98: e7931106 ldr r1, [r3, r6, lsl #2] 5d9c: eaffff9e b 5c1c <_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++ ) { 5da0: e1a0800a mov r8, sl <== NOT EXECUTED 5da4: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 5da8: eaffffcf b 5cec <_Objects_Extend_information+0x234> <== NOT EXECUTED 00005ea4 <_Objects_Get_isr_disable>: #if defined(RTEMS_MULTIPROCESSING) index = id - information->minimum_id + 1; #else /* index = _Objects_Get_index( id ); */ index = id & 0x0000ffff; 5ea4: e1a01801 lsl r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 5ea8: 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; 5eac: e1a01821 lsr r1, r1, #16 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 5eb0: e1a04003 mov r4, r3 index = id & 0x0000ffff; /* This should work but doesn't always :( */ /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); 5eb4: e10fc000 mrs ip, CPSR 5eb8: e38c30c0 orr r3, ip, #192 ; 0xc0 5ebc: e129f003 msr CPSR_fc, r3 if ( information->maximum >= index ) { 5ec0: e1d031b0 ldrh r3, [r0, #16] 5ec4: e1510003 cmp r1, r3 5ec8: 8a000008 bhi 5ef0 <_Objects_Get_isr_disable+0x4c> if ( (the_object = information->local_table[ index ]) != NULL ) { 5ecc: e590301c ldr r3, [r0, #28] 5ed0: e7930101 ldr r0, [r3, r1, lsl #2] 5ed4: e3500000 cmp r0, #0 ; 0x0 *location = OBJECTS_LOCAL; 5ed8: 13a03000 movne r3, #0 ; 0x0 5edc: 15823000 strne r3, [r2] *level_p = level; 5ee0: 1584c000 strne ip, [r4] /* index = (uint16_t ) id; */ #endif _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { 5ee4: 0a000006 beq 5f04 <_Objects_Get_isr_disable+0x60> _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 5ee8: e8bd0010 pop {r4} 5eec: e12fff1e bx lr } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 5ef0: e129f00c msr CPSR_fc, ip *location = OBJECTS_ERROR; 5ef4: e3a03001 mov r3, #1 ; 0x1 5ef8: e5823000 str r3, [r2] 5efc: e3a00000 mov r0, #0 ; 0x0 5f00: eafffff8 b 5ee8 <_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 ); 5f04: e129f00c msr CPSR_fc, ip <== NOT EXECUTED *location = OBJECTS_ERROR; 5f08: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 5f0c: e5823000 str r3, [r2] <== NOT EXECUTED 5f10: eafffff4 b 5ee8 <_Objects_Get_isr_disable+0x44> <== NOT EXECUTED 000151ec <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 151ec: e1a0c001 mov ip, r1 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 151f0: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 151f4: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 151f8: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 151fc: 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; 15200: 05904008 ldreq r4, [r0, #8] <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 15204: e1a05000 mov r5, r0 <== NOT EXECUTED 15208: e1a06002 mov r6, r2 <== NOT EXECUTED 1520c: e1a07003 mov r7, r3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 15210: 11a0400c movne r4, ip <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 15214: e1a03804 lsl r3, r4, #16 <== NOT EXECUTED 15218: e1d5c1b0 ldrh ip, [r5, #16] <== NOT EXECUTED 1521c: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED 15220: e15c0003 cmp ip, r3 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 15224: e1a01004 mov r1, r4 <== NOT EXECUTED 15228: e1a00005 mov r0, r5 <== NOT EXECUTED 1522c: e1a02006 mov r2, r6 <== NOT EXECUTED next_id++; 15230: 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) 15234: 3a000005 bcc 15250 <_Objects_Get_next+0x64> <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 15238: ebffda8b bl bc6c <_Objects_Get> <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 1523c: e5963000 ldr r3, [r6] <== NOT EXECUTED 15240: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 15244: 1afffff2 bne 15214 <_Objects_Get_next+0x28> <== NOT EXECUTED *next_id_p = next_id; 15248: e5874000 str r4, [r7] <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 1524c: 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; 15250: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 15254: 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; 15258: e5863000 str r3, [r6] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 1525c: e5872000 str r2, [r7] <== NOT EXECUTED 15260: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 15264: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 00006054 <_Objects_Namespace_remove>: ) { /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 6054: e5d03038 ldrb r3, [r0, #56] 6058: e3530000 cmp r3, #0 ; 0x0 void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { 605c: e92d4010 push {r4, lr} 6060: e1a04001 mov r4, r1 /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) 6064: 0a000002 beq 6074 <_Objects_Namespace_remove+0x20> 6068: e591000c ldr r0, [r1, #12] <== NOT EXECUTED 606c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 6070: 1b000733 blne 7d44 <_Workspace_Free> <== NOT EXECUTED /* * Clear out either format. */ the_object->name.name_p = NULL; 6074: e3a03000 mov r3, #0 ; 0x0 the_object->name.name_u32 = 0; 6078: e584300c str r3, [r4, #12] } 607c: e8bd8010 pop {r4, pc} 00007e9c <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 7e9c: e92d40f0 push {r4, r5, r6, r7, lr} 7ea0: e1a04000 mov r4, r0 7ea4: e1a07001 mov r7, r1 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 7ea8: e1a00002 mov r0, r2 7eac: e1d413ba ldrh r1, [r4, #58] bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 7eb0: e1a05002 mov r5, r2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 7eb4: eb001c34 bl ef8c if ( information->is_string ) { 7eb8: e5d43038 ldrb r3, [r4, #56] 7ebc: e3530000 cmp r3, #0 ; 0x0 { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ) + 1; 7ec0: e2804001 add r4, r0, #1 ; 0x1 if ( information->is_string ) { 7ec4: 1a00001a bne 7f34 <_Objects_Set_name+0x98> strncpy( d, name, length ); d[ length ] = '\0'; the_object->name.name_p = d; } else { the_object->name.name_u32 = _Objects_Build_name( 7ec8: e3540000 cmp r4, #0 ; 0x0 7ecc: 03a00a02 moveq r0, #8192 ; 0x2000 7ed0: 02800020 addeq r0, r0, #32 ; 0x20 7ed4: 01800800 orreq r0, r0, r0, lsl #16 7ed8: 0a000012 beq 7f28 <_Objects_Set_name+0x8c> 7edc: e5d53000 ldrb r3, [r5] 7ee0: e3540001 cmp r4, #1 ; 0x1 7ee4: e1a02c03 lsl r2, r3, #24 7ee8: 03820602 orreq r0, r2, #2097152 ; 0x200000 7eec: 03800a02 orreq r0, r0, #8192 ; 0x2000 7ef0: 03800020 orreq r0, r0, #32 ; 0x20 7ef4: 0a00000b beq 7f28 <_Objects_Set_name+0x8c> 7ef8: e5d53001 ldrb r3, [r5, #1] 7efc: e3540002 cmp r4, #2 ; 0x2 7f00: e1822803 orr r2, r2, r3, lsl #16 7f04: 03820a02 orreq r0, r2, #8192 ; 0x2000 7f08: 03800020 orreq r0, r0, #32 ; 0x20 7f0c: 0a000005 beq 7f28 <_Objects_Set_name+0x8c> 7f10: e5d53002 ldrb r3, [r5, #2] 7f14: e3540003 cmp r4, #3 ; 0x3 7f18: e1820403 orr r0, r2, r3, lsl #8 7f1c: 15d53003 ldrbne r3, [r5, #3] 7f20: 03800020 orreq r0, r0, #32 ; 0x20 7f24: 11800003 orrne r0, r0, r3 7f28: e587000c str r0, [r7, #12] 7f2c: e3a00001 mov r0, #1 ; 0x1 ); } return TRUE; } 7f30: e8bd80f0 pop {r4, r5, r6, r7, pc} length = strnlen( name, information->name_length ) + 1; if ( information->is_string ) { char *d; d = _Workspace_Allocate( length ); 7f34: e1a00004 mov r0, r4 <== NOT EXECUTED 7f38: eb000721 bl 9bc4 <_Workspace_Allocate> <== NOT EXECUTED if ( !d ) 7f3c: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 7f40: 01a00006 moveq r0, r6 <== NOT EXECUTED 7f44: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED return FALSE; if ( the_object->name.name_p ) { 7f48: e597000c ldr r0, [r7, #12] <== NOT EXECUTED 7f4c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 7f50: 0a000002 beq 7f60 <_Objects_Set_name+0xc4> <== NOT EXECUTED _Workspace_Free( (void *)the_object->name.name_p ); 7f54: eb000716 bl 9bb4 <_Workspace_Free> <== NOT EXECUTED the_object->name.name_p = NULL; 7f58: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 7f5c: e587300c str r3, [r7, #12] <== NOT EXECUTED } strncpy( d, name, length ); 7f60: e1a01005 mov r1, r5 <== NOT EXECUTED 7f64: e1a00006 mov r0, r6 <== NOT EXECUTED 7f68: e1a02004 mov r2, r4 <== NOT EXECUTED 7f6c: eb001bc3 bl ee80 <== NOT EXECUTED d[ length ] = '\0'; 7f70: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 7f74: e7c63004 strb r3, [r6, r4] <== NOT EXECUTED the_object->name.name_p = d; 7f78: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 7f7c: e587600c str r6, [r7, #12] <== NOT EXECUTED 7f80: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 00021bec <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 21bec: e92d4070 push {r4, r5, r6, lr} Heap_Get_information_status status; if ( !the_heap ) 21bf0: e2506000 subs r6, r0, #0 ; 0x0 bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 21bf4: e1a04001 mov r4, r1 Heap_Get_information_status status; if ( !the_heap ) 21bf8: 0a00000d beq 21c34 <_Protected_heap_Get_information+0x48> return false; if ( !the_info ) 21bfc: e3510000 cmp r1, #0 ; 0x0 21c00: 0a00000b beq 21c34 <_Protected_heap_Get_information+0x48> return false; _RTEMS_Lock_allocator(); 21c04: e59f5030 ldr r5, [pc, #48] ; 21c3c <_Protected_heap_Get_information+0x50> 21c08: e5950000 ldr r0, [r5] 21c0c: ebff9afd bl 8808 <_API_Mutex_Lock> status = _Heap_Get_information( the_heap, the_info ); 21c10: e1a01004 mov r1, r4 21c14: e1a00006 mov r0, r6 21c18: eb0025e3 bl 2b3ac <_Heap_Get_information> 21c1c: e1a04000 mov r4, r0 _RTEMS_Unlock_allocator(); 21c20: e5950000 ldr r0, [r5] 21c24: ebff9b13 bl 8878 <_API_Mutex_Unlock> if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) 21c28: e2740001 rsbs r0, r4, #1 ; 0x1 21c2c: 33a00000 movcc r0, #0 ; 0x0 21c30: e8bd8070 pop {r4, r5, r6, pc} 21c34: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; return false; } 21c38: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 21c3c: 0005935c .word 0x0005935c 00005618 <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) { 5618: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 561c: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get( struct timespec *time ) { 5620: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; 5624: e58d3004 str r3, [sp, #4] */ void _TOD_Get( struct timespec *time ) { 5628: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume time checked by caller */ offset.tv_sec = 0; 562c: e58d3000 str r3, [sp] offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); 5630: e10f6000 mrs r6, CPSR 5634: e38630c0 orr r3, r6, #192 ; 0xc0 5638: e129f003 msr CPSR_fc, r3 *time = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) 563c: e59f3038 ldr r3, [pc, #56] ; 567c <_TOD_Get+0x64> offset.tv_sec = 0; offset.tv_nsec = 0; /* _TOD_Now is a proper POSIX time */ _ISR_Disable( level ); *time = _TOD_Now; 5640: e59f2038 ldr r2, [pc, #56] ; 5680 <_TOD_Get+0x68> if ( _Watchdog_Nanoseconds_since_tick_handler ) 5644: 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; 5648: e8920018 ldm r2, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 564c: 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; 5650: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) 5654: 0a000002 beq 5664 <_TOD_Get+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); 5658: e1a0e00f mov lr, pc <== NOT EXECUTED 565c: e12fff11 bx r1 <== NOT EXECUTED 5660: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); 5664: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( time, &offset ); 5668: e1a00005 mov r0, r5 566c: e1a0100d mov r1, sp 5670: eb000813 bl 76c4 <_Timespec_Add_to> } 5674: e28dd008 add sp, sp, #8 ; 0x8 5678: e8bd8070 pop {r4, r5, r6, pc} 567c: 000161f8 .word 0x000161f8 5680: 000160d4 .word 0x000160d4 0000a028 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( struct timespec *uptime ) { a028: e92d4070 push {r4, r5, r6, lr} ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; a02c: e3a03000 mov r3, #0 ; 0x0 */ void _TOD_Get_uptime( struct timespec *uptime ) { a030: e24dd008 sub sp, sp, #8 ; 0x8 struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; offset.tv_nsec = 0; a034: e58d3004 str r3, [sp, #4] */ void _TOD_Get_uptime( struct timespec *uptime ) { a038: e1a05000 mov r5, r0 ISR_Level level; struct timespec offset; /* assume uptime checked by caller */ offset.tv_sec = 0; a03c: e58d3000 str r3, [sp] offset.tv_nsec = 0; _ISR_Disable( level ); a040: e10f6000 mrs r6, CPSR a044: e38630c0 orr r3, r6, #192 ; 0xc0 a048: e129f003 msr CPSR_fc, r3 *uptime = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) a04c: e59f3038 ldr r3, [pc, #56] ; a08c <_TOD_Get_uptime+0x64> offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; a050: e59f2038 ldr r2, [pc, #56] ; a090 <_TOD_Get_uptime+0x68> if ( _Watchdog_Nanoseconds_since_tick_handler ) a054: e5931000 ldr r1, [r3] offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; a058: e8920018 ldm r2, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) a05c: e3510000 cmp r1, #0 ; 0x0 offset.tv_sec = 0; offset.tv_nsec = 0; _ISR_Disable( level ); *uptime = _TOD_Uptime; a060: e8800018 stm r0, {r3, r4} if ( _Watchdog_Nanoseconds_since_tick_handler ) a064: 0a000002 beq a074 <_TOD_Get_uptime+0x4c> offset.tv_nsec = (*_Watchdog_Nanoseconds_since_tick_handler)(); a068: e1a0e00f mov lr, pc <== NOT EXECUTED a06c: e12fff11 bx r1 <== NOT EXECUTED a070: e58d0004 str r0, [sp, #4] <== NOT EXECUTED _ISR_Enable( level ); a074: e129f006 msr CPSR_fc, r6 _Timespec_Add_to( uptime, &offset ); a078: e1a00005 mov r0, r5 a07c: e1a0100d mov r1, sp a080: ebfff58f bl 76c4 <_Timespec_Add_to> } a084: e28dd008 add sp, sp, #8 ; 0x8 a088: e8bd8070 pop {r4, r5, r6, pc} a08c: 000161f8 .word 0x000161f8 a090: 000160c4 .word 0x000160c4 0000b0e8 <_Thread_Handler>: #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; b0e8: e59f3110 ldr r3, [pc, #272] ; b200 <_Thread_Handler+0x118> * * Output parameters: NONE */ void _Thread_Handler( void ) { b0ec: e92d4030 push {r4, r5, lr} #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; b0f0: 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; b0f4: e59520b8 ldr r2, [r5, #184] _ISR_Set_level(level); b0f8: e3a03000 mov r3, #0 ; 0x0 b0fc: e10f3000 mrs r3, CPSR b100: e3c330c0 bic r3, r3, #192 ; 0xc0 b104: e1833002 orr r3, r3, r2 b108: e121f003 msr CPSR_c, r3 #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; b10c: e59f20f0 ldr r2, [pc, #240] ; b204 <_Thread_Handler+0x11c> doneConstructors = 1; b110: e3a03001 mov r3, #1 ; 0x1 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; b114: 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 ); b118: 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; b11c: 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 ); b120: ebfff1c2 bl 7830 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); b124: ebffedbf bl 6828 <_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) */ b128: e3540000 cmp r4, #0 ; 0x0 b12c: 0a000031 beq b1f8 <_Thread_Handler+0x110> #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { b130: e59530a0 ldr r3, [r5, #160] b134: e3530003 cmp r3, #3 ; 0x3 b138: 979ff103 ldrls pc, [pc, r3, lsl #2] b13c: ea000008 b b164 <_Thread_Handler+0x7c> <== NOT EXECUTED b140: 0000b1d0 .word 0x0000b1d0 <== NOT EXECUTED b144: 0000b1a8 .word 0x0000b1a8 <== NOT EXECUTED b148: 0000b17c .word 0x0000b17c <== NOT EXECUTED b14c: 0000b150 .word 0x0000b150 <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = b150: e59500a8 ldr r0, [r5, #168] <== NOT EXECUTED b154: e59510a4 ldr r1, [r5, #164] <== NOT EXECUTED b158: e1a0e00f mov lr, pc <== NOT EXECUTED b15c: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED b160: 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 ); b164: e1a00005 mov r0, r5 <== NOT EXECUTED b168: ebfff1c0 bl 7870 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( b16c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED b170: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED b174: e3a02006 mov r2, #6 ; 0x6 <== NOT EXECUTED b178: ebffea04 bl 5990 <_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 = b17c: e28500a4 add r0, r5, #164 ; 0xa4 <== NOT EXECUTED b180: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED b184: e1a0e00f mov lr, pc <== NOT EXECUTED b188: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED b18c: 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 ); b190: e1a00005 mov r0, r5 <== NOT EXECUTED b194: ebfff1b5 bl 7870 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( b198: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED b19c: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED b1a0: e3a02006 mov r2, #6 ; 0x6 <== NOT EXECUTED b1a4: ebffe9f9 bl 5990 <_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 = b1a8: e59500a4 ldr r0, [r5, #164] <== NOT EXECUTED b1ac: e1a0e00f mov lr, pc <== NOT EXECUTED b1b0: e595f09c ldr pc, [r5, #156] <== NOT EXECUTED b1b4: 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 ); b1b8: e1a00005 mov r0, r5 <== NOT EXECUTED b1bc: ebfff1ab bl 7870 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( b1c0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED b1c4: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED b1c8: e3a02006 mov r2, #6 ; 0x6 <== NOT EXECUTED b1cc: ebffe9ef bl 5990 <_Internal_error_Occurred> <== NOT EXECUTED __main (); #endif switch ( executing->Start.prototype ) { case THREAD_START_NUMERIC: executing->Wait.return_argument = b1d0: e59500a8 ldr r0, [r5, #168] b1d4: e1a0e00f mov lr, pc b1d8: e595f09c ldr pc, [r5, #156] b1dc: 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 ); b1e0: e1a00005 mov r0, r5 b1e4: ebfff1a1 bl 7870 <_User_extensions_Thread_exitted> _Internal_error_Occurred( b1e8: e3a00000 mov r0, #0 ; 0x0 b1ec: e3a01001 mov r1, #1 ; 0x1 b1f0: e3a02006 mov r2, #6 ; 0x6 b1f4: ebffe9e5 bl 5990 <_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 (); b1f8: ebffd3c8 bl 120 <_init> b1fc: eaffffcb b b130 <_Thread_Handler+0x48> b200: 00016104 .word 0x00016104 b204: 00015e98 .word 0x00015e98 000068f4 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 68f4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 68f8: 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 ) { 68fc: 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; 6900: 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 ) { 6904: e5dda02c ldrb sl, [sp, #44] 6908: e1a09000 mov r9, r0 690c: e1a05001 mov r5, r1 6910: e59d8028 ldr r8, [sp, #40] 6914: 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; 6918: 15c130c0 strbne r3, [r1, #192] 691c: 11a0c004 movne ip, r4 6920: 11a02006 movne r2, r6 /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 6924: 0a000034 beq 69fc <_Thread_Initialize+0x108> /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 6928: e59f416c ldr r4, [pc, #364] ; 6a9c <_Thread_Initialize+0x1a8> 692c: e5940000 ldr r0, [r4] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 6930: e3a06000 mov r6, #0 ; 0x0 6934: e3500000 cmp r0, #0 ; 0x0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 6938: e58520c8 str r2, [r5, #200] the_stack->size = size; 693c: e585c0c4 str ip, [r5, #196] 6940: e5856050 str r6, [r5, #80] the_watchdog->routine = routine; 6944: e5856064 str r6, [r5, #100] the_watchdog->id = id; 6948: e5856068 str r6, [r5, #104] the_watchdog->user_data = user_data; 694c: e585606c str r6, [r5, #108] /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 6950: e5856100 str r6, [r5, #256] return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 6954: 05850110 streq r0, [r5, #272] 6958: 01a07000 moveq r7, r0 /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 695c: 1a000033 bne 6a30 <_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; 6960: e59d3034 ldr r3, [sp, #52] switch ( budget_algorithm ) { 6964: 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; 6968: 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; 696c: 059f312c ldreq r3, [pc, #300] ; 6aa0 <_Thread_Initialize+0x1ac> 6970: 05932000 ldreq r2, [r3] 6974: 05852078 streq r2, [r5, #120] break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 6978: e59d3038 ldr r3, [sp, #56] the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; 697c: e3a04000 mov r4, #0 ; 0x0 break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 6980: e3a06001 mov r6, #1 ; 0x1 break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 6984: 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 ); 6988: e1a01008 mov r1, r8 698c: e1a00005 mov r0, r5 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 6990: e5c5a0ac strb sl, [r5, #172] the_thread->Start.budget_algorithm = budget_algorithm; 6994: e585b0b0 str fp, [r5, #176] break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 6998: e5856010 str r6, [r5, #16] the_thread->Wait.queue = NULL; 699c: e5854044 str r4, [r5, #68] the_thread->resource_count = 0; 69a0: e585401c str r4, [r5, #28] the_thread->suspend_count = 0; 69a4: e5854070 str r4, [r5, #112] the_thread->real_priority = priority; 69a8: e5858018 str r8, [r5, #24] the_thread->Start.initial_priority = priority; 69ac: e58580bc str r8, [r5, #188] _Thread_Set_priority( the_thread, priority ); 69b0: eb000200 bl 71b8 <_Thread_Set_priority> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 69b4: e1d530b8 ldrh r3, [r5, #8] 69b8: 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; 69bc: e5854088 str r4, [r5, #136] 69c0: e7825103 str r5, [r2, r3, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 69c4: 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 ); 69c8: e1a00005 mov r0, r5 69cc: 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; 69d0: 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 ); 69d4: eb0003cb bl 7908 <_User_extensions_Thread_create> if ( !extension_status ) { 69d8: e1500004 cmp r0, r4 69dc: 1a000011 bne 6a28 <_Thread_Initialize+0x134> if ( extensions_area ) 69e0: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 69e4: 11a00007 movne r0, r7 <== NOT EXECUTED 69e8: 1b0004d5 blne 7d44 <_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 ); 69ec: e1a00005 mov r0, r5 <== NOT EXECUTED 69f0: eb0002ad bl 74ac <_Thread_Stack_Free> <== NOT EXECUTED 69f4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return FALSE; } return TRUE; } 69f8: 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 ); 69fc: e1a00001 mov r0, r1 6a00: e1a01004 mov r1, r4 6a04: eb000288 bl 742c <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 6a08: e1540000 cmp r4, r0 6a0c: 93a03000 movls r3, #0 ; 0x0 6a10: 83a03001 movhi r3, #1 ; 0x1 6a14: e3500000 cmp r0, #0 ; 0x0 6a18: 03833001 orreq r3, r3, #1 ; 0x1 6a1c: e3530000 cmp r3, #0 ; 0x0 6a20: e1a0c000 mov ip, r0 6a24: 0a000014 beq 6a7c <_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 ) { 6a28: e1a00006 mov r0, r6 6a2c: 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( 6a30: e2800001 add r0, r0, #1 ; 0x1 6a34: e1a00100 lsl r0, r0, #2 6a38: eb0004c5 bl 7d54 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 6a3c: e2507000 subs r7, r0, #0 ; 0x0 6a40: 0a000011 beq 6a8c <_Thread_Initialize+0x198> * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 6a44: e5943000 ldr r3, [r4] 6a48: e3730001 cmn r3, #1 ; 0x1 return FALSE; } } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; 6a4c: e5857110 str r7, [r5, #272] * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 6a50: 0affffc2 beq 6960 <_Thread_Initialize+0x6c> 6a54: e1a02006 mov r2, r6 6a58: e1a01007 mov r1, r7 the_thread->extensions[i] = NULL; 6a5c: e1a00006 mov r0, r6 * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 6a60: e5943000 ldr r3, [r4] the_thread->extensions[i] = NULL; 6a64: e7810102 str r0, [r1, r2, lsl #2] * call. */ if ( the_thread->extensions ) { uint32_t i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 6a68: e2833001 add r3, r3, #1 ; 0x1 6a6c: e2822001 add r2, r2, #1 ; 0x1 6a70: e1530002 cmp r3, r2 6a74: 8afffff9 bhi 6a60 <_Thread_Initialize+0x16c> 6a78: eaffffb8 b 6960 <_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; 6a7c: e3a03001 mov r3, #1 ; 0x1 6a80: 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; 6a84: e59520cc ldr r2, [r5, #204] 6a88: eaffffa6 b 6928 <_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 ); 6a8c: e1a00005 mov r0, r5 <== NOT EXECUTED 6a90: eb000285 bl 74ac <_Thread_Stack_Free> <== NOT EXECUTED 6a94: e1a00007 mov r0, r7 <== NOT EXECUTED 6a98: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 6a9c: 000160e4 .word 0x000160e4 6aa0: 00016004 .word 0x00016004 00007eb4 <_Thread_Restart>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { 7eb4: e5903010 ldr r3, [r0, #16] 7eb8: e3130001 tst r3, #1 ; 0x1 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 7ebc: e92d4070 push {r4, r5, r6, lr} 7ec0: e1a04000 mov r4, r0 7ec4: e1a05001 mov r5, r1 7ec8: e1a06002 mov r6, r2 if ( !_States_Is_dormant( the_thread->current_state ) ) { 7ecc: 13a00000 movne r0, #0 ; 0x0 7ed0: 18bd8070 popne {r4, r5, r6, pc} _Thread_Set_transient( the_thread ); 7ed4: eb000089 bl 8100 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 7ed8: e1a02006 mov r2, r6 7edc: e1a01005 mov r1, r5 7ee0: e1a00004 mov r0, r4 7ee4: eb000dcc bl b61c <_Thread_Reset> _Thread_Load_environment( the_thread ); 7ee8: e1a00004 mov r0, r4 7eec: eb000ce0 bl b274 <_Thread_Load_environment> _Thread_Ready( the_thread ); 7ef0: e1a00004 mov r0, r4 7ef4: eb000d83 bl b508 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 7ef8: e1a00004 mov r0, r4 7efc: eb000208 bl 8724 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 7f00: e59f301c ldr r3, [pc, #28] ; 7f24 <_Thread_Restart+0x70> 7f04: e5932000 ldr r2, [r3] 7f08: e1540002 cmp r4, r2 7f0c: 13a00001 movne r0, #1 ; 0x1 7f10: 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 ); 7f14: e28400d0 add r0, r4, #208 ; 0xd0 7f18: eb00032e bl 8bd8 <_CPU_Context_restore> 7f1c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return TRUE; } return FALSE; } 7f20: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 7f24: 00019624 .word 0x00019624 00008cb8 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 8cb8: e92d0030 push {r4, r5} 8cbc: e20110ff and r1, r1, #255 ; 0xff 8cc0: e1a04000 mov r4, r0 ISR_Level level; States_Control current_state; _ISR_Disable( level ); 8cc4: e10f5000 mrs r5, CPSR 8cc8: e38530c0 orr r3, r5, #192 ; 0xc0 8ccc: e129f003 msr CPSR_fc, r3 if ( force == TRUE ) 8cd0: e3510000 cmp r1, #0 ; 0x0 the_thread->suspend_count = 0; 8cd4: 13a03000 movne r3, #0 ; 0x0 8cd8: 15803070 strne r3, [r0, #112] ISR_Level level; States_Control current_state; _ISR_Disable( level ); if ( force == TRUE ) 8cdc: 1a000006 bne 8cfc <_Thread_Resume+0x44> the_thread->suspend_count = 0; else the_thread->suspend_count--; 8ce0: e5903070 ldr r3, [r0, #112] <== NOT EXECUTED 8ce4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 8ce8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED _ISR_Disable( level ); if ( force == TRUE ) the_thread->suspend_count = 0; else the_thread->suspend_count--; 8cec: e5803070 str r3, [r0, #112] <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 8cf0: 0a000001 beq 8cfc <_Thread_Resume+0x44> <== NOT EXECUTED _ISR_Enable( level ); 8cf4: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 8cf8: ea000003 b 8d0c <_Thread_Resume+0x54> <== NOT EXECUTED return; } current_state = the_thread->current_state; 8cfc: e5943010 ldr r3, [r4, #16] if ( current_state & STATES_SUSPENDED ) { 8d00: e3130002 tst r3, #2 ; 0x2 8d04: 1a000002 bne 8d14 <_Thread_Resume+0x5c> _Context_Switch_necessary = TRUE; } } } _ISR_Enable( level ); 8d08: e129f005 msr CPSR_fc, r5 } 8d0c: e8bd0030 pop {r4, r5} 8d10: e12fff1e bx lr 8d14: 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 ) ) { 8d18: e3530000 cmp r3, #0 ; 0x0 return; } current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = 8d1c: e5843010 str r3, [r4, #16] the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 8d20: 1afffff8 bne 8d08 <_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; 8d24: e5940090 ldr r0, [r4, #144] 8d28: e1d429b6 ldrh r2, [r4, #150] 8d2c: e1d030b0 ldrh r3, [r0] _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 8d30: e594108c ldr r1, [r4, #140] 8d34: e1833002 orr r3, r3, r2 8d38: e1c030b0 strh r3, [r0] _Priority_Major_bit_map |= the_priority_map->ready_major; 8d3c: e59fc07c ldr ip, [pc, #124] ; 8dc0 <_Thread_Resume+0x108> Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 8d40: e2813004 add r3, r1, #4 ; 0x4 8d44: e5843000 str r3, [r4] 8d48: e1dc20b0 ldrh r2, [ip] 8d4c: e1d439b4 ldrh r3, [r4, #148] old_last_node = the_chain->last; 8d50: e5910008 ldr r0, [r1, #8] 8d54: e1822003 orr r2, r2, r3 the_chain->last = the_node; 8d58: e5814008 str r4, [r1, #8] 8d5c: e1cc20b0 strh r2, [ip] old_last_node->next = the_node; the_node->previous = old_last_node; 8d60: 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; 8d64: e5804000 str r4, [r0] _ISR_Flash( level ); 8d68: e10f3000 mrs r3, CPSR 8d6c: e129f005 msr CPSR_fc, r5 8d70: e129f003 msr CPSR_fc, r3 if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 8d74: e59fc048 ldr ip, [pc, #72] ; 8dc4 <_Thread_Resume+0x10c> 8d78: e59c3000 ldr r3, [ip] 8d7c: e5940014 ldr r0, [r4, #20] 8d80: e5932014 ldr r2, [r3, #20] 8d84: e1500002 cmp r0, r2 8d88: 2affffde bcs 8d08 <_Thread_Resume+0x50> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 8d8c: e59f3034 ldr r3, [pc, #52] ; 8dc8 <_Thread_Resume+0x110> 8d90: e5932000 ldr r2, [r3] 8d94: e5d21076 ldrb r1, [r2, #118] 8d98: e3510000 cmp r1, #0 ; 0x0 _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; 8d9c: e58c4000 str r4, [ip] if ( _Thread_Executing->is_preemptible || 8da0: 0a000003 beq 8db4 <_Thread_Resume+0xfc> the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 8da4: e59f3020 ldr r3, [pc, #32] ; 8dcc <_Thread_Resume+0x114> 8da8: e3a02001 mov r2, #1 ; 0x1 8dac: e5c32000 strb r2, [r3] 8db0: eaffffd4 b 8d08 <_Thread_Resume+0x50> _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 8db4: e3500000 cmp r0, #0 ; 0x0 8db8: 1affffd2 bne 8d08 <_Thread_Resume+0x50> 8dbc: eafffff8 b 8da4 <_Thread_Resume+0xec> <== NOT EXECUTED 8dc0: 00022438 .word 0x00022438 8dc4: 00022410 .word 0x00022410 8dc8: 00022444 .word 0x00022444 8dcc: 00022454 .word 0x00022454 0000742c <_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 ) { 742c: e59f3070 ldr r3, [pc, #112] ; 74a4 <_Thread_Stack_Allocate+0x78> 7430: e5932000 ldr r2, [r3] size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 7434: e59f306c ldr r3, [pc, #108] ; 74a8 <_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 ) { 7438: e592c020 ldr ip, [r2, #32] size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 743c: e5932000 ldr r2, [r3] 7440: e92d4030 push {r4, r5, lr} 7444: e1510002 cmp r1, r2 7448: 21a04001 movcs r4, r1 744c: 31a04002 movcc r4, 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 ) { 7450: e35c0000 cmp ip, #0 ; 0x0 size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 7454: 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 ) { 7458: 0a000008 beq 7480 <_Thread_Stack_Allocate+0x54> stack_addr = (*_Configuration_Table->stack_allocate_hook)( the_stack_size ); 745c: e1a00004 mov r0, r4 <== NOT EXECUTED 7460: e1a0e00f mov lr, pc <== NOT EXECUTED 7464: e12fff1c bx ip <== NOT EXECUTED 7468: e1a03000 mov r3, r0 <== NOT EXECUTED the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 746c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 7470: 11a00004 movne r0, r4 <== NOT EXECUTED 7474: 03a00000 moveq r0, #0 ; 0x0 <== NOT EXECUTED } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 7478: e58530cc str r3, [r5, #204] <== NOT EXECUTED return the_stack_size; } 747c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; 7480: 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 ); 7484: e1a00004 mov r0, r4 7488: eb000231 bl 7d54 <_Workspace_Allocate> 748c: e1a03000 mov r3, r0 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 7490: e3530000 cmp r3, #0 ; 0x0 7494: 11a00004 movne r0, r4 7498: 03a00000 moveq r0, #0 ; 0x0 } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 749c: e58530cc str r3, [r5, #204] return the_stack_size; } 74a0: e8bd8030 pop {r4, r5, pc} 74a4: 000160dc .word 0x000160dc 74a8: 000144ec .word 0x000144ec 000074ac <_Thread_Stack_Free>: { /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 74ac: e5d030c0 ldrb r3, [r0, #192] 74b0: e3530000 cmp r3, #0 ; 0x0 */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 74b4: 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 ) 74b8: 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 ) 74bc: e59f3028 ldr r3, [pc, #40] ; 74ec <_Thread_Stack_Free+0x40> 74c0: e5932000 ldr r2, [r3] 74c4: e5923024 ldr r3, [r2, #36] 74c8: e3530000 cmp r3, #0 ; 0x0 74cc: 0a000003 beq 74e0 <_Thread_Stack_Free+0x34> (*_Configuration_Table->stack_free_hook)( 74d0: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 74d4: e1a0e00f mov lr, pc <== NOT EXECUTED 74d8: e12fff13 bx r3 <== NOT EXECUTED 74dc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 74e0: e59000c8 ldr r0, [r0, #200] } 74e4: 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 ); 74e8: ea000215 b 7d44 <_Workspace_Free> 74ec: 000160dc .word 0x000160dc 00007588 <_Thread_Tickle_timeslice>: void _Thread_Tickle_timeslice( void ) { Thread_Control *executing; executing = _Thread_Executing; 7588: e59f3084 ldr r3, [pc, #132] ; 7614 <_Thread_Tickle_timeslice+0x8c> * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 758c: e92d4010 push {r4, lr} Thread_Control *executing; executing = _Thread_Executing; 7590: e5934000 ldr r4, [r3] /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 7594: e5d42076 ldrb r2, [r4, #118] 7598: e3520000 cmp r2, #0 ; 0x0 759c: 08bd8010 popeq {r4, pc} return; if ( !_States_Is_ready( executing->current_state ) ) 75a0: e5943010 ldr r3, [r4, #16] 75a4: e3530000 cmp r3, #0 ; 0x0 75a8: 18bd8010 popne {r4, pc} /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 75ac: e594307c ldr r3, [r4, #124] 75b0: e3530001 cmp r3, #1 ; 0x1 75b4: 38bd8010 popcc {r4, pc} 75b8: e3530002 cmp r3, #2 ; 0x2 75bc: 9a00000a bls 75ec <_Thread_Tickle_timeslice+0x64> 75c0: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 75c4: 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 ) 75c8: e5943078 ldr r3, [r4, #120] <== NOT EXECUTED 75cc: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 75d0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 75d4: e5843078 str r3, [r4, #120] <== NOT EXECUTED 75d8: 18bd8010 popne {r4, pc} <== NOT EXECUTED (*executing->budget_callout)( executing ); 75dc: e1a00004 mov r0, r4 <== NOT EXECUTED 75e0: e1a0e00f mov lr, pc <== NOT EXECUTED 75e4: e594f080 ldr pc, [r4, #128] <== NOT EXECUTED 75e8: 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 ) { 75ec: e5943078 ldr r3, [r4, #120] 75f0: e2433001 sub r3, r3, #1 ; 0x1 75f4: e3530000 cmp r3, #0 ; 0x0 75f8: e5843078 str r3, [r4, #120] 75fc: c8bd8010 popgt {r4, pc} _Thread_Reset_timeslice(); 7600: eb000c6b bl a7b4 <_Thread_Reset_timeslice> executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 7604: e59f300c ldr r3, [pc, #12] ; 7618 <_Thread_Tickle_timeslice+0x90> 7608: e5932000 ldr r2, [r3] 760c: e5842078 str r2, [r4, #120] 7610: e8bd8010 pop {r4, pc} 7614: 00016104 .word 0x00016104 7618: 00016004 .word 0x00016004 00006210 <_Thread_blocking_operation_Cancel>: /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 6210: e5913050 ldr r3, [r1, #80] <== NOT EXECUTED void _Thread_blocking_operation_Cancel( Thread_blocking_operation_States sync_state, Thread_Control *the_thread, ISR_Level level ) { 6214: e92d4010 push {r4, lr} <== NOT EXECUTED /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 6218: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED void _Thread_blocking_operation_Cancel( Thread_blocking_operation_States sync_state, Thread_Control *the_thread, ISR_Level level ) { 621c: e1a04001 mov r4, r1 <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 6220: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 6224: e5841044 str r1, [r4, #68] <== NOT EXECUTED /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 6228: 0a000006 beq 6248 <_Thread_blocking_operation_Cancel+0x38> <== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); } else _ISR_Enable( level ); 622c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 6230: e3a01201 mov r1, #268435456 ; 0x10000000 <== NOT EXECUTED 6234: e2811bff add r1, r1, #261120 ; 0x3fc00 <== NOT EXECUTED 6238: e1a00004 mov r0, r4 <== NOT EXECUTED 623c: e2811ffe add r1, r1, #1016 ; 0x3f8 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 6240: e8bd4010 pop {r4, lr} <== NOT EXECUTED 6244: ea000070 b 640c <_Thread_Clear_state> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 6248: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 624c: e5843050 str r3, [r4, #80] <== NOT EXECUTED * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 6250: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 6254: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED 6258: eb000667 bl 7bfc <_Watchdog_Remove> <== NOT EXECUTED 625c: eafffff3 b 6230 <_Thread_blocking_operation_Cancel+0x20> <== NOT EXECUTED 00006df4 <_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 ) { 6df4: 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); 6df8: 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; 6dfc: 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 ) { 6e00: e1a07001 mov r7, r1 6e04: e1a08000 mov r8, r0 6e08: e5813038 str r3, [r1, #56] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 6e0c: 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; 6e10: 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 ) ) 6e14: e3140020 tst r4, #32 ; 0x20 6e18: 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); 6e1c: 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 ) { 6e20: 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; 6e24: 11a02201 lslne r2, r1, #4 6e28: 10423101 subne r3, r2, r1, lsl #2 6e2c: 10882003 addne r2, r8, r3 the_chain->last = _Chain_Head(the_chain); 6e30: 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; 6e34: e5986038 ldr r6, [r8, #56] 6e38: 159f91d4 ldrne r9, [pc, #468] ; 7014 <_Thread_queue_Enqueue_priority+0x220> restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 6e3c: 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 ) ) 6e40: 1a000028 bne 6ee8 <_Thread_queue_Enqueue_priority+0xf4> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 6e44: e1a03081 lsl r3, r1, #1 6e48: e0833001 add r3, r3, r1 6e4c: e2833001 add r3, r3, #1 ; 0x1 6e50: 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; 6e54: e0422101 sub r2, r2, r1, lsl #2 6e58: e1a03103 lsl r3, r3, #2 6e5c: e0880003 add r0, r8, r3 6e60: 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 ); 6e64: e10f5000 mrs r5, CPSR 6e68: e38530c0 orr r3, r5, #192 ; 0xc0 6e6c: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->first; 6e70: e5921000 ldr r1, [r2] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 6e74: e1510000 cmp r1, r0 6e78: 1a00000f bne 6ebc <_Thread_queue_Enqueue_priority+0xc8> 6e7c: ea000061 b 7008 <_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; 6e80: e5911000 ldr r1, [r1] if ( _Chain_Is_tail( header, (Chain_Node *)search_thread ) ) 6e84: e1510000 cmp r1, r0 6e88: 0a00000e beq 6ec8 <_Thread_queue_Enqueue_priority+0xd4> break; search_priority = search_thread->current_priority; 6e8c: e591c014 ldr ip, [r1, #20] if ( priority <= search_priority ) 6e90: e154000c cmp r4, ip 6e94: 9a00000b bls 6ec8 <_Thread_queue_Enqueue_priority+0xd4> break; #endif _ISR_Flash( level ); 6e98: e10f3000 mrs r3, CPSR 6e9c: e129f005 msr CPSR_fc, r5 6ea0: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 6ea4: e5913010 ldr r3, [r1, #16] 6ea8: e1160003 tst r6, r3 6eac: 0a000049 beq 6fd8 <_Thread_queue_Enqueue_priority+0x1e4> _ISR_Enable( level ); goto restart_forward_search; } search_thread = 6eb0: 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 ) ) { 6eb4: e1510000 cmp r1, r0 6eb8: 0a000002 beq 6ec8 <_Thread_queue_Enqueue_priority+0xd4> search_priority = search_thread->current_priority; 6ebc: e591c014 ldr ip, [r1, #20] if ( priority <= search_priority ) 6ec0: e154000c cmp r4, ip 6ec4: 8affffed bhi 6e80 <_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 ) ) { 6ec8: e1a06005 mov r6, r5 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 6ecc: e5980030 ldr r0, [r8, #48] 6ed0: e3500001 cmp r0, #1 ; 0x1 6ed4: 0a000034 beq 6fac <_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; 6ed8: e58a6000 str r6, [sl] <== NOT EXECUTED return the_thread_queue->sync_state; } 6edc: e8bd07f0 pop {r4, r5, r6, r7, r8, r9, sl} 6ee0: 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 ); 6ee4: 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; 6ee8: e5d93000 ldrb r3, [r9] 6eec: e283c001 add ip, r3, #1 ; 0x1 _ISR_Disable( level ); 6ef0: e10f5000 mrs r5, CPSR 6ef4: e38530c0 orr r3, r5, #192 ; 0xc0 6ef8: e129f003 msr CPSR_fc, r3 search_thread = (Thread_Control *) header->last; 6efc: e5901000 ldr r1, [r0] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 6f00: e1520001 cmp r2, r1 6f04: 0a000018 beq 6f6c <_Thread_queue_Enqueue_priority+0x178> search_priority = search_thread->current_priority; 6f08: e591c014 ldr ip, [r1, #20] if ( priority >= search_priority ) 6f0c: e154000c cmp r4, ip 6f10: 2a000015 bcs 6f6c <_Thread_queue_Enqueue_priority+0x178> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 6f14: e5911004 ldr r1, [r1, #4] if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 6f18: e1520001 cmp r2, r1 6f1c: 1a00000f bne 6f60 <_Thread_queue_Enqueue_priority+0x16c> 6f20: ea000011 b 6f6c <_Thread_queue_Enqueue_priority+0x178> break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 6f24: e10f3000 mrs r3, CPSR 6f28: e129f005 msr CPSR_fc, r5 6f2c: e129f003 msr CPSR_fc, r3 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 6f30: e5913010 ldr r3, [r1, #16] 6f34: e1160003 tst r6, r3 6f38: 0affffe9 beq 6ee4 <_Thread_queue_Enqueue_priority+0xf0> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 6f3c: 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 ) ) { 6f40: e1510002 cmp r1, r2 6f44: 0a000008 beq 6f6c <_Thread_queue_Enqueue_priority+0x178> search_priority = search_thread->current_priority; 6f48: e591c014 ldr ip, [r1, #20] if ( priority >= search_priority ) 6f4c: e154000c cmp r4, ip 6f50: 2a000005 bcs 6f6c <_Thread_queue_Enqueue_priority+0x178> break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 6f54: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 6f58: e1510002 cmp r1, r2 <== NOT EXECUTED 6f5c: 0a000002 beq 6f6c <_Thread_queue_Enqueue_priority+0x178> <== NOT EXECUTED break; search_priority = search_thread->current_priority; 6f60: e591c014 ldr ip, [r1, #20] if ( priority >= search_priority ) 6f64: e154000c cmp r4, ip 6f68: 3affffed bcc 6f24 <_Thread_queue_Enqueue_priority+0x130> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 6f6c: e5980030 ldr r0, [r8, #48] 6f70: e3500001 cmp r0, #1 ; 0x1 restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 6f74: e1a06005 mov r6, r5 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 6f78: 1affffd6 bne 6ed8 <_Thread_queue_Enqueue_priority+0xe4> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 6f7c: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 6f80: 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; 6f84: e5883030 str r3, [r8, #48] if ( priority == search_priority ) 6f88: 0a000014 beq 6fe0 <_Thread_queue_Enqueue_priority+0x1ec> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 6f8c: e5913000 ldr r3, [r1] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 6f90: 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; 6f94: 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; 6f98: 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; 6f9c: e5817000 str r7, [r1] next_node->previous = the_node; 6fa0: e5837004 str r7, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 6fa4: e129f005 msr CPSR_fc, r5 6fa8: eaffffcb b 6edc <_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; 6fac: e3a03000 mov r3, #0 ; 0x0 if ( priority == search_priority ) 6fb0: 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; 6fb4: e5883030 str r3, [r8, #48] if ( priority == search_priority ) 6fb8: 0a000008 beq 6fe0 <_Thread_queue_Enqueue_priority+0x1ec> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 6fbc: e5913004 ldr r3, [r1, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 6fc0: 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; 6fc4: 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; 6fc8: e5837000 str r7, [r3] search_node->previous = the_node; 6fcc: e5817004 str r7, [r1, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 6fd0: e129f005 msr CPSR_fc, r5 6fd4: eaffffc0 b 6edc <_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 ); 6fd8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 6fdc: eaffffa0 b 6e64 <_Thread_queue_Enqueue_priority+0x70> <== NOT EXECUTED 6fe0: 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; 6fe4: e5932004 ldr r2, [r3, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 6fe8: e5873000 str r3, [r7] the_node->previous = previous_node; 6fec: e5872004 str r2, [r7, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 6ff0: 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; 6ff4: e5827000 str r7, [r2] search_node->previous = the_node; 6ff8: e5837004 str r7, [r3, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 6ffc: e129f006 msr CPSR_fc, r6 7000: e3a00001 mov r0, #1 ; 0x1 7004: eaffffb4 b 6edc <_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 ) ) { 7008: e1a06005 mov r6, r5 700c: e3e0c000 mvn ip, #0 ; 0x0 7010: eaffffad b 6ecc <_Thread_queue_Enqueue_priority+0xd8> 7014: 000144f0 .word 0x000144f0 0000b208 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { b208: e92d4010 push {r4, lr} b20c: e1a04001 mov r4, r1 ISR_Level level; _ISR_Disable( level ); b210: e10f0000 mrs r0, CPSR b214: e38030c0 orr r3, r0, #192 ; 0xc0 b218: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { b21c: e5913010 ldr r3, [r1, #16] b220: e3c334ff bic r3, r3, #-16777216 ; 0xff000000 b224: e3c3373f bic r3, r3, #16515072 ; 0xfc0000 b228: e3c33c41 bic r3, r3, #16640 ; 0x4100 b22c: e3c3301f bic r3, r3, #31 ; 0x1f b230: e3530000 cmp r3, #0 ; 0x0 b234: 0a00000f beq b278 <_Thread_queue_Extract_fifo+0x70> _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { b238: e5913050 ldr r3, [r1, #80] { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; b23c: e5942004 ldr r2, [r4, #4] ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; b240: e5911000 ldr r1, [r1] b244: e3530002 cmp r3, #2 ; 0x2 return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; b248: e3a03000 mov r3, #0 ; 0x0 previous = the_node->previous; next->previous = previous; previous->next = next; b24c: e5821000 str r1, [r2] b250: e5843044 str r3, [r4, #68] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; b254: e5812004 str r2, [r1, #4] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { b258: 0a000008 beq b280 <_Thread_queue_Extract_fifo+0x78> _ISR_Enable( level ); b25c: e129f000 msr CPSR_fc, r0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); b260: e3a01201 mov r1, #268435456 ; 0x10000000 b264: e2811bff add r1, r1, #261120 ; 0x3fc00 b268: e1a00004 mov r0, r4 b26c: e2811ffe add r1, r1, #1016 ; 0x3f8 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } b270: e8bd4010 pop {r4, lr} b274: eaffec64 b 640c <_Thread_Clear_state> ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); b278: 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 } b27c: e8bd8010 pop {r4, pc} <== NOT EXECUTED b280: e3a03003 mov r3, #3 ; 0x3 b284: e5843050 str r3, [r4, #80] if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); b288: e129f000 msr CPSR_fc, r0 (void) _Watchdog_Remove( &the_thread->Timer ); b28c: e2840048 add r0, r4, #72 ; 0x48 b290: ebfff259 bl 7bfc <_Watchdog_Remove> b294: eafffff1 b b260 <_Thread_queue_Extract_fifo+0x58> 0000a570 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, bool requeuing ) { a570: e92d4070 push {r4, r5, r6, lr} a574: e1a04001 mov r4, r1 a578: 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 ); a57c: e10fc000 mrs ip, CPSR a580: e38c30c0 orr r3, ip, #192 ; 0xc0 a584: e129f003 msr CPSR_fc, r3 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { a588: e5913010 ldr r3, [r1, #16] a58c: e3c334ff bic r3, r3, #-16777216 ; 0xff000000 a590: e3c3373f bic r3, r3, #16515072 ; 0xfc0000 a594: e3c33c41 bic r3, r3, #16640 ; 0x4100 a598: e3c3301f bic r3, r3, #31 ; 0x1f a59c: e3530000 cmp r3, #0 ; 0x0 a5a0: 0a000023 beq a634 <_Thread_queue_Extract_priority_helper+0xc4> */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); a5a4: e5911038 ldr r1, [r1, #56] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a5a8: e284303c add r3, r4, #60 ; 0x3c a5ac: e1510003 cmp r1, r3 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; a5b0: 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; a5b4: 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; a5b8: 05832000 streq r2, [r3] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a5bc: 0a00000e beq a5fc <_Thread_queue_Extract_priority_helper+0x8c> new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; a5c0: e5945040 ldr r5, [r4, #64] new_second_node = new_first_node->next; a5c4: e5910000 ldr r0, [r1] previous_node->next = new_first_node; next_node->previous = new_first_node; a5c8: 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; a5cc: e5831000 str r1, [r3] next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; a5d0: e881000c stm r1, {r2, r3} if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { a5d4: e5942038 ldr r2, [r4, #56] a5d8: e5943040 ldr r3, [r4, #64] a5dc: e1520003 cmp r2, r3 a5e0: 0a000005 beq a5fc <_Thread_queue_Extract_priority_helper+0x8c> new_second_node->previous = _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); a5e4: 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 = a5e8: e2813038 add r3, r1, #56 ; 0x38 a5ec: e5803004 str r3, [r0, #4] _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; a5f0: e5810038 str r0, [r1, #56] new_first_thread->Wait.Block2n.last = last_node; a5f4: e5815040 str r5, [r1, #64] last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); a5f8: e5852000 str r2, [r5] /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { a5fc: e3560000 cmp r6, #0 ; 0x0 a600: 1a000009 bne a62c <_Thread_queue_Extract_priority_helper+0xbc> _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a604: e5943050 ldr r3, [r4, #80] a608: e3530002 cmp r3, #2 ; 0x2 a60c: 0a00000a beq a63c <_Thread_queue_Extract_priority_helper+0xcc> _ISR_Enable( level ); a610: e129f00c msr CPSR_fc, ip a614: e3a01201 mov r1, #268435456 ; 0x10000000 a618: e2811bff add r1, r1, #261120 ; 0x3fc00 a61c: e1a00004 mov r0, r4 a620: e2811ffe add r1, r1, #1016 ; 0x3f8 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a624: e8bd4070 pop {r4, r5, r6, lr} a628: eaffef77 b 640c <_Thread_Clear_state> /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { _ISR_Enable( level ); a62c: e129f00c msr CPSR_fc, ip a630: 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 ); a634: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a638: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a63c: e3a03003 mov r3, #3 ; 0x3 <== NOT EXECUTED a640: 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 ); a644: e129f00c msr CPSR_fc, ip <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); a648: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a64c: ebfff56a bl 7bfc <_Watchdog_Remove> <== NOT EXECUTED a650: eaffffef b a614 <_Thread_queue_Extract_priority_helper+0xa4> <== NOT EXECUTED 0000a654 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { a654: e1a01000 mov r1, r0 Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; a658: e5900044 ldr r0, [r0, #68] * If it is not satisfied, then it is "nothing happened" and * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && a65c: e590c030 ldr ip, [r0, #48] a660: e35c0000 cmp ip, #0 ; 0x0 a664: 0a000003 beq a678 <_Thread_queue_Process_timeout+0x24> a668: e59f302c ldr r3, [pc, #44] ; a69c <_Thread_queue_Process_timeout+0x48> <== NOT EXECUTED a66c: e5932000 ldr r2, [r3] <== NOT EXECUTED a670: e1510002 cmp r1, r2 <== NOT EXECUTED a674: 0a000002 beq a684 <_Thread_queue_Process_timeout+0x30> <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a678: e590303c ldr r3, [r0, #60] a67c: e5813034 str r3, [r1, #52] _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); a680: eaffffb4 b a558 <_Thread_queue_Extract> * a timeout is not allowed to occur. */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { a684: e35c0003 cmp ip, #3 ; 0x3 <== NOT EXECUTED the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a688: 1590303c ldrne r3, [r0, #60] <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a68c: 13a02002 movne r2, #2 ; 0x2 <== NOT EXECUTED */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a690: 15813034 strne r3, [r1, #52] <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a694: 15802030 strne r2, [r0, #48] <== NOT EXECUTED a698: e12fff1e bx lr <== NOT EXECUTED a69c: 00016104 .word 0x00016104 00012bfc <_Timer_Server_body>: * @param[in] ignored is the the task argument that is ignored */ Thread _Timer_Server_body( uint32_t ignored ) { 12bfc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; 12c00: e59f01cc ldr r0, [pc, #460] ; 12dd4 <_Timer_Server_body+0x1d8> 12c04: e59f81cc ldr r8, [pc, #460] ; 12dd8 <_Timer_Server_body+0x1dc> 12c08: e5902000 ldr r2, [r0] _Timer_Server_seconds_last_time = _TOD_Seconds_since_epoch; 12c0c: e59f01c8 ldr r0, [pc, #456] ; 12ddc <_Timer_Server_body+0x1e0> 12c10: e5983000 ldr r3, [r8] * @param[in] ignored is the the task argument that is ignored */ Thread _Timer_Server_body( uint32_t ignored ) { 12c14: e24dd00c sub sp, sp, #12 ; 0xc /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; 12c18: e59f91c0 ldr r9, [pc, #448] ; 12de0 <_Timer_Server_body+0x1e4> _Timer_Server_seconds_last_time = _TOD_Seconds_since_epoch; 12c1c: e59fb1c0 ldr fp, [pc, #448] ; 12de4 <_Timer_Server_body+0x1e8> 12c20: e5901000 ldr r1, [r0] 12c24: e2833001 add r3, r3, #1 ; 0x1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 12c28: e28d5004 add r5, sp, #4 ; 0x4 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 12c2c: e3a04000 mov r4, #0 ; 0x0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 12c30: e1a0600d mov r6, sp /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; 12c34: e5892000 str r2, [r9] _Timer_Server_seconds_last_time = _TOD_Seconds_since_epoch; 12c38: e58b1000 str r1, [fp] 12c3c: e5883000 str r3, [r8] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 12c40: e58d5000 str r5, [sp] the_chain->permanent_null = NULL; 12c44: e98d2010 stmib sp, {r4, sp} /* * Insert the timers that were inserted before we got to run. * This should be done with dispatching disabled. */ _Thread_Disable_dispatch(); _Timer_Server_process_insertions(); 12c48: ebffffce bl 12b88 <_Timer_Server_process_insertions> _Thread_Enable_dispatch(); 12c4c: eb000b48 bl 15974 <_Thread_Enable_dispatch> 12c50: e59fa190 ldr sl, [pc, #400] ; 12de8 <_Timer_Server_body+0x1ec> if ( watch == NULL ) { _ISR_Enable( level ); break; } watch->state = WATCHDOG_INACTIVE; 12c54: e1a07004 mov r7, r4 12c58: e5983000 ldr r3, [r8] 12c5c: e2833001 add r3, r3, #1 ; 0x1 12c60: e5883000 str r3, [r8] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( _Timer_Server, STATES_DELAYING ); 12c64: e3a01008 mov r1, #8 ; 0x8 12c68: e59a0000 ldr r0, [sl] 12c6c: eb000e27 bl 16510 <_Thread_Set_state> */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 12c70: e59f2174 ldr r2, [pc, #372] ; 12dec <_Timer_Server_body+0x1f0> _Timer_Server_reset_ticks_timer(); 12c74: e59f0174 ldr r0, [pc, #372] ; 12df0 <_Timer_Server_body+0x1f4> 12c78: e5923000 ldr r3, [r2] 12c7c: e1530000 cmp r3, r0 12c80: 0a000006 beq 12ca0 <_Timer_Server_body+0xa4> 12c84: e59f215c ldr r2, [pc, #348] ; 12de8 <_Timer_Server_body+0x1ec> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 12c88: e5933010 ldr r3, [r3, #16] 12c8c: e5921000 ldr r1, [r2] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 12c90: e59f015c ldr r0, [pc, #348] ; 12df4 <_Timer_Server_body+0x1f8> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 12c94: e5813054 str r3, [r1, #84] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 12c98: e2811048 add r1, r1, #72 ; 0x48 12c9c: eb0010ff bl 170a0 <_Watchdog_Insert> 12ca0: e59f0150 ldr r0, [pc, #336] ; 12df8 <_Timer_Server_body+0x1fc> _Timer_Server_reset_seconds_timer(); 12ca4: e59f2150 ldr r2, [pc, #336] ; 12dfc <_Timer_Server_body+0x200> 12ca8: e5903000 ldr r3, [r0] 12cac: e1530002 cmp r3, r2 12cb0: 0a000004 beq 12cc8 <_Timer_Server_body+0xcc> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 12cb4: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 12cb8: e59f1140 ldr r1, [pc, #320] ; 12e00 <_Timer_Server_body+0x204> <== NOT EXECUTED 12cbc: e59f0140 ldr r0, [pc, #320] ; 12e04 <_Timer_Server_body+0x208> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 12cc0: e581300c str r3, [r1, #12] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 12cc4: eb0010f5 bl 170a0 <_Watchdog_Insert> <== NOT EXECUTED _Thread_Enable_dispatch(); 12cc8: eb000b29 bl 15974 <_Thread_Enable_dispatch> 12ccc: e5983000 ldr r3, [r8] 12cd0: e2833001 add r3, r3, #1 ; 0x1 12cd4: e5883000 str r3, [r8] /* * At this point, at least one of the timers this task relies * upon has fired. Stop them both while we process any outstanding * timers. Before we block, we will restart them. */ _Timer_Server_stop_ticks_timer(); 12cd8: e59a0000 ldr r0, [sl] 12cdc: e2800048 add r0, r0, #72 ; 0x48 12ce0: eb00115d bl 1725c <_Watchdog_Remove> _Timer_Server_stop_seconds_timer(); 12ce4: e59f0114 ldr r0, [pc, #276] ; 12e00 <_Timer_Server_body+0x204> 12ce8: eb00115b bl 1725c <_Watchdog_Remove> ) { Watchdog_Interval snapshot; Watchdog_Interval ticks; snapshot = _Watchdog_Ticks_since_boot; 12cec: e59f30e0 ldr r3, [pc, #224] ; 12dd4 <_Timer_Server_body+0x1d8> if ( snapshot >= _Timer_Server_ticks_last_time ) 12cf0: e5991000 ldr r1, [r9] ) { Watchdog_Interval snapshot; Watchdog_Interval ticks; snapshot = _Watchdog_Ticks_since_boot; 12cf4: e593c000 ldr ip, [r3] if ( snapshot >= _Timer_Server_ticks_last_time ) 12cf8: e15c0001 cmp ip, r1 ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; 12cfc: 31e03001 mvncc r3, r1 Watchdog_Interval snapshot; Watchdog_Interval ticks; snapshot = _Watchdog_Ticks_since_boot; if ( snapshot >= _Timer_Server_ticks_last_time ) ticks = snapshot - _Timer_Server_ticks_last_time; 12d00: 2061100c rsbcs r1, r1, ip else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; 12d04: 3083100c addcc r1, r3, ip _Timer_Server_ticks_last_time = snapshot; _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 12d08: e59f00dc ldr r0, [pc, #220] ; 12dec <_Timer_Server_body+0x1f0> 12d0c: e1a0200d mov r2, sp if ( snapshot >= _Timer_Server_ticks_last_time ) ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; _Timer_Server_ticks_last_time = snapshot; 12d10: e589c000 str ip, [r9] _Watchdog_Adjust_to_chain( &_Timer_Ticks_chain, ticks, to_fire ); 12d14: eb0010b3 bl 16fe8 <_Watchdog_Adjust_to_chain> /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the _Timer_Seconds_chain to indicate this. */ snapshot = _TOD_Seconds_since_epoch; 12d18: e59f00bc ldr r0, [pc, #188] ; 12ddc <_Timer_Server_body+0x1e0> if ( snapshot > _Timer_Server_seconds_last_time ) { 12d1c: e59b2000 ldr r2, [fp] /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the _Timer_Seconds_chain to indicate this. */ snapshot = _TOD_Seconds_since_epoch; 12d20: e5904000 ldr r4, [r0] if ( snapshot > _Timer_Server_seconds_last_time ) { 12d24: e1540002 cmp r4, r2 12d28: 8a00001f bhi 12dac <_Timer_Server_body+0x1b0> * TOD has been set forward. */ ticks = snapshot - _Timer_Server_seconds_last_time; _Watchdog_Adjust_to_chain( &_Timer_Seconds_chain, ticks, to_fire ); } else if ( snapshot < _Timer_Server_seconds_last_time ) { 12d2c: 3a000023 bcc 12dc0 <_Timer_Server_body+0x1c4> * TOD has been set backwards. */ ticks = _Timer_Server_seconds_last_time - snapshot; _Watchdog_Adjust( &_Timer_Seconds_chain, WATCHDOG_BACKWARD, ticks ); } _Timer_Server_seconds_last_time = snapshot; 12d30: e58b4000 str r4, [fp] _Timer_Server_process_seconds_chain( &to_fire ); /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 12d34: ebffff93 bl 12b88 <_Timer_Server_process_insertions> /* * Enable dispatching to process the set that are ready "to fire." */ _Thread_Enable_dispatch(); 12d38: eb000b0d bl 15974 <_Thread_Enable_dispatch> */ while (1) { Watchdog_Control *watch; ISR_Level level; _ISR_Disable( level ); 12d3c: e10f1000 mrs r1, CPSR 12d40: e38130c0 orr r3, r1, #192 ; 0xc0 12d44: e129f003 msr CPSR_fc, r3 12d48: e59d2000 ldr r2, [sp] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 12d4c: e1550002 cmp r5, r2 12d50: 0a000013 beq 12da4 <_Timer_Server_body+0x1a8> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 12d54: e5923000 ldr r3, [r2] the_chain->first = new_first; 12d58: e58d3000 str r3, [sp] new_first->previous = _Chain_Head(the_chain); 12d5c: e5836004 str r6, [r3, #4] 12d60: ea000002 b 12d70 <_Timer_Server_body+0x174> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 12d64: e5933000 ldr r3, [r3] <== NOT EXECUTED the_chain->first = new_first; 12d68: e58d3000 str r3, [sp] <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 12d6c: e5836004 str r6, [r3, #4] <== NOT EXECUTED if ( watch == NULL ) { _ISR_Enable( level ); break; } watch->state = WATCHDOG_INACTIVE; 12d70: e5827008 str r7, [r2, #8] _ISR_Enable( level ); 12d74: e129f001 msr CPSR_fc, r1 (*watch->routine)( watch->id, watch->user_data ); 12d78: e2820020 add r0, r2, #32 ; 0x20 12d7c: e8900003 ldm r0, {r0, r1} 12d80: e1a0e00f mov lr, pc 12d84: e592f01c ldr pc, [r2, #28] */ while (1) { Watchdog_Control *watch; ISR_Level level; _ISR_Disable( level ); 12d88: e10f1000 mrs r1, CPSR 12d8c: e38130c0 orr r3, r1, #192 ; 0xc0 12d90: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 12d94: e59d3000 ldr r3, [sp] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 12d98: e1550003 cmp r5, r3 watch = (Watchdog_Control *) _Chain_Get_unprotected( &to_fire ); 12d9c: e1a02003 mov r2, r3 12da0: 1affffef bne 12d64 <_Timer_Server_body+0x168> if ( watch == NULL ) { _ISR_Enable( level ); 12da4: e129f001 msr CPSR_fc, r1 12da8: eaffffaa b 12c58 <_Timer_Server_body+0x5c> /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ ticks = snapshot - _Timer_Server_seconds_last_time; _Watchdog_Adjust_to_chain( &_Timer_Seconds_chain, ticks, to_fire ); 12dac: e0621004 rsb r1, r2, r4 12db0: e59f0040 ldr r0, [pc, #64] ; 12df8 <_Timer_Server_body+0x1fc> 12db4: e1a0200d mov r2, sp 12db8: eb00108a bl 16fe8 <_Watchdog_Adjust_to_chain> 12dbc: eaffffdb b 12d30 <_Timer_Server_body+0x134> /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ ticks = _Timer_Server_seconds_last_time - snapshot; _Watchdog_Adjust( &_Timer_Seconds_chain, WATCHDOG_BACKWARD, ticks ); 12dc0: e0642002 rsb r2, r4, r2 <== NOT EXECUTED 12dc4: e59f002c ldr r0, [pc, #44] ; 12df8 <_Timer_Server_body+0x1fc> <== NOT EXECUTED 12dc8: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 12dcc: eb001056 bl 16f2c <_Watchdog_Adjust> <== NOT EXECUTED 12dd0: eaffffd6 b 12d30 <_Timer_Server_body+0x134> <== NOT EXECUTED 12dd4: 000314e4 .word 0x000314e4 12dd8: 0003138c .word 0x0003138c 12ddc: 00031414 .word 0x00031414 12de0: 000312e4 .word 0x000312e4 12de4: 000312e0 .word 0x000312e0 12de8: 00031674 .word 0x00031674 12dec: 000312d4 .word 0x000312d4 12df0: 000312d8 .word 0x000312d8 12df4: 00031464 .word 0x00031464 12df8: 000312e8 .word 0x000312e8 12dfc: 000312ec .word 0x000312ec 12e00: 00031300 .word 0x00031300 12e04: 00031458 .word 0x00031458 00012b88 <_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) { 12b88: e52de004 push {lr} ; (str lr, [sp, #-4]!) Timer_Control *the_timer; while ( 1 ) { the_timer = (Timer_Control *) _Chain_Get( &_Timer_To_be_inserted ); 12b8c: e59f005c ldr r0, [pc, #92] ; 12bf0 <_Timer_Server_process_insertions+0x68> 12b90: eb000283 bl 135a4 <_Chain_Get> if ( the_timer == NULL ) 12b94: e3500000 cmp r0, #0 ; 0x0 12b98: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) break; if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { 12b9c: e5903038 ldr r3, [r0, #56] 12ba0: e3530001 cmp r3, #1 ; 0x1 12ba4: 0a00000c beq 12bdc <_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 ) { 12ba8: e3530003 cmp r3, #3 ; 0x3 <== NOT EXECUTED 12bac: 0a000005 beq 12bc8 <_Timer_Server_process_insertions+0x40> <== NOT EXECUTED } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 12bb0: ebfffff4 bl 12b88 <_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 ); 12bb4: e59f0034 ldr r0, [pc, #52] ; 12bf0 <_Timer_Server_process_insertions+0x68> 12bb8: eb000279 bl 135a4 <_Chain_Get> if ( the_timer == NULL ) 12bbc: e3500000 cmp r0, #0 ; 0x0 12bc0: 1afffff5 bne 12b9c <_Timer_Server_process_insertions+0x14> 12bc4: 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 ); 12bc8: e2801010 add r1, r0, #16 ; 0x10 <== NOT EXECUTED 12bcc: e59f0020 ldr r0, [pc, #32] ; 12bf4 <_Timer_Server_process_insertions+0x6c> <== NOT EXECUTED 12bd0: eb001132 bl 170a0 <_Watchdog_Insert> <== NOT EXECUTED } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 12bd4: ebffffeb bl 12b88 <_Timer_Server_process_insertions> <== NOT EXECUTED 12bd8: eafffff5 b 12bb4 <_Timer_Server_process_insertions+0x2c> <== NOT EXECUTED 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 ); 12bdc: e2801010 add r1, r0, #16 ; 0x10 12be0: e59f0010 ldr r0, [pc, #16] ; 12bf8 <_Timer_Server_process_insertions+0x70> 12be4: eb00112d bl 170a0 <_Watchdog_Insert> } /* * Insert the timers that have been requested to be inserted. */ _Timer_Server_process_insertions(); 12be8: ebffffe6 bl 12b88 <_Timer_Server_process_insertions> 12bec: eafffff0 b 12bb4 <_Timer_Server_process_insertions+0x2c> 12bf0: 000312f4 .word 0x000312f4 12bf4: 000312e8 .word 0x000312e8 12bf8: 000312d4 .word 0x000312d4 00022138 <_Timespec_Divide_by_integer>: void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 22138: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; 2213c: e3a0c5ee mov ip, #998244352 ; 0x3b800000 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; 22140: e5907000 ldr r7, [r0] <== NOT EXECUTED t *= TOD_NANOSECONDS_PER_SECOND; 22144: e28cc96b add ip, ip, #1753088 ; 0x1ac000 <== NOT EXECUTED 22148: e28ccc0a add ip, ip, #2560 ; 0xa00 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; 2214c: e1a08fc7 asr r8, r7, #31 <== NOT EXECUTED t *= TOD_NANOSECONDS_PER_SECOND; 22150: e086579c umull r5, r6, ip, r7 <== NOT EXECUTED 22154: e026689c mla r6, ip, r8, r6 <== NOT EXECUTED t += time->tv_nsec; 22158: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED 2215c: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 22160: e0950003 adds r0, r5, r3 <== NOT EXECUTED 22164: e1a07001 mov r7, r1 <== NOT EXECUTED 22168: e3a08000 mov r8, #0 ; 0x0 <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 2216c: e1a0a002 mov sl, r2 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 22170: e0a61004 adc r1, r6, r4 <== NOT EXECUTED 22174: e1a02007 mov r2, r7 <== NOT EXECUTED 22178: e1a03008 mov r3, r8 <== NOT EXECUTED 2217c: eb006d93 bl 3d7d0 <__udivdi3> <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 22180: e3a025ee mov r2, #998244352 ; 0x3b800000 <== NOT EXECUTED 22184: e282296b add r2, r2, #1753088 ; 0x1ac000 <== NOT EXECUTED 22188: e2822c0a add r2, r2, #2560 ; 0xa00 <== NOT EXECUTED 2218c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 22190: e1a04000 mov r4, r0 <== NOT EXECUTED 22194: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 22198: eb006d8c bl 3d7d0 <__udivdi3> <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 2219c: e3a025ee mov r2, #998244352 ; 0x3b800000 <== NOT EXECUTED 221a0: e282296b add r2, r2, #1753088 ; 0x1ac000 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 221a4: e58a0000 str r0, [sl] <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 221a8: e1a01005 mov r1, r5 <== NOT EXECUTED 221ac: e1a00004 mov r0, r4 <== NOT EXECUTED 221b0: e2822c0a add r2, r2, #2560 ; 0xa00 <== NOT EXECUTED 221b4: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 221b8: eb006ecc bl 3dcf0 <__umoddi3> <== NOT EXECUTED 221bc: e58a0004 str r0, [sl, #4] <== NOT EXECUTED } 221c0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 00012b3c <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 12b3c: e59f3040 ldr r3, [pc, #64] ; 12b84 <_Timespec_From_ticks+0x48> <== NOT EXECUTED 12b40: e5932000 ldr r2, [r3] <== NOT EXECUTED 12b44: e00c0092 mul ip, r2, r0 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 12b48: e59f3038 ldr r3, [pc, #56] ; 12b88 <_Timespec_From_ticks+0x4c> <== NOT EXECUTED 12b4c: e0802c93 umull r2, r0, r3, ip <== NOT EXECUTED 12b50: e1a00920 lsr r0, r0, #18 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 12b54: e1a03400 lsl r3, r0, #8 <== NOT EXECUTED 12b58: e0433180 sub r3, r3, r0, lsl #3 <== NOT EXECUTED 12b5c: e1a02303 lsl r2, r3, #6 <== NOT EXECUTED 12b60: e0632002 rsb r2, r3, r2 <== NOT EXECUTED 12b64: e0822000 add r2, r2, r0 <== NOT EXECUTED 12b68: e04cc302 sub ip, ip, r2, lsl #6 <== NOT EXECUTED 12b6c: e1a0338c lsl r3, ip, #7 <== NOT EXECUTED 12b70: e043310c sub r3, r3, ip, lsl #2 <== NOT EXECUTED 12b74: e083300c add r3, r3, ip <== NOT EXECUTED 12b78: e1a03183 lsl r3, r3, #3 <== NOT EXECUTED 12b7c: e8810009 stm r1, {r0, r3} <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 12b80: e12fff1e bx lr <== NOT EXECUTED 12b84: 00025f70 .word 0x00025f70 12b88: 431bde83 .word 0x431bde83 00012b8c <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) 12b8c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 12b90: 0a00000c beq 12bc8 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 12b94: e5903000 ldr r3, [r0] <== NOT EXECUTED 12b98: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12b9c: ba000009 blt 12bc8 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 12ba0: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED 12ba4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 12ba8: ba000006 blt 12bc8 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED 12bac: e3e03331 mvn r3, #-1006632960 ; 0xc4000000 <== NOT EXECUTED 12bb0: e2433865 sub r3, r3, #6619136 ; 0x650000 <== NOT EXECUTED 12bb4: e2433c36 sub r3, r3, #13824 ; 0x3600 <== NOT EXECUTED 12bb8: e1500003 cmp r0, r3 <== NOT EXECUTED 12bbc: 83a00000 movhi r0, #0 ; 0x0 <== NOT EXECUTED 12bc0: 93a00001 movls r0, #1 ; 0x1 <== NOT EXECUTED 12bc4: e12fff1e bx lr <== NOT EXECUTED 12bc8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 12bcc: e12fff1e bx lr <== NOT EXECUTED 00012bd0 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 12bd0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 12bd4: e5906000 ldr r6, [r0] <== NOT EXECUTED 12bd8: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 12bdc: 15904004 ldrne r4, [r0, #4] <== NOT EXECUTED 12be0: 1a000003 bne 12bf4 <_Timespec_To_ticks+0x24> <== NOT EXECUTED 12be4: e5904004 ldr r4, [r0, #4] <== NOT EXECUTED 12be8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 12bec: 01a00004 moveq r0, r4 <== NOT EXECUTED 12bf0: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 12bf4: e59f3034 ldr r3, [pc, #52] ; 12c30 <_Timespec_To_ticks+0x60> <== NOT EXECUTED 12bf8: e5935000 ldr r5, [r3] <== NOT EXECUTED 12bfc: e3a0093d mov r0, #999424 ; 0xf4000 <== NOT EXECUTED 12c00: e1a01005 mov r1, r5 <== NOT EXECUTED 12c04: e2800d09 add r0, r0, #576 ; 0x240 <== NOT EXECUTED 12c08: ebffb75b bl 97c <__aeabi_uidiv> <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 12c0c: e59f3020 ldr r3, [pc, #32] ; 12c34 <_Timespec_To_ticks+0x64> <== NOT EXECUTED 12c10: e0821493 umull r1, r2, r3, r4 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 12c14: e0040096 mul r4, r6, r0 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 12c18: e1a01005 mov r1, r5 <== NOT EXECUTED 12c1c: e1a00322 lsr r0, r2, #6 <== NOT EXECUTED 12c20: ebffb755 bl 97c <__aeabi_uidiv> <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 12c24: e0900004 adds r0, r0, r4 <== NOT EXECUTED 12c28: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED return ticks; return 1; } 12c2c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 12c30: 00025f70 .word 0x00025f70 12c34: 10624dd3 .word 0x10624dd3 0000d6b0 <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { d6b0: e92d4010 push {r4, lr} d6b4: e1a04000 mov r4, r0 _Chain_Extract( &the_extension->Node ); d6b8: eb001195 bl 11d14 <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) d6bc: e5943024 ldr r3, [r4, #36] d6c0: e3530000 cmp r3, #0 ; 0x0 d6c4: 08bd8010 popeq {r4, pc} _Chain_Extract( &the_extension->Switch.Node ); d6c8: e2840008 add r0, r4, #8 ; 0x8 <== NOT EXECUTED } d6cc: 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 ); d6d0: ea00118f b 11d14 <_Chain_Extract> <== NOT EXECUTED 000098ac <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 98ac: e92d41f0 push {r4, r5, r6, r7, r8, lr} 98b0: e1a07000 mov r7, r0 98b4: e1a04002 mov r4, r2 ISR_Level level; _ISR_Disable( level ); 98b8: e10fc000 mrs ip, CPSR 98bc: e38c30c0 orr r3, ip, #192 ; 0xc0 98c0: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 98c4: e1a06000 mov r6, r0 98c8: 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 ) ) { 98cc: e1500006 cmp r0, r6 98d0: 0a000019 beq 993c <_Watchdog_Adjust+0x90> switch ( direction ) { 98d4: e3510000 cmp r1, #0 ; 0x0 98d8: 1a000019 bne 9944 <_Watchdog_Adjust+0x98> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 98dc: e3520000 cmp r2, #0 ; 0x0 98e0: 0a000015 beq 993c <_Watchdog_Adjust+0x90> if ( units < _Watchdog_First( header )->delta_interval ) { 98e4: e5905010 ldr r5, [r0, #16] 98e8: e1520005 cmp r2, r5 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 98ec: e1a01000 mov r1, r0 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 98f0: 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 ) { 98f4: 2a000005 bcs 9910 <_Watchdog_Adjust+0x64> 98f8: ea000017 b 995c <_Watchdog_Adjust+0xb0> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 98fc: e0544005 subs r4, r4, r5 9900: 0a00000d beq 993c <_Watchdog_Adjust+0x90> if ( units < _Watchdog_First( header )->delta_interval ) { 9904: e5915010 ldr r5, [r1, #16] 9908: e1550004 cmp r5, r4 990c: 8a000012 bhi 995c <_Watchdog_Adjust+0xb0> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 9910: e5818010 str r8, [r1, #16] _ISR_Enable( level ); 9914: e129f00c msr CPSR_fc, ip _Watchdog_Tickle( header ); 9918: e1a00007 mov r0, r7 991c: eb0000ab bl 9bd0 <_Watchdog_Tickle> _ISR_Disable( level ); 9920: e10fc000 mrs ip, CPSR 9924: e38c30c0 orr r3, ip, #192 ; 0xc0 9928: e129f003 msr CPSR_fc, r3 992c: e5973000 ldr r3, [r7] if ( _Chain_Is_empty( header ) ) 9930: e1560003 cmp r6, r3 9934: e1a01003 mov r1, r3 9938: 1affffef bne 98fc <_Watchdog_Adjust+0x50> } break; } } _ISR_Enable( level ); 993c: e129f00c msr CPSR_fc, ip } 9940: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 9944: e3510001 cmp r1, #1 ; 0x1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 9948: 05903010 ldreq r3, [r0, #16] 994c: 00833002 addeq r3, r3, r2 9950: 05803010 streq r3, [r0, #16] } break; } } _ISR_Enable( level ); 9954: e129f00c msr CPSR_fc, ip } 9958: 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; 995c: e0643005 rsb r3, r4, r5 9960: e5813010 str r3, [r1, #16] 9964: eafffff4 b 993c <_Watchdog_Adjust+0x90> 00007a40 <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 7a40: e59f3144 ldr r3, [pc, #324] ; 7b8c <_Watchdog_Insert+0x14c> void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 7a44: e92d01f0 push {r4, r5, r6, r7, r8} 7a48: e1a04001 mov r4, r1 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 7a4c: e5935000 ldr r5, [r3] _ISR_Disable( level ); 7a50: e10f6000 mrs r6, CPSR 7a54: e38630c0 orr r3, r6, #192 ; 0xc0 7a58: 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 ) { 7a5c: e5913008 ldr r3, [r1, #8] 7a60: e3530000 cmp r3, #0 ; 0x0 7a64: 1a000041 bne 7b70 <_Watchdog_Insert+0x130> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 7a68: e59f8120 ldr r8, [pc, #288] ; 7b90 <_Watchdog_Insert+0x150> 7a6c: e5983000 ldr r3, [r8] if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 7a70: e3a02001 mov r2, #1 ; 0x1 _Watchdog_Sync_count++; 7a74: e2833001 add r3, r3, #1 ; 0x1 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 7a78: e5812008 str r2, [r1, #8] _Watchdog_Sync_count++; 7a7c: e5883000 str r3, [r8] 7a80: e59f710c ldr r7, [pc, #268] ; 7b94 <_Watchdog_Insert+0x154> restart: delta_interval = the_watchdog->initial; 7a84: e594c00c ldr ip, [r4, #12] */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 7a88: e35c0000 cmp ip, #0 ; 0x0 * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 7a8c: e5902000 ldr r2, [r0] ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 7a90: 0a000023 beq 7b24 <_Watchdog_Insert+0xe4> 7a94: e5923000 ldr r3, [r2] 7a98: e3530000 cmp r3, #0 ; 0x0 7a9c: 0a000020 beq 7b24 <_Watchdog_Insert+0xe4> break; if ( delta_interval < after->delta_interval ) { 7aa0: e5921010 ldr r1, [r2, #16] 7aa4: e15c0001 cmp ip, r1 7aa8: 3a000032 bcc 7b78 <_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 ); 7aac: e10f3000 mrs r3, CPSR 7ab0: e129f006 msr CPSR_fc, r6 7ab4: e129f003 msr CPSR_fc, r3 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 7ab8: e5943008 ldr r3, [r4, #8] 7abc: e3530001 cmp r3, #1 ; 0x1 7ac0: 1a000023 bne 7b54 <_Watchdog_Insert+0x114> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 7ac4: e5973000 ldr r3, [r7] 7ac8: e1550003 cmp r5, r3 if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 7acc: 2061c00c rsbcs ip, r1, ip if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 7ad0: 2a000010 bcs 7b18 <_Watchdog_Insert+0xd8> 7ad4: ea00002a b 7b84 <_Watchdog_Insert+0x144> */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 7ad8: e5923000 ldr r3, [r2] 7adc: e3530000 cmp r3, #0 ; 0x0 7ae0: 0a00000f beq 7b24 <_Watchdog_Insert+0xe4> break; if ( delta_interval < after->delta_interval ) { 7ae4: e5921010 ldr r1, [r2, #16] 7ae8: e151000c cmp r1, ip 7aec: 8a000021 bhi 7b78 <_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 ); 7af0: e10f3000 mrs r3, CPSR 7af4: e129f006 msr CPSR_fc, r6 7af8: e129f003 msr CPSR_fc, r3 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 7afc: e5943008 ldr r3, [r4, #8] 7b00: e3530001 cmp r3, #1 ; 0x1 if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 7b04: e061c00c rsb ip, r1, ip * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 7b08: 1a000011 bne 7b54 <_Watchdog_Insert+0x114> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 7b0c: e5973000 ldr r3, [r7] 7b10: e1550003 cmp r5, r3 7b14: 3a00001a bcc 7b84 <_Watchdog_Insert+0x144> */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 7b18: e35c0000 cmp ip, #0 ; 0x0 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 7b1c: e5922000 ldr r2, [r2] 7b20: 1affffec bne 7ad8 <_Watchdog_Insert+0x98> _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 7b24: e5921004 ldr r1, [r2, #4] the_watchdog->start_time = _Watchdog_Ticks_since_boot; 7b28: e59f3068 ldr r3, [pc, #104] ; 7b98 <_Watchdog_Insert+0x158> ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 7b2c: e5910000 ldr r0, [r1] 7b30: e5932000 ldr r2, [r3] RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 7b34: e3a03002 mov r3, #2 ; 0x2 after_node->next = the_node; 7b38: e5814000 str r4, [r1] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 7b3c: e5841004 str r1, [r4, #4] 7b40: e5842014 str r2, [r4, #20] 7b44: e5843008 str r3, [r4, #8] } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 7b48: 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; 7b4c: 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; 7b50: 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; 7b54: e5875000 str r5, [r7] _Watchdog_Sync_count--; 7b58: e5983000 ldr r3, [r8] 7b5c: e2433001 sub r3, r3, #1 ; 0x1 7b60: e5883000 str r3, [r8] _ISR_Enable( level ); 7b64: e129f006 msr CPSR_fc, r6 } 7b68: e8bd01f0 pop {r4, r5, r6, r7, r8} 7b6c: 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 ); 7b70: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED 7b74: eafffffb b 7b68 <_Watchdog_Insert+0x128> <== NOT EXECUTED if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; 7b78: e06c3001 rsb r3, ip, r1 7b7c: e5823010 str r3, [r2, #16] 7b80: eaffffe7 b 7b24 <_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; 7b84: e5875000 str r5, [r7] 7b88: eaffffbd b 7a84 <_Watchdog_Insert+0x44> 7b8c: 000160e0 .word 0x000160e0 7b90: 000161a0 .word 0x000161a0 7b94: 00016100 .word 0x00016100 7b98: 000161a4 .word 0x000161a4 00007d8c <_Workspace_Handler_initialization>: */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 7d8c: e92d4030 push {r4, r5, lr} uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 7d90: e2504000 subs r4, r0, #0 ; 0x0 */ void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 7d94: e1a05001 mov r5, r1 uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 7d98: 0a000010 beq 7de0 <_Workspace_Handler_initialization+0x54> 7d9c: e214c003 ands ip, r4, #3 ; 0x3 7da0: 1a00000e bne 7de0 <_Workspace_Handler_initialization+0x54> INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) 7da4: e59f3054 ldr r3, [pc, #84] ; 7e00 <_Workspace_Handler_initialization+0x74> 7da8: e5932000 ldr r2, [r3] 7dac: e5d21028 ldrb r1, [r2, #40] 7db0: e3510000 cmp r1, #0 ; 0x0 7db4: 1a00000d bne 7df0 <_Workspace_Handler_initialization+0x64> memset( starting_address, 0, size ); memory_available = _Heap_Initialize( 7db8: e1a01004 mov r1, r4 7dbc: e1a02005 mov r2, r5 7dc0: e59f003c ldr r0, [pc, #60] ; 7e04 <_Workspace_Handler_initialization+0x78> 7dc4: e3a03004 mov r3, #4 ; 0x4 7dc8: ebfff665 bl 5764 <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 7dcc: e3500000 cmp r0, #0 ; 0x0 7dd0: 18bd8030 popne {r4, r5, pc} _Internal_error_Occurred( 7dd4: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 7dd8: e3a02003 mov r2, #3 ; 0x3 <== NOT EXECUTED 7ddc: ebfff6eb bl 5990 <_Internal_error_Occurred> <== NOT EXECUTED ) { uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) _Internal_error_Occurred( 7de0: e3a00000 mov r0, #0 ; 0x0 7de4: e3a01001 mov r1, #1 ; 0x1 7de8: e3a02002 mov r2, #2 ; 0x2 7dec: ebfff6e7 bl 5990 <_Internal_error_Occurred> TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _Configuration_Table->do_zero_of_workspace ) memset( starting_address, 0, size ); 7df0: e1a0100c mov r1, ip <== NOT EXECUTED 7df4: e1a02005 mov r2, r5 <== NOT EXECUTED 7df8: eb000f55 bl bb54 <== NOT EXECUTED 7dfc: eaffffed b 7db8 <_Workspace_Handler_initialization+0x2c> <== NOT EXECUTED 7e00: 000160dc .word 0x000160dc 7e04: 0001606c .word 0x0001606c 00008d38 <__assert>: void __assert( const char *file, int line, const char *failedexpr ) { 8d38: e1a03002 mov r3, r2 <== NOT EXECUTED __assert_func (file, line, NULL, failedexpr); 8d3c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 8d40: eaffffe9 b 8cec <__assert_func> <== NOT EXECUTED 00020284 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 20284: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 20288: e12fff1e bx lr <== NOT EXECUTED 00013b24 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) _fini(); 13b24: e1a04000 mov r4, r0 13b28: eb00023c bl 14420 <___DTOR_END__> * We need to do the exit processing on the global reentrancy structure. * This has already been done on the per task reentrancy structure * associated with this task. */ libc_wrapup(); 13b2c: ebffffe2 bl 13abc rtems_shutdown_executive(status); 13b30: e1a00004 mov r0, r4 13b34: eb000040 bl 13c3c 13b38: eafffffe b 13b38 <_exit+0x14> <== NOT EXECUTED 0002ab5c <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 2ab5c: e1a00001 mov r0, r1 <== NOT EXECUTED 2ab60: e1a01002 mov r1, r2 <== NOT EXECUTED 2ab64: e1a02003 mov r2, r3 <== NOT EXECUTED 2ab68: eaffff72 b 2a938 <== NOT EXECUTED 0002012c <_getpid_r>: pid_t _getpid_r( struct _reent *ptr ) { return getpid(); } 2012c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 20130: e12fff1e bx lr <== NOT EXECUTED 00009160 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 9160: eaffffe4 b 90f8 <== NOT EXECUTED 0002027c <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 2027c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 20280: e12fff1e bx lr <== NOT EXECUTED 0001f410 <_link_r>: struct _reent *ptr, const char *existing, const char *new ) { return link( existing, new ); 1f410: e1a00001 mov r0, r1 <== NOT EXECUTED 1f414: e1a01002 mov r1, r2 <== NOT EXECUTED 1f418: eaffff6a b 1f1c8 <== NOT EXECUTED 00013aa4 <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 13aa4: e1a00001 mov r0, r1 <== NOT EXECUTED 13aa8: e1a01002 mov r1, r2 <== NOT EXECUTED 13aac: e1a02003 mov r2, r3 <== NOT EXECUTED 13ab0: eaffffbf b 139b4 <== NOT EXECUTED 0001f5f4 <_lstat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 1f5f4: e1a00001 mov r0, r1 <== NOT EXECUTED 1f5f8: e1a01002 mov r1, r2 <== NOT EXECUTED 1f5fc: eaffffc6 b 1f51c <== NOT EXECUTED 00001d58 <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 1d58: e1a00001 mov r0, r1 <== NOT EXECUTED 1d5c: e1a01002 mov r1, r2 <== NOT EXECUTED 1d60: e1a02003 mov r2, r3 <== NOT EXECUTED 1d64: eaffff55 b 1ac0 <== NOT EXECUTED 00013c10 <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 13c10: e1a00001 mov r0, r1 <== NOT EXECUTED 13c14: e1a01002 mov r1, r2 <== NOT EXECUTED 13c18: e1a02003 mov r2, r3 <== NOT EXECUTED 13c1c: eaffffc6 b 13b3c <== NOT EXECUTED 00013c20 <_realloc_r>: struct _reent *ignored, void *ptr, size_t size ) { return realloc( ptr, size ); 13c20: e1a00001 mov r0, r1 <== NOT EXECUTED 13c24: e1a01002 mov r1, r2 <== NOT EXECUTED 13c28: ea000012 b 13c78 <== NOT EXECUTED 0003e534 <_rename_r>: int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3e534: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3e538: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3e53c: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3e540: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3e544: e1a0100d mov r1, sp <== NOT EXECUTED int _rename_r( struct _reent *ptr, const char *old, const char *new ) { 3e548: e1a05002 mov r5, r2 <== NOT EXECUTED struct stat sb; int s; s = stat( old, &sb); 3e54c: ebff1c51 bl 5698 <== NOT EXECUTED if ( s < 0 ) 3e550: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3e554: ba00000a blt 3e584 <_rename_r+0x50> <== NOT EXECUTED return s; s = link( old, new ); 3e558: e1a01005 mov r1, r5 <== NOT EXECUTED 3e55c: e1a00004 mov r0, r4 <== NOT EXECUTED 3e560: ebff8318 bl 1f1c8 <== NOT EXECUTED if ( s < 0 ) 3e564: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3e568: ba000005 blt 3e584 <_rename_r+0x50> <== NOT EXECUTED return s; return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old ); 3e56c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 3e570: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 3e574: e3530901 cmp r3, #16384 ; 0x4000 <== NOT EXECUTED 3e578: 0a000003 beq 3e58c <_rename_r+0x58> <== NOT EXECUTED 3e57c: e1a00004 mov r0, r4 <== NOT EXECUTED 3e580: ebff8705 bl 2019c <== NOT EXECUTED } 3e584: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 3e588: 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 ); 3e58c: e1a00004 mov r0, r4 <== NOT EXECUTED 3e590: ebff85fb bl 1fd84 <== NOT EXECUTED 3e594: eafffffa b 3e584 <_rename_r+0x50> <== NOT EXECUTED 00005770 <_stat_r>: struct _reent *ptr, const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 5770: e1a00001 mov r0, r1 <== NOT EXECUTED 5774: e1a01002 mov r1, r2 <== NOT EXECUTED 5778: eaffffc6 b 5698 <== NOT EXECUTED 000202e8 <_unlink_r>: int _unlink_r( struct _reent *ptr, const char *path ) { return unlink( path ); 202e8: e1a00001 mov r0, r1 <== NOT EXECUTED 202ec: eaffffaa b 2019c <== NOT EXECUTED 0001d6c4 : int access( const char *path, int amode ) { 1d6c4: e92d4010 push {r4, lr} <== NOT EXECUTED 1d6c8: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED 1d6cc: e1a04001 mov r4, r1 <== NOT EXECUTED struct stat statbuf; if ( stat(path, &statbuf) ) 1d6d0: e1a0100d mov r1, sp <== NOT EXECUTED 1d6d4: ebff9fef bl 5698 <== NOT EXECUTED 1d6d8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1d6dc: 1a00000b bne 1d710 <== NOT EXECUTED return -1; if ( amode & R_OK ) { 1d6e0: e3140004 tst r4, #4 ; 0x4 <== NOT EXECUTED 1d6e4: 1a000006 bne 1d704 <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { 1d6e8: e3140002 tst r4, #2 ; 0x2 <== NOT EXECUTED 1d6ec: 1a00000e bne 1d72c <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { 1d6f0: e3140001 tst r4, #1 ; 0x1 <== NOT EXECUTED 1d6f4: 1a000007 bne 1d718 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IEXEC ) ) 1d6f8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return -1; } return 0; } 1d6fc: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED 1d700: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) 1d704: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1d708: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 1d70c: 1afffff5 bne 1d6e8 <== NOT EXECUTED if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 1d710: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1d714: eafffff8 b 1d6fc <== NOT EXECUTED 1d718: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1d71c: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED 1d720: 1afffff4 bne 1d6f8 <== NOT EXECUTED 1d724: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1d728: eafffff3 b 1d6fc <== NOT EXECUTED if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) 1d72c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1d730: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED 1d734: 1affffed bne 1d6f0 <== NOT EXECUTED return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 1d738: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1d73c: eaffffee b 1d6fc <== NOT EXECUTED 0001d9a4 : #include int chdir( const char *pathname ) { 1d9a4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 1d9a8: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED #include int chdir( const char *pathname ) { 1d9ac: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 1d9b0: e1a0200d mov r2, sp <== NOT EXECUTED 1d9b4: e1a03001 mov r3, r1 <== NOT EXECUTED 1d9b8: ebff9911 bl 3e04 <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 1d9bc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 1d9c0: e1a0400d mov r4, sp <== NOT EXECUTED pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 1d9c4: 1a000021 bne 1da50 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 1d9c8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1d9cc: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 1d9d0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d9d4: 0a000015 beq 1da30 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 1d9d8: e1a0000d mov r0, sp <== NOT EXECUTED 1d9dc: e1a0e00f mov lr, pc <== NOT EXECUTED 1d9e0: e12fff13 bx r3 <== NOT EXECUTED 1d9e4: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 1d9e8: 1a00001a bne 1da58 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 1d9ec: e59f5098 ldr r5, [pc, #152] ; 1da8c <== NOT EXECUTED 1d9f0: e5950000 ldr r0, [r5] <== NOT EXECUTED 1d9f4: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 1d9f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d9fc: 0a000004 beq 1da14 <== NOT EXECUTED 1da00: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1da04: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1da08: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 1da0c: 11a0e00f movne lr, pc <== NOT EXECUTED 1da10: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 1da14: e595c000 ldr ip, [r5] <== NOT EXECUTED 1da18: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 1da1c: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 1da20: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1da24: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 1da28: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1da2c: 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 ); 1da30: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1da34: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1da38: 11a0000d movne r0, sp <== NOT EXECUTED 1da3c: 11a0e00f movne lr, pc <== NOT EXECUTED 1da40: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1da44: eb003d40 bl 2cf4c <__errno> <== NOT EXECUTED 1da48: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1da4c: e5803000 str r3, [r0] <== NOT EXECUTED 1da50: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1da54: eafffff3 b 1da28 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 1da58: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1da5c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1da60: 0a000004 beq 1da78 <== NOT EXECUTED 1da64: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1da68: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1da6c: 11a0000d movne r0, sp <== NOT EXECUTED 1da70: 11a0e00f movne lr, pc <== NOT EXECUTED 1da74: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 1da78: eb003d33 bl 2cf4c <__errno> <== NOT EXECUTED 1da7c: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 1da80: e5803000 str r3, [r0] <== NOT EXECUTED 1da84: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1da88: eaffffe6 b 1da28 <== NOT EXECUTED 1da8c: 0003f168 .word 0x0003f168 00003bc0 : int chmod( const char *path, mode_t mode ) { 3bc0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 3bc4: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 3bc8: 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 ); 3bcc: e1a0200d mov r2, sp <== NOT EXECUTED 3bd0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3bd4: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 3bd8: eb000089 bl 3e04 <== NOT EXECUTED if ( status != 0 ) 3bdc: 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 ); 3be0: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 3be4: 1a000020 bne 3c6c <== NOT EXECUTED return -1; if ( !loc.handlers ){ 3be8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 3bec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3bf0: 0a000012 beq 3c40 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 3bf4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3bf8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3bfc: 0a00001c beq 3c74 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 3c00: e1a01004 mov r1, r4 <== NOT EXECUTED 3c04: e1a0000d mov r0, sp <== NOT EXECUTED 3c08: e1a0e00f mov lr, pc <== NOT EXECUTED 3c0c: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3c10: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3c14: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 3c18: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3c1c: 0a000004 beq 3c34 <== NOT EXECUTED 3c20: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3c24: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3c28: 11a0000d movne r0, sp <== NOT EXECUTED 3c2c: 11a0e00f movne lr, pc <== NOT EXECUTED 3c30: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3c34: e1a00004 mov r0, r4 <== NOT EXECUTED 3c38: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3c3c: 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 ); 3c40: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3c44: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3c48: 0a000004 beq 3c60 <== NOT EXECUTED 3c4c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3c50: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3c54: 11a0000d movne r0, sp <== NOT EXECUTED 3c58: 11a0e00f movne lr, pc <== NOT EXECUTED 3c5c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 3c60: eb00a4b9 bl 2cf4c <__errno> <== NOT EXECUTED 3c64: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 3c68: e5803000 str r3, [r0] <== NOT EXECUTED 3c6c: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3c70: eaffffef b 3c34 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 3c74: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 3c78: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3c7c: 0a000004 beq 3c94 <== NOT EXECUTED 3c80: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3c84: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3c88: 11a0000d movne r0, sp <== NOT EXECUTED 3c8c: 11a0e00f movne lr, pc <== NOT EXECUTED 3c90: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3c94: eb00a4ac bl 2cf4c <__errno> <== NOT EXECUTED 3c98: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3c9c: e5803000 str r3, [r0] <== NOT EXECUTED 3ca0: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 3ca4: eaffffe2 b 3c34 <== NOT EXECUTED 0001da90 : int chown( const char *path, uid_t owner, gid_t group ) { 1da90: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 1da94: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1da98: e1a0c801 lsl ip, r1, #16 <== NOT EXECUTED 1da9c: e1a04802 lsl r4, r2, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 1daa0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1daa4: e1a0200d mov r2, sp <== NOT EXECUTED 1daa8: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 1daac: e1a0582c lsr r5, ip, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 1dab0: ebff98d3 bl 3e04 <== NOT EXECUTED 1dab4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1dab8: e1a0600d mov r6, sp <== NOT EXECUTED int chown( const char *path, uid_t owner, gid_t group ) { 1dabc: e1a04824 lsr r4, r4, #16 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) ) 1dac0: 1a00001c bne 1db38 <== NOT EXECUTED return -1; if ( !loc.ops->chown_h ) { 1dac4: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1dac8: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 1dacc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1dad0: 0a000010 beq 1db18 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 1dad4: e1a02004 mov r2, r4 <== NOT EXECUTED 1dad8: e1a01005 mov r1, r5 <== NOT EXECUTED 1dadc: e1a0000d mov r0, sp <== NOT EXECUTED 1dae0: e1a0e00f mov lr, pc <== NOT EXECUTED 1dae4: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1dae8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1daec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 1daf0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1daf4: 0a000004 beq 1db0c <== NOT EXECUTED 1daf8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1dafc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1db00: 11a0000d movne r0, sp <== NOT EXECUTED 1db04: 11a0e00f movne lr, pc <== NOT EXECUTED 1db08: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1db0c: e1a00004 mov r0, r4 <== NOT EXECUTED 1db10: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1db14: 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 ); 1db18: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1db1c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1db20: 11a0000d movne r0, sp <== NOT EXECUTED 1db24: 11a0e00f movne lr, pc <== NOT EXECUTED 1db28: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1db2c: eb003d06 bl 2cf4c <__errno> <== NOT EXECUTED 1db30: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1db34: e5803000 str r3, [r0] <== NOT EXECUTED 1db38: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1db3c: eafffff2 b 1db0c <== NOT EXECUTED 0001db40 : #include int chroot( const char *pathname ) { 1db40: 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) { 1db44: e59f60c4 ldr r6, [pc, #196] ; 1dc10 <== NOT EXECUTED 1db48: e59f30c4 ldr r3, [pc, #196] ; 1dc14 <== NOT EXECUTED 1db4c: e5964000 ldr r4, [r6] <== NOT EXECUTED 1db50: e1540003 cmp r4, r3 <== NOT EXECUTED #include int chroot( const char *pathname ) { 1db54: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1db58: 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) { 1db5c: 0a00001b beq 1dbd0 <== 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); 1db60: e1a00005 mov r0, r5 <== NOT EXECUTED 1db64: ebffff8e bl 1d9a4 <== NOT EXECUTED if (result) { 1db68: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1db6c: 1a000020 bne 1dbf4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 1db70: e1a01000 mov r1, r0 <== NOT EXECUTED 1db74: e1a0200d mov r2, sp <== NOT EXECUTED 1db78: e59f0098 ldr r0, [pc, #152] ; 1dc18 <== NOT EXECUTED 1db7c: e1a03001 mov r3, r1 <== NOT EXECUTED 1db80: ebff989f bl 3e04 <== NOT EXECUTED 1db84: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1db88: e1a0400d mov r4, sp <== NOT EXECUTED 1db8c: 1a000018 bne 1dbf4 <== 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); 1db90: e5960000 ldr r0, [r6] <== NOT EXECUTED 1db94: e590301c ldr r3, [r0, #28] <== NOT EXECUTED 1db98: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1db9c: 0a000004 beq 1dbb4 <== NOT EXECUTED 1dba0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1dba4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1dba8: 12800014 addne r0, r0, #20 ; 0x14 <== NOT EXECUTED 1dbac: 11a0e00f movne lr, pc <== NOT EXECUTED 1dbb0: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_root = loc; 1dbb4: e596c000 ldr ip, [r6] <== NOT EXECUTED 1dbb8: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 1dbbc: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 1dbc0: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1dbc4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 1dbc8: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1dbcc: 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*/ 1dbd0: eb00075c bl 1f948 <== NOT EXECUTED if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 1dbd4: e5963000 ldr r3, [r6] <== NOT EXECUTED 1dbd8: e1530004 cmp r3, r4 <== NOT EXECUTED 1dbdc: 1affffdf bne 1db60 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1dbe0: eb003cd9 bl 2cf4c <__errno> <== NOT EXECUTED 1dbe4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1dbe8: e5803000 str r3, [r0] <== NOT EXECUTED 1dbec: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1dbf0: eafffff4 b 1dbc8 <== 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 ); 1dbf4: eb003cd4 bl 2cf4c <__errno> <== NOT EXECUTED 1dbf8: e1a04000 mov r4, r0 <== NOT EXECUTED 1dbfc: eb003cd2 bl 2cf4c <__errno> <== NOT EXECUTED 1dc00: e5903000 ldr r3, [r0] <== NOT EXECUTED 1dc04: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1dc08: e5843000 str r3, [r4] <== NOT EXECUTED 1dc0c: eaffffed b 1dbc8 <== NOT EXECUTED 1dc10: 0003f168 .word 0x0003f168 1dc14: 000595e0 .word 0x000595e0 1dc18: 0004243c .word 0x0004243c 00008ea8 : ) { rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 8ea8: e59f309c ldr r3, [pc, #156] ; 8f4c 8eac: e5932000 ldr r2, [r3] 8eb0: e1500002 cmp r0, r2 #include int close( int fd ) { 8eb4: e92d4030 push {r4, r5, lr} rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 8eb8: 2a00001e bcs 8f38 iop = rtems_libio_iop(fd); 8ebc: e59f208c ldr r2, [pc, #140] ; 8f50 8ec0: e1a03200 lsl r3, r0, #4 8ec4: e0433100 sub r3, r3, r0, lsl #2 8ec8: e5921000 ldr r1, [r2] 8ecc: e0833000 add r3, r3, r0 8ed0: e1a03103 lsl r3, r3, #2 8ed4: e0814003 add r4, r1, r3 rtems_libio_check_is_open(iop); 8ed8: e594200c ldr r2, [r4, #12] 8edc: e3120c01 tst r2, #256 ; 0x100 8ee0: 0a000014 beq 8f38 rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 8ee4: e5943030 ldr r3, [r4, #48] 8ee8: e5933004 ldr r3, [r3, #4] 8eec: e3530000 cmp r3, #0 ; 0x0 8ef0: 01a05003 moveq r5, r3 8ef4: 0a000003 beq 8f08 rc = (*iop->handlers->close_h)( iop ); 8ef8: e1a00004 mov r0, r4 8efc: e1a0e00f mov lr, pc 8f00: e12fff13 bx r3 8f04: e1a05000 mov r5, r0 rtems_filesystem_freenode( &iop->pathinfo ); 8f08: e5943018 ldr r3, [r4, #24] 8f0c: e3530000 cmp r3, #0 ; 0x0 8f10: 0a000004 beq 8f28 8f14: e593301c ldr r3, [r3, #28] 8f18: e3530000 cmp r3, #0 ; 0x0 8f1c: 12840010 addne r0, r4, #16 ; 0x10 8f20: 11a0e00f movne lr, pc 8f24: 112fff13 bxne r3 rtems_libio_free( iop ); 8f28: e1a00004 mov r0, r4 8f2c: eb0000e9 bl 92d8 return rc; } 8f30: e1a00005 mov r0, r5 8f34: 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); 8f38: eb0008fc bl b330 <__errno> <== NOT EXECUTED 8f3c: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 8f40: e5803000 str r3, [r0] <== NOT EXECUTED 8f44: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 8f48: eafffff8 b 8f30 <== NOT EXECUTED 8f4c: 00014444 .word 0x00014444 8f50: 00015ed8 .word 0x00015ed8 0002a77c : * close a directory. */ int closedir( DIR *dirp ) { 2a77c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int fd; if ( !dirp ) 2a780: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 2a784: 0a00000b beq 2a7b8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; dirp->dd_fd = -1; dirp->dd_loc = 0; 2a788: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 2a78c: 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; 2a790: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); fd = dirp->dd_fd; 2a794: e5954000 ldr r4, [r5] <== NOT EXECUTED dirp->dd_fd = -1; dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 2a798: 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; 2a79c: e5853000 str r3, [r5] <== NOT EXECUTED dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); 2a7a0: ebff65ec bl 3f58 <== NOT EXECUTED (void)free((void *)dirp); 2a7a4: e1a00005 mov r0, r5 <== NOT EXECUTED 2a7a8: ebff65ea bl 3f58 <== NOT EXECUTED return(close(fd)); 2a7ac: e1a00004 mov r0, r4 <== NOT EXECUTED } 2a7b0: 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)); 2a7b4: eaff653b b 3ca8 <== NOT EXECUTED DIR *dirp ) { int fd; if ( !dirp ) rtems_set_errno_and_return_minus_one( EBADF ); 2a7b8: eb0009e3 bl 2cf4c <__errno> <== NOT EXECUTED 2a7bc: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 2a7c0: 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)); } 2a7c4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a7c8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0000a8ec : rtems_libio_t *iop, off_t length ) { return 0; } a8ec: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED a8f0: e12fff1e bx lr <== NOT EXECUTED 0000a920 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a920: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a924: 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; a928: e88d0007 stm sp, {r0, r1, r2} <== NOT EXECUTED the_jnode = iop->file_info; a92c: e590302c ldr r3, [r0, #44] <== NOT EXECUTED status = rtems_io_control( a930: e1a0200d mov r2, sp <== NOT EXECUTED a934: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED a938: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED a93c: eb00017f bl af40 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a940: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; a944: 059d000c ldreq r0, [sp, #12] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a948: 1a000001 bne a954 <== NOT EXECUTED return rtems_deviceio_errno(status); return args.ioctl_return; } a94c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED a950: e8bd8000 pop {pc} <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a954: ebffffe6 bl a8f4 <== NOT EXECUTED a958: eafffffb b a94c <== NOT EXECUTED 0000a8e4 : off_t offset, int whence ) { return offset; } a8e4: e1a00001 mov r0, r1 <== NOT EXECUTED a8e8: e12fff1e bx lr <== NOT EXECUTED 0000a9b8 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { a9b8: 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; a9bc: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { a9c0: 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; a9c4: e590c00c ldr ip, [r0, #12] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; a9c8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; a9cc: 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; a9d0: e58d200c str r2, [sp, #12] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; a9d4: e58d3014 str r3, [sp, #20] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; a9d8: e58d1008 str r1, [sp, #8] <== NOT EXECUTED args.count = count; args.flags = iop->flags; a9dc: e58dc010 str ip, [sp, #16] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; a9e0: e58d0000 str r0, [sp] <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a9e4: e590302c ldr r3, [r0, #44] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( a9e8: e1a0200d mov r2, sp <== NOT EXECUTED a9ec: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED a9f0: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED a9f4: eb00017b bl afe8 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a9f8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a9fc: 059d0014 ldreq r0, [sp, #20] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) aa00: 1a000001 bne aa0c <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } aa04: e28dd018 add sp, sp, #24 ; 0x18 <== NOT EXECUTED aa08: e8bd8000 pop {pc} <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); aa0c: ebffffb8 bl a8f4 <== NOT EXECUTED aa10: eafffffb b aa04 <== NOT EXECUTED 0000a95c : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a95c: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; a960: e5903008 ldr r3, [r0, #8] ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a964: e24dd018 sub sp, sp, #24 ; 0x18 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; a968: e590c00c ldr ip, [r0, #12] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; a96c: e58d3004 str r3, [sp, #4] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; a970: e3a03000 mov r3, #0 ; 0x0 the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; a974: e58d200c str r2, [sp, #12] args.flags = iop->flags; args.bytes_moved = 0; a978: e58d3014 str r3, [sp, #20] the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; a97c: e58d1008 str r1, [sp, #8] args.count = count; args.flags = iop->flags; a980: e58dc010 str ip, [sp, #16] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; a984: e58d0000 str r0, [sp] { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a988: e590302c ldr r3, [r0, #44] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( a98c: e1a0200d mov r2, sp a990: e2830050 add r0, r3, #80 ; 0x50 a994: e8900003 ldm r0, {r0, r1} a998: eb0001a7 bl b03c the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a99c: e3500000 cmp r0, #0 ; 0x0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a9a0: 059d0014 ldreq r0, [sp, #20] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a9a4: 1a000001 bne a9b0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } a9a8: e28dd018 add sp, sp, #24 ; 0x18 a9ac: e8bd8000 pop {pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); a9b0: ebffffcf bl a8f4 <== NOT EXECUTED a9b4: eafffffb b a9a8 <== NOT EXECUTED 00002f54 : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2f54: e59030b4 ldr r3, [r0, #180] 2f58: e3530000 cmp r3, #0 ; 0x0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 2f5c: e92d4030 push {r4, r5, lr} 2f60: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 2f64: 08bd8030 popeq {r4, r5, pc} rtems_interrupt_disable (level); 2f68: e10f1000 mrs r1, CPSR <== NOT EXECUTED 2f6c: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 2f70: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 2f74: e5902084 ldr r2, [r0, #132] <== NOT EXECUTED 2f78: e5903080 ldr r3, [r0, #128] <== NOT EXECUTED 2f7c: e1520003 cmp r2, r3 <== NOT EXECUTED 2f80: 0a00000f beq 2fc4 <== NOT EXECUTED tty->rawOutBufState = rob_wait; 2f84: e3a05002 mov r5, #2 ; 0x2 <== NOT EXECUTED 2f88: e5845094 str r5, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 2f8c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 2f90: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2f94: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 2f98: e1a02001 mov r2, r1 <== NOT EXECUTED 2f9c: eb00060c bl 47d4 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 2fa0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2fa4: 1a000008 bne 2fcc <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 2fa8: e10f1000 mrs r1, CPSR <== NOT EXECUTED 2fac: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 2fb0: 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) { 2fb4: e5942084 ldr r2, [r4, #132] <== NOT EXECUTED 2fb8: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 2fbc: e1520003 cmp r2, r3 <== NOT EXECUTED 2fc0: 1afffff0 bne 2f88 <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 2fc4: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 2fc8: 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); 2fcc: eb0007bc bl 4ec4 <== NOT EXECUTED 000029f8 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 29f8: e92d4010 push {r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 29fc: e591303c ldr r3, [r1, #60] <== NOT EXECUTED 2a00: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 2a04: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 2a08: e1a04001 mov r4, r1 <== NOT EXECUTED 2a0c: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 2a10: 0a000006 beq 2a30 <== NOT EXECUTED 2a14: e59f305c ldr r3, [pc, #92] ; 2a78 <== NOT EXECUTED 2a18: e5932000 ldr r2, [r3] <== NOT EXECUTED 2a1c: e7d21000 ldrb r1, [r2, r0] <== NOT EXECUTED 2a20: e2503009 subs r3, r0, #9 ; 0x9 <== NOT EXECUTED 2a24: 13a03001 movne r3, #1 ; 0x1 <== NOT EXECUTED 2a28: e01332a1 ands r3, r3, r1, lsr #5 <== NOT EXECUTED 2a2c: 1a000003 bne 2a40 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 2a30: e1a01004 mov r1, r4 <== NOT EXECUTED 2a34: ebffff96 bl 2894 <== NOT EXECUTED } } 2a38: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 2a3c: 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')) { 2a40: e350000a cmp r0, #10 ; 0xa <== NOT EXECUTED 2a44: 0afffff9 beq 2a30 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 2a48: e220c040 eor ip, r0, #64 ; 0x40 <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; 2a4c: e3a0305e mov r3, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 2a50: e28d0002 add r0, sp, #2 ; 0x2 <== NOT EXECUTED 2a54: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 2a58: 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] = '^'; 2a5c: e5cd3002 strb r3, [sp, #2] <== NOT EXECUTED echobuf[1] = c ^ 0x40; 2a60: e5cdc003 strb ip, [sp, #3] <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 2a64: ebffff42 bl 2774 <== NOT EXECUTED tty->column += 2; 2a68: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2a6c: e2833002 add r3, r3, #2 ; 0x2 <== NOT EXECUTED 2a70: e5843028 str r3, [r4, #40] <== NOT EXECUTED 2a74: eaffffef b 2a38 <== NOT EXECUTED 2a78: 00014a64 .word 0x00014a64 0001e6e0 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 1e6e0: e59f300c ldr r3, [pc, #12] ; 1e6f4 <== NOT EXECUTED 1e6e4: e5930000 ldr r0, [r3] <== NOT EXECUTED 1e6e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e6ec: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 1e6f0: ea003a66 b 2d090 <== NOT EXECUTED 1e6f4: 0005890c .word 0x0005890c 0001e6f8 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 1e6f8: e59f300c ldr r3, [pc, #12] ; 1e70c <== NOT EXECUTED 1e6fc: e5930000 ldr r0, [r3] <== NOT EXECUTED 1e700: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e704: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 1e708: ea003a60 b 2d090 <== NOT EXECUTED 1e70c: 00058824 .word 0x00058824 00002a7c : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) 2a7c: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED 2a80: 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) { 2a84: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 2a88: e1a04000 mov r4, r0 <== NOT EXECUTED 2a8c: e1a07001 mov r7, r1 <== NOT EXECUTED if (tty->ccount == 0) 2a90: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return; if (lineFlag) { 2a94: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 2a98: 0590103c ldreq r1, [r0, #60] <== NOT EXECUTED 2a9c: 1a000019 bne 2b08 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2aa0: e59f81a8 ldr r8, [pc, #424] ; 2c50 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 2aa4: e2430001 sub r0, r3, #1 ; 0x1 <== NOT EXECUTED 2aa8: e5840020 str r0, [r4, #32] <== NOT EXECUTED 2aac: e594c01c ldr ip, [r4, #28] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2ab0: e3110008 tst r1, #8 ; 0x8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 2ab4: e7dc5000 ldrb r5, [ip, r0] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 2ab8: 0a00000b beq 2aec <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 2abc: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 2ac0: 1a000001 bne 2acc <== NOT EXECUTED 2ac4: e3110010 tst r1, #16 ; 0x10 <== NOT EXECUTED 2ac8: 0a00005c beq 2c40 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 2acc: e3550009 cmp r5, #9 ; 0x9 <== NOT EXECUTED 2ad0: 0a000037 beq 2bb4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 2ad4: e5983000 ldr r3, [r8] <== NOT EXECUTED 2ad8: e7d32005 ldrb r2, [r3, r5] <== NOT EXECUTED 2adc: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED 2ae0: 0a000028 beq 2b88 <== NOT EXECUTED 2ae4: e3110c02 tst r1, #512 ; 0x200 <== NOT EXECUTED 2ae8: 1a000017 bne 2b4c <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2aec: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 2af0: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 2af4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 2af8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2afc: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 2b00: e594103c ldr r1, [r4, #60] <== NOT EXECUTED 2b04: eaffffe6 b 2aa4 <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 2b08: e590103c ldr r1, [r0, #60] <== NOT EXECUTED 2b0c: e2112008 ands r2, r1, #8 ; 0x8 <== NOT EXECUTED tty->ccount = 0; 2b10: 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)) { 2b14: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 2b18: e2112010 ands r2, r1, #16 ; 0x10 <== NOT EXECUTED 2b1c: 1affffdf bne 2aa0 <== NOT EXECUTED tty->ccount = 0; 2b20: e5802020 str r2, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 2b24: e1a01004 mov r1, r4 <== NOT EXECUTED 2b28: e5d00044 ldrb r0, [r0, #68] <== NOT EXECUTED 2b2c: ebffffb1 bl 29f8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 2b30: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 2b34: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 2b38: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED echo ('\n', tty); 2b3c: e1a01004 mov r1, r4 <== NOT EXECUTED 2b40: e3a0000a mov r0, #10 ; 0xa <== NOT EXECUTED } } if (!lineFlag) break; } } 2b44: 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); 2b48: eaffffaa b 29f8 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 2b4c: e1a02004 mov r2, r4 <== NOT EXECUTED 2b50: e59f00fc ldr r0, [pc, #252] ; 2c54 <== NOT EXECUTED 2b54: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 2b58: ebffff05 bl 2774 <== NOT EXECUTED if (tty->column) 2b5c: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2b60: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 2b64: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 2b68: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 2b6c: e5983000 ldr r3, [r8] <== NOT EXECUTED 2b70: e7d32005 ldrb r2, [r3, r5] <== NOT EXECUTED 2b74: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED 2b78: 0a000002 beq 2b88 <== NOT EXECUTED 2b7c: e594103c ldr r1, [r4, #60] <== NOT EXECUTED 2b80: e3110c02 tst r1, #512 ; 0x200 <== NOT EXECUTED 2b84: 0affffd8 beq 2aec <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 2b88: e59f00c4 ldr r0, [pc, #196] ; 2c54 <== NOT EXECUTED 2b8c: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 2b90: e1a02004 mov r2, r4 <== NOT EXECUTED 2b94: ebfffef6 bl 2774 <== NOT EXECUTED if (tty->column) 2b98: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2b9c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 2ba0: 12433001 subne r3, r3, #1 ; 0x1 <== NOT EXECUTED 2ba4: 15843028 strne r3, [r4, #40] <== NOT EXECUTED } } } if (!lineFlag) 2ba8: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 2bac: 1affffd0 bne 2af4 <== NOT EXECUTED 2bb0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2bb4: 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; 2bb8: e594502c ldr r5, [r4, #44] <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2bbc: 0a000010 beq 2c04 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 2bc0: e5986000 ldr r6, [r8] <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2bc4: 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)) { 2bc8: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2bcc: e7dc3002 ldrb r3, [ip, r2] <== NOT EXECUTED if (c == '\t') { 2bd0: e3530009 cmp r3, #9 ; 0x9 <== NOT EXECUTED col = (col | 7) + 1; 2bd4: 03853007 orreq r3, r5, #7 ; 0x7 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 2bd8: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED if (c == '\t') { col = (col | 7) + 1; 2bdc: 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') { 2be0: 0a000005 beq 2bfc <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 2be4: e7d63003 ldrb r3, [r6, r3] <== NOT EXECUTED 2be8: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 2bec: 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)) { 2bf0: 0a000001 beq 2bfc <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 2bf4: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED col += 2; 2bf8: 12855002 addne r5, r5, #2 ; 0x2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 2bfc: e1500002 cmp r0, r2 <== NOT EXECUTED 2c00: 1afffff1 bne 2bcc <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2c04: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2c08: e1530005 cmp r3, r5 <== NOT EXECUTED 2c0c: daffffb6 ble 2aec <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 2c10: e59f0040 ldr r0, [pc, #64] ; 2c58 <== NOT EXECUTED 2c14: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 2c18: e1a02004 mov r2, r4 <== NOT EXECUTED 2c1c: ebfffed4 bl 2774 <== NOT EXECUTED tty->column--; 2c20: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2c24: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2c28: e1530005 cmp r3, r5 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; 2c2c: e5843028 str r3, [r4, #40] <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 2c30: cafffff6 bgt 2c10 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 2c34: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 2c38: 1affffad bne 2af4 <== NOT EXECUTED 2c3c: 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); 2c40: e5d40043 ldrb r0, [r4, #67] <== NOT EXECUTED 2c44: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } 2c48: 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); 2c4c: eaffff69 b 29f8 <== NOT EXECUTED 2c50: 00014a64 .word 0x00014a64 2c54: 0001582c .word 0x0001582c 2c58: 00015828 .word 0x00015828 0002a7cc : #include int fchdir( int fd ) { 2a7cc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 2a7d0: e59f3150 ldr r3, [pc, #336] ; 2a928 <== NOT EXECUTED 2a7d4: e5932000 ldr r2, [r3] <== NOT EXECUTED 2a7d8: e1500002 cmp r0, r2 <== NOT EXECUTED #include int fchdir( int fd ) { 2a7dc: e24dd020 sub sp, sp, #32 ; 0x20 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 2a7e0: 2a00003b bcs 2a8d4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2a7e4: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 2a7e8: e59f213c ldr r2, [pc, #316] ; 2a92c <== NOT EXECUTED 2a7ec: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 2a7f0: e0833000 add r3, r3, r0 <== NOT EXECUTED 2a7f4: e5921000 ldr r1, [r2] <== NOT EXECUTED 2a7f8: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 2a7fc: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2a800: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 2a804: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 2a808: 0a000031 beq 2a8d4 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2a80c: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 2a810: 0a00003a beq 2a900 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 2a814: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED 2a818: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 2a81c: 0a00003c beq 2a914 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 2a820: e5922010 ldr r2, [r2, #16] <== NOT EXECUTED 2a824: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 2a828: 0a000039 beq 2a914 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 2a82c: e2804010 add r4, r0, #16 ; 0x10 <== NOT EXECUTED 2a830: e1a00004 mov r0, r4 <== NOT EXECUTED 2a834: e1a0e00f mov lr, pc <== NOT EXECUTED 2a838: e12fff12 bx r2 <== NOT EXECUTED 2a83c: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 2a840: 1a00001e bne 2a8c0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2a844: e59f60e4 ldr r6, [pc, #228] ; 2a930 <== NOT EXECUTED 2a848: e596c000 ldr ip, [r6] <== NOT EXECUTED 2a84c: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 2a850: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 2a854: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 2a858: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 2a85c: e28d4010 add r4, sp, #16 ; 0x10 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; 2a860: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 2a864: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2a868: e59f00c4 ldr r0, [pc, #196] ; 2a934 <== NOT EXECUTED 2a86c: e1a02004 mov r2, r4 <== NOT EXECUTED 2a870: e1a03001 mov r3, r1 <== NOT EXECUTED 2a874: ebff6562 bl 3e04 <== NOT EXECUTED 2a878: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 2a87c: e1a0500d mov r5, sp <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { 2a880: 1a000018 bne 2a8e8 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 2a884: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 2a888: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2a88c: 0a000004 beq 2a8a4 <== NOT EXECUTED 2a890: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 2a894: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2a898: 11a0000d movne r0, sp <== NOT EXECUTED 2a89c: 11a0e00f movne lr, pc <== NOT EXECUTED 2a8a0: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 2a8a4: e596c000 ldr ip, [r6] <== NOT EXECUTED 2a8a8: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 2a8ac: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 2a8b0: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 2a8b4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 2a8b8: e28dd020 add sp, sp, #32 ; 0x20 <== NOT EXECUTED 2a8bc: e8bd8070 pop {r4, r5, r6, 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 ); 2a8c0: eb0009a1 bl 2cf4c <__errno> <== NOT EXECUTED 2a8c4: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 2a8c8: e5803000 str r3, [r0] <== NOT EXECUTED 2a8cc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a8d0: eafffff8 b 2a8b8 <== 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); 2a8d4: eb00099c bl 2cf4c <__errno> <== NOT EXECUTED 2a8d8: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 2a8dc: e5803000 str r3, [r0] <== NOT EXECUTED 2a8e0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a8e4: eafffff3 b 2a8b8 <== 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; 2a8e8: e596c000 ldr ip, [r6] <== NOT EXECUTED 2a8ec: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 2a8f0: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 2a8f4: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED 2a8f8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a8fc: eaffffed b 2a8b8 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 2a900: eb000991 bl 2cf4c <__errno> <== NOT EXECUTED 2a904: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 2a908: e5803000 str r3, [r0] <== NOT EXECUTED 2a90c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a910: eaffffe8 b 2a8b8 <== 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 ); 2a914: eb00098c bl 2cf4c <__errno> <== NOT EXECUTED 2a918: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 2a91c: e5803000 str r3, [r0] <== NOT EXECUTED 2a920: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a924: eaffffe3 b 2a8b8 <== NOT EXECUTED 2a928: 0003e634 .word 0x0003e634 2a92c: 00059114 .word 0x00059114 2a930: 0003f168 .word 0x0003f168 2a934: 0004243c .word 0x0004243c 0001de48 : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1de48: e59f309c ldr r3, [pc, #156] ; 1deec <== NOT EXECUTED 1de4c: e5932000 ldr r2, [r3] <== NOT EXECUTED 1de50: e1500002 cmp r0, r2 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 1de54: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1de58: 2a000014 bcs 1deb0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 1de5c: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 1de60: e59f2088 ldr r2, [pc, #136] ; 1def0 <== NOT EXECUTED 1de64: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 1de68: e0833000 add r3, r3, r0 <== NOT EXECUTED 1de6c: e5920000 ldr r0, [r2] <== NOT EXECUTED 1de70: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 1de74: e080c003 add ip, r0, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 1de78: e59c300c ldr r3, [ip, #12] <== NOT EXECUTED 1de7c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 1de80: 0a00000a beq 1deb0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1de84: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 1de88: 0a00000d beq 1dec4 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 1de8c: e59c3030 ldr r3, [ip, #48] <== NOT EXECUTED 1de90: e593201c ldr r2, [r3, #28] <== NOT EXECUTED 1de94: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1de98: 0a00000e beq 1ded8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 1de9c: e28c0010 add r0, ip, #16 ; 0x10 <== NOT EXECUTED 1dea0: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED 1dea4: e1a0e00f mov lr, pc <== NOT EXECUTED 1dea8: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 1deac: 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); 1deb0: eb003c25 bl 2cf4c <__errno> <== NOT EXECUTED 1deb4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 1deb8: e5803000 str r3, [r0] <== NOT EXECUTED 1debc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1dec0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1dec4: eb003c20 bl 2cf4c <__errno> <== NOT EXECUTED 1dec8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1decc: e5803000 str r3, [r0] <== NOT EXECUTED 1ded0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1ded4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 1ded8: eb003c1b bl 2cf4c <__errno> <== NOT EXECUTED 1dedc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1dee0: e5803000 str r3, [r0] <== NOT EXECUTED 1dee4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1dee8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1deec: 0003e634 .word 0x0003e634 1def0: 00059114 .word 0x00059114 0001def4 : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1def4: e59f30b0 ldr r3, [pc, #176] ; 1dfac <== NOT EXECUTED 1def8: e593c000 ldr ip, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 1defc: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1df00: e150000c cmp r0, ip <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 1df04: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED 1df08: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1df0c: e1a0c821 lsr ip, r1, #16 <== NOT EXECUTED 1df10: e1a0e822 lsr lr, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1df14: 2a000015 bcs 1df70 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 1df18: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 1df1c: e59f208c ldr r2, [pc, #140] ; 1dfb0 <== NOT EXECUTED 1df20: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 1df24: e0833000 add r3, r3, r0 <== NOT EXECUTED 1df28: e5921000 ldr r1, [r2] <== NOT EXECUTED 1df2c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 1df30: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 1df34: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 1df38: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 1df3c: 0a00000b beq 1df70 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1df40: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 1df44: 0a00000e beq 1df84 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 1df48: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED 1df4c: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 1df50: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1df54: 0a00000f beq 1df98 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 1df58: e1a0100c mov r1, ip <== NOT EXECUTED 1df5c: e1a0200e mov r2, lr <== NOT EXECUTED 1df60: e2800010 add r0, r0, #16 ; 0x10 <== NOT EXECUTED 1df64: e1a0e00f mov lr, pc <== NOT EXECUTED 1df68: e12fff13 bx r3 <== NOT EXECUTED } 1df6c: 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); 1df70: eb003bf5 bl 2cf4c <__errno> <== NOT EXECUTED 1df74: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 1df78: e5803000 str r3, [r0] <== NOT EXECUTED 1df7c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1df80: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1df84: eb003bf0 bl 2cf4c <__errno> <== NOT EXECUTED 1df88: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1df8c: e5803000 str r3, [r0] <== NOT EXECUTED 1df90: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1df94: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 1df98: eb003beb bl 2cf4c <__errno> <== NOT EXECUTED 1df9c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1dfa0: e5803000 str r3, [r0] <== NOT EXECUTED 1dfa4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1dfa8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1dfac: 0003e634 .word 0x0003e634 1dfb0: 00059114 .word 0x00059114 0002a938 : int fcntl( int fd, int cmd, ... ) { 2a938: e92d000e push {r1, r2, r3} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2a93c: e59f3210 ldr r3, [pc, #528] ; 2ab54 <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 2a940: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2a944: e5932000 ldr r2, [r3] <== NOT EXECUTED 2a948: e1500002 cmp r0, r2 <== NOT EXECUTED int fcntl( int fd, int cmd, ... ) { 2a94c: e59d8024 ldr r8, [sp, #36] <== NOT EXECUTED 2a950: e28d1028 add r1, sp, #40 ; 0x28 <== NOT EXECUTED int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 2a954: 2a000072 bcs 2ab24 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 2a958: e59f61f8 ldr r6, [pc, #504] ; 2ab58 <== NOT EXECUTED 2a95c: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 2a960: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 2a964: e0833000 add r3, r3, r0 <== NOT EXECUTED 2a968: e596c000 ldr ip, [r6] <== NOT EXECUTED 2a96c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 2a970: e08ca003 add sl, ip, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 2a974: e59a900c ldr r9, [sl, #12] <== NOT EXECUTED 2a978: e3190c01 tst r9, #256 ; 0x100 <== NOT EXECUTED 2a97c: 0a000068 beq 2ab24 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 2a980: e3580009 cmp r8, #9 ; 0x9 <== NOT EXECUTED 2a984: 979ff108 ldrls pc, [pc, r8, lsl #2] <== NOT EXECUTED 2a988: ea00002b b 2aa3c <== NOT EXECUTED 2a98c: 0002aa50 .word 0x0002aa50 <== NOT EXECUTED 2a990: 0002aae4 .word 0x0002aae4 <== NOT EXECUTED 2a994: 0002aaf0 .word 0x0002aaf0 <== NOT EXECUTED 2a998: 0002ab14 .word 0x0002ab14 <== NOT EXECUTED 2a99c: 0002a9d4 .word 0x0002a9d4 <== NOT EXECUTED 2a9a0: 0002a9b4 .word 0x0002a9b4 <== NOT EXECUTED 2a9a4: 0002a9b4 .word 0x0002a9b4 <== NOT EXECUTED 2a9a8: 0002a9b4 .word 0x0002a9b4 <== NOT EXECUTED 2a9ac: 0002a9b4 .word 0x0002a9b4 <== NOT EXECUTED 2a9b0: 0002a9b4 .word 0x0002a9b4 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 2a9b4: eb000964 bl 2cf4c <__errno> <== NOT EXECUTED 2a9b8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 2a9bc: e5803000 str r3, [r0] <== NOT EXECUTED 2a9c0: e3e06000 mvn r6, #0 ; 0x0 <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 2a9c4: e1a00006 mov r0, r6 <== NOT EXECUTED 2a9c8: e8bd4ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 2a9cc: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 2a9d0: 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 ) ); 2a9d4: e5910000 ldr r0, [r1] <== NOT EXECUTED 2a9d8: ebff6698 bl 4440 <== NOT EXECUTED /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 2a9dc: e59a300c ldr r3, [sl, #12] <== NOT EXECUTED 2a9e0: e3c00f7f bic r0, r0, #508 ; 0x1fc <== NOT EXECUTED 2a9e4: e3c00002 bic r0, r0, #2 ; 0x2 <== NOT EXECUTED 2a9e8: e1a00b00 lsl r0, r0, #22 <== NOT EXECUTED 2a9ec: e3c33c02 bic r3, r3, #512 ; 0x200 <== NOT EXECUTED 2a9f0: e1a00b20 lsr r0, r0, #22 <== NOT EXECUTED 2a9f4: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 2a9f8: e1800003 orr r0, r0, r3 <== NOT EXECUTED 2a9fc: e58a000c str r0, [sl, #12] <== NOT EXECUTED 2aa00: e3a06000 mov r6, #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) { 2aa04: e59a3030 ldr r3, [sl, #48] <== NOT EXECUTED 2aa08: e5933030 ldr r3, [r3, #48] <== NOT EXECUTED 2aa0c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2aa10: 0affffeb beq 2a9c4 <== NOT EXECUTED int err = (*iop->handlers->fcntl_h)( cmd, iop ); 2aa14: e1a00008 mov r0, r8 <== NOT EXECUTED 2aa18: e1a0100a mov r1, sl <== NOT EXECUTED 2aa1c: e1a0e00f mov lr, pc <== NOT EXECUTED 2aa20: e12fff13 bx r3 <== NOT EXECUTED if (err) { 2aa24: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 2aa28: 0affffe5 beq 2a9c4 <== NOT EXECUTED errno = err; 2aa2c: eb000946 bl 2cf4c <__errno> <== NOT EXECUTED 2aa30: e3e06000 mvn r6, #0 ; 0x0 <== NOT EXECUTED 2aa34: e5804000 str r4, [r0] <== NOT EXECUTED 2aa38: eaffffe1 b 2a9c4 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 2aa3c: eb000942 bl 2cf4c <__errno> <== NOT EXECUTED 2aa40: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 2aa44: e5803000 str r3, [r0] <== NOT EXECUTED 2aa48: e3e06000 mvn r6, #0 ; 0x0 <== NOT EXECUTED 2aa4c: eaffffdc b 2a9c4 <== NOT EXECUTED * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 2aa50: e5910000 ldr r0, [r1] <== NOT EXECUTED if ( fd2 ) 2aa54: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2aa58: 0a000036 beq 2ab38 <== NOT EXECUTED diop = rtems_libio_iop( fd2 ); 2aa5c: e1520000 cmp r2, r0 <== NOT EXECUTED 2aa60: 81a03200 lslhi r3, r0, #4 <== NOT EXECUTED 2aa64: 80433100 subhi r3, r3, r0, lsl #2 <== NOT EXECUTED 2aa68: 80833000 addhi r3, r3, r0 <== NOT EXECUTED 2aa6c: 81a03103 lslhi r3, r3, #2 <== NOT EXECUTED 2aa70: 93a0b000 movls fp, #0 ; 0x0 <== NOT EXECUTED 2aa74: 808cb003 addhi fp, ip, r3 <== NOT EXECUTED 2aa78: 91a0300b movls r3, fp <== NOT EXECUTED 2aa7c: 81a0300b movhi r3, fp <== 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); 2aa80: e5966000 ldr r6, [r6] <== NOT EXECUTED 2aa84: e0666003 rsb r6, r6, r3 <== NOT EXECUTED 2aa88: e1a06146 asr r6, r6, #2 <== NOT EXECUTED 2aa8c: e1a03306 lsl r3, r6, #6 <== NOT EXECUTED 2aa90: e0433106 sub r3, r3, r6, lsl #2 <== NOT EXECUTED 2aa94: e1a05303 lsl r5, r3, #6 <== NOT EXECUTED 2aa98: e0635005 rsb r5, r3, r5 <== NOT EXECUTED 2aa9c: e1a02605 lsl r2, r5, #12 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2aaa0: e28a4010 add r4, sl, #16 ; 0x10 <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 2aaa4: e0855002 add r5, r5, r2 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2aaa8: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED 2aaac: e28bc010 add ip, fp, #16 ; 0x10 <== NOT EXECUTED ret = (int) (diop - rtems_libio_iops); 2aab0: e0855006 add r5, r5, r6 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 2aab4: e59a7030 ldr r7, [sl, #48] <== NOT EXECUTED diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 2aab8: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 2aabc: e59a302c ldr r3, [sl, #44] <== NOT EXECUTED diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 2aac0: e1a05205 lsl r5, r5, #4 <== NOT EXECUTED 2aac4: e0665005 rsb r5, r6, r5 <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 2aac8: e58b7030 str r7, [fp, #48] <== NOT EXECUTED diop->file_info = iop->file_info; 2aacc: e58b302c str r3, [fp, #44] <== NOT EXECUTED diop->flags = iop->flags; 2aad0: e58b900c str r9, [fp, #12] <== NOT EXECUTED diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 2aad4: e0466105 sub r6, r6, r5, lsl #2 <== NOT EXECUTED /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 2aad8: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 2aadc: aaffffc8 bge 2aa04 <== NOT EXECUTED 2aae0: eaffffb7 b 2a9c4 <== 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); 2aae4: e1a035a9 lsr r3, r9, #11 <== NOT EXECUTED 2aae8: e2036001 and r6, r3, #1 ; 0x1 <== NOT EXECUTED 2aaec: eaffffc4 b 2aa04 <== 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 ) ) 2aaf0: e5910000 ldr r0, [r1] <== NOT EXECUTED 2aaf4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 2aaf8: 13893b02 orrne r3, r9, #2048 ; 0x800 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 2aafc: 03c93b02 biceq r3, r9, #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; 2ab00: 158a300c strne r3, [sl, #12] <== NOT EXECUTED 2ab04: 13a06000 movne r6, #0 ; 0x0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 2ab08: 058a300c streq r3, [sl, #12] <== NOT EXECUTED 2ab0c: 01a06000 moveq r6, r0 <== NOT EXECUTED 2ab10: eaffffbb b 2aa04 <== NOT EXECUTED break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 2ab14: e1a00009 mov r0, r9 <== NOT EXECUTED 2ab18: ebff6594 bl 4170 <== NOT EXECUTED 2ab1c: e1a06000 mov r6, r0 <== NOT EXECUTED 2ab20: eaffffec b 2aad8 <== NOT EXECUTED int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 2ab24: eb000908 bl 2cf4c <__errno> <== NOT EXECUTED 2ab28: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 2ab2c: e5803000 str r3, [r0] <== NOT EXECUTED 2ab30: e3e06000 mvn r6, #0 ; 0x0 <== NOT EXECUTED 2ab34: eaffffa2 b 2a9c4 <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 2ab38: ebff65fc bl 4330 <== NOT EXECUTED if ( diop == 0 ) { 2ab3c: e250b000 subs fp, r0, #0 ; 0x0 <== NOT EXECUTED 2ab40: 159a900c ldrne r9, [sl, #12] <== NOT EXECUTED 2ab44: 11a0300b movne r3, fp <== NOT EXECUTED 2ab48: 1affffcc bne 2aa80 <== NOT EXECUTED if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; 2ab4c: e3e06000 mvn r6, #0 ; 0x0 <== NOT EXECUTED 2ab50: eaffff9b b 2a9c4 <== NOT EXECUTED 2ab54: 0003e634 .word 0x0003e634 2ab58: 00059114 .word 0x00059114 00020308 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 20308: e59f0044 ldr r0, [pc, #68] ; 20354 <== NOT EXECUTED 2030c: e4902004 ldr r2, [r0], #4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 20310: e1520000 cmp r2, r0 <== NOT EXECUTED 20314: 0a00000a beq 20344 <== 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 ) { 20318: e591100c ldr r1, [r1, #12] <== NOT EXECUTED 2031c: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 20320: e1530001 cmp r3, r1 <== NOT EXECUTED 20324: 1a000003 bne 20338 <== NOT EXECUTED 20328: ea000007 b 2034c <== NOT EXECUTED 2032c: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 20330: e1530001 cmp r3, r1 <== NOT EXECUTED 20334: 0a000004 beq 2034c <== 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 ) { 20338: 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 ); 2033c: e1520000 cmp r2, r0 <== NOT EXECUTED 20340: 1afffff9 bne 2032c <== NOT EXECUTED 20344: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return true; } } return false; } 20348: 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 ); 2034c: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 20350: e12fff1e bx lr <== NOT EXECUTED 20354: 000591b0 .word 0x000591b0 00008f5c : void free( void *ptr ) { MSBUMP(free_calls, 1); 8f5c: e59f2084 ldr r2, [pc, #132] ; 8fe8 8f60: e592300c ldr r3, [r2, #12] 8f64: e92d4030 push {r4, r5, lr} 8f68: e2833001 add r3, r3, #1 ; 0x1 if ( !ptr ) 8f6c: e2505000 subs r5, r0, #0 ; 0x0 void free( void *ptr ) { MSBUMP(free_calls, 1); 8f70: e582300c str r3, [r2, #12] if ( !ptr ) 8f74: 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()) && 8f78: e59f306c ldr r3, [pc, #108] ; 8fec 8f7c: e5932000 ldr r2, [r3] 8f80: e3520003 cmp r2, #3 ; 0x3 8f84: 0a000011 beq 8fd0 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 8f88: e59f3060 ldr r3, [pc, #96] ; 8ff0 8f8c: e5933000 ldr r3, [r3] 8f90: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 8f94: 11a00005 movne r0, r5 8f98: 11a0e00f movne lr, pc 8f9c: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { 8fa0: e59f404c ldr r4, [pc, #76] ; 8ff4 8fa4: e1a01005 mov r1, r5 8fa8: e1a00004 mov r0, r4 8fac: eb000507 bl a3d0 <_Protected_heap_Free> 8fb0: e3500000 cmp r0, #0 ; 0x0 8fb4: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", 8fb8: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 8fbc: e59f0034 ldr r0, [pc, #52] ; 8ff8 <== NOT EXECUTED 8fc0: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED 8fc4: e1a01005 mov r1, r5 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 8fc8: 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", 8fcc: eaffe45f b 2150 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 8fd0: eb000127 bl 9474 8fd4: e3500000 cmp r0, #0 ; 0x0 8fd8: 1affffea bne 8f88 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 8fdc: e1a00005 mov r0, r5 <== NOT EXECUTED RTEMS_Malloc_Heap.begin, RTEMS_Malloc_Heap.end ); } } 8fe0: 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); 8fe4: ea000135 b 94c0 <== NOT EXECUTED 8fe8: 00015f3c .word 0x00015f3c 8fec: 000161f4 .word 0x000161f4 8ff0: 00015d44 .word 0x00015d44 8ff4: 00015ee4 .word 0x00015ee4 8ff8: 00015a00 .word 0x00015a00 0001f834 : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 1f834: e59f3058 ldr r3, [pc, #88] ; 1f894 <== NOT EXECUTED 1f838: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 1f83c: e92d4010 push {r4, lr} <== NOT EXECUTED 1f840: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 1f844: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 1f848: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 1f84c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f850: 0a000004 beq 1f868 <== NOT EXECUTED 1f854: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f858: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f85c: 12800004 addne r0, r0, #4 ; 0x4 <== NOT EXECUTED 1f860: 11a0e00f movne lr, pc <== NOT EXECUTED 1f864: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 1f868: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 1f86c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f870: 0a000004 beq 1f888 <== NOT EXECUTED 1f874: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f878: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f87c: 12840014 addne r0, r4, #20 ; 0x14 <== NOT EXECUTED 1f880: 11a0e00f movne lr, pc <== NOT EXECUTED 1f884: 112fff13 bxne r3 <== NOT EXECUTED free(env); 1f888: e1a00004 mov r0, r4 <== NOT EXECUTED } } 1f88c: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 1f890: eaff91b0 b 3f58 <== NOT EXECUTED 1f894: 000595e0 .word 0x000595e0 000138a8 : int fstat( int fd, struct stat *sbuf ) { 138a8: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 138ac: e2515000 subs r5, r1, #0 ; 0x0 138b0: 0a000027 beq 13954 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 138b4: e59f30ac ldr r3, [pc, #172] ; 13968 138b8: e5932000 ldr r2, [r3] 138bc: e1500002 cmp r0, r2 138c0: 2a000019 bcs 1392c 138c4: e59f20a0 ldr r2, [pc, #160] ; 1396c 138c8: e1a03200 lsl r3, r0, #4 138cc: e0433100 sub r3, r3, r0, lsl #2 138d0: e5921000 ldr r1, [r2] 138d4: e0833000 add r3, r3, r0 138d8: e1a03103 lsl r3, r3, #2 138dc: e0814003 add r4, r1, r3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 138e0: e594200c ldr r2, [r4, #12] 138e4: e3120c01 tst r2, #256 ; 0x100 138e8: 0a00000f beq 1392c if ( !iop->handlers ) 138ec: e5943030 ldr r3, [r4, #48] 138f0: e3530000 cmp r3, #0 ; 0x0 138f4: 0a00000c beq 1392c rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 138f8: e5933018 ldr r3, [r3, #24] 138fc: e3530000 cmp r3, #0 ; 0x0 13900: 0a00000e beq 13940 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 13904: e3a01000 mov r1, #0 ; 0x0 13908: e3a0204c mov r2, #76 ; 0x4c 1390c: e1a00005 mov r0, r5 13910: ebffe08f bl bb54 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 13914: e2840010 add r0, r4, #16 ; 0x10 13918: e1a01005 mov r1, r5 1391c: e5943030 ldr r3, [r4, #48] 13920: e1a0e00f mov lr, pc 13924: e593f018 ldr pc, [r3, #24] } 13928: 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 ); 1392c: ebffde7f bl b330 <__errno> <== NOT EXECUTED 13930: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 13934: e5803000 str r3, [r0] <== NOT EXECUTED 13938: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1393c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 13940: ebffde7a bl b330 <__errno> <== NOT EXECUTED 13944: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 13948: e5803000 str r3, [r0] <== NOT EXECUTED 1394c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13950: 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 ); 13954: ebffde75 bl b330 <__errno> <== NOT EXECUTED 13958: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 1395c: e5803000 str r3, [r0] <== NOT EXECUTED 13960: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13964: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 13968: 00014444 .word 0x00014444 1396c: 00015ed8 .word 0x00015ed8 0001e088 : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1e088: e59f309c ldr r3, [pc, #156] ; 1e12c <== NOT EXECUTED 1e08c: e5932000 ldr r2, [r3] <== NOT EXECUTED 1e090: e1500002 cmp r0, r2 <== NOT EXECUTED #include int fsync( int fd ) { 1e094: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1e098: 2a000014 bcs 1e0f0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 1e09c: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 1e0a0: e59f2088 ldr r2, [pc, #136] ; 1e130 <== NOT EXECUTED 1e0a4: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 1e0a8: e0833000 add r3, r3, r0 <== NOT EXECUTED 1e0ac: e5921000 ldr r1, [r2] <== NOT EXECUTED 1e0b0: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 1e0b4: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 1e0b8: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 1e0bc: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 1e0c0: 0a00000a beq 1e0f0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 1e0c4: e3120004 tst r2, #4 ; 0x4 <== NOT EXECUTED 1e0c8: 0a00000d beq 1e104 <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) 1e0cc: e5902030 ldr r2, [r0, #48] <== NOT EXECUTED 1e0d0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1e0d4: 0a000005 beq 1e0f0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 1e0d8: e5922028 ldr r2, [r2, #40] <== NOT EXECUTED 1e0dc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1e0e0: 0a00000c beq 1e118 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 1e0e4: e1a0e00f mov lr, pc <== NOT EXECUTED 1e0e8: e12fff12 bx r2 <== NOT EXECUTED } 1e0ec: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 1e0f0: eb003b95 bl 2cf4c <__errno> <== NOT EXECUTED 1e0f4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 1e0f8: e5803000 str r3, [r0] <== NOT EXECUTED 1e0fc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1e100: 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 ); 1e104: eb003b90 bl 2cf4c <__errno> <== NOT EXECUTED 1e108: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1e10c: e5803000 str r3, [r0] <== NOT EXECUTED 1e110: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1e114: 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 ); 1e118: eb003b8b bl 2cf4c <__errno> <== NOT EXECUTED 1e11c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1e120: e5803000 str r3, [r0] <== NOT EXECUTED 1e124: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1e128: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1e12c: 0003e634 .word 0x0003e634 1e130: 00059114 .word 0x00059114 00008ffc : int ftruncate( int fd, off_t length ) { 8ffc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 9000: e59f30e8 ldr r3, [pc, #232] ; 90f0 <== NOT EXECUTED 9004: e5932000 ldr r2, [r3] <== NOT EXECUTED 9008: e1500002 cmp r0, r2 <== NOT EXECUTED int ftruncate( int fd, off_t length ) { 900c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 9010: e1a05001 mov r5, r1 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 9014: 2a000021 bcs 90a0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 9018: e59f20d4 ldr r2, [pc, #212] ; 90f4 <== NOT EXECUTED 901c: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 9020: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 9024: e5921000 ldr r1, [r2] <== NOT EXECUTED 9028: e0833000 add r3, r3, r0 <== NOT EXECUTED 902c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 9030: e0814003 add r4, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 9034: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 9038: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 903c: 0a000017 beq 90a0 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 9040: e284c010 add ip, r4, #16 ; 0x10 <== NOT EXECUTED 9044: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 9048: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 904c: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 9050: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 9054: 0a00001b beq 90c8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 9058: e1a0000d mov r0, sp <== NOT EXECUTED 905c: e1a0e00f mov lr, pc <== NOT EXECUTED 9060: e12fff13 bx r3 <== NOT EXECUTED 9064: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 9068: 0a00001b beq 90dc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 906c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 9070: e3130004 tst r3, #4 ; 0x4 <== NOT EXECUTED 9074: 0a00000e beq 90b4 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 9078: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 907c: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 9080: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 9084: 0a00000f beq 90c8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 9088: e1a00004 mov r0, r4 <== NOT EXECUTED 908c: e1a01005 mov r1, r5 <== NOT EXECUTED 9090: e1a0e00f mov lr, pc <== NOT EXECUTED 9094: e12fff13 bx r3 <== NOT EXECUTED } 9098: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 909c: 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); 90a0: eb0008a2 bl b330 <__errno> <== NOT EXECUTED 90a4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 90a8: e5803000 str r3, [r0] <== NOT EXECUTED 90ac: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 90b0: eafffff8 b 9098 <== 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 ); 90b4: eb00089d bl b330 <__errno> <== NOT EXECUTED 90b8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 90bc: e5803000 str r3, [r0] <== NOT EXECUTED 90c0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 90c4: eafffff3 b 9098 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 90c8: eb000898 bl b330 <__errno> <== NOT EXECUTED 90cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 90d0: e5803000 str r3, [r0] <== NOT EXECUTED 90d4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 90d8: eaffffee b 9098 <== 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 ); 90dc: eb000893 bl b330 <__errno> <== NOT EXECUTED 90e0: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 90e4: e5803000 str r3, [r0] <== NOT EXECUTED 90e8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 90ec: eaffffe9 b 9098 <== NOT EXECUTED 90f0: 00014444 .word 0x00014444 90f4: 00015ed8 .word 0x00015ed8 0001e230 : char * getcwd ( char *pt, size_t size) { 1e230: 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) 1e234: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED char * getcwd ( char *pt, size_t size) { 1e238: e24dd078 sub sp, sp, #120 ; 0x78 <== NOT EXECUTED 1e23c: 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) 1e240: 0a000104 beq 1e658 <== NOT EXECUTED { ptsize = 0; if (!size) 1e244: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED { errno = EINVAL; return (char *) NULL; } ept = pt + size; 1e248: 108ab001 addne fp, sl, r1 <== NOT EXECUTED 1e24c: 13a01000 movne r1, #0 ; 0x0 <== NOT EXECUTED 1e250: 158d101c strne r1, [sp, #28] <== NOT EXECUTED */ if (pt) { ptsize = 0; if (!size) 1e254: 0a0000fa beq 1e644 <== NOT EXECUTED return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; *bpt = '\0'; 1e258: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 1e25c: 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))) 1e260: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 1e264: ebff98db bl 45d8 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; 1e268: 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))) 1e26c: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; } bpt = ept - 1; 1e270: 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))) 1e274: 0a000007 beq 1e298 <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 1e278: e3a0502e mov r5, #46 ; 0x2e <== NOT EXECUTED up[1] = '\0'; 1e27c: e5c64001 strb r4, [r6, #1] <== NOT EXECUTED { goto err; } eup = up + MAXPATHLEN; bup = up; up[0] = '.'; 1e280: e5c65000 strb r5, [r6] <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) 1e284: e59f03fc ldr r0, [pc, #1020] ; 1e688 <== NOT EXECUTED 1e288: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 1e28c: ebff9d01 bl 5698 <== NOT EXECUTED 1e290: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1e294: 0a00000b beq 1e2c8 <== NOT EXECUTED /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); if (ptsize) 1e298: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 1e29c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1e2a0: 1a000005 bne 1e2bc <== NOT EXECUTED free (pt); free (up); 1e2a4: e1a00006 mov r0, r6 <== NOT EXECUTED 1e2a8: ebff972a bl 3f58 <== NOT EXECUTED 1e2ac: e3a0a000 mov sl, #0 ; 0x0 <== NOT EXECUTED return (char *) NULL; } 1e2b0: e1a0000a mov r0, sl <== NOT EXECUTED 1e2b4: e28dd078 add sp, sp, #120 ; 0x78 <== NOT EXECUTED 1e2b8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED err: if(dir) (void) _closedir (dir); if (ptsize) free (pt); 1e2bc: e1a0000a mov r0, sl <== NOT EXECUTED 1e2c0: ebff9724 bl 3f58 <== NOT EXECUTED 1e2c4: eafffff6 b 1e2a4 <== NOT EXECUTED up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat ("/", &s)) goto err; root_dev = s.st_dev; 1e2c8: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 1e2cc: e891000e ldm r1, {r1, r2, r3} <== NOT EXECUTED 1e2d0: e58d1008 str r1, [sp, #8] <== NOT EXECUTED 1e2d4: e58d2004 str r2, [sp, #4] <== NOT EXECUTED root_ino = s.st_ino; 1e2d8: e58d3018 str r3, [sp, #24] <== NOT EXECUTED errno = 0; /* XXX readdir has no error return. */ 1e2dc: eb003b1a bl 2cf4c <__errno> <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 1e2e0: 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. */ 1e2e4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 1e2e8: e3a03fff mov r3, #1020 ; 0x3fc <== NOT EXECUTED 1e2ec: e5804000 str r4, [r0] <== NOT EXECUTED if (!(up = (char *) malloc (upsize = 1024 - 4))) { goto err; } eup = up + MAXPATHLEN; 1e2f0: 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. */ 1e2f4: e58d2010 str r2, [sp, #16] <== NOT EXECUTED 1e2f8: e58d3020 str r3, [sp, #32] <== NOT EXECUTED 1e2fc: e1a08006 mov r8, r6 <== NOT EXECUTED for (first = 1;; first = 0) { /* Stat the current level. */ if (_stat (up, &s)) 1e300: e1a00006 mov r0, r6 <== NOT EXECUTED 1e304: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 1e308: ebff9ce2 bl 5698 <== NOT EXECUTED 1e30c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e310: 1affffe0 bne 1e298 <== NOT EXECUTED goto err; /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; 1e314: e59d902c ldr r9, [sp, #44] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 1e318: 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; 1e31c: e59d2034 ldr r2, [sp, #52] <== NOT EXECUTED dev = s.st_dev; 1e320: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 1e324: e1510009 cmp r1, r9 <== NOT EXECUTED /* Stat the current level. */ if (_stat (up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; 1e328: e58d200c str r2, [sp, #12] <== NOT EXECUTED dev = s.st_dev; 1e32c: e58d3000 str r3, [sp] <== NOT EXECUTED /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) 1e330: 0a0000bd beq 1e62c <== NOT EXECUTED 1e334: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED 1e338: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED 1e33c: e1520001 cmp r2, r1 <== NOT EXECUTED 1e340: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED 1e344: 02003001 andeq r3, r0, #1 ; 0x1 <== NOT EXECUTED 1e348: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e34c: 0a000009 beq 1e378 <== NOT EXECUTED { *--bpt = '/'; 1e350: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 1e354: e3a0302f mov r3, #47 ; 0x2f <== NOT EXECUTED 1e358: e2421001 sub r1, r2, #1 ; 0x1 <== NOT EXECUTED 1e35c: 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); 1e360: e1a0000a mov r0, sl <== NOT EXECUTED 1e364: e061200b rsb r2, r1, fp <== NOT EXECUTED 1e368: eb0044ae bl 2f628 <== NOT EXECUTED free (up); 1e36c: e1a00006 mov r0, r6 <== NOT EXECUTED 1e370: ebff96f8 bl 3f58 <== NOT EXECUTED 1e374: eaffffcd b 1e2b0 <== 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) 1e378: e2883b01 add r3, r8, #1024 ; 0x400 <== NOT EXECUTED 1e37c: e59d1024 ldr r1, [sp, #36] <== NOT EXECUTED 1e380: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 1e384: e1510003 cmp r1, r3 <== NOT EXECUTED 1e388: 9a000053 bls 1e4dc <== NOT EXECUTED goto err; } bup = up; eup = up + upsize; } *bup++ = '.'; 1e38c: e1a04008 mov r4, r8 <== NOT EXECUTED 1e390: e3a0102e mov r1, #46 ; 0x2e <== NOT EXECUTED 1e394: e4c41001 strb r1, [r4], #1 <== NOT EXECUTED *bup++ = '.'; *bup = '\0'; 1e398: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 1e39c: e5c81001 strb r1, [r8, #1] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1e3a0: e1a00006 mov r0, r6 <== NOT EXECUTED bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; *bup = '\0'; 1e3a4: e5c42001 strb r2, [r4, #1] <== NOT EXECUTED /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1e3a8: eb0004fd bl 1f7a4 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 1e3ac: e2843001 add r3, r4, #1 ; 0x1 <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1e3b0: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED } bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; 1e3b4: e58d3028 str r3, [sp, #40] <== NOT EXECUTED *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = _opendir (up)) || _fstat (__dirfd (dir), &s)) 1e3b8: 0affffb6 beq 1e298 <== NOT EXECUTED 1e3bc: e5970000 ldr r0, [r7] <== NOT EXECUTED 1e3c0: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 1e3c4: ebfffefa bl 1dfb4 <== NOT EXECUTED 1e3c8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e3cc: 1a00002c bne 1e484 <== NOT EXECUTED goto err; /* Add trailing slash for next directory. */ *bup++ = '/'; 1e3d0: e3a0102f mov r1, #47 ; 0x2f <== NOT EXECUTED 1e3d4: 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) 1e3d8: e28d2028 add r2, sp, #40 ; 0x28 <== NOT EXECUTED 1e3dc: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 1e3e0: 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++ = '/'; 1e3e4: 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) 1e3e8: 0a000048 beq 1e510 <== NOT EXECUTED 1e3ec: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 1e3f0: e1a00007 mov r0, r7 <== NOT EXECUTED 1e3f4: eb00059d bl 1fa70 <== NOT EXECUTED 1e3f8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e3fc: 0a00001c beq 1e474 <== NOT EXECUTED goto notfound; if (ISDOT (dp)) 1e400: e5d0300c ldrb r3, [r0, #12] <== NOT EXECUTED 1e404: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 1e408: 1a000004 bne 1e420 <== NOT EXECUTED 1e40c: e5d0300d ldrb r3, [r0, #13] <== NOT EXECUTED 1e410: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e414: 0afffff5 beq 1e3f0 <== NOT EXECUTED 1e418: e353002e cmp r3, #46 ; 0x2e <== NOT EXECUTED 1e41c: 0a00002a beq 1e4cc <== NOT EXECUTED continue; bcopy (dp->d_name, bup, strlen (dp->d_name) + 1); 1e420: e280400c add r4, r0, #12 ; 0xc <== NOT EXECUTED 1e424: e1a00004 mov r0, r4 <== NOT EXECUTED 1e428: eb00515d bl 329a4 <== NOT EXECUTED 1e42c: e1a01004 mov r1, r4 <== NOT EXECUTED 1e430: e2802001 add r2, r0, #1 ; 0x1 <== NOT EXECUTED 1e434: e1a00008 mov r0, r8 <== NOT EXECUTED 1e438: eb00447a bl 2f628 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) 1e43c: e1a00006 mov r0, r6 <== NOT EXECUTED 1e440: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 1e444: ebff9c93 bl 5698 <== NOT EXECUTED 1e448: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e44c: 0a00000f beq 1e490 <== NOT EXECUTED { if (!save_errno) 1e450: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 1e454: 0a000019 beq 1e4c0 <== NOT EXECUTED save_errno = errno; errno = 0; 1e458: eb003abb bl 2cf4c <__errno> <== NOT EXECUTED 1e45c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1e460: e5803000 str r3, [r0] <== NOT EXECUTED } } else for (;;) { if (!(dp = _readdir (dir))) 1e464: e1a00007 mov r0, r7 <== NOT EXECUTED 1e468: eb000580 bl 1fa70 <== NOT EXECUTED 1e46c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e470: 1affffe2 bne 1e400 <== 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) 1e474: eb003ab4 bl 2cf4c <__errno> <== NOT EXECUTED 1e478: e5903000 ldr r3, [r0] <== NOT EXECUTED 1e47c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e480: 0a000064 beq 1e618 <== NOT EXECUTED errno = save_errno ? save_errno : ENOENT; /* FALLTHROUGH */ err: if(dir) (void) _closedir (dir); 1e484: e1a00007 mov r0, r7 <== NOT EXECUTED 1e488: eb0030bb bl 2a77c <== NOT EXECUTED 1e48c: eaffff81 b 1e298 <== NOT EXECUTED if (!save_errno) save_errno = errno; errno = 0; continue; } if (s.st_dev == dev && s.st_ino == ino) 1e490: e59d302c ldr r3, [sp, #44] <== NOT EXECUTED 1e494: e1530009 cmp r3, r9 <== NOT EXECUTED 1e498: 1affffd4 bne 1e3f0 <== NOT EXECUTED 1e49c: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 1e4a0: e59d1000 ldr r1, [sp] <== NOT EXECUTED 1e4a4: e1530001 cmp r3, r1 <== NOT EXECUTED 1e4a8: 1affffd0 bne 1e3f0 <== NOT EXECUTED 1e4ac: e59d3034 ldr r3, [sp, #52] <== NOT EXECUTED 1e4b0: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED 1e4b4: e1530002 cmp r3, r2 <== NOT EXECUTED 1e4b8: 1affffcc bne 1e3f0 <== NOT EXECUTED 1e4bc: ea000020 b 1e544 <== NOT EXECUTED /* Save the first error for later. */ if (stat (up, &s)) { if (!save_errno) save_errno = errno; 1e4c0: eb003aa1 bl 2cf4c <__errno> <== NOT EXECUTED 1e4c4: e5905000 ldr r5, [r0] <== NOT EXECUTED 1e4c8: eaffffe2 b 1e458 <== NOT EXECUTED else for (;;) { if (!(dp = _readdir (dir))) goto notfound; if (ISDOT (dp)) 1e4cc: e5d0300e ldrb r3, [r0, #14] <== NOT EXECUTED 1e4d0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e4d4: 0affffc5 beq 1e3f0 <== NOT EXECUTED 1e4d8: eaffffd0 b 1e420 <== NOT EXECUTED * possible component name, plus a trailing NULL. */ if (bup + 3 + MAXNAMLEN + 1 >= eup) { if (!(up = (char *) realloc (up, upsize *= 2))) 1e4dc: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED 1e4e0: e1a02082 lsl r2, r2, #1 <== NOT EXECUTED 1e4e4: e1a00006 mov r0, r6 <== NOT EXECUTED 1e4e8: e1a01002 mov r1, r2 <== NOT EXECUTED 1e4ec: e58d2020 str r2, [sp, #32] <== NOT EXECUTED 1e4f0: eb0005d6 bl 1fc50 <== NOT EXECUTED 1e4f4: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 1e4f8: 0affff66 beq 1e298 <== NOT EXECUTED { goto err; } bup = up; eup = up + upsize; 1e4fc: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 1e500: e0863003 add r3, r6, r3 <== NOT EXECUTED 1e504: e58d3024 str r3, [sp, #36] <== NOT EXECUTED 1e508: e1a08006 mov r8, r6 <== NOT EXECUTED 1e50c: eaffff9e b 1e38c <== 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) 1e510: e59d3030 ldr r3, [sp, #48] <== NOT EXECUTED 1e514: e59d1000 ldr r1, [sp] <== NOT EXECUTED 1e518: e1530001 cmp r3, r1 <== NOT EXECUTED 1e51c: 1affffb2 bne 1e3ec <== NOT EXECUTED { for (;;) { if (!(dp = _readdir (dir))) 1e520: e1a00007 mov r0, r7 <== NOT EXECUTED 1e524: eb000551 bl 1fa70 <== NOT EXECUTED 1e528: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1e52c: 0a000042 beq 1e63c <== NOT EXECUTED goto notfound; if (dp->d_ino == ino) 1e530: e5903000 ldr r3, [r0] <== NOT EXECUTED 1e534: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED 1e538: e1530002 cmp r3, r2 <== NOT EXECUTED 1e53c: 1afffff7 bne 1e520 <== NOT EXECUTED 1e540: 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)) 1e544: e1a00004 mov r0, r4 <== NOT EXECUTED 1e548: eb005115 bl 329a4 <== NOT EXECUTED 1e54c: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 1e550: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED 1e554: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 1e558: 13a03001 movne r3, #1 ; 0x1 <== NOT EXECUTED 1e55c: 03a03002 moveq r3, #2 ; 0x2 <== NOT EXECUTED 1e560: e0833000 add r3, r3, r0 <== NOT EXECUTED 1e564: e06a5002 rsb r5, sl, r2 <== NOT EXECUTED 1e568: e1550003 cmp r5, r3 <== NOT EXECUTED 1e56c: 8a000012 bhi 1e5bc <== NOT EXECUTED { size_t len, off; if (!ptsize) 1e570: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED 1e574: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e578: 0a00003e beq 1e678 <== NOT EXECUTED errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; if (!(pt = (char *) realloc (pt, ptsize *= 2))) 1e57c: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED 1e580: e1a0000a mov r0, sl <== NOT EXECUTED 1e584: e1a01081 lsl r1, r1, #1 <== NOT EXECUTED 1e588: e58d101c str r1, [sp, #28] <== NOT EXECUTED 1e58c: eb0005af bl 1fc50 <== NOT EXECUTED 1e590: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 1e594: 0affffba beq 1e484 <== NOT EXECUTED { errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; 1e598: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 1e59c: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED { errno = ERANGE; goto err; } off = bpt - pt; len = ept - bpt; 1e5a0: e063200b rsb r2, r3, fp <== NOT EXECUTED if (!(pt = (char *) realloc (pt, ptsize *= 2))) { goto err; } bpt = pt + off; ept = pt + ptsize; 1e5a4: e08ab001 add fp, sl, r1 <== NOT EXECUTED (void) bcopy (bpt, ept - len, len); 1e5a8: e062300b rsb r3, r2, fp <== NOT EXECUTED 1e5ac: e08a1005 add r1, sl, r5 <== NOT EXECUTED 1e5b0: e1a00003 mov r0, r3 <== NOT EXECUTED 1e5b4: e58d3014 str r3, [sp, #20] <== NOT EXECUTED 1e5b8: eb00441a bl 2f628 <== NOT EXECUTED bpt = ept - len; } if (!first) 1e5bc: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED 1e5c0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED *--bpt = '/'; 1e5c4: 059d2014 ldreq r2, [sp, #20] <== NOT EXECUTED 1e5c8: 03a0302f moveq r3, #47 ; 0x2f <== NOT EXECUTED 1e5cc: 05623001 strbeq r3, [r2, #-1]! <== NOT EXECUTED bpt -= strlen (dp->d_name); 1e5d0: e1a00004 mov r0, r4 <== NOT EXECUTED ept = pt + ptsize; (void) bcopy (bpt, ept - len, len); bpt = ept - len; } if (!first) *--bpt = '/'; 1e5d4: 058d2014 streq r2, [sp, #20] <== NOT EXECUTED bpt -= strlen (dp->d_name); 1e5d8: eb0050f1 bl 329a4 <== NOT EXECUTED 1e5dc: e59d1014 ldr r1, [sp, #20] <== NOT EXECUTED 1e5e0: e0601001 rsb r1, r0, r1 <== NOT EXECUTED 1e5e4: e58d1014 str r1, [sp, #20] <== NOT EXECUTED 1e5e8: e1a02000 mov r2, r0 <== NOT EXECUTED bcopy (dp->d_name, bpt, strlen (dp->d_name)); 1e5ec: e1a01004 mov r1, r4 <== NOT EXECUTED 1e5f0: e59d0014 ldr r0, [sp, #20] <== NOT EXECUTED 1e5f4: eb00440b bl 2f628 <== NOT EXECUTED (void) _closedir (dir); 1e5f8: e1a00007 mov r0, r7 <== NOT EXECUTED 1e5fc: eb00305e bl 2a77c <== NOT EXECUTED dir = 0; /* Truncate any file name. */ *bup = '\0'; 1e600: e59d2028 ldr r2, [sp, #40] <== NOT EXECUTED 1e604: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1e608: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1e60c: e5c23001 strb r3, [r2, #1] <== NOT EXECUTED 1e610: e58d1010 str r1, [sp, #16] <== NOT EXECUTED 1e614: eaffff39 b 1e300 <== NOT EXECUTED * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (!errno) errno = save_errno ? save_errno : ENOENT; 1e618: eb003a4b bl 2cf4c <__errno> <== NOT EXECUTED 1e61c: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 1e620: 03a05002 moveq r5, #2 ; 0x2 <== NOT EXECUTED 1e624: e5805000 str r5, [r0] <== NOT EXECUTED 1e628: eaffff95 b 1e484 <== 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) 1e62c: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 1e630: e1510003 cmp r1, r3 <== NOT EXECUTED 1e634: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 1e638: eaffff3d b 1e334 <== NOT EXECUTED (void) _closedir (dir); dir = 0; /* Truncate any file name. */ *bup = '\0'; } 1e63c: e1a05000 mov r5, r0 <== NOT EXECUTED 1e640: eaffff8b b 1e474 <== NOT EXECUTED if (pt) { ptsize = 0; if (!size) { errno = EINVAL; 1e644: eb003a40 bl 2cf4c <__errno> <== NOT EXECUTED 1e648: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1e64c: e5803000 str r3, [r0] <== NOT EXECUTED 1e650: e1a0a004 mov sl, r4 <== NOT EXECUTED 1e654: eaffff15 b 1e2b0 <== NOT EXECUTED } ept = pt + size; } else { if (!(pt = (char *) malloc (ptsize = 1024 - 4))) 1e658: e3a00fff mov r0, #1020 ; 0x3fc <== NOT EXECUTED 1e65c: ebff97dd bl 45d8 <== NOT EXECUTED 1e660: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED 1e664: 0affff11 beq 1e2b0 <== NOT EXECUTED { return (char *) NULL; } ept = pt + ptsize; 1e668: e3a02fff mov r2, #1020 ; 0x3fc <== NOT EXECUTED 1e66c: e28abfff add fp, sl, #1020 ; 0x3fc <== NOT EXECUTED 1e670: e58d201c str r2, [sp, #28] <== NOT EXECUTED 1e674: eafffef7 b 1e258 <== NOT EXECUTED { size_t len, off; if (!ptsize) { errno = ERANGE; 1e678: eb003a33 bl 2cf4c <__errno> <== NOT EXECUTED 1e67c: e3a03022 mov r3, #34 ; 0x22 <== NOT EXECUTED 1e680: e5803000 str r3, [r0] <== NOT EXECUTED 1e684: eaffff7e b 1e484 <== NOT EXECUTED 1e688: 00044080 .word 0x00044080 0002ab6c : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 2ab6c: e59f30b4 ldr r3, [pc, #180] ; 2ac28 <== NOT EXECUTED 2ab70: e593c000 ldr ip, [r3] <== NOT EXECUTED 2ab74: e150000c cmp r0, ip <== NOT EXECUTED 2ab78: 31a03200 lslcc r3, r0, #4 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 2ab7c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 2ab80: e1a06002 mov r6, r2 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 2ab84: 359f20a0 ldrcc r2, [pc, #160] ; 2ac2c <== NOT EXECUTED 2ab88: 30433100 subcc r3, r3, r0, lsl #2 <== NOT EXECUTED 2ab8c: 30833000 addcc r3, r3, r0 <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 2ab90: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 2ab94: 35921000 ldrcc r1, [r2] <== NOT EXECUTED 2ab98: 31a03103 lslcc r3, r3, #2 <== NOT EXECUTED 2ab9c: 30814003 addcc r4, r1, r3 <== NOT EXECUTED 2aba0: 23a04000 movcs r4, #0 ; 0x0 <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 2aba4: e284c010 add ip, r4, #16 ; 0x10 <== NOT EXECUTED 2aba8: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED int getdents( int dd_fd, char *dd_buf, int dd_len ) { 2abac: 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; 2abb0: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED if ( !loc.ops->node_type_h ) 2abb4: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 2abb8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2abbc: 0a000014 beq 2ac14 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 2abc0: e1a0000d mov r0, sp <== NOT EXECUTED 2abc4: e1a0e00f mov lr, pc <== NOT EXECUTED 2abc8: e12fff13 bx r3 <== NOT EXECUTED 2abcc: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 2abd0: 1a00000a bne 2ac00 <== NOT EXECUTED /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 2abd4: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 2abd8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 2abdc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2abe0: 0a00000b beq 2ac14 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 2abe4: e1a00004 mov r0, r4 <== NOT EXECUTED 2abe8: e1a01005 mov r1, r5 <== NOT EXECUTED 2abec: e1a02006 mov r2, r6 <== NOT EXECUTED 2abf0: e1a0e00f mov lr, pc <== NOT EXECUTED 2abf4: e12fff13 bx r3 <== NOT EXECUTED } 2abf8: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 2abfc: 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 ); 2ac00: eb0008d1 bl 2cf4c <__errno> <== NOT EXECUTED 2ac04: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 2ac08: e5803000 str r3, [r0] <== NOT EXECUTED 2ac0c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2ac10: eafffff8 b 2abf8 <== 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 ); 2ac14: eb0008cc bl 2cf4c <__errno> <== NOT EXECUTED 2ac18: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 2ac1c: e5803000 str r3, [r0] <== NOT EXECUTED 2ac20: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2ac24: eafffff3 b 2abf8 <== NOT EXECUTED 2ac28: 0003e634 .word 0x0003e634 2ac2c: 00059114 .word 0x00059114 0001e68c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { 1e68c: e59f3008 ldr r3, [pc, #8] ; 1e69c <== NOT EXECUTED 1e690: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Egid; } 1e694: e1d203b0 ldrh r0, [r2, #48] <== NOT EXECUTED 1e698: e12fff1e bx lr <== NOT EXECUTED 1e69c: 0003f168 .word 0x0003f168 0001e6a0 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { 1e6a0: e59f3008 ldr r3, [pc, #8] ; 1e6b0 <== NOT EXECUTED 1e6a4: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Euid; } 1e6a8: e1d202be ldrh r0, [r2, #46] <== NOT EXECUTED 1e6ac: e12fff1e bx lr <== NOT EXECUTED 1e6b0: 0003f168 .word 0x0003f168 0001e6b4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 1e6b4: e59f3008 ldr r3, [pc, #8] ; 1e6c4 <== NOT EXECUTED 1e6b8: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 1e6bc: e1d202bc ldrh r0, [r2, #44] <== NOT EXECUTED 1e6c0: e12fff1e bx lr <== NOT EXECUTED 1e6c4: 0003f168 .word 0x0003f168 0001ed24 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 1ed24: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 1ed28: e59d801c ldr r8, [sp, #28] <== NOT EXECUTED 1ed2c: e1a06000 mov r6, r0 <== NOT EXECUTED 1ed30: e1a0a001 mov sl, r1 <== NOT EXECUTED 1ed34: e1a04002 mov r4, r2 <== NOT EXECUTED 1ed38: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 1ed3c: ebffffb2 bl 1ec0c <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { 1ed40: e59f00b0 ldr r0, [pc, #176] ; 1edf8 <== NOT EXECUTED 1ed44: e59f10b0 ldr r1, [pc, #176] ; 1edfc <== NOT EXECUTED 1ed48: eb003ac3 bl 2d85c <== NOT EXECUTED 1ed4c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1ed50: 1a000006 bne 1ed70 <== NOT EXECUTED 1ed54: ea000022 b 1ede4 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 1ed58: e5940000 ldr r0, [r4] <== NOT EXECUTED 1ed5c: eb004ce9 bl 32108 <== NOT EXECUTED 1ed60: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 1ed64: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED } else { match = (grp->gr_gid == gid); } if (match) { 1ed68: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ed6c: 1a00000f bne 1edb0 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 1ed70: e1a01004 mov r1, r4 <== NOT EXECUTED 1ed74: e1a02007 mov r2, r7 <== NOT EXECUTED 1ed78: e1a03008 mov r3, r8 <== NOT EXECUTED 1ed7c: e1a00005 mov r0, r5 <== NOT EXECUTED 1ed80: ebfffede bl 1e900 <== NOT EXECUTED 1ed84: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 1ed88: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 1ed8c: 0a00000d beq 1edc8 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 1ed90: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1ed94: 1affffef bne 1ed58 <== NOT EXECUTED match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 1ed98: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 1ed9c: e153000a cmp r3, sl <== NOT EXECUTED 1eda0: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 1eda4: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 1eda8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1edac: 0affffef beq 1ed70 <== NOT EXECUTED fclose(fp); 1edb0: e1a00005 mov r0, r5 <== NOT EXECUTED 1edb4: eb0038b5 bl 2d090 <== NOT EXECUTED *result = grp; 1edb8: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 1edbc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1edc0: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 1edc4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 1edc8: eb00385f bl 2cf4c <__errno> <== NOT EXECUTED 1edcc: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1edd0: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 1edd4: e1a00005 mov r0, r5 <== NOT EXECUTED 1edd8: eb0038ac bl 2d090 <== NOT EXECUTED 1eddc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1ede0: 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; 1ede4: eb003858 bl 2cf4c <__errno> <== NOT EXECUTED 1ede8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1edec: e5803000 str r3, [r0] <== NOT EXECUTED 1edf0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1edf4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 1edf8: 00043f9c .word 0x00043f9c 1edfc: 00044ea8 .word 0x00044ea8 0001ea58 : return p; } struct group *getgrent() { if (group_fp == NULL) 1ea58: e59f3030 ldr r3, [pc, #48] ; 1ea90 <== NOT EXECUTED 1ea5c: e5930000 ldr r0, [r3] <== NOT EXECUTED 1ea60: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent() { 1ea64: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (group_fp == NULL) 1ea68: 0a000006 beq 1ea88 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 1ea6c: e59f1020 ldr r1, [pc, #32] ; 1ea94 <== NOT EXECUTED 1ea70: e59f2020 ldr r2, [pc, #32] ; 1ea98 <== NOT EXECUTED 1ea74: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1ea78: ebffffa0 bl 1e900 <== NOT EXECUTED 1ea7c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ea80: 159f000c ldrne r0, [pc, #12] ; 1ea94 <== NOT EXECUTED 1ea84: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 1ea88: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &grent; } 1ea8c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1ea90: 0005890c .word 0x0005890c 1ea94: 000589d8 .word 0x000589d8 1ea98: 00058910 .word 0x00058910 0001ee3c : struct group *getgrgid( gid_t gid ) { 1ee3c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1ee40: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 1ee44: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 1ee48: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1ee4c: e59f1024 ldr r1, [pc, #36] ; 1ee78 <== NOT EXECUTED 1ee50: e59f2024 ldr r2, [pc, #36] ; 1ee7c <== NOT EXECUTED 1ee54: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1ee58: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 1ee5c: e58dc000 str ip, [sp] <== NOT EXECUTED 1ee60: ebffffe6 bl 1ee00 <== NOT EXECUTED 1ee64: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ee68: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1ee6c: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1ee70: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1ee74: e8bd8000 pop {pc} <== NOT EXECUTED 1ee78: 000589d8 .word 0x000589d8 1ee7c: 00058910 .word 0x00058910 0001ee00 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 1ee00: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1ee04: e1a0c001 mov ip, r1 <== NOT EXECUTED 1ee08: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 1ee0c: e1a0e002 mov lr, r2 <== NOT EXECUTED 1ee10: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 1ee14: e1a0200c mov r2, ip <== NOT EXECUTED 1ee18: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1ee1c: e58d3000 str r3, [sp] <== NOT EXECUTED 1ee20: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 1ee24: e1a0300e mov r3, lr <== NOT EXECUTED 1ee28: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1ee2c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1ee30: ebffffbb bl 1ed24 <== NOT EXECUTED } 1ee34: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1ee38: e8bd8000 pop {pc} <== NOT EXECUTED 0001eeb0 : struct group *getgrnam( const char *name ) { 1eeb0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1eeb4: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 1eeb8: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1eebc: e59f1020 ldr r1, [pc, #32] ; 1eee4 <== NOT EXECUTED 1eec0: e59f2020 ldr r2, [pc, #32] ; 1eee8 <== NOT EXECUTED 1eec4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1eec8: e58dc000 str ip, [sp] <== NOT EXECUTED 1eecc: ebffffeb bl 1ee80 <== NOT EXECUTED 1eed0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1eed4: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1eed8: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1eedc: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1eee0: e8bd8000 pop {pc} <== NOT EXECUTED 1eee4: 000589d8 .word 0x000589d8 1eee8: 00058910 .word 0x00058910 0001ee80 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 1ee80: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1ee84: e1a0c002 mov ip, r2 <== NOT EXECUTED 1ee88: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getgr_r(name, 0, grp, buffer, bufsize, result); 1ee8c: e58d3000 str r3, [sp] <== NOT EXECUTED 1ee90: e1a0300c mov r3, ip <== NOT EXECUTED 1ee94: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1ee98: e1a02001 mov r2, r1 <== NOT EXECUTED 1ee9c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1eea0: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1eea4: ebffff9e bl 1ed24 <== NOT EXECUTED } 1eea8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1eeac: e8bd8000 pop {pc} <== NOT EXECUTED 00020124 : */ pid_t getpid( void ) { return _Objects_Local_node; } 20124: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 20128: e12fff1e bx lr <== NOT EXECUTED 0001ef24 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 1ef24: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 1ef28: e59d801c ldr r8, [sp, #28] <== NOT EXECUTED 1ef2c: e1a06000 mov r6, r0 <== NOT EXECUTED 1ef30: e1a0a001 mov sl, r1 <== NOT EXECUTED 1ef34: e1a04002 mov r4, r2 <== NOT EXECUTED 1ef38: e1a07003 mov r7, r3 <== NOT EXECUTED FILE *fp; int match; init_etc_passwd_group(); 1ef3c: ebffff32 bl 1ec0c <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { 1ef40: e59f00b0 ldr r0, [pc, #176] ; 1eff8 <== NOT EXECUTED 1ef44: e59f10b0 ldr r1, [pc, #176] ; 1effc <== NOT EXECUTED 1ef48: eb003a43 bl 2d85c <== NOT EXECUTED 1ef4c: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1ef50: 1a000006 bne 1ef70 <== NOT EXECUTED 1ef54: ea000022 b 1efe4 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 1ef58: e5940000 ldr r0, [r4] <== NOT EXECUTED 1ef5c: eb004c69 bl 32108 <== NOT EXECUTED 1ef60: e2700001 rsbs r0, r0, #1 ; 0x1 <== NOT EXECUTED 1ef64: 33a00000 movcc r0, #0 ; 0x0 <== NOT EXECUTED } else { match = (pwd->pw_uid == uid); } if (match) { 1ef68: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ef6c: 1a00000f bne 1efb0 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 1ef70: e1a01004 mov r1, r4 <== NOT EXECUTED 1ef74: e1a02007 mov r2, r7 <== NOT EXECUTED 1ef78: e1a03008 mov r3, r8 <== NOT EXECUTED 1ef7c: e1a00005 mov r0, r5 <== NOT EXECUTED 1ef80: ebfffec5 bl 1ea9c <== NOT EXECUTED 1ef84: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 1ef88: e1a01006 mov r1, r6 <== NOT EXECUTED if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 1ef8c: 0a00000d beq 1efc8 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { 1ef90: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1ef94: 1affffef bne 1ef58 <== NOT EXECUTED match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 1ef98: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED 1ef9c: e153000a cmp r3, sl <== NOT EXECUTED 1efa0: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 1efa4: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED } if (match) { 1efa8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1efac: 0affffef beq 1ef70 <== NOT EXECUTED fclose(fp); 1efb0: e1a00005 mov r0, r5 <== NOT EXECUTED 1efb4: eb003835 bl 2d090 <== NOT EXECUTED *result = pwd; 1efb8: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED 1efbc: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1efc0: e5834000 str r4, [r3] <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 1efc4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 1efc8: eb0037df bl 2cf4c <__errno> <== NOT EXECUTED 1efcc: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1efd0: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 1efd4: e1a00005 mov r0, r5 <== NOT EXECUTED 1efd8: eb00382c bl 2d090 <== NOT EXECUTED 1efdc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1efe0: 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; 1efe4: eb0037d8 bl 2cf4c <__errno> <== NOT EXECUTED 1efe8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1efec: e5803000 str r3, [r0] <== NOT EXECUTED 1eff0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1eff4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 1eff8: 00043f28 .word 0x00043f28 1effc: 00044ea8 .word 0x00044ea8 0001ebc8 : return p; } struct passwd *getpwent() { if (passwd_fp == NULL) 1ebc8: e59f3030 ldr r3, [pc, #48] ; 1ec00 <== NOT EXECUTED 1ebcc: e5930000 ldr r0, [r3] <== NOT EXECUTED 1ebd0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent() { 1ebd4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if (passwd_fp == NULL) 1ebd8: 0a000006 beq 1ebf8 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 1ebdc: e59f1020 ldr r1, [pc, #32] ; 1ec04 <== NOT EXECUTED 1ebe0: e59f2020 ldr r2, [pc, #32] ; 1ec08 <== NOT EXECUTED 1ebe4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1ebe8: ebffffab bl 1ea9c <== NOT EXECUTED 1ebec: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ebf0: 159f000c ldrne r0, [pc, #12] ; 1ec04 <== NOT EXECUTED 1ebf4: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED 1ebf8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return &pwent; } 1ebfc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 1ec00: 00058824 .word 0x00058824 1ec04: 000588f0 .word 0x000588f0 1ec08: 00058828 .word 0x00058828 0001f0b0 : struct passwd *getpwnam( const char *name ) { 1f0b0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1f0b4: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 1f0b8: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1f0bc: e59f1020 ldr r1, [pc, #32] ; 1f0e4 <== NOT EXECUTED 1f0c0: e59f2020 ldr r2, [pc, #32] ; 1f0e8 <== NOT EXECUTED 1f0c4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1f0c8: e58dc000 str ip, [sp] <== NOT EXECUTED 1f0cc: ebffffeb bl 1f080 <== NOT EXECUTED 1f0d0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1f0d4: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1f0d8: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1f0dc: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1f0e0: e8bd8000 pop {pc} <== NOT EXECUTED 1f0e4: 000588f0 .word 0x000588f0 1f0e8: 00058828 .word 0x00058828 0001f080 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 1f080: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1f084: e1a0c002 mov ip, r2 <== NOT EXECUTED 1f088: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED return getpw_r(name, 0, pwd, buffer, bufsize, result); 1f08c: e58d3000 str r3, [sp] <== NOT EXECUTED 1f090: e1a0300c mov r3, ip <== NOT EXECUTED 1f094: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1f098: e1a02001 mov r2, r1 <== NOT EXECUTED 1f09c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1f0a0: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1f0a4: ebffff9e bl 1ef24 <== NOT EXECUTED } 1f0a8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1f0ac: e8bd8000 pop {pc} <== NOT EXECUTED 0001f03c : struct passwd *getpwuid( uid_t uid ) { 1f03c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1f040: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED 1f044: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 1f048: e28dc004 add ip, sp, #4 ; 0x4 <== NOT EXECUTED 1f04c: e59f1024 ldr r1, [pc, #36] ; 1f078 <== NOT EXECUTED 1f050: e59f2024 ldr r2, [pc, #36] ; 1f07c <== NOT EXECUTED 1f054: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 1f058: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 1f05c: e58dc000 str ip, [sp] <== NOT EXECUTED 1f060: ebffffe6 bl 1f000 <== NOT EXECUTED 1f064: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1f068: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED return NULL; return p; 1f06c: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 1f070: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1f074: e8bd8000 pop {pc} <== NOT EXECUTED 1f078: 000588f0 .word 0x000588f0 1f07c: 00058828 .word 0x00058828 0001f000 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 1f000: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 1f004: e1a0c001 mov ip, r1 <== NOT EXECUTED 1f008: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 1f00c: e1a0e002 mov lr, r2 <== NOT EXECUTED 1f010: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 1f014: e1a0200c mov r2, ip <== NOT EXECUTED 1f018: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 1f01c: e58d3000 str r3, [sp] <== NOT EXECUTED 1f020: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 1f024: e1a0300e mov r3, lr <== NOT EXECUTED 1f028: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1f02c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 1f030: ebffffbb bl 1ef24 <== NOT EXECUTED } 1f034: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1f038: e8bd8000 pop {pc} <== NOT EXECUTED 000090f8 : int gettimeofday( struct timeval *tp, void * __tz ) { 90f8: e92d4030 push {r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 90fc: e2505000 subs r5, r0, #0 ; 0x0 int gettimeofday( struct timeval *tp, void * __tz ) { 9100: e24dd008 sub sp, sp, #8 ; 0x8 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 9104: 0a00000f beq 9148 ) { ISR_Level level; struct timespec now; _ISR_Disable(level); 9108: e10f4000 mrs r4, CPSR 910c: e38430c0 orr r3, r4, #192 ; 0xc0 9110: e129f003 msr CPSR_fc, r3 _TOD_Get( &now ); 9114: e1a0000d mov r0, sp 9118: ebfff13e bl 5618 <_TOD_Get> _ISR_Enable(level); 911c: e129f004 msr CPSR_fc, r4 time->tv_sec = now.tv_sec; 9120: e59d3000 ldr r3, [sp] 9124: e5853000 str r3, [r5] time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND; 9128: e59d2004 ldr r2, [sp, #4] 912c: e59f1028 ldr r1, [pc, #40] ; 915c 9130: e0830291 umull r0, r3, r1, r2 9134: e1a03323 lsr r3, r3, #6 9138: e5853004 str r3, [r5, #4] 913c: e3a00000 mov r0, #0 ; 0x0 * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 9140: e28dd008 add sp, sp, #8 ; 0x8 9144: e8bd8030 pop {r4, r5, pc} void * __tz ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 9148: eb000878 bl b330 <__errno> <== NOT EXECUTED 914c: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 9150: e5803000 str r3, [r0] <== NOT EXECUTED 9154: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 9158: eafffff8 b 9140 <== NOT EXECUTED 915c: 10624dd3 .word 0x10624dd3 00004070 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 4070: e59f3008 ldr r3, [pc, #8] ; 4080 <== NOT EXECUTED 4074: e5932000 ldr r2, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } 4078: e1d202ba ldrh r0, [r2, #42] <== NOT EXECUTED 407c: e12fff1e bx lr <== NOT EXECUTED 4080: 0003f168 .word 0x0003f168 0002a330 : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } 2a330: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2a334: e12fff1e bx lr <== NOT EXECUTED 0002a338 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 2a338: e590c000 ldr ip, [r0] <== NOT EXECUTED buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; 2a33c: e59c3038 ldr r3, [ip, #56] <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 2a340: e92d0070 push {r4, r5, r6} <== 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; 2a344: 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; 2a348: e5813008 str r3, [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; 2a34c: e581503c str r5, [r1, #60] <== NOT EXECUTED buf->st_blocks = 0; 2a350: e5815040 str r5, [r1, #64] <== 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; 2a354: e1dc63b4 ldrh r6, [ip, #52] <== 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; 2a358: e59c3040 ldr r3, [ip, #64] <== NOT EXECUTED int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 2a35c: e1a00001 mov r0, 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; 2a360: e5813024 str r3, [r1, #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; 2a364: e1c061b0 strh r6, [r0, #16] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 2a368: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 2a36c: e3a04000 mov r4, #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; 2a370: e59c2044 ldr r2, [ip, #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; 2a374: e5803018 str r3, [r0, #24] <== NOT EXECUTED 2a378: e580401c str r4, [r0, #28] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; 2a37c: e8800018 stm r0, {r3, r4} <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; 2a380: e1dc33bc ldrh r3, [ip, #60] <== 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; 2a384: e581202c str r2, [r1, #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; 2a388: e1c031b2 strh r3, [r0, #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; 2a38c: e59c1048 ldr r1, [ip, #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; 2a390: e59c2030 ldr r2, [ip, #48] <== NOT EXECUTED buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 2a394: e1dc63be ldrh r6, [ip, #62] <== 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; 2a398: e580200c str r2, [r0, #12] <== NOT EXECUTED buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 2a39c: e5801034 str r1, [r0, #52] <== NOT EXECUTED buf->st_size = 0; 2a3a0: e5805020 str r5, [r0, #32] <== NOT EXECUTED buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 2a3a4: e1c061b4 strh r6, [r0, #20] <== 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 ; 2a3a8: e59c2050 ldr r2, [ip, #80] <== NOT EXECUTED 2a3ac: e28cc054 add ip, ip, #84 ; 0x54 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ) ; 2a3b0: e152000c cmp r2, ip <== NOT EXECUTED 2a3b4: 0a000005 beq 2a3d0 <== NOT EXECUTED 2a3b8: e1a03005 mov r3, r5 <== NOT EXECUTED the_node = the_node->next ) { 2a3bc: e5922000 ldr r2, [r2] <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); 2a3c0: e2833f43 add r3, r3, #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 ) ; 2a3c4: e152000c cmp r2, ip <== NOT EXECUTED the_node = the_node->next ) { buf->st_size = buf->st_size + sizeof( struct dirent ); 2a3c8: e5803020 str r3, [r0, #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 ) ; 2a3cc: 1afffffa bne 2a3bc <== NOT EXECUTED buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } 2a3d0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2a3d4: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED 2a3d8: e12fff1e bx lr <== NOT EXECUTED 0002a3dc : rtems_libio_t *iop, off_t offset, int whence ) { switch( whence ) { 2a3dc: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED off_t imfs_dir_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 2a3e0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED switch( whence ) { 2a3e4: 9a000004 bls 2a3fc <== 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 ); 2a3e8: eb000ad7 bl 2cf4c <__errno> <== NOT EXECUTED 2a3ec: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 2a3f0: e5803000 str r3, [r0] <== NOT EXECUTED 2a3f4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED break; } return 0; } 2a3f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== 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)) * 2a3fc: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED 2a400: e59f3024 ldr r3, [pc, #36] ; 2a42c <== NOT EXECUTED 2a404: e082c193 umull ip, r2, r3, r1 <== NOT EXECUTED 2a408: e1a021a2 lsr r2, r2, #3 <== NOT EXECUTED 2a40c: e1a03102 lsl r3, r2, #2 <== NOT EXECUTED 2a410: e1a01302 lsl r1, r2, #6 <== NOT EXECUTED 2a414: e0833001 add r3, r3, r1 <== NOT EXECUTED 2a418: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 2a41c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 2a420: e5803008 str r3, [r0, #8] <== NOT EXECUTED 2a424: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2a428: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 2a42c: 07a44c6b .word 0x07a44c6b 0002a310 : IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; if ( the_jnode->type != IMFS_DIRECTORY ) 2a310: e590302c ldr r3, [r0, #44] <== NOT EXECUTED 2a314: e593204c ldr r2, [r3, #76] <== NOT EXECUTED 2a318: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 2a31c: 03a03000 moveq r3, #0 ; 0x0 <== NOT EXECUTED 2a320: 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 ) 2a324: 13e00000 mvnne r0, #0 ; 0x0 <== NOT EXECUTED return -1; /* It wasn't a directory --> return error */ iop->offset = 0; 2a328: 01a00003 moveq r0, r3 <== NOT EXECUTED return 0; } 2a32c: e12fff1e bx lr <== NOT EXECUTED 0002a520 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2a520: 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; 2a524: e590302c ldr r3, [r0, #44] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 2a528: 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; 2a52c: e2833054 add r3, r3, #84 ; 0x54 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2a530: e24ddf46 sub sp, sp, #280 ; 0x118 <== 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 ) ) 2a534: e1560003 cmp r6, r3 <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2a538: e58d1000 str r1, [sp] <== NOT EXECUTED 2a53c: e1a08000 mov r8, r0 <== NOT EXECUTED 2a540: e58d3008 str r3, [sp, #8] <== NOT EXECUTED 2a544: 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 ) ) 2a548: 0a00003b beq 2a63c <== 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); 2a54c: e59f30f0 ldr r3, [pc, #240] ; 2a644 <== NOT EXECUTED 2a550: e0820193 umull r0, r2, r3, r1 <== NOT EXECUTED 2a554: e1a021a2 lsr r2, r2, #3 <== NOT EXECUTED 2a558: e1a03102 lsl r3, r2, #2 <== NOT EXECUTED 2a55c: e1a01302 lsl r1, r2, #6 <== NOT EXECUTED 2a560: e0833001 add r3, r3, r1 <== NOT EXECUTED 2a564: e0623003 rsb r3, r2, r3 <== NOT EXECUTED /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 2a568: e5982008 ldr r2, [r8, #8] <== NOT EXECUTED /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); 2a56c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 2a570: e083b002 add fp, r3, r2 <== 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; 2a574: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED 2a578: c3a07000 movgt r7, #0 ; 0x0 <== 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 ); 2a57c: c3a094bf movgt r9, #-1090519040 ; 0xbf000000 <== 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 ); 2a580: c3e0ac01 mvngt sl, #256 ; 0x100 <== NOT EXECUTED /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 2a584: e58d2004 str r2, [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 ); 2a588: c1a09b49 asrgt r9, r9, #22 <== 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 ); 2a58c: c24aa001 subgt sl, sl, #1 ; 0x1 <== 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; 2a590: c1a05007 movgt r5, r7 <== NOT EXECUTED 2a594: ca000007 bgt 2a5b8 <== NOT EXECUTED 2a598: ea000027 b 2a63c <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2a59c: 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; 2a5a0: e15b0005 cmp fp, r5 <== NOT EXECUTED ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 2a5a4: 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; 2a5a8: da000020 ble 2a630 <== NOT EXECUTED current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 2a5ac: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 2a5b0: e1560003 cmp r6, r3 <== NOT EXECUTED 2a5b4: 0a00001d beq 2a630 <== NOT EXECUTED /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 2a5b8: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED 2a5bc: e1500005 cmp r0, r5 <== NOT EXECUTED 2a5c0: cafffff5 bgt 2a59c <== NOT EXECUTED /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 2a5c4: e58d5010 str r5, [sp, #16] <== NOT EXECUTED tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 2a5c8: e5963038 ldr r3, [r6, #56] <== NOT EXECUTED tmp_dirent.d_namlen = strlen( the_jnode->name ); 2a5cc: 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 ); 2a5d0: e28d2f46 add r2, sp, #280 ; 0x118 <== NOT EXECUTED the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 2a5d4: e58d300c str r3, [sp, #12] <== 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 ); 2a5d8: e3a03f43 mov r3, #268 ; 0x10c <== NOT EXECUTED 2a5dc: e18230b9 strh r3, [r2, r9] <== 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 ); 2a5e0: e1a00004 mov r0, r4 <== NOT EXECUTED 2a5e4: eb0020ee bl 329a4 <== NOT EXECUTED 2a5e8: e28d2f46 add r2, sp, #280 ; 0x118 <== NOT EXECUTED 2a5ec: e18200ba strh r0, [r2, sl] <== NOT EXECUTED strcpy( tmp_dirent.d_name, the_jnode->name ); 2a5f0: e1a01004 mov r1, r4 <== NOT EXECUTED 2a5f4: e28d0018 add r0, sp, #24 ; 0x18 <== NOT EXECUTED 2a5f8: eb001efc bl 321f0 <== NOT EXECUTED memcpy( 2a5fc: e59d3000 ldr r3, [sp] <== NOT EXECUTED 2a600: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 2a604: e0830007 add r0, r3, r7 <== NOT EXECUTED 2a608: e3a02f43 mov r2, #268 ; 0x10c <== NOT EXECUTED 2a60c: eb0013c6 bl 2f52c <== NOT EXECUTED buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 2a610: e5983008 ldr r3, [r8, #8] <== NOT EXECUTED ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 2a614: 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); 2a618: 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; 2a61c: e15b0005 cmp fp, 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 ); 2a620: 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); 2a624: e5883008 str r3, [r8, #8] <== NOT EXECUTED bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 2a628: 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; 2a62c: caffffde bgt 2a5ac <== NOT EXECUTED the_node = the_node->next; } /* Success */ return bytes_transferred; } 2a630: e1a00007 mov r0, r7 <== NOT EXECUTED 2a634: e28ddf46 add sp, sp, #280 ; 0x118 <== NOT EXECUTED 2a638: 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; 2a63c: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED 2a640: eafffffa b 2a630 <== NOT EXECUTED 2a644: 07a44c6b .word 0x07a44c6b 0002a430 : */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2a430: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 2a434: e5904000 ldr r4, [r0] <== NOT EXECUTED /* * You cannot remove a node that still has children */ if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 2a438: e5942050 ldr r2, [r4, #80] <== NOT EXECUTED 2a43c: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED 2a440: e1520003 cmp r2, r3 <== NOT EXECUTED */ int imfs_dir_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 2a444: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 2a448: 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 ) ) 2a44c: 1a000028 bne 2a4f4 <== NOT EXECUTED /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 2a450: e590300c ldr r3, [r0, #12] <== NOT EXECUTED 2a454: e5932018 ldr r2, [r3, #24] <== NOT EXECUTED 2a458: e1540002 cmp r4, r2 <== NOT EXECUTED 2a45c: 0a000029 beq 2a508 <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 2a460: e594505c ldr r5, [r4, #92] <== NOT EXECUTED 2a464: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 2a468: 1a000026 bne 2a508 <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 2a46c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 2a470: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2a474: 0a000002 beq 2a484 <== NOT EXECUTED 2a478: e1a00004 mov r0, r4 <== NOT EXECUTED 2a47c: ebffdbf9 bl 21468 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 2a480: e5845008 str r5, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2a484: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED 2a488: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 2a48c: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 2a490: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2a494: e1a0000d mov r0, sp <== NOT EXECUTED 2a498: ebff66d6 bl 3ff8 <== NOT EXECUTED 2a49c: 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) ) { 2a4a0: 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 ); 2a4a4: 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) ) { 2a4a8: ebff6740 bl 41b0 <== NOT EXECUTED 2a4ac: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2a4b0: 1a00000c bne 2a4e8 <== NOT EXECUTED 2a4b4: e1d413b4 ldrh r1, [r4, #52] <== NOT EXECUTED 2a4b8: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 2a4bc: 1a000009 bne 2a4e8 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 2a4c0: e59f3054 ldr r3, [pc, #84] ; 2a51c <== NOT EXECUTED 2a4c4: e5930000 ldr r0, [r3] <== NOT EXECUTED 2a4c8: e5962000 ldr r2, [r6] <== NOT EXECUTED 2a4cc: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED 2a4d0: e1530002 cmp r3, r2 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; 2a4d4: 05801004 streq r1, [r0, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 2a4d8: e1a00004 mov r0, r4 <== NOT EXECUTED 2a4dc: ebff669d bl 3f58 <== NOT EXECUTED 2a4e0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2a4e4: ea000000 b 2a4ec <== NOT EXECUTED 2a4e8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 2a4ec: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 2a4f0: 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 ); 2a4f4: eb000a94 bl 2cf4c <__errno> <== NOT EXECUTED 2a4f8: e3a0305a mov r3, #90 ; 0x5a <== NOT EXECUTED 2a4fc: e5803000 str r3, [r0] <== NOT EXECUTED 2a500: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a504: eafffff8 b 2a4ec <== NOT EXECUTED /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); 2a508: eb000a8f bl 2cf4c <__errno> <== NOT EXECUTED 2a50c: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 2a510: e5803000 str r3, [r0] <== NOT EXECUTED 2a514: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2a518: eafffff3 b 2a4ec <== NOT EXECUTED 2a51c: 0003f168 .word 0x0003f168 0001ec0c : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 1ec0c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 1ec10: e59f20b4 ldr r2, [pc, #180] ; 1eccc <== NOT EXECUTED 1ec14: e5d23000 ldrb r3, [r2] <== NOT EXECUTED 1ec18: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ec1c: 18bd8030 popne {r4, r5, pc} <== NOT EXECUTED return; etc_passwd_initted = 1; mkdir("/etc", 0777); 1ec20: e3a01f7f mov r1, #508 ; 0x1fc <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 1ec24: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED mkdir("/etc", 0777); 1ec28: e2811003 add r1, r1, #3 ; 0x3 <== NOT EXECUTED FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; 1ec2c: e5c24000 strb r4, [r2] <== NOT EXECUTED mkdir("/etc", 0777); 1ec30: e59f0098 ldr r0, [pc, #152] ; 1ecd0 <== NOT EXECUTED 1ec34: ebff96e6 bl 47d4 <== NOT EXECUTED /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 1ec38: e59f0094 ldr r0, [pc, #148] ; 1ecd4 <== NOT EXECUTED 1ec3c: e59f1094 ldr r1, [pc, #148] ; 1ecd8 <== NOT EXECUTED 1ec40: eb003b05 bl 2d85c <== NOT EXECUTED 1ec44: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ec48: 0a000007 beq 1ec6c <== 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); 1ec4c: eb00390f bl 2d090 <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 1ec50: e59f0084 ldr r0, [pc, #132] ; 1ecdc <== NOT EXECUTED 1ec54: e59f107c ldr r1, [pc, #124] ; 1ecd8 <== NOT EXECUTED 1ec58: eb003aff bl 2d85c <== NOT EXECUTED 1ec5c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ec60: 0a00000d beq 1ec9c <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 1ec64: 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); 1ec68: ea003908 b 2d090 <== NOT EXECUTED * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { 1ec6c: e59f0060 ldr r0, [pc, #96] ; 1ecd4 <== NOT EXECUTED 1ec70: e59f1068 ldr r1, [pc, #104] ; 1ece0 <== NOT EXECUTED 1ec74: eb003af8 bl 2d85c <== NOT EXECUTED 1ec78: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1ec7c: 0afffff3 beq 1ec50 <== NOT EXECUTED fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 1ec80: e1a01004 mov r1, r4 <== NOT EXECUTED 1ec84: e59f0058 ldr r0, [pc, #88] ; 1ece4 <== NOT EXECUTED 1ec88: e3a02066 mov r2, #102 ; 0x66 <== NOT EXECUTED 1ec8c: e1a03005 mov r3, r5 <== NOT EXECUTED 1ec90: eb003df5 bl 2e46c <== NOT EXECUTED "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 1ec94: e1a00005 mov r0, r5 <== NOT EXECUTED 1ec98: eaffffeb b 1ec4c <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 1ec9c: e59f0038 ldr r0, [pc, #56] ; 1ecdc <== NOT EXECUTED 1eca0: e59f1038 ldr r1, [pc, #56] ; 1ece0 <== NOT EXECUTED 1eca4: eb003aec bl 2d85c <== NOT EXECUTED 1eca8: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1ecac: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED fprintf( fp, "root:x:0:root\n" 1ecb0: e59f0030 ldr r0, [pc, #48] ; 1ece8 <== NOT EXECUTED 1ecb4: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 1ecb8: e3a0202a mov r2, #42 ; 0x2a <== NOT EXECUTED 1ecbc: e1a03004 mov r3, r4 <== NOT EXECUTED 1ecc0: eb003de9 bl 2e46c <== NOT EXECUTED "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 1ecc4: e1a00004 mov r0, r4 <== NOT EXECUTED 1ecc8: eaffffe5 b 1ec64 <== NOT EXECUTED 1eccc: 00058820 .word 0x00058820 1ecd0: 00043f20 .word 0x00043f20 1ecd4: 00043f28 .word 0x00043f28 1ecd8: 00044ea8 .word 0x00044ea8 1ecdc: 00043f9c .word 0x00043f9c 1ece0: 0004216c .word 0x0004216c 1ece4: 00043f34 .word 0x00043f34 1ece8: 00043fa8 .word 0x00043fa8 00014b4c : int ioctl( int fd, ioctl_command_t command, ... ) { 14b4c: 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 ); 14b50: e59f3090 ldr r3, [pc, #144] ; 14be8 <== NOT EXECUTED 14b54: e5932000 ldr r2, [r3] <== NOT EXECUTED 14b58: e1500002 cmp r0, r2 <== NOT EXECUTED int ioctl( int fd, ioctl_command_t command, ... ) { 14b5c: 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 ); 14b60: 2a000016 bcs 14bc0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 14b64: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 14b68: e59f207c ldr r2, [pc, #124] ; 14bec <== NOT EXECUTED 14b6c: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 14b70: e0833000 add r3, r3, r0 <== NOT EXECUTED 14b74: e5921000 ldr r1, [r2] <== NOT EXECUTED 14b78: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 14b7c: e0810003 add r0, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 14b80: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 14b84: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 14b88: 0a00000c beq 14bc0 <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 14b8c: e590c030 ldr ip, [r0, #48] <== NOT EXECUTED 14b90: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 14b94: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) 14b98: 0a000008 beq 14bc0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 14b9c: e59c3010 ldr r3, [ip, #16] <== NOT EXECUTED 14ba0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 14ba4: 0a00000a beq 14bd4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 14ba8: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 14bac: e1a0e00f mov lr, pc <== NOT EXECUTED 14bb0: e12fff13 bx r3 <== NOT EXECUTED return rc; } 14bb4: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 14bb8: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 14bbc: e12fff1e bx lr <== NOT EXECUTED /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 14bc0: eb00021d bl 1543c <__errno> <== NOT EXECUTED 14bc4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 14bc8: e5803000 str r3, [r0] <== NOT EXECUTED 14bcc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 14bd0: eafffff7 b 14bb4 <== NOT EXECUTED if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 14bd4: eb000218 bl 1543c <__errno> <== NOT EXECUTED 14bd8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 14bdc: e5803000 str r3, [r0] <== NOT EXECUTED 14be0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 14be4: eafffff2 b 14bb4 <== NOT EXECUTED 14be8: 00020514 .word 0x00020514 14bec: 00025c58 .word 0x00025c58 00002c5c : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2c5c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2c60: e1a05001 mov r5, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 2c64: e5911030 ldr r1, [r1, #48] <== NOT EXECUTED 2c68: e3110020 tst r1, #32 ; 0x20 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 2c6c: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; 2c70: 1200407f andne r4, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 2c74: e3110c02 tst r1, #512 ; 0x200 <== NOT EXECUTED 2c78: 0a000006 beq 2c98 <== NOT EXECUTED c = tolower (c); 2c7c: e59f3190 ldr r3, [pc, #400] ; 2e14 <== NOT EXECUTED 2c80: e5932000 ldr r2, [r3] <== NOT EXECUTED 2c84: e7d23004 ldrb r3, [r2, r4] <== NOT EXECUTED 2c88: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 2c8c: e1a00004 mov r0, r4 <== NOT EXECUTED 2c90: 12840020 addne r0, r4, #32 ; 0x20 <== NOT EXECUTED 2c94: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { 2c98: e354000d cmp r4, #13 ; 0xd <== NOT EXECUTED 2c9c: 0a000034 beq 2d74 <== 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)) { 2ca0: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 2ca4: 0a000010 beq 2cec <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 2ca8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 2cac: 1a000011 bne 2cf8 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 2cb0: e59f2160 ldr r2, [pc, #352] ; 2e18 <== NOT EXECUTED 2cb4: e5923000 ldr r3, [r2] <== NOT EXECUTED 2cb8: e5951020 ldr r1, [r5, #32] <== NOT EXECUTED 2cbc: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 2cc0: e1510003 cmp r1, r3 <== NOT EXECUTED 2cc4: aa00002c bge 2d7c <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 2cc8: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 2ccc: e3130008 tst r3, #8 ; 0x8 <== NOT EXECUTED 2cd0: 1a00002f bne 2d94 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 2cd4: e595301c ldr r3, [r5, #28] <== NOT EXECUTED 2cd8: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED 2cdc: e7c34001 strb r4, [r3, r1] <== NOT EXECUTED 2ce0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2ce4: e5852020 str r2, [r5, #32] <== NOT EXECUTED 2ce8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 2cec: e3110040 tst r1, #64 ; 0x40 <== NOT EXECUTED 2cf0: 03a0400a moveq r4, #10 ; 0xa <== NOT EXECUTED 2cf4: 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)) { 2cf8: e595203c ldr r2, [r5, #60] <== NOT EXECUTED 2cfc: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 2d00: 0affffea beq 2cb0 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 2d04: e5d53043 ldrb r3, [r5, #67] <== NOT EXECUTED 2d08: e1530004 cmp r3, r4 <== NOT EXECUTED 2d0c: 0a000036 beq 2dec <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 2d10: e5d53044 ldrb r3, [r5, #68] <== NOT EXECUTED 2d14: e1530004 cmp r3, r4 <== NOT EXECUTED 2d18: 0a000038 beq 2e00 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 2d1c: e5d53045 ldrb r3, [r5, #69] <== NOT EXECUTED 2d20: e1530004 cmp r3, r4 <== NOT EXECUTED 2d24: 0a00002e beq 2de4 <== NOT EXECUTED return 1; } else if (c == '\n') { 2d28: e354000a cmp r4, #10 ; 0xa <== NOT EXECUTED 2d2c: 0a000022 beq 2dbc <== 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]) 2d30: e5d5304c ldrb r3, [r5, #76] <== NOT EXECUTED 2d34: e1530004 cmp r3, r4 <== NOT EXECUTED 2d38: 0a000002 beq 2d48 <== NOT EXECUTED 2d3c: e5d53051 ldrb r3, [r5, #81] <== NOT EXECUTED 2d40: e1530004 cmp r3, r4 <== NOT EXECUTED 2d44: 1affffd9 bne 2cb0 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) 2d48: e3120008 tst r2, #8 ; 0x8 <== NOT EXECUTED echo (c, tty); 2d4c: 11a00004 movne r0, r4 <== NOT EXECUTED 2d50: 11a01005 movne r1, r5 <== NOT EXECUTED 2d54: 1bffff27 blne 29f8 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2d58: e285201c add r2, r5, #28 ; 0x1c <== NOT EXECUTED 2d5c: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 2d60: e2831001 add r1, r3, #1 ; 0x1 <== NOT EXECUTED 2d64: e7c24003 strb r4, [r2, r3] <== NOT EXECUTED 2d68: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 2d6c: e5851020 str r1, [r5, #32] <== NOT EXECUTED 2d70: 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) 2d74: e3110080 tst r1, #128 ; 0x80 <== NOT EXECUTED 2d78: 0a000001 beq 2d84 <== 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; 2d7c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } return 0; } 2d80: 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) 2d84: e3110c01 tst r1, #256 ; 0x100 <== NOT EXECUTED 2d88: 03a0400d moveq r4, #13 ; 0xd <== NOT EXECUTED 2d8c: 13a0400a movne r4, #10 ; 0xa <== NOT EXECUTED 2d90: eaffffd8 b 2cf8 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 2d94: e1a00004 mov r0, r4 <== NOT EXECUTED 2d98: e1a01005 mov r1, r5 <== NOT EXECUTED 2d9c: ebffff15 bl 29f8 <== NOT EXECUTED 2da0: e5951020 ldr r1, [r5, #32] <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2da4: e595301c ldr r3, [r5, #28] <== NOT EXECUTED 2da8: e2812001 add r2, r1, #1 ; 0x1 <== NOT EXECUTED 2dac: e7c34001 strb r4, [r3, r1] <== NOT EXECUTED 2db0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2db4: e5852020 str r2, [r5, #32] <== NOT EXECUTED 2db8: 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)) 2dbc: e3120048 tst r2, #72 ; 0x48 <== NOT EXECUTED echo (c, tty); 2dc0: 11a00004 movne r0, r4 <== NOT EXECUTED 2dc4: 11a01005 movne r1, r5 <== NOT EXECUTED 2dc8: 1bffff0a blne 29f8 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 2dcc: e285101c add r1, r5, #28 ; 0x1c <== NOT EXECUTED 2dd0: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED 2dd4: e2820001 add r0, r2, #1 ; 0x1 <== NOT EXECUTED 2dd8: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED 2ddc: e7c13002 strb r3, [r1, r2] <== NOT EXECUTED 2de0: e5850020 str r0, [r5, #32] <== NOT EXECUTED 2de4: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 2de8: 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); 2dec: e1a00005 mov r0, r5 <== NOT EXECUTED 2df0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2df4: ebffff20 bl 2a7c <== NOT EXECUTED 2df8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2dfc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 2e00: e1a00005 mov r0, r5 <== NOT EXECUTED 2e04: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 2e08: ebffff1b bl 2a7c <== NOT EXECUTED 2e0c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2e10: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 2e14: 00014a64 .word 0x00014a64 2e18: 00014a00 .word 0x00014a00 00020274 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 20274: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 20278: e12fff1e bx lr <== NOT EXECUTED 0001f1c8 : int link( const char *existing, const char *new ) { 1f1c8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 1f1cc: 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 ); 1f1d0: e28d6010 add r6, sp, #16 ; 0x10 <== NOT EXECUTED int link( const char *existing, const char *new ) { 1f1d4: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true ); 1f1d8: e1a02006 mov r2, r6 <== NOT EXECUTED 1f1dc: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1f1e0: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 1f1e4: ebff9306 bl 3e04 <== NOT EXECUTED if ( result != 0 ) 1f1e8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1f1ec: 1a00004d bne 1f328 <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 1f1f0: e5d53000 ldrb r3, [r5] <== NOT EXECUTED 1f1f4: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 1f1f8: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED 1f1fc: 13a0e000 movne lr, #0 ; 0x0 <== NOT EXECUTED 1f200: 03a0e001 moveq lr, #1 ; 0x1 <== NOT EXECUTED 1f204: 1a000032 bne 1f2d4 <== NOT EXECUTED 1f208: e59f31fc ldr r3, [pc, #508] ; 1f40c <== NOT EXECUTED 1f20c: e593c000 ldr ip, [r3] <== NOT EXECUTED 1f210: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 1f214: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1f218: e1a0400d mov r4, sp <== NOT EXECUTED 1f21c: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1f220: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { 1f224: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1f228: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 1f22c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f230: 0a000031 beq 1f2fc <== 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 ); 1f234: e0850002 add r0, r5, r2 <== NOT EXECUTED 1f238: e1a0100d mov r1, sp <== NOT EXECUTED 1f23c: e28d2020 add r2, sp, #32 ; 0x20 <== NOT EXECUTED 1f240: e1a0e00f mov lr, pc <== NOT EXECUTED 1f244: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 1f248: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1f24c: 1a00004c bne 1f384 <== 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 ) { 1f250: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 1f254: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 1f258: e1530002 cmp r3, r2 <== NOT EXECUTED 1f25c: 1a000033 bne 1f330 <== 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 ) { 1f260: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1f264: e5923008 ldr r3, [r2, #8] <== NOT EXECUTED 1f268: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f26c: 0a000050 beq 1f3b4 <== 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 ); 1f270: e1a00006 mov r0, r6 <== NOT EXECUTED 1f274: e1a0100d mov r1, sp <== NOT EXECUTED 1f278: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED 1f27c: e1a0e00f mov lr, pc <== NOT EXECUTED 1f280: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1f284: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1f288: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 1f28c: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &existing_loc ); 1f290: 0a000004 beq 1f2a8 <== NOT EXECUTED 1f294: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f298: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f29c: 11a00006 movne r0, r6 <== NOT EXECUTED 1f2a0: 11a0e00f movne lr, pc <== NOT EXECUTED 1f2a4: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 1f2a8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1f2ac: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f2b0: 0a000004 beq 1f2c8 <== NOT EXECUTED 1f2b4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f2b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f2bc: 11a0000d movne r0, sp <== NOT EXECUTED 1f2c0: 11a0e00f movne lr, pc <== NOT EXECUTED 1f2c4: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1f2c8: e1a00005 mov r0, r5 <== NOT EXECUTED 1f2cc: e28dd024 add sp, sp, #36 ; 0x24 <== NOT EXECUTED 1f2d0: 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 ); 1f2d4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f2d8: 0affffca beq 1f208 <== NOT EXECUTED 1f2dc: e59f3128 ldr r3, [pc, #296] ; 1f40c <== NOT EXECUTED 1f2e0: e593c000 ldr ip, [r3] <== NOT EXECUTED 1f2e4: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 1f2e8: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1f2ec: e1a0400d mov r4, sp <== NOT EXECUTED 1f2f0: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1f2f4: e1a0200e mov r2, lr <== NOT EXECUTED 1f2f8: eaffffc9 b 1f224 <== NOT EXECUTED if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 1f2fc: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1f300: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f304: 0a000004 beq 1f31c <== NOT EXECUTED 1f308: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f30c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f310: 11a00006 movne r0, r6 <== NOT EXECUTED 1f314: 11a0e00f movne lr, pc <== NOT EXECUTED 1f318: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1f31c: eb00370a bl 2cf4c <__errno> <== NOT EXECUTED 1f320: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1f324: e5803000 str r3, [r0] <== NOT EXECUTED 1f328: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 1f32c: eaffffe5 b 1f2c8 <== 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 ); 1f330: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1f334: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f338: 0a000004 beq 1f350 <== NOT EXECUTED 1f33c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f340: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f344: 11a00006 movne r0, r6 <== NOT EXECUTED 1f348: 11a0e00f movne lr, pc <== NOT EXECUTED 1f34c: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 1f350: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1f354: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f358: 0a000004 beq 1f370 <== NOT EXECUTED 1f35c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f360: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f364: 11a0000d movne r0, sp <== NOT EXECUTED 1f368: 11a0e00f movne lr, pc <== NOT EXECUTED 1f36c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 1f370: eb0036f5 bl 2cf4c <__errno> <== NOT EXECUTED 1f374: e3a03012 mov r3, #18 ; 0x12 <== NOT EXECUTED 1f378: e5803000 str r3, [r0] <== NOT EXECUTED 1f37c: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 1f380: eaffffd0 b 1f2c8 <== 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 ); 1f384: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1f388: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f38c: 0a000004 beq 1f3a4 <== NOT EXECUTED 1f390: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f394: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f398: 11a00006 movne r0, r6 <== NOT EXECUTED 1f39c: 11a0e00f movne lr, pc <== NOT EXECUTED 1f3a0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 1f3a4: eb0036e8 bl 2cf4c <__errno> <== NOT EXECUTED 1f3a8: e5805000 str r5, [r0] <== NOT EXECUTED 1f3ac: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 1f3b0: eaffffc4 b 1f2c8 <== 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 ); 1f3b4: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED 1f3b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f3bc: 0a000006 beq 1f3dc <== NOT EXECUTED 1f3c0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f3c4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f3c8: 0a000003 beq 1f3dc <== NOT EXECUTED 1f3cc: e1a00006 mov r0, r6 <== NOT EXECUTED 1f3d0: e1a0e00f mov lr, pc <== NOT EXECUTED 1f3d4: e12fff13 bx r3 <== NOT EXECUTED 1f3d8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 1f3dc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1f3e0: 0a000004 beq 1f3f8 <== NOT EXECUTED 1f3e4: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1f3e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f3ec: 11a0000d movne r0, sp <== NOT EXECUTED 1f3f0: 11a0e00f movne lr, pc <== NOT EXECUTED 1f3f4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1f3f8: eb0036d3 bl 2cf4c <__errno> <== NOT EXECUTED 1f3fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1f400: e5803000 str r3, [r0] <== NOT EXECUTED 1f404: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 1f408: eaffffae b 1f2c8 <== NOT EXECUTED 1f40c: 0003f168 .word 0x0003f168 000139b4 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 139b4: e59f30e0 ldr r3, [pc, #224] ; 13a9c <== NOT EXECUTED 139b8: e593c000 ldr ip, [r3] <== NOT EXECUTED 139bc: e150000c cmp r0, ip <== NOT EXECUTED off_t lseek( int fd, off_t offset, int whence ) { 139c0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 139c4: e1a0c002 mov ip, r2 <== NOT EXECUTED 139c8: e1a0e001 mov lr, r1 <== NOT EXECUTED rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 139cc: 2a000028 bcs 13a74 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 139d0: e59f20c8 ldr r2, [pc, #200] ; 13aa0 <== NOT EXECUTED 139d4: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 139d8: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 139dc: e5921000 ldr r1, [r2] <== NOT EXECUTED 139e0: e0833000 add r3, r3, r0 <== NOT EXECUTED 139e4: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 139e8: e0814003 add r4, r1, r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); 139ec: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 139f0: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 139f4: 0a00001e beq 13a74 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 139f8: e5945030 ldr r5, [r4, #48] <== NOT EXECUTED 139fc: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED 13a00: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 13a04: 0a00001f beq 13a88 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 13a08: e35c0001 cmp ip, #1 ; 0x1 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; 13a0c: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED switch ( whence ) { 13a10: 0a000014 beq 13a68 <== NOT EXECUTED 13a14: e35c0002 cmp ip, #2 ; 0x2 <== NOT EXECUTED 13a18: 0a000007 beq 13a3c <== NOT EXECUTED 13a1c: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED case SEEK_SET: iop->offset = offset; 13a20: 0584e008 streq lr, [r4, #8] <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 13a24: 0a000007 beq 13a48 <== NOT EXECUTED case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 13a28: ebffde40 bl b330 <__errno> <== NOT EXECUTED 13a2c: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 13a30: e5803000 str r3, [r0] <== NOT EXECUTED 13a34: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13a38: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 13a3c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 13a40: e08e3003 add r3, lr, r3 <== NOT EXECUTED 13a44: 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 ); 13a48: e1a0100e mov r1, lr <== NOT EXECUTED 13a4c: e1a0200c mov r2, ip <== NOT EXECUTED 13a50: e1a00004 mov r0, r4 <== NOT EXECUTED 13a54: e1a0e00f mov lr, pc <== NOT EXECUTED 13a58: e595f014 ldr pc, [r5, #20] <== NOT EXECUTED if ( status == (off_t) -1 ) 13a5c: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED iop->offset = old_offset; 13a60: 05846008 streq r6, [r4, #8] <== NOT EXECUTED /* * So if the operation failed, we have to restore iop->offset. */ return status; } 13a64: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 13a68: e08e3006 add r3, lr, r6 <== NOT EXECUTED 13a6c: e5843008 str r3, [r4, #8] <== NOT EXECUTED 13a70: eafffff4 b 13a48 <== 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); 13a74: ebffde2d bl b330 <__errno> <== NOT EXECUTED 13a78: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 13a7c: e5803000 str r3, [r0] <== NOT EXECUTED 13a80: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13a84: e8bd8070 pop {r4, r5, r6, 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 ); 13a88: ebffde28 bl b330 <__errno> <== NOT EXECUTED 13a8c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 13a90: e5803000 str r3, [r0] <== NOT EXECUTED 13a94: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13a98: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 13a9c: 00014444 .word 0x00014444 13aa0: 00015ed8 .word 0x00015ed8 0001f51c : int _STAT_NAME( const char *path, struct stat *buf ) { 1f51c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 1f520: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 1f524: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 1f528: 0a00002c beq 1f5e0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 1f52c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1f530: e1a0200d mov r2, sp <== NOT EXECUTED 1f534: e1a03001 mov r3, r1 <== NOT EXECUTED 1f538: ebff9231 bl 3e04 <== NOT EXECUTED if ( status != 0 ) 1f53c: 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 ); 1f540: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 1f544: 1a000023 bne 1f5d8 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 1f548: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 1f54c: e5932018 ldr r2, [r3, #24] <== NOT EXECUTED 1f550: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1f554: 0a000014 beq 1f5ac <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 1f558: e1a01000 mov r1, r0 <== NOT EXECUTED 1f55c: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 1f560: e1a00004 mov r0, r4 <== NOT EXECUTED 1f564: eb004080 bl 2f76c <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 1f568: e1a01004 mov r1, r4 <== NOT EXECUTED 1f56c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 1f570: e1a0000d mov r0, sp <== NOT EXECUTED 1f574: e1a0e00f mov lr, pc <== NOT EXECUTED 1f578: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1f57c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1f580: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 1f584: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1f588: 0a000004 beq 1f5a0 <== NOT EXECUTED 1f58c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f590: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f594: 11a0000d movne r0, sp <== NOT EXECUTED 1f598: 11a0e00f movne lr, pc <== NOT EXECUTED 1f59c: 112fff13 bxne r3 <== NOT EXECUTED return status; } 1f5a0: e1a00004 mov r0, r4 <== NOT EXECUTED 1f5a4: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1f5a8: 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 ); 1f5ac: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1f5b0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f5b4: 0a000004 beq 1f5cc <== NOT EXECUTED 1f5b8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1f5bc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1f5c0: 11a0000d movne r0, sp <== NOT EXECUTED 1f5c4: 11a0e00f movne lr, pc <== NOT EXECUTED 1f5c8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1f5cc: eb00365e bl 2cf4c <__errno> <== NOT EXECUTED 1f5d0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1f5d4: e5803000 str r3, [r0] <== NOT EXECUTED 1f5d8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1f5dc: eaffffef b 1f5a0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 1f5e0: eb003659 bl 2cf4c <__errno> <== NOT EXECUTED 1f5e4: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 1f5e8: e5803000 str r3, [r0] <== NOT EXECUTED 1f5ec: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1f5f0: eaffffea b 1f5a0 <== NOT EXECUTED 000094f4 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 94f4: e59f20d0 ldr r2, [pc, #208] ; 95cc 94f8: e5923004 ldr r3, [r2, #4] 94fc: e2833001 add r3, r3, #1 ; 0x1 9500: e92d4070 push {r4, r5, r6, lr} 9504: e5823004 str r3, [r2, #4] 9508: e1a06000 mov r6, r0 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 950c: ebffffef bl 94d0 /* * Validate the parameters */ if ( !size ) 9510: e3560000 cmp r6, #0 ; 0x0 9514: 0a00001c beq 958c return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 9518: e59f30b0 ldr r3, [pc, #176] ; 95d0 951c: e5932000 ldr r2, [r3] 9520: e3520003 cmp r2, #3 ; 0x3 9524: 0a000015 beq 9580 * 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 ); 9528: e59f00a4 ldr r0, [pc, #164] ; 95d4 952c: e1a01006 mov r1, r6 9530: eb000397 bl a394 <_Protected_heap_Allocate> if ( !return_this ) { 9534: 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; 9538: 11a05004 movne r5, r4 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size ); if ( !return_this ) { 953c: 0a000015 beq 9598 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 9540: e59f3090 ldr r3, [pc, #144] ; 95d8 9544: e5933000 ldr r3, [r3] 9548: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_dirty_helper)( return_this, size ); 954c: 11a01006 movne r1, r6 9550: 11a00005 movne r0, r5 9554: 11a0e00f movne lr, pc 9558: 112fff13 bxne r3 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 955c: e59f3078 ldr r3, [pc, #120] ; 95dc 9560: e5933000 ldr r3, [r3] 9564: e3530000 cmp r3, #0 ; 0x0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 9568: 11a00005 movne r0, r5 956c: 11a0e00f movne lr, pc 9570: 1593f004 ldrne pc, [r3, #4] 9574: e1a04005 mov r4, r5 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 9578: e1a00004 mov r0, r4 957c: 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()) && 9580: ebffffbb bl 9474 9584: e3500000 cmp r0, #0 ; 0x0 9588: 1affffe6 bne 9528 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 958c: 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; } 9590: e1a00004 mov r0, r4 <== NOT EXECUTED 9594: 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) 9598: e59f3040 ldr r3, [pc, #64] ; 95e0 959c: e5933000 ldr r3, [r3] 95a0: e3530000 cmp r3, #0 ; 0x0 95a4: 0a000004 beq 95bc return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 95a8: e1a00006 mov r0, r6 <== NOT EXECUTED 95ac: e1a0e00f mov lr, pc <== NOT EXECUTED 95b0: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 95b4: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 95b8: 1affffe0 bne 9540 <== NOT EXECUTED errno = ENOMEM; 95bc: eb00075b bl b330 <__errno> 95c0: e3a0300c mov r3, #12 ; 0xc 95c4: e5803000 str r3, [r0] 95c8: eaffffea b 9578 95cc: 00015f3c .word 0x00015f3c 95d0: 000161f4 .word 0x000161f4 95d4: 00015ee4 .word 0x00015ee4 95d8: 00015d4c .word 0x00015d4c 95dc: 00015d44 .word 0x00015d44 95e0: 00015d48 .word 0x00015d48 000094c0 : } void malloc_deferred_free( void *pointer ) { 94c0: 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 ); 94c4: e59f0000 ldr r0, [pc, #0] ; 94cc <== NOT EXECUTED 94c8: eaffef53 b 521c <_Chain_Append> <== NOT EXECUTED 94cc: 0001628c .word 0x0001628c 000094d0 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 94d0: e52de004 push {lr} ; (str lr, [sp, #-4]!) 94d4: ea000000 b 94dc /* * 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); 94d8: ebfffe9f bl 8f5c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 94dc: e59f000c ldr r0, [pc, #12] ; 94f0 94e0: eb000259 bl 9e4c <_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) 94e4: e3500000 cmp r0, #0 ; 0x0 94e8: 1afffffa bne 94d8 free(to_be_freed); } 94ec: e49df004 pop {pc} ; (ldr pc, [sp], #4) 94f0: 0001628c .word 0x0001628c 00024248 : void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 24248: e59f3024 ldr r3, [pc, #36] ; 24274 <== NOT EXECUTED */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 2424c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 24250: e5931000 ldr r1, [r3] <== NOT EXECUTED 24254: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 24258: ebff7e46 bl 3b78 <== NOT EXECUTED if ( memory ) 2425c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED memfile_blocks_allocated++; 24260: 159f2010 ldrne r2, [pc, #16] ; 24278 <== NOT EXECUTED 24264: 15923000 ldrne r3, [r2] <== NOT EXECUTED 24268: 12833001 addne r3, r3, #1 ; 0x1 <== NOT EXECUTED 2426c: 15823000 strne r3, [r2] <== NOT EXECUTED return memory; } 24270: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 24274: 000460bc .word 0x000460bc 24278: 000589e8 .word 0x000589e8 0002471c : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 2471c: e92d4010 push {r4, lr} <== NOT EXECUTED 24720: 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) ) { 24724: ebff7ea1 bl 41b0 <== NOT EXECUTED 24728: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2472c: 1a00000d bne 24768 <== NOT EXECUTED 24730: e1d413b4 ldrh r1, [r4, #52] <== NOT EXECUTED 24734: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 24738: 1a00000a bne 24768 <== NOT EXECUTED /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 2473c: e59f302c ldr r3, [pc, #44] ; 24770 <== NOT EXECUTED 24740: e5933000 ldr r3, [r3] <== NOT EXECUTED 24744: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED 24748: e1520004 cmp r2, r4 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; 2474c: 05831004 streq r1, [r3, #4] <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 24750: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 24754: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED IMFS_memfile_remove( the_jnode ); 24758: 11a00004 movne r0, r4 <== NOT EXECUTED 2475c: 1bffff8c blne 24594 <== NOT EXECUTED free( the_jnode ); 24760: e1a00004 mov r0, r4 <== NOT EXECUTED 24764: ebff7dfb bl 3f58 <== NOT EXECUTED } return 0; } 24768: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2476c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 24770: 0003f168 .word 0x0003f168 000247cc : */ int memfile_close( rtems_libio_t *iop ) { 247cc: 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) 247d0: e590300c ldr r3, [r0, #12] <== NOT EXECUTED rtems_libio_t *iop ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 247d4: e590202c ldr r2, [r0, #44] <== NOT EXECUTED if (iop->flags & LIBIO_FLAGS_APPEND) 247d8: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 247dc: 15923050 ldrne r3, [r2, #80] <== NOT EXECUTED 247e0: 15803008 strne r3, [r0, #8] <== NOT EXECUTED memfile_check_rmnod( the_jnode ); 247e4: e1a00002 mov r0, r2 <== NOT EXECUTED 247e8: ebffffcb bl 2471c <== NOT EXECUTED return 0; } 247ec: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 247f0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00024228 : */ void memfile_free_block( void *memory ) { 24228: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); 2422c: ebff7f49 bl 3f58 <== NOT EXECUTED memfile_blocks_allocated--; 24230: e59f200c ldr r2, [pc, #12] ; 24244 <== NOT EXECUTED 24234: e5923000 ldr r3, [r2] <== NOT EXECUTED 24238: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 2423c: e5823000 str r3, [r2] <== NOT EXECUTED } 24240: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 24244: 000589e8 .word 0x000589e8 0002450c : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 2450c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 24510: e250a000 subs sl, r0, #0 ; 0x0 <== NOT EXECUTED void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 24514: e1a07001 mov r7, r1 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 24518: 0a000014 beq 24570 <== NOT EXECUTED * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED 24528: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 2452c: e1a04005 mov r4, r5 <== NOT EXECUTED if ( b[i] ) { memfile_free_block( b[i] ); b[i] = 0; 24530: e1a08005 mov r8, r5 <== NOT EXECUTED */ b = *block_table; for ( i=0 ; i <== NOT EXECUTED memfile_free_block( b[i] ); 24540: ebffff38 bl 24228 <== NOT EXECUTED b[i] = 0; 24544: 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 24558: 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 ); 2455c: e1a00006 mov r0, r6 <== NOT EXECUTED 24560: ebffff30 bl 24228 <== NOT EXECUTED *block_table = 0; 24564: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 24568: e58a3000 str r3, [sl] <== NOT EXECUTED } 2456c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED /* * Perform internal consistency checks */ assert( block_table ); 24570: e3a01e1b mov r1, #432 ; 0x1b0 <== NOT EXECUTED 24574: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 24578: e59f0008 ldr r0, [pc, #8] ; 24588 <== NOT EXECUTED 2457c: e59f2008 ldr r2, [pc, #8] ; 2458c <== NOT EXECUTED 24580: e59f3008 ldr r3, [pc, #8] ; 24590 <== NOT EXECUTED 24584: ebffe46d bl 1d740 <__assert_func> <== NOT EXECUTED 24588: 000441f4 .word 0x000441f4 2458c: 00040c2c .word 0x00040c2c 24590: 00044270 .word 0x00044270 000249b4 : int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 249b4: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 249b8: e590402c ldr r4, [r0, #44] <== NOT EXECUTED * POSIX 1003.1b does not specify what happens if you truncate a file * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) 249bc: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 249c0: e1530001 cmp r3, r1 <== NOT EXECUTED int memfile_ftruncate( rtems_libio_t *iop, off_t length ) { 249c4: 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 ) 249c8: ba000009 blt 249f4 <== 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; 249cc: e5841050 str r1, [r4, #80] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 249d0: e5801004 str r1, [r0, #4] <== NOT EXECUTED IMFS_update_atime( the_jnode ); 249d4: e1a0000d mov r0, sp <== NOT EXECUTED 249d8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 249dc: ebff7d85 bl 3ff8 <== NOT EXECUTED 249e0: e59d3000 ldr r3, [sp] <== NOT EXECUTED 249e4: e5843040 str r3, [r4, #64] <== NOT EXECUTED 249e8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED return 0; } 249ec: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 249f0: 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 ); 249f4: e1a00004 mov r0, r4 <== NOT EXECUTED 249f8: ebffffa0 bl 24880 <== NOT EXECUTED 249fc: eafffffa b 249ec <== NOT EXECUTED 00024220 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } 24220: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 24224: e12fff1e bx lr <== NOT EXECUTED 00024a00 : off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 24a00: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 24a04: e590402c ldr r4, [r0, #44] <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { 24a08: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 24a0c: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED off_t memfile_lseek( rtems_libio_t *iop, off_t offset, int whence ) { 24a10: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 24a14: 1a000005 bne 24a30 <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) 24a18: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 24a1c: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED 24a20: e1500003 cmp r0, r3 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 24a24: c5853008 strgt r3, [r5, #8] <== NOT EXECUTED 24a28: c1a00003 movgt r0, r3 <== NOT EXECUTED 24a2c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 24a30: e1a00004 mov r0, r4 <== NOT EXECUTED 24a34: e5951008 ldr r1, [r5, #8] <== NOT EXECUTED 24a38: ebffff90 bl 24880 <== NOT EXECUTED 24a3c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 24a40: 1a000003 bne 24a54 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 24a44: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 24a48: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED 24a4c: e5853004 str r3, [r5, #4] <== NOT EXECUTED } return iop->offset; } 24a50: 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 ); 24a54: eb00213c bl 2cf4c <__errno> <== NOT EXECUTED 24a58: e3a0301c mov r3, #28 ; 0x1c <== NOT EXECUTED 24a5c: e5803000 str r3, [r0] <== NOT EXECUTED 24a60: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 24a64: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00024ccc : the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 24ccc: e590200c ldr r2, [r0, #12] <== NOT EXECUTED 24cd0: e3120f81 tst r2, #516 ; 0x204 <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 24cd4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 24cd8: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 24cdc: e590402c ldr r4, [r0, #44] <== NOT EXECUTED /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 24ce0: 0a000002 beq 24cf0 <== NOT EXECUTED 24ce4: e594304c ldr r3, [r4, #76] <== NOT EXECUTED 24ce8: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED 24cec: 0a000006 beq 24d0c <== 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) 24cf0: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED iop->offset = the_jnode->info.file.size; 24cf4: 15943050 ldrne r3, [r4, #80] <== NOT EXECUTED 24cf8: 15853008 strne r3, [r5, #8] <== NOT EXECUTED iop->size = the_jnode->info.file.size; 24cfc: e5943050 ldr r3, [r4, #80] <== NOT EXECUTED 24d00: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 24d04: e5853004 str r3, [r5, #4] <== NOT EXECUTED return 0; } 24d08: 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; 24d0c: 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; 24d10: 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; 24d14: 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) 24d18: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; 24d1c: e5942054 ldr r2, [r4, #84] <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 24d20: e584304c str r3, [r4, #76] <== NOT EXECUTED the_jnode->info.file.size = 0; 24d24: e5841050 str r1, [r4, #80] <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 24d28: e5841058 str r1, [r4, #88] <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 24d2c: 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; 24d30: e5841054 str r1, [r4, #84] <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 24d34: 0595200c ldreq r2, [r5, #12] <== NOT EXECUTED 24d38: 0affffec beq 24cf0 <== NOT EXECUTED 24d3c: e1a03000 mov r3, r0 <== NOT EXECUTED 24d40: e1a00004 mov r0, r4 <== NOT EXECUTED 24d44: ebffff47 bl 24a68 <== NOT EXECUTED 24d48: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 24d4c: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED 24d50: e595200c ldr r2, [r5, #12] <== NOT EXECUTED 24d54: eaffffe5 b 24cf0 <== NOT EXECUTED 00024fb4 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 24fb4: 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 ); 24fb8: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED 24fbc: e590002c ldr r0, [r0, #44] <== NOT EXECUTED ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 24fc0: 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 ); 24fc4: e1a0200c mov r2, ip <== NOT EXECUTED 24fc8: eaffff62 b 24d58 <== NOT EXECUTED 00024774 : */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 24774: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 24778: e5904000 ldr r4, [r0] <== NOT EXECUTED /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 2477c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 24780: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED */ int memfile_rmnod( rtems_filesystem_location_info_t *pathloc /* IN */ ) { 24784: 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 ) { 24788: 0a000003 beq 2479c <== NOT EXECUTED 2478c: e1a00004 mov r0, r4 <== NOT EXECUTED 24790: ebfff334 bl 21468 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 24794: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 24798: e5843008 str r3, [r4, #8] <== NOT EXECUTED /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 2479c: e1d433b4 ldrh r3, [r4, #52] <== NOT EXECUTED 247a0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 247a4: e1c433b4 strh r3, [r4, #52] <== NOT EXECUTED IMFS_update_ctime( the_jnode ); 247a8: e1a0000d mov r0, sp <== NOT EXECUTED 247ac: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 247b0: ebff7e10 bl 3ff8 <== NOT EXECUTED 247b4: e59d3000 ldr r3, [sp] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 247b8: 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 ); 247bc: e5843048 str r3, [r4, #72] <== NOT EXECUTED return memfile_check_rmnod( the_jnode ); 247c0: ebffffd5 bl 2471c <== NOT EXECUTED } 247c4: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 247c8: e8bd8010 pop {r4, pc} <== NOT EXECUTED 00024ca0 : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 24ca0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 24ca4: e590502c ldr r5, [r0, #44] <== NOT EXECUTED ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 24ca8: e1a04000 mov r4, r0 <== NOT EXECUTED 24cac: 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 ); 24cb0: e1a00005 mov r0, r5 <== NOT EXECUTED 24cb4: e1a02001 mov r2, r1 <== NOT EXECUTED 24cb8: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED 24cbc: ebffff69 bl 24a68 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 24cc0: e5953050 ldr r3, [r5, #80] <== NOT EXECUTED 24cc4: e5843004 str r3, [r4, #4] <== NOT EXECUTED return status; } 24cc8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 0001f714 : int mkfifo( const char *path, mode_t mode ) { return mknod( path, mode | S_IFIFO, 0LL ); 1f714: e3811a01 orr r1, r1, #4096 ; 0x1000 <== NOT EXECUTED 1f718: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 1f71c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1f720: eaff942f b 47e4 <== NOT EXECUTED 0000167c : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 167c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 1680: 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) ) ) 1684: e2111a0f ands r1, r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 1688: e24dd018 sub sp, sp, #24 ; 0x18 168c: e1a06000 mov r6, r0 1690: e1a07002 mov r7, r2 1694: 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) ) ) 1698: 0a000045 beq 17b4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( S_ISFIFO(mode) ) 169c: e3510a01 cmp r1, #4096 ; 0x1000 16a0: 0a000032 beq 1770 rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 16a4: e5d03000 ldrb r3, [r0] 16a8: e353005c cmp r3, #92 ; 0x5c 16ac: 1353002f cmpne r3, #47 ; 0x2f 16b0: 13a0e000 movne lr, #0 ; 0x0 16b4: 03a0e001 moveq lr, #1 ; 0x1 16b8: 1a000033 bne 178c 16bc: e59f3104 ldr r3, [pc, #260] ; 17c8 16c0: e593c000 ldr ip, [r3] 16c4: e28cc014 add ip, ip, #20 ; 0x14 16c8: e89c000f ldm ip, {r0, r1, r2, r3} 16cc: e28d4004 add r4, sp, #4 ; 0x4 16d0: e884000f stm r4, {r0, r1, r2, r3} 16d4: e3a02001 mov r2, #1 ; 0x1 if ( !temp_loc.ops->evalformake_h ) { 16d8: e59d300c ldr r3, [sp, #12] 16dc: e5933004 ldr r3, [r3, #4] 16e0: e3530000 cmp r3, #0 ; 0x0 16e4: 0a000021 beq 1770 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 16e8: e0860002 add r0, r6, r2 16ec: e1a01004 mov r1, r4 16f0: e28d2014 add r2, sp, #20 ; 0x14 16f4: e1a0e00f mov lr, pc 16f8: e12fff13 bx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 16fc: e3500000 cmp r0, #0 ; 0x0 1700: 1a00001d bne 177c return -1; if ( !temp_loc.ops->mknod_h ) { 1704: e59d300c ldr r3, [sp, #12] 1708: e593c014 ldr ip, [r3, #20] 170c: e35c0000 cmp ip, #0 ; 0x0 1710: 0a000011 beq 175c 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 ); 1714: e1a01005 mov r1, r5 1718: e1a03008 mov r3, r8 171c: e58d4000 str r4, [sp] 1720: e59d0014 ldr r0, [sp, #20] 1724: e1a02007 mov r2, r7 1728: e1a0e00f mov lr, pc 172c: e12fff1c bx ip rtems_filesystem_freenode( &temp_loc ); 1730: e59d300c ldr r3, [sp, #12] 1734: e3530000 cmp r3, #0 ; 0x0 if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 1738: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 173c: 0a00000f beq 1780 1740: e593301c ldr r3, [r3, #28] 1744: e3530000 cmp r3, #0 ; 0x0 1748: 0a00000c beq 1780 174c: e1a00004 mov r0, r4 <== NOT EXECUTED 1750: e1a0e00f mov lr, pc <== NOT EXECUTED 1754: e12fff13 bx r3 <== NOT EXECUTED 1758: ea000008 b 1780 <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 175c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1760: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1764: 11a00004 movne r0, r4 <== NOT EXECUTED 1768: 11a0e00f movne lr, pc <== NOT EXECUTED 176c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1770: eb0026ee bl b330 <__errno> <== NOT EXECUTED 1774: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1778: e5803000 str r3, [r0] <== NOT EXECUTED 177c: 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; } 1780: e1a00005 mov r0, r5 1784: e28dd018 add sp, sp, #24 ; 0x18 1788: 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 ); 178c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1790: 0affffc9 beq 16bc <== NOT EXECUTED 1794: e59f302c ldr r3, [pc, #44] ; 17c8 <== NOT EXECUTED 1798: e593c000 ldr ip, [r3] <== NOT EXECUTED 179c: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 17a0: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 17a4: e28d4004 add r4, sp, #4 ; 0x4 <== NOT EXECUTED 17a8: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 17ac: e1a0200e mov r2, lr <== NOT EXECUTED 17b0: eaffffc8 b 16d8 <== 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 ); 17b4: eb0026dd bl b330 <__errno> <== NOT EXECUTED 17b8: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 17bc: e5803000 str r3, [r0] <== NOT EXECUTED 17c0: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 17c4: eaffffed b 1780 <== NOT EXECUTED 17c8: 00014a18 .word 0x00014a18 00009610 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 9610: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 9614: 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 ) { 9618: e24dd010 sub sp, sp, #16 ; 0x10 961c: e1a09000 mov r9, r0 9620: e1a07002 mov r7, r2 9624: e1a05003 mov r5, r3 9628: e59d6030 ldr r6, [sp, #48] /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 962c: 0a000093 beq 9880 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 9630: e3520001 cmp r2, #1 ; 0x1 9634: 8a000091 bhi 9880 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 9638: e59a4024 ldr r4, [sl, #36] 963c: e3540000 cmp r4, #0 ; 0x0 9640: 0a000032 beq 9710 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 9644: e3530000 cmp r3, #0 ; 0x0 9648: 03a00064 moveq r0, #100 ; 0x64 964c: 0a000002 beq 965c size += strlen( device ) + 1; 9650: e1a00003 mov r0, r3 <== NOT EXECUTED 9654: eb000c6b bl c808 <== NOT EXECUTED 9658: e2800065 add r0, r0, #101 ; 0x65 <== NOT EXECUTED temp_mt_entry = malloc( size ); 965c: ebffffa4 bl 94f4 if ( !temp_mt_entry ) { 9660: e3500000 cmp r0, #0 ; 0x0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 9664: e1a04000 mov r4, r0 9668: e1a08000 mov r8, r0 if ( !temp_mt_entry ) { 966c: 0a000088 beq 9894 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 9670: 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; 9674: e5807028 str r7, [r0, #40] if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 9678: 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; 967c: 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 ) { 9680: 0a000004 beq 9698 temp_mt_entry->dev = 9684: 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 ); 9688: e1a00003 mov r0, r3 <== NOT EXECUTED 968c: 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 = 9690: e5843060 str r3, [r4, #96] <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 9694: eb000c2d bl c750 <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 9698: e3560000 cmp r6, #0 ; 0x0 969c: 0a000024 beq 9734 if ( rtems_filesystem_evaluate_path( 96a0: e1a00006 mov r0, r6 <== NOT EXECUTED 96a4: e3a01007 mov r1, #7 ; 0x7 <== NOT EXECUTED 96a8: e1a0200d mov r2, sp <== NOT EXECUTED 96ac: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 96b0: ebffdf37 bl 1394 <== NOT EXECUTED 96b4: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 96b8: e1a0500d mov r5, sp <== NOT EXECUTED 96bc: 0a000017 beq 9720 <== NOT EXECUTED /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 96c0: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 96c4: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 96c8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 96cc: 0a00005d beq 9848 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 96d0: e1a0000d mov r0, sp <== NOT EXECUTED 96d4: e1a0e00f mov lr, pc <== NOT EXECUTED 96d8: e12fff13 bx r3 <== NOT EXECUTED 96dc: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 96e0: 0a00002c beq 9798 <== NOT EXECUTED errno = ENOTDIR; 96e4: eb000711 bl b330 <__errno> <== NOT EXECUTED 96e8: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 96ec: e5803000 str r3, [r0] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 96f0: e1a00004 mov r0, r4 <== NOT EXECUTED 96f4: ebfffe18 bl 8f5c <== NOT EXECUTED 96f8: e1a0500d mov r5, sp <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 96fc: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED 9700: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 9704: 1a000053 bne 9858 <== NOT EXECUTED 9708: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 970c: ea000006 b 972c <== NOT EXECUTED return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 9710: eb000706 bl b330 <__errno> <== NOT EXECUTED 9714: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 9718: e5803000 str r3, [r0] <== NOT EXECUTED 971c: e1a08004 mov r8, r4 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 9720: e1a00008 mov r0, r8 <== NOT EXECUTED 9724: ebfffe0c bl 8f5c <== NOT EXECUTED 9728: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 972c: e28dd010 add sp, sp, #16 ; 0x10 9730: 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; 9734: e5846018 str r6, [r4, #24] temp_mt_entry->mt_fs_root.handlers = NULL; 9738: e584601c str r6, [r4, #28] temp_mt_entry->mt_fs_root.ops = NULL; 973c: e5846020 str r6, [r4, #32] temp_mt_entry->mt_point_node.node_access = NULL; 9740: e5846008 str r6, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; 9744: e584600c str r6, [r4, #12] temp_mt_entry->mt_point_node.ops = NULL; 9748: e5846010 str r6, [r4, #16] temp_mt_entry->mt_point_node.mt_entry = NULL; 974c: e5846014 str r6, [r4, #20] 9750: e1a05006 mov r5, r6 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 9754: e1a00004 mov r0, r4 9758: e1a0e00f mov lr, pc 975c: e59af024 ldr pc, [sl, #36] 9760: e2506000 subs r6, r0, #0 ; 0x0 9764: 0a00002b beq 9818 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 9768: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 976c: e5933028 ldr r3, [r3, #40] <== NOT EXECUTED 9770: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 9774: 11a00004 movne r0, r4 <== NOT EXECUTED 9778: 11a0e00f movne lr, pc <== NOT EXECUTED 977c: 112fff13 bxne r3 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 9780: e1a00004 mov r0, r4 <== NOT EXECUTED 9784: ebfffdf4 bl 8f5c <== NOT EXECUTED if ( loc_to_free ) 9788: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 978c: 1affffda bne 96fc <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 9790: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 9794: eaffffe4 b 972c <== NOT EXECUTED /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 9798: e59f1108 ldr r1, [pc, #264] ; 98a8 <== NOT EXECUTED 979c: e4912004 ldr r2, [r1], #4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 97a0: e1520001 cmp r2, r1 <== NOT EXECUTED 97a4: 0a000033 beq 9878 <== 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 ) 97a8: e59d0000 ldr r0, [sp] <== NOT EXECUTED 97ac: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 97b0: e1530000 cmp r3, r0 <== NOT EXECUTED 97b4: 1a000003 bne 97c8 <== NOT EXECUTED 97b8: ea00001e b 9838 <== NOT EXECUTED 97bc: e5923018 ldr r3, [r2, #24] <== NOT EXECUTED 97c0: e1530000 cmp r3, r0 <== NOT EXECUTED 97c4: 0a00001b beq 9838 <== 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 ) { 97c8: 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 ); 97cc: e1520001 cmp r2, r1 <== NOT EXECUTED 97d0: 1afffff9 bne 97bc <== 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; 97d4: e59d3008 ldr r3, [sp, #8] <== 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 ){ 97d8: e593c020 ldr ip, [r3, #32] <== NOT EXECUTED * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; 97dc: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 97e0: 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 ){ 97e4: 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; 97e8: e5840008 str r0, [r4, #8] <== NOT EXECUTED temp_mt_entry->mt_point_node.handlers = loc.handlers; 97ec: 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; 97f0: 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; 97f4: 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 ){ 97f8: 0a000012 beq 9848 <== NOT EXECUTED errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 97fc: e1a00004 mov r0, r4 <== NOT EXECUTED 9800: e1a0e00f mov lr, pc <== NOT EXECUTED 9804: e12fff1c bx ip <== NOT EXECUTED 9808: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED goto cleanup_and_bail; 980c: 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 ) ) { 9810: 0affffcf beq 9754 <== NOT EXECUTED 9814: eaffffb5 b 96f0 <== 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 ); 9818: e59f0088 ldr r0, [pc, #136] ; 98a8 981c: e1a01004 mov r1, r4 9820: ebffee7d bl 521c <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 9824: e3590000 cmp r9, #0 ; 0x0 9828: 01a00009 moveq r0, r9 *mt_entry = temp_mt_entry; 982c: 15894000 strne r4, [r9] 9830: 11a00006 movne r0, r6 9834: eaffffbc b 972c /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 9838: eb0006bc bl b330 <__errno> <== NOT EXECUTED 983c: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 9840: e5803000 str r3, [r0] <== NOT EXECUTED 9844: eaffffa9 b 96f0 <== 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; 9848: eb0006b8 bl b330 <__errno> <== NOT EXECUTED 984c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 9850: e5803000 str r3, [r0] <== NOT EXECUTED 9854: eaffffa5 b 96f0 <== NOT EXECUTED cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 9858: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 985c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 9860: 0affffa8 beq 9708 <== NOT EXECUTED 9864: e1a00005 mov r0, r5 <== NOT EXECUTED 9868: e1a0e00f mov lr, pc <== NOT EXECUTED 986c: e12fff13 bx r3 <== NOT EXECUTED 9870: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 9874: eaffffac b 972c <== NOT EXECUTED 9878: e59d0000 ldr r0, [sp] <== NOT EXECUTED 987c: eaffffd4 b 97d4 <== NOT EXECUTED * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 9880: eb0006aa bl b330 <__errno> <== NOT EXECUTED 9884: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 9888: e5803000 str r3, [r0] <== NOT EXECUTED 988c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 9890: eaffffa5 b 972c <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 9894: eb0006a5 bl b330 <__errno> <== NOT EXECUTED 9898: e3a0300c mov r3, #12 ; 0xc <== NOT EXECUTED 989c: e5803000 str r3, [r0] <== NOT EXECUTED 98a0: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 98a4: eaffffa0 b 972c <== NOT EXECUTED 98a8: 00016298 .word 0x00016298 00001858 : */ int newlib_free_buffers( FILE *fp ) { 1858: e92d4010 push {r4, lr} 185c: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 1860: eb00277f bl b664 1864: e3500002 cmp r0, #2 ; 0x2 1868: 9a000003 bls 187c fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 186c: e1a00004 mov r0, r4 <== NOT EXECUTED 1870: eb0026ff bl b474 <== NOT EXECUTED } return 0; } 1874: e3a00000 mov r0, #0 ; 0x0 1878: e8bd8010 pop {r4, pc} { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 187c: e1d430bc ldrh r3, [r4, #12] 1880: e3130080 tst r3, #128 ; 0x80 1884: 0afffffa beq 1874 free( fp->_bf._base ); 1888: e5940010 ldr r0, [r4, #16] 188c: eb001db2 bl 8f5c fp->_flags &= ~__SMBF; 1890: e1d430bc ldrh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 1894: e3a02000 mov r2, #0 ; 0x0 case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 1898: e3c33080 bic r3, r3, #128 ; 0x80 fp->_bf._base = fp->_p = (unsigned char *) NULL; 189c: e5842010 str r2, [r4, #16] case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 18a0: e1c430bc strh r3, [r4, #12] fp->_bf._base = fp->_p = (unsigned char *) NULL; 18a4: e5842000 str r2, [r4] break; default: fclose(fp); } return 0; } 18a8: e3a00000 mov r0, #0 ; 0x0 18ac: e8bd8010 pop {r4, pc} 0000202c : void *pargp ) { rtems_device_driver status; if ( !initialized ) { 202c: e59fc040 ldr ip, [pc, #64] ; 2074 2030: e5dc2000 ldrb r2, [ip] 2034: e3520000 cmp r2, #0 ; 0x0 rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *pargp ) { 2038: e92d4010 push {r4, lr} 203c: e1a04000 mov r4, r0 rtems_device_driver status; if ( !initialized ) { 2040: 0a000001 beq 204c NULL_major = major; } return RTEMS_SUCCESSFUL; } 2044: e3a00000 mov r0, #0 ; 0x0 2048: e8bd8010 pop {r4, pc} ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 204c: e3a03001 mov r3, #1 ; 0x1 status = rtems_io_register_name( 2050: e59f0020 ldr r0, [pc, #32] ; 2078 2054: e1a01004 mov r1, r4 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 2058: e5cc3000 strb r3, [ip] status = rtems_io_register_name( 205c: eb00004b bl 2190 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 2060: e3500000 cmp r0, #0 ; 0x0 rtems_fatal_error_occurred(status); NULL_major = major; 2064: 059f3010 ldreq r3, [pc, #16] ; 207c 2068: 05834000 streq r4, [r3] "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 206c: 0afffff4 beq 2044 rtems_fatal_error_occurred(status); 2070: eb000feb bl 6024 <== NOT EXECUTED 2074: 00019bcc .word 0x00019bcc 2078: 00018b84 .word 0x00018b84 207c: 00019d74 .word 0x00019d74 00001ac0 : int open( const char *pathname, int flags, ... ) { 1ac0: e92d000e push {r1, r2, r3} 1ac4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 1ac8: e24dd010 sub sp, sp, #16 ; 0x10 1acc: e59da034 ldr sl, [sp, #52] /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 1ad0: e28a3001 add r3, sl, #1 ; 0x1 if ( ( status & _FREAD ) == _FREAD ) 1ad4: e2132001 ands r2, r3, #1 ; 0x1 1ad8: 01a04002 moveq r4, r2 1adc: 13a04004 movne r4, #4 ; 0x4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 1ae0: e3130002 tst r3, #2 ; 0x2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 1ae4: 13844002 orrne r4, r4, #2 ; 0x2 int open( const char *pathname, int flags, ... ) { 1ae8: e1a09000 mov r9, r0 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); 1aec: e59db038 ldr fp, [sp, #56] * 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(); 1af0: eb001e0e bl 9330 if ( iop == 0 ) { 1af4: e2506000 subs r6, r0, #0 ; 0x0 1af8: 03a05017 moveq r5, #23 ; 0x17 1afc: 0a000030 beq 1bc4 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 1b00: e1a01004 mov r1, r4 1b04: e1a00009 mov r0, r9 1b08: e1a0200d mov r2, sp 1b0c: e3a03001 mov r3, #1 ; 0x1 1b10: ebfffe1f bl 1394 pathname, eval_flags, &loc, true ); if ( status == -1 ) { 1b14: e3700001 cmn r0, #1 ; 0x1 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 1b18: e1a0700d mov r7, sp pathname, eval_flags, &loc, true ); if ( status == -1 ) { 1b1c: 0a000040 beq 1c24 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 1b20: e20a3c0a and r3, sl, #2560 ; 0xa00 1b24: e3530c0a cmp r3, #2560 ; 0xa00 1b28: 01a0400d moveq r4, sp 1b2c: 03a05011 moveq r5, #17 ; 0x11 1b30: 0a000055 beq 1c8c /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 1b34: e89d000c ldm sp, {r2, r3} 1b38: e5863030 str r3, [r6, #48] iop->file_info = loc.node_access; 1b3c: e586202c str r2, [r6, #44] iop->flags |= rtems_libio_fcntl_flags( flags ); 1b40: e1a0000a mov r0, sl 1b44: e596400c ldr r4, [r6, #12] 1b48: eb001e3c bl 9440 iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 1b4c: e5963030 ldr r3, [r6, #48] 1b50: e5938000 ldr r8, [r3] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1b54: e1805004 orr r5, r0, r4 iop->pathinfo = loc; 1b58: e897000f ldm r7, {r0, r1, r2, r3} 1b5c: e286c010 add ip, r6, #16 ; 0x10 if ( !iop->handlers->open_h ) { 1b60: e3580000 cmp r8, #0 ; 0x0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 1b64: e88c000f stm ip, {r0, r1, r2, r3} * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 1b68: e586500c str r5, [r6, #12] iop->pathinfo = loc; if ( !iop->handlers->open_h ) { 1b6c: 0a000044 beq 1c84 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 1b70: e1a01009 mov r1, r9 1b74: e1a0300b mov r3, fp 1b78: e1a00006 mov r0, r6 1b7c: e1a0200a mov r2, sl 1b80: e1a0e00f mov lr, pc 1b84: e12fff18 bx r8 if ( rc ) 1b88: e2505000 subs r5, r0, #0 ; 0x0 1b8c: 11a0400d movne r4, sp 1b90: 0a00000f beq 1bd4 done: va_end(ap); if ( rc ) { if ( iop ) rtems_libio_free( iop ); 1b94: e1a00006 mov r0, r6 <== NOT EXECUTED 1b98: eb001dce bl 92d8 <== NOT EXECUTED if ( loc_to_free ) 1b9c: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 1ba0: 0a000007 beq 1bc4 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 1ba4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 1ba8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1bac: 0a000004 beq 1bc4 <== NOT EXECUTED 1bb0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1bb4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1bb8: 11a00004 movne r0, r4 <== NOT EXECUTED 1bbc: 11a0e00f movne lr, pc <== NOT EXECUTED 1bc0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( rc ); 1bc4: eb0025d9 bl b330 <__errno> 1bc8: e5805000 str r5, [r0] 1bcc: e3e00000 mvn r0, #0 ; 0x0 1bd0: ea00000f b 1c14 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 1bd4: e31a0b01 tst sl, #1024 ; 0x400 1bd8: 1a000034 bne 1cb0 1bdc: e59f4170 ldr r4, [pc, #368] ; 1d54 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 1be0: e5941000 ldr r1, [r4] 1be4: e0611006 rsb r1, r1, r6 1be8: e1a01141 asr r1, r1, #2 1bec: e1a02301 lsl r2, r1, #6 1bf0: e0422101 sub r2, r2, r1, lsl #2 1bf4: e1a03302 lsl r3, r2, #6 1bf8: e0623003 rsb r3, r2, r3 1bfc: e1a00603 lsl r0, r3, #12 1c00: e0833000 add r3, r3, r0 1c04: e0833001 add r3, r3, r1 1c08: e1a03203 lsl r3, r3, #4 1c0c: e0613003 rsb r3, r1, r3 1c10: e0410103 sub r0, r1, r3, lsl #2 } 1c14: e28dd010 add sp, sp, #16 ; 0x10 1c18: e8bd4ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, lr} 1c1c: e28dd00c add sp, sp, #12 ; 0xc 1c20: e12fff1e bx lr status = rtems_filesystem_evaluate_path( pathname, eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 1c24: eb0025c1 bl b330 <__errno> <== NOT EXECUTED 1c28: e5900000 ldr r0, [r0] <== NOT EXECUTED 1c2c: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 1c30: 1a000018 bne 1c98 <== 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) ) { 1c34: e21a3c02 ands r3, sl, #512 ; 0x200 <== NOT EXECUTED 1c38: 01a05000 moveq r5, r0 <== NOT EXECUTED 1c3c: 01a04003 moveq r4, r3 <== NOT EXECUTED 1c40: 0a000011 beq 1c8c <== NOT EXECUTED rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 1c44: e1a00009 mov r0, r9 <== NOT EXECUTED 1c48: e38b1902 orr r1, fp, #32768 ; 0x8000 <== NOT EXECUTED 1c4c: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 1c50: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1c54: ebfffe88 bl 167c <== NOT EXECUTED if ( rc ) { 1c58: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1c5c: 1a00000d bne 1c98 <== 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 ); 1c60: e1a00009 mov r0, r9 <== NOT EXECUTED 1c64: e1a01004 mov r1, r4 <== NOT EXECUTED 1c68: e1a0200d mov r2, sp <== NOT EXECUTED 1c6c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 1c70: ebfffdc7 bl 1394 <== NOT EXECUTED if ( status != 0 ) { /* The file did not exist */ 1c74: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1c78: 13a0500d movne r5, #13 ; 0xd <== NOT EXECUTED 1c7c: 1a000002 bne 1c8c <== NOT EXECUTED 1c80: eaffffab b 1b34 <== 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; 1c84: e1a0400d mov r4, sp <== NOT EXECUTED 1c88: e3a05086 mov r5, #134 ; 0x86 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 1c8c: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1c90: 0affffc1 beq 1b9c <== NOT EXECUTED 1c94: eaffffbe b 1b94 <== NOT EXECUTED } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 1c98: eb0025a4 bl b330 <__errno> <== NOT EXECUTED 1c9c: e5905000 ldr r5, [r0] <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 1ca0: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 1ca4: 0affffcc beq 1bdc <== NOT EXECUTED 1ca8: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 1cac: eafffff6 b 1c8c <== NOT EXECUTED /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 1cb0: e59f409c ldr r4, [pc, #156] ; 1d54 <== NOT EXECUTED 1cb4: e5942000 ldr r2, [r4] <== NOT EXECUTED 1cb8: e0622006 rsb r2, r2, r6 <== NOT EXECUTED 1cbc: e1a02142 asr r2, r2, #2 <== NOT EXECUTED 1cc0: e1a03302 lsl r3, r2, #6 <== NOT EXECUTED 1cc4: e0433102 sub r3, r3, r2, lsl #2 <== NOT EXECUTED 1cc8: e1a00303 lsl r0, r3, #6 <== NOT EXECUTED 1ccc: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 1cd0: e1a01600 lsl r1, r0, #12 <== NOT EXECUTED 1cd4: e0800001 add r0, r0, r1 <== NOT EXECUTED 1cd8: e0800002 add r0, r0, r2 <== NOT EXECUTED 1cdc: e1a00200 lsl r0, r0, #4 <== NOT EXECUTED 1ce0: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 1ce4: e1a01005 mov r1, r5 <== NOT EXECUTED 1ce8: e0420100 sub r0, r2, r0, lsl #2 <== NOT EXECUTED 1cec: eb001cc2 bl 8ffc <== NOT EXECUTED if ( rc ) { 1cf0: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 1cf4: 0affffb9 beq 1be0 <== NOT EXECUTED if(errno) rc = errno; 1cf8: eb00258c bl b330 <__errno> <== NOT EXECUTED 1cfc: e5903000 ldr r3, [r0] <== NOT EXECUTED 1d00: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1d04: 1a00000f bne 1d48 <== NOT EXECUTED close( iop - rtems_libio_iops ); 1d08: e5942000 ldr r2, [r4] <== NOT EXECUTED 1d0c: e0622006 rsb r2, r2, r6 <== NOT EXECUTED 1d10: e1a02142 asr r2, r2, #2 <== NOT EXECUTED 1d14: e1a03302 lsl r3, r2, #6 <== NOT EXECUTED 1d18: e0433102 sub r3, r3, r2, lsl #2 <== NOT EXECUTED 1d1c: e1a00303 lsl r0, r3, #6 <== NOT EXECUTED 1d20: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 1d24: e1a01600 lsl r1, r0, #12 <== NOT EXECUTED 1d28: e0800001 add r0, r0, r1 <== NOT EXECUTED 1d2c: e0800002 add r0, r0, r2 <== NOT EXECUTED 1d30: e1a00200 lsl r0, r0, #4 <== NOT EXECUTED 1d34: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 1d38: e0420100 sub r0, r2, r0, lsl #2 <== NOT EXECUTED 1d3c: eb001c59 bl 8ea8 <== NOT EXECUTED 1d40: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 1d44: eaffffd5 b 1ca0 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 1d48: eb002578 bl b330 <__errno> <== NOT EXECUTED 1d4c: e5905000 ldr r5, [r0] <== NOT EXECUTED 1d50: eaffffec b 1d08 <== NOT EXECUTED 1d54: 00015ed8 .word 0x00015ed8 00001a58 : int error_code = 'S' << 24 | 'T' << 16 | 'D' << 8; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 1a58: e3a01000 mov r1, #0 ; 0x0 /* * This is a replaceable stub */ void open_dev_console(void) { 1a5c: 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) { 1a60: e59f004c ldr r0, [pc, #76] ; 1ab4 1a64: e1a02001 mov r2, r1 1a68: eb000014 bl 1ac0 1a6c: e3700001 cmn r0, #1 ; 0x1 1a70: 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) 1a74: e59f0038 ldr r0, [pc, #56] ; 1ab4 1a78: e3a01001 mov r1, #1 ; 0x1 1a7c: e3a02000 mov r2, #0 ; 0x0 1a80: eb00000e bl 1ac0 1a84: e3700001 cmn r0, #1 ; 0x1 1a88: 0a000007 beq 1aac rtems_fatal_error_occurred( error_code | '1' ); if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 1a8c: e59f0020 ldr r0, [pc, #32] ; 1ab4 1a90: e3a01001 mov r1, #1 ; 0x1 1a94: e3a02000 mov r2, #0 ; 0x0 1a98: eb000008 bl 1ac0 1a9c: e3700001 cmn r0, #1 ; 0x1 1aa0: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( error_code | '2' ); 1aa4: e59f000c ldr r0, [pc, #12] ; 1ab8 <== NOT EXECUTED 1aa8: eb000d05 bl 4ec4 <== 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' ); 1aac: e59f0008 ldr r0, [pc, #8] ; 1abc <== NOT EXECUTED 1ab0: eb000d03 bl 4ec4 <== NOT EXECUTED 1ab4: 000157c0 .word 0x000157c0 1ab8: 53544432 .word 0x53544432 1abc: 53544431 .word 0x53544431 0001f7a4 : * open a directory. */ DIR * opendir( const char *name ) { 1f7a4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register DIR *dirp; register int fd; if ((fd = open(name, 0)) == -1) 1f7a8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1f7ac: ebff95cb bl 4ee0 <== NOT EXECUTED 1f7b0: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 1f7b4: e1a05000 mov r5, r0 <== NOT EXECUTED 1f7b8: 0a00001a beq 1f828 <== NOT EXECUTED return NULL; if (fcntl(fd, F_SETFD, 1) == -1 || 1f7bc: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 1f7c0: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 1f7c4: eb002c5b bl 2a938 <== NOT EXECUTED 1f7c8: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 1f7cc: 0a000013 beq 1f820 <== NOT EXECUTED 1f7d0: e3a00018 mov r0, #24 ; 0x18 <== NOT EXECUTED 1f7d4: ebff937f bl 45d8 <== NOT EXECUTED 1f7d8: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1f7dc: 0a00000f beq 1f820 <== 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); 1f7e0: e3a00c02 mov r0, #512 ; 0x200 <== NOT EXECUTED 1f7e4: ebff937b bl 45d8 <== NOT EXECUTED dirp->dd_len = 512; 1f7e8: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED if (dirp->dd_buf == NULL) { 1f7ec: 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; 1f7f0: e5843010 str r3, [r4, #16] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 1f7f4: 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); 1f7f8: e1a02000 mov r2, r0 <== NOT EXECUTED 1f7fc: e584000c str r0, [r4, #12] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; 1f800: 15845000 strne r5, [r4] <== NOT EXECUTED dirp->dd_loc = 0; dirp->dd_seek = 0; 1f804: 15843014 strne r3, [r4, #20] <== NOT EXECUTED if (dirp->dd_buf == NULL) { close (fd); return NULL; } dirp->dd_fd = fd; dirp->dd_loc = 0; 1f808: 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) { 1f80c: 1a000006 bne 1f82c <== NOT EXECUTED close (fd); 1f810: e1a00005 mov r0, r5 <== NOT EXECUTED 1f814: e1a04002 mov r4, r2 <== NOT EXECUTED 1f818: ebff9122 bl 3ca8 <== NOT EXECUTED 1f81c: ea000002 b 1f82c <== 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); 1f820: e1a00005 mov r0, r5 <== NOT EXECUTED 1f824: ebff911f bl 3ca8 <== NOT EXECUTED 1f828: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED dirp->dd_seek = 0; /* * Set up seek point for rewinddir. */ return dirp; } 1f82c: e1a00004 mov r0, r4 <== NOT EXECUTED 1f830: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00002894 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 2894: e92d4010 push {r4, lr} int i; if (tty->termios.c_oflag & OPOST) { 2898: e5912034 ldr r2, [r1, #52] /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 289c: e24dd004 sub sp, sp, #4 ; 0x4 int i; if (tty->termios.c_oflag & OPOST) { 28a0: e3120001 tst r2, #1 ; 0x1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 28a4: e1a04001 mov r4, r1 28a8: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { 28ac: 0a000016 beq 290c switch (c) { 28b0: e5dd1000 ldrb r1, [sp] 28b4: e2413008 sub r3, r1, #8 ; 0x8 28b8: e3530005 cmp r3, #5 ; 0x5 28bc: 979ff103 ldrls pc, [pc, r3, lsl #2] 28c0: ea000017 b 2924 28c4: 0000296c .word 0x0000296c <== NOT EXECUTED 28c8: 000029b0 .word 0x000029b0 <== NOT EXECUTED 28cc: 00002980 .word 0x00002980 <== NOT EXECUTED 28d0: 00002924 .word 0x00002924 <== NOT EXECUTED 28d4: 00002924 .word 0x00002924 <== NOT EXECUTED 28d8: 000028dc .word 0x000028dc <== NOT EXECUTED tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 28dc: e3120010 tst r2, #16 ; 0x10 <== NOT EXECUTED 28e0: 0a000002 beq 28f0 <== NOT EXECUTED 28e4: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 28e8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 28ec: 0a00000a beq 291c <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 28f0: e2123008 ands r3, r2, #8 ; 0x8 <== NOT EXECUTED 28f4: 0a00001a beq 2964 <== NOT EXECUTED c = '\n'; 28f8: e3a0300a mov r3, #10 ; 0xa <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 28fc: 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'; 2900: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) tty->column = 0; 2904: 1243300a subne r3, r3, #10 ; 0xa <== NOT EXECUTED 2908: 15843028 strne r3, [r4, #40] <== NOT EXECUTED if (!iscntrl(c)) tty->column++; break; } } rtems_termios_puts (&c, 1, tty); 290c: e1a02004 mov r2, r4 2910: e1a0000d mov r0, sp 2914: e3a01001 mov r1, #1 ; 0x1 2918: ebffff95 bl 2774 } 291c: e28dd004 add sp, sp, #4 ; 0x4 2920: e8bd8010 pop {r4, pc} if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 2924: e3120002 tst r2, #2 ; 0x2 2928: 059f00bc ldreq r0, [pc, #188] ; 29ec 292c: 0a000006 beq 294c c = toupper(c); 2930: e59f00b4 ldr r0, [pc, #180] ; 29ec <== NOT EXECUTED 2934: e5902000 ldr r2, [r0] <== NOT EXECUTED 2938: e7d23001 ldrb r3, [r2, r1] <== NOT EXECUTED 293c: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 2940: 12411020 subne r1, r1, #32 ; 0x20 <== NOT EXECUTED 2944: e5cd1000 strb r1, [sp] <== NOT EXECUTED 2948: e5dd1000 ldrb r1, [sp] <== NOT EXECUTED if (!iscntrl(c)) 294c: e5903000 ldr r3, [r0] 2950: e7d32001 ldrb r2, [r3, r1] 2954: e3120020 tst r2, #32 ; 0x20 2958: 1affffeb bne 290c tty->column++; 295c: e5943028 ldr r3, [r4, #40] 2960: e2833001 add r3, r3, #1 ; 0x1 2964: e5843028 str r3, [r4, #40] 2968: eaffffe7 b 290c } tty->column += i; break; case '\b': if (tty->column > 0) 296c: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED 2970: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED tty->column--; 2974: c2433001 subgt r3, r3, #1 ; 0x1 <== NOT EXECUTED 2978: c5843028 strgt r3, [r4, #40] <== NOT EXECUTED 297c: eaffffe2 b 290c <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 2980: e3120020 tst r2, #32 ; 0x20 tty->column = 0; 2984: 13a03000 movne r3, #0 ; 0x0 2988: 15843028 strne r3, [r4, #40] if (tty->termios.c_oflag & ONLCR) { 298c: e3120004 tst r2, #4 ; 0x4 2990: 0affffdd beq 290c rtems_termios_puts ("\r", 1, tty); 2994: e59f0054 ldr r0, [pc, #84] ; 29f0 2998: e3a01001 mov r1, #1 ; 0x1 299c: e1a02004 mov r2, r4 29a0: ebffff73 bl 2774 tty->column = 0; 29a4: e3a03000 mov r3, #0 ; 0x0 29a8: e5843028 str r3, [r4, #40] 29ac: eaffffd6 b 290c } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 29b0: e5941028 ldr r1, [r4, #40] <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 29b4: e2023b06 and r3, r2, #6144 ; 0x1800 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 29b8: e2012007 and r2, r1, #7 ; 0x7 <== NOT EXECUTED if ((tty->termios.c_oflag & TABDLY) == XTABS) { 29bc: e3530b06 cmp r3, #6144 ; 0x1800 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 29c0: 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; 29c4: 10803001 addne r3, r0, r1 <== NOT EXECUTED 29c8: 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) { 29cc: 1affffce bne 290c <== NOT EXECUTED tty->column += i; 29d0: e0803001 add r3, r0, r1 <== NOT EXECUTED 29d4: e5843028 str r3, [r4, #40] <== NOT EXECUTED rtems_termios_puts ( " ", i, tty); 29d8: e1a01000 mov r1, r0 <== NOT EXECUTED 29dc: e1a02004 mov r2, r4 <== NOT EXECUTED 29e0: e59f000c ldr r0, [pc, #12] ; 29f4 <== NOT EXECUTED 29e4: ebffff62 bl 2774 <== NOT EXECUTED 29e8: eaffffcb b 291c <== NOT EXECUTED 29ec: 00014a64 .word 0x00014a64 29f0: 000158e0 .word 0x000158e0 29f4: 0001581c .word 0x0001581c 00013b3c : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 13b3c: e59f30c4 ldr r3, [pc, #196] ; 13c08 <== NOT EXECUTED 13b40: e593c000 ldr ip, [r3] <== NOT EXECUTED 13b44: e150000c cmp r0, ip <== NOT EXECUTED ssize_t read( int fd, void *buffer, size_t count ) { 13b48: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 13b4c: e1a06001 mov r6, r1 <== NOT EXECUTED 13b50: e1a05002 mov r5, r2 <== NOT EXECUTED ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 13b54: 2a00001c bcs 13bcc <== NOT EXECUTED iop = rtems_libio_iop( fd ); 13b58: e1a03200 lsl r3, r0, #4 <== NOT EXECUTED 13b5c: e0433100 sub r3, r3, r0, lsl #2 <== NOT EXECUTED 13b60: e0833000 add r3, r3, r0 <== NOT EXECUTED 13b64: e59f00a0 ldr r0, [pc, #160] ; 13c0c <== NOT EXECUTED 13b68: e590c000 ldr ip, [r0] <== NOT EXECUTED 13b6c: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 13b70: e08c4003 add r4, ip, r3 <== NOT EXECUTED rtems_libio_check_is_open( iop ); 13b74: e594300c ldr r3, [r4, #12] <== NOT EXECUTED 13b78: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 13b7c: 0a000012 beq 13bcc <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 13b80: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 13b84: 0a000015 beq 13be0 <== NOT EXECUTED rtems_libio_check_count( count ); 13b88: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 13b8c: 01a00002 moveq r0, r2 <== NOT EXECUTED 13b90: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 13b94: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 13b98: 0a000010 beq 13be0 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 13b9c: e5943030 ldr r3, [r4, #48] <== NOT EXECUTED 13ba0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 13ba4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 13ba8: 0a000011 beq 13bf4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 13bac: e1a00004 mov r0, r4 <== NOT EXECUTED 13bb0: e1a0e00f mov lr, pc <== NOT EXECUTED 13bb4: e12fff13 bx r3 <== NOT EXECUTED if ( rc > 0 ) 13bb8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED iop->offset += rc; 13bbc: c5943008 ldrgt r3, [r4, #8] <== NOT EXECUTED 13bc0: c0833000 addgt r3, r3, r0 <== NOT EXECUTED 13bc4: c5843008 strgt r3, [r4, #8] <== NOT EXECUTED return rc; } 13bc8: 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 ); 13bcc: ebffddd7 bl b330 <__errno> <== NOT EXECUTED 13bd0: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 13bd4: e5803000 str r3, [r0] <== NOT EXECUTED 13bd8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13bdc: 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 ); 13be0: ebffddd2 bl b330 <__errno> <== NOT EXECUTED 13be4: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 13be8: e5803000 str r3, [r0] <== NOT EXECUTED 13bec: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13bf0: 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 ); 13bf4: ebffddcd bl b330 <__errno> <== NOT EXECUTED 13bf8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 13bfc: e5803000 str r3, [r0] <== NOT EXECUTED 13c00: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13c04: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 13c08: 00014444 .word 0x00014444 13c0c: 00015ed8 .word 0x00015ed8 0001fa70 : /* * get next entry in a directory. */ struct dirent * readdir( DIR *dirp ) { 1fa70: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register struct dirent *dp; if ( !dirp ) 1fa74: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 1fa78: 0a000022 beq 1fb08 <== NOT EXECUTED 1fa7c: 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; 1fa80: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { 1fa84: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 1fa88: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1fa8c: 0a000014 beq 1fae4 <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 1fa90: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 1fa94: e1530002 cmp r3, r2 <== NOT EXECUTED dirp->dd_loc = 0; 1fa98: d5845004 strle r5, [r4, #4] <== NOT EXECUTED dirp->dd_len); if (dirp->dd_size <= 0) return NULL; } if (dirp->dd_loc >= dirp->dd_size) { 1fa9c: dafffff8 ble 1fa84 <== NOT EXECUTED dirp->dd_loc = 0; continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 1faa0: e0860002 add r0, r6, r2 <== NOT EXECUTED if ((intptr_t)dp & 03) /* bogus pointer check */ 1faa4: e3100003 tst r0, #3 ; 0x3 <== NOT EXECUTED 1faa8: 1a000016 bne 1fb08 <== NOT EXECUTED return NULL; if (dp->d_reclen <= 0 || 1faac: e1d0c0b8 ldrh ip, [r0, #8] <== NOT EXECUTED 1fab0: 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; 1fab4: 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 || 1fab8: 0a000012 beq 1fb08 <== NOT EXECUTED 1fabc: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 1fac0: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 1fac4: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 1fac8: e15c0003 cmp ip, r3 <== NOT EXECUTED 1facc: ca00000d bgt 1fb08 <== NOT EXECUTED dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) return NULL; dirp->dd_loc += dp->d_reclen; 1fad0: e5841004 str r1, [r4, #4] <== NOT EXECUTED if (dp->d_ino == 0) 1fad4: e5903000 ldr r3, [r0] <== NOT EXECUTED 1fad8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fadc: 0affffe8 beq 1fa84 <== NOT EXECUTED 1fae0: 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, 1fae4: e1a01006 mov r1, r6 <== NOT EXECUTED 1fae8: e5940000 ldr r0, [r4] <== NOT EXECUTED 1faec: e5942010 ldr r2, [r4, #16] <== NOT EXECUTED 1faf0: eb002c1d bl 2ab6c <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 1faf4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED if ( !dirp ) return NULL; for (;;) { if (dirp->dd_loc == 0) { dirp->dd_size = getdents (dirp->dd_fd, 1faf8: e5840008 str r0, [r4, #8] <== NOT EXECUTED dirp->dd_buf, dirp->dd_len); if (dirp->dd_size <= 0) 1fafc: c5942004 ldrgt r2, [r4, #4] <== NOT EXECUTED 1fb00: c594600c ldrgt r6, [r4, #12] <== NOT EXECUTED 1fb04: caffffe1 bgt 1fa90 <== 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) 1fb08: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED continue; return (dp); } } 1fb0c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 0001fb10 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 1fb10: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 1fb14: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 1fb18: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 1fb1c: e1a06002 mov r6, r2 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int result; if (!buf) 1fb20: 0a00002e beq 1fbe0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1fb24: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1fb28: e1a0200d mov r2, sp <== NOT EXECUTED 1fb2c: e1a03001 mov r3, r1 <== NOT EXECUTED 1fb30: ebff90b3 bl 3e04 <== NOT EXECUTED if ( result != 0 ) 1fb34: 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 ); 1fb38: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 1fb3c: 1a000025 bne 1fbd8 <== NOT EXECUTED return -1; if ( !loc.ops->node_type_h ){ 1fb40: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1fb44: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 1fb48: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fb4c: 0a000019 beq 1fbb8 <== 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 ){ 1fb50: e1a0000d mov r0, sp <== NOT EXECUTED 1fb54: e1a0e00f mov lr, pc <== NOT EXECUTED 1fb58: e12fff13 bx r3 <== NOT EXECUTED 1fb5c: e3500004 cmp r0, #4 ; 0x4 <== NOT EXECUTED 1fb60: 1a000023 bne 1fbf4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 1fb64: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1fb68: e592303c ldr r3, [r2, #60] <== NOT EXECUTED 1fb6c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fb70: 0a00002c beq 1fc28 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 1fb74: e1a01004 mov r1, r4 <== NOT EXECUTED 1fb78: e1a02006 mov r2, r6 <== NOT EXECUTED 1fb7c: e1a0000d mov r0, sp <== NOT EXECUTED 1fb80: e1a0e00f mov lr, pc <== NOT EXECUTED 1fb84: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1fb88: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1fb8c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 1fb90: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1fb94: 0a000004 beq 1fbac <== NOT EXECUTED 1fb98: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1fb9c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fba0: 11a0000d movne r0, sp <== NOT EXECUTED 1fba4: 11a0e00f movne lr, pc <== NOT EXECUTED 1fba8: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1fbac: e1a00004 mov r0, r4 <== NOT EXECUTED 1fbb0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1fbb4: 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 ); 1fbb8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1fbbc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fbc0: 11a0000d movne r0, sp <== NOT EXECUTED 1fbc4: 11a0e00f movne lr, pc <== NOT EXECUTED 1fbc8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1fbcc: eb0034de bl 2cf4c <__errno> <== NOT EXECUTED 1fbd0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1fbd4: e5803000 str r3, [r0] <== NOT EXECUTED 1fbd8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1fbdc: eafffff2 b 1fbac <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 1fbe0: eb0034d9 bl 2cf4c <__errno> <== NOT EXECUTED 1fbe4: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 1fbe8: e5803000 str r3, [r0] <== NOT EXECUTED 1fbec: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1fbf0: eaffffed b 1fbac <== 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 ); 1fbf4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1fbf8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fbfc: 0a000004 beq 1fc14 <== NOT EXECUTED 1fc00: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1fc04: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fc08: 11a0000d movne r0, sp <== NOT EXECUTED 1fc0c: 11a0e00f movne lr, pc <== NOT EXECUTED 1fc10: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 1fc14: eb0034cc bl 2cf4c <__errno> <== NOT EXECUTED 1fc18: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 1fc1c: e5803000 str r3, [r0] <== NOT EXECUTED 1fc20: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1fc24: eaffffe0 b 1fbac <== NOT EXECUTED } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 1fc28: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1fc2c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fc30: 11a0000d movne r0, sp <== NOT EXECUTED 1fc34: 11a0e00f movne lr, pc <== NOT EXECUTED 1fc38: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1fc3c: eb0034c2 bl 2cf4c <__errno> <== NOT EXECUTED 1fc40: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1fc44: e5803000 str r3, [r0] <== NOT EXECUTED 1fc48: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1fc4c: eaffffd6 b 1fbac <== NOT EXECUTED 00013c78 : { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 13c78: 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())) { 13c7c: e59f3114 ldr r3, [pc, #276] ; 13d98 { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 13c80: e59f7114 ldr r7, [pc, #276] ; 13d9c /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 13c84: e593c000 ldr ip, [r3] { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 13c88: e5972010 ldr r2, [r7, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 13c8c: e35c0003 cmp ip, #3 ; 0x3 { size_t old_size; char *new_area; size_t resize; MSBUMP(realloc_calls, 1); 13c90: e2822001 add r2, r2, #1 ; 0x1 13c94: e24dd004 sub sp, sp, #4 ; 0x4 13c98: e5872010 str r2, [r7, #16] 13c9c: e1a04000 mov r4, r0 13ca0: 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())) { 13ca4: 0a00001f beq 13d28 } /* * Continue with realloc(). */ if ( !ptr ) 13ca8: e3540000 cmp r4, #0 ; 0x0 13cac: 0a000010 beq 13cf4 return malloc( size ); if ( !size ) { 13cb0: e3560000 cmp r6, #0 ; 0x0 13cb4: 0a000012 beq 13d04 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { 13cb8: e59f00e0 ldr r0, [pc, #224] ; 13da0 13cbc: e1a01004 mov r1, r4 13cc0: e1a0200d mov r2, sp 13cc4: eb00006d bl 13e80 <_Protected_heap_Get_block_size> 13cc8: e2505000 subs r5, r0, #0 ; 0x0 13ccc: 0a000010 beq 13d14 #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 ) ) { 13cd0: e59f00c8 ldr r0, [pc, #200] ; 13da0 13cd4: e1a01004 mov r1, r4 13cd8: e1a02006 mov r2, r6 13cdc: eb000078 bl 13ec4 <_Protected_heap_Resize_block> 13ce0: e3500000 cmp r0, #0 ; 0x0 13ce4: 0a00001b beq 13d58 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 13ce8: e1a00004 mov r0, r4 13cec: e28dd004 add sp, sp, #4 ; 0x4 13cf0: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 13cf4: e1a00006 mov r0, r6 <== NOT EXECUTED 13cf8: ebffd5fd bl 94f4 <== NOT EXECUTED 13cfc: e1a04000 mov r4, r0 <== NOT EXECUTED 13d00: eafffff8 b 13ce8 <== NOT EXECUTED if ( !size ) { free( ptr ); 13d04: e1a00004 mov r0, r4 <== NOT EXECUTED 13d08: ebffd493 bl 8f5c <== NOT EXECUTED 13d0c: e1a04006 mov r4, r6 <== NOT EXECUTED 13d10: eafffff4 b 13ce8 <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 13d14: ebffdd85 bl b330 <__errno> 13d18: e3a03016 mov r3, #22 ; 0x16 13d1c: e5803000 str r3, [r0] 13d20: e1a04005 mov r4, r5 13d24: eaffffef b 13ce8 /* * 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) 13d28: e59f3074 ldr r3, [pc, #116] ; 13da4 13d2c: e5932000 ldr r2, [r3] 13d30: e3520000 cmp r2, #0 ; 0x0 13d34: 0a000001 beq 13d40 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 13d38: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 13d3c: eaffffe9 b 13ce8 <== NOT EXECUTED if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 13d40: e59f3060 ldr r3, [pc, #96] ; 13da8 13d44: e5932000 ldr r2, [r3] 13d48: e3520000 cmp r2, #0 ; 0x0 13d4c: 0affffd5 beq 13ca8 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 13d50: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 13d54: eaffffe3 b 13ce8 <== 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 ); 13d58: e1a00006 mov r0, r6 13d5c: ebffd5e4 bl 94f4 MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 13d60: e5973004 ldr r3, [r7, #4] if ( !new_area ) { 13d64: e2505000 subs r5, r0, #0 ; 0x0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, -1); /* subtract off the malloc */ 13d68: e2433001 sub r3, r3, #1 ; 0x1 13d6c: e5873004 str r3, [r7, #4] if ( !new_area ) { 13d70: 0afffff0 beq 13d38 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 13d74: e59d2000 ldr r2, [sp] 13d78: e1a01004 mov r1, r4 13d7c: e1560002 cmp r6, r2 13d80: 31a02006 movcc r2, r6 13d84: ebffdf33 bl ba58 free( ptr ); 13d88: e1a00004 mov r0, r4 13d8c: ebffd472 bl 8f5c 13d90: e1a04005 mov r4, r5 13d94: eaffffd3 b 13ce8 13d98: 000161f4 .word 0x000161f4 13d9c: 00015f3c .word 0x00015f3c 13da0: 00015ee4 .word 0x00015ee4 13da4: 0001604c .word 0x0001604c 13da8: 000160e0 .word 0x000160e0 0001fd84 : #include int rmdir( const char *pathname ) { 1fd84: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1fd88: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int rmdir( const char *pathname ) { 1fd8c: 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 ); 1fd90: e1a0200d mov r2, sp <== NOT EXECUTED 1fd94: e1a03001 mov r3, r1 <== NOT EXECUTED 1fd98: ebff9019 bl 3e04 <== NOT EXECUTED if ( result != 0 ) 1fd9c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false ); 1fda0: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 1fda4: 0a000003 beq 1fdb8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); rtems_filesystem_freenode( &loc ); 1fda8: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 1fdac: e1a00004 mov r0, r4 <== NOT EXECUTED 1fdb0: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1fdb4: 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 ); 1fdb8: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 1fdbc: e1a0100d mov r1, sp <== NOT EXECUTED 1fdc0: ebff8fe5 bl 3d5c <== NOT EXECUTED if (result != 0) { 1fdc4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1fdc8: 1a000027 bne 1fe6c <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 1fdcc: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1fdd0: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 1fdd4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fdd8: 0a00002e beq 1fe98 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 1fddc: e1a0000d mov r0, sp <== NOT EXECUTED 1fde0: e1a0e00f mov lr, pc <== NOT EXECUTED 1fde4: e12fff13 bx r3 <== NOT EXECUTED 1fde8: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 1fdec: 1a000011 bne 1fe38 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 1fdf0: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 1fdf4: e5933034 ldr r3, [r3, #52] <== NOT EXECUTED 1fdf8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fdfc: 0a000030 beq 1fec4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); 1fe00: e1a0000d mov r0, sp <== NOT EXECUTED 1fe04: e1a0e00f mov lr, pc <== NOT EXECUTED 1fe08: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1fe0c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1fe10: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &loc ); 1fe14: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1fe18: 0affffe3 beq 1fdac <== NOT EXECUTED 1fe1c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1fe20: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fe24: 0affffe0 beq 1fdac <== NOT EXECUTED 1fe28: e1a0000d mov r0, sp <== NOT EXECUTED 1fe2c: e1a0e00f mov lr, pc <== NOT EXECUTED 1fe30: e12fff13 bx r3 <== NOT EXECUTED 1fe34: eaffffdc b 1fdac <== 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 ); 1fe38: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1fe3c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fe40: 0a000004 beq 1fe58 <== NOT EXECUTED 1fe44: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1fe48: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fe4c: 11a0000d movne r0, sp <== NOT EXECUTED 1fe50: 11a0e00f movne lr, pc <== NOT EXECUTED 1fe54: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); 1fe58: eb00343b bl 2cf4c <__errno> <== NOT EXECUTED 1fe5c: e3a03014 mov r3, #20 ; 0x14 <== NOT EXECUTED 1fe60: e5803000 str r3, [r0] <== NOT EXECUTED 1fe64: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1fe68: eaffffcf b 1fdac <== NOT EXECUTED if ( result != 0 ) return -1; result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); if (result != 0) { rtems_filesystem_freenode( &loc ); 1fe6c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1fe70: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fe74: 0affffcb beq 1fda8 <== NOT EXECUTED 1fe78: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1fe7c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fe80: 0affffc8 beq 1fda8 <== NOT EXECUTED 1fe84: e1a0000d mov r0, sp <== NOT EXECUTED 1fe88: e1a0e00f mov lr, pc <== NOT EXECUTED 1fe8c: e12fff13 bx r3 <== NOT EXECUTED 1fe90: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1fe94: eaffffc4 b 1fdac <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 1fe98: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1fe9c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fea0: 0a000002 beq 1feb0 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 1fea4: e1a0000d mov r0, sp <== NOT EXECUTED 1fea8: e1a0e00f mov lr, pc <== NOT EXECUTED 1feac: e12fff13 bx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1feb0: eb003425 bl 2cf4c <__errno> <== NOT EXECUTED 1feb4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1feb8: e5803000 str r3, [r0] <== NOT EXECUTED 1febc: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 1fec0: eaffffb9 b 1fdac <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 1fec4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1fec8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fecc: 0afffff7 beq 1feb0 <== NOT EXECUTED 1fed0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1fed4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1fed8: 1afffff1 bne 1fea4 <== NOT EXECUTED 1fedc: eafffff3 b 1feb0 <== NOT EXECUTED 0000ac7c : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { ac7c: e92d41f0 push {r4, r5, r6, r7, r8, lr} ac80: e3a06000 mov r6, #0 ; 0x0 ac84: e1a08000 mov r8, r0 ac88: e1a07001 mov r7, r1 ac8c: e3a04001 mov r4, #1 ; 0x1 ac90: e1a05006 mov r5, r6 ac94: ea000002 b aca4 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { ac98: e3550020 cmp r5, #32 ; 0x20 ac9c: e1a04084 lsl r4, r4, #1 aca0: 0a000009 beq accc if (b & remote_value) aca4: e1140007 tst r4, r7 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { aca8: e2855001 add r5, r5, #1 ; 0x1 if (b & remote_value) acac: 0afffff9 beq ac98 local_value |= rtems_assoc_local_by_remote(ap, b); acb0: e1a01004 mov r1, r4 <== NOT EXECUTED acb4: e1a00008 mov r0, r8 <== NOT EXECUTED acb8: eb000005 bl acd4 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { acbc: e3550020 cmp r5, #32 ; 0x20 <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); acc0: e1866000 orr r6, r6, r0 <== NOT EXECUTED ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { acc4: e1a04084 lsl r4, r4, #1 <== NOT EXECUTED acc8: 1afffff5 bne aca4 <== NOT EXECUTED if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } accc: e1a00006 mov r0, r6 acd0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 00014aa8 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 14aa8: e59f0000 ldr r0, [pc, #0] ; 14ab0 <== NOT EXECUTED 14aac: e12fff1e bx lr <== NOT EXECUTED 14ab0: 00021510 .word 0x00021510 00010900 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 10900: e92d4010 push {r4, lr} 10904: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 10908: eb000006 bl 10928 if (nap) 1090c: e3500000 cmp r0, #0 ; 0x0 10910: 0a000001 beq 1091c return nap->name; return rtems_assoc_name_bad(local_value); } 10914: e5900000 ldr r0, [r0] 10918: e8bd8010 pop {r4, pc} nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 1091c: e1a00004 mov r0, r4 <== NOT EXECUTED } 10920: 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); 10924: ea00105f b 14aa8 <== NOT EXECUTED 0000b298 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { b298: e92d4030 push {r4, r5, lr} b29c: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) b2a0: e5900000 ldr r0, [r0] b2a4: e3500000 cmp r0, #0 ; 0x0 const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { b2a8: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) b2ac: 01a04000 moveq r4, r0 b2b0: 0a000013 beq b304 b2b4: e59f105c ldr r1, [pc, #92] ; b318 b2b8: eb0004ea bl c668 b2bc: e3500000 cmp r0, #0 ; 0x0 b2c0: 13a02000 movne r2, #0 ; 0x0 b2c4: 1a00000b bne b2f8 default_ap = ap++; for ( ; ap->name; ap++) b2c8: e594300c ldr r3, [r4, #12] <== NOT EXECUTED b2cc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; b2d0: e284300c add r3, r4, #12 ; 0xc <== NOT EXECUTED for ( ; ap->name; ap++) b2d4: 0a00000a beq b304 <== NOT EXECUTED b2d8: e1a02004 mov r2, r4 <== NOT EXECUTED b2dc: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->local_value == local_value) b2e0: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED b2e4: e1530005 cmp r3, r5 <== NOT EXECUTED b2e8: 0a000005 beq b304 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) b2ec: e5b4300c ldr r3, [r4, #12]! b2f0: e3530000 cmp r3, #0 ; 0x0 b2f4: 0a000004 beq b30c if (ap->local_value == local_value) b2f8: e5943004 ldr r3, [r4, #4] b2fc: e1530005 cmp r3, r5 b300: 1afffff9 bne b2ec return ap; return default_ap; } b304: e1a00004 mov r0, r4 b308: 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++) b30c: e1a04002 mov r4, r2 if (ap->local_value == local_value) return ap; return default_ap; } b310: e1a00004 mov r0, r4 b314: e8bd8030 pop {r4, r5, pc} b318: 00015b38 .word 0x00015b38 0000ace8 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ace8: e92d4030 push {r4, r5, lr} acec: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) acf0: e5900000 ldr r0, [r0] acf4: e3500000 cmp r0, #0 ; 0x0 const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { acf8: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) acfc: 01a04000 moveq r4, r0 ad00: 0a000013 beq ad54 ad04: e59f105c ldr r1, [pc, #92] ; ad68 ad08: eb000656 bl c668 ad0c: e3500000 cmp r0, #0 ; 0x0 ad10: 13a02000 movne r2, #0 ; 0x0 ad14: 1a00000b bne ad48 default_ap = ap++; for ( ; ap->name; ap++) ad18: e594300c ldr r3, [r4, #12] <== NOT EXECUTED ad1c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; ad20: e284300c add r3, r4, #12 ; 0xc <== NOT EXECUTED for ( ; ap->name; ap++) ad24: 0a00000a beq ad54 <== NOT EXECUTED ad28: e1a02004 mov r2, r4 <== NOT EXECUTED ad2c: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->remote_value == remote_value) ad30: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED ad34: e1530005 cmp r3, r5 <== NOT EXECUTED ad38: 0a000005 beq ad54 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ad3c: e5b4300c ldr r3, [r4, #12]! ad40: e3530000 cmp r3, #0 ; 0x0 ad44: 0a000004 beq ad5c if (ap->remote_value == remote_value) ad48: e5943008 ldr r3, [r4, #8] ad4c: e1530005 cmp r3, r5 ad50: 1afffff9 bne ad3c return ap; return default_ap; } ad54: e1a00004 mov r0, r4 ad58: 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++) ad5c: e1a04002 mov r4, r2 <== NOT EXECUTED if (ap->remote_value == remote_value) return ap; return default_ap; } ad60: e1a00004 mov r0, r4 <== NOT EXECUTED ad64: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED ad68: 00015b38 .word 0x00015b38 0000ad6c : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ad6c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ad70: eb000148 bl b298 <== NOT EXECUTED if (nap) ad74: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED return nap->remote_value; ad78: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } ad7c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 00003ee4 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 3ee4: e92d4010 push {r4, lr} if ( !time_buffer ) 3ee8: e2514000 subs r4, r1, #0 ; 0x0 3eec: 03a00009 moveq r0, #9 ; 0x9 3ef0: 08bd8010 popeq {r4, pc} return RTEMS_INVALID_ADDRESS; switch ( option ) { 3ef4: e3500004 cmp r0, #4 ; 0x4 3ef8: 979ff100 ldrls pc, [pc, r0, lsl #2] 3efc: ea000004 b 3f14 3f00: 00003f1c .word 0x00003f1c <== NOT EXECUTED 3f04: 00003f28 .word 0x00003f28 <== NOT EXECUTED 3f08: 00003f34 .word 0x00003f34 <== NOT EXECUTED 3f0c: 00003f44 .word 0x00003f44 <== NOT EXECUTED 3f10: 00003f54 .word 0x00003f54 <== NOT EXECUTED 3f14: e3a0000a mov r0, #10 ; 0xa 3f18: e8bd8010 pop {r4, pc} case RTEMS_CLOCK_GET_TOD: return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 3f1c: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 3f20: 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 ); 3f24: ea000027 b 3fc8 case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 3f28: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 3f2c: 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); 3f30: ea00000a b 3f60 case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 3f34: eb00001f bl 3fb8 3f38: e5840000 str r0, [r4] 3f3c: e3a00000 mov r0, #0 ; 0x0 3f40: 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(); 3f44: eb000013 bl 3f98 3f48: e5840000 str r0, [r4] 3f4c: e3a00000 mov r0, #0 ; 0x0 3f50: e8bd8010 pop {r4, pc} return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_TIME_VALUE: return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 3f54: e1a00004 mov r0, r4 break; } return RTEMS_INVALID_NUMBER; } 3f58: 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 ); 3f5c: ea00004c b 4094 0000a8f4 : { 0, 0, 0 }, }; static int rtems_deviceio_errno(rtems_status_code code) { a8f4: e92d4010 push {r4, lr} <== NOT EXECUTED a8f8: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t) code))) a8fc: e59f0018 ldr r0, [pc, #24] ; a91c <== NOT EXECUTED a900: eb000119 bl ad6c <== NOT EXECUTED a904: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED a908: 0a000001 beq a914 <== NOT EXECUTED { errno = rc; a90c: eb000287 bl b330 <__errno> <== NOT EXECUTED a910: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } a914: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED a918: e8bd8010 pop {r4, pc} <== NOT EXECUTED a91c: 00015234 .word 0x00015234 0000699c : int rtems_error( int error_flag, const char *printf_format, ... ) { 699c: e92d000e push {r1, r2, r3} <== NOT EXECUTED 69a0: 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); 69a4: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 69a8: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 69ac: ebffff7b bl 67a0 <== NOT EXECUTED va_end(arglist); return chars_written; } 69b0: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 69b4: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 69b8: e12fff1e bx lr <== NOT EXECUTED 000012ec : int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 12ec: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 12f0: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int rtems_filesystem_evaluate_parent( int flags, rtems_filesystem_location_info_t *pathloc ) { 12f4: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 12f8: e1a0e000 mov lr, r0 <== NOT EXECUTED rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) 12fc: 0a00001e beq 137c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 1300: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED 1304: e593c000 ldr ip, [r3] <== NOT EXECUTED 1308: e35c0000 cmp ip, #0 ; 0x0 <== NOT EXECUTED 130c: 0a000015 beq 1368 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); parent = *pathloc; 1310: e891000f ldm r1, {r0, r1, r2, r3} <== NOT EXECUTED 1314: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); 1318: e1a0100e mov r1, lr <== NOT EXECUTED 131c: e59f006c ldr r0, [pc, #108] ; 1390 <== NOT EXECUTED 1320: e1a0200d mov r2, sp <== NOT EXECUTED 1324: e1a0e00f mov lr, pc <== NOT EXECUTED 1328: e12fff1c bx ip <== NOT EXECUTED if (result != 0){ 132c: 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; 1330: e1a0400d mov r4, sp <== NOT EXECUTED result = (*pathloc->ops->evalpath_h)( "..", flags, &parent ); if (result != 0){ 1334: 13e05000 mvnne r5, #0 ; 0x0 <== NOT EXECUTED 1338: 1a000007 bne 135c <== NOT EXECUTED return -1; } rtems_filesystem_freenode( &parent ); 133c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1340: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1344: 0a000004 beq 135c <== NOT EXECUTED 1348: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 134c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1350: 11a0000d movne r0, sp <== NOT EXECUTED 1354: 11a0e00f movne lr, pc <== NOT EXECUTED 1358: 112fff13 bxne r3 <== NOT EXECUTED return result; } 135c: e1a00005 mov r0, r5 <== NOT EXECUTED 1360: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1364: 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 ); 1368: eb0027f0 bl b330 <__errno> <== NOT EXECUTED 136c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1370: e5803000 str r3, [r0] <== NOT EXECUTED 1374: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 1378: eafffff7 b 135c <== NOT EXECUTED { rtems_filesystem_location_info_t parent; int result; if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 137c: eb0027eb bl b330 <__errno> <== NOT EXECUTED 1380: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 1384: e5803000 str r3, [r0] <== NOT EXECUTED 1388: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 138c: eafffff2 b 135c <== NOT EXECUTED 1390: 00015800 .word 0x00015800 00001394 : const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 1394: e92d40f0 push {r4, r5, r6, r7, lr} /* * Verify Input parameters. */ if ( !pathname ) 1398: e2505000 subs r5, r0, #0 ; 0x0 const char *pathname, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 139c: e1a07001 mov r7, r1 13a0: e1a04002 mov r4, r2 13a4: e1a06003 mov r6, r3 /* * Verify Input parameters. */ if ( !pathname ) 13a8: 0a000043 beq 14bc rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 13ac: e3520000 cmp r2, #0 ; 0x0 13b0: 0a000046 beq 14d0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 13b4: e5d53000 ldrb r3, [r5] 13b8: e353005c cmp r3, #92 ; 0x5c 13bc: 1353002f cmpne r3, #47 ; 0x2f 13c0: 13a0e000 movne lr, #0 ; 0x0 13c4: 03a0e001 moveq lr, #1 ; 0x1 13c8: 1a000028 bne 1470 13cc: e59f3110 ldr r3, [pc, #272] ; 14e4 13d0: e593c000 ldr ip, [r3] 13d4: e28cc014 add ip, ip, #20 ; 0x14 13d8: e89c000f ldm ip, {r0, r1, r2, r3} 13dc: e884000f stm r4, {r0, r1, r2, r3} 13e0: e3a02001 mov r2, #1 ; 0x1 if ( !pathloc->ops->evalpath_h ) 13e4: e5943008 ldr r3, [r4, #8] 13e8: e5933000 ldr r3, [r3] 13ec: e3530000 cmp r3, #0 ; 0x0 13f0: 0a00002c beq 14a8 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( &pathname[i], flags, pathloc ); 13f4: e0850002 add r0, r5, r2 13f8: e1a01007 mov r1, r7 13fc: e1a02004 mov r2, r4 1400: e1a0e00f mov lr, pc 1404: e12fff13 bx r3 /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 1408: e2703001 rsbs r3, r0, #1 ; 0x1 140c: 33a03000 movcc r3, #0 ; 0x0 1410: e3560000 cmp r6, #0 ; 0x0 1414: 03a03000 moveq r3, #0 ; 0x0 1418: e3530000 cmp r3, #0 ; 0x0 141c: 08bd80f0 popeq {r4, r5, r6, r7, pc} if ( !pathloc->ops->node_type_h ){ 1420: e5942008 ldr r2, [r4, #8] 1424: e5923010 ldr r3, [r2, #16] 1428: e3530000 cmp r3, #0 ; 0x0 142c: 0a000018 beq 1494 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 1430: e1a00004 mov r0, r4 1434: e1a0e00f mov lr, pc 1438: e12fff13 bx r3 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 143c: e2400003 sub r0, r0, #3 ; 0x3 1440: e3500001 cmp r0, #1 ; 0x1 1444: 83a00000 movhi r0, #0 ; 0x0 1448: 88bd80f0 pophi {r4, r5, r6, r7, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 144c: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED 1450: e5923034 ldr r3, [r2, #52] <== NOT EXECUTED 1454: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1458: 0a00000d beq 1494 <== 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 ); 145c: e1a00004 mov r0, r4 <== NOT EXECUTED 1460: e1a01007 mov r1, r7 <== NOT EXECUTED 1464: e1a0e00f mov lr, pc <== NOT EXECUTED 1468: e12fff13 bx r3 <== NOT EXECUTED } } return result; } 146c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 1470: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1474: 0affffd4 beq 13cc <== NOT EXECUTED 1478: e59f3064 ldr r3, [pc, #100] ; 14e4 <== NOT EXECUTED 147c: e593c000 ldr ip, [r3] <== NOT EXECUTED 1480: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 1484: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1488: e884000f stm r4, {r0, r1, r2, r3} <== NOT EXECUTED 148c: e1a0200e mov r2, lr <== NOT EXECUTED 1490: eaffffd3 b 13e4 <== NOT EXECUTED if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 1494: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1498: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 149c: 11a00004 movne r0, r4 <== NOT EXECUTED 14a0: 11a0e00f movne lr, pc <== NOT EXECUTED 14a4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 14a8: eb0027a0 bl b330 <__errno> <== NOT EXECUTED 14ac: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 14b0: e5803000 str r3, [r0] <== NOT EXECUTED 14b4: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 14b8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 14bc: eb00279b bl b330 <__errno> <== NOT EXECUTED 14c0: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 14c4: e5803000 str r3, [r0] <== NOT EXECUTED 14c8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 14cc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 14d0: eb002796 bl b330 <__errno> <== NOT EXECUTED 14d4: e3a03005 mov r3, #5 ; 0x5 <== NOT EXECUTED 14d8: e5803000 str r3, [r0] <== NOT EXECUTED 14dc: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 14e0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 14e4: 00014a18 .word 0x00014a18 00008d44 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 8d44: e92d4070 push {r4, r5, r6, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 8d48: e59f60fc ldr r6, [pc, #252] ; 8e4c 8d4c: e5962000 ldr r2, [r6] 8d50: e3a03012 mov r3, #18 ; 0x12 8d54: e5823024 str r3, [r2, #36] * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 8d58: e24dd018 sub sp, sp, #24 ; 0x18 */ rtems_filesystem_umask = 022; init_fs_mount_table(); 8d5c: eb000224 bl 95f4 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 8d60: e59f30e8 ldr r3, [pc, #232] ; 8e50 8d64: e5932000 ldr r2, [r3] 8d68: e3520000 cmp r2, #0 ; 0x0 8d6c: 0a00002a beq 8e1c rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 8d70: e59f30dc ldr r3, [pc, #220] ; 8e54 8d74: e5930000 ldr r0, [r3] status = mount( 8d78: e890100e ldm r0, {r1, r2, r3, ip} 8d7c: e28d0014 add r0, sp, #20 ; 0x14 8d80: e58dc000 str ip, [sp] 8d84: eb000221 bl 9610 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 8d88: e3700001 cmn r0, #1 ; 0x1 8d8c: 0a000026 beq 8e2c * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 8d90: e59de014 ldr lr, [sp, #20] &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 8d94: 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; 8d98: e28ee018 add lr, lr, #24 ; 0x18 8d9c: e89e000f ldm lr, {r0, r1, r2, r3} 8da0: e285c014 add ip, r5, #20 ; 0x14 8da4: e88c000f stm ip, {r0, r1, r2, r3} /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 8da8: e28d4004 add r4, sp, #4 ; 0x4 8dac: 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; 8db0: e3a03000 mov r3, #0 ; 0x0 8db4: 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); 8db8: e1a02004 mov r2, r4 8dbc: e1a03001 mov r3, r1 8dc0: e59f0090 ldr r0, [pc, #144] ; 8e58 8dc4: ebffe172 bl 1394 rtems_filesystem_root = loc; 8dc8: e596c000 ldr ip, [r6] 8dcc: e894000f ldm r4, {r0, r1, r2, r3} 8dd0: e28cc014 add ip, ip, #20 ; 0x14 8dd4: e88c000f stm ip, {r0, r1, r2, r3} /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 8dd8: e3a01000 mov r1, #0 ; 0x0 8ddc: e1a02004 mov r2, r4 8de0: e1a03001 mov r3, r1 8de4: e59f006c ldr r0, [pc, #108] ; 8e58 8de8: ebffe169 bl 1394 rtems_filesystem_current = loc; 8dec: e596c000 ldr ip, [r6] 8df0: e894000f ldm r4, {r0, r1, r2, r3} 8df4: e28cc004 add ip, ip, #4 ; 0x4 8df8: 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); 8dfc: e3a01f7f mov r1, #508 ; 0x1fc 8e00: e2811003 add r1, r1, #3 ; 0x3 8e04: e59f0050 ldr r0, [pc, #80] ; 8e5c 8e08: eb0001f5 bl 95e4 if ( status != 0 ) 8e0c: e3500000 cmp r0, #0 ; 0x0 8e10: 1a000009 bne 8e3c * before device drivers are initialized. So we return via a base * filesystem image and nothing auto-mounted at this point. */ #endif } 8e14: e28dd018 add sp, sp, #24 ; 0x18 8e18: e8bd8070 pop {r4, r5, r6, pc} /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 8e1c: e3a004ab mov r0, #-1426063360 ; 0xab000000 <== NOT EXECUTED 8e20: e28008cd add r0, r0, #13434880 ; 0xcd0000 <== NOT EXECUTED 8e24: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 8e28: ebfff025 bl 4ec4 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 8e2c: e3a004ab mov r0, #-1426063360 ; 0xab000000 <== NOT EXECUTED 8e30: e28008cd add r0, r0, #13434880 ; 0xcd0000 <== NOT EXECUTED 8e34: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 8e38: ebfff021 bl 4ec4 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 8e3c: e3a004ab mov r0, #-1426063360 ; 0xab000000 <== NOT EXECUTED 8e40: e28008cd add r0, r0, #13434880 ; 0xcd0000 <== NOT EXECUTED 8e44: e2800003 add r0, r0, #3 ; 0x3 <== NOT EXECUTED 8e48: ebfff01d bl 4ec4 <== NOT EXECUTED 8e4c: 00014a18 .word 0x00014a18 8e50: 00014f60 .word 0x00014f60 8e54: 0001444c .word 0x0001444c 8e58: 000159f4 .word 0x000159f4 8e5c: 000159f8 .word 0x000159f8 000202f0 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 202f0: e5903000 ldr r3, [r0] <== NOT EXECUTED 202f4: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 202f8: e1530000 cmp r3, r0 <== NOT EXECUTED 202fc: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 20300: 03a00001 moveq r0, #1 ; 0x1 <== NOT EXECUTED 20304: e12fff1e bx lr <== NOT EXECUTED 000011b0 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 11b0: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 11b4: 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 ); 11b8: e1a0200d mov r2, sp <== NOT EXECUTED 11bc: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 11c0: 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 ); 11c4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 11c8: e1a07000 mov r7, r0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); 11cc: eb000070 bl 1394 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 11d0: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 11d4: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 11d8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, 0x00, &loc, true ); 11dc: e1a0800d mov r8, sp <== NOT EXECUTED 11e0: e1a04000 mov r4, r0 <== NOT EXECUTED the_jnode = loc.node_access; 11e4: e59d6000 ldr r6, [sp] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 11e8: 0a000013 beq 123c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 11ec: e1a0000d mov r0, sp <== NOT EXECUTED 11f0: e1a0e00f mov lr, pc <== NOT EXECUTED 11f4: e12fff13 bx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 11f8: e3500002 cmp r0, #2 ; 0x2 <== NOT EXECUTED 11fc: 03540000 cmpeq r4, #0 ; 0x0 <== NOT EXECUTED 1200: 03a04000 moveq r4, #0 ; 0x0 <== NOT EXECUTED 1204: 13a04001 movne r4, #1 ; 0x1 <== NOT EXECUTED 1208: 0a000015 beq 1264 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 120c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1210: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1214: 0a000025 beq 12b0 <== NOT EXECUTED 1218: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 121c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1220: 0a000022 beq 12b0 <== NOT EXECUTED 1224: e1a0000d mov r0, sp <== NOT EXECUTED 1228: e1a0e00f mov lr, pc <== NOT EXECUTED 122c: e12fff13 bx r3 <== NOT EXECUTED 1230: e3a0000d mov r0, #13 ; 0xd <== NOT EXECUTED rtems_filesystem_freenode( &loc ); #endif return RTEMS_SUCCESSFUL; } 1234: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 1238: 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 ); 123c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1240: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1244: 11a0000d movne r0, sp <== NOT EXECUTED 1248: 11a0e00f movne lr, pc <== NOT EXECUTED 124c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1250: eb002836 bl b330 <__errno> <== NOT EXECUTED 1254: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1258: e5803000 str r3, [r0] <== NOT EXECUTED 125c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 1260: eafffff3 b 1234 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 1264: e5857000 str r7, [r5] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 1268: e1a00007 mov r0, r7 <== NOT EXECUTED 126c: eb002d65 bl c808 <== NOT EXECUTED 1270: e5850004 str r0, [r5, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 1274: e5963050 ldr r3, [r6, #80] <== NOT EXECUTED 1278: e5853008 str r3, [r5, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 127c: e59d2008 ldr r2, [sp, #8] <== 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; 1280: e5963054 ldr r3, [r6, #84] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1284: e3520000 cmp r2, #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; 1288: e585300c str r3, [r5, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 128c: 0a000009 beq 12b8 <== NOT EXECUTED 1290: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1294: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1298: 0a000006 beq 12b8 <== NOT EXECUTED 129c: e1a0000d mov r0, sp <== NOT EXECUTED 12a0: e1a0e00f mov lr, pc <== NOT EXECUTED 12a4: e12fff13 bx r3 <== NOT EXECUTED 12a8: e1a00004 mov r0, r4 <== NOT EXECUTED 12ac: eaffffe0 b 1234 <== NOT EXECUTED 12b0: e3a0000d mov r0, #13 ; 0xd <== NOT EXECUTED 12b4: eaffffde b 1234 <== NOT EXECUTED 12b8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 12bc: eaffffdc b 1234 <== NOT EXECUTED 000062b4 : { /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 62b4: 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 ) { 62b8: e92d00f0 push {r4, r5, r6, r7} 62bc: e1a06000 mov r6, r0 62c0: e1a07002 mov r7, r2 /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 62c4: 0a00003e beq 63c4 return RTEMS_INVALID_ADDRESS; if ( !registered_major ) 62c8: e3520000 cmp r2, #0 ; 0x0 62cc: 0a00003c beq 63c4 return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 62d0: e59c3000 ldr r3, [ip] 62d4: e3530000 cmp r3, #0 ; 0x0 62d8: 0a000036 beq 63b8 return RTEMS_INVALID_ADDRESS; *registered_major = 0; 62dc: e3a03000 mov r3, #0 ; 0x0 62e0: e5873000 str r3, [r7] /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 62e4: e59f20e0 ldr r2, [pc, #224] ; 63cc 62e8: e5922000 ldr r2, [r2] 62ec: e1520006 cmp r2, r6 62f0: 93a0000a movls r0, #10 ; 0xa 62f4: 9a00002b bls 63a8 /* * Test for initialise/open being present to indicate the driver slot is * in use. */ if ( major == 0 ) { 62f8: e3560000 cmp r6, #0 ; 0x0 62fc: 1a00001d bne 6378 bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 6300: e2526001 subs r6, r2, #1 ; 0x1 6304: 0a000029 beq 63b0 6308: e1a03282 lsl r3, r2, #5 630c: e0433182 sub r3, r3, r2, lsl #3 6310: e59f20b8 ldr r2, [pc, #184] ; 63d0 6314: e5921000 ldr r1, [r2] 6318: e2433018 sub r3, r3, #24 ; 0x18 631c: e0811003 add r1, r1, r3 6320: ea000002 b 6330 6324: e2566001 subs r6, r6, #1 ; 0x1 6328: e2411018 sub r1, r1, #24 ; 0x18 632c: 0a00001f beq 63b0 if ( !_IO_Driver_address_table[major].initialization_entry && 6330: e5913000 ldr r3, [r1] 6334: e3530000 cmp r3, #0 ; 0x0 * in use. */ if ( major == 0 ) { bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 6338: e1a05001 mov r5, r1 if ( !_IO_Driver_address_table[major].initialization_entry && 633c: 1afffff8 bne 6324 6340: e5913004 ldr r3, [r1, #4] 6344: e3530000 cmp r3, #0 ; 0x0 6348: 1afffff5 bne 6324 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; 634c: e8bc000f ldm ip!, {r0, r1, r2, r3} 6350: e1a04005 mov r4, r5 6354: e8a4000f stmia r4!, {r0, r1, r2, r3} 6358: e89c0003 ldm ip, {r0, r1} 635c: e8840003 stm r4, {r0, r1} *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 6360: e3a01000 mov r1, #0 ; 0x0 6364: e1a00006 mov r0, r6 6368: 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; 636c: e5876000 str r6, [r7] return rtems_io_initialize( major, 0, NULL ); } 6370: e8bd00f0 pop {r4, r5, r6, r7} _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 6374: eaffff58 b 60dc if ( !found ) return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry || 6378: e59f2050 ldr r2, [pc, #80] ; 63d0 637c: e1a03286 lsl r3, r6, #5 6380: e5921000 ldr r1, [r2] 6384: e0433186 sub r3, r3, r6, lsl #3 6388: e7912003 ldr r2, [r1, r3] 638c: e3520000 cmp r2, #0 ; 0x0 6390: e0815003 add r5, r1, r3 6394: 1a000002 bne 63a4 6398: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 639c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 63a0: 0affffe9 beq 634c <== NOT EXECUTED _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 63a4: e3a0000c mov r0, #12 ; 0xc } 63a8: e8bd00f0 pop {r4, r5, r6, r7} 63ac: e12fff1e bx lr _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 63b0: e3a00005 mov r0, #5 ; 0x5 63b4: eafffffb b 63a8 return RTEMS_INVALID_ADDRESS; if ( !registered_major ) return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 63b8: e59c3004 ldr r3, [ip, #4] 63bc: e3530000 cmp r3, #0 ; 0x0 63c0: 1affffc5 bne 62dc _IO_Driver_address_table[major] = *driver_table; *registered_major = major; return rtems_io_initialize( major, 0, NULL ); 63c4: e3a00009 mov r0, #9 ; 0x9 63c8: eafffff6 b 63a8 63cc: 0001a0c0 .word 0x0001a0c0 63d0: 0001a0c4 .word 0x0001a0c4 000014e8 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 14e8: e92d4010 push {r4, lr} rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 14ec: e59f40b4 ldr r4, [pc, #180] ; 15a8 14f0: e5940000 ldr r0, [r4] 14f4: e3500000 cmp r0, #0 ; 0x0 * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 14f8: e24dd004 sub sp, sp, #4 ; 0x4 rtems_status_code rc; int i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 14fc: 0a00001a beq 156c { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 1500: e3a01034 mov r1, #52 ; 0x34 1504: eb001e55 bl 8e60 1508: e59f309c ldr r3, [pc, #156] ; 15ac sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 150c: 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, 1510: e5830000 str r0, [r3] 1514: e1a02000 mov r2, r0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 1518: 0a00001f beq 159c 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++) 151c: 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; 1520: e59f3088 ldr r3, [pc, #136] ; 15b0 for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 1524: 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; 1528: e5830000 str r0, [r3] for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++) 152c: 0a00000c beq 1564 1530: e2803034 add r3, r0, #52 ; 0x34 1534: e3a02001 mov r2, #1 ; 0x1 iop->data1 = iop + 1; 1538: 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++) 153c: e1520001 cmp r2, r1 iop->data1 = iop + 1; 1540: e503300c str r3, [r3, #-12] 1544: 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++) 1548: 1afffffa bne 1538 154c: e1a03202 lsl r3, r2, #4 1550: e0433102 sub r3, r3, r2, lsl #2 1554: e0833002 add r3, r3, r2 1558: e1a03103 lsl r3, r3, #2 155c: e2433034 sub r3, r3, #52 ; 0x34 1560: e0802003 add r2, r0, r3 iop->data1 = iop + 1; iop->data1 = NULL; 1564: e3a03000 mov r3, #0 ; 0x0 1568: e5823028 str r3, [r2, #40] /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 156c: e59fc040 ldr ip, [pc, #64] ; 15b4 1570: e59f0040 ldr r0, [pc, #64] ; 15b8 1574: e3a01001 mov r1, #1 ; 0x1 1578: e3a02054 mov r2, #84 ; 0x54 157c: e3a03000 mov r3, #0 ; 0x0 1580: e58dc000 str ip, [sp] 1584: eb000bee bl 4544 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 1588: e3500000 cmp r0, #0 ; 0x0 158c: 1a000004 bne 15a4 /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); } 1590: e28dd004 add sp, sp, #4 ; 0x4 1594: e8bd4010 pop {r4, lr} /* * Initialize the base file system infrastructure. */ rtems_filesystem_initialize(); 1598: ea001de9 b 8d44 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); 159c: e280001a add r0, r0, #26 ; 0x1a <== NOT EXECUTED 15a0: eb000e47 bl 4ec4 <== 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 ); 15a4: eb000e46 bl 4ec4 <== NOT EXECUTED 15a8: 00014444 .word 0x00014444 15ac: 00015ed8 .word 0x00015ed8 15b0: 00015edc .word 0x00015edc 15b4: 00015ee0 .word 0x00015ee0 15b8: 4c42494f .word 0x4c42494f 000091b0 : */ int rtems_libio_is_file_open( void *node_access ) { 91b0: 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 ); 91b4: e59f507c ldr r5, [pc, #124] ; 9238 <== NOT EXECUTED 91b8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 91bc: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_file_open( void *node_access ) { 91c0: 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 ); 91c4: e5950000 ldr r0, [r5] <== NOT EXECUTED 91c8: ebffed81 bl 47d4 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 91cc: e59f3068 ldr r3, [pc, #104] ; 923c <== NOT EXECUTED 91d0: e5930000 ldr r0, [r3] <== NOT EXECUTED 91d4: e59f3064 ldr r3, [pc, #100] ; 9240 <== NOT EXECUTED 91d8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 91dc: e5932000 ldr r2, [r3] <== NOT EXECUTED 91e0: 0a00000a beq 9210 <== NOT EXECUTED 91e4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 91e8: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 91ec: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 91f0: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 91f4: 0a000002 beq 9204 <== NOT EXECUTED /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 91f8: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 91fc: e1530004 cmp r3, r4 <== NOT EXECUTED 9200: 0a000007 beq 9224 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 9204: e1510000 cmp r1, r0 <== NOT EXECUTED 9208: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 920c: 3afffff5 bcc 91e8 <== NOT EXECUTED 9210: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 9214: e5950000 ldr r0, [r5] <== NOT EXECUTED 9218: ebffedb4 bl 48f0 <== NOT EXECUTED return result; } 921c: e1a00004 mov r0, r4 <== NOT EXECUTED 9220: 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++){ 9224: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 9228: e5950000 ldr r0, [r5] <== NOT EXECUTED 922c: ebffedaf bl 48f0 <== NOT EXECUTED return result; } 9230: e1a00004 mov r0, r4 <== NOT EXECUTED 9234: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 9238: 00015ee0 .word 0x00015ee0 923c: 00014444 .word 0x00014444 9240: 00015ed8 .word 0x00015ed8 00009244 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 9244: 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 ); 9248: e59f507c ldr r5, [pc, #124] ; 92cc <== NOT EXECUTED 924c: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 9250: e1a02001 mov r2, r1 <== NOT EXECUTED */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 9254: 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 ); 9258: e5950000 ldr r0, [r5] <== NOT EXECUTED 925c: ebffed5c bl 47d4 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 9260: e59f3068 ldr r3, [pc, #104] ; 92d0 <== NOT EXECUTED 9264: e5930000 ldr r0, [r3] <== NOT EXECUTED 9268: e59f3064 ldr r3, [pc, #100] ; 92d4 <== NOT EXECUTED 926c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 9270: e5932000 ldr r2, [r3] <== NOT EXECUTED 9274: 0a00000a beq 92a4 <== NOT EXECUTED 9278: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 927c: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 9280: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 9284: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 9288: 0a000002 beq 9298 <== 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 ) { 928c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 9290: e1530004 cmp r3, r4 <== NOT EXECUTED 9294: 0a000007 beq 92b8 <== NOT EXECUTED /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 9298: e1510000 cmp r1, r0 <== NOT EXECUTED 929c: e2822034 add r2, r2, #52 ; 0x34 <== NOT EXECUTED 92a0: 3afffff5 bcc 927c <== NOT EXECUTED 92a4: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 92a8: e5950000 ldr r0, [r5] <== NOT EXECUTED 92ac: ebffed8f bl 48f0 <== NOT EXECUTED return result; } 92b0: e1a00004 mov r0, r4 <== NOT EXECUTED 92b4: 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++){ 92b8: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 92bc: e5950000 ldr r0, [r5] <== NOT EXECUTED 92c0: ebffed8a bl 48f0 <== NOT EXECUTED return result; } 92c4: e1a00004 mov r0, r4 <== NOT EXECUTED 92c8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 92cc: 00015ee0 .word 0x00015ee0 92d0: 00014444 .word 0x00014444 92d4: 00015ed8 .word 0x00015ed8 0001f948 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 1f948: 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); 1f94c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 1f950: 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); 1f954: e1a01000 mov r1, r0 <== NOT EXECUTED 1f958: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 1f95c: eb0004f4 bl 20d34 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 1f960: e2506000 subs r6, r0, #0 ; 0x0 <== NOT EXECUTED 1f964: 1a000029 bne 1fa10 <== NOT EXECUTED /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 1f968: e59f70ec ldr r7, [pc, #236] ; 1fa5c <== NOT EXECUTED 1f96c: e59f50ec ldr r5, [pc, #236] ; 1fa60 <== NOT EXECUTED 1f970: e5973000 ldr r3, [r7] <== NOT EXECUTED 1f974: e1530005 cmp r3, r5 <== NOT EXECUTED 1f978: 0a000027 beq 1fa1c <== NOT EXECUTED return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 1f97c: e5974000 ldr r4, [r7] <== NOT EXECUTED 1f980: e1a0c005 mov ip, r5 <== NOT EXECUTED 1f984: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 1f988: e1a0e004 mov lr, r4 <== NOT EXECUTED 1f98c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 1f990: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 1f994: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 1f998: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 1f99c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 1f9a0: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1f9a4: 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; 1f9a8: e59f20b4 ldr r2, [pc, #180] ; 1fa64 <== 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*/ 1f9ac: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 1f9b0: e4843014 str r3, [r4], #20 <== NOT EXECUTED /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 1f9b4: e592c000 ldr ip, [r2] <== NOT EXECUTED 1f9b8: e28cc018 add ip, ip, #24 ; 0x18 <== NOT EXECUTED 1f9bc: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1f9c0: 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); 1f9c4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1f9c8: e1a0200d mov r2, sp <== NOT EXECUTED 1f9cc: e1a03001 mov r3, r1 <== NOT EXECUTED 1f9d0: e59f0090 ldr r0, [pc, #144] ; 1fa68 <== NOT EXECUTED 1f9d4: ebff910a bl 3e04 <== NOT EXECUTED rtems_filesystem_root = loc; 1f9d8: e597c000 ldr ip, [r7] <== NOT EXECUTED 1f9dc: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1f9e0: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 1f9e4: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED rtems_filesystem_evaluate_path("/", 0, &loc, 0); 1f9e8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 1f9ec: e1a0200d mov r2, sp <== NOT EXECUTED 1f9f0: e1a03001 mov r3, r1 <== NOT EXECUTED 1f9f4: e59f006c ldr r0, [pc, #108] ; 1fa68 <== NOT EXECUTED 1f9f8: ebff9101 bl 3e04 <== NOT EXECUTED rtems_filesystem_current = loc; 1f9fc: e597c000 ldr ip, [r7] <== NOT EXECUTED 1fa00: e89d000f ldm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1fa04: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 1fa08: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 0, &loc, 0); 1fa0c: e1a0500d mov r5, sp <== NOT EXECUTED rtems_filesystem_root = loc; rtems_filesystem_evaluate_path("/", 0, &loc, 0); rtems_filesystem_current = loc; return RTEMS_SUCCESSFUL; } 1fa10: e1a00006 mov r0, r6 <== NOT EXECUTED 1fa14: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1fa18: 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)); 1fa1c: e2800040 add r0, r0, #64 ; 0x40 <== NOT EXECUTED 1fa20: ebff92ec bl 45d8 <== NOT EXECUTED if (!tmp) 1fa24: e2508000 subs r8, r0, #0 ; 0x0 <== NOT EXECUTED 1fa28: 03a0601a moveq r6, #26 ; 0x1a <== NOT EXECUTED 1fa2c: 0afffff7 beq 1fa10 <== 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); 1fa30: e1a00006 mov r0, r6 <== NOT EXECUTED 1fa34: e1a01007 mov r1, r7 <== NOT EXECUTED 1fa38: e59f202c ldr r2, [pc, #44] ; 1fa6c <== NOT EXECUTED 1fa3c: eb0005c7 bl 21160 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 1fa40: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 1fa44: 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) { 1fa48: 0affffcb beq 1f97c <== NOT EXECUTED /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 1fa4c: e1a00008 mov r0, r8 <== NOT EXECUTED 1fa50: ebff9140 bl 3f58 <== NOT EXECUTED 1fa54: e1a06004 mov r6, r4 <== NOT EXECUTED 1fa58: eaffffec b 1fa10 <== NOT EXECUTED 1fa5c: 0003f168 .word 0x0003f168 1fa60: 000595e0 .word 0x000595e0 1fa64: 000591b0 .word 0x000591b0 1fa68: 00044080 .word 0x00044080 1fa6c: 0001f834 .word 0x0001f834 0001f898 : * 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) { 1f898: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 1f89c: e1a05000 mov r5, r0 <== NOT EXECUTED 1f8a0: 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); 1f8a4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1f8a8: e1a0200d mov r2, sp <== NOT EXECUTED 1f8ac: e1a01000 mov r1, r0 <== NOT EXECUTED 1f8b0: eb00051f bl 20d34 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 1f8b4: e2502000 subs r2, r0, #0 ; 0x0 <== NOT EXECUTED 1f8b8: 1a00000d bne 1f8f4 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 1f8bc: e59f6078 ldr r6, [pc, #120] ; 1f93c <== NOT EXECUTED 1f8c0: e5964000 ldr r4, [r6] <== NOT EXECUTED 1f8c4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 1f8c8: e5942000 ldr r2, [r4] <== NOT EXECUTED 1f8cc: e1520003 cmp r2, r3 <== NOT EXECUTED 1f8d0: 0a00000a beq 1f900 <== 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, 1f8d4: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 1f8d8: e1a00005 mov r0, r5 <== NOT EXECUTED 1f8dc: e59f1058 ldr r1, [pc, #88] ; 1f93c <== NOT EXECUTED 1f8e0: eb000670 bl 212a8 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 1f8e4: e2502000 subs r2, r0, #0 ; 0x0 <== NOT EXECUTED 1f8e8: 0a00000b beq 1f91c <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 1f8ec: e59f304c ldr r3, [pc, #76] ; 1f940 <== NOT EXECUTED 1f8f0: e5863000 str r3, [r6] <== NOT EXECUTED return sc; } 1f8f4: e1a00002 mov r0, r2 <== NOT EXECUTED 1f8f8: e28dd008 add sp, sp, #8 ; 0x8 <== NOT EXECUTED 1f8fc: 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); 1f900: e1a01006 mov r1, r6 <== NOT EXECUTED 1f904: eb000642 bl 21214 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 1f908: e2502000 subs r2, r0, #0 ; 0x0 <== NOT EXECUTED 1f90c: 1afffff8 bne 1f8f4 <== NOT EXECUTED free_user_env(tmp); 1f910: e1a00004 mov r0, r4 <== NOT EXECUTED 1f914: ebffffc6 bl 1f834 <== NOT EXECUTED 1f918: eaffffed b 1f8d4 <== 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); 1f91c: e59f2020 ldr r2, [pc, #32] ; 1f944 <== NOT EXECUTED 1f920: e59f1014 ldr r1, [pc, #20] ; 1f93c <== NOT EXECUTED 1f924: eb00060d bl 21160 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 1f928: 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; 1f92c: 059d3004 ldreq r3, [sp, #4] <== NOT EXECUTED 1f930: 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) 1f934: 1affffec bne 1f8ec <== NOT EXECUTED 1f938: eaffffed b 1f8f4 <== NOT EXECUTED 1f93c: 0003f168 .word 0x0003f168 1f940: 000595e0 .word 0x000595e0 1f944: 0001f834 .word 0x0001f834 00009170 : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 9170: e2003006 and r3, r0, #6 ; 0x6 <== NOT EXECUTED 9174: e3530006 cmp r3, #6 ; 0x6 <== NOT EXECUTED */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 9178: e1a02000 mov r2, r0 <== NOT EXECUTED uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 917c: 03a00002 moveq r0, #2 ; 0x2 <== NOT EXECUTED 9180: 0a000003 beq 9194 <== NOT EXECUTED fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 9184: e3120002 tst r2, #2 ; 0x2 <== NOT EXECUTED 9188: 01a03122 lsreq r3, r2, #2 <== NOT EXECUTED 918c: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 9190: 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 ) { 9194: e3120001 tst r2, #1 ; 0x1 <== NOT EXECUTED fcntl_flags |= O_NONBLOCK; 9198: 13800901 orrne r0, r0, #16384 ; 0x4000 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 919c: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED fcntl_flags |= O_APPEND; 91a0: 13800008 orrne r0, r0, #8 ; 0x8 <== NOT EXECUTED } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 91a4: e3120b01 tst r2, #1024 ; 0x400 <== NOT EXECUTED fcntl_flags |= O_CREAT; 91a8: 13800c02 orrne r0, r0, #512 ; 0x200 <== NOT EXECUTED } return fcntl_flags; } 91ac: e12fff1e bx lr <== NOT EXECUTED 000046c8 : * size and thus we skip updating the statistics. */ void rtems_malloc_statistics_at_free( void *pointer ) { 46c8: e92d4010 push {r4, lr} <== NOT EXECUTED 46cc: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 46d0: e1a01000 mov r1, r0 <== NOT EXECUTED size_t size; if (_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &size) ) { 46d4: e1a0200d mov r2, sp <== NOT EXECUTED 46d8: e59f0034 ldr r0, [pc, #52] ; 4714 <== NOT EXECUTED 46dc: eb0014da bl 9a4c <_Protected_heap_Get_block_size> <== NOT EXECUTED 46e0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 46e4: 0a000008 beq 470c <== NOT EXECUTED MSBUMP(lifetime_freed, size); 46e8: e59f0028 ldr r0, [pc, #40] ; 4718 <== NOT EXECUTED 46ec: e59d3000 ldr r3, [sp] <== NOT EXECUTED 46f0: e2801024 add r1, r0, #36 ; 0x24 <== NOT EXECUTED 46f4: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED 46f8: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 46fc: e0933001 adds r3, r3, r1 <== NOT EXECUTED 4700: e0a44002 adc r4, r4, r2 <== NOT EXECUTED 4704: e5803024 str r3, [r0, #36] <== NOT EXECUTED 4708: e5804028 str r4, [r0, #40] <== NOT EXECUTED } } 470c: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 4710: e8bd8010 pop {r4, pc} <== NOT EXECUTED 4714: 0005912c .word 0x0005912c 4718: 00059184 .word 0x00059184 0000471c : } void rtems_malloc_statistics_at_malloc( void *pointer ) { 471c: 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 ) 4720: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED } void rtems_malloc_statistics_at_malloc( void *pointer ) { 4724: 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 ) 4728: 0a000014 beq 4780 <== NOT EXECUTED void rtems_malloc_statistics_at_malloc( void *pointer ) { size_t actual_size = 0; 472c: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 4730: e28d2004 add r2, sp, #4 ; 0x4 <== NOT EXECUTED 4734: 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); 4738: e1a01000 mov r1, r0 <== NOT EXECUTED 473c: e1a0200d mov r2, sp <== NOT EXECUTED 4740: e59f0040 ldr r0, [pc, #64] ; 4788 <== NOT EXECUTED 4744: eb0014c0 bl 9a4c <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 4748: e59fe03c ldr lr, [pc, #60] ; 478c <== NOT EXECUTED 474c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 4750: e28e101c add r1, lr, #28 ; 0x1c <== NOT EXECUTED 4754: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED 4758: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 475c: 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); 4760: e0933001 adds r3, r3, r1 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) 4764: e59e0018 ldr r0, [lr, #24] <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 4768: e0a44002 adc r4, r4, r2 <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; 476c: e06c2003 rsb r2, ip, r3 <== NOT EXECUTED if (current_depth > s->max_depth) 4770: e1520000 cmp r2, r0 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 4774: e58e301c str r3, [lr, #28] <== NOT EXECUTED 4778: e58e4020 str r4, [lr, #32] <== NOT EXECUTED current_depth = s->lifetime_allocated - s->lifetime_freed; if (current_depth > s->max_depth) s->max_depth = current_depth; 477c: 858e2018 strhi r2, [lr, #24] <== NOT EXECUTED } 4780: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 4784: e8bd8010 pop {r4, pc} <== NOT EXECUTED 4788: 0005912c .word 0x0005912c 478c: 00059184 .word 0x00059184 00004790 : void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 4790: e59f1038 ldr r1, [pc, #56] ; 47d0 <== NOT EXECUTED 4794: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 4798: e1a03001 mov r3, r1 <== NOT EXECUTED 479c: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47a0: e2833004 add r3, r3, #4 ; 0x4 <== NOT EXECUTED 47a4: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47a8: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47ac: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47b0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47b4: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47b8: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47bc: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47c0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 47c4: e5812004 str r2, [r1, #4] <== NOT EXECUTED 47c8: e5832000 str r2, [r3] <== NOT EXECUTED } 47cc: e12fff1e bx lr <== NOT EXECUTED 47d0: 00059184 .word 0x00059184 00006978 : void rtems_panic( const char *printf_format, ... ) { 6978: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED 697c: 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); 6980: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 6984: e28d2008 add r2, sp, #8 ; 0x8 <== NOT EXECUTED 6988: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED 698c: ebffff83 bl 67a0 <== NOT EXECUTED va_end(arglist); } 6990: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 6994: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 6998: e12fff1e bx lr <== NOT EXECUTED 0002adf4 : rtems_status_code rtems_rate_monotonic_get_statistics( Objects_Id id, rtems_rate_monotonic_period_statistics *statistics ) { 2adf4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; if ( !statistics ) 2adf8: e2515000 subs r5, r1, #0 ; 0x0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_get_statistics( Objects_Id id, rtems_rate_monotonic_period_statistics *statistics ) { 2adfc: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; if ( !statistics ) 2ae00: 03a00009 moveq r0, #9 ; 0x9 <== NOT EXECUTED 2ae04: 0a000007 beq 2ae28 <== NOT EXECUTED 2ae08: e1a01000 mov r1, r0 <== NOT EXECUTED 2ae0c: e1a0200d mov r2, sp <== NOT EXECUTED 2ae10: e59f004c ldr r0, [pc, #76] ; 2ae64 <== NOT EXECUTED 2ae14: ebff7a53 bl 9768 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 2ae18: e59d6000 ldr r6, [sp] <== NOT EXECUTED 2ae1c: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 2ae20: 13a00004 movne r0, #4 ; 0x4 <== NOT EXECUTED 2ae24: 0a000001 beq 2ae30 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2ae28: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 2ae2c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *statistics = the_period->Statistics; 2ae30: e280c054 add ip, r0, #84 ; 0x54 <== NOT EXECUTED 2ae34: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 2ae38: e1a04005 mov r4, r5 <== NOT EXECUTED 2ae3c: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED 2ae40: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 2ae44: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED 2ae48: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 2ae4c: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED 2ae50: e89c0003 ldm ip, {r0, r1} <== NOT EXECUTED 2ae54: e8840003 stm r4, {r0, r1} <== NOT EXECUTED _Thread_Enable_dispatch(); 2ae58: ebff7ca0 bl a0e0 <_Thread_Enable_dispatch> <== NOT EXECUTED 2ae5c: e1a00006 mov r0, r6 <== NOT EXECUTED 2ae60: eafffff0 b 2ae28 <== NOT EXECUTED 2ae64: 000597b0 .word 0x000597b0 0002ae68 : rtems_status_code rtems_rate_monotonic_get_status( Objects_Id id, rtems_rate_monotonic_period_status *status ) { 2ae68: e92d4070 push {r4, r5, r6, lr} Objects_Locations location; Rate_monotonic_Control *the_period; if ( !status ) 2ae6c: e2515000 subs r5, r1, #0 ; 0x0 rtems_status_code rtems_rate_monotonic_get_status( Objects_Id id, rtems_rate_monotonic_period_status *status ) { 2ae70: e24dd00c sub sp, sp, #12 ; 0xc Objects_Locations location; Rate_monotonic_Control *the_period; if ( !status ) 2ae74: 03a00009 moveq r0, #9 ; 0x9 2ae78: 0a000016 beq 2aed8 2ae7c: e1a01000 mov r1, r0 2ae80: e28d2008 add r2, sp, #8 ; 0x8 2ae84: e59f0084 ldr r0, [pc, #132] ; 2af10 2ae88: ebff7a36 bl 9768 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 2ae8c: e59d3008 ldr r3, [sp, #8] 2ae90: e3530000 cmp r3, #0 ; 0x0 2ae94: e1a06000 mov r6, r0 2ae98: 13a00004 movne r0, #4 ; 0x4 2ae9c: 1a00000d bne 2aed8 case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 2aea0: e5963050 ldr r3, [r6, #80] <== NOT EXECUTED 2aea4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2aea8: 01a02003 moveq r2, r3 <== NOT EXECUTED 2aeac: 15932008 ldrne r2, [r3, #8] <== NOT EXECUTED status->state = the_period->state; 2aeb0: e5963038 ldr r3, [r6, #56] <== NOT EXECUTED if ( status->state == RATE_MONOTONIC_INACTIVE ) { 2aeb4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 2aeb8: e885000c stm r5, {r2, r3} <== NOT EXECUTED status->state = the_period->state; if ( status->state == RATE_MONOTONIC_INACTIVE ) { 2aebc: 1a000007 bne 2aee0 <== NOT EXECUTED #else status->since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; status->executed_since_last_period.tv_nsec = 0; 2aec0: e5853014 str r3, [r5, #20] <== NOT EXECUTED status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); status->state = the_period->state; if ( status->state == RATE_MONOTONIC_INACTIVE ) { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS status->since_last_period.tv_sec = 0; 2aec4: e5853008 str r3, [r5, #8] <== NOT EXECUTED status->since_last_period.tv_nsec = 0; 2aec8: e585300c str r3, [r5, #12] <== NOT EXECUTED #else status->since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; 2aecc: e5853010 str r3, [r5, #16] <== NOT EXECUTED the_period->owner->cpu_time_used - the_period->owner_executed_at_period; #endif } _Thread_Enable_dispatch(); 2aed0: ebff7c82 bl a0e0 <_Thread_Enable_dispatch> <== NOT EXECUTED 2aed4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 2aed8: e28dd00c add sp, sp, #12 ; 0xc 2aedc: e8bd8070 pop {r4, r5, r6, pc} * This lets them share one single invocation of _TOD_Get_uptime(). */ #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) struct timespec uptime; _TOD_Get_uptime( &uptime ); 2aee0: e1a0000d mov r0, sp <== NOT EXECUTED 2aee4: ebffd9dc bl 2165c <_TOD_Get_uptime> <== NOT EXECUTED #endif #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 2aee8: e2860044 add r0, r6, #68 ; 0x44 <== NOT EXECUTED 2aeec: e1a0100d mov r1, sp <== NOT EXECUTED 2aef0: e2852008 add r2, r5, #8 ; 0x8 <== NOT EXECUTED 2aef4: ebff803b bl afe8 <_Timespec_Subtract> <== NOT EXECUTED status->since_last_period = _Watchdog_Ticks_since_boot - the_period->time_at_period; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _Timespec_Subtract( 2aef8: e1a0100d mov r1, sp <== NOT EXECUTED 2aefc: e2852010 add r2, r5, #16 ; 0x10 <== NOT EXECUTED 2af00: e59f000c ldr r0, [pc, #12] ; 2af14 <== NOT EXECUTED * This lets them share one single invocation of _TOD_Get_uptime(). */ #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) struct timespec uptime; _TOD_Get_uptime( &uptime ); 2af04: e1a0400d mov r4, sp <== NOT EXECUTED status->since_last_period = _Watchdog_Ticks_since_boot - the_period->time_at_period; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _Timespec_Subtract( 2af08: ebff8036 bl afe8 <_Timespec_Subtract> <== NOT EXECUTED 2af0c: eaffffef b 2aed0 <== NOT EXECUTED 2af10: 000597b0 .word 0x000597b0 2af14: 0005936c .word 0x0005936c 00020b1c : } } void rtems_rate_monotonic_report_statistics( void ) { rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); 20b1c: e59f1004 ldr r1, [pc, #4] ; 20b28 <== NOT EXECUTED 20b20: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 20b24: eaffff71 b 208f0 <== NOT EXECUTED 20b28: 00005590 .word 0x00005590 000208f0 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 208f0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 208f4: e2516000 subs r6, r1, #0 ; 0x0 <== NOT EXECUTED */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 208f8: e24dd070 sub sp, sp, #112 ; 0x70 <== NOT EXECUTED 208fc: e1a07000 mov r7, r0 <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 20900: 0a000042 beq 20a10 <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); 20904: e59f11e4 ldr r1, [pc, #484] ; 20af0 <== NOT EXECUTED 20908: e1a0e00f mov lr, pc <== NOT EXECUTED 2090c: e12fff16 bx r6 <== NOT EXECUTED #if defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) (*print)( context, "--- CPU times are in seconds ---\n" ); 20910: e59f11dc ldr r1, [pc, #476] ; 20af4 <== NOT EXECUTED 20914: e1a00007 mov r0, r7 <== NOT EXECUTED 20918: e1a0e00f mov lr, pc <== NOT EXECUTED 2091c: e12fff16 bx r6 <== NOT EXECUTED #endif #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) (*print)( context, "--- Wall times are in seconds ---\n" ); 20920: e59f11d0 ldr r1, [pc, #464] ; 20af8 <== NOT EXECUTED 20924: e1a00007 mov r0, r7 <== NOT EXECUTED 20928: e1a0e00f mov lr, pc <== NOT EXECUTED 2092c: e12fff16 bx r6 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 20930: e59f81c4 ldr r8, [pc, #452] ; 20afc <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 20934: e59f11c4 ldr r1, [pc, #452] ; 20b00 <== NOT EXECUTED 20938: e1a00007 mov r0, r7 <== NOT EXECUTED 2093c: e1a0e00f mov lr, pc <== NOT EXECUTED 20940: e12fff16 bx r6 <== NOT EXECUTED #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS " " #endif " WALL TIME\n" ); (*print)( context, " " 20944: e1a00007 mov r0, r7 <== NOT EXECUTED 20948: e59f11b4 ldr r1, [pc, #436] ; 20b04 <== NOT EXECUTED 2094c: e1a0e00f mov lr, pc <== NOT EXECUTED 20950: e12fff16 bx r6 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 20954: e5985008 ldr r5, [r8, #8] <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; 20958: e598300c ldr r3, [r8, #12] <== NOT EXECUTED 2095c: e1550003 cmp r5, r3 <== NOT EXECUTED 20960: 8a00002a bhi 20a10 <== NOT EXECUTED _Timespec_Divide_by_integer( &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 20964: e59fa19c ldr sl, [pc, #412] ; 20b08 <== NOT EXECUTED 20968: e28d9010 add r9, sp, #16 ; 0x10 <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 2096c: e28db060 add fp, sp, #96 ; 0x60 <== NOT EXECUTED 20970: ea000003 b 20984 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 20974: e598300c ldr r3, [r8, #12] <== NOT EXECUTED id++ ) { 20978: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 2097c: e1530005 cmp r3, r5 <== NOT EXECUTED 20980: 3a000022 bcc 20a10 <== NOT EXECUTED id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 20984: e1a00005 mov r0, r5 <== NOT EXECUTED 20988: e1a01009 mov r1, r9 <== NOT EXECUTED 2098c: eb002918 bl 2adf4 <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) 20990: e2504000 subs r4, r0, #0 ; 0x0 <== NOT EXECUTED 20994: 1afffff6 bne 20974 <== NOT EXECUTED continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 20998: e28d1048 add r1, sp, #72 ; 0x48 <== NOT EXECUTED 2099c: e1a00005 mov r0, r5 <== NOT EXECUTED 209a0: eb002930 bl 2ae68 <== NOT EXECUTED continue; #endif name[ 0 ] = '\0'; if ( the_status.owner ) { 209a4: e59d0048 ldr r0, [sp, #72] <== NOT EXECUTED 209a8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif name[ 0 ] = '\0'; 209ac: e5cd406b strb r4, [sp, #107] <== NOT EXECUTED if ( the_status.owner ) { 209b0: 1a00004a bne 20ae0 <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, 209b4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 209b8: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 209bc: e58d3000 str r3, [sp] <== NOT EXECUTED 209c0: e58d2004 str r2, [sp, #4] <== NOT EXECUTED 209c4: e28d306b add r3, sp, #107 ; 0x6b <== NOT EXECUTED 209c8: e1a02005 mov r2, r5 <== NOT EXECUTED 209cc: e59f1138 ldr r1, [pc, #312] ; 20b0c <== NOT EXECUTED 209d0: e1a00007 mov r0, r7 <== NOT EXECUTED 209d4: e1a0e00f mov lr, pc <== NOT EXECUTED 209d8: e12fff16 bx r6 <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 209dc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 209e0: e2531000 subs r1, r3, #0 ; 0x0 <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 209e4: e28d0028 add r0, sp, #40 ; 0x28 <== NOT EXECUTED 209e8: e1a0200b mov r2, fp <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 209ec: 1a000009 bne 20a18 <== NOT EXECUTED (*print)( context, "\n" ); 209f0: e1a00007 mov r0, r7 <== NOT EXECUTED 209f4: e59f1114 ldr r1, [pc, #276] ; 20b10 <== NOT EXECUTED 209f8: e1a0e00f mov lr, pc <== NOT EXECUTED 209fc: e12fff16 bx r6 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 20a00: e598300c ldr r3, [r8, #12] <== NOT EXECUTED id++ ) { 20a04: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 20a08: e1530005 cmp r3, r5 <== NOT EXECUTED 20a0c: 2affffdc bcs 20984 <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 20a10: e28dd070 add sp, sp, #112 ; 0x70 <== NOT EXECUTED 20a14: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 20a18: eb0005c6 bl 22138 <_Timespec_Divide_by_integer> <== NOT EXECUTED &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 20a1c: e59d1024 ldr r1, [sp, #36] <== NOT EXECUTED 20a20: e0c2c19a smull ip, r2, sl, r1 <== NOT EXECUTED 20a24: e59d0064 ldr r0, [sp, #100] <== NOT EXECUTED 20a28: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED 20a2c: e0cce09a smull lr, ip, sl, r0 <== NOT EXECUTED 20a30: e0c4e39a smull lr, r4, sl, r3 <== NOT EXECUTED 20a34: e1a01fc1 asr r1, r1, #31 <== NOT EXECUTED 20a38: e0611342 rsb r1, r1, r2, asr #6 <== NOT EXECUTED 20a3c: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED 20a40: e1a00fc0 asr r0, r0, #31 <== NOT EXECUTED 20a44: e58d2000 str r2, [sp] <== NOT EXECUTED 20a48: e59d2060 ldr r2, [sp, #96] <== NOT EXECUTED 20a4c: e060034c rsb r0, r0, ip, asr #6 <== NOT EXECUTED 20a50: e1a03fc3 asr r3, r3, #31 <== NOT EXECUTED 20a54: e0633344 rsb r3, r3, r4, asr #6 <== NOT EXECUTED 20a58: e98d0006 stmib sp, {r1, r2} <== NOT EXECUTED 20a5c: e58d000c str r0, [sp, #12] <== NOT EXECUTED 20a60: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED 20a64: e59f10a8 ldr r1, [pc, #168] ; 20b14 <== NOT EXECUTED 20a68: e1a00007 mov r0, r7 <== NOT EXECUTED 20a6c: e1a0e00f mov lr, pc <== NOT EXECUTED 20a70: e12fff16 bx r6 <== NOT EXECUTED * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 20a74: e28d0040 add r0, sp, #64 ; 0x40 <== NOT EXECUTED 20a78: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED 20a7c: e1a0200b mov r2, fp <== NOT EXECUTED 20a80: eb0005ac bl 22138 <_Timespec_Divide_by_integer> <== NOT EXECUTED &the_stats.total_wall_time, the_stats.count, &wall_average ); (*print)( context, 20a84: e59d103c ldr r1, [sp, #60] <== NOT EXECUTED 20a88: e0c2c19a smull ip, r2, sl, r1 <== NOT EXECUTED 20a8c: e59d0064 ldr r0, [sp, #100] <== NOT EXECUTED 20a90: e59d3034 ldr r3, [sp, #52] <== NOT EXECUTED 20a94: e0cce09a smull lr, ip, sl, r0 <== NOT EXECUTED 20a98: e0c4e39a smull lr, r4, sl, r3 <== NOT EXECUTED 20a9c: e1a01fc1 asr r1, r1, #31 <== NOT EXECUTED 20aa0: e0611342 rsb r1, r1, r2, asr #6 <== NOT EXECUTED 20aa4: e59d2038 ldr r2, [sp, #56] <== NOT EXECUTED 20aa8: e1a00fc0 asr r0, r0, #31 <== NOT EXECUTED 20aac: e58d2000 str r2, [sp] <== NOT EXECUTED 20ab0: e59d2060 ldr r2, [sp, #96] <== NOT EXECUTED 20ab4: e060034c rsb r0, r0, ip, asr #6 <== NOT EXECUTED 20ab8: e1a03fc3 asr r3, r3, #31 <== NOT EXECUTED 20abc: e98d0006 stmib sp, {r1, r2} <== NOT EXECUTED 20ac0: e58d000c str r0, [sp, #12] <== NOT EXECUTED 20ac4: e0633344 rsb r3, r3, r4, asr #6 <== NOT EXECUTED 20ac8: e59d2030 ldr r2, [sp, #48] <== NOT EXECUTED 20acc: e1a00007 mov r0, r7 <== NOT EXECUTED 20ad0: e59f1040 ldr r1, [pc, #64] ; 20b18 <== NOT EXECUTED 20ad4: e1a0e00f mov lr, pc <== NOT EXECUTED 20ad8: e12fff16 bx r6 <== NOT EXECUTED 20adc: eaffffa4 b 20974 <== NOT EXECUTED #endif name[ 0 ] = '\0'; if ( the_status.owner ) { rtems_object_get_name( the_status.owner, sizeof(name), name ); 20ae0: e28d206b add r2, sp, #107 ; 0x6b <== NOT EXECUTED 20ae4: e3a01005 mov r1, #5 ; 0x5 <== NOT EXECUTED 20ae8: ebff9c4d bl 7c24 <== NOT EXECUTED 20aec: eaffffb0 b 209b4 <== NOT EXECUTED 20af0: 00044084 .word 0x00044084 20af4: 000440a4 .word 0x000440a4 20af8: 000440c8 .word 0x000440c8 20afc: 000597b0 .word 0x000597b0 20b00: 000440ec .word 0x000440ec 20b04: 00044138 .word 0x00044138 20b08: 10624dd3 .word 0x10624dd3 20b0c: 00044184 .word 0x00044184 20b10: 00045574 .word 0x00045574 20b14: 0004419c .word 0x0004419c 20b18: 000441bc .word 0x000441bc 00020b2c : 20b2c: e59f3040 ldr r3, [pc, #64] ; 20b74 <== NOT EXECUTED 20b30: e5932000 ldr r2, [r3] <== NOT EXECUTED 20b34: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { 20b38: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 20b3c: e5832000 str r2, [r3] <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 20b40: e59f5030 ldr r5, [pc, #48] ; 20b78 <== NOT EXECUTED 20b44: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; 20b48: e595300c ldr r3, [r5, #12] <== NOT EXECUTED 20b4c: e1540003 cmp r4, r3 <== NOT EXECUTED 20b50: 8a000005 bhi 20b6c <== NOT EXECUTED id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); 20b54: e1a00004 mov r0, r4 <== NOT EXECUTED 20b58: eb000007 bl 20b7c <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 20b5c: e595300c ldr r3, [r5, #12] <== NOT EXECUTED id++ ) { 20b60: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; 20b64: e1530004 cmp r3, r4 <== NOT EXECUTED 20b68: 2afffff9 bcs 20b54 <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } 20b6c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); 20b70: eaffa55a b a0e0 <_Thread_Enable_dispatch> <== NOT EXECUTED 20b74: 000592ac .word 0x000592ac 20b78: 000597b0 .word 0x000597b0 00020b7c : */ rtems_status_code rtems_rate_monotonic_reset_statistics( Objects_Id id ) { 20b7c: e92d4010 push {r4, lr} <== NOT EXECUTED 20b80: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 20b84: e1a01000 mov r1, r0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 20b88: e1a0200d mov r2, sp <== NOT EXECUTED 20b8c: e59f005c ldr r0, [pc, #92] ; 20bf0 <== NOT EXECUTED 20b90: ebffa2f4 bl 9768 <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 20b94: e59d4000 ldr r4, [sp] <== NOT EXECUTED 20b98: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 20b9c: 13a00004 movne r0, #4 ; 0x4 <== NOT EXECUTED 20ba0: 1a000010 bne 20be8 <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 20ba4: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED 20ba8: e5803078 str r3, [r0, #120] <== NOT EXECUTED 20bac: e5804054 str r4, [r0, #84] <== NOT EXECUTED 20bb0: e5804058 str r4, [r0, #88] <== NOT EXECUTED 20bb4: e5804064 str r4, [r0, #100] <== NOT EXECUTED 20bb8: e5804068 str r4, [r0, #104] <== NOT EXECUTED 20bbc: e580406c str r4, [r0, #108] <== NOT EXECUTED 20bc0: e5804070 str r4, [r0, #112] <== NOT EXECUTED 20bc4: e580407c str r4, [r0, #124] <== NOT EXECUTED 20bc8: e5804080 str r4, [r0, #128] <== NOT EXECUTED 20bcc: e5804084 str r4, [r0, #132] <== NOT EXECUTED 20bd0: e5804088 str r4, [r0, #136] <== NOT EXECUTED 20bd4: e580305c str r3, [r0, #92] <== NOT EXECUTED 20bd8: e5803060 str r3, [r0, #96] <== NOT EXECUTED 20bdc: e5803074 str r3, [r0, #116] <== NOT EXECUTED _Thread_Enable_dispatch(); 20be0: ebffa53e bl a0e0 <_Thread_Enable_dispatch> <== NOT EXECUTED 20be4: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 20be8: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 20bec: e8bd8010 pop {r4, pc} <== NOT EXECUTED 20bf0: 000597b0 .word 0x000597b0 000110a4 : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 110a4: 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 ) 110a8: e2517000 subs r7, r1, #0 ; 0x0 rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 110ac: e1a04000 mov r4, r0 110b0: e24dd008 sub sp, sp, #8 ; 0x8 110b4: 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 ) 110b8: 03a04009 moveq r4, #9 ; 0x9 110bc: 0a000020 beq 11144 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 110c0: e59f80a0 ldr r8, [pc, #160] ; 11168 110c4: e5980000 ldr r0, [r8] 110c8: eb000902 bl 134d8 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 110cc: e1a01004 mov r1, r4 110d0: e59f0094 ldr r0, [pc, #148] ; 1116c 110d4: e1a0200d mov r2, sp 110d8: eb000fcf bl 1501c <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 110dc: e59d4000 ldr r4, [sp] 110e0: e3540000 cmp r4, #0 ; 0x0 110e4: e1a05000 mov r5, r0 110e8: 1a000018 bne 11150 case OBJECTS_LOCAL: heap_status = _Heap_Extend( 110ec: e1a01007 mov r1, r7 110f0: e1a02006 mov r2, r6 110f4: e2800068 add r0, r0, #104 ; 0x68 110f8: e28d3004 add r3, sp, #4 ; 0x4 110fc: eb000c14 bl 14154 <_Heap_Extend> starting_address, length, &amount_extended ); switch ( heap_status ) { 11100: e3500001 cmp r0, #1 ; 0x1 11104: 03a04009 moveq r4, #9 ; 0x9 11108: 0a00000b beq 1113c 1110c: 2a000007 bcs 11130 case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 11110: e59d1004 ldr r1, [sp, #4] 11114: e5952054 ldr r2, [r5, #84] the_region->maximum_segment_size += amount_extended; 11118: e595305c ldr r3, [r5, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 1111c: e0822001 add r2, r2, r1 the_region->maximum_segment_size += amount_extended; 11120: e0833001 add r3, r3, r1 11124: e585305c str r3, [r5, #92] &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 11128: e5852054 str r2, [r5, #84] 1112c: ea000002 b 1113c starting_address, length, &amount_extended ); switch ( heap_status ) { 11130: e3500002 cmp r0, #2 ; 0x2 11134: 0a000009 beq 11160 case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 11138: e3a04019 mov r4, #25 ; 0x19 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 1113c: e5980000 ldr r0, [r8] 11140: eb000900 bl 13548 <_API_Mutex_Unlock> return return_status; } 11144: e1a00004 mov r0, r4 11148: e28dd008 add sp, sp, #8 ; 0x8 1114c: 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 ) { 11150: e3540001 cmp r4, #1 ; 0x1 11154: 03a04004 moveq r4, #4 ; 0x4 11158: 1afffff6 bne 11138 1115c: eafffff6 b 1113c switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; break; 11160: e3a04018 mov r4, #24 ; 0x18 11164: eafffff4 b 1113c 11168: 0003143c .word 0x0003143c 1116c: 00031214 .word 0x00031214 000111f4 : rtems_status_code rtems_region_get_information( Objects_Id id, Heap_Information_block *the_info ) { 111f4: e92d4070 push {r4, r5, r6, lr} Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; if ( !the_info ) 111f8: e2515000 subs r5, r1, #0 ; 0x0 rtems_status_code rtems_region_get_information( Objects_Id id, Heap_Information_block *the_info ) { 111fc: e1a04000 mov r4, r0 11200: e24dd004 sub sp, sp, #4 ; 0x4 Objects_Locations location; rtems_status_code return_status = RTEMS_INTERNAL_ERROR; register Region_Control *the_region; if ( !the_info ) 11204: 03a04009 moveq r4, #9 ; 0x9 11208: 0a00000f beq 1124c return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 1120c: e59f6060 ldr r6, [pc, #96] ; 11274 11210: e5960000 ldr r0, [r6] 11214: eb0008af bl 134d8 <_API_Mutex_Lock> 11218: e1a01004 mov r1, r4 1121c: e59f0054 ldr r0, [pc, #84] ; 11278 11220: e1a0200d mov r2, sp 11224: eb000f7c bl 1501c <_Objects_Get_no_protection> 11228: e1a03000 mov r3, r0 the_region = _Region_Get( id, &location ); switch ( location ) { 1122c: e59d0000 ldr r0, [sp] 11230: e3500000 cmp r0, #0 ; 0x0 11234: 0a000007 beq 11258 11238: e3500001 cmp r0, #1 ; 0x1 1123c: 03a04004 moveq r4, #4 ; 0x4 11240: 13a04019 movne r4, #25 ; 0x19 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 11244: e5960000 ldr r0, [r6] 11248: eb0008be bl 13548 <_API_Mutex_Unlock> return return_status; } 1124c: e1a00004 mov r0, r4 11250: e28dd004 add sp, sp, #4 ; 0x4 11254: e8bd8070 pop {r4, r5, r6, pc} the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Heap_Get_information( &the_region->Memory, the_info ) != 11258: e2830068 add r0, r3, #104 ; 0x68 1125c: e1a01005 mov r1, r5 11260: eb000c87 bl 14484 <_Heap_Get_information> 11264: e3500000 cmp r0, #0 ; 0x0 11268: 13a04009 movne r4, #9 ; 0x9 1126c: 03a04000 moveq r4, #0 ; 0x0 11270: eafffff3 b 11244 11274: 0003143c .word 0x0003143c <== NOT EXECUTED 11278: 1214 .short 0x1214 <== NOT EXECUTED 1127a: 03 .byte 0x03 <== NOT EXECUTED ... 0001148c : Objects_Id id, void *segment, size_t size, size_t *old_size ) { 1148c: 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 ) 11490: e253a000 subs sl, r3, #0 ; 0x0 Objects_Id id, void *segment, size_t size, size_t *old_size ) { 11494: e24dd010 sub sp, sp, #16 ; 0x10 11498: e1a04000 mov r4, r0 1149c: e1a05001 mov r5, r1 114a0: 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 ) 114a4: 0a000028 beq 1154c return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 114a8: e59f70b4 ldr r7, [pc, #180] ; 11564 114ac: e5970000 ldr r0, [r7] 114b0: eb000808 bl 134d8 <_API_Mutex_Lock> 114b4: e1a01004 mov r1, r4 114b8: e59f00a8 ldr r0, [pc, #168] ; 11568 114bc: e28d2008 add r2, sp, #8 ; 0x8 114c0: eb000ed5 bl 1501c <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 114c4: e59d3008 ldr r3, [sp, #8] 114c8: e3530000 cmp r3, #0 ; 0x0 114cc: e1a08000 mov r8, r0 114d0: 0a000007 beq 114f4 114d4: e3530001 cmp r3, #1 ; 0x1 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 114d8: e5970000 ldr r0, [r7] return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 114dc: 03a04004 moveq r4, #4 ; 0x4 114e0: 13a04019 movne r4, #25 ; 0x19 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 114e4: eb000817 bl 13548 <_API_Mutex_Unlock> return return_status; } 114e8: e1a00004 mov r0, r4 114ec: e28dd010 add sp, sp, #16 ; 0x10 114f0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 114f4: e1a01005 mov r1, r5 114f8: e28d3004 add r3, sp, #4 ; 0x4 114fc: e28dc00c add ip, sp, #12 ; 0xc 11500: e1a02006 mov r2, r6 11504: e2800068 add r0, r0, #104 ; 0x68 11508: e58dc000 str ip, [sp] 1150c: eb000c9b bl 14780 <_Heap_Resize_block> segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 11510: e59d3004 ldr r3, [sp, #4] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 11514: e2505000 subs r5, r0, #0 ; 0x0 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 11518: e58a3000 str r3, [sl] _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL && avail_size > 0 ) 1151c: 1a000005 bne 11538 11520: e59d400c ldr r4, [sp, #12] <== NOT EXECUTED 11524: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 11528: 1a000009 bne 11554 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); 1152c: e5970000 ldr r0, [r7] <== NOT EXECUTED 11530: eb000804 bl 13548 <_API_Mutex_Unlock> <== NOT EXECUTED 11534: eaffffeb b 114e8 <== NOT EXECUTED 11538: e5970000 ldr r0, [r7] 1153c: eb000801 bl 13548 <_API_Mutex_Unlock> return 11540: e3550001 cmp r5, #1 ; 0x1 11544: 03a0400d moveq r4, #13 ; 0xd 11548: 0affffe6 beq 114e8 return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 1154c: e3a04009 mov r4, #9 ; 0x9 11550: eaffffe4 b 114e8 *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 */ 11554: e1a00008 mov r0, r8 <== NOT EXECUTED 11558: eb001efe bl 19158 <_Region_Process_queue> <== NOT EXECUTED 1155c: e1a04005 mov r4, r5 <== NOT EXECUTED 11560: eaffffe0 b 114e8 <== NOT EXECUTED 11564: 0003143c .word 0x0003143c 11568: 00031214 .word 0x00031214 00004544 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 4544: 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 ) ) 4548: e250a000 subs sl, r0, #0 ; 0x0 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 454c: e24dd018 sub sp, sp, #24 ; 0x18 4550: e1a06001 mov r6, r1 4554: e1a04002 mov r4, r2 4558: 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 ) ) 455c: 02800003 addeq r0, r0, #3 ; 0x3 4560: 0a000037 beq 4644 return RTEMS_INVALID_NAME; if ( !id ) 4564: e59d3038 ldr r3, [sp, #56] 4568: e3530000 cmp r3, #0 ; 0x0 456c: 03a00009 moveq r0, #9 ; 0x9 4570: 0a000033 beq 4644 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 4574: e21230c0 ands r3, r2, #192 ; 0xc0 4578: 02025030 andeq r5, r2, #48 ; 0x30 457c: 1a000032 bne 464c 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 ) ) 4580: e3550000 cmp r5, #0 ; 0x0 4584: 0a000002 beq 4594 4588: e3560001 cmp r6, #1 ; 0x1 458c: 83a0000a movhi r0, #10 ; 0xa 4590: 8a00002b bhi 4644 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4594: e59f218c ldr r2, [pc, #396] ; 4728 4598: e5923000 ldr r3, [r2] 459c: e2833001 add r3, r3, #1 ; 0x1 45a0: 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 ); 45a4: e59f9180 ldr r9, [pc, #384] ; 472c 45a8: e1a00009 mov r0, r9 45ac: eb000511 bl 59f8 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 45b0: e2507000 subs r7, r0, #0 ; 0x0 45b4: 0a000048 beq 46dc * 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 ) ) { 45b8: e3550000 cmp r5, #0 ; 0x0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 45bc: 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 ) ) { 45c0: 0a00002e beq 4680 CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 45c4: e3140040 tst r4, #64 ; 0x40 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 45c8: 13a03002 movne r3, #2 ; 0x2 45cc: 158d3008 strne r3, [sp, #8] */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 45d0: 1a000007 bne 45f4 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 45d4: e3140080 tst r4, #128 ; 0x80 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 45d8: 13a03003 movne r3, #3 ; 0x3 45dc: 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 ) ) 45e0: 1a000003 bne 45f4 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; else if ( _Attributes_Is_priority( attribute_set ) ) 45e4: e2143004 ands r3, r4, #4 ; 0x4 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; 45e8: 13a03001 movne r3, #1 ; 0x1 45ec: 158d3008 strne r3, [sp, #8] else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; 45f0: 058d3008 streq r3, [sp, #8] if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 45f4: 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; 45f8: 13a03002 movne r3, #2 ; 0x2 the_mutex_attributes.only_owner_release = FALSE; 45fc: 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; 4600: 158d3000 strne r3, [sp] the_mutex_attributes.only_owner_release = FALSE; 4604: 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 ) ) { 4608: 0a000036 beq 46e8 the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; mutex_status = _CORE_mutex_Initialize( 460c: e3560001 cmp r6, #1 ; 0x1 4610: 13a02000 movne r2, #0 ; 0x0 4614: 03a02001 moveq r2, #1 ; 0x1 4618: e2870014 add r0, r7, #20 ; 0x14 461c: 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; 4620: e58d800c str r8, [sp, #12] mutex_status = _CORE_mutex_Initialize( 4624: eb000308 bl 524c <_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 ) { 4628: e3500006 cmp r0, #6 ; 0x6 462c: 1a000020 bne 46b4 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 4630: e59f00f4 ldr r0, [pc, #244] ; 472c <== NOT EXECUTED 4634: e1a01007 mov r1, r7 <== NOT EXECUTED 4638: eb0005db bl 5dac <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 463c: eb000879 bl 6828 <_Thread_Enable_dispatch> <== NOT EXECUTED 4640: e3a00013 mov r0, #19 ; 0x13 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4644: e28dd018 add sp, sp, #24 ; 0x18 4648: 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); 464c: 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 ) || 4650: e3550010 cmp r5, #16 ; 0x10 4654: 0a000003 beq 4668 4658: e3550020 cmp r5, #32 ; 0x20 465c: 0a000001 beq 4668 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4660: e3a0000b mov r0, #11 ; 0xb 4664: eafffff6 b 4644 #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 4668: e3140004 tst r4, #4 ; 0x4 466c: 0afffffb beq 4660 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 4670: e35300c0 cmp r3, #192 ; 0xc0 4674: 1affffc1 bne 4580 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4678: e3a0000b mov r0, #11 ; 0xb 467c: eafffff0 b 4644 _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) 4680: e3140004 tst r4, #4 ; 0x4 the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 4684: 13a03001 movne r3, #1 ; 0x1 /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 4688: 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; 468c: 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( 4690: e1a02006 mov r2, r6 /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 4694: 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( 4698: e2870014 add r0, r7, #20 ; 0x14 469c: 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; 46a0: 058d5014 streq r5, [sp, #20] /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 46a4: 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; 46a8: e58dc00c str ip, [sp, #12] /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 46ac: e58dc000 str ip, [sp] the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 46b0: eb0003b9 bl 559c <_CORE_semaphore_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46b4: e5971008 ldr r1, [r7, #8] 46b8: e599201c ldr r2, [r9, #28] 46bc: e1a03801 lsl r3, r1, #16 46c0: e7827723 str r7, [r2, r3, lsr #14] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 46c4: e59d3038 ldr r3, [sp, #56] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 46c8: e587a00c str sl, [r7, #12] 46cc: e5831000 str r1, [r3] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 46d0: eb000854 bl 6828 <_Thread_Enable_dispatch> 46d4: e3a00000 mov r0, #0 ; 0x0 46d8: eaffffd9 b 4644 _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 46dc: eb000851 bl 6828 <_Thread_Enable_dispatch> 46e0: e3a00005 mov r0, #5 ; 0x5 46e4: eaffffd6 b 4644 if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 46e8: 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; 46ec: e3a03000 mov r3, #0 ; 0x0 46f0: e58d3000 str r3, [sp] switch ( the_mutex_attributes.discipline ) { 46f4: e3520003 cmp r2, #3 ; 0x3 46f8: 979ff102 ldrls pc, [pc, r2, lsl #2] 46fc: eaffffc2 b 460c <== NOT EXECUTED 4700: 0000471c .word 0x0000471c <== NOT EXECUTED 4704: 0000471c .word 0x0000471c <== NOT EXECUTED 4708: 00004710 .word 0x00004710 <== NOT EXECUTED 470c: 00004710 .word 0x00004710 <== 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; 4710: e3a03001 mov r3, #1 ; 0x1 4714: e5cd3004 strb r3, [sp, #4] 4718: eaffffbb b 460c 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; 471c: e3a03000 mov r3, #0 ; 0x0 4720: e5cd3004 strb r3, [sp, #4] 4724: eaffffb8 b 460c 4728: 0001604c .word 0x0001604c 472c: 00015f74 .word 0x00015f74 00020c88 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 20c88: e52de004 push {lr} ; (str lr, [sp, #-4]!) 20c8c: e24dd004 sub sp, sp, #4 ; 0x4 20c90: e1a01000 mov r1, r0 20c94: e1a0200d mov r2, sp 20c98: e59f004c ldr r0, [pc, #76] ; 20cec 20c9c: ebffa2b1 bl 9768 <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 20ca0: e59d1000 ldr r1, [sp] 20ca4: e3510000 cmp r1, #0 ; 0x0 20ca8: 13a00004 movne r0, #4 ; 0x4 20cac: 1a000008 bne 20cd4 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 20cb0: e5903010 ldr r3, [r0, #16] 20cb4: e2133030 ands r3, r3, #48 ; 0x30 20cb8: 1a000007 bne 20cdc &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 20cbc: e2800014 add r0, r0, #20 ; 0x14 <== NOT EXECUTED 20cc0: e1a01003 mov r1, r3 <== NOT EXECUTED 20cc4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 20cc8: ebff9fe2 bl 8c58 <_CORE_semaphore_Flush> <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 20ccc: ebffa503 bl a0e0 <_Thread_Enable_dispatch> 20cd0: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 20cd4: e28dd004 add sp, sp, #4 ; 0x4 20cd8: 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( 20cdc: e2800014 add r0, r0, #20 ; 0x14 20ce0: e3a02001 mov r2, #1 ; 0x1 20ce4: ebff9f07 bl 8908 <_CORE_mutex_Flush> 20ce8: eafffff7 b 20ccc 20cec: 000591c8 .word 0x000591c8 00013c3c : */ void rtems_shutdown_executive( uint32_t result ) { 13c3c: e52de004 push {lr} ; (str lr, [sp, #-4]!) if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 13c40: e59f2028 ldr r2, [pc, #40] ; 13c70 13c44: e5923000 ldr r3, [r2] 13c48: e3530004 cmp r3, #4 ; 0x4 */ void rtems_shutdown_executive( uint32_t result ) { 13c4c: e24dd030 sub sp, sp, #48 ; 0x30 if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 13c50: 0a000004 beq 13c68 13c54: 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 ); 13c58: e1a0000d mov r0, sp 13c5c: e59f1010 ldr r1, [pc, #16] ; 13c74 13c60: e5823000 str r3, [r2] 13c64: ebffd067 bl 7e08 <_CPU_Context_switch> _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } } 13c68: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED 13c6c: e8bd8000 pop {pc} <== NOT EXECUTED 13c70: 000161f4 .word 0x000161f4 13c74: 0001601c .word 0x0001601c 00002b64 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2b64: e1a0c00d mov ip, sp <== NOT EXECUTED 2b68: e92dd830 push {r4, r5, fp, ip, lr, pc} <== NOT EXECUTED Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 2b6c: e59f407c ldr r4, [pc, #124] ; 2bf0 <== NOT EXECUTED 2b70: e5943000 ldr r3, [r4] <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2b74: e59300c8 ldr r0, [r3, #200] <== NOT EXECUTED /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 2b78: e24cb004 sub fp, ip, #4 ; 0x4 <== NOT EXECUTED ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2b7c: e15b0000 cmp fp, r0 <== NOT EXECUTED 2b80: 33a05000 movcc r5, #0 ; 0x0 <== NOT EXECUTED 2b84: 3a000004 bcc 2b9c <== NOT EXECUTED 2b88: e59330c4 ldr r3, [r3, #196] <== NOT EXECUTED 2b8c: e0803003 add r3, r0, r3 <== NOT EXECUTED 2b90: e15b0003 cmp fp, r3 <== NOT EXECUTED 2b94: 83a05000 movhi r5, #0 ; 0x0 <== NOT EXECUTED 2b98: 93a05001 movls r5, #1 ; 0x1 <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 2b9c: e59f3050 ldr r3, [pc, #80] ; 2bf4 <== NOT EXECUTED 2ba0: e5932000 ldr r2, [r3] <== NOT EXECUTED 2ba4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 2ba8: 03a01001 moveq r1, #1 ; 0x1 <== NOT EXECUTED 2bac: 1a000008 bne 2bd4 <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 2bb0: e3550000 cmp r5, #0 ; 0x0 <== NOT EXECUTED 2bb4: 0a000002 beq 2bc4 <== NOT EXECUTED 2bb8: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 2bbc: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 2bc0: 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 ); 2bc4: e5940000 ldr r0, [r4] <== NOT EXECUTED 2bc8: ebffffc9 bl 2af4 <== NOT EXECUTED 2bcc: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED return true; } 2bd0: 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( 2bd4: e59f101c ldr r1, [pc, #28] ; 2bf8 <== NOT EXECUTED 2bd8: e2800008 add r0, r0, #8 ; 0x8 <== NOT EXECUTED 2bdc: e3a02010 mov r2, #16 ; 0x10 <== NOT EXECUTED 2be0: eb00b226 bl 2f480 <== NOT EXECUTED 2be4: e2701001 rsbs r1, r0, #1 ; 0x1 <== NOT EXECUTED 2be8: 33a01000 movcc r1, #0 ; 0x0 <== NOT EXECUTED 2bec: eaffffef b 2bb0 <== NOT EXECUTED 2bf0: 00059364 .word 0x00059364 2bf4: 000460b0 .word 0x000460b0 2bf8: 000590fc .word 0x000590fc 00002ae4 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 2ae4: e59f1004 ldr r1, [pc, #4] ; 2af0 <== NOT EXECUTED 2ae8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2aec: eaffffe1 b 2a78 <== NOT EXECUTED 2af0: 00005590 .word 0x00005590 00002a78 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2a78: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED print_context = context; 2a7c: e59f704c ldr r7, [pc, #76] ; 2ad0 <== NOT EXECUTED print_handler = print; 2a80: e59f604c ldr r6, [pc, #76] ; 2ad4 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 2a84: e1a04001 mov r4, r1 <== NOT EXECUTED 2a88: e1a05000 mov r5, r0 <== NOT EXECUTED print_context = context; print_handler = print; 2a8c: e5861000 str r1, [r6] <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 2a90: e5870000 str r0, [r7] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 2a94: e59f103c ldr r1, [pc, #60] ; 2ad8 <== NOT EXECUTED 2a98: e1a0e00f mov lr, pc <== NOT EXECUTED 2a9c: e12fff14 bx r4 <== NOT EXECUTED (*print)( context, 2aa0: e59f1034 ldr r1, [pc, #52] ; 2adc <== NOT EXECUTED 2aa4: e1a00005 mov r0, r5 <== NOT EXECUTED 2aa8: e1a0e00f mov lr, pc <== NOT EXECUTED 2aac: 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 ); 2ab0: e59f0028 ldr r0, [pc, #40] ; 2ae0 <== NOT EXECUTED 2ab4: eb00197f bl 90b8 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 2ab8: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2abc: ebffff93 bl 2910 <== NOT EXECUTED print_context = NULL; 2ac0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED print_handler = NULL; 2ac4: 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; 2ac8: e5873000 str r3, [r7] <== NOT EXECUTED print_handler = NULL; } 2acc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 2ad0: 000460b4 .word 0x000460b4 2ad4: 000460b8 .word 0x000460b8 2ad8: 00041db0 .word 0x00041db0 2adc: 00041dc8 .word 0x00041dc8 2ae0: 00002910 .word 0x00002910 00002bfc : */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 2bfc: 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; 2c00: e59020c8 ldr r2, [r0, #200] */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 2c04: e92dd810 push {r4, fp, ip, lr, pc} 2c08: e24cb004 sub fp, ip, #4 ; 0x4 ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2c0c: e15b0002 cmp fp, r2 */ void rtems_stack_checker_switch_extension( Thread_Control *running, Thread_Control *heir ) { 2c10: 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; 2c14: e2820008 add r0, r2, #8 ; 0x8 ) { void *sp = __builtin_frame_address(0); #if defined(__GNUC__) if ( sp < the_stack->area ) { 2c18: 3a000003 bcc 2c2c return false; } if ( sp > (the_stack->area + the_stack->size) ) { 2c1c: e59430c4 ldr r3, [r4, #196] 2c20: e0823003 add r3, r2, r3 2c24: e15b0003 cmp fp, r3 2c28: 9a000007 bls 2c4c /* * 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, 2c2c: e59f1034 ldr r1, [pc, #52] ; 2c68 <== NOT EXECUTED 2c30: e3a02010 mov r2, #16 ; 0x10 <== NOT EXECUTED 2c34: eb00b211 bl 2f480 <== NOT EXECUTED 2c38: e2701001 rsbs r1, r0, #1 ; 0x1 <== NOT EXECUTED 2c3c: 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 ); 2c40: e1a00004 mov r0, r4 } } 2c44: e89d6810 ldm sp, {r4, fp, sp, lr} 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 ); 2c48: eaffffa9 b 2af4 /* * 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, 2c4c: e59f1014 ldr r1, [pc, #20] ; 2c68 2c50: e3a02010 mov r2, #16 ; 0x10 2c54: eb00b209 bl 2f480 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 2c58: e3500000 cmp r0, #0 ; 0x0 2c5c: 13a01000 movne r1, #0 ; 0x0 2c60: 1afffff6 bne 2c40 2c64: e89da810 ldm sp, {r4, fp, sp, pc} 2c68: 000590fc .word 0x000590fc 000021b8 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 21b8: e59f3018 ldr r3, [pc, #24] ; 21d8 <== NOT EXECUTED 21bc: e5830000 str r0, [r3] <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 21c0: e59f0014 ldr r0, [pc, #20] ; 21dc <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 21c4: e59f3014 ldr r3, [pc, #20] ; 21e0 <== NOT EXECUTED int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; 21c8: e5801000 str r1, [r0] <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 21cc: e5832000 str r2, [r3] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 21d0: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 21d4: e12fff1e bx lr <== NOT EXECUTED 21d8: 00014a00 .word 0x00014a00 21dc: 00014a04 .word 0x00014a04 21e0: 00014a08 .word 0x00014a08 000037d8 : } } rtems_status_code rtems_termios_close (void *arg) { 37d8: 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); 37dc: e59f6188 ldr r6, [pc, #392] ; 396c rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 37e0: e5903000 ldr r3, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 37e4: e3a01000 mov r1, #0 ; 0x0 } } rtems_status_code rtems_termios_close (void *arg) { 37e8: 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); 37ec: e1a02001 mov r2, r1 37f0: 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; 37f4: e5934028 ldr r4, [r3, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 37f8: eb0003f5 bl 47d4 if (sc != RTEMS_SUCCESSFUL) 37fc: e3500000 cmp r0, #0 ; 0x0 3800: 1a000046 bne 3920 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 3804: e5943008 ldr r3, [r4, #8] 3808: e2433001 sub r3, r3, #1 ; 0x1 380c: e3530000 cmp r3, #0 ; 0x0 3810: e5843008 str r3, [r4, #8] 3814: 1a000030 bne 38dc if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 3818: e59430cc ldr r3, [r4, #204] 381c: e59f214c ldr r2, [pc, #332] ; 3970 3820: e1a03183 lsl r3, r3, #3 3824: e2833001 add r3, r3, #1 ; 0x1 3828: e7923103 ldr r3, [r2, r3, lsl #2] 382c: e3530000 cmp r3, #0 ; 0x0 3830: 0a00003b beq 3924 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 3834: e1a00004 mov r0, r4 <== NOT EXECUTED 3838: e1a0e00f mov lr, pc <== NOT EXECUTED 383c: e12fff13 bx r3 <== NOT EXECUTED * default: just flush output buffer */ drainOutput (tty); } if (tty->device.outputUsesInterrupts 3840: e59430b4 ldr r3, [r4, #180] 3844: e3530002 cmp r3, #2 ; 0x2 3848: 0a00002a beq 38f8 tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 384c: e594309c ldr r3, [r4, #156] 3850: e3530000 cmp r3, #0 ; 0x0 (*tty->device.lastClose)(tty->major, tty->minor, arg); 3854: 11a02005 movne r2, r5 3858: 1284000c addne r0, r4, #12 ; 0xc 385c: 18900003 ldmne r0, {r0, r1} 3860: 11a0e00f movne lr, pc 3864: 112fff13 bxne r3 if (tty->forw == NULL) { 3868: e5941000 ldr r1, [r4] 386c: e3510000 cmp r1, #0 ; 0x0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 3870: 15943004 ldrne r3, [r4, #4] 3874: 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) { 3878: 0a00002c beq 3930 } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 387c: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 3880: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 3884: 15821000 strne r1, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 3888: 0a000032 beq 3958 <== NOT EXECUTED } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); 388c: e5940014 ldr r0, [r4, #20] 3890: eb0003a6 bl 4730 rtems_semaphore_delete (tty->osem); 3894: e5940018 ldr r0, [r4, #24] 3898: eb0003a4 bl 4730 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 389c: e594008c ldr r0, [r4, #140] 38a0: eb0003a2 bl 4730 if ((tty->device.pollRead == NULL) || 38a4: e59430a0 ldr r3, [r4, #160] 38a8: e3530000 cmp r3, #0 ; 0x0 38ac: 0a00000e beq 38ec 38b0: e59430b4 ldr r3, [r4, #180] 38b4: e3530002 cmp r3, #2 ; 0x2 38b8: 0a00000b beq 38ec (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 38bc: e5940058 ldr r0, [r4, #88] 38c0: eb0015a5 bl 8f5c free (tty->rawOutBuf.theBuf); 38c4: e594007c ldr r0, [r4, #124] 38c8: eb0015a3 bl 8f5c free (tty->cbuf); 38cc: e594001c ldr r0, [r4, #28] 38d0: eb0015a1 bl 8f5c free (tty); 38d4: e1a00004 mov r0, r4 38d8: eb00159f bl 8f5c } rtems_semaphore_release (rtems_termios_ttyMutex); 38dc: e5960000 ldr r0, [r6] 38e0: eb000402 bl 48f0 return RTEMS_SUCCESSFUL; } 38e4: e3a00000 mov r0, #0 ; 0x0 38e8: 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); 38ec: e5940068 ldr r0, [r4, #104] <== NOT EXECUTED 38f0: eb00038e bl 4730 <== NOT EXECUTED 38f4: eafffff0 b 38bc <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 38f8: e59400c4 ldr r0, [r4, #196] <== NOT EXECUTED 38fc: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3900: eb000275 bl 42dc <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 3904: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3908: 1a000004 bne 3920 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 390c: e59400c8 ldr r0, [r4, #200] <== NOT EXECUTED 3910: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 3914: eb000270 bl 42dc <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 3918: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 391c: 0affffca beq 384c <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3920: eb000567 bl 4ec4 <== NOT EXECUTED } else { /* * default: just flush output buffer */ drainOutput (tty); 3924: e1a00004 mov r0, r4 3928: ebfffd89 bl 2f54 392c: eaffffc3 b 3840 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; 3930: e5942004 ldr r2, [r4, #4] 3934: e59f3038 ldr r3, [pc, #56] ; 3974 if ( rtems_termios_ttyTail != NULL ) { 3938: 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; 393c: e5832000 str r2, [r3] if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; 3940: 15821000 strne r1, [r2] 3944: 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 ) { 3948: 1affffcb bne 387c } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 394c: e59f3024 ldr r3, [pc, #36] ; 3978 3950: e5832000 str r2, [r3] 3954: eaffffcc b 388c 3958: e59f3018 ldr r3, [pc, #24] ; 3978 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { 395c: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 3960: e5831000 str r1, [r3] <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; 3964: 15812004 strne r2, [r1, #4] <== NOT EXECUTED 3968: eaffffc7 b 388c <== NOT EXECUTED 396c: 00015f68 .word 0x00015f68 3970: 00015d54 .word 0x00015d54 3974: 00015f6c .word 0x00015f6c 3978: 00015f70 .word 0x00015f70 00002400 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2400: e5903090 ldr r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2404: e590c0b4 ldr ip, [r0, #180] <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2408: e0833001 add r3, r3, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 240c: 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) { 2410: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 2414: e5803090 str r3, [r0, #144] <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 2418: 0a00000b beq 244c <== 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 ) { 241c: e59030cc ldr r3, [r0, #204] <== NOT EXECUTED 2420: e3530005 cmp r3, #5 ; 0x5 <== NOT EXECUTED 2424: 1a000006 bne 2444 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 2428: e59f3034 ldr r3, [pc, #52] ; 2464 <== NOT EXECUTED 242c: e59330b4 ldr r3, [r3, #180] <== NOT EXECUTED 2430: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 2434: 11a0e00f movne lr, pc <== NOT EXECUTED 2438: 112fff13 bxne r3 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 243c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2440: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 2444: 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); 2448: eaffff68 b 21f0 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 244c: e59000c8 ldr r0, [r0, #200] <== NOT EXECUTED 2450: e1a0100c mov r1, ip <== NOT EXECUTED 2454: eb0007a0 bl 42dc <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 2458: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 245c: 0afffff6 beq 243c <== NOT EXECUTED rtems_fatal_error_occurred (sc); 2460: eb000a97 bl 4ec4 <== NOT EXECUTED 2464: 00015d54 .word 0x00015d54 00002468 : 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) { 2468: 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) { 246c: 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) { 2470: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED 2474: e59f62f4 ldr r6, [pc, #756] ; 2770 <== NOT EXECUTED 2478: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 247c: e7963203 ldr r3, [r6, r3, lsl #4] <== NOT EXECUTED 2480: 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) { 2484: e24dd00c sub sp, sp, #12 ; 0xc <== NOT EXECUTED 2488: e1a05000 mov r5, r0 <== NOT EXECUTED 248c: e1a08001 mov r8, r1 <== NOT EXECUTED 2490: 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) { 2494: 0a000020 beq 251c <== NOT EXECUTED while (len--) { 2498: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 249c: 0a00000c beq 24d4 <== NOT EXECUTED 24a0: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED 24a4: ea000003 b 24b8 <== NOT EXECUTED 24a8: e59530cc ldr r3, [r5, #204] <== NOT EXECUTED 24ac: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED 24b0: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 24b4: e7963203 ldr r3, [r6, r3, lsl #4] <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 24b8: e7d80004 ldrb r0, [r8, r4] <== NOT EXECUTED 24bc: e1a01005 mov r1, r5 <== NOT EXECUTED 24c0: e2844001 add r4, r4, #1 ; 0x1 <== NOT EXECUTED 24c4: e1a0e00f mov lr, pc <== NOT EXECUTED 24c8: 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--) { 24cc: e1540007 cmp r4, r7 <== NOT EXECUTED 24d0: 1afffff4 bne 24a8 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 24d4: e59540e4 ldr r4, [r5, #228] <== NOT EXECUTED 24d8: e3540000 cmp r4, #0 ; 0x0 <== NOT EXECUTED 24dc: 1a00000a bne 250c <== NOT EXECUTED 24e0: e59530dc ldr r3, [r5, #220] <== NOT EXECUTED 24e4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 24e8: 0a000007 beq 250c <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 24ec: e2850030 add r0, r5, #48 ; 0x30 <== NOT EXECUTED 24f0: e59510e0 ldr r1, [r5, #224] <== NOT EXECUTED 24f4: e1a0e00f mov lr, pc <== NOT EXECUTED 24f8: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 24fc: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 2500: e58530e4 str r3, [r5, #228] <== NOT EXECUTED 2504: e1a09004 mov r9, r4 <== NOT EXECUTED 2508: ea000000 b 2510 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 250c: e3a09000 mov r9, #0 ; 0x0 <== NOT EXECUTED } 2510: e1a00009 mov r0, r9 <== NOT EXECUTED 2514: e28dd00c add sp, sp, #12 ; 0xc <== NOT EXECUTED 2518: 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); 251c: 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, 2520: 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); 2524: e2803030 add r3, r0, #48 ; 0x30 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2528: 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, 252c: 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); 2530: e58d3008 str r3, [sp, #8] <== NOT EXECUTED 2534: e1a0b009 mov fp, r9 <== NOT EXECUTED 2538: e1a0a009 mov sl, r9 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 253c: 3a000049 bcc 2668 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 2540: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 2544: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 2548: 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) { 254c: 0a000008 beq 2574 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 2550: e5d5204a ldrb r2, [r5, #74] <== NOT EXECUTED 2554: e1520006 cmp r2, r6 <== NOT EXECUTED 2558: 0a000048 beq 2680 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 255c: e5d53049 ldrb r3, [r5, #73] <== NOT EXECUTED 2560: e1530006 cmp r3, r6 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 2564: 059530b8 ldreq r3, [r5, #184] <== NOT EXECUTED 2568: 03c33010 biceq r3, r3, #16 ; 0x10 <== NOT EXECUTED 256c: 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]) { 2570: 0a00004a beq 26a0 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 2574: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED 2578: 1a000048 bne 26a0 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 257c: e5950060 ldr r0, [r5, #96] <== NOT EXECUTED 2580: e5951064 ldr r1, [r5, #100] <== NOT EXECUTED 2584: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 2588: eb003ed7 bl 120ec <__umodsi3> <== NOT EXECUTED 258c: e1a04000 mov r4, r0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 2590: e10f2000 mrs r2, CPSR <== NOT EXECUTED 2594: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 2598: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 259c: e58d2004 str r2, [sp, #4] <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 25a0: e595305c ldr r3, [r5, #92] <== NOT EXECUTED 25a4: e5950064 ldr r0, [r5, #100] <== NOT EXECUTED 25a8: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 25ac: e5951064 ldr r1, [r5, #100] <== NOT EXECUTED 25b0: e0800004 add r0, r0, r4 <== NOT EXECUTED 25b4: eb003ecc bl 120ec <__umodsi3> <== NOT EXECUTED 25b8: e59530c0 ldr r3, [r5, #192] <== NOT EXECUTED 25bc: e1500003 cmp r0, r3 <== NOT EXECUTED 25c0: 9a000010 bls 2608 <== NOT EXECUTED 25c4: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 25c8: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 25cc: 1a00000d bne 2608 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 25d0: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 25d4: e3822001 orr r2, r2, #1 ; 0x1 <== NOT EXECUTED 25d8: e58520b8 str r2, [r5, #184] <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 25dc: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 25e0: e3c33fff bic r3, r3, #1020 ; 0x3fc <== NOT EXECUTED 25e4: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 25e8: e1a03a83 lsl r3, r3, #21 <== NOT EXECUTED 25ec: e1a03aa3 lsr r3, r3, #21 <== NOT EXECUTED 25f0: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED 25f4: 0a000044 beq 270c <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 25f8: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 25fc: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED 2600: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED 2604: 0a00004f beq 2748 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 2608: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 260c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 2610: e595305c ldr r3, [r5, #92] <== NOT EXECUTED 2614: e1530004 cmp r3, r4 <== NOT EXECUTED dropped++; 2618: 02899001 addeq r9, r9, #1 ; 0x1 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 261c: 0a00000e beq 265c <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 2620: e5953058 ldr r3, [r5, #88] <== NOT EXECUTED 2624: 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 )) { 2628: e59520e4 ldr r2, [r5, #228] <== NOT EXECUTED 262c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 2630: 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 )) { 2634: 1a000008 bne 265c <== NOT EXECUTED 2638: e59530dc ldr r3, [r5, #220] <== NOT EXECUTED 263c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2640: 0a000005 beq 265c <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 2644: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED 2648: e59510e0 ldr r1, [r5, #224] <== NOT EXECUTED 264c: e1a0e00f mov lr, pc <== NOT EXECUTED 2650: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 2654: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2658: e58520e4 str r2, [r5, #228] <== NOT EXECUTED 265c: e28aa001 add sl, sl, #1 ; 0x1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 2660: e2577001 subs r7, r7, #1 ; 0x1 <== NOT EXECUTED 2664: 2affffb5 bcs 2540 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 2668: e5953078 ldr r3, [r5, #120] <== NOT EXECUTED 266c: e0833009 add r3, r3, r9 <== NOT EXECUTED 2670: e5853078 str r3, [r5, #120] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 2674: e5950068 ldr r0, [r5, #104] <== NOT EXECUTED 2678: eb00089c bl 48f0 <== NOT EXECUTED 267c: eaffffa3 b 2510 <== 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]) { 2680: e5d53049 ldrb r3, [r5, #73] <== NOT EXECUTED 2684: e1530002 cmp r3, r2 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 2688: 059530b8 ldreq r3, [r5, #184] <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 268c: 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; 2690: 02233010 eoreq r3, r3, #16 ; 0x10 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 2694: 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; 2698: 058530b8 streq r3, [r5, #184] <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 269c: 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) { 26a0: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 26a4: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED 26a8: e3530020 cmp r3, #32 ; 0x20 <== NOT EXECUTED 26ac: 0a000002 beq 26bc <== 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); 26b0: 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; 26b4: e28aa001 add sl, sl, #1 ; 0x1 <== NOT EXECUTED 26b8: eaffffe8 b 2660 <== 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); 26bc: e10f4000 mrs r4, CPSR <== NOT EXECUTED 26c0: e38430c0 orr r3, r4, #192 ; 0xc0 <== NOT EXECUTED 26c4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 26c8: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 26cc: 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; 26d0: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 26d4: 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; 26d8: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 26dc: 1a000002 bne 26ec <== 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); 26e0: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED 26e4: e3a0b001 mov fp, #1 ; 0x1 <== NOT EXECUTED 26e8: eafffff1 b 26b4 <== 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, 26ec: e5953084 ldr r3, [r5, #132] <== NOT EXECUTED 26f0: e595107c ldr r1, [r5, #124] <== NOT EXECUTED 26f4: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 26f8: e0811003 add r1, r1, r3 <== NOT EXECUTED 26fc: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2700: e1a0e00f mov lr, pc <== NOT EXECUTED 2704: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED 2708: eafffff4 b 26e0 <== 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) || 270c: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 2710: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 2714: 1a000002 bne 2724 <== NOT EXECUTED 2718: e5953094 ldr r3, [r5, #148] <== NOT EXECUTED 271c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2720: 1affffb8 bne 2608 <== 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; 2724: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 2728: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 272c: e58530b8 str r3, [r5, #184] <== NOT EXECUTED (*tty->device.write)(tty->minor, 2730: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 2734: e59d1000 ldr r1, [sp] <== NOT EXECUTED 2738: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 273c: e1a0e00f mov lr, pc <== NOT EXECUTED 2740: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED 2744: eaffffaf b 2608 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2748: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 274c: e59520ac ldr r2, [r5, #172] <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2750: e3833004 orr r3, r3, #4 ; 0x4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 2754: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 2758: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 275c: 0affffa9 beq 2608 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 2760: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 2764: e1a0e00f mov lr, pc <== NOT EXECUTED 2768: e12fff12 bx r2 <== NOT EXECUTED 276c: eaffffa5 b 2608 <== NOT EXECUTED 2770: 00015d54 .word 0x00015d54 00002170 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 2170: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2174: e59fc034 ldr ip, [pc, #52] ; 21b0 2178: e59c3000 ldr r3, [ip] 217c: e3530000 cmp r3, #0 ; 0x0 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 2180: e24dd004 sub sp, sp, #4 ; 0x4 rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 2184: 0a000001 beq 2190 RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 2188: e28dd004 add sp, sp, #4 ; 0x4 218c: e8bd8000 pop {pc} /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( 2190: e59f001c ldr r0, [pc, #28] ; 21b4 2194: e3a01001 mov r1, #1 ; 0x1 2198: e3a02054 mov r2, #84 ; 0x54 219c: e58dc000 str ip, [sp] 21a0: eb0008e7 bl 4544 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) 21a4: e3500000 cmp r0, #0 ; 0x0 21a8: 0afffff6 beq 2188 rtems_fatal_error_occurred (sc); 21ac: eb000b44 bl 4ec4 <== NOT EXECUTED 21b0: 00015f68 .word 0x00015f68 21b4: 54526d69 .word 0x54526d69 000033dc : } } rtems_status_code rtems_termios_ioctl (void *arg) { 33dc: 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; 33e0: e5903000 ldr r3, [r0] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 33e4: 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; 33e8: e5935028 ldr r5, [r3, #40] <== NOT EXECUTED struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 33ec: e580100c str r1, [r0, #12] <== NOT EXECUTED } } rtems_status_code rtems_termios_ioctl (void *arg) { 33f0: e1a06000 mov r6, r0 <== NOT EXECUTED 33f4: 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); 33f8: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 33fc: 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; 3400: 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); 3404: eb0004f2 bl 47d4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) { 3408: e2507000 subs r7, r0, #0 ; 0x0 <== NOT EXECUTED 340c: 1a00000a bne 343c <== NOT EXECUTED args->ioctl_return = sc; return sc; } switch (args->command) { 3410: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED 3414: e3520004 cmp r2, #4 ; 0x4 <== NOT EXECUTED 3418: 0a000021 beq 34a4 <== NOT EXECUTED 341c: 8a00000a bhi 344c <== NOT EXECUTED 3420: e3520002 cmp r2, #2 ; 0x2 <== NOT EXECUTED 3424: 0a000064 beq 35bc <== NOT EXECUTED 3428: 9a00004b bls 355c <== NOT EXECUTED if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 342c: e1a00005 mov r0, r5 <== NOT EXECUTED 3430: ebfffec7 bl 2f54 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 3434: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 3438: eb00052c bl 48f0 <== NOT EXECUTED args->ioctl_return = sc; 343c: e586700c str r7, [r6, #12] <== NOT EXECUTED return sc; } 3440: e1a00007 mov r0, r7 <== NOT EXECUTED 3444: e28dd004 add sp, sp, #4 ; 0x4 <== NOT EXECUTED 3448: 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) { 344c: e3a03a46 mov r3, #286720 ; 0x46000 <== NOT EXECUTED 3450: e2833e67 add r3, r3, #1648 ; 0x670 <== NOT EXECUTED 3454: e283313d add r3, r3, #1073741839 ; 0x4000000f <== NOT EXECUTED 3458: e1520003 cmp r2, r3 <== NOT EXECUTED 345c: 0a00004a beq 358c <== NOT EXECUTED 3460: 8a000017 bhi 34c4 <== NOT EXECUTED 3464: e3520005 cmp r2, #5 ; 0x5 <== NOT EXECUTED 3468: 0a000011 beq 34b4 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 346c: e59520cc ldr r2, [r5, #204] <== NOT EXECUTED 3470: e59f3358 ldr r3, [pc, #856] ; 37d0 <== NOT EXECUTED 3474: e1a02282 lsl r2, r2, #5 <== NOT EXECUTED 3478: e0833002 add r3, r3, r2 <== NOT EXECUTED 347c: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 3480: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3484: 03a0700a moveq r7, #10 ; 0xa <== NOT EXECUTED 3488: 0affffe9 beq 3434 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 348c: e1a00005 mov r0, r5 <== NOT EXECUTED 3490: e1a01006 mov r1, r6 <== NOT EXECUTED 3494: e1a0e00f mov lr, pc <== NOT EXECUTED 3498: e12fff13 bx r3 <== NOT EXECUTED 349c: e1a07000 mov r7, r0 <== NOT EXECUTED 34a0: eaffffe3 b 3434 <== NOT EXECUTED case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 34a4: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 34a8: e58530e0 str r3, [r5, #224] <== NOT EXECUTED 34ac: e58520dc str r2, [r5, #220] <== NOT EXECUTED 34b0: eaffffdf b 3434 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 34b4: e894000c ldm r4, {r2, r3} <== NOT EXECUTED 34b8: e58530d8 str r3, [r5, #216] <== NOT EXECUTED 34bc: e58520d4 str r2, [r5, #212] <== NOT EXECUTED 34c0: eaffffdb b 3434 <== 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) { 34c4: e3a03a47 mov r3, #290816 ; 0x47000 <== NOT EXECUTED 34c8: e2833e41 add r3, r3, #1040 ; 0x410 <== NOT EXECUTED 34cc: e2833129 add r3, r3, #1073741834 ; 0x4000000a <== NOT EXECUTED 34d0: e1520003 cmp r2, r3 <== NOT EXECUTED 34d4: 0a00001c beq 354c <== NOT EXECUTED 34d8: e3a03a47 mov r3, #290816 ; 0x47000 <== NOT EXECUTED 34dc: e2833e41 add r3, r3, #1040 ; 0x410 <== NOT EXECUTED 34e0: e283312e add r3, r3, #-2147483637 ; 0x8000000b <== NOT EXECUTED 34e4: e1520003 cmp r2, r3 <== NOT EXECUTED 34e8: 1affffdf bne 346c <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 34ec: e59530cc ldr r3, [r5, #204] <== NOT EXECUTED 34f0: e59f42d8 ldr r4, [pc, #728] ; 37d0 <== NOT EXECUTED 34f4: e1a03183 lsl r3, r3, #3 <== NOT EXECUTED 34f8: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 34fc: e7943103 ldr r3, [r4, r3, lsl #2] <== NOT EXECUTED 3500: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3504: 0a000003 beq 3518 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 3508: e1a00005 mov r0, r5 <== NOT EXECUTED 350c: e1a0e00f mov lr, pc <== NOT EXECUTED 3510: e12fff13 bx r3 <== NOT EXECUTED 3514: e1a07000 mov r7, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 3518: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED 351c: e5932000 ldr r2, [r3] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3520: e7941282 ldr r1, [r4, r2, lsl #5] <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 3524: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3528: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ 352c: e58530d0 str r3, [r5, #208] <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); 3530: e58520cc str r2, [r5, #204] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3534: 0affffbe beq 3434 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 3538: e1a00005 mov r0, r5 <== NOT EXECUTED 353c: e1a0e00f mov lr, pc <== NOT EXECUTED 3540: e12fff11 bx r1 <== NOT EXECUTED 3544: e1a07000 mov r7, r0 <== NOT EXECUTED 3548: eaffffb9 b 3434 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 354c: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED 3550: e59530cc ldr r3, [r5, #204] <== NOT EXECUTED 3554: e5823000 str r3, [r2] <== NOT EXECUTED 3558: eaffffb5 b 3434 <== 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) { 355c: e3520001 cmp r2, #1 ; 0x1 <== NOT EXECUTED 3560: 1affffc1 bne 346c <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 3564: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED 3568: e285c030 add ip, r5, #48 ; 0x30 <== NOT EXECUTED 356c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3570: e1a0e004 mov lr, r4 <== NOT EXECUTED 3574: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3578: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 357c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3580: e59c3000 ldr r3, [ip] <== NOT EXECUTED 3584: e58e3000 str r3, [lr] <== NOT EXECUTED 3588: eaffffa9 b 3434 <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 358c: e5952060 ldr r2, [r5, #96] <== NOT EXECUTED 3590: e595305c ldr r3, [r5, #92] <== NOT EXECUTED if ( rawnc < 0 ) 3594: e0521003 subs r1, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 3598: 45953064 ldrmi r3, [r5, #100] <== NOT EXECUTED 359c: 40811003 addmi r1, r1, r3 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 35a0: e2852020 add r2, r5, #32 ; 0x20 <== NOT EXECUTED 35a4: e892000c ldm r2, {r2, r3} <== NOT EXECUTED 35a8: e0423003 sub r3, r2, r3 <== NOT EXECUTED 35ac: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED 35b0: e0833001 add r3, r3, r1 <== NOT EXECUTED 35b4: e5823000 str r3, [r2] <== NOT EXECUTED 35b8: eaffff9d b 3434 <== 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; 35bc: e596c008 ldr ip, [r6, #8] <== NOT EXECUTED 35c0: e1a0e00c mov lr, ip <== NOT EXECUTED 35c4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 35c8: e2854030 add r4, r5, #48 ; 0x30 <== NOT EXECUTED 35cc: e1a0c004 mov ip, r4 <== NOT EXECUTED 35d0: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 35d4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 35d8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 35dc: 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; 35e0: 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) && 35e4: 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; 35e8: e58c2000 str r2, [ip] <== NOT EXECUTED /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 35ec: 0a000012 beq 363c <== NOT EXECUTED 35f0: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 35f4: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 35f8: 1a00000f bne 363c <== NOT EXECUTED !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 35fc: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3600: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED 3604: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 3608: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 360c: e3120020 tst r2, #32 ; 0x20 <== NOT EXECUTED 3610: 0a000009 beq 363c <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 3614: e10f8000 mrs r8, CPSR <== NOT EXECUTED 3618: e38830c0 orr r3, r8, #192 ; 0xc0 <== NOT EXECUTED 361c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 3620: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3624: 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; 3628: e3c33020 bic r3, r3, #32 ; 0x20 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 362c: 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; 3630: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3634: 1a00005d bne 37b0 <== 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); 3638: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 363c: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3640: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED 3644: 0a000008 beq 366c <== NOT EXECUTED 3648: e5953030 ldr r3, [r5, #48] <== NOT EXECUTED 364c: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED 3650: 1a000005 bne 366c <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 3654: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3658: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED 365c: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 3660: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 3664: e3c22002 bic r2, r2, #2 ; 0x2 <== NOT EXECUTED 3668: e58520b8 str r2, [r5, #184] <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 366c: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3670: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 3674: 05951038 ldreq r1, [r5, #56] <== NOT EXECUTED 3678: 0a000012 beq 36c8 <== NOT EXECUTED 367c: e5951038 ldr r1, [r5, #56] <== NOT EXECUTED 3680: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 3684: ba00003d blt 3780 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 3688: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 368c: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 3690: e58530b8 str r3, [r5, #184] <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 3694: e59520b8 ldr r2, [r5, #184] <== NOT EXECUTED 3698: e3120004 tst r2, #4 ; 0x4 <== NOT EXECUTED 369c: 0a000006 beq 36bc <== NOT EXECUTED 36a0: e59530b0 ldr r3, [r5, #176] <== NOT EXECUTED 36a4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 36a8: 0a000003 beq 36bc <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 36ac: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 36b0: e1a0e00f mov lr, pc <== NOT EXECUTED 36b4: e12fff13 bx r3 <== NOT EXECUTED 36b8: e5951038 ldr r1, [r5, #56] <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 36bc: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 36c0: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED 36c4: 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) { 36c8: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED 36cc: ba00002b blt 3780 <== NOT EXECUTED tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 36d0: e5952030 ldr r2, [r5, #48] <== NOT EXECUTED 36d4: e3120a01 tst r2, #4096 ; 0x1000 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXOF; 36d8: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 36dc: 13833b01 orrne r3, r3, #1024 ; 0x400 <== NOT EXECUTED 36e0: 158530b8 strne r3, [r5, #184] <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 36e4: e3120b01 tst r2, #1024 ; 0x400 <== NOT EXECUTED tty->flow_ctrl |= FL_MDXON; 36e8: 159530b8 ldrne r3, [r5, #184] <== NOT EXECUTED 36ec: 13833c02 orrne r3, r3, #512 ; 0x200 <== NOT EXECUTED 36f0: 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) { 36f4: e595303c ldr r3, [r5, #60] <== NOT EXECUTED 36f8: e2138002 ands r8, r3, #2 ; 0x2 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 36fc: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3700: 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; 3704: 1585306c strne r3, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 3708: 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) { 370c: 0a000007 beq 3730 <== NOT EXECUTED else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 3710: e59530a8 ldr r3, [r5, #168] <== NOT EXECUTED 3714: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3718: 0affff45 beq 3434 <== NOT EXECUTED (*tty->device.setAttributes)(tty->minor, &tty->termios); 371c: e1a01004 mov r1, r4 <== NOT EXECUTED 3720: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 3724: e1a0e00f mov lr, pc <== NOT EXECUTED 3728: e12fff13 bx r3 <== NOT EXECUTED 372c: eaffff40 b 3434 <== 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); 3730: e1a0100d mov r1, sp <== NOT EXECUTED 3734: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 3738: eb0001e9 bl 3ee4 <== NOT EXECUTED tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; 373c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3740: e5d50046 ldrb r0, [r5, #70] <== NOT EXECUTED 3744: e0010093 mul r1, r3, r0 <== NOT EXECUTED 3748: e59f2084 ldr r2, [pc, #132] ; 37d4 <== NOT EXECUTED 374c: e083c192 umull ip, r3, r2, r1 <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 3750: 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; 3754: e1a021a3 lsr r2, r3, #3 <== NOT EXECUTED 3758: e5852054 str r2, [r5, #84] <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { 375c: 0a00000b beq 3790 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 3760: e5d53047 ldrb r3, [r5, #71] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3764: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3768: 01a03002 moveq r3, r2 <== NOT EXECUTED 376c: 13a03000 movne r3, #0 ; 0x0 <== NOT EXECUTED else { rtems_interval ticksPerSecond; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); tty->vtimeTicks = tty->termios.c_cc[VTIME] * ticksPerSecond / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 3770: e585806c str r8, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3774: 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; 3778: e5852070 str r2, [r5, #112] <== NOT EXECUTED 377c: eaffffe3 b 3710 <== 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; 3780: e59530b8 ldr r3, [r5, #184] <== NOT EXECUTED 3784: e3833c01 orr r3, r3, #256 ; 0x100 <== NOT EXECUTED 3788: e58530b8 str r3, [r5, #184] <== NOT EXECUTED 378c: eaffffcf b 36d0 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 3790: e5d53047 ldrb r3, [r5, #71] <== NOT EXECUTED 3794: 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; 3798: 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; 379c: 15850074 strne r0, [r5, #116] <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 37a0: 1585006c strne r0, [r5, #108] <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 37a4: 15850070 strne r0, [r5, #112] <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 37a8: 0585306c streq r3, [r5, #108] <== NOT EXECUTED 37ac: eaffffd7 b 3710 <== 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, 37b0: e5953084 ldr r3, [r5, #132] <== NOT EXECUTED 37b4: e595107c ldr r1, [r5, #124] <== NOT EXECUTED 37b8: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 37bc: e0811003 add r1, r1, r3 <== NOT EXECUTED 37c0: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 37c4: e1a0e00f mov lr, pc <== NOT EXECUTED 37c8: e595f0a4 ldr pc, [r5, #164] <== NOT EXECUTED 37cc: eaffff99 b 3638 <== NOT EXECUTED 37d0: 54 .byte 0x54 37d1: 5d .byte 0x5d 37d2: 0001 .short 0x0001 37d4: cccccccd .word 0xcccccccd 0000397c : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 397c: 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, 3980: e59fb434 ldr fp, [pc, #1076] ; 3dbc rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3984: e24dd00c sub sp, sp, #12 ; 0xc 3988: e1a0a001 mov sl, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 398c: e3a01000 mov r1, #0 ; 0x0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3990: e58d2008 str r2, [sp, #8] 3994: e1a07000 mov r7, r0 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3998: e1a02001 mov r2, r1 399c: e59b0000 ldr r0, [fp] rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 39a0: e1a04003 mov r4, r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 39a4: eb00038a bl 47d4 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 39a8: e2509000 subs r9, r0, #0 ; 0x0 39ac: 1a000021 bne 3a38 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 39b0: e59f5408 ldr r5, [pc, #1032] ; 3dc0 39b4: e5956000 ldr r6, [r5] 39b8: e3560000 cmp r6, #0 ; 0x0 39bc: 1a000003 bne 39d0 39c0: ea00001f b 3a44 39c4: e5966000 ldr r6, [r6] <== NOT EXECUTED 39c8: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 39cc: 0a00001c beq 3a44 <== NOT EXECUTED if ((tty->major == major) && (tty->minor == minor)) 39d0: e596300c ldr r3, [r6, #12] 39d4: e1530007 cmp r3, r7 39d8: 1afffff9 bne 39c4 39dc: e5963010 ldr r3, [r6, #16] 39e0: e153000a cmp r3, sl 39e4: 1afffff6 bne 39c4 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 39e8: e59d1008 ldr r1, [sp, #8] if (!tty->refcount++) { 39ec: e5963008 ldr r3, [r6, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 39f0: e5912000 ldr r2, [r1] if (!tty->refcount++) { 39f4: e3530000 cmp r3, #0 ; 0x0 39f8: e2833001 add r3, r3, #1 ; 0x1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 39fc: e5826028 str r6, [r2, #40] if (!tty->refcount++) { 3a00: e5863008 str r3, [r6, #8] 3a04: 1a000009 bne 3a30 if (tty->device.firstOpen) 3a08: e5963098 ldr r3, [r6, #152] 3a0c: e3530000 cmp r3, #0 ; 0x0 (*tty->device.firstOpen)(major, minor, arg); 3a10: 11a00007 movne r0, r7 3a14: 11a0100a movne r1, sl 3a18: 159d2008 ldrne r2, [sp, #8] 3a1c: 11a0e00f movne lr, pc 3a20: 112fff13 bxne r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3a24: e59630b4 ldr r3, [r6, #180] 3a28: e3530002 cmp r3, #2 ; 0x2 3a2c: 0a0000a1 beq 3cb8 (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 3a30: e59b0000 ldr r0, [fp] 3a34: eb0003ad bl 48f0 return RTEMS_SUCCESSFUL; } 3a38: e1a00009 mov r0, r9 3a3c: e28dd00c add sp, sp, #12 ; 0xc 3a40: 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)); 3a44: e3a00001 mov r0, #1 ; 0x1 3a48: e3a010e8 mov r1, #232 ; 0xe8 3a4c: eb001503 bl 8e60 if (tty == NULL) { 3a50: e3500000 cmp r0, #0 ; 0x0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 3a54: e1a08000 mov r8, r0 3a58: e1a06000 mov r6, r0 if (tty == NULL) { 3a5c: 0a0000a8 beq 3d04 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 3a60: e59f335c ldr r3, [pc, #860] ; 3dc4 3a64: e5932000 ldr r2, [r3] 3a68: e5882064 str r2, [r8, #100] tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 3a6c: e5980064 ldr r0, [r8, #100] 3a70: eb00169f bl 94f4 if (tty->rawInBuf.theBuf == NULL) { 3a74: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 3a78: e5880058 str r0, [r8, #88] if (tty->rawInBuf.theBuf == NULL) { 3a7c: 0a00009e beq 3cfc return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 3a80: e59f3340 ldr r3, [pc, #832] ; 3dc8 3a84: e5932000 ldr r2, [r3] 3a88: e5882088 str r2, [r8, #136] tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 3a8c: e5980088 ldr r0, [r8, #136] 3a90: eb001697 bl 94f4 if (tty->rawOutBuf.theBuf == NULL) { 3a94: e3500000 cmp r0, #0 ; 0x0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 3a98: e588007c str r0, [r8, #124] if (tty->rawOutBuf.theBuf == NULL) { 3a9c: 0a000094 beq 3cf4 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 3aa0: e59f3324 ldr r3, [pc, #804] ; 3dcc 3aa4: e5930000 ldr r0, [r3] 3aa8: eb001691 bl 94f4 if (tty->cbuf == NULL) { 3aac: e3500000 cmp r0, #0 ; 0x0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 3ab0: e588001c str r0, [r8, #28] if (tty->cbuf == NULL) { 3ab4: 0a00008c beq 3cec tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 3ab8: e5952000 ldr r2, [r5] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 3abc: e3a03000 mov r3, #0 ; 0x0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) 3ac0: e3520000 cmp r2, #0 ; 0x0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 3ac4: e888000c stm r8, {r2, r3} if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; 3ac8: 15828004 strne r8, [r2, #4] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 3acc: e58830d4 str r3, [r8, #212] tty->tty_snd.sw_arg = NULL; 3ad0: e58830d8 str r3, [r8, #216] tty->tty_rcv.sw_pfn = NULL; 3ad4: e58830dc str r3, [r8, #220] tty->tty_rcv.sw_arg = NULL; 3ad8: e58830e0 str r3, [r8, #224] tty->tty_rcvwakeup = 0; 3adc: e58830e4 str r3, [r8, #228] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3ae0: e59f12e8 ldr r1, [pc, #744] ; 3dd0 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) 3ae4: e59f22e8 ldr r2, [pc, #744] ; 3dd4 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3ae8: e5d10000 ldrb r0, [r1] 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) 3aec: e5923000 ldr r3, [r2] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3af0: e3800315 orr r0, r0, #1409286144 ; 0x54000000 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) 3af4: e3530000 cmp r3, #0 ; 0x0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3af8: e3800852 orr r0, r0, #5373952 ; 0x520000 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; 3afc: 05828000 streq r8, [r2] */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 3b00: e5858000 str r8, [r5] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3b04: e288c014 add ip, r8, #20 ; 0x14 3b08: e3a03000 mov r3, #0 ; 0x0 3b0c: e3800c69 orr r0, r0, #26880 ; 0x6900 3b10: e3a01001 mov r1, #1 ; 0x1 3b14: e3a02054 mov r2, #84 ; 0x54 3b18: 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; 3b1c: e588a010 str sl, [r8, #16] tty->major = major; 3b20: e588700c str r7, [r8, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 3b24: eb000286 bl 4544 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) 3b28: e2503000 subs r3, r0, #0 ; 0x0 3b2c: 1a00006d bne 3ce8 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 3b30: e59f2298 ldr r2, [pc, #664] ; 3dd0 3b34: e5d20000 ldrb r0, [r2] 3b38: e3800315 orr r0, r0, #1409286144 ; 0x54000000 3b3c: e3800852 orr r0, r0, #5373952 ; 0x520000 3b40: e288c018 add ip, r8, #24 ; 0x18 3b44: e3a01001 mov r1, #1 ; 0x1 3b48: e3800c6f orr r0, r0, #28416 ; 0x6f00 3b4c: e3a02054 mov r2, #84 ; 0x54 3b50: e58dc000 str ip, [sp] 3b54: eb00027a bl 4544 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) 3b58: e2501000 subs r1, r0, #0 ; 0x0 3b5c: 1a000061 bne 3ce8 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 3b60: e59f3268 ldr r3, [pc, #616] ; 3dd0 3b64: e5d30000 ldrb r0, [r3] 3b68: e3800315 orr r0, r0, #1409286144 ; 0x54000000 3b6c: e3800852 orr r0, r0, #5373952 ; 0x520000 3b70: e288c08c add ip, r8, #140 ; 0x8c 3b74: e3800b1e orr r0, r0, #30720 ; 0x7800 3b78: e3a02020 mov r2, #32 ; 0x20 3b7c: e1a03001 mov r3, r1 3b80: e58dc000 str ip, [sp] 3b84: eb00026e bl 4544 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 3b88: e2505000 subs r5, r0, #0 ; 0x0 3b8c: 1a000055 bne 3ce8 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 3b90: e1a0c004 mov ip, r4 3b94: e8bc000f ldm ip!, {r0, r1, r2, r3} 3b98: e288e098 add lr, r8, #152 ; 0x98 3b9c: e8ae000f stmia lr!, {r0, r1, r2, r3} 3ba0: e89c000f ldm ip, {r0, r1, r2, r3} 3ba4: e88e000f stm lr, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3ba8: e59830b4 ldr r3, [r8, #180] 3bac: e3530002 cmp r3, #2 ; 0x2 RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 3bb0: e5885094 str r5, [r8, #148] tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3bb4: 0a000064 beq 3d4c &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 3bb8: e59830a0 ldr r3, [r8, #160] 3bbc: e3530000 cmp r3, #0 ; 0x0 3bc0: 0a000053 beq 3d14 3bc4: e59830b4 ldr r3, [r8, #180] 3bc8: e3530002 cmp r3, #2 ; 0x2 3bcc: 0a000050 beq 3d14 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'; 3bd0: e3a04000 mov r4, #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; 3bd4: e58840b8 str r4, [r8, #184] tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 3bd8: e59f21f0 ldr r2, [pc, #496] ; 3dd0 /* 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; 3bdc: e5985064 ldr r5, [r8, #100] tty->highwater = tty->rawInBuf.Size * 3/4; 3be0: e5983064 ldr r3, [r8, #100] /* * Bump name characer */ if (c++ == 'z') 3be4: e5d21000 ldrb r1, [r2] 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; 3be8: e1a02083 lsl r2, r3, #1 3bec: e0822003 add r2, r2, r3 3bf0: e1a02122 lsr r2, r2, #2 3bf4: e58820c0 str r2, [r8, #192] /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3bf8: e3a03b06 mov r3, #6144 ; 0x1800 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 3bfc: e59f21cc ldr r2, [pc, #460] ; 3dd0 3c00: e351007a cmp r1, #122 ; 0x7a /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3c04: e2833005 add r3, r3, #5 ; 0x5 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 3c08: e2811001 add r1, r1, #1 ; 0x1 3c0c: e5c21000 strb r1, [r2] /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3c10: e5883034 str r3, [r8, #52] 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'; 3c14: e3a03003 mov r3, #3 ; 0x3 3c18: e5c83041 strb r3, [r8, #65] tty->termios.c_cc[VQUIT] = '\034'; 3c1c: e3a0201c mov r2, #28 ; 0x1c tty->termios.c_cc[VERASE] = '\177'; 3c20: e283307c add r3, r3, #124 ; 0x7c tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; 3c24: e5c82042 strb r2, [r8, #66] tty->termios.c_cc[VERASE] = '\177'; 3c28: e5c83043 strb r3, [r8, #67] tty->termios.c_cc[VKILL] = '\025'; 3c2c: e2422007 sub r2, r2, #7 ; 0x7 tty->termios.c_cc[VEOF] = '\004'; 3c30: e243307b sub r3, r3, #123 ; 0x7b 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'; tty->termios.c_cc[VKILL] = '\025'; 3c34: e5c82044 strb r2, [r8, #68] tty->termios.c_cc[VEOF] = '\004'; 3c38: e5c83045 strb r3, [r8, #69] tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 3c3c: e2422004 sub r2, r2, #4 ; 0x4 tty->termios.c_cc[VSTOP] = '\023'; 3c40: e283300f add r3, r3, #15 ; 0xf tty->termios.c_cc[VERASE] = '\177'; 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'; 3c44: e5c82049 strb r2, [r8, #73] tty->termios.c_cc[VSTOP] = '\023'; 3c48: e5c8304a strb r3, [r8, #74] tty->termios.c_cc[VSUSP] = '\032'; 3c4c: e2822009 add r2, r2, #9 ; 0x9 tty->termios.c_cc[VREPRINT] = '\022'; 3c50: e2433001 sub r3, r3, #1 ; 0x1 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'; tty->termios.c_cc[VSUSP] = '\032'; 3c54: e5c8204b strb r2, [r8, #75] tty->termios.c_cc[VREPRINT] = '\022'; 3c58: e5c8304d strb r3, [r8, #77] tty->termios.c_cc[VDISCARD] = '\017'; 3c5c: e242200b sub r2, r2, #11 ; 0xb tty->termios.c_cc[VWERASE] = '\027'; 3c60: e2833005 add r3, r3, #5 ; 0x5 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'; tty->termios.c_cc[VDISCARD] = '\017'; 3c64: e5c8204e strb r2, [r8, #78] tty->termios.c_cc[VWERASE] = '\027'; 3c68: e5c8304f strb r3, [r8, #79] tty->termios.c_cc[VLNEXT] = '\026'; 3c6c: e2822007 add r2, r2, #7 ; 0x7 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3c70: e3a00c25 mov r0, #9472 ; 0x2500 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 3c74: e3a0ce8b mov ip, #2224 ; 0x8b0 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 3c78: e3a0ec82 mov lr, #33280 ; 0x8200 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 3c7c: 059f314c ldreq r3, [pc, #332] ; 3dd0 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'; tty->termios.c_cc[VLNEXT] = '\026'; 3c80: e5c82050 strb r2, [r8, #80] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3c84: e2800002 add r0, r0, #2 ; 0x2 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 3c88: e28cc00d add ip, ip, #13 ; 0xd tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 3c8c: e28ee03b add lr, lr, #59 ; 0x3b /* 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; 3c90: e1a050a5 lsr r5, r5, #1 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 3c94: 0282204b addeq r2, r2, #75 ; 0x4b } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 3c98: e5880030 str r0, [r8, #48] tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 3c9c: e588c038 str ip, [r8, #56] tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 3ca0: e588e03c str lr, [r8, #60] /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 3ca4: e58850bc str r5, [r8, #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'; 3ca8: e5c8404c strb r4, [r8, #76] tty->termios.c_cc[VEOL2] = '\000'; 3cac: e5c84051 strb r4, [r8, #81] tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 3cb0: 05c32000 strbeq r2, [r3] 3cb4: eaffff4b b 39e8 (*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, 3cb8: e59600c4 ldr r0, [r6, #196] <== NOT EXECUTED 3cbc: e59f1114 ldr r1, [pc, #276] ; 3dd8 <== NOT EXECUTED 3cc0: e1a02006 mov r2, r6 <== NOT EXECUTED 3cc4: eb0003df bl 4c48 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 3cc8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3ccc: 1a000005 bne 3ce8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 3cd0: e1a02006 mov r2, r6 <== NOT EXECUTED 3cd4: e59600c8 ldr r0, [r6, #200] <== NOT EXECUTED 3cd8: e59f10fc ldr r1, [pc, #252] ; 3ddc <== NOT EXECUTED 3cdc: eb0003d9 bl 4c48 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 3ce0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3ce4: 0affff51 beq 3a30 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3ce8: eb000475 bl 4ec4 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 3cec: e598007c ldr r0, [r8, #124] <== NOT EXECUTED 3cf0: eb001499 bl 8f5c <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 3cf4: e5980058 ldr r0, [r8, #88] <== NOT EXECUTED 3cf8: eb001497 bl 8f5c <== NOT EXECUTED free(tty); 3cfc: e1a00008 mov r0, r8 <== NOT EXECUTED 3d00: eb001495 bl 8f5c <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 3d04: e59b0000 ldr r0, [fp] <== NOT EXECUTED 3d08: eb0002f8 bl 48f0 <== NOT EXECUTED 3d0c: e3a0901a mov r9, #26 ; 0x1a <== NOT EXECUTED 3d10: eaffff48 b 3a38 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 3d14: e59f30b4 ldr r3, [pc, #180] ; 3dd0 <== NOT EXECUTED 3d18: e5d30000 ldrb r0, [r3] <== NOT EXECUTED 3d1c: e3800315 orr r0, r0, #1409286144 ; 0x54000000 <== NOT EXECUTED 3d20: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 3d24: e3800852 orr r0, r0, #5373952 ; 0x520000 <== NOT EXECUTED 3d28: e288c068 add ip, r8, #104 ; 0x68 <== NOT EXECUTED 3d2c: e3800c72 orr r0, r0, #29184 ; 0x7200 <== NOT EXECUTED 3d30: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED 3d34: e1a03001 mov r3, r1 <== NOT EXECUTED 3d38: e58dc000 str ip, [sp] <== NOT EXECUTED 3d3c: eb000200 bl 4544 <== 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) 3d40: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3d44: 0affffa1 beq 3bd0 <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 3d48: eb00045d bl 4ec4 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 3d4c: e59f107c ldr r1, [pc, #124] ; 3dd0 <== NOT EXECUTED 3d50: e5d10000 ldrb r0, [r1] <== NOT EXECUTED 3d54: e3800315 orr r0, r0, #1409286144 ; 0x54000000 <== NOT EXECUTED 3d58: e380071e orr r0, r0, #7864320 ; 0x780000 <== NOT EXECUTED 3d5c: e288c0c8 add ip, r8, #200 ; 0xc8 <== NOT EXECUTED 3d60: e3800b15 orr r0, r0, #21504 ; 0x5400 <== NOT EXECUTED 3d64: e3a0100a mov r1, #10 ; 0xa <== NOT EXECUTED 3d68: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 3d6c: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 3d70: e88d1020 stm sp, {r5, ip} <== NOT EXECUTED 3d74: eb000306 bl 4994 <== 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) 3d78: e250e000 subs lr, r0, #0 ; 0x0 <== NOT EXECUTED 3d7c: 1affffd9 bne 3ce8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 3d80: e59f2048 ldr r2, [pc, #72] ; 3dd0 <== NOT EXECUTED 3d84: e5d20000 ldrb r0, [r2] <== NOT EXECUTED 3d88: e3800452 orr r0, r0, #1375731712 ; 0x52000000 <== NOT EXECUTED 3d8c: e380071e orr r0, r0, #7864320 ; 0x780000 <== NOT EXECUTED 3d90: e288c0c4 add ip, r8, #196 ; 0xc4 <== NOT EXECUTED 3d94: e3800b15 orr r0, r0, #21504 ; 0x5400 <== NOT EXECUTED 3d98: e3a01009 mov r1, #9 ; 0x9 <== NOT EXECUTED 3d9c: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 3da0: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 3da4: e58de000 str lr, [sp] <== NOT EXECUTED 3da8: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3dac: eb0002f8 bl 4994 <== 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) 3db0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3db4: 0affff7f beq 3bb8 <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 3db8: eb000441 bl 4ec4 <== NOT EXECUTED 3dbc: 00015f68 .word 0x00015f68 3dc0: 00015f70 .word 0x00015f70 3dc4: 00014a04 .word 0x00014a04 3dc8: 00014a08 .word 0x00014a08 3dcc: 00014a00 .word 0x00014a00 3dd0: 00014a0c .word 0x00014a0c 3dd4: 00015f6c .word 0x00015f6c 3dd8: 00003e54 .word 0x00003e54 3ddc: 00003de0 .word 0x00003de0 00002774 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 2774: e59230b4 ldr r3, [r2, #180] 2778: 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) { 277c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 2780: e1a04002 mov r4, r2 2784: e1a0b000 mov fp, r0 2788: 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) { 278c: 0a00003a beq 287c (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 2790: 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; 2794: e5928080 ldr r8, [r2, #128] <== NOT EXECUTED while (len) { 2798: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 279c: 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; 27a0: 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; 27a4: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 27a8: e2880001 add r0, r8, #1 ; 0x1 <== NOT EXECUTED 27ac: eb003e4e bl 120ec <__umodsi3> <== NOT EXECUTED 27b0: e1a08000 mov r8, r0 <== NOT EXECUTED rtems_interrupt_disable (level); 27b4: e10f5000 mrs r5, CPSR <== NOT EXECUTED 27b8: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 27bc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED while (newHead == tty->rawOutBuf.Tail) { 27c0: e5946084 ldr r6, [r4, #132] <== NOT EXECUTED 27c4: e1560000 cmp r6, r0 <== NOT EXECUTED 27c8: 1a00000d bne 2804 <== NOT EXECUTED tty->rawOutBufState = rob_wait; 27cc: e5847094 str r7, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable (level); 27d0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 27d4: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 27d8: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 27dc: e1a02001 mov r2, r1 <== NOT EXECUTED 27e0: eb0007fb bl 47d4 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 27e4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 27e8: 1a00001a bne 2858 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 27ec: e10f5000 mrs r5, CPSR <== NOT EXECUTED 27f0: e38530c0 orr r3, r5, #192 ; 0xc0 <== NOT EXECUTED 27f4: 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) { 27f8: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 27fc: e1530006 cmp r3, r6 <== NOT EXECUTED 2800: 0afffff1 beq 27cc <== 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++; 2804: e5940080 ldr r0, [r4, #128] <== NOT EXECUTED 2808: e7db100a ldrb r1, [fp, sl] <== NOT EXECUTED 280c: e594307c ldr r3, [r4, #124] <== NOT EXECUTED 2810: e7c31000 strb r1, [r3, r0] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 2814: e5942094 ldr r2, [r4, #148] <== NOT EXECUTED 2818: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; 281c: e5848080 str r8, [r4, #128] <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 2820: 1a000007 bne 2844 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 2824: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2828: 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; 282c: 159430b8 ldrne r3, [r4, #184] <== NOT EXECUTED 2830: 13833020 orrne r3, r3, #32 ; 0x20 <== NOT EXECUTED 2834: 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)) { 2838: 0a000007 beq 285c <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 283c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 2840: e5843094 str r3, [r4, #148] <== NOT EXECUTED } rtems_interrupt_enable (level); 2844: 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) { 2848: e2599001 subs r9, r9, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; 284c: 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) { 2850: 1affffd3 bne 27a4 <== NOT EXECUTED 2854: 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); 2858: eb000999 bl 4ec4 <== 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, 285c: e5943084 ldr r3, [r4, #132] <== NOT EXECUTED 2860: e594107c ldr r1, [r4, #124] <== NOT EXECUTED 2864: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 2868: e0811003 add r1, r1, r3 <== NOT EXECUTED 286c: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED 2870: e1a0e00f mov lr, pc <== NOT EXECUTED 2874: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 2878: eaffffef b 283c <== 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); 287c: e1a01000 mov r1, r0 2880: e1a02009 mov r2, r9 2884: e5940010 ldr r0, [r4, #16] 2888: e1a0e00f mov lr, pc 288c: e594f0a4 ldr pc, [r4, #164] 2890: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 00002fd0 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2fd0: 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; 2fd4: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2fd8: e1a0a000 mov sl, r0 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2fdc: 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); 2fe0: 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; 2fe4: e59a3008 ldr r3, [sl, #8] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 2fe8: 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); 2fec: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 2ff0: e1a02001 mov r2, r1 <== NOT EXECUTED rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; 2ff4: e59a700c ldr r7, [sl, #12] <== NOT EXECUTED char *buffer = args->buffer; 2ff8: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2ffc: eb0005f4 bl 47d4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 3000: e250b000 subs fp, r0, #0 ; 0x0 <== NOT EXECUTED 3004: 1a00000f bne 3048 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 3008: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 300c: e59f23c0 ldr r2, [pc, #960] ; 33d4 <== NOT EXECUTED 3010: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 3014: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 3018: e7923183 ldr r3, [r2, r3, lsl #3] <== NOT EXECUTED 301c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3020: 0a00000b beq 3054 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 3024: e1a0100a mov r1, sl <== NOT EXECUTED 3028: e1a00004 mov r0, r4 <== NOT EXECUTED 302c: e1a0e00f mov lr, pc <== NOT EXECUTED 3030: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 3034: 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); 3038: e1a0b000 mov fp, r0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 303c: e58430e4 str r3, [r4, #228] <== NOT EXECUTED rtems_semaphore_release (tty->isem); 3040: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 3044: eb000629 bl 48f0 <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } 3048: e1a0000b mov r0, fp <== NOT EXECUTED 304c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 3050: 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) { 3054: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 3058: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 305c: e1520003 cmp r2, r3 <== NOT EXECUTED 3060: 0a00001b beq 30d4 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 3064: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 3068: 0a000011 beq 30b4 <== NOT EXECUTED 306c: e5942024 ldr r2, [r4, #36] <== NOT EXECUTED 3070: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3074: e1520003 cmp r2, r3 <== NOT EXECUTED 3078: aa00000d bge 30b4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 307c: 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)) { 3080: e1a01002 mov r1, r2 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 3084: e0620003 rsb r0, r2, r3 <== NOT EXECUTED 3088: ea000002 b 3098 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 308c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3090: e1530001 cmp r3, r1 <== NOT EXECUTED 3094: da000006 ble 30b4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 3098: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 309c: e7d32001 ldrb r2, [r3, r1] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30a0: e2577001 subs r7, r7, #1 ; 0x1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30a4: e7c02001 strb r2, [r0, r1] <== NOT EXECUTED 30a8: e2811001 add r1, r1, #1 ; 0x1 <== NOT EXECUTED 30ac: 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)) { 30b0: 1afffff5 bne 308c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 30b4: e59a300c ldr r3, [sl, #12] <== NOT EXECUTED 30b8: e0673003 rsb r3, r7, r3 <== NOT EXECUTED 30bc: e58a3014 str r3, [sl, #20] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 30c0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 30c4: e58420e4 str r2, [r4, #228] <== NOT EXECUTED rtems_semaphore_release (tty->isem); 30c8: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 30cc: eb000607 bl 48f0 <== NOT EXECUTED 30d0: eaffffdc b 3048 <== 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 30d4: 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; 30d8: e5943028 ldr r3, [r4, #40] <== NOT EXECUTED if (tty->device.pollRead != NULL 30dc: 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; 30e0: 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; 30e4: e584b020 str fp, [r4, #32] <== NOT EXECUTED 30e8: e584b024 str fp, [r4, #36] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 30ec: e1a01002 mov r1, r2 <== NOT EXECUTED 30f0: 0a000002 beq 3100 <== NOT EXECUTED 30f4: e59430b4 ldr r3, [r4, #180] <== NOT EXECUTED 30f8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 30fc: 0a000060 beq 3284 <== 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, 3100: e2843049 add r3, r4, #73 ; 0x49 <== 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)) 3104: e3a06c02 mov r6, #512 ; 0x200 <== 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; 3108: e5945074 ldr r5, [r4, #116] <== NOT EXECUTED if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, 310c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 3110: e59f92c0 ldr r9, [pc, #704] ; 33d8 <== 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)) 3114: e2866002 add r6, r6, #2 ; 0x2 <== 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, 3118: e3a08001 mov r8, #1 ; 0x1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 311c: e594205c ldr r2, [r4, #92] <== NOT EXECUTED 3120: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 3124: e1520003 cmp r2, r3 <== NOT EXECUTED 3128: 0a000037 beq 320c <== NOT EXECUTED 312c: e5993000 ldr r3, [r9] <== NOT EXECUTED 3130: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 3134: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 3138: e1520003 cmp r2, r3 <== NOT EXECUTED 313c: aa000032 bge 320c <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 3140: e594005c ldr r0, [r4, #92] <== NOT EXECUTED 3144: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 3148: e2800001 add r0, r0, #1 ; 0x1 <== NOT EXECUTED 314c: eb003be6 bl 120ec <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 3150: e5943058 ldr r3, [r4, #88] <== NOT EXECUTED 3154: e7d35000 ldrb r5, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; 3158: e584005c str r0, [r4, #92] <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 315c: e1a02000 mov r2, r0 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; tty->rawInBuf.Head = newHead; if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 3160: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 3164: e5940064 ldr r0, [r4, #100] <== NOT EXECUTED 3168: e0800003 add r0, r0, r3 <== NOT EXECUTED 316c: e5941064 ldr r1, [r4, #100] <== NOT EXECUTED 3170: e0620000 rsb r0, r2, r0 <== NOT EXECUTED 3174: eb003bdc bl 120ec <__umodsi3> <== NOT EXECUTED 3178: e59430bc ldr r3, [r4, #188] <== NOT EXECUTED 317c: e1500003 cmp r0, r3 <== NOT EXECUTED 3180: 2a000014 bcs 31d8 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 3184: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED 3188: e3c22001 bic r2, r2, #1 ; 0x1 <== NOT EXECUTED 318c: e58420b8 str r2, [r4, #184] <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 3190: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 3194: e3c33f7f bic r3, r3, #508 ; 0x1fc <== NOT EXECUTED 3198: e3c33001 bic r3, r3, #1 ; 0x1 <== NOT EXECUTED 319c: e1a03b03 lsl r3, r3, #22 <== NOT EXECUTED 31a0: e1a03b23 lsr r3, r3, #22 <== NOT EXECUTED 31a4: e1530006 cmp r3, r6 <== NOT EXECUTED 31a8: 0a000029 beq 3254 <== 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) { 31ac: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 31b0: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 31b4: 0a000007 beq 31d8 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 31b8: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 31bc: 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; 31c0: e3c33004 bic r3, r3, #4 ; 0x4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 31c4: 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; 31c8: e58430b8 str r3, [r4, #184] <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { tty->device.startRemoteTx(tty->minor); 31cc: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 31d0: 11a0e00f movne lr, pc <== NOT EXECUTED 31d4: 112fff12 bxne r2 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 31d8: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 31dc: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 31e0: 0a000012 beq 3230 <== NOT EXECUTED if (siproc (c, tty)) 31e4: e1a00005 mov r0, r5 <== NOT EXECUTED 31e8: e1a01004 mov r1, r4 <== NOT EXECUTED 31ec: ebffff0a bl 2e1c <== NOT EXECUTED 31f0: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 31f4: 1a000014 bne 324c <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 31f8: e594205c ldr r2, [r4, #92] <== NOT EXECUTED 31fc: e5943060 ldr r3, [r4, #96] <== NOT EXECUTED 3200: e1520003 cmp r2, r3 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 3204: e5945070 ldr r5, [r4, #112] <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 3208: 1affffc7 bne 312c <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 320c: e3580000 cmp r8, #0 ; 0x0 <== NOT EXECUTED 3210: 0affff93 beq 3064 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 3214: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED 3218: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 321c: e1a02005 mov r2, r5 <== NOT EXECUTED 3220: eb00056b bl 47d4 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 3224: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3228: 0affffbb beq 311c <== NOT EXECUTED 322c: eaffff8c b 3064 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 3230: e1a00005 mov r0, r5 <== NOT EXECUTED 3234: e1a01004 mov r1, r4 <== NOT EXECUTED 3238: ebfffef7 bl 2e1c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 323c: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 3240: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3244: e1530002 cmp r3, r2 <== NOT EXECUTED 3248: baffffea blt 31f8 <== NOT EXECUTED 324c: e3a08000 mov r8, #0 ; 0x0 <== NOT EXECUTED 3250: eaffffe8 b 31f8 <== 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)) 3254: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 3258: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 325c: 0a000002 beq 326c <== NOT EXECUTED 3260: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 3264: e3130020 tst r3, #32 ; 0x20 <== NOT EXECUTED 3268: 0affffcf beq 31ac <== 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, 326c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3270: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 3274: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 3278: e1a0e00f mov lr, pc <== NOT EXECUTED 327c: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED 3280: eaffffd4 b 31d8 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 3284: e594303c ldr r3, [r4, #60] <== NOT EXECUTED 3288: e3130002 tst r3, #2 ; 0x2 <== NOT EXECUTED 328c: 1a000032 bne 335c <== NOT EXECUTED } } } else { rtems_interval then, now; if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 3290: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 3294: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3298: 1a000006 bne 32b8 <== NOT EXECUTED 329c: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 32a0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 32a4: 0a000003 beq 32b8 <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); 32a8: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 32ac: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 32b0: eb00030b bl 3ee4 <== NOT EXECUTED 32b4: 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); 32b8: e28d600c add r6, sp, #12 ; 0xc <== NOT EXECUTED } } else { if (!tty->termios.c_cc[VTIME]) break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 32bc: 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); 32c0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 32c4: e1a0e00f mov lr, pc <== NOT EXECUTED 32c8: e12fff12 bx r2 <== NOT EXECUTED if (n < 0) { 32cc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 32d0: aa000010 bge 3318 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 32d4: e5d43047 ldrb r3, [r4, #71] <== NOT EXECUTED 32d8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 32dc: 0a00002f beq 33a0 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 32e0: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 32e4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 32e8: 0a000002 beq 32f8 <== NOT EXECUTED 32ec: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 32f0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 32f4: 1a00002c bne 33ac <== NOT EXECUTED rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 32f8: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 32fc: eb00066c bl 4cb4 <== NOT EXECUTED 3300: 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); 3304: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3308: e1a0e00f mov lr, pc <== NOT EXECUTED 330c: e12fff12 bx r2 <== NOT EXECUTED if (n < 0) { 3310: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3314: baffffee blt 32d4 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 3318: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED 331c: e1a01004 mov r1, r4 <== NOT EXECUTED 3320: ebfffebd bl 2e1c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 3324: e5d42047 ldrb r2, [r4, #71] <== NOT EXECUTED 3328: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 332c: e1530002 cmp r3, r2 <== NOT EXECUTED 3330: aaffff4b bge 3064 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 3334: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 3338: 0a000002 beq 3348 <== NOT EXECUTED 333c: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 3340: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 3344: 1a000010 bne 338c <== NOT EXECUTED 3348: e59420a0 ldr r2, [r4, #160] <== NOT EXECUTED 334c: eaffffdb b 32c0 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 3350: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 3354: eb000656 bl 4cb4 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 3358: e59410a0 ldr r1, [r4, #160] <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 335c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3360: e1a0e00f mov lr, pc <== NOT EXECUTED 3364: e12fff11 bx r1 <== NOT EXECUTED if (n < 0) { 3368: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 336c: e1a01004 mov r1, r4 <== NOT EXECUTED 3370: 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) { 3374: bafffff5 blt 3350 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 3378: ebfffea7 bl 2e1c <== NOT EXECUTED 337c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 3380: 1affff37 bne 3064 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 3384: e59410a0 ldr r1, [r4, #160] <== NOT EXECUTED 3388: eafffff3 b 335c <== 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); 338c: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 3390: e1a01006 mov r1, r6 <== NOT EXECUTED 3394: eb0002d2 bl 3ee4 <== NOT EXECUTED 3398: e59420a0 ldr r2, [r4, #160] <== NOT EXECUTED 339c: eaffffc7 b 32c0 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 33a0: e5d43046 ldrb r3, [r4, #70] <== NOT EXECUTED 33a4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 33a8: 0affff2d beq 3064 <== NOT EXECUTED break; rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); 33ac: e1a01005 mov r1, r5 <== NOT EXECUTED 33b0: e3a00002 mov r0, #2 ; 0x2 <== NOT EXECUTED 33b4: eb0002ca bl 3ee4 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 33b8: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED 33bc: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 33c0: e5941054 ldr r1, [r4, #84] <== NOT EXECUTED 33c4: e0623003 rsb r3, r2, r3 <== NOT EXECUTED 33c8: e1530001 cmp r3, r1 <== NOT EXECUTED 33cc: 9affffc9 bls 32f8 <== NOT EXECUTED 33d0: eaffff23 b 3064 <== NOT EXECUTED 33d4: 00015d54 .word 0x00015d54 33d8: 00014a00 .word 0x00014a00 000021f0 : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 21f0: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 21f4: e3c33fff bic r3, r3, #1020 ; 0x3fc <== NOT EXECUTED 21f8: e1a03a83 lsl r3, r3, #21 <== NOT EXECUTED 21fc: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 2200: e1a03aa3 lsr r3, r3, #21 <== NOT EXECUTED 2204: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED 2208: e1530002 cmp r3, r2 <== 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) { 220c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 2210: 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)) 2214: 0a000038 beq 22fc <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 2218: e59030b8 ldr r3, [r0, #184] <== NOT EXECUTED 221c: e2033003 and r3, r3, #3 ; 0x3 <== NOT EXECUTED 2220: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 2224: 0a000051 beq 2370 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 2228: e5902080 ldr r2, [r0, #128] <== NOT EXECUTED 222c: e5903084 ldr r3, [r0, #132] <== NOT EXECUTED 2230: e1520003 cmp r2, r3 <== NOT EXECUTED 2234: 0a00002a beq 22e4 <== NOT EXECUTED rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 2238: e10f2000 mrs r2, CPSR <== NOT EXECUTED 223c: e38230c0 orr r3, r2, #192 ; 0xc0 <== NOT EXECUTED 2240: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; 2244: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; 2248: e590c090 ldr ip, [r0, #144] <== NOT EXECUTED tty->t_dqlen = 0; 224c: e5803090 str r3, [r0, #144] <== NOT EXECUTED rtems_interrupt_enable(level); 2250: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 2254: e5900084 ldr r0, [r0, #132] <== NOT EXECUTED 2258: e5941088 ldr r1, [r4, #136] <== NOT EXECUTED 225c: e08c0000 add r0, ip, r0 <== NOT EXECUTED 2260: eb003fa1 bl 120ec <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 2264: e5943094 ldr r3, [r4, #148] <== NOT EXECUTED 2268: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 226c: e1a06000 mov r6, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; 2270: e5840084 str r0, [r4, #132] <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 2274: 0a00005a beq 23e4 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 2278: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 227c: e1530006 cmp r3, r6 <== NOT EXECUTED 2280: 0a00002f beq 2344 <== 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)) 2284: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED 2288: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED 228c: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED 2290: 0a000048 beq 23b8 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 2294: e5943080 ldr r3, [r4, #128] <== NOT EXECUTED 2298: e1560003 cmp r6, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 229c: 85943088 ldrhi r3, [r4, #136] <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 22a0: 95943080 ldrls r3, [r4, #128] <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 22a4: 80665003 rsbhi r5, r6, r3 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 22a8: 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)) { 22ac: e59430b8 ldr r3, [r4, #184] <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, 22b0: e594107c ldr r1, [r4, #124] <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 22b4: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED 22b8: 13a05001 movne r5, #1 ; 0x1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 22bc: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 22c0: e5843094 str r3, [r4, #148] <== NOT EXECUTED (*tty->device.write)(tty->minor, 22c4: e0811006 add r1, r1, r6 <== NOT EXECUTED 22c8: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 22cc: e1a02005 mov r2, r5 <== NOT EXECUTED 22d0: e1a0e00f mov lr, pc <== NOT EXECUTED 22d4: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 22d8: e5846084 str r6, [r4, #132] <== NOT EXECUTED } return nToSend; } 22dc: e1a00005 mov r0, r5 <== NOT EXECUTED 22e0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 22e4: e5903094 ldr r3, [r0, #148] <== NOT EXECUTED 22e8: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 22ec: 0a00003f beq 23f0 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 22f0: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 22f4: e1a00005 mov r0, r5 <== NOT EXECUTED 22f8: 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, 22fc: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED 2300: e2422b01 sub r2, r2, #1024 ; 0x400 <== NOT EXECUTED 2304: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 2308: e1a0e00f mov lr, pc <== NOT EXECUTED 230c: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 2310: e10f1000 mrs r1, CPSR <== NOT EXECUTED 2314: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 2318: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 231c: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2320: 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--; 2324: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 2328: e3833002 orr r3, r3, #2 ; 0x2 <== NOT EXECUTED 232c: 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--; 2330: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); 2334: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 2338: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 233c: e1a00005 mov r0, r5 <== NOT EXECUTED 2340: 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) { 2344: e59420d4 ldr r2, [r4, #212] <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2348: 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) { 234c: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 2350: 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) { 2354: 01a05002 moveq r5, r2 <== NOT EXECUTED 2358: 0affffde beq 22d8 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 235c: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 2360: e59410d8 ldr r1, [r4, #216] <== NOT EXECUTED 2364: e1a0e00f mov lr, pc <== NOT EXECUTED 2368: e12fff12 bx r2 <== NOT EXECUTED 236c: eaffffd9 b 22d8 <== 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, 2370: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED 2374: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED 2378: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 237c: e1a0e00f mov lr, pc <== NOT EXECUTED 2380: e594f0a4 ldr pc, [r4, #164] <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 2384: e10f1000 mrs r1, CPSR <== NOT EXECUTED 2388: e38130c0 orr r3, r1, #192 ; 0xc0 <== NOT EXECUTED 238c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED tty->t_dqlen--; 2390: e5942090 ldr r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 2394: 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--; 2398: e2422001 sub r2, r2, #1 ; 0x1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 239c: e3c33002 bic r3, r3, #2 ; 0x2 <== NOT EXECUTED 23a0: 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--; 23a4: e5842090 str r2, [r4, #144] <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; rtems_interrupt_enable(level); 23a8: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED 23ac: e3a05001 mov r5, #1 ; 0x1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 23b0: e1a00005 mov r0, r5 <== NOT EXECUTED 23b4: 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); 23b8: e10f3000 mrs r3, CPSR <== NOT EXECUTED 23bc: e38320c0 orr r2, r3, #192 ; 0xc0 <== NOT EXECUTED 23c0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 23c4: e59420b8 ldr r2, [r4, #184] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 23c8: 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; 23cc: e3822020 orr r2, r2, #32 ; 0x20 <== NOT EXECUTED 23d0: e58420b8 str r2, [r4, #184] <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 23d4: e5841094 str r1, [r4, #148] <== NOT EXECUTED rtems_interrupt_enable(level); 23d8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 23dc: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 23e0: eaffffbc b 22d8 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 23e4: e594008c ldr r0, [r4, #140] <== NOT EXECUTED 23e8: eb000940 bl 48f0 <== NOT EXECUTED 23ec: eaffffa1 b 2278 <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 23f0: e590008c ldr r0, [r0, #140] <== NOT EXECUTED 23f4: eb00093d bl 48f0 <== NOT EXECUTED 23f8: e3a05000 mov r5, #0 ; 0x0 <== NOT EXECUTED 23fc: eaffffbc b 22f4 <== NOT EXECUTED 00003e54 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 3e54: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3e58: e24dd008 sub sp, sp, #8 ; 0x8 <== NOT EXECUTED 3e5c: e1a04000 mov r4, r0 <== NOT EXECUTED 3e60: e28d6007 add r6, sp, #7 ; 0x7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 3e64: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED 3e68: e1a0300d mov r3, sp <== NOT EXECUTED 3e6c: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 3e70: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3e74: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 3e78: eb0000b6 bl 4158 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 3e7c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3e80: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 3e84: 1a000012 bne 3ed4 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 3e88: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3e8c: e1a0e00f mov lr, pc <== NOT EXECUTED 3e90: e594f0a0 ldr pc, [r4, #160] <== NOT EXECUTED 3e94: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { 3e98: e3730001 cmn r3, #1 ; 0x1 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 3e9c: e1a01006 mov r1, r6 <== NOT EXECUTED 3ea0: e1a00004 mov r0, r4 <== NOT EXECUTED 3ea4: e3a02001 mov r2, #1 ; 0x1 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { 3ea8: 0affffee beq 3e68 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 3eac: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 3eb0: ebfff96c bl 2468 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 3eb4: e1a0300d mov r3, sp <== NOT EXECUTED 3eb8: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 3ebc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3ec0: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 3ec4: eb0000a3 bl 4158 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 3ec8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3ecc: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED 3ed0: 0affffec beq 3e88 <== NOT EXECUTED tty->rxTaskId = 0; 3ed4: e58470c4 str r7, [r4, #196] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 3ed8: e1a00007 mov r0, r7 <== NOT EXECUTED 3edc: eb0002fb bl 4ad0 <== NOT EXECUTED 3ee0: eaffffe0 b 3e68 <== NOT EXECUTED 000021e4 : 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); 21e4: e59000c4 ldr r0, [r0, #196] <== NOT EXECUTED 21e8: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 21ec: ea00083a b 42dc <== NOT EXECUTED 00003de0 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 3de0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3de4: e59f7064 ldr r7, [pc, #100] ; 3e50 <== NOT EXECUTED 3de8: e24dd004 sub sp, sp, #4 ; 0x4 <== NOT EXECUTED 3dec: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 3df0: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 3df4: e1a0300d mov r3, sp <== NOT EXECUTED 3df8: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED 3dfc: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 3e00: e3a00003 mov r0, #3 ; 0x3 <== NOT EXECUTED 3e04: eb0000d3 bl 4158 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 3e08: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3e0c: e3130001 tst r3, #1 ; 0x1 <== NOT EXECUTED else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { rtems_termios_linesw[tty->t_line].l_start(tty); 3e10: 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) { 3e14: 1a000009 bne 3e40 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 3e18: e59430cc ldr r3, [r4, #204] <== NOT EXECUTED 3e1c: e1a03283 lsl r3, r3, #5 <== NOT EXECUTED 3e20: e0873003 add r3, r7, r3 <== NOT EXECUTED 3e24: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 3e28: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 3e2c: 11a0e00f movne lr, pc <== NOT EXECUTED 3e30: 112fff13 bxne r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 3e34: e1a00004 mov r0, r4 <== NOT EXECUTED 3e38: ebfff8ec bl 21f0 <== NOT EXECUTED 3e3c: eaffffec b 3df4 <== 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; 3e40: e58460c8 str r6, [r4, #200] <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 3e44: e1a00006 mov r0, r6 <== NOT EXECUTED 3e48: eb000320 bl 4ad0 <== NOT EXECUTED 3e4c: eaffffe8 b 3df4 <== NOT EXECUTED 3e50: 00015d54 .word 0x00015d54 00002e80 : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2e80: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2e84: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 2e88: e5935028 ldr r5, [r3, #40] rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 2e8c: e3a01000 mov r1, #0 ; 0x0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 2e90: 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); 2e94: e1a02001 mov r2, r1 2e98: e5950018 ldr r0, [r5, #24] 2e9c: eb00064c bl 47d4 if (sc != RTEMS_SUCCESSFUL) 2ea0: e250a000 subs sl, r0, #0 ; 0x0 2ea4: 1a00000d bne 2ee0 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 2ea8: e59520cc ldr r2, [r5, #204] 2eac: e59f309c ldr r3, [pc, #156] ; 2f50 2eb0: e1a02282 lsl r2, r2, #5 2eb4: e0833002 add r3, r3, r2 2eb8: e593300c ldr r3, [r3, #12] 2ebc: e3530000 cmp r3, #0 ; 0x0 2ec0: 0a000008 beq 2ee8 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 2ec4: e1a01006 mov r1, r6 <== NOT EXECUTED 2ec8: e1a00005 mov r0, r5 <== NOT EXECUTED 2ecc: e1a0e00f mov lr, pc <== NOT EXECUTED 2ed0: e12fff13 bx r3 <== NOT EXECUTED 2ed4: e1a0a000 mov sl, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2ed8: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 2edc: eb000683 bl 48f0 <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } 2ee0: e1a0000a mov r0, sl <== NOT EXECUTED 2ee4: 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) { 2ee8: e5953034 ldr r3, [r5, #52] 2eec: e3130001 tst r3, #1 ; 0x1 2ef0: 0a000011 beq 2f3c uint32_t count = args->count; 2ef4: e596800c ldr r8, [r6, #12] char *buffer = args->buffer; while (count--) 2ef8: e3580000 cmp r8, #0 ; 0x0 rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; 2efc: e5967008 ldr r7, [r6, #8] while (count--) 2f00: 01a0300a moveq r3, sl 2f04: 0a000007 beq 2f28 2f08: e1a0400a mov r4, sl oproc (*buffer++, tty); 2f0c: e7d70004 ldrb r0, [r7, r4] 2f10: e1a01005 mov r1, r5 2f14: e2844001 add r4, r4, #1 ; 0x1 2f18: ebfffe5d bl 2894 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 2f1c: e1580004 cmp r8, r4 2f20: 1afffff9 bne 2f0c oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 2f24: e596300c ldr r3, [r6, #12] 2f28: e5863014 str r3, [r6, #20] } rtems_semaphore_release (tty->osem); 2f2c: e5950018 ldr r0, [r5, #24] 2f30: eb00066e bl 48f0 return sc; } 2f34: e1a0000a mov r0, sl 2f38: 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); 2f3c: e2860008 add r0, r6, #8 ; 0x8 <== NOT EXECUTED 2f40: e8900003 ldm r0, {r0, r1} <== NOT EXECUTED 2f44: e1a02005 mov r2, r5 <== NOT EXECUTED 2f48: ebfffe09 bl 2774 <== NOT EXECUTED 2f4c: eafffff4 b 2f24 <== NOT EXECUTED 2f50: 00015d54 .word 0x00015d54 000124a0 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 124a0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 124a4: e2518000 subs r8, r1, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 124a8: e1a06000 mov r6, r0 124ac: e24dd004 sub sp, sp, #4 ; 0x4 124b0: e1a05002 mov r5, r2 124b4: e1a07003 mov r7, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 124b8: 03a0000a moveq r0, #10 ; 0xa 124bc: 0a000020 beq 12544 return RTEMS_INVALID_NUMBER; if ( !routine ) 124c0: e3520000 cmp r2, #0 ; 0x0 124c4: 03a00009 moveq r0, #9 ; 0x9 124c8: 0a00001d beq 12544 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 124cc: e59f0088 ldr r0, [pc, #136] ; 1255c 124d0: e1a01006 mov r1, r6 124d4: e1a0200d mov r2, sp 124d8: eb000ae0 bl 15060 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 124dc: e59d3000 ldr r3, [sp] 124e0: e3530000 cmp r3, #0 ; 0x0 124e4: e1a04000 mov r4, r0 124e8: 13a00004 movne r0, #4 ; 0x4 124ec: 1a000014 bne 12544 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 124f0: e284a010 add sl, r4, #16 ; 0x10 124f4: e1a0000a mov r0, sl 124f8: eb001357 bl 1725c <_Watchdog_Remove> _ISR_Disable( level ); 124fc: e10f2000 mrs r2, CPSR 12500: e38230c0 orr r3, r2, #192 ; 0xc0 12504: 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 ) { 12508: e5943018 ldr r3, [r4, #24] 1250c: e3530000 cmp r3, #0 ; 0x0 12510: 1a00000d bne 1254c Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 12514: e5843018 str r3, [r4, #24] the_watchdog->routine = routine; 12518: e584502c str r5, [r4, #44] the_watchdog->id = id; 1251c: e5846030 str r6, [r4, #48] the_watchdog->user_data = user_data; 12520: 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; 12524: e5843038 str r3, [r4, #56] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 12528: e129f002 msr CPSR_fc, r2 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 1252c: e59f002c ldr r0, [pc, #44] ; 12560 12530: e1a0100a mov r1, sl Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 12534: e584801c str r8, [r4, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 12538: eb0012d8 bl 170a0 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 1253c: eb000d0c bl 15974 <_Thread_Enable_dispatch> 12540: e3a00000 mov r0, #0 ; 0x0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12544: e28dd004 add sp, sp, #4 ; 0x4 12548: 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 ); 1254c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Thread_Enable_dispatch(); 12550: eb000d07 bl 15974 <_Thread_Enable_dispatch> <== NOT EXECUTED 12554: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 12558: eafffff9 b 12544 <== NOT EXECUTED 1255c: 00031630 .word 0x00031630 12560: 00031464 .word 0x00031464 000129a4 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 129a4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 129a8: e3500000 cmp r0, #0 ; 0x0 129ac: e24dd010 sub sp, sp, #16 ; 0x10 129b0: e1a07001 mov r7, r1 129b4: e1a06002 mov r6, r2 129b8: 1a000002 bne 129c8 * 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; 129bc: e3a00013 mov r0, #19 ; 0x13 } return status; } 129c0: e28dd010 add sp, sp, #16 ; 0x10 129c4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 129c8: e59f3144 ldr r3, [pc, #324] ; 12b14 129cc: e5d32000 ldrb r2, [r3] 129d0: e1500002 cmp r0, r2 129d4: 8a00004a bhi 12b04 129d8: e1a08000 mov r8, r0 <== NOT EXECUTED 129dc: e59f3134 ldr r3, [pc, #308] ; 12b18 129e0: e5932000 ldr r2, [r3] 129e4: e2822001 add r2, r2, #1 ; 0x1 129e8: e5832000 str r2, [r3] /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 129ec: e59fa128 ldr sl, [pc, #296] ; 12b1c 129f0: e5da5000 ldrb r5, [sl] initialized = true; 129f4: e3a03001 mov r3, #1 ; 0x1 129f8: e5ca3000 strb r3, [sl] _Thread_Enable_dispatch(); 129fc: eb000bdc bl 15974 <_Thread_Enable_dispatch> if ( tmpInitialized ) 12a00: e3550000 cmp r5, #0 ; 0x0 12a04: 13a0000e movne r0, #14 ; 0xe 12a08: 1affffec bne 129c0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 12a0c: e59f410c ldr r4, [pc, #268] ; 12b20 12a10: e284c004 add ip, r4, #4 ; 0x4 12a14: e584c000 str ip, [r4] * 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( 12a18: e386e902 orr lr, r6, #32768 ; 0x8000 12a1c: e28dc00c add ip, sp, #12 ; 0xc the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 12a20: e5844008 str r4, [r4, #8] 12a24: e1a01008 mov r1, r8 12a28: e58de000 str lr, [sp] 12a2c: e58dc004 str ip, [sp, #4] 12a30: e1a02007 mov r2, r7 12a34: e59f00e8 ldr r0, [pc, #232] ; 12b24 12a38: 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; 12a3c: e5845004 str r5, [r4, #4] 12a40: ebfffc60 bl 11bc8 /* 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) { 12a44: e3500000 cmp r0, #0 ; 0x0 initialized = false; 12a48: 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) { 12a4c: 1affffdb bne 129c0 * 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( 12a50: e59d200c ldr r2, [sp, #12] RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( Objects_Information *information, uint16_t index ) { if ( index > information->maximum ) 12a54: e59fc0cc ldr ip, [pc, #204] ; 12b28 12a58: e1a03802 lsl r3, r2, #16 12a5c: e58d2008 str r2, [sp, #8] 12a60: e1dc21b0 ldrh r2, [ip, #16] 12a64: e1a01823 lsr r1, r3, #16 12a68: e1520001 cmp r2, r1 12a6c: 259c301c ldrcs r3, [ip, #28] 12a70: 27939101 ldrcs r9, [r3, r1, lsl #2] the_watchdog->routine = routine; 12a74: e59f30b0 ldr r3, [pc, #176] ; 12b2c 12a78: 31a09000 movcc r9, r0 12a7c: e5893064 str r3, [r9, #100] /* * 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; 12a80: e59fe0a8 ldr lr, [pc, #168] ; 12b30 12a84: e59f30a8 ldr r3, [pc, #168] ; 12b34 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 12a88: e59f40a8 ldr r4, [pc, #168] ; 12b38 the_watchdog->id = id; 12a8c: e59f50a8 ldr r5, [pc, #168] ; 12b3c 12a90: e59d2008 ldr r2, [sp, #8] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 12a94: e59f60a4 ldr r6, [pc, #164] ; 12b40 12a98: 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( 12a9c: e59fc0a0 ldr ip, [pc, #160] ; 12b44 the_watchdog->routine = routine; 12aa0: e59f3084 ldr r3, [pc, #132] ; 12b2c the_chain->permanent_null = NULL; 12aa4: e3a0b000 mov fp, #0 ; 0x0 _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 12aa8: e1a00002 mov r0, r2 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 12aac: e2847004 add r7, r4, #4 ; 0x4 12ab0: e2858004 add r8, r5, #4 ; 0x4 the_watchdog->id = id; 12ab4: e5892068 str r2, [r9, #104] the_watchdog->user_data = user_data; 12ab8: e589b06c str fp, [r9, #108] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 12abc: e589b050 str fp, [r9, #80] 12ac0: e59f1080 ldr r1, [pc, #128] ; 12b48 12ac4: 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( 12ac8: e58c9000 str r9, [ip] 12acc: e5847000 str r7, [r4] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 12ad0: e5844008 str r4, [r4, #8] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 12ad4: e5858000 str r8, [r5] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 12ad8: e5855008 str r5, [r5, #8] the_watchdog->routine = routine; 12adc: e586301c str r3, [r6, #28] the_watchdog->id = id; the_watchdog->user_data = user_data; 12ae0: 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; 12ae4: e584b004 str fp, [r4, #4] 12ae8: e585b004 str fp, [r5, #4] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 12aec: e586b008 str fp, [r6, #8] the_watchdog->routine = routine; the_watchdog->id = id; 12af0: e5860020 str r0, [r6, #32] _Timer_Server_schedule_operation = _Timer_Server_schedule_operation_method; /* * Start the timer server */ status = rtems_task_start( 12af4: ebfffd8e bl 12134 id, /* the id from create */ (rtems_task_entry) _Timer_Server_body, /* the timer server entry point */ 0 /* there is no argument */ ); if (status) { 12af8: 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; 12afc: 15cab000 strbne fp, [sl] 12b00: eaffffae b 129c0 * 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 ) 12b04: e3700001 cmn r0, #1 ; 0x1 12b08: 03a08000 moveq r8, #0 ; 0x0 12b0c: 0affffb2 beq 129dc 12b10: eaffffa9 b 129bc 12b14: 00024f10 .word 0x00024f10 12b18: 0003138c .word 0x0003138c 12b1c: 0002ce34 .word 0x0002ce34 12b20: 000312f4 .word 0x000312f4 12b24: 54494d45 .word 0x54494d45 12b28: 00031294 .word 0x00031294 12b2c: 000157dc .word 0x000157dc 12b30: 00012b4c .word 0x00012b4c 12b34: 00031670 .word 0x00031670 12b38: 000312d4 .word 0x000312d4 12b3c: 000312e8 .word 0x000312e8 12b40: 00031300 .word 0x00031300 12b44: 00031674 .word 0x00031674 12b48: 00012bfc .word 0x00012bfc 000126ec : */ rtems_status_code rtems_timer_reset( Objects_Id id ) { 126ec: e92d4030 push {r4, r5, lr} 126f0: e24dd004 sub sp, sp, #4 ; 0x4 126f4: e1a01000 mov r1, r0 126f8: e1a0200d mov r2, sp 126fc: e59f00a8 ldr r0, [pc, #168] ; 127ac 12700: eb000a56 bl 15060 <_Objects_Get> Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 12704: e59d3000 ldr r3, [sp] 12708: e3530000 cmp r3, #0 ; 0x0 1270c: e1a04000 mov r4, r0 12710: 13a00004 movne r0, #4 ; 0x4 12714: 1a00000a bne 12744 case OBJECTS_LOCAL: switch ( the_timer->the_class ) { 12718: e5943038 ldr r3, [r4, #56] 1271c: e3530004 cmp r3, #4 ; 0x4 12720: 979ff103 ldrls pc, [pc, r3, lsl #2] 12724: ea000011 b 12770 <== NOT EXECUTED 12728: 00012788 .word 0x00012788 <== NOT EXECUTED 1272c: 0001274c .word 0x0001274c <== NOT EXECUTED 12730: 0001277c .word 0x0001277c <== NOT EXECUTED 12734: 0001277c .word 0x0001277c <== NOT EXECUTED 12738: 0001277c .word 0x0001277c <== 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(); 1273c: eb000c8c bl 15974 <_Thread_Enable_dispatch> <== NOT EXECUTED 12740: e3a0000e mov r0, #14 ; 0xe <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12744: e28dd004 add sp, sp, #4 ; 0x4 12748: 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 ) { 1274c: e59f505c ldr r5, [pc, #92] ; 127b0 <== NOT EXECUTED 12750: e5953000 ldr r3, [r5] <== NOT EXECUTED 12754: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 12758: 0afffff7 beq 1273c <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } _Watchdog_Remove( &the_timer->Ticker ); 1275c: e2840010 add r0, r4, #16 ; 0x10 <== NOT EXECUTED 12760: eb0012bd bl 1725c <_Watchdog_Remove> <== NOT EXECUTED (*_Timer_Server_schedule_operation)( the_timer ); 12764: e1a00004 mov r0, r4 <== NOT EXECUTED 12768: e1a0e00f mov lr, pc <== NOT EXECUTED 1276c: e595f000 ldr pc, [r5] <== NOT EXECUTED case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 12770: eb000c7f bl 15974 <_Thread_Enable_dispatch> <== NOT EXECUTED 12774: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 12778: eafffff1 b 12744 <== NOT EXECUTED (*_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(); 1277c: eb000c7c bl 15974 <_Thread_Enable_dispatch> 12780: e3a0000b mov r0, #11 ; 0xb 12784: eaffffee b 12744 switch ( location ) { case OBJECTS_LOCAL: switch ( the_timer->the_class ) { case TIMER_INTERVAL: _Watchdog_Remove( &the_timer->Ticker ); 12788: e2844010 add r4, r4, #16 ; 0x10 1278c: e1a00004 mov r0, r4 12790: eb0012b1 bl 1725c <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 12794: e59f0018 ldr r0, [pc, #24] ; 127b4 12798: e1a01004 mov r1, r4 1279c: eb00123f bl 170a0 <_Watchdog_Insert> case TIMER_TIME_OF_DAY_ON_TASK: case TIMER_DORMANT: _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 127a0: eb000c73 bl 15974 <_Thread_Enable_dispatch> 127a4: e3a00000 mov r0, #0 ; 0x0 127a8: eaffffe5 b 12744 127ac: 00031630 .word 0x00031630 127b0: 00031670 .word 0x00031670 127b4: 00031464 .word 0x00031464 000127b8 : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 127b8: e92d41f0 push {r4, r5, r6, r7, r8, lr} Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 127bc: e59fc0d0 ldr ip, [pc, #208] ; 12894 127c0: e59c4000 ldr r4, [ip] 127c4: e3540000 cmp r4, #0 ; 0x0 Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 127c8: e1a07000 mov r7, r0 127cc: e24dd004 sub sp, sp, #4 ; 0x4 127d0: e1a06001 mov r6, r1 127d4: e1a05002 mov r5, r2 127d8: e1a08003 mov r8, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 127dc: 03a0000e moveq r0, #14 ; 0xe 127e0: 0a000005 beq 127fc return RTEMS_INCORRECT_STATE; if ( !routine ) 127e4: e3520000 cmp r2, #0 ; 0x0 127e8: 03a00009 moveq r0, #9 ; 0x9 127ec: 0a000002 beq 127fc return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 127f0: e3510000 cmp r1, #0 ; 0x0 127f4: 03a0000a moveq r0, #10 ; 0xa 127f8: 1a000001 bne 12804 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 127fc: e28dd004 add sp, sp, #4 ; 0x4 12800: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 12804: e59f008c ldr r0, [pc, #140] ; 12898 12808: e1a01007 mov r1, r7 1280c: e1a0200d mov r2, sp 12810: eb000a12 bl 15060 <_Objects_Get> if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 12814: e59d3000 ldr r3, [sp] 12818: e3530000 cmp r3, #0 ; 0x0 1281c: e1a04000 mov r4, r0 12820: 13a00004 movne r0, #4 ; 0x4 12824: 1afffff4 bne 127fc case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 12828: e2840010 add r0, r4, #16 ; 0x10 1282c: eb00128a bl 1725c <_Watchdog_Remove> _ISR_Disable( level ); 12830: e10f1000 mrs r1, CPSR 12834: e38130c0 orr r3, r1, #192 ; 0xc0 12838: 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 ) { 1283c: e5942018 ldr r2, [r4, #24] 12840: e3520000 cmp r2, #0 ; 0x0 12844: 1a00000e bne 12884 /* * 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; 12848: e3a03001 mov r3, #1 ; 0x1 1284c: e5843038 str r3, [r4, #56] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 12850: e5842018 str r2, [r4, #24] the_watchdog->routine = routine; 12854: e584502c str r5, [r4, #44] the_watchdog->id = id; 12858: e5847030 str r7, [r4, #48] the_watchdog->user_data = user_data; 1285c: e5848034 str r8, [r4, #52] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 12860: e584601c str r6, [r4, #28] _ISR_Enable( level ); 12864: 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 ); 12868: e59f302c ldr r3, [pc, #44] ; 1289c 1286c: e1a00004 mov r0, r4 12870: e1a0e00f mov lr, pc 12874: e593f000 ldr pc, [r3] _Thread_Enable_dispatch(); 12878: eb000c3d bl 15974 <_Thread_Enable_dispatch> 1287c: e3a00000 mov r0, #0 ; 0x0 12880: eaffffdd b 127fc * 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 ); 12884: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _Thread_Enable_dispatch(); 12888: eb000c39 bl 15974 <_Thread_Enable_dispatch> <== NOT EXECUTED 1288c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 12890: eaffffd9 b 127fc <== NOT EXECUTED 12894: 00031674 .word 0x00031674 12898: 00031630 .word 0x00031630 1289c: 00031670 .word 0x00031670 000128a0 : Objects_Id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 128a0: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_Timer_Server ) 128a4: e59fc0e4 ldr ip, [pc, #228] ; 12990 128a8: e59c4000 ldr r4, [ip] 128ac: e3540000 cmp r4, #0 ; 0x0 Objects_Id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 128b0: e1a06000 mov r6, r0 128b4: e24dd004 sub sp, sp, #4 ; 0x4 128b8: e1a04001 mov r4, r1 128bc: e1a05002 mov r5, r2 128c0: e1a0a003 mov sl, r3 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_Timer_Server ) 128c4: 03a0000e moveq r0, #14 ; 0xe 128c8: 0a00000c beq 12900 return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 128cc: e59f30c0 ldr r3, [pc, #192] ; 12994 128d0: e5d32000 ldrb r2, [r3] 128d4: e3520000 cmp r2, #0 ; 0x0 128d8: 03a0000b moveq r0, #11 ; 0xb 128dc: 0a000007 beq 12900 return RTEMS_NOT_DEFINED; if ( !routine ) 128e0: e3550000 cmp r5, #0 ; 0x0 128e4: 03a00009 moveq r0, #9 ; 0x9 128e8: 0a000004 beq 12900 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 128ec: e1a00001 mov r0, r1 128f0: ebfff458 bl fa58 <_TOD_Validate> 128f4: e3500000 cmp r0, #0 ; 0x0 128f8: 1a000002 bne 12908 */ (*_Timer_Server_schedule_operation)( the_timer ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 128fc: e3a00014 mov r0, #20 ; 0x14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12900: e28dd004 add sp, sp, #4 ; 0x4 12904: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 12908: e1a00004 mov r0, r4 1290c: ebfff417 bl f970 <_TOD_To_seconds> if ( seconds <= _TOD_Seconds_since_epoch ) 12910: e59f9080 ldr r9, [pc, #128] ; 12998 12914: e5993000 ldr r3, [r9] 12918: e1500003 cmp r0, r3 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 1291c: e1a08000 mov r8, r0 if ( seconds <= _TOD_Seconds_since_epoch ) 12920: 9afffff5 bls 128fc 12924: e59f0070 ldr r0, [pc, #112] ; 1299c 12928: e1a01006 mov r1, r6 1292c: e1a0200d mov r2, sp 12930: eb0009ca bl 15060 <_Objects_Get> return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 12934: e59d7000 ldr r7, [sp] 12938: e3570000 cmp r7, #0 ; 0x0 1293c: e1a04000 mov r4, r0 12940: 13a00004 movne r0, #4 ; 0x4 12944: 1affffed bne 12900 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 12948: e2840010 add r0, r4, #16 ; 0x10 <== NOT EXECUTED 1294c: eb001242 bl 1725c <_Watchdog_Remove> <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 12950: e5846030 str r6, [r4, #48] <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch; 12954: e5993000 ldr r3, [r9] <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 12958: e3a02003 mov r2, #3 ; 0x3 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch; 1295c: e0633008 rsb r3, r3, r8 <== NOT EXECUTED /* * _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 ); 12960: e1a00004 mov r0, r4 <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 12964: e5842038 str r2, [r4, #56] <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch; 12968: e584301c str r3, [r4, #28] <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 1296c: e584502c str r5, [r4, #44] <== NOT EXECUTED /* * _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 ); 12970: e59f3028 ldr r3, [pc, #40] ; 129a0 <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; 12974: e584a034 str sl, [r4, #52] <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 12978: e5847018 str r7, [r4, #24] <== NOT EXECUTED 1297c: e1a0e00f mov lr, pc <== NOT EXECUTED 12980: e593f000 ldr pc, [r3] <== NOT EXECUTED _Thread_Enable_dispatch(); 12984: eb000bfa bl 15974 <_Thread_Enable_dispatch> <== NOT EXECUTED 12988: e1a00007 mov r0, r7 <== NOT EXECUTED 1298c: eaffffdb b 12900 <== NOT EXECUTED 12990: 00031674 .word 0x00031674 12994: 0003139c .word 0x0003139c 12998: 00031414 .word 0x00031414 1299c: 00031630 .word 0x00031630 129a0: 00031670 .word 0x00031670 000067a0 : static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 67a0: 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) 67a4: e2109202 ands r9, r0, #536870912 ; 0x20000000 <== NOT EXECUTED static int rtems_verror( uint32_t error_flag, const char *printf_format, va_list arglist ) { 67a8: e1a05000 mov r5, r0 <== NOT EXECUTED 67ac: e1a06001 mov r6, r1 <== NOT EXECUTED 67b0: e1a0a002 mov sl, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 67b4: 0a00000c beq 67ec <== NOT EXECUTED { if (rtems_panic_in_progress++) 67b8: e59f1190 ldr r1, [pc, #400] ; 6950 <== NOT EXECUTED 67bc: e5913000 ldr r3, [r1] <== NOT EXECUTED 67c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 67c4: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 67c8: e5813000 str r3, [r1] <== NOT EXECUTED 67cc: 0a000003 beq 67e0 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 67d0: e59f217c ldr r2, [pc, #380] ; 6954 <== NOT EXECUTED 67d4: e5923000 ldr r3, [r2] <== NOT EXECUTED 67d8: e2833001 add r3, r3, #1 ; 0x1 <== NOT EXECUTED 67dc: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 67e0: e5913000 ldr r3, [r1] <== NOT EXECUTED 67e4: e3530002 cmp r3, #2 ; 0x2 <== NOT EXECUTED 67e8: ca00002f bgt 68ac <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 67ec: e59f8164 ldr r8, [pc, #356] ; 6958 <== NOT EXECUTED 67f0: e5983000 ldr r3, [r8] <== NOT EXECUTED 67f4: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 67f8: eb003bcf bl 1573c <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 67fc: e2150101 ands r0, r5, #1073741824 ; 0x40000000 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; 6800: e3c54207 bic r4, r5, #1879048192 ; 0x70000000 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 6804: 01a07000 moveq r7, r0 <== NOT EXECUTED 6808: 1a000037 bne 68ec <== 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); 680c: e5983000 ldr r3, [r8] <== NOT EXECUTED 6810: e1a01006 mov r1, r6 <== NOT EXECUTED 6814: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6818: e1a0200a mov r2, sl <== NOT EXECUTED 681c: eb0054e9 bl 1bbc8 <== NOT EXECUTED if (status) 6820: 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); 6824: e1a06000 mov r6, r0 <== NOT EXECUTED if (status) 6828: 1a000021 bne 68b4 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 682c: e3570000 cmp r7, #0 ; 0x0 <== NOT EXECUTED 6830: 0a00000b beq 6864 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 6834: da000004 ble 684c <== NOT EXECUTED 6838: e1a00007 mov r0, r7 <== NOT EXECUTED 683c: eb0048cc bl 18b74 <== NOT EXECUTED 6840: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 6844: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 6848: 1a000032 bne 6918 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 684c: e5983000 ldr r3, [r8] <== NOT EXECUTED 6850: e59f1104 ldr r1, [pc, #260] ; 695c <== NOT EXECUTED 6854: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6858: e1a02007 mov r2, r7 <== NOT EXECUTED 685c: eb003d09 bl 15c88 <== NOT EXECUTED 6860: e0866000 add r6, r6, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 6864: e5983000 ldr r3, [r8] <== NOT EXECUTED 6868: e59f10f0 ldr r1, [pc, #240] ; 6960 <== NOT EXECUTED 686c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6870: eb003d04 bl 15c88 <== NOT EXECUTED (void) fflush(stderr); 6874: 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"); 6878: e1a04000 mov r4, r0 <== NOT EXECUTED (void) fflush(stderr); 687c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6880: eb003bad bl 1573c <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 6884: 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"); 6888: 00840006 addeq r0, r4, r6 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 688c: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 6890: e3590000 cmp r9, #0 ; 0x0 <== NOT EXECUTED 6894: 0a000029 beq 6940 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 6898: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 689c: e59f10c0 ldr r1, [pc, #192] ; 6964 <== NOT EXECUTED 68a0: eb00003d bl 699c <== NOT EXECUTED _exit(local_errno); 68a4: e1a00007 mov r0, r7 <== NOT EXECUTED 68a8: eb000219 bl 7114 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); abort(); 68ac: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } } return chars_written; } 68b0: 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)); 68b4: e59f309c ldr r3, [pc, #156] ; 6958 <== NOT EXECUTED 68b8: 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); 68bc: e1a01004 mov r1, r4 <== NOT EXECUTED 68c0: e59f00a0 ldr r0, [pc, #160] ; 6968 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 68c4: 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); 68c8: eb00280c bl 10900 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 68cc: e59f1098 ldr r1, [pc, #152] ; 696c <== NOT EXECUTED const char * rtems_status_text( rtems_status_code status ) { return rtems_assoc_name_by_local(rtems_status_assoc, status); 68d0: 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)); 68d4: e1a00004 mov r0, r4 <== NOT EXECUTED 68d8: eb003cea bl 15c88 <== NOT EXECUTED if (local_errno) 68dc: 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)); 68e0: e0866000 add r6, r6, r0 <== NOT EXECUTED if (local_errno) 68e4: 0affffde beq 6864 <== NOT EXECUTED 68e8: eaffffd1 b 6834 <== 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; 68ec: eb003ad2 bl 1543c <__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); 68f0: 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; 68f4: 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); 68f8: e1a01006 mov r1, r6 <== NOT EXECUTED 68fc: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 6900: e1a0200a mov r2, sl <== NOT EXECUTED 6904: eb0054af bl 1bbc8 <== NOT EXECUTED if (status) 6908: 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); 690c: e1a06000 mov r6, r0 <== NOT EXECUTED if (status) 6910: 0affffc5 beq 682c <== NOT EXECUTED 6914: eaffffe6 b 68b4 <== 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)); 6918: e5983000 ldr r3, [r8] <== NOT EXECUTED 691c: e1a00007 mov r0, r7 <== NOT EXECUTED 6920: e593400c ldr r4, [r3, #12] <== NOT EXECUTED 6924: eb004892 bl 18b74 <== NOT EXECUTED 6928: e59f1040 ldr r1, [pc, #64] ; 6970 <== NOT EXECUTED 692c: e1a02000 mov r2, r0 <== NOT EXECUTED 6930: e1a00004 mov r0, r4 <== NOT EXECUTED 6934: eb003cd3 bl 15c88 <== NOT EXECUTED 6938: e0866000 add r6, r6, r0 <== NOT EXECUTED 693c: eaffffc8 b 6864 <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 6940: e59f102c ldr r1, [pc, #44] ; 6974 <== NOT EXECUTED 6944: e1a00009 mov r0, r9 <== NOT EXECUTED 6948: eb000013 bl 699c <== NOT EXECUTED abort(); 694c: eb003ab1 bl 15418 <== NOT EXECUTED 6950: 00025c54 .word 0x00025c54 6954: 00025dcc .word 0x00025dcc 6958: 0002153c .word 0x0002153c 695c: 00023280 .word 0x00023280 6960: 00022b7c .word 0x00022b7c 6964: 00023294 .word 0x00023294 6968: 00021ae8 .word 0x00021ae8 696c: 00023260 .word 0x00023260 6970: 00023270 .word 0x00023270 6974: 000232ac .word 0x000232ac 0001e710 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 1e710: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 1e714: e3a04000 mov r4, #0 ; 0x0 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 1e718: e59f90ec ldr r9, [pc, #236] ; 1e80c <== NOT EXECUTED limit++; continue; } sign = 1; } if (!isdigit(c)) 1e71c: e59f80ec ldr r8, [pc, #236] ; 1e810 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 1e720: e59fa0ec ldr sl, [pc, #236] ; 1e814 <== NOT EXECUTED /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 1e724: e1a05000 mov r5, r0 <== NOT EXECUTED 1e728: e1a0b001 mov fp, r1 <== NOT EXECUTED 1e72c: e3e07102 mvn r7, #-2147483648 ; 0x80000000 <== NOT EXECUTED 1e730: e1a06004 mov r6, r4 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 1e734: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 1e738: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 1e73c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e740: e5853004 str r3, [r5, #4] <== NOT EXECUTED 1e744: ba00001d blt 1e7c0 <== NOT EXECUTED 1e748: e5953000 ldr r3, [r5] <== NOT EXECUTED 1e74c: e4d30001 ldrb r0, [r3], #1 <== NOT EXECUTED if (c == ':') 1e750: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 1e754: e5853000 str r3, [r5] <== NOT EXECUTED if (c == ':') 1e758: 0a00001d beq 1e7d4 <== NOT EXECUTED break; if (sign == 0) { 1e75c: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED 1e760: 1a000004 bne 1e778 <== NOT EXECUTED if (c == '-') { 1e764: e350002d cmp r0, #45 ; 0x2d <== NOT EXECUTED sign = -1; limit++; 1e768: 02877001 addeq r7, r7, #1 ; 0x1 <== NOT EXECUTED 1e76c: 02466001 subeq r6, r6, #1 ; 0x1 <== NOT EXECUTED for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 1e770: 0affffef beq 1e734 <== NOT EXECUTED sign = -1; limit++; continue; 1e774: e3a06001 mov r6, #1 ; 0x1 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) 1e778: e5983000 ldr r3, [r8] <== NOT EXECUTED 1e77c: e7d32000 ldrb r2, [r3, r0] <== NOT EXECUTED 1e780: e3120004 tst r2, #4 ; 0x4 <== NOT EXECUTED 1e784: 0a000017 beq 1e7e8 <== NOT EXECUTED return 0; d = c - '0'; if ((i > (limit / 10)) 1e788: e083279a umull r2, r3, sl, r7 <== NOT EXECUTED 1e78c: e15401a3 cmp r4, r3, lsr #3 <== NOT EXECUTED 1e790: 8a000014 bhi 1e7e8 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 1e794: e2400030 sub r0, r0, #48 ; 0x30 <== NOT EXECUTED 1e798: 11a01184 lslne r1, r4, #3 <== NOT EXECUTED 1e79c: 11a02084 lslne r2, r4, #1 <== NOT EXECUTED if ((i > (limit / 10)) 1e7a0: 0a000012 beq 1e7f0 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 1e7a4: e0823001 add r3, r2, r1 <== NOT EXECUTED 1e7a8: e0804003 add r4, r0, r3 <== NOT EXECUTED unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 1e7ac: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 1e7b0: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 1e7b4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e7b8: e5853004 str r3, [r5, #4] <== NOT EXECUTED 1e7bc: aaffffe1 bge 1e748 <== NOT EXECUTED 1e7c0: e5990000 ldr r0, [r9] <== NOT EXECUTED 1e7c4: e1a01005 mov r1, r5 <== NOT EXECUTED 1e7c8: eb004c45 bl 318e4 <__srget_r> <== NOT EXECUTED if (c == ':') 1e7cc: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 1e7d0: 1affffe1 bne 1e75c <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 1e7d4: e3560000 cmp r6, #0 ; 0x0 <== NOT EXECUTED return 0; *val = i * sign; 1e7d8: 10030694 mulne r3, r4, r6 <== NOT EXECUTED 1e7dc: 13a00001 movne r0, #1 ; 0x1 <== NOT EXECUTED 1e7e0: 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) 1e7e4: 18bd8ff0 popne {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED return 0; *val = i * sign; return 1; 1e7e8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1e7ec: 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)) 1e7f0: e1a01184 lsl r1, r4, #3 <== NOT EXECUTED 1e7f4: e1a02084 lsl r2, r4, #1 <== NOT EXECUTED 1e7f8: e0823001 add r3, r2, r1 <== NOT EXECUTED 1e7fc: e0633007 rsb r3, r3, r7 <== NOT EXECUTED 1e800: e1500003 cmp r0, r3 <== NOT EXECUTED 1e804: 9affffe6 bls 1e7a4 <== NOT EXECUTED 1e808: eafffff6 b 1e7e8 <== NOT EXECUTED 1e80c: 00040030 .word 0x00040030 1e810: 00040024 .word 0x00040024 1e814: cccccccd .word 0xcccccccd 0001e818 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 1e818: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 1e81c: e1a05002 mov r5, r2 <== NOT EXECUTED int c; *name = *bufp; 1e820: e5922000 ldr r2, [r2] <== NOT EXECUTED for (;;) { c = getc(fp); 1e824: e59f70d0 ldr r7, [pc, #208] ; 1e8fc <== NOT EXECUTED static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 1e828: 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) { 1e82c: e1a04000 mov r4, r0 <== NOT EXECUTED 1e830: e1a06003 mov r6, r3 <== NOT EXECUTED 1e834: ea000013 b 1e888 <== NOT EXECUTED int c; *name = *bufp; for (;;) { c = getc(fp); 1e838: e5943000 ldr r3, [r4] <== NOT EXECUTED 1e83c: e4d30001 ldrb r0, [r3], #1 <== NOT EXECUTED if (c == ':') { 1e840: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 1e844: e5843000 str r3, [r4] <== NOT EXECUTED if (c == ':') { 1e848: 0a000018 beq 1e8b0 <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { 1e84c: e350000a cmp r0, #10 ; 0xa <== NOT EXECUTED 1e850: 0a000024 beq 1e8e8 <== NOT EXECUTED if (!nlFlag) return 0; break; } if (c == EOF) 1e854: e3700001 cmn r0, #1 ; 0x1 <== NOT EXECUTED 1e858: 0a000025 beq 1e8f4 <== NOT EXECUTED return 0; if (*nleft < 2) 1e85c: e5963000 ldr r3, [r6] <== NOT EXECUTED 1e860: e3530001 cmp r3, #1 ; 0x1 <== NOT EXECUTED 1e864: 9a000022 bls 1e8f4 <== NOT EXECUTED return 0; **bufp = c; 1e868: e5953000 ldr r3, [r5] <== NOT EXECUTED 1e86c: e5c30000 strb r0, [r3] <== NOT EXECUTED ++(*bufp); 1e870: e5952000 ldr r2, [r5] <== NOT EXECUTED --(*nleft); 1e874: e5963000 ldr r3, [r6] <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 1e878: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 1e87c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 1e880: e5852000 str r2, [r5] <== NOT EXECUTED --(*nleft); 1e884: e5863000 str r3, [r6] <== NOT EXECUTED { int c; *name = *bufp; for (;;) { c = getc(fp); 1e888: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 1e88c: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED 1e890: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e894: e5843004 str r3, [r4, #4] <== NOT EXECUTED 1e898: aaffffe6 bge 1e838 <== NOT EXECUTED 1e89c: e5970000 ldr r0, [r7] <== NOT EXECUTED 1e8a0: e1a01004 mov r1, r4 <== NOT EXECUTED 1e8a4: eb004c0e bl 318e4 <__srget_r> <== NOT EXECUTED if (c == ':') { 1e8a8: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 1e8ac: 1affffe6 bne 1e84c <== NOT EXECUTED if (nlFlag) 1e8b0: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 1e8b4: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1e8b8: 1a00000d bne 1e8f4 <== NOT EXECUTED return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 1e8bc: e5951000 ldr r1, [r5] <== NOT EXECUTED 1e8c0: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1e8c4: e5c13000 strb r3, [r1] <== NOT EXECUTED ++(*bufp); 1e8c8: e5952000 ldr r2, [r5] <== NOT EXECUTED --(*nleft); 1e8cc: e5963000 ldr r3, [r6] <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 1e8d0: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED --(*nleft); 1e8d4: e2433001 sub r3, r3, #1 ; 0x1 <== NOT EXECUTED **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 1e8d8: e5852000 str r2, [r5] <== NOT EXECUTED --(*nleft); 1e8dc: e5863000 str r3, [r6] <== NOT EXECUTED 1e8e0: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 1e8e4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 1e8e8: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED 1e8ec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1e8f0: 1afffff1 bne 1e8bc <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 1e8f4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1e8f8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 1e8fc: 00040030 .word 0x00040030 0001e900 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 1e900: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 1e904: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 1e908: e28d5008 add r5, sp, #8 ; 0x8 <== NOT EXECUTED 1e90c: e28d6004 add r6, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 1e910: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 1e914: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 1e918: e3a07000 mov r7, #0 ; 0x0 <== NOT EXECUTED 1e91c: e1a02005 mov r2, r5 <== NOT EXECUTED 1e920: e1a03006 mov r3, r6 <== NOT EXECUTED 1e924: e58d7000 str r7, [sp] <== NOT EXECUTED FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 1e928: e1a04000 mov r4, r0 <== NOT EXECUTED 1e92c: e1a08001 mov r8, r1 <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 1e930: ebffffb8 bl 1e818 <== NOT EXECUTED 1e934: e1500007 cmp r0, r7 <== NOT EXECUTED 1e938: 1a000002 bne 1e948 <== NOT EXECUTED *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 1e93c: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1e940: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1e944: 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) 1e948: e1a00004 mov r0, r4 <== NOT EXECUTED 1e94c: e2881004 add r1, r8, #4 ; 0x4 <== NOT EXECUTED 1e950: e1a02005 mov r2, r5 <== NOT EXECUTED 1e954: e1a03006 mov r3, r6 <== NOT EXECUTED 1e958: e58d7000 str r7, [sp] <== NOT EXECUTED 1e95c: ebffffad bl 1e818 <== NOT EXECUTED 1e960: e1500007 cmp r0, r7 <== NOT EXECUTED 1e964: 0afffff4 beq 1e93c <== NOT EXECUTED 1e968: e1a00004 mov r0, r4 <== NOT EXECUTED 1e96c: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 1e970: ebffff66 bl 1e710 <== NOT EXECUTED 1e974: e1500007 cmp r0, r7 <== NOT EXECUTED 1e978: 0affffef beq 1e93c <== NOT EXECUTED 1e97c: e1a00004 mov r0, r4 <== NOT EXECUTED 1e980: e1a02005 mov r2, r5 <== NOT EXECUTED 1e984: e1a03006 mov r3, r6 <== NOT EXECUTED 1e988: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 1e98c: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 1e990: e58d4000 str r4, [sp] <== NOT EXECUTED 1e994: ebffff9f bl 1e818 <== NOT EXECUTED 1e998: e1500007 cmp r0, r7 <== NOT EXECUTED 1e99c: 0affffe6 beq 1e93c <== 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; 1e9a0: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1e9a4: 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; 1e9a8: e1c830b8 strh r3, [r8, #8] <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1e9ac: e5d02000 ldrb r2, [r0] <== NOT EXECUTED 1e9b0: e1520007 cmp r2, r7 <== NOT EXECUTED 1e9b4: 03a02017 moveq r2, #23 ; 0x17 <== NOT EXECUTED 1e9b8: 0a000008 beq 1e9e0 <== NOT EXECUTED 1e9bc: e1a03004 mov r3, r4 <== NOT EXECUTED 1e9c0: e1a01000 mov r1, r0 <== NOT EXECUTED if(*cp == ',') 1e9c4: e352002c cmp r2, #44 ; 0x2c <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1e9c8: e5f12001 ldrb r2, [r1, #1]! <== NOT EXECUTED if(*cp == ',') memcount++; 1e9cc: 02833001 addeq r3, r3, #1 ; 0x1 <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1e9d0: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 1e9d4: 1afffffa bne 1e9c4 <== NOT EXECUTED 1e9d8: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED 1e9dc: 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)) 1e9e0: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 1e9e4: e1530002 cmp r3, r2 <== NOT EXECUTED 1e9e8: 3affffd3 bcc 1e93c <== NOT EXECUTED return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 1e9ec: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1e9f0: e283300f add r3, r3, #15 ; 0xf <== NOT EXECUTED 1e9f4: e3c3300f bic r3, r3, #15 ; 0xf <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 1e9f8: e5830000 str r0, [r3] <== NOT EXECUTED /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 1e9fc: e588300c str r3, [r8, #12] <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 1ea00: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED 1ea04: e5d23000 ldrb r3, [r2] <== NOT EXECUTED 1ea08: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ea0c: 03a01004 moveq r1, #4 ; 0x4 <== NOT EXECUTED 1ea10: 0a00000b beq 1ea44 <== NOT EXECUTED 1ea14: e2822001 add r2, r2, #1 ; 0x1 <== NOT EXECUTED 1ea18: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; 1ea1c: 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 == ',') { 1ea20: e353002c cmp r3, #44 ; 0x2c <== NOT EXECUTED *cp = '\0'; 1ea24: 05420001 strbeq r0, [r2, #-1] <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 1ea28: 0598300c ldreq r3, [r8, #12] <== NOT EXECUTED 1ea2c: 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++) { 1ea30: e4d23001 ldrb r3, [r2], #1 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; 1ea34: 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++) { 1ea38: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ea3c: 1afffff7 bne 1ea20 <== NOT EXECUTED 1ea40: e1a01101 lsl r1, r1, #2 <== NOT EXECUTED if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 1ea44: e598200c ldr r2, [r8, #12] <== NOT EXECUTED 1ea48: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1ea4c: e7823001 str r3, [r2, r1] <== NOT EXECUTED 1ea50: e3a00001 mov r0, #1 ; 0x1 <== NOT EXECUTED 1ea54: eaffffb9 b 1e940 <== NOT EXECUTED 0001ea9c : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 1ea9c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 1eaa0: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 1eaa4: e28d7008 add r7, sp, #8 ; 0x8 <== NOT EXECUTED 1eaa8: e28d8004 add r8, sp, #4 ; 0x4 <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 1eaac: e58d2008 str r2, [sp, #8] <== NOT EXECUTED 1eab0: e58d3004 str r3, [sp, #4] <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 1eab4: e3a06000 mov r6, #0 ; 0x0 <== NOT EXECUTED 1eab8: e1a02007 mov r2, r7 <== NOT EXECUTED 1eabc: e1a03008 mov r3, r8 <== NOT EXECUTED 1eac0: e58d6000 str r6, [sp] <== NOT EXECUTED FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 1eac4: e1a04000 mov r4, r0 <== NOT EXECUTED 1eac8: e1a05001 mov r5, r1 <== NOT EXECUTED int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 1eacc: ebffff51 bl 1e818 <== NOT EXECUTED 1ead0: e1500006 cmp r0, r6 <== NOT EXECUTED 1ead4: 1a000002 bne 1eae4 <== 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; 1ead8: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED } 1eadc: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1eae0: 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) 1eae4: e1a00004 mov r0, r4 <== NOT EXECUTED 1eae8: e2851004 add r1, r5, #4 ; 0x4 <== NOT EXECUTED 1eaec: e1a02007 mov r2, r7 <== NOT EXECUTED 1eaf0: e1a03008 mov r3, r8 <== NOT EXECUTED 1eaf4: e58d6000 str r6, [sp] <== NOT EXECUTED 1eaf8: ebffff46 bl 1e818 <== NOT EXECUTED 1eafc: e1500006 cmp r0, r6 <== NOT EXECUTED 1eb00: 0afffff4 beq 1ead8 <== NOT EXECUTED 1eb04: e1a00004 mov r0, r4 <== NOT EXECUTED 1eb08: e28d1010 add r1, sp, #16 ; 0x10 <== NOT EXECUTED 1eb0c: ebfffeff bl 1e710 <== NOT EXECUTED 1eb10: e1500006 cmp r0, r6 <== NOT EXECUTED 1eb14: 0affffef beq 1ead8 <== NOT EXECUTED 1eb18: e1a00004 mov r0, r4 <== NOT EXECUTED 1eb1c: e28d100c add r1, sp, #12 ; 0xc <== NOT EXECUTED 1eb20: ebfffefa bl 1e710 <== NOT EXECUTED 1eb24: e1500006 cmp r0, r6 <== NOT EXECUTED 1eb28: 0affffea beq 1ead8 <== NOT EXECUTED 1eb2c: e1a00004 mov r0, r4 <== NOT EXECUTED 1eb30: e285100c add r1, r5, #12 ; 0xc <== NOT EXECUTED 1eb34: e1a02007 mov r2, r7 <== NOT EXECUTED 1eb38: e1a03008 mov r3, r8 <== NOT EXECUTED 1eb3c: e58d6000 str r6, [sp] <== NOT EXECUTED 1eb40: ebffff34 bl 1e818 <== NOT EXECUTED 1eb44: e1500006 cmp r0, r6 <== NOT EXECUTED 1eb48: 0affffe2 beq 1ead8 <== NOT EXECUTED 1eb4c: e1a00004 mov r0, r4 <== NOT EXECUTED 1eb50: e2851010 add r1, r5, #16 ; 0x10 <== NOT EXECUTED 1eb54: e1a02007 mov r2, r7 <== NOT EXECUTED 1eb58: e1a03008 mov r3, r8 <== NOT EXECUTED 1eb5c: e58d6000 str r6, [sp] <== NOT EXECUTED 1eb60: ebffff2c bl 1e818 <== NOT EXECUTED 1eb64: e1500006 cmp r0, r6 <== NOT EXECUTED 1eb68: 0affffda beq 1ead8 <== NOT EXECUTED 1eb6c: e1a00004 mov r0, r4 <== NOT EXECUTED 1eb70: e2851014 add r1, r5, #20 ; 0x14 <== NOT EXECUTED 1eb74: e1a02007 mov r2, r7 <== NOT EXECUTED 1eb78: e1a03008 mov r3, r8 <== NOT EXECUTED 1eb7c: e58d6000 str r6, [sp] <== NOT EXECUTED 1eb80: ebffff24 bl 1e818 <== NOT EXECUTED 1eb84: e1500006 cmp r0, r6 <== NOT EXECUTED 1eb88: 0affffd2 beq 1ead8 <== NOT EXECUTED 1eb8c: e1a00004 mov r0, r4 <== NOT EXECUTED 1eb90: e1a02007 mov r2, r7 <== NOT EXECUTED 1eb94: e1a03008 mov r3, r8 <== NOT EXECUTED 1eb98: e3a04001 mov r4, #1 ; 0x1 <== NOT EXECUTED 1eb9c: e2851018 add r1, r5, #24 ; 0x18 <== NOT EXECUTED 1eba0: e58d4000 str r4, [sp] <== NOT EXECUTED 1eba4: ebffff1b bl 1e818 <== NOT EXECUTED 1eba8: e1500006 cmp r0, r6 <== NOT EXECUTED 1ebac: 0affffc9 beq 1ead8 <== 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; 1ebb0: e1dd30bc ldrh r3, [sp, #12] <== NOT EXECUTED 1ebb4: 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; 1ebb8: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED pwd->pw_gid = pwgid; 1ebbc: e1a00004 mov r0, r4 <== NOT EXECUTED || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; 1ebc0: e1c530b8 strh r3, [r5, #8] <== NOT EXECUTED 1ebc4: eaffffc4 b 1eadc <== NOT EXECUTED 0001e6c8 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 1e6c8: e59f300c ldr r3, [pc, #12] ; 1e6dc <== NOT EXECUTED 1e6cc: e5932000 ldr r2, [r3] <== NOT EXECUTED 1e6d0: e1c202bc strh r0, [r2, #44] <== NOT EXECUTED return 0; } 1e6d4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 1e6d8: e12fff1e bx lr <== NOT EXECUTED 1e6dc: 0003f168 .word 0x0003f168 0001ecec : return NULL; return &grent; } void setgrent(void) { 1ecec: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (group_fp != NULL) 1ecf0: e59f4020 ldr r4, [pc, #32] ; 1ed18 <== NOT EXECUTED return &grent; } void setgrent(void) { init_etc_passwd_group(); 1ecf4: ebffffc4 bl 1ec0c <== NOT EXECUTED if (group_fp != NULL) 1ecf8: e5940000 ldr r0, [r4] <== NOT EXECUTED 1ecfc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(group_fp); 1ed00: 1b0038e2 blne 2d090 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 1ed04: e59f0010 ldr r0, [pc, #16] ; 1ed1c <== NOT EXECUTED 1ed08: e59f1010 ldr r1, [pc, #16] ; 1ed20 <== NOT EXECUTED 1ed0c: eb003ad2 bl 2d85c <== NOT EXECUTED 1ed10: e5840000 str r0, [r4] <== NOT EXECUTED } 1ed14: e8bd8010 pop {r4, pc} <== NOT EXECUTED 1ed18: 0005890c .word 0x0005890c 1ed1c: 00043f9c .word 0x00043f9c 1ed20: 00044ea8 .word 0x00044ea8 0001eeec : return NULL; return &pwent; } void setpwent(void) { 1eeec: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (passwd_fp != NULL) 1eef0: e59f4020 ldr r4, [pc, #32] ; 1ef18 <== NOT EXECUTED return &pwent; } void setpwent(void) { init_etc_passwd_group(); 1eef4: ebffff44 bl 1ec0c <== NOT EXECUTED if (passwd_fp != NULL) 1eef8: e5940000 ldr r0, [r4] <== NOT EXECUTED 1eefc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED fclose(passwd_fp); 1ef00: 1b003862 blne 2d090 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 1ef04: e59f0010 ldr r0, [pc, #16] ; 1ef1c <== NOT EXECUTED 1ef08: e59f1010 ldr r1, [pc, #16] ; 1ef20 <== NOT EXECUTED 1ef0c: eb003a52 bl 2d85c <== NOT EXECUTED 1ef10: e5840000 str r0, [r4] <== NOT EXECUTED } 1ef14: e8bd8010 pop {r4, pc} <== NOT EXECUTED 1ef18: 00058824 .word 0x00058824 1ef1c: 00043f28 .word 0x00043f28 1ef20: 00044ea8 .word 0x00044ea8 00004084 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 4084: e59f300c ldr r3, [pc, #12] ; 4098 <== NOT EXECUTED 4088: e5932000 ldr r2, [r3] <== NOT EXECUTED 408c: e1c202ba strh r0, [r2, #42] <== NOT EXECUTED return 0; } 4090: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 4094: e12fff1e bx lr <== NOT EXECUTED 4098: 0003f168 .word 0x0003f168 00002e1c : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 2e1c: e591303c ldr r3, [r1, #60] <== NOT EXECUTED 2e20: e3c33f61 bic r3, r3, #388 ; 0x184 <== NOT EXECUTED 2e24: e3c33003 bic r3, r3, #3 ; 0x3 <== NOT EXECUTED 2e28: e1a03a03 lsl r3, r3, #20 <== NOT EXECUTED 2e2c: e1a03a23 lsr r3, r3, #20 <== NOT EXECUTED 2e30: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 2e34: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2e38: e1a05001 mov r5, r1 <== NOT EXECUTED 2e3c: 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)) { 2e40: 1a000002 bne 2e50 <== 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); 2e44: e1a00004 mov r0, r4 <== NOT EXECUTED } return i; } 2e48: 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); 2e4c: eaffff82 b 2c5c <== 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); 2e50: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2e54: e1a02001 mov r2, r1 <== NOT EXECUTED 2e58: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 2e5c: eb00065c bl 47d4 <== NOT EXECUTED i = iproc (c, tty); 2e60: e1a01005 mov r1, r5 <== NOT EXECUTED 2e64: e1a00004 mov r0, r4 <== NOT EXECUTED 2e68: ebffff7b bl 2c5c <== NOT EXECUTED 2e6c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 2e70: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED 2e74: eb00069d bl 48f0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 2e78: e1a00004 mov r0, r4 <== NOT EXECUTED 2e7c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 00005698 : int _STAT_NAME( const char *path, struct stat *buf ) { 5698: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 569c: e2514000 subs r4, r1, #0 ; 0x0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 56a0: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 56a4: 0a00002c beq 575c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, 0, &loc, _STAT_FOLLOW_LINKS ); 56a8: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 56ac: e1a0200d mov r2, sp <== NOT EXECUTED 56b0: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 56b4: ebfff9d2 bl 3e04 <== NOT EXECUTED if ( status != 0 ) 56b8: 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 ); 56bc: e1a0500d mov r5, sp <== NOT EXECUTED if ( status != 0 ) 56c0: 1a000023 bne 5754 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 56c4: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 56c8: e5932018 ldr r2, [r3, #24] <== NOT EXECUTED 56cc: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 56d0: 0a000014 beq 5728 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 56d4: e1a01000 mov r1, r0 <== NOT EXECUTED 56d8: e3a0204c mov r2, #76 ; 0x4c <== NOT EXECUTED 56dc: e1a00004 mov r0, r4 <== NOT EXECUTED 56e0: eb00a821 bl 2f76c <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 56e4: e1a01004 mov r1, r4 <== NOT EXECUTED 56e8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED 56ec: e1a0000d mov r0, sp <== NOT EXECUTED 56f0: e1a0e00f mov lr, pc <== NOT EXECUTED 56f4: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 56f8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 56fc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 5700: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 5704: 0a000004 beq 571c <== NOT EXECUTED 5708: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 570c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 5710: 11a0000d movne r0, sp <== NOT EXECUTED 5714: 11a0e00f movne lr, pc <== NOT EXECUTED 5718: 112fff13 bxne r3 <== NOT EXECUTED return status; } 571c: e1a00004 mov r0, r4 <== NOT EXECUTED 5720: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 5724: 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 ); 5728: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 572c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 5730: 0a000004 beq 5748 <== NOT EXECUTED 5734: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 5738: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 573c: 11a0000d movne r0, sp <== NOT EXECUTED 5740: 11a0e00f movne lr, pc <== NOT EXECUTED 5744: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 5748: eb009dff bl 2cf4c <__errno> <== NOT EXECUTED 574c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 5750: e5803000 str r3, [r0] <== NOT EXECUTED 5754: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 5758: eaffffef b 571c <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 575c: eb009dfa bl 2cf4c <__errno> <== NOT EXECUTED 5760: e3a0300e mov r3, #14 ; 0xe <== NOT EXECUTED 5764: e5803000 str r3, [r0] <== NOT EXECUTED 5768: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 576c: eaffffea b 571c <== NOT EXECUTED 0001fee0 : int symlink( const char *actualpath, const char *sympath ) { 1fee0: 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 ); 1fee4: e5d13000 ldrb r3, [r1] <== NOT EXECUTED 1fee8: e353005c cmp r3, #92 ; 0x5c <== NOT EXECUTED 1feec: 1353002f cmpne r3, #47 ; 0x2f <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 1fef0: e24dd014 sub sp, sp, #20 ; 0x14 <== NOT EXECUTED 1fef4: e1a0e001 mov lr, r1 <== NOT EXECUTED rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 1fef8: 13a05000 movne r5, #0 ; 0x0 <== NOT EXECUTED 1fefc: 03a05001 moveq r5, #1 ; 0x1 <== NOT EXECUTED int symlink( const char *actualpath, const char *sympath ) { 1ff00: 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 ); 1ff04: 0a000001 beq 1ff10 <== NOT EXECUTED 1ff08: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ff0c: 1a000023 bne 1ffa0 <== NOT EXECUTED 1ff10: e59f30d0 ldr r3, [pc, #208] ; 1ffe8 <== NOT EXECUTED 1ff14: e593c000 ldr ip, [r3] <== NOT EXECUTED 1ff18: e28cc014 add ip, ip, #20 ; 0x14 <== NOT EXECUTED 1ff1c: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1ff20: e1a0400d mov r4, sp <== NOT EXECUTED 1ff24: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1ff28: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 1ff2c: e08e0003 add r0, lr, r3 <== NOT EXECUTED 1ff30: e1a0100d mov r1, sp <== NOT EXECUTED 1ff34: e28d2010 add r2, sp, #16 ; 0x10 <== NOT EXECUTED 1ff38: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1ff3c: e1a0e00f mov lr, pc <== NOT EXECUTED 1ff40: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( result != 0 ) 1ff44: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 1ff48: 1a000024 bne 1ffe0 <== NOT EXECUTED return -1; if ( !loc.ops->symlink_h ) { 1ff4c: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 1ff50: e5923038 ldr r3, [r2, #56] <== NOT EXECUTED 1ff54: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ff58: 0a000018 beq 1ffc0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 1ff5c: e1a01006 mov r1, r6 <== NOT EXECUTED 1ff60: e1a0000d mov r0, sp <== NOT EXECUTED 1ff64: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED 1ff68: e1a0e00f mov lr, pc <== NOT EXECUTED 1ff6c: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1ff70: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 1ff74: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 1ff78: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 1ff7c: 0a000004 beq 1ff94 <== NOT EXECUTED 1ff80: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 1ff84: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ff88: 11a0000d movne r0, sp <== NOT EXECUTED 1ff8c: 11a0e00f movne lr, pc <== NOT EXECUTED 1ff90: 112fff13 bxne r3 <== NOT EXECUTED return result; } 1ff94: e1a00005 mov r0, r5 <== NOT EXECUTED 1ff98: e28dd014 add sp, sp, #20 ; 0x14 <== NOT EXECUTED 1ff9c: 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 ); 1ffa0: e59f3040 ldr r3, [pc, #64] ; 1ffe8 <== NOT EXECUTED 1ffa4: e593c000 ldr ip, [r3] <== NOT EXECUTED 1ffa8: e28cc004 add ip, ip, #4 ; 0x4 <== NOT EXECUTED 1ffac: e89c000f ldm ip, {r0, r1, r2, r3} <== NOT EXECUTED 1ffb0: e1a0400d mov r4, sp <== NOT EXECUTED 1ffb4: e88d000f stm sp, {r0, r1, r2, r3} <== NOT EXECUTED 1ffb8: e1a03005 mov r3, r5 <== NOT EXECUTED 1ffbc: eaffffda b 1ff2c <== 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 ); 1ffc0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 1ffc4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 1ffc8: 11a0000d movne r0, sp <== NOT EXECUTED 1ffcc: 11a0e00f movne lr, pc <== NOT EXECUTED 1ffd0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1ffd4: eb0033dc bl 2cf4c <__errno> <== NOT EXECUTED 1ffd8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 1ffdc: e5803000 str r3, [r0] <== NOT EXECUTED 1ffe0: e3e05000 mvn r5, #0 ; 0x0 <== NOT EXECUTED 1ffe4: eaffffea b 1ff94 <== NOT EXECUTED 1ffe8: 0003f168 .word 0x0003f168 0001ffec : int tcdrain( int fd ) { return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); 1ffec: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 1fff0: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 1fff4: eafffc3c b 1f0ec <== NOT EXECUTED 00011438 : int tcgetattr( int fd, struct termios *tp ) { 11438: e1a02001 mov r2, r1 <== NOT EXECUTED return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); 1143c: e3a01001 mov r1, #1 ; 0x1 <== NOT EXECUTED 11440: ea000dc1 b 14b4c <== NOT EXECUTED 00011444 : int fd, int opt, struct termios *tp ) { switch (opt) { 11444: e3510000 cmp r1, #0 ; 0x0 <== NOT EXECUTED int tcsetattr( int fd, int opt, struct termios *tp ) { 11448: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 1144c: e1a05002 mov r5, r2 <== NOT EXECUTED 11450: e1a04000 mov r4, r0 <== NOT EXECUTED switch (opt) { 11454: 0a00000b beq 11488 <== NOT EXECUTED 11458: e3510001 cmp r1, #1 ; 0x1 <== NOT EXECUTED 1145c: 0a000004 beq 11474 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 11460: eb000ff5 bl 1543c <__errno> <== NOT EXECUTED 11464: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 11468: e5803000 str r3, [r0] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 1146c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 11470: 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) 11474: e3a01003 mov r1, #3 ; 0x3 <== NOT EXECUTED 11478: e3a02000 mov r2, #0 ; 0x0 <== NOT EXECUTED 1147c: eb000db2 bl 14b4c <== NOT EXECUTED 11480: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 11484: bafffff8 blt 1146c <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 11488: e1a00004 mov r0, r4 <== NOT EXECUTED 1148c: e1a02005 mov r2, r5 <== NOT EXECUTED 11490: e3a01002 mov r1, #2 ; 0x2 <== NOT EXECUTED } } 11494: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 11498: ea000dab b 14b4c <== NOT EXECUTED 00020154 : char *ttyname( int fd ) { if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 20154: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED */ char *ttyname( int fd ) { 20158: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if ( !ttyname_r( fd, ttyname_buf, sizeof(ttyname_buf) ) ) 2015c: e2822006 add r2, r2, #6 ; 0x6 <== NOT EXECUTED 20160: e59f1014 ldr r1, [pc, #20] ; 2017c <== NOT EXECUTED 20164: ebffffbc bl 2005c <== NOT EXECUTED 20168: e59f300c ldr r3, [pc, #12] ; 2017c <== NOT EXECUTED return ttyname_buf; return NULL; } 2016c: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 20170: 01a00003 moveq r0, r3 <== NOT EXECUTED 20174: 13a00000 movne r0, #0 ; 0x0 <== NOT EXECUTED 20178: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 2017c: 0003f16c .word 0x0003f16c 0002005c : int ttyname_r( int fd, char *name, size_t namesize ) { 2005c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 20060: e24dd0bc sub sp, sp, #188 ; 0xbc <== NOT EXECUTED 20064: e1a05001 mov r5, r1 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 20068: e28d1098 add r1, sp, #152 ; 0x98 <== NOT EXECUTED int ttyname_r( int fd, char *name, size_t namesize ) { 2006c: e1a04000 mov r4, r0 <== NOT EXECUTED DIR *dp; struct stat dsb; char *rval; /* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) 20070: ebffffe0 bl 1fff8 <== NOT EXECUTED 20074: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 20078: ba000008 blt 200a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); /* Must be a character device. */ if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode)) 2007c: e1a00004 mov r0, r4 <== NOT EXECUTED 20080: e28d104c add r1, sp, #76 ; 0x4c <== NOT EXECUTED 20084: ebfff7ca bl 1dfb4 <== NOT EXECUTED 20088: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2008c: 1a000003 bne 200a0 <== NOT EXECUTED 20090: e59d3058 ldr r3, [sp, #88] <== NOT EXECUTED 20094: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED 20098: e3530a02 cmp r3, #8192 ; 0x2000 <== NOT EXECUTED 2009c: 0a000005 beq 200b8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); if ((dp = opendir (_PATH_DEV)) == NULL) rtems_set_errno_and_return_minus_one(EBADF); 200a0: eb0033a9 bl 2cf4c <__errno> <== NOT EXECUTED 200a4: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 200a8: e5803000 str r3, [r0] <== NOT EXECUTED 200ac: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED rval = name; break; } (void) closedir (dp); return 0; } 200b0: e28dd0bc add sp, sp, #188 ; 0xbc <== NOT EXECUTED 200b4: 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) 200b8: e59f0090 ldr r0, [pc, #144] ; 20150 <== NOT EXECUTED 200bc: ebfffdb8 bl 1f7a4 <== NOT EXECUTED 200c0: 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); 200c4: 12856005 addne r6, r5, #5 ; 0x5 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 200c8: 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) 200cc: 0afffff3 beq 200a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(EBADF); for (rval = NULL; (dirp = readdir (dp)) != NULL ;) 200d0: e1a00004 mov r0, r4 <== NOT EXECUTED 200d4: ebfffe65 bl 1fa70 <== NOT EXECUTED 200d8: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 200dc: 0a000017 beq 20140 <== NOT EXECUTED { if (dirp->d_ino != sb.st_ino) 200e0: e5902000 ldr r2, [r0] <== NOT EXECUTED 200e4: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 200e8: e1520003 cmp r2, r3 <== NOT EXECUTED 200ec: 1afffff7 bne 200d0 <== NOT EXECUTED continue; strcpy (name + sizeof (_PATH_DEV) - 1, dirp->d_name); 200f0: e280100c add r1, r0, #12 ; 0xc <== NOT EXECUTED 200f4: e1a00006 mov r0, r6 <== NOT EXECUTED 200f8: eb00483c bl 321f0 <== NOT EXECUTED if (stat (name, &dsb) || sb.st_dev != dsb.st_dev || 200fc: e1a00005 mov r0, r5 <== NOT EXECUTED 20100: e1a0100d mov r1, sp <== NOT EXECUTED 20104: ebff9563 bl 5698 <== NOT EXECUTED 20108: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 2010c: 1affffef bne 200d0 <== NOT EXECUTED 20110: e59d2000 ldr r2, [sp] <== NOT EXECUTED 20114: e59d304c ldr r3, [sp, #76] <== NOT EXECUTED 20118: e1530002 cmp r3, r2 <== NOT EXECUTED 2011c: 1affffeb bne 200d0 <== NOT EXECUTED 20120: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 20124: e59d3050 ldr r3, [sp, #80] <== NOT EXECUTED 20128: e1530002 cmp r3, r2 <== NOT EXECUTED 2012c: 1affffe7 bne 200d0 <== NOT EXECUTED 20130: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 20134: e59d3054 ldr r3, [sp, #84] <== NOT EXECUTED 20138: e1530002 cmp r3, r2 <== NOT EXECUTED 2013c: 1affffe3 bne 200d0 <== NOT EXECUTED sb.st_ino != dsb.st_ino) continue; rval = name; break; } (void) closedir (dp); 20140: e1a00004 mov r0, r4 <== NOT EXECUTED 20144: eb00298c bl 2a77c <== NOT EXECUTED 20148: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 2014c: eaffffd7 b 200b0 <== NOT EXECUTED 20150: 0004407c .word 0x0004407c 00020180 : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; 20180: e59f3010 ldr r3, [pc, #16] ; 20198 <== NOT EXECUTED 20184: e5932000 ldr r2, [r3] <== NOT EXECUTED 20188: e5921024 ldr r1, [r2, #36] <== NOT EXECUTED rtems_filesystem_umask = cmask; 2018c: e5820024 str r0, [r2, #36] <== NOT EXECUTED return old_mask; } 20190: e1a00001 mov r0, r1 <== NOT EXECUTED 20194: e12fff1e bx lr <== NOT EXECUTED 20198: 0003f168 .word 0x0003f168 0002019c : #include int unlink( const char *path ) { 2019c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 201a0: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED #include int unlink( const char *path ) { 201a4: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 201a8: e1a0200d mov r2, sp <== NOT EXECUTED 201ac: e1a03001 mov r3, r1 <== NOT EXECUTED 201b0: ebff8f13 bl 3e04 <== NOT EXECUTED if ( result != 0 ) 201b4: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED /* * Get the node to be unlinked. */ result = rtems_filesystem_evaluate_path( path, 0, &loc, false ); 201b8: e1a0500d mov r5, sp <== NOT EXECUTED if ( result != 0 ) 201bc: 0a000003 beq 201d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); rtems_filesystem_freenode( &loc ); 201c0: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED return result; } 201c4: e1a00004 mov r0, r4 <== NOT EXECUTED 201c8: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 201cc: 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 ); 201d0: e2800002 add r0, r0, #2 ; 0x2 <== NOT EXECUTED 201d4: e1a0100d mov r1, sp <== NOT EXECUTED 201d8: ebff8edf bl 3d5c <== NOT EXECUTED if (result != 0 && errno != ENOTSUP) { 201dc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 201e0: 1a00001a bne 20250 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return -1; } if ( !loc.ops->node_type_h ) { 201e4: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 201e8: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED 201ec: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 201f0: 0a000025 beq 2028c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 201f4: e1a0000d mov r0, sp <== NOT EXECUTED 201f8: e1a0e00f mov lr, pc <== NOT EXECUTED 201fc: e12fff13 bx r3 <== NOT EXECUTED 20200: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 20204: 0a00002a beq 202b4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 20208: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 2020c: e592300c ldr r3, [r2, #12] <== NOT EXECUTED 20210: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 20214: 0a00001c beq 2028c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); 20218: e1a0000d mov r0, sp <== NOT EXECUTED 2021c: e1a0e00f mov lr, pc <== NOT EXECUTED 20220: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20224: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 20228: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &loc ); 2022c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20230: 0affffe3 beq 201c4 <== NOT EXECUTED 20234: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 20238: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2023c: 0affffe0 beq 201c4 <== NOT EXECUTED 20240: e1a0000d mov r0, sp <== NOT EXECUTED 20244: e1a0e00f mov lr, pc <== NOT EXECUTED 20248: e12fff13 bx r3 <== NOT EXECUTED 2024c: eaffffdc b 201c4 <== 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) { 20250: eb00333d bl 2cf4c <__errno> <== NOT EXECUTED 20254: e5903000 ldr r3, [r0] <== NOT EXECUTED 20258: e3530086 cmp r3, #134 ; 0x86 <== NOT EXECUTED 2025c: 0affffe0 beq 201e4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 20260: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 20264: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 20268: 0affffd4 beq 201c0 <== NOT EXECUTED 2026c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 20270: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 20274: 0affffd1 beq 201c0 <== NOT EXECUTED 20278: e1a0000d mov r0, sp <== NOT EXECUTED 2027c: e1a0e00f mov lr, pc <== NOT EXECUTED 20280: e12fff13 bx r3 <== NOT EXECUTED 20284: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 20288: eaffffcd b 201c4 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); 2028c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 20290: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 20294: 11a0000d movne r0, sp <== NOT EXECUTED 20298: 11a0e00f movne lr, pc <== NOT EXECUTED 2029c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 202a0: eb003329 bl 2cf4c <__errno> <== NOT EXECUTED 202a4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 202a8: e5803000 str r3, [r0] <== NOT EXECUTED 202ac: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 202b0: eaffffc3 b 201c4 <== 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 ); 202b4: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 202b8: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 202bc: 0a000004 beq 202d4 <== NOT EXECUTED 202c0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 202c4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 202c8: 11a0000d movne r0, sp <== NOT EXECUTED 202cc: 11a0e00f movne lr, pc <== NOT EXECUTED 202d0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 202d4: eb00331c bl 2cf4c <__errno> <== NOT EXECUTED 202d8: e3a03015 mov r3, #21 ; 0x15 <== NOT EXECUTED 202dc: e5803000 str r3, [r0] <== NOT EXECUTED 202e0: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 202e4: eaffffb6 b 201c4 <== NOT EXECUTED 00020358 : */ int unmount( const char *path ) { 20358: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2035c: 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 ) ) 20360: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 20364: e1a0200d mov r2, sp <== NOT EXECUTED 20368: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 2036c: ebff8ea4 bl 3e04 <== NOT EXECUTED 20370: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 20374: e1a0500d mov r5, sp <== NOT EXECUTED 20378: 1a000032 bne 20448 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 2037c: 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) ){ 20380: e59d3000 ldr r3, [sp] <== NOT EXECUTED 20384: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED 20388: e1520003 cmp r2, r3 <== NOT EXECUTED 2038c: 1a000035 bne 20468 <== NOT EXECUTED /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 20390: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 20394: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 20398: 0a000004 beq 203b0 <== NOT EXECUTED 2039c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 203a0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 203a4: 11a0000d movne r0, sp <== NOT EXECUTED 203a8: 11a0e00f movne lr, pc <== NOT EXECUTED 203ac: 112fff13 bxne r3 <== NOT EXECUTED /* * Verify Unmount is supported by both filesystems. */ if ( !fs_mount_loc->ops->unmount_h ) 203b0: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 203b4: e5932028 ldr r2, [r3, #40] <== NOT EXECUTED 203b8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 203bc: 0a000052 beq 2050c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) 203c0: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 203c4: e593202c ldr r2, [r3, #44] <== NOT EXECUTED 203c8: e3520000 cmp r2, #0 ; 0x0 <== NOT EXECUTED 203cc: 0a00004e beq 2050c <== 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 ) 203d0: e59f3148 ldr r3, [pc, #328] ; 20520 <== NOT EXECUTED 203d4: e5932000 ldr r2, [r3] <== NOT EXECUTED 203d8: e5921010 ldr r1, [r2, #16] <== NOT EXECUTED 203dc: e1510004 cmp r1, r4 <== NOT EXECUTED 203e0: 0a00001b beq 20454 <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 203e4: e59f1138 ldr r1, [pc, #312] ; 20524 <== NOT EXECUTED 203e8: e4912004 ldr r2, [r1], #4 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); 203ec: e1510002 cmp r1, r2 <== NOT EXECUTED 203f0: 0a00000a beq 20420 <== 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 ) { 203f4: e5940024 ldr r0, [r4, #36] <== NOT EXECUTED 203f8: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 203fc: e1530000 cmp r3, r0 <== NOT EXECUTED 20400: 1a000003 bne 20414 <== NOT EXECUTED 20404: ea000012 b 20454 <== NOT EXECUTED 20408: e5923014 ldr r3, [r2, #20] <== NOT EXECUTED 2040c: e1500003 cmp r0, r3 <== NOT EXECUTED 20410: 0a00000f beq 20454 <== 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 ) { 20414: 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 ); 20418: e1510002 cmp r1, r2 <== NOT EXECUTED 2041c: 1afffff9 bne 20408 <== 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 ) 20420: e1a00004 mov r0, r4 <== NOT EXECUTED 20424: ebff8f86 bl 4244 <== NOT EXECUTED 20428: e3500001 cmp r0, #1 ; 0x1 <== NOT EXECUTED 2042c: 0a000008 beq 20454 <== 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 ) 20430: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 20434: e1a00004 mov r0, r4 <== NOT EXECUTED 20438: e1a0e00f mov lr, pc <== NOT EXECUTED 2043c: e593f028 ldr pc, [r3, #40] <== NOT EXECUTED 20440: e2505000 subs r5, r0, #0 ; 0x0 <== NOT EXECUTED 20444: 0a000014 beq 2049c <== NOT EXECUTED */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 20448: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED } 2044c: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 20450: 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 ); 20454: eb0032bc bl 2cf4c <__errno> <== NOT EXECUTED 20458: e3a03010 mov r3, #16 ; 0x10 <== NOT EXECUTED 2045c: e5803000 str r3, [r0] <== NOT EXECUTED 20460: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 20464: eafffff8 b 2044c <== 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 ); 20468: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 2046c: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 20470: 0a000004 beq 20488 <== NOT EXECUTED 20474: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 20478: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2047c: 11a0000d movne r0, sp <== NOT EXECUTED 20480: 11a0e00f movne lr, pc <== NOT EXECUTED 20484: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); 20488: eb0032af bl 2cf4c <__errno> <== NOT EXECUTED 2048c: e3a0300d mov r3, #13 ; 0xd <== NOT EXECUTED 20490: e5803000 str r3, [r0] <== NOT EXECUTED 20494: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 20498: eaffffeb b 2044c <== 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){ 2049c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 204a0: e1a00004 mov r0, r4 <== NOT EXECUTED 204a4: e1a0e00f mov lr, pc <== NOT EXECUTED 204a8: e593f02c ldr pc, [r3, #44] <== NOT EXECUTED 204ac: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 204b0: 1a00000d bne 204ec <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 204b4: e1a00004 mov r0, r4 <== NOT EXECUTED 204b8: eb0003ea bl 21468 <_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 ); 204bc: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 204c0: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 204c4: 0a000004 beq 204dc <== NOT EXECUTED 204c8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 204cc: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 204d0: 12840008 addne r0, r4, #8 ; 0x8 <== NOT EXECUTED 204d4: 11a0e00f movne lr, pc <== NOT EXECUTED 204d8: 112fff13 bxne r3 <== NOT EXECUTED free( mt_entry ); 204dc: e1a00004 mov r0, r4 <== NOT EXECUTED 204e0: ebff8e9c bl 3f58 <== NOT EXECUTED 204e4: e3a00000 mov r0, #0 ; 0x0 <== NOT EXECUTED 204e8: eaffffd7 b 2044c <== 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 ) 204ec: e1a00004 mov r0, r4 <== NOT EXECUTED 204f0: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 204f4: e1a0e00f mov lr, pc <== NOT EXECUTED 204f8: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED 204fc: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 20500: 0affffd0 beq 20448 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 20504: e1a00005 mov r0, r5 <== NOT EXECUTED 20508: ebffa010 bl 8550 <== 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 ); 2050c: eb00328e bl 2cf4c <__errno> <== NOT EXECUTED 20510: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 20514: e5803000 str r3, [r0] <== NOT EXECUTED 20518: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 2051c: eaffffca b 2044c <== NOT EXECUTED 20520: 0003f168 .word 0x0003f168 20524: 000591b0 .word 0x000591b0 00020528 : int utime( const char *path, const struct utimbuf *times ) { 20528: e92d4030 push {r4, r5, lr} <== NOT EXECUTED 2052c: e24dd010 sub sp, sp, #16 ; 0x10 <== NOT EXECUTED 20530: 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 ) ) 20534: e1a0200d mov r2, sp <== NOT EXECUTED 20538: e3a01000 mov r1, #0 ; 0x0 <== NOT EXECUTED 2053c: e3a03001 mov r3, #1 ; 0x1 <== NOT EXECUTED 20540: ebff8e2f bl 3e04 <== NOT EXECUTED 20544: e3500000 cmp r0, #0 ; 0x0 <== NOT EXECUTED 20548: e1a0500d mov r5, sp <== NOT EXECUTED 2054c: 1a00001b bne 205c0 <== NOT EXECUTED return -1; if ( !temp_loc.ops->utime_h ){ 20550: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED 20554: e5923030 ldr r3, [r2, #48] <== NOT EXECUTED 20558: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 2055c: 0a00000f beq 205a0 <== 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 ); 20560: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED 20564: e1a0000d mov r0, sp <== NOT EXECUTED 20568: e1a0e00f mov lr, pc <== NOT EXECUTED 2056c: e12fff13 bx r3 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 20570: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 20574: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 20578: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &temp_loc ); 2057c: 0a000004 beq 20594 <== NOT EXECUTED 20580: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 20584: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 20588: 11a0000d movne r0, sp <== NOT EXECUTED 2058c: 11a0e00f movne lr, pc <== NOT EXECUTED 20590: 112fff13 bxne r3 <== NOT EXECUTED return result; } 20594: e1a00004 mov r0, r4 <== NOT EXECUTED 20598: e28dd010 add sp, sp, #16 ; 0x10 <== NOT EXECUTED 2059c: 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 ); 205a0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 205a4: e3530000 cmp r3, #0 ; 0x0 <== NOT EXECUTED 205a8: 11a0000d movne r0, sp <== NOT EXECUTED 205ac: 11a0e00f movne lr, pc <== NOT EXECUTED 205b0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 205b4: eb003264 bl 2cf4c <__errno> <== NOT EXECUTED 205b8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 205bc: e5803000 str r3, [r0] <== NOT EXECUTED 205c0: e3e04000 mvn r4, #0 ; 0x0 <== NOT EXECUTED 205c4: eafffff2 b 20594 <== NOT EXECUTED 00001d68 : */ void vprintk( const char *fmt, va_list ap ) { 1d68: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 1d6c: e1a08000 mov r8, r0 char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 1d70: e5d00000 ldrb r0, [r0] 1d74: e3500000 cmp r0, #0 ; 0x0 */ void vprintk( const char *fmt, va_list ap ) { 1d78: e24dd01c sub sp, sp, #28 ; 0x1c 1d7c: e1a07001 mov r7, r1 char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 1d80: 0a0000a1 beq 200c 1d84: e59fa3bc ldr sl, [pc, #956] ; 2148 base = 0; sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { 1d88: e3500025 cmp r0, #37 ; 0x25 1d8c: 1a000059 bne 1ef8 fmt++; if (*fmt == '0' ) { 1d90: e5d80001 ldrb r0, [r8, #1] sign = 0; width = 0; minus = 0; lead = ' '; if (*fmt == '%') { fmt++; 1d94: e2881001 add r1, r8, #1 ; 0x1 if (*fmt == '0' ) { 1d98: e3500030 cmp r0, #48 ; 0x30 lead = '0'; fmt++; 1d9c: 05f10001 ldrbeq r0, [r1, #1]! width = 0; minus = 0; lead = ' '; if (*fmt == '%') { fmt++; if (*fmt == '0' ) { 1da0: 13a09020 movne r9, #32 ; 0x20 lead = '0'; fmt++; 1da4: 03a09030 moveq r9, #48 ; 0x30 } if (*fmt == '-' ) { 1da8: e350002d cmp r0, #45 ; 0x2d minus = 1; fmt++; 1dac: 05f10001 ldrbeq r0, [r1, #1]! 1db0: 03a03001 moveq r3, #1 ; 0x1 fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; } if (*fmt == '-' ) { 1db4: 13a02000 movne r2, #0 ; 0x0 minus = 1; fmt++; 1db8: 058d3000 streq r3, [sp] } while (*fmt >= '0' && *fmt <= '9' ) { 1dbc: e2403030 sub r3, r0, #48 ; 0x30 fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; } if (*fmt == '-' ) { 1dc0: 158d2000 strne r2, [sp] minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 1dc4: e3530009 cmp r3, #9 ; 0x9 1dc8: 83a04000 movhi r4, #0 ; 0x0 1dcc: 81a08001 movhi r8, r1 1dd0: 81a0b004 movhi fp, r4 1dd4: 8a00000b bhi 1e08 1dd8: e3a04000 mov r4, #0 ; 0x0 width *= 10; width += (*fmt - '0'); 1ddc: e1a03184 lsl r3, r4, #3 1de0: e1a02084 lsl r2, r4, #1 1de4: e0822003 add r2, r2, r3 1de8: e0822000 add r2, r2, r0 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 1dec: e5f10001 ldrb r0, [r1, #1]! 1df0: e2403030 sub r3, r0, #48 ; 0x30 1df4: e3530009 cmp r3, #9 ; 0x9 width *= 10; width += (*fmt - '0'); 1df8: e2424030 sub r4, r2, #48 ; 0x30 } if (*fmt == '-' ) { minus = 1; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 1dfc: 9afffff6 bls 1ddc 1e00: e1a0b004 mov fp, r4 1e04: e1a08001 mov r8, r1 width *= 10; width += (*fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 1e08: e350006c cmp r0, #108 ; 0x6c lflag = 1; c = *++fmt; 1e0c: 05d10001 ldrbeq r0, [r1, #1] } switch (c) { 1e10: e2403044 sub r3, r0, #68 ; 0x44 fmt++; } if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; 1e14: 02818001 addeq r8, r1, #1 ; 0x1 } switch (c) { 1e18: e3530034 cmp r3, #52 ; 0x34 1e1c: 979ff103 ldrls pc, [pc, r3, lsl #2] 1e20: ea000034 b 1ef8 1e24: 00002014 .word 0x00002014 <== NOT EXECUTED 1e28: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e2c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e30: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e34: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e38: 00002014 .word 0x00002014 <== NOT EXECUTED 1e3c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e40: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e44: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e48: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e4c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e50: 00001f18 .word 0x00001f18 <== NOT EXECUTED 1e54: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e58: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e5c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e60: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e64: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e68: 00002108 .word 0x00002108 <== NOT EXECUTED 1e6c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e70: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e74: 0000213c .word 0x0000213c <== NOT EXECUTED 1e78: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e7c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e80: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e84: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e88: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e8c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e90: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e94: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e98: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1e9c: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ea0: 000020f0 .word 0x000020f0 <== NOT EXECUTED 1ea4: 00002014 .word 0x00002014 <== NOT EXECUTED 1ea8: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1eac: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1eb0: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1eb4: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1eb8: 00002014 .word 0x00002014 <== NOT EXECUTED 1ebc: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ec0: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ec4: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ec8: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ecc: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ed0: 00001f18 .word 0x00001f18 <== NOT EXECUTED 1ed4: 0000213c .word 0x0000213c <== NOT EXECUTED 1ed8: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1edc: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ee0: 0000204c .word 0x0000204c <== NOT EXECUTED 1ee4: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ee8: 00002108 .word 0x00002108 <== NOT EXECUTED 1eec: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ef0: 00001ef8 .word 0x00001ef8 <== NOT EXECUTED 1ef4: 0000213c .word 0x0000213c <== 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); 1ef8: e1a0e00f mov lr, pc 1efc: e59af000 ldr pc, [sl] 1f00: e58d7004 str r7, [sp, #4] ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 1f04: e5f80001 ldrb r0, [r8, #1]! 1f08: e3500000 cmp r0, #0 ; 0x0 1f0c: 0a00003e beq 200c 1f10: e59d7004 ldr r7, [sp, #4] 1f14: eaffff9b b 1d88 break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 1f18: e3a03000 mov r3, #0 ; 0x0 <== NOT EXECUTED 1f1c: e3a06008 mov r6, #8 ; 0x8 <== NOT EXECUTED break; } /* switch*/ if (base) printNum(lflag ? va_arg(ap, long int) : (long int)va_arg(ap, int), 1f20: e5975000 ldr r5, [r7] 1f24: e2877004 add r7, r7, #4 ; 0x4 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 1f28: 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), 1f2c: e58d7004 str r7, [sp, #4] { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 1f30: 1a00003e bne 2030 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 1f34: e1a00005 mov r0, r5 1f38: e1a01006 mov r1, r6 1f3c: eb004026 bl 11fdc <__aeabi_uidiv> 1f40: e3500000 cmp r0, #0 ; 0x0 1f44: 01a04000 moveq r4, r0 1f48: 03a07001 moveq r7, #1 ; 0x1 1f4c: 0a000010 beq 1f94 1f50: e1a02005 mov r2, r5 1f54: e3a04000 mov r4, #0 ; 0x0 1f58: e1a05000 mov r5, r0 1f5c: ea000000 b 1f64 1f60: e1a05000 mov r5, r0 toPrint[count++] = (num - (n*base)); 1f64: e0030596 mul r3, r6, r5 1f68: e0633002 rsb r3, r3, r2 1f6c: e28d2008 add r2, sp, #8 ; 0x8 1f70: e7c23004 strb r3, [r2, r4] num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 1f74: e1a00005 mov r0, r5 1f78: e1a01006 mov r1, r6 1f7c: eb004016 bl 11fdc <__aeabi_uidiv> 1f80: e3500000 cmp r0, #0 ; 0x0 1f84: e1a02005 mov r2, r5 toPrint[count++] = (num - (n*base)); 1f88: e2844001 add r4, r4, #1 ; 0x1 num = -num; if (maxwidth) maxwidth--; } count = 0; while ((n = num / base) > 0) { 1f8c: 1afffff3 bne 1f60 1f90: e2847001 add r7, r4, #1 ; 0x1 toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 1f94: e28d201c add r2, sp, #28 ; 0x1c 1f98: e0823004 add r3, r2, r4 for (n=maxwidth ; n > count; n-- ) 1f9c: e157000b cmp r7, fp 1fa0: e1a0600b mov r6, fp count = 0; while ((n = num / base) > 0) { toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; 1fa4: e5435014 strb r5, [r3, #-20] for (n=maxwidth ; n > count; n-- ) 1fa8: 2a000006 bcs 1fc8 1fac: e20940ff and r4, r9, #255 ; 0xff 1fb0: e2466001 sub r6, r6, #1 ; 0x1 BSP_output_char(lead); 1fb4: e1a00004 mov r0, r4 1fb8: e1a0e00f mov lr, pc 1fbc: e59af000 ldr pc, [sl] toPrint[count++] = (num - (n*base)); num = n; } toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) 1fc0: e1570006 cmp r7, r6 1fc4: 3afffff9 bcc 1fb0 BSP_output_char(lead); for (n = 0; n < count; n++) { 1fc8: e3570000 cmp r7, #0 ; 0x0 1fcc: 0affffcc beq 1f04 1fd0: e28d301c add r3, sp, #28 ; 0x1c 1fd4: e3a04000 mov r4, #0 ; 0x0 1fd8: e0835007 add r5, r3, r7 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 1fdc: e0643005 rsb r3, r4, r5 1fe0: e5532015 ldrb r2, [r3, #-21] 1fe4: e59f3160 ldr r3, [pc, #352] ; 214c toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 1fe8: e2844001 add r4, r4, #1 ; 0x1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 1fec: e7d30002 ldrb r0, [r3, r2] 1ff0: e1a0e00f mov lr, pc 1ff4: e59af000 ldr pc, [sl] toPrint[count++] = num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { 1ff8: e1570004 cmp r7, r4 1ffc: 8afffff6 bhi 1fdc ) { char c, *str; int lflag, base, sign, width, lead, minus; for (; *fmt != '\0'; fmt++) { 2000: e5f80001 ldrb r0, [r8, #1]! 2004: e3500000 cmp r0, #0 ; 0x0 2008: 1affffc0 bne 1f10 base, sign, width, lead); } else { BSP_output_char(*fmt); } } } 200c: e28dd01c add sp, sp, #28 ; 0x1c 2010: 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), 2014: e5975000 ldr r5, [r7] if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2018: 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), 201c: e2877004 add r7, r7, #4 ; 0x4 { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 2020: e0133fa5 ands r3, r3, r5, lsr #31 if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2024: 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), 2028: e58d7004 str r7, [sp, #4] { long unsigned int n; int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { 202c: 0affffc0 beq 1f34 BSP_output_char('-'); 2030: e3a0002d mov r0, #45 ; 0x2d <== NOT EXECUTED 2034: e1a0e00f mov lr, pc <== NOT EXECUTED 2038: e59af000 ldr pc, [sl] <== NOT EXECUTED num = -num; if (maxwidth) maxwidth--; 203c: e35b0000 cmp fp, #0 ; 0x0 <== NOT EXECUTED int count; char toPrint[20]; if ( (sign == 1) && ((long)num < 0) ) { BSP_output_char('-'); num = -num; 2040: e2655000 rsb r5, r5, #0 ; 0x0 <== NOT EXECUTED if (maxwidth) maxwidth--; 2044: 124bb001 subne fp, fp, #1 ; 0x1 <== NOT EXECUTED 2048: eaffffb9 b 1f34 <== NOT EXECUTED case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 204c: e5979000 ldr r9, [r7] /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 2050: e5d93000 ldrb r3, [r9] case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 2054: e2877004 add r7, r7, #4 ; 0x4 /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 2058: e3530000 cmp r3, #0 ; 0x0 case 'p': base = 16; sign = 0; break; case 's': { int i, len; char *s; str = va_arg(ap, char *); 205c: e58d7004 str r7, [sp, #4] /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 2060: 01a06003 moveq r6, r3 2064: 0a000004 beq 207c 2068: e3a06000 mov r6, #0 ; 0x0 206c: e2866001 add r6, r6, #1 ; 0x1 2070: e7d93006 ldrb r3, [r9, r6] 2074: e3530000 cmp r3, #0 ; 0x0 2078: 1afffffb bne 206c ; /* leading spaces */ if ( !minus ) 207c: e59d2000 ldr r2, [sp] 2080: e3520000 cmp r2, #0 ; 0x0 2084: 0a000022 beq 2114 for ( i=len ; i 2098: e5d90000 ldrb r0, [r9] 209c: e3500000 cmp r0, #0 ; 0x0 20a0: 0a000005 beq 20bc 20a4: e1a04009 mov r4, r9 BSP_output_char(*str); 20a8: e1a0e00f mov lr, pc 20ac: e59af000 ldr pc, [sl] if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) 20bc: e59d3000 ldr r3, [sp] 20c0: e3530000 cmp r3, #0 ; 0x0 20c4: 0affff8e beq 1f04 for ( i=len ; i 20d0: e1a04006 mov r4, r6 20d4: e2844001 add r4, r4, #1 ; 0x1 BSP_output_char(' '); 20d8: e3a00020 mov r0, #32 ; 0x20 20dc: e1a0e00f mov lr, pc 20e0: e59af000 ldr pc, [sl] for ( i=0 ; i 20ec: eaffff84 b 1f04 BSP_output_char(' '); } break; case 'c': BSP_output_char(va_arg(ap, int)); 20f0: e5d70000 ldrb r0, [r7] <== NOT EXECUTED 20f4: e2877004 add r7, r7, #4 ; 0x4 <== NOT EXECUTED 20f8: e58d7004 str r7, [sp, #4] <== NOT EXECUTED 20fc: e1a0e00f mov lr, pc <== NOT EXECUTED 2100: e59af000 ldr pc, [sl] <== NOT EXECUTED 2104: eaffff7e b 1f04 <== NOT EXECUTED if ((c = *fmt) == 'l') { lflag = 1; c = *++fmt; } switch (c) { 2108: e3a03000 mov r3, #0 ; 0x0 210c: e3a0600a mov r6, #10 ; 0xa 2110: eaffff82 b 1f20 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 211c: e1a05006 mov r5, r6 <== NOT EXECUTED 2120: e2855001 add r5, r5, #1 ; 0x1 <== NOT EXECUTED BSP_output_char(' '); 2124: e3a00020 mov r0, #32 ; 0x20 <== NOT EXECUTED 2128: e1a0e00f mov lr, pc <== NOT EXECUTED 212c: e59af000 ldr pc, [sl] <== NOT EXECUTED for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i <== NOT EXECUTED 2138: eaffffd4 b 2090 <== NOT EXECUTED break; case 'c': BSP_output_char(va_arg(ap, int)); break; default: BSP_output_char(c); 213c: e3a03000 mov r3, #0 ; 0x0 2140: e3a06010 mov r6, #16 ; 0x10 2144: eaffff75 b 1f20 2148: 000145f8 .word 0x000145f8 214c: 00015808 .word 0x00015808 00013dac : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 13dac: e59f30c4 ldr r3, [pc, #196] ; 13e78 13db0: e593c000 ldr ip, [r3] 13db4: e150000c cmp r0, ip ssize_t write( int fd, const void *buffer, size_t count ) { 13db8: e92d4070 push {r4, r5, r6, lr} 13dbc: e1a06001 mov r6, r1 13dc0: e1a05002 mov r5, r2 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 13dc4: 2a00001c bcs 13e3c iop = rtems_libio_iop( fd ); 13dc8: e1a03200 lsl r3, r0, #4 13dcc: e0433100 sub r3, r3, r0, lsl #2 13dd0: e0833000 add r3, r3, r0 13dd4: e59f00a0 ldr r0, [pc, #160] ; 13e7c 13dd8: e590c000 ldr ip, [r0] 13ddc: e1a03103 lsl r3, r3, #2 13de0: e08c4003 add r4, ip, r3 rtems_libio_check_is_open( iop ); 13de4: e594300c ldr r3, [r4, #12] 13de8: e3130c01 tst r3, #256 ; 0x100 13dec: 0a000012 beq 13e3c rtems_libio_check_buffer( buffer ); 13df0: e3510000 cmp r1, #0 ; 0x0 13df4: 0a000015 beq 13e50 rtems_libio_check_count( count ); 13df8: e3520000 cmp r2, #0 ; 0x0 13dfc: 01a00002 moveq r0, r2 13e00: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 13e04: e3130004 tst r3, #4 ; 0x4 13e08: 0a000010 beq 13e50 /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 13e0c: e5943030 ldr r3, [r4, #48] 13e10: e593300c ldr r3, [r3, #12] 13e14: e3530000 cmp r3, #0 ; 0x0 13e18: 0a000011 beq 13e64 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 13e1c: e1a00004 mov r0, r4 13e20: e1a0e00f mov lr, pc 13e24: e12fff13 bx r3 if ( rc > 0 ) 13e28: e3500000 cmp r0, #0 ; 0x0 iop->offset += rc; 13e2c: c5943008 ldrgt r3, [r4, #8] 13e30: c0833000 addgt r3, r3, r0 13e34: c5843008 strgt r3, [r4, #8] return rc; } 13e38: 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 ); 13e3c: ebffdd3b bl b330 <__errno> <== NOT EXECUTED 13e40: e3a03009 mov r3, #9 ; 0x9 <== NOT EXECUTED 13e44: e5803000 str r3, [r0] <== NOT EXECUTED 13e48: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13e4c: 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 ); 13e50: ebffdd36 bl b330 <__errno> <== NOT EXECUTED 13e54: e3a03016 mov r3, #22 ; 0x16 <== NOT EXECUTED 13e58: e5803000 str r3, [r0] <== NOT EXECUTED 13e5c: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13e60: 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 ); 13e64: ebffdd31 bl b330 <__errno> <== NOT EXECUTED 13e68: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 13e6c: e5803000 str r3, [r0] <== NOT EXECUTED 13e70: e3e00000 mvn r0, #0 ; 0x0 <== NOT EXECUTED 13e74: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 13e78: 00014444 .word 0x00014444 13e7c: 00015ed8 .word 0x00015ed8