=============================================================================== 30006c84 : static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 30006c84: e3a03000 mov r3, #0 <== NOT EXECUTED 30006c88: e5803084 str r3, [r0, #132] ; 0x84 <== NOT EXECUTED 30006c8c: e5803088 str r3, [r0, #136] ; 0x88 <== NOT EXECUTED #else the_thread->cpu_time_used = 0; #endif } 30006c90: e12fff1e bx lr <== NOT EXECUTED =============================================================================== 3000da30 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 3000da30: e5903000 ldr r3, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 3000da34: e5902010 ldr r2, [r0, #16] switch( node->type ) { 3000da38: e593304c ldr r3, [r3, #76] ; 0x4c ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 3000da3c: e5922034 ldr r2, [r2, #52] ; 0x34 switch( node->type ) { 3000da40: e2433001 sub r3, r3, #1 3000da44: e3530006 cmp r3, #6 3000da48: 979ff103 ldrls pc, [pc, r3, lsl #2] 3000da4c: ea000008 b 3000da74 <== NOT EXECUTED 3000da50: 3000da9c .word 0x3000da9c <== NOT EXECUTED 3000da54: 3000daac .word 0x3000daac <== NOT EXECUTED 3000da58: 3000da8c .word 0x3000da8c <== NOT EXECUTED 3000da5c: 3000da8c .word 0x3000da8c <== NOT EXECUTED 3000da60: 3000da7c .word 0x3000da7c <== NOT EXECUTED 3000da64: 3000da7c .word 0x3000da7c <== NOT EXECUTED 3000da68: 3000da6c .word 0x3000da6c <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = fs_info->fifo_handlers; 3000da6c: e5923010 ldr r3, [r2, #16] 3000da70: e5803008 str r3, [r0, #8] break; } return 0; } 3000da74: e3a00000 mov r0, #0 3000da78: e12fff1e bx lr break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 3000da7c: e5923008 ldr r3, [r2, #8] 3000da80: e5803008 str r3, [r0, #8] loc->handlers = fs_info->fifo_handlers; break; } return 0; } 3000da84: e3a00000 mov r0, #0 3000da88: e12fff1e bx lr case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 3000da8c: e59f3028 ldr r3, [pc, #40] ; 3000dabc 3000da90: e5803008 str r3, [r0, #8] loc->handlers = fs_info->fifo_handlers; break; } return 0; } 3000da94: e3a00000 mov r0, #0 3000da98: e12fff1e bx lr 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; 3000da9c: e592300c ldr r3, [r2, #12] 3000daa0: e5803008 str r3, [r0, #8] loc->handlers = fs_info->fifo_handlers; break; } return 0; } 3000daa4: e3a00000 mov r0, #0 3000daa8: e12fff1e bx lr switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 3000daac: e59f300c ldr r3, [pc, #12] ; 3000dac0 3000dab0: e5803008 str r3, [r0, #8] loc->handlers = fs_info->fifo_handlers; break; } return 0; } 3000dab4: e3a00000 mov r0, #0 3000dab8: e12fff1e bx lr =============================================================================== 3000d7ac : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3000d7ac: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 3000d7b0: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED 3000d7b4: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED 3000d7b8: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 3000d7bc: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3000d7c0: e1a07821 lsr r7, r1, #16 <== NOT EXECUTED 3000d7c4: e1a06822 lsr r6, r2, #16 <== NOT EXECUTED /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 3000d7c8: eb0003da bl 3000e738 <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 3000d7cc: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED 3000d7d0: e3500000 cmp r0, #0 <== NOT EXECUTED 3000d7d4: 11550000 cmpne r5, r0 <== NOT EXECUTED 3000d7d8: 03a05000 moveq r5, #0 <== NOT EXECUTED 3000d7dc: 13a05001 movne r5, #1 <== NOT EXECUTED 3000d7e0: 1a000009 bne 3000d80c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 3000d7e4: e1c473bc strh r7, [r4, #60] ; 0x3c <== NOT EXECUTED jnode->st_gid = group; 3000d7e8: e1c463be strh r6, [r4, #62] ; 0x3e <== NOT EXECUTED IMFS_update_ctime( jnode ); 3000d7ec: e1a0000d mov r0, sp <== NOT EXECUTED 3000d7f0: e1a01005 mov r1, r5 <== NOT EXECUTED 3000d7f4: ebffe350 bl 3000653c <== NOT EXECUTED 3000d7f8: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; 3000d7fc: e1a00005 mov r0, r5 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); 3000d800: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } 3000d804: e28dd008 add sp, sp, #8 <== NOT EXECUTED 3000d808: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 3000d80c: eb001219 bl 30012078 <__errno> <== NOT EXECUTED 3000d810: e3a03001 mov r3, #1 <== NOT EXECUTED 3000d814: e5803000 str r3, [r0] <== NOT EXECUTED 3000d818: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000d81c: eafffff8 b 3000d804 <== NOT EXECUTED =============================================================================== 3000db78 : const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 3000db78: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} char token[ IMFS_NAME_MAX + 1 ]; rtems_filesystem_location_info_t newloc; IMFS_jnode_t *node; int result; if ( !rtems_libio_is_valid_perms( flags ) ) { 3000db7c: e3d25007 bics r5, r2, #7 const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 3000db80: e24dd040 sub sp, sp, #64 ; 0x40 3000db84: e58d2000 str r2, [sp] 3000db88: e1a0a000 mov sl, r0 3000db8c: e1a04001 mov r4, r1 3000db90: e1a07003 mov r7, r3 char token[ IMFS_NAME_MAX + 1 ]; rtems_filesystem_location_info_t newloc; IMFS_jnode_t *node; int result; if ( !rtems_libio_is_valid_perms( flags ) ) { 3000db94: 1a000081 bne 3000dda0 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 3000db98: e5936000 ldr r6, [r3] 3000db9c: e28d8004 add r8, sp, #4 3000dba0: e28d903c add r9, sp, #60 ; 0x3c * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 3000dba4: e1a02008 mov r2, r8 3000dba8: e1a03009 mov r3, r9 3000dbac: e08a0005 add r0, sl, r5 3000dbb0: e1a01004 mov r1, r4 3000dbb4: eb0001df bl 3000e338 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 3000dbb8: e5973000 ldr r3, [r7] * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 3000dbbc: e1a0b000 mov fp, r0 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 3000dbc0: e3530000 cmp r3, #0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 3000dbc4: e59d203c ldr r2, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 3000dbc8: 0a00004e beq 3000dd08 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 3000dbcc: e3500000 cmp r0, #0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 3000dbd0: e0624004 rsb r4, r2, r4 i += len; 3000dbd4: e0855002 add r5, r5, r2 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 3000dbd8: 1a00000f bne 3000dc1c * 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 ) { 3000dbdc: e593204c ldr r2, [r3, #76] ; 0x4c 3000dbe0: e3520001 cmp r2, #1 3000dbe4: 0a000068 beq 3000dd8c flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 3000dbe8: e1a00007 mov r0, r7 3000dbec: ebffff8f bl 3000da30 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 3000dbf0: e59d1000 ldr r1, [sp] flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 3000dbf4: e1a06000 mov r6, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 3000dbf8: e1a00007 mov r0, r7 3000dbfc: ebffffb0 bl 3000dac4 3000dc00: e3500000 cmp r0, #0 3000dc04: 1a000036 bne 3000dce4 rtems_set_errno_and_return_minus_one( EACCES ); 3000dc08: eb00111a bl 30012078 <__errno> <== NOT EXECUTED 3000dc0c: e3a0300d mov r3, #13 <== NOT EXECUTED 3000dc10: e5803000 str r3, [r0] <== NOT EXECUTED 3000dc14: e3e06000 mvn r6, #0 <== NOT EXECUTED 3000dc18: ea000031 b 3000dce4 <== NOT EXECUTED /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 3000dc1c: e596104c ldr r1, [r6, #76] ; 0x4c 3000dc20: e3510001 cmp r1, #1 3000dc24: 0a000031 beq 3000dcf0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 3000dc28: e35b0003 cmp fp, #3 if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 3000dc2c: e1a06003 mov r6, r3 switch( type ) { 3000dc30: 0a000006 beq 3000dc50 3000dc34: e35b0004 cmp fp, #4 3000dc38: 0a000025 beq 3000dcd4 3000dc3c: e35b0002 cmp fp, #2 3000dc40: 0a000013 beq 3000dc94 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 3000dc44: e35b0004 cmp fp, #4 3000dc48: 1affffd5 bne 3000dba4 3000dc4c: eaffffe2 b 3000dbdc <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 3000dc50: e593304c ldr r3, [r3, #76] ; 0x4c 3000dc54: e3530003 cmp r3, #3 3000dc58: 0a00002f beq 3000dd1c * It would be a design error if we evaluated the link and * was broken. */ IMFS_assert( node ); } else if ( node->type == IMFS_SYM_LINK ) { 3000dc5c: e3530004 cmp r3, #4 3000dc60: 0a000058 beq 3000ddc8 } /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 3000dc64: e3530001 cmp r3, #1 3000dc68: 1a000051 bne 3000ddb4 /* * 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 ) { 3000dc6c: e596e05c ldr lr, [r6, #92] ; 0x5c 3000dc70: e35e0000 cmp lr, #0 3000dc74: 1a000047 bne 3000dd98 } /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 3000dc78: e1a00006 mov r0, r6 3000dc7c: e1a01008 mov r1, r8 3000dc80: eb00018b bl 3000e2b4 if ( !node ) 3000dc84: e2506000 subs r6, r0, #0 3000dc88: 0a00001e beq 3000dd08 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 3000dc8c: e5876000 str r6, [r7] 3000dc90: eaffffc3 b 3000dba4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 3000dc94: e59f1154 ldr r1, [pc, #340] ; 3000ddf0 3000dc98: e5912000 ldr r2, [r1] 3000dc9c: e5922018 ldr r2, [r2, #24] 3000dca0: e1520003 cmp r2, r3 3000dca4: 0affffbe beq 3000dba4 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 3000dca8: e597e010 ldr lr, [r7, #16] /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 3000dcac: e59e201c ldr r2, [lr, #28] 3000dcb0: e1520003 cmp r2, r3 3000dcb4: 0a00001e beq 3000dd34 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 3000dcb8: e5936008 ldr r6, [r3, #8] 3000dcbc: e3560000 cmp r6, #0 3000dcc0: 1afffff1 bne 3000dc8c rtems_set_errno_and_return_minus_one( ENOENT ); 3000dcc4: eb0010eb bl 30012078 <__errno> <== NOT EXECUTED 3000dcc8: e3e06000 mvn r6, #0 <== NOT EXECUTED 3000dccc: e580b000 str fp, [r0] <== NOT EXECUTED 3000dcd0: ea000003 b 3000dce4 <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 3000dcd4: eb0010e7 bl 30012078 <__errno> <== NOT EXECUTED 3000dcd8: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 3000dcdc: e5803000 str r3, [r0] <== NOT EXECUTED 3000dce0: e3e06000 mvn r6, #0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 3000dce4: e1a00006 mov r0, r6 3000dce8: e28dd040 add sp, sp, #64 ; 0x40 3000dcec: 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 ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 3000dcf0: e1a00007 mov r0, r7 3000dcf4: ebffff72 bl 3000dac4 3000dcf8: e3500000 cmp r0, #0 3000dcfc: 0affffc1 beq 3000dc08 3000dd00: e5973000 ldr r3, [r7] 3000dd04: eaffffc7 b 3000dc28 /* * 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 ); 3000dd08: eb0010da bl 30012078 <__errno> 3000dd0c: e3a03002 mov r3, #2 3000dd10: e5803000 str r3, [r0] 3000dd14: e3e06000 mvn r6, #0 3000dd18: eafffff1 b 3000dce4 case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 3000dd1c: e1a00007 mov r0, r7 <== NOT EXECUTED 3000dd20: e3a01000 mov r1, #0 <== NOT EXECUTED 3000dd24: ebffff80 bl 3000db2c <== NOT EXECUTED node = pathloc->node_access; 3000dd28: e5976000 ldr r6, [r7] <== NOT EXECUTED 3000dd2c: e596304c ldr r3, [r6, #76] ; 0x4c <== NOT EXECUTED 3000dd30: eaffffcb b 3000dc64 <== 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; 3000dd34: e28ee008 add lr, lr, #8 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 3000dd38: e28d6028 add r6, sp, #40 ; 0x28 3000dd3c: e8be000f ldm lr!, {r0, r1, r2, r3} 3000dd40: e8a6000f stmia r6!, {r0, r1, r2, r3} *pathloc = newloc; 3000dd44: e28dc028 add ip, sp, #40 ; 0x28 3000dd48: e8bc000f ldm ip!, {r0, r1, r2, r3} * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 3000dd4c: e59ec000 ldr ip, [lr] *pathloc = newloc; 3000dd50: e1a0e007 mov lr, r7 3000dd54: e8ae000f stmia lr!, {r0, r1, r2, r3} return (*pathloc->ops->evalpath_h)( &pathname[i-len], 3000dd58: e59d103c ldr r1, [sp, #60] ; 0x3c */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 3000dd5c: e58ec000 str ip, [lr] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 3000dd60: e0610005 rsb r0, r1, r5 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 3000dd64: e586c000 str ip, [r6] *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 3000dd68: e08a0000 add r0, sl, r0 3000dd6c: e597c00c ldr ip, [r7, #12] 3000dd70: e0841001 add r1, r4, r1 3000dd74: e59d2000 ldr r2, [sp] 3000dd78: e1a03007 mov r3, r7 3000dd7c: e1a0e00f mov lr, pc 3000dd80: e59cf000 ldr pc, [ip] 3000dd84: e1a06000 mov r6, r0 3000dd88: eaffffd5 b 3000dce4 * * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { 3000dd8c: e593e05c ldr lr, [r3, #92] ; 0x5c 3000dd90: e35e0000 cmp lr, #0 3000dd94: 0affff93 beq 3000dbe8 newloc = node->info.directory.mt_fs->mt_fs_root; 3000dd98: e28ee01c add lr, lr, #28 3000dd9c: eaffffe5 b 3000dd38 rtems_filesystem_location_info_t newloc; IMFS_jnode_t *node; int result; if ( !rtems_libio_is_valid_perms( flags ) ) { rtems_set_errno_and_return_minus_one( EIO ); 3000dda0: eb0010b4 bl 30012078 <__errno> <== NOT EXECUTED 3000dda4: e3a03005 mov r3, #5 <== NOT EXECUTED 3000dda8: e5803000 str r3, [r0] <== NOT EXECUTED 3000ddac: e3e06000 mvn r6, #0 <== NOT EXECUTED 3000ddb0: eaffffcb b 3000dce4 <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 3000ddb4: eb0010af bl 30012078 <__errno> <== NOT EXECUTED 3000ddb8: e3a03014 mov r3, #20 <== NOT EXECUTED 3000ddbc: e5803000 str r3, [r0] <== NOT EXECUTED 3000ddc0: e3e06000 mvn r6, #0 <== NOT EXECUTED 3000ddc4: eaffffc6 b 3000dce4 <== NOT EXECUTED * was broken. */ IMFS_assert( node ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 3000ddc8: e1a00007 mov r0, r7 <== NOT EXECUTED 3000ddcc: e3a01000 mov r1, #0 <== NOT EXECUTED 3000ddd0: eb000007 bl 3000ddf4 <== NOT EXECUTED /* * In contrast to a hard link, it is possible to have a broken * symbolic link. */ node = pathloc->node_access; if ( result == -1 ) 3000ddd4: e3700001 cmn r0, #1 <== NOT EXECUTED * was broken. */ IMFS_assert( node ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 3000ddd8: e1a06000 mov r6, r0 <== NOT EXECUTED /* * In contrast to a hard link, it is possible to have a broken * symbolic link. */ node = pathloc->node_access; 3000dddc: e5973000 ldr r3, [r7] <== NOT EXECUTED if ( result == -1 ) 3000dde0: 0affffbf beq 3000dce4 <== NOT EXECUTED /* * In contrast to a hard link, it is possible to have a broken * symbolic link. */ node = pathloc->node_access; 3000dde4: e1a06003 mov r6, r3 <== NOT EXECUTED 3000dde8: e593304c ldr r3, [r3, #76] ; 0x4c <== NOT EXECUTED 3000ddec: eaffff9c b 3000dc64 <== NOT EXECUTED =============================================================================== 3000df5c : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 3000df5c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 3000df60: e24dd040 sub sp, sp, #64 ; 0x40 3000df64: e1a06001 mov r6, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 3000df68: e5915000 ldr r5, [r1] int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 3000df6c: e1a0a000 mov sl, r0 3000df70: e58d2000 str r2, [sp] node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 3000df74: eb001429 bl 30013020 const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { int i = 0; 3000df78: e3a07000 mov r7, #0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 3000df7c: e1a04000 mov r4, r0 3000df80: e28d8004 add r8, sp, #4 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 3000df84: e1a01004 mov r1, r4 3000df88: e28d303c add r3, sp, #60 ; 0x3c 3000df8c: e08a0007 add r0, sl, r7 3000df90: e1a02008 mov r2, r8 3000df94: eb0000e7 bl 3000e338 pathlen -= len; i += len; if ( !pathloc->node_access ) 3000df98: e5963000 ldr r3, [r6] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 3000df9c: e59db03c ldr fp, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 3000dfa0: e3530000 cmp r3, #0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 3000dfa4: e1a09000 mov r9, r0 pathlen -= len; 3000dfa8: e06b4004 rsb r4, fp, r4 i += len; if ( !pathloc->node_access ) 3000dfac: 0a000035 beq 3000e088 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 3000dfb0: e3500000 cmp r0, #0 3000dfb4: 1a000006 bne 3000dfd4 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 3000dfb8: eb00102e bl 30012078 <__errno> 3000dfbc: e3a03011 mov r3, #17 3000dfc0: e5803000 str r3, [r0] 3000dfc4: e3e05000 mvn r5, #0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 3000dfc8: e1a00005 mov r0, r5 3000dfcc: e28dd040 add sp, sp, #64 ; 0x40 3000dfd0: 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 ) 3000dfd4: e595104c ldr r1, [r5, #76] ; 0x4c 3000dfd8: e3510001 cmp r1, #1 3000dfdc: 0a000044 beq 3000e0f4 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 3000dfe0: e087700b add r7, r7, fp if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 3000dfe4: e1a05003 mov r5, r3 switch( type ) { 3000dfe8: e3590004 cmp r9, #4 3000dfec: 979ff109 ldrls pc, [pc, r9, lsl #2] 3000dff0: eaffffe3 b 3000df84 <== NOT EXECUTED 3000dff4: 3000dfb8 .word 0x3000dfb8 <== NOT EXECUTED 3000dff8: 3000df84 .word 0x3000df84 <== NOT EXECUTED 3000dffc: 3000e058 .word 0x3000e058 <== NOT EXECUTED 3000e000: 3000e008 .word 0x3000e008 <== NOT EXECUTED 3000e004: 3000e09c .word 0x3000e09c <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 3000e008: e593304c ldr r3, [r3, #76] ; 0x4c 3000e00c: e3530003 cmp r3, #3 3000e010: 0a00006a beq 3000e1c0 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 3000e014: e3530004 cmp r3, #4 3000e018: 0a000068 beq 3000e1c0 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 3000e01c: e3550000 cmp r5, #0 3000e020: 0a00005f beq 3000e1a4 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 3000e024: e595304c ldr r3, [r5, #76] ; 0x4c 3000e028: e3530001 cmp r3, #1 3000e02c: 1a00005c bne 3000e1a4 /* * 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 ) { 3000e030: e595c05c ldr ip, [r5, #92] ; 0x5c 3000e034: e35c0000 cmp ip, #0 3000e038: 1a00005e bne 3000e1b8 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 3000e03c: e1a00005 mov r0, r5 3000e040: e1a01008 mov r1, r8 3000e044: eb00009a bl 3000e2b4 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 3000e048: e2505000 subs r5, r0, #0 3000e04c: 0a000017 beq 3000e0b0 done = true; else pathloc->node_access = node; 3000e050: e5865000 str r5, [r6] 3000e054: eaffffca b 3000df84 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 3000e058: e59f1180 ldr r1, [pc, #384] ; 3000e1e0 3000e05c: e5912000 ldr r2, [r1] 3000e060: e5922018 ldr r2, [r2, #24] 3000e064: e1530002 cmp r3, r2 3000e068: 0affffc5 beq 3000df84 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 3000e06c: e596c010 ldr ip, [r6, #16] 3000e070: e59c201c ldr r2, [ip, #28] 3000e074: e1530002 cmp r3, r2 3000e078: 0a000023 beq 3000e10c *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 3000e07c: e5935008 ldr r5, [r3, #8] 3000e080: e3550000 cmp r5, #0 3000e084: 1afffff1 bne 3000e050 * 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 ); 3000e088: eb000ffa bl 30012078 <__errno> <== NOT EXECUTED 3000e08c: e3a03002 mov r3, #2 <== NOT EXECUTED 3000e090: e5803000 str r3, [r0] <== NOT EXECUTED 3000e094: e3e05000 mvn r5, #0 <== NOT EXECUTED 3000e098: eaffffca b 3000dfc8 <== 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 ); 3000e09c: eb000ff5 bl 30012078 <__errno> <== NOT EXECUTED 3000e0a0: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED 3000e0a4: e5803000 str r3, [r0] <== NOT EXECUTED 3000e0a8: e3e05000 mvn r5, #0 <== NOT EXECUTED 3000e0ac: eaffffc5 b 3000dfc8 <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 3000e0b0: e59d303c ldr r3, [sp, #60] ; 0x3c 3000e0b4: e59d1000 ldr r1, [sp] 3000e0b8: e0633007 rsb r3, r3, r7 3000e0bc: e08a3003 add r3, sl, r3 3000e0c0: e5813000 str r3, [r1] /* * 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++) { 3000e0c4: e7da0007 ldrb r0, [sl, r7] 3000e0c8: e08a4007 add r4, sl, r7 3000e0cc: e3500000 cmp r0, #0 3000e0d0: 1a000003 bne 3000e0e4 3000e0d4: ea000021 b 3000e160 3000e0d8: e5f40001 ldrb r0, [r4, #1]! <== NOT EXECUTED 3000e0dc: e3500000 cmp r0, #0 <== NOT EXECUTED 3000e0e0: 0a00001e beq 3000e160 <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) 3000e0e4: ebffe4ac bl 3000739c <== NOT EXECUTED 3000e0e8: e3500000 cmp r0, #0 <== NOT EXECUTED 3000e0ec: 1afffff9 bne 3000e0d8 <== NOT EXECUTED 3000e0f0: eaffffe4 b 3000e088 <== NOT EXECUTED * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 3000e0f4: e1a00006 mov r0, r6 3000e0f8: ebfffe71 bl 3000dac4 3000e0fc: e3500000 cmp r0, #0 3000e100: 0a000022 beq 3000e190 3000e104: e5963000 ldr r3, [r6] 3000e108: eaffffb4 b 3000dfe0 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 3000e10c: e28cc008 add ip, ip, #8 * 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; 3000e110: e28d4028 add r4, sp, #40 ; 0x28 3000e114: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000e118: e8a4000f stmia r4!, {r0, r1, r2, r3} *pathloc = newloc; 3000e11c: e28de028 add lr, sp, #40 ; 0x28 3000e120: e8be000f ldm lr!, {r0, r1, r2, r3} 3000e124: e1a0e006 mov lr, r6 * 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; 3000e128: e59cc000 ldr ip, [ip] *pathloc = newloc; 3000e12c: e8ae000f stmia lr!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 3000e130: e59d003c ldr r0, [sp, #60] ; 0x3c * 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; 3000e134: e58ec000 str ip, [lr] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 3000e138: e0600007 rsb r0, r0, r7 * 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; 3000e13c: e584c000 str ip, [r4] *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 3000e140: e596300c ldr r3, [r6, #12] 3000e144: e08a0000 add r0, sl, r0 3000e148: e1a01006 mov r1, r6 3000e14c: e59d2000 ldr r2, [sp] 3000e150: e1a0e00f mov lr, pc 3000e154: e593f004 ldr pc, [r3, #4] 3000e158: e1a05000 mov r5, r0 3000e15c: eaffff99 b 3000dfc8 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 3000e160: e1a00006 mov r0, r6 3000e164: ebfffe31 bl 3000da30 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) 3000e168: e5963000 ldr r3, [r6] /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 3000e16c: e1a05000 mov r5, r0 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) 3000e170: e593304c ldr r3, [r3, #76] ; 0x4c 3000e174: e3530001 cmp r3, #1 3000e178: 1a000009 bne 3000e1a4 /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 3000e17c: e1a00006 mov r0, r6 3000e180: e3a01003 mov r1, #3 3000e184: ebfffe4e bl 3000dac4 3000e188: e3500000 cmp r0, #0 3000e18c: 1affff8d bne 3000dfc8 rtems_set_errno_and_return_minus_one( EACCES ); 3000e190: eb000fb8 bl 30012078 <__errno> 3000e194: e3a0300d mov r3, #13 3000e198: e5803000 str r3, [r0] 3000e19c: e3e05000 mvn r5, #0 3000e1a0: eaffff88 b 3000dfc8 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 3000e1a4: eb000fb3 bl 30012078 <__errno> <== NOT EXECUTED 3000e1a8: e3a03014 mov r3, #20 <== NOT EXECUTED 3000e1ac: e5803000 str r3, [r0] <== NOT EXECUTED 3000e1b0: e3e05000 mvn r5, #0 <== NOT EXECUTED 3000e1b4: eaffff83 b 3000dfc8 <== 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; 3000e1b8: e28cc01c add ip, ip, #28 3000e1bc: eaffffd3 b 3000e110 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 3000e1c0: e1a00006 mov r0, r6 <== NOT EXECUTED 3000e1c4: e3a01000 mov r1, #0 <== NOT EXECUTED 3000e1c8: ebffff2e bl 3000de88 <== NOT EXECUTED if ( result == -1 ) 3000e1cc: e3700001 cmn r0, #1 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 3000e1d0: e1a05000 mov r5, r0 <== NOT EXECUTED if ( result == -1 ) 3000e1d4: 0affff7b beq 3000dfc8 <== NOT EXECUTED 3000e1d8: e5965000 ldr r5, [r6] <== NOT EXECUTED 3000e1dc: eaffff8e b 3000e01c <== NOT EXECUTED =============================================================================== 3000db2c : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000db2c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_assert( jnode->type == IMFS_HARD_LINK ); /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 3000db30: e5903000 ldr r3, [r0] <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000db34: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_assert( jnode->type == IMFS_HARD_LINK ); /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 3000db38: e5933050 ldr r3, [r3, #80] ; 0x50 <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000db3c: e1a05001 mov r5, r1 <== NOT EXECUTED IMFS_assert( jnode->type == IMFS_HARD_LINK ); /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 3000db40: e5803000 str r3, [r0] <== NOT EXECUTED IMFS_Set_handlers( node ); 3000db44: ebffffb9 bl 3000da30 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 3000db48: e1a00004 mov r0, r4 <== NOT EXECUTED 3000db4c: e1a01005 mov r1, r5 <== NOT EXECUTED 3000db50: ebffffdb bl 3000dac4 <== NOT EXECUTED 3000db54: e3500000 cmp r0, #0 <== NOT EXECUTED 3000db58: 0a000001 beq 3000db64 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); return result; 3000db5c: e3a00000 mov r0, #0 <== NOT EXECUTED } 3000db60: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 3000db64: eb001143 bl 30012078 <__errno> <== NOT EXECUTED 3000db68: e3a0300d mov r3, #13 <== NOT EXECUTED 3000db6c: e5803000 str r3, [r0] <== NOT EXECUTED 3000db70: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000db74: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== 3000de88 : */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000de88: e92d40f0 push {r4, r5, r6, r7, lr} */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 3000de8c: e59f60c4 ldr r6, [pc, #196] ; 3000df58 */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000de90: e1a05000 mov r5, r0 */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); 3000de94: e5963000 ldr r3, [r6] */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000de98: e1a07001 mov r7, r1 3000de9c: ea000004 b 3000deb4 */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 3000dea0: e3520004 cmp r2, #4 3000dea4: 0a00001b beq 3000df18 result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || 3000dea8: e2422003 sub r2, r2, #3 3000deac: e3520001 cmp r2, #1 3000deb0: 8a000014 bhi 3000df08 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 3000deb4: e1d323b0 ldrh r2, [r3, #48] ; 0x30 { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 3000deb8: e5954000 ldr r4, [r5] /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 3000debc: e2822001 add r2, r2, #1 3000dec0: e1a02802 lsl r2, r2, #16 3000dec4: e1a02822 lsr r2, r2, #16 if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 3000dec8: e3520005 cmp r2, #5 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 3000decc: e1c323b0 strh r2, [r3, #48] ; 0x30 if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 3000ded0: 8a000019 bhi 3000df3c /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 3000ded4: e594204c ldr r2, [r4, #76] ; 0x4c 3000ded8: e3520003 cmp r2, #3 3000dedc: 1affffef bne 3000dea0 result = IMFS_evaluate_hard_link( node, flags ); 3000dee0: e1a00005 mov r0, r5 <== NOT EXECUTED 3000dee4: e1a01007 mov r1, r7 <== NOT EXECUTED 3000dee8: ebffff0f bl 3000db2c <== 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 ) ) ); 3000deec: e3500000 cmp r0, #0 <== NOT EXECUTED 3000def0: 1a00000d bne 3000df2c <== NOT EXECUTED 3000def4: e594204c ldr r2, [r4, #76] ; 0x4c 3000def8: e5963000 ldr r3, [r6] result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || 3000defc: e2422003 sub r2, r2, #3 3000df00: e3520001 cmp r2, #1 3000df04: 9affffea bls 3000deb4 /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 3000df08: e3a02000 mov r2, #0 result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || 3000df0c: e3a00000 mov r0, #0 /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 3000df10: e1c323b0 strh r2, [r3, #48] ; 0x30 return result; } 3000df14: e8bd80f0 pop {r4, r5, r6, r7, pc} 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 ); 3000df18: e1a00005 mov r0, r5 3000df1c: e1a01007 mov r1, r7 3000df20: ebffffb3 bl 3000ddf4 } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 3000df24: e3500000 cmp r0, #0 3000df28: 0afffff1 beq 3000def4 3000df2c: e5963000 ldr r3, [r6] <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 3000df30: e3a02000 mov r2, #0 <== NOT EXECUTED 3000df34: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED return result; } 3000df38: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; 3000df3c: e3a02000 mov r2, #0 <== NOT EXECUTED 3000df40: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); 3000df44: eb00104b bl 30012078 <__errno> <== NOT EXECUTED 3000df48: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED 3000df4c: e5803000 str r3, [r0] <== NOT EXECUTED 3000df50: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000df54: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== 3000dac4 : uid_t st_uid; gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) 3000dac4: e3d13007 bics r3, r1, #7 */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 3000dac8: e92d4070 push {r4, r5, r6, lr} 3000dacc: e1a05001 mov r5, r1 uid_t st_uid; gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) 3000dad0: 1a000010 bne 3000db18 rtems_set_errno_and_return_minus_one( EPERM ); jnode = node->node_access; 3000dad4: e5904000 ldr r4, [r0] #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 3000dad8: eb000316 bl 3000e738 3000dadc: e1a06000 mov r6, r0 st_gid = getegid(); 3000dae0: eb00030f bl 3000e724 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) 3000dae4: e1d433bc ldrh r3, [r4, #60] ; 0x3c 3000dae8: e1530006 cmp r3, r6 flags_to_test <<= 6; 3000daec: 01a05305 lsleq r5, r5, #6 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) 3000daf0: 0a000002 beq 3000db00 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) 3000daf4: e1d433be ldrh r3, [r4, #62] ; 0x3e <== NOT EXECUTED 3000daf8: e1530000 cmp r3, r0 <== NOT EXECUTED flags_to_test <<= 3; 3000dafc: 01a05185 lsleq r5, r5, #3 <== 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 ) 3000db00: e5940030 ldr r0, [r4, #48] ; 0x30 3000db04: e0050000 and r0, r5, r0 gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) rtems_set_errno_and_return_minus_one( EPERM ); 3000db08: e1550000 cmp r5, r0 3000db0c: 13a00000 movne r0, #0 3000db10: 03a00001 moveq r0, #1 */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } 3000db14: e8bd8070 pop {r4, r5, r6, pc} gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) rtems_set_errno_and_return_minus_one( EPERM ); 3000db18: eb001156 bl 30012078 <__errno> <== NOT EXECUTED 3000db1c: e3a03001 mov r3, #1 <== NOT EXECUTED 3000db20: e5803000 str r3, [r0] <== NOT EXECUTED 3000db24: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000db28: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== 3000ddf4 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000ddf4: e92d4070 push {r4, r5, r6, lr} IMFS_jnode_t *jnode = node->node_access; 3000ddf8: e5906000 ldr r6, [r0] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000ddfc: e24dd004 sub sp, sp, #4 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 3000de00: e5963008 ldr r3, [r6, #8] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000de04: e1a04000 mov r4, r0 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 3000de08: e5803000 str r3, [r0] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000de0c: e1a05001 mov r5, r1 * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 3000de10: e5960050 ldr r0, [r6, #80] ; 0x50 3000de14: e1a0100d mov r1, sp 3000de18: e1a02004 mov r2, r4 3000de1c: eb0003b5 bl 3000ecf8 ); /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 3000de20: e59d3000 ldr r3, [sp] 3000de24: e5966050 ldr r6, [r6, #80] ; 0x50 3000de28: e0866003 add r6, r6, r3 3000de2c: e1a00006 mov r0, r6 3000de30: eb00147a bl 30013020 3000de34: e1a02005 mov r2, r5 3000de38: e1a01000 mov r1, r0 3000de3c: e1a03004 mov r3, r4 3000de40: e1a00006 mov r0, r6 3000de44: ebffff4b bl 3000db78 3000de48: e1a06000 mov r6, r0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 3000de4c: e1a00004 mov r0, r4 3000de50: ebfffef6 bl 3000da30 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 3000de54: e1a00004 mov r0, r4 3000de58: e1a01005 mov r1, r5 3000de5c: ebffff18 bl 3000dac4 3000de60: e3500000 cmp r0, #0 3000de64: 0a000002 beq 3000de74 rtems_set_errno_and_return_minus_one( EACCES ); return result; } 3000de68: e1a00006 mov r0, r6 3000de6c: e28dd004 add sp, sp, #4 3000de70: e8bd8070 pop {r4, r5, r6, pc} /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 3000de74: eb00107f bl 30012078 <__errno> <== NOT EXECUTED 3000de78: e3a0300d mov r3, #13 <== NOT EXECUTED 3000de7c: e5803000 str r3, [r0] <== NOT EXECUTED 3000de80: e3e06000 mvn r6, #0 <== NOT EXECUTED 3000de84: eafffff7 b 3000de68 <== NOT EXECUTED =============================================================================== 30011640 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 30011640: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 30011644: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 30011648: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3001164c: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 30011650: ebfff438 bl 3000e738 <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 30011654: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED 30011658: e3500000 cmp r0, #0 <== NOT EXECUTED 3001165c: 11550000 cmpne r5, r0 <== NOT EXECUTED 30011660: 03a05000 moveq r5, #0 <== NOT EXECUTED 30011664: 13a05001 movne r5, #1 <== NOT EXECUTED 30011668: 1a00000d bne 300116a4 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 3001166c: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 30011670: e1a06a06 lsl r6, r6, #20 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 30011674: e3c33eff bic r3, r3, #4080 ; 0xff0 <== NOT EXECUTED 30011678: e3c3300f bic r3, r3, #15 <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 3001167c: e1836a26 orr r6, r3, r6, lsr #20 <== NOT EXECUTED 30011680: e5846030 str r6, [r4, #48] ; 0x30 <== NOT EXECUTED IMFS_update_ctime( jnode ); 30011684: e1a0000d mov r0, sp <== NOT EXECUTED 30011688: e1a01005 mov r1, r5 <== NOT EXECUTED 3001168c: ebffd3aa bl 3000653c <== NOT EXECUTED 30011690: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; 30011694: e1a00005 mov r0, r5 <== NOT EXECUTED */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); IMFS_update_ctime( jnode ); 30011698: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } 3001169c: e28dd008 add sp, sp, #8 <== NOT EXECUTED 300116a0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 300116a4: eb000273 bl 30012078 <__errno> <== NOT EXECUTED 300116a8: e3a03001 mov r3, #1 <== NOT EXECUTED 300116ac: e5803000 str r3, [r0] <== NOT EXECUTED 300116b0: e3e00000 mvn r0, #0 <== NOT EXECUTED 300116b4: eafffff8 b 3001169c <== NOT EXECUTED =============================================================================== 300116b8 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } 300116b8: e3a00000 mov r0, #0 <== NOT EXECUTED 300116bc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== 3000719c : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 3000719c: e1a03000 mov r3, r0 int err; if (command == FIONBIO) { 300071a0: e59f0070 ldr r0, [pc, #112] ; 30007218 int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 300071a4: e92d4010 push {r4, lr} int err; if (command == FIONBIO) { 300071a8: e1510000 cmp r1, r0 300071ac: 0a000007 beq 300071d0 iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 300071b0: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED 300071b4: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED 300071b8: eb0027e3 bl 3001114c <== NOT EXECUTED IMFS_FIFO_RETURN(err); 300071bc: e2502000 subs r2, r0, #0 <== NOT EXECUTED 300071c0: b2624000 rsblt r4, r2, #0 <== NOT EXECUTED 300071c4: ba00000f blt 30007208 <== NOT EXECUTED } 300071c8: e1a00002 mov r0, r2 <== NOT EXECUTED 300071cc: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 300071d0: e3520000 cmp r2, #0 300071d4: 0a00000a beq 30007204 err = -EFAULT; else { if (*(int *)buffer) 300071d8: e5922000 ldr r2, [r2] 300071dc: e3520000 cmp r2, #0 iop->flags |= LIBIO_FLAGS_NO_DELAY; 300071e0: 15931014 ldrne r1, [r3, #20] else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 300071e4: 05931014 ldreq r1, [r3, #20] return 0; 300071e8: 13a02000 movne r2, #0 if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; 300071ec: 13811001 orrne r1, r1, #1 else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 300071f0: 03c11001 biceq r1, r1, #1 if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; 300071f4: 15831014 strne r1, [r3, #20] else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 300071f8: 05831014 streq r1, [r3, #20] } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 300071fc: e1a00002 mov r0, r2 30007200: e8bd8010 pop {r4, pc} ) { int err; if (command == FIONBIO) { if (buffer == NULL) 30007204: e3a0400e mov r4, #14 <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 30007208: eb0034e8 bl 300145b0 <__errno> <== NOT EXECUTED 3000720c: e3e02000 mvn r2, #0 <== NOT EXECUTED 30007210: e5804000 str r4, [r0] <== NOT EXECUTED 30007214: eaffffeb b 300071c8 <== NOT EXECUTED =============================================================================== 3000713c : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 3000713c: e92d4010 push {r4, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 30007140: e590c018 ldr ip, [r0, #24] <== NOT EXECUTED rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 30007144: e24dd004 sub sp, sp, #4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 30007148: e59cc050 ldr ip, [ip, #80] ; 0x50 <== NOT EXECUTED 3000714c: e58d0000 str r0, [sp] <== NOT EXECUTED 30007150: e1a0000c mov r0, ip <== NOT EXECUTED 30007154: eb002815 bl 300111b0 <== NOT EXECUTED 30007158: e1a02000 mov r2, r0 <== NOT EXECUTED 3000715c: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30007160: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_libio_t *iop, rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 30007164: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30007168: a1a04003 movge r4, r3 <== NOT EXECUTED 3000716c: a1a03002 movge r3, r2 <== NOT EXECUTED 30007170: ba000003 blt 30007184 <== NOT EXECUTED } 30007174: e1a00003 mov r0, r3 <== NOT EXECUTED 30007178: e1a01004 mov r1, r4 <== NOT EXECUTED 3000717c: e28dd004 add sp, sp, #4 <== NOT EXECUTED 30007180: e8bd8010 pop {r4, pc} <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 30007184: eb003509 bl 300145b0 <__errno> <== NOT EXECUTED 30007188: e2644000 rsb r4, r4, #0 <== NOT EXECUTED 3000718c: e5804000 str r4, [r0] <== NOT EXECUTED 30007190: e3e03000 mvn r3, #0 <== NOT EXECUTED 30007194: e3e04000 mvn r4, #0 <== NOT EXECUTED 30007198: eafffff5 b 30007174 <== NOT EXECUTED =============================================================================== 3000730c : uint32_t mode ) { IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); 3000730c: e5903018 ldr r3, [r0, #24] rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 30007310: e92d4010 push {r4, lr} 30007314: e1a01000 mov r1, r0 IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); 30007318: e2830050 add r0, r3, #80 ; 0x50 3000731c: eb002574 bl 300108f4 IMFS_FIFO_RETURN(err); 30007320: e2504000 subs r4, r0, #0 30007324: ba000001 blt 30007330 } 30007328: e1a00004 mov r0, r4 3000732c: e8bd8010 pop {r4, pc} ) { IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err); 30007330: eb00349e bl 300145b0 <__errno> <== NOT EXECUTED 30007334: e2644000 rsb r4, r4, #0 <== NOT EXECUTED 30007338: e5804000 str r4, [r0] <== NOT EXECUTED 3000733c: e3e04000 mvn r4, #0 <== NOT EXECUTED 30007340: eafffff8 b 30007328 <== NOT EXECUTED =============================================================================== 3000e1e4 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000e1e4: e92d4070 push {r4, r5, r6, lr} /* * 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; 3000e1e8: e1a0c000 mov ip, r0 ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000e1ec: e24dd014 sub sp, sp, #20 /* * 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; 3000e1f0: e5bc401c ldr r4, [ip, #28]! loc = temp_mt_entry->mt_fs_root; 3000e1f4: e1a0600d mov r6, sp ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000e1f8: e1a0e000 mov lr, r0 * 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; 3000e1fc: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000e200: e8a6000f stmia r6!, {r0, r1, r2, r3} 3000e204: e59c2000 ldr r2, [ip] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 3000e208: e3a03000 mov r3, #0 * 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; 3000e20c: e1a0500d mov r5, sp 3000e210: e5862000 str r2, [r6] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 3000e214: e58e301c str r3, [lr, #28] do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3000e218: e1a0000d mov r0, sp */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 3000e21c: e5946008 ldr r6, [r4, #8] loc.node_access = (void *)jnode; 3000e220: e58d4000 str r4, [sp] IMFS_Set_handlers( &loc ); 3000e224: ebfffe01 bl 3000da30 if ( jnode->type != IMFS_DIRECTORY ) { 3000e228: e594304c ldr r3, [r4, #76] ; 0x4c RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); 3000e22c: e2842054 add r2, r4, #84 ; 0x54 3000e230: e3530001 cmp r3, #1 3000e234: 1a000010 bne 3000e27c result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { 3000e238: e5943050 ldr r3, [r4, #80] ; 0x50 3000e23c: e1530002 cmp r3, r2 3000e240: 0a000014 beq 3000e298 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 3000e244: e3540000 cmp r4, #0 3000e248: 0a000008 beq 3000e270 if ( jnode->type == IMFS_DIRECTORY ) { 3000e24c: e594304c ldr r3, [r4, #76] ; 0x4c 3000e250: e3530001 cmp r3, #1 3000e254: 1affffef bne 3000e218 } } } while (jnode != NULL); return 0; } 3000e258: e5943050 ldr r3, [r4, #80] ; 0x50 3000e25c: e2842054 add r2, r4, #84 ; 0x54 return -1; jnode = next; } if ( jnode != NULL ) { if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) 3000e260: e1530002 cmp r3, r2 3000e264: 0affffeb beq 3000e218 jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3000e268: e2534000 subs r4, r3, #0 3000e26c: 1affffe9 bne 3000e218 return 0; 3000e270: e1a00004 mov r0, r4 } 3000e274: e28dd014 add sp, sp, #20 3000e278: e8bd8070 pop {r4, r5, r6, pc} next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( NULL, &loc ); 3000e27c: e1a0100d mov r1, sp 3000e280: e3a00000 mov r0, #0 3000e284: ebffdf47 bl 30005fa8 if (result != 0) 3000e288: e3500000 cmp r0, #0 3000e28c: 1a000006 bne 3000e2ac jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; 3000e290: e1a04006 mov r4, r6 3000e294: eaffffea b 3000e244 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 3000e298: e3a00000 mov r0, #0 3000e29c: e1a0100d mov r1, sp 3000e2a0: ebffdf40 bl 30005fa8 if (result != 0) 3000e2a4: e3500000 cmp r0, #0 3000e2a8: 0afffff8 beq 3000e290 return -1; 3000e2ac: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000e2b0: eaffffef b 3000e274 <== NOT EXECUTED =============================================================================== 3000e338 : const char *path, int pathlen, char *token, int *token_len ) { 3000e338: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 3000e33c: e1a05001 mov r5, r1 3000e340: e1a04002 mov r4, r2 3000e344: e1a0a003 mov sl, r3 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 3000e348: e5d07000 ldrb r7, [r0] 3000e34c: e1a08000 mov r8, r0 int pathlen, char *token, int *token_len ) { register int i = 0; 3000e350: e3a06000 mov r6, #0 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 3000e354: ea000006 b 3000e374 3000e358: e1560005 cmp r6, r5 3000e35c: aa000008 bge 3000e384 token[i] = c; if ( i == IMFS_NAME_MAX ) 3000e360: e3560020 cmp r6, #32 * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { token[i] = c; 3000e364: e7c47006 strb r7, [r4, r6] if ( i == IMFS_NAME_MAX ) 3000e368: 0a00001b beq 3000e3dc return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 3000e36c: e5f87001 ldrb r7, [r8, #1]! 3000e370: e2866001 add r6, r6, #1 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 3000e374: e1a00007 mov r0, r7 3000e378: ebffe407 bl 3000739c 3000e37c: e3500000 cmp r0, #0 3000e380: 0afffff4 beq 3000e358 /* * Copy a seperator into token. */ if ( i == 0 ) { 3000e384: e3560000 cmp r6, #0 3000e388: 1a000006 bne 3000e3a8 token[i] = c; if ( (token[i] != '\0') && pathlen ) { 3000e38c: e3570000 cmp r7, #0 3000e390: 13550000 cmpne r5, #0 i++; type = IMFS_CURRENT_DIR; 3000e394: 13a06001 movne r6, #1 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 3000e398: e5c47000 strb r7, [r4] if ( (token[i] != '\0') && pathlen ) { i++; 3000e39c: e1a00006 mov r0, r6 /* * Set token_len to the number of characters copied. */ *token_len = i; 3000e3a0: e58a6000 str r6, [sl] 3000e3a4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 3000e3a8: e0843006 add r3, r4, r6 3000e3ac: e5533001 ldrb r3, [r3, #-1] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 3000e3b0: e1a00004 mov r0, r4 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 3000e3b4: e3530000 cmp r3, #0 token[i] = '\0'; 3000e3b8: 13a03000 movne r3, #0 3000e3bc: 17c43006 strbne r3, [r4, r6] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 3000e3c0: e59f1038 ldr r1, [pc, #56] ; 3000e400 /* * Set token_len to the number of characters copied. */ *token_len = i; 3000e3c4: e58a6000 str r6, [sl] * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) 3000e3c8: eb001238 bl 30012cb0 3000e3cc: e3500000 cmp r0, #0 3000e3d0: 1a000003 bne 3000e3e4 type = IMFS_UP_DIR; 3000e3d4: e3a00002 mov r0, #2 else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 3000e3d8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) return IMFS_INVALID_TOKEN; 3000e3dc: e3a00004 mov r0, #4 <== NOT EXECUTED 3000e3e0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 3000e3e4: e1a00004 mov r0, r4 3000e3e8: e59f1014 ldr r1, [pc, #20] ; 3000e404 3000e3ec: eb00122f bl 30012cb0 3000e3f0: e3500000 cmp r0, #0 3000e3f4: 03a00001 moveq r0, #1 3000e3f8: 13a00003 movne r0, #3 3000e3fc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} =============================================================================== 30005b90 : const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers, const rtems_filesystem_file_handlers_r *fifo_handlers ) { 30005b90: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30005b94: e1a04000 mov r4, r0 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 30005b98: e59f00e0 ldr r0, [pc, #224] ; 30005c80 const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers, const rtems_filesystem_file_handlers_r *fifo_handlers ) { 30005b9c: e1a08001 mov r8, r1 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 30005ba0: e5900000 ldr r0, [r0] const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers, const rtems_filesystem_file_handlers_r *fifo_handlers ) { 30005ba4: e1a0a002 mov sl, r2 /* * 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) { 30005ba8: e3500010 cmp r0, #16 const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers, const rtems_filesystem_file_handlers_r *fifo_handlers ) { 30005bac: e1a07003 mov r7, r3 /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { if (bit_mask == requested_bytes_per_block) { 30005bb0: 0a00000a beq 30005be0 is_valid = true; break; } if(bit_mask > requested_bytes_per_block) 30005bb4: e350000f cmp r0, #15 30005bb8: c3a02005 movgt r2, #5 30005bbc: c3a03020 movgt r3, #32 30005bc0: da000005 ble 30005bdc /* * 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) { 30005bc4: e1500003 cmp r0, r3 30005bc8: 0a000004 beq 30005be0 is_valid = true; break; } if(bit_mask > requested_bytes_per_block) 30005bcc: ba000002 blt 30005bdc int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 30005bd0: e2522001 subs r2, r2, #1 30005bd4: e1a03083 lsl r3, r3, #1 30005bd8: 1afffff9 bne 30005bc4 if(bit_mask > requested_bytes_per_block) break; } *dest_bytes_per_block = ((is_valid) ? requested_bytes_per_block : default_bytes_per_block); 30005bdc: e3a00080 mov r0, #128 ; 0x80 break; } if(bit_mask > requested_bytes_per_block) break; } *dest_bytes_per_block = ((is_valid) 30005be0: e59f509c ldr r5, [pc, #156] ; 30005c84 30005be4: e5850000 str r0, [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_root_node(); 30005be8: eb001f80 bl 3000d9f0 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; 30005bec: e59fe094 ldr lr, [pc, #148] ; 30005c88 30005bf0: e284c038 add ip, r4, #56 ; 0x38 /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); 30005bf4: e1a06000 mov r6, r0 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; 30005bf8: e8be000f ldm lr!, {r0, r1, r2, r3} 30005bfc: e8ac000f stmia ip!, {r0, r1, r2, r3} 30005c00: e8be000f ldm lr!, {r0, r1, r2, r3} 30005c04: e8ac000f stmia ip!, {r0, r1, r2, r3} 30005c08: e89e000f ldm lr, {r0, r1, r2, r3} /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); 30005c0c: e584601c str r6, [r4, #28] 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; 30005c10: e88c000f stm ip, {r0, r1, r2, r3} * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); temp_mt_entry->mt_fs_root.handlers = directory_handlers; 30005c14: e5847024 str r7, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = op_table; 30005c18: e5848028 str r8, [r4, #40] ; 0x28 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 ) ); 30005c1c: e3a00001 mov r0, #1 30005c20: e3a01014 mov r1, #20 30005c24: eb0001ae bl 300062e4 if ( !fs_info ) { 30005c28: e3500000 cmp r0, #0 30005c2c: 0a00000c beq 30005c64 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 30005c30: e5952004 ldr r2, [r5, #4] fs_info->ino_count = 1; 30005c34: e3a03001 mov r3, #1 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; 30005c38: e5840034 str r0, [r4, #52] ; 0x34 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 30005c3c: e0821003 add r1, r2, r3 30005c40: e5802000 str r2, [r0] fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; fs_info->fifo_handlers = fifo_handlers; 30005c44: e59d201c ldr r2, [sp, #28] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; 30005c48: e9800408 stmib r0, {r3, sl} fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 30005c4c: e580700c str r7, [r0, #12] fs_info->fifo_handlers = fifo_handlers; 30005c50: e5802010 str r2, [r0, #16] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; 30005c54: e5851004 str r1, [r5, #4] fs_info->fifo_handlers = fifo_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; return 0; 30005c58: e3a00000 mov r0, #0 fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; fs_info->fifo_handlers = fifo_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 30005c5c: e5863038 str r3, [r6, #56] ; 0x38 return 0; } 30005c60: e8bd85f0 pop {r4, r5, r6, r7, r8, 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); 30005c64: e1a00006 mov r0, r6 <== NOT EXECUTED 30005c68: eb00020a bl 30006498 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 30005c6c: eb003101 bl 30012078 <__errno> <== NOT EXECUTED 30005c70: e3a0300c mov r3, #12 <== NOT EXECUTED 30005c74: e5803000 str r3, [r0] <== NOT EXECUTED 30005c78: e3e00000 mvn r0, #0 <== NOT EXECUTED 30005c7c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== 30005c8c : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 30005c8c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 30005c90: e5903000 ldr r3, [r0] <== NOT EXECUTED int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 30005c94: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 30005c98: e1d313b4 ldrh r1, [r3, #52] ; 0x34 <== 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 */ ) { 30005c9c: e24dd048 sub sp, sp, #72 ; 0x48 <== 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 ) 30005ca0: e3510007 cmp r1, #7 <== 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 */ ) { 30005ca4: e1a06002 mov r6, r2 <== NOT EXECUTED int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 30005ca8: e58d3028 str r3, [sp, #40] ; 0x28 <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 30005cac: 8a00001d bhi 30005d28 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EMLINK ); /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 30005cb0: e1a00002 mov r0, r2 <== NOT EXECUTED 30005cb4: eb0034d9 bl 30013020 <== NOT EXECUTED 30005cb8: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30005cbc: e1a01000 mov r1, r0 <== NOT EXECUTED 30005cc0: e1a02004 mov r2, r4 <== NOT EXECUTED 30005cc4: e28d3044 add r3, sp, #68 ; 0x44 <== NOT EXECUTED 30005cc8: e1a00006 mov r0, r6 <== NOT EXECUTED 30005ccc: eb002199 bl 3000e338 <== NOT EXECUTED new_node = IMFS_create_node( parent_loc, IMFS_HARD_LINK, new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info 30005cd0: e28d3028 add r3, sp, #40 ; 0x28 <== NOT EXECUTED * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 30005cd4: e58d3000 str r3, [sp] <== NOT EXECUTED 30005cd8: e3a01003 mov r1, #3 <== NOT EXECUTED 30005cdc: e1a00005 mov r0, r5 <== NOT EXECUTED 30005ce0: e1a02004 mov r2, r4 <== NOT EXECUTED 30005ce4: e59f3064 ldr r3, [pc, #100] ; 30005d50 <== NOT EXECUTED 30005ce8: eb001eec bl 3000d8a0 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 30005cec: e3500000 cmp r0, #0 <== NOT EXECUTED 30005cf0: 0a000011 beq 30005d3c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 30005cf4: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 30005cf8: e28d003c add r0, sp, #60 ; 0x3c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 30005cfc: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 30005d00: e3a01000 mov r1, #0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 30005d04: e2822001 add r2, r2, #1 <== NOT EXECUTED 30005d08: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); 30005d0c: eb00020a bl 3000653c <== NOT EXECUTED 30005d10: e59d203c ldr r2, [sp, #60] ; 0x3c <== NOT EXECUTED 30005d14: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED return 0; 30005d18: e3a00000 mov r0, #0 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; IMFS_update_ctime( info.hard_link.link_node ); 30005d1c: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED return 0; } 30005d20: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED 30005d24: e8bd8070 pop {r4, r5, r6, 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 ); 30005d28: eb0030d2 bl 30012078 <__errno> <== NOT EXECUTED 30005d2c: e3a0301f mov r3, #31 <== NOT EXECUTED 30005d30: e5803000 str r3, [r0] <== NOT EXECUTED 30005d34: e3e00000 mvn r0, #0 <== NOT EXECUTED 30005d38: eafffff8 b 30005d20 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 30005d3c: eb0030cd bl 30012078 <__errno> <== NOT EXECUTED 30005d40: e3a0300c mov r3, #12 <== NOT EXECUTED 30005d44: e5803000 str r3, [r0] <== NOT EXECUTED 30005d48: e3e00000 mvn r0, #0 <== NOT EXECUTED 30005d4c: eafffff3 b 30005d20 <== NOT EXECUTED =============================================================================== 30010c20 : IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 30010c20: e59f3128 ldr r3, [pc, #296] ; 30010d50 */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30010c24: e92d4df0 push {r4, r5, r6, r7, r8, sl, fp, lr} IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 30010c28: e593b000 ldr fp, [r3] */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30010c2c: e1a06002 mov r6, r2 IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 30010c30: e1a0312b lsr r3, fp, #2 30010c34: e0223393 mla r2, r3, r3, r3 30010c38: e0233392 mla r3, r2, r3, r3 30010c3c: e3a02000 mov r2, #0 30010c40: e2433001 sub r3, r3, #1 30010c44: e1520006 cmp r2, r6 */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30010c48: e24dd004 sub sp, sp, #4 30010c4c: e1a04000 mov r4, r0 30010c50: e1a08001 mov r8, r1 IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 30010c54: e003039b mul r3, fp, r3 30010c58: da000034 ble 30010d30 rtems_set_errno_and_return_minus_one( EINVAL ); /* * Verify new file size is actually larger than current size */ if ( new_length <= the_jnode->info.file.size ) 30010c5c: e5947054 ldr r7, [r4, #84] ; 0x54 30010c60: e594a050 ldr sl, [r4, #80] ; 0x50 30010c64: e1560007 cmp r6, r7 30010c68: da000027 ble 30010d0c return 0; /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010c6c: e1a0cfcb asr ip, fp, #31 30010c70: e1a0300c mov r3, ip 30010c74: e1a0200b mov r2, fp 30010c78: e1a00008 mov r0, r8 30010c7c: e1a01006 mov r1, r6 30010c80: e58dc000 str ip, [sp] 30010c84: eb001564 bl 3001621c <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010c88: e59dc000 ldr ip, [sp] return 0; /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010c8c: e1a05000 mov r5, r0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010c90: e1a01007 mov r1, r7 30010c94: e1a0000a mov r0, sl 30010c98: e1a0200b mov r2, fp 30010c9c: e1a0300c mov r3, ip 30010ca0: eb00155d bl 3001621c <__divdi3> /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 30010ca4: e1550000 cmp r5, r0 /* * 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; 30010ca8: e1a0a000 mov sl, r0 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 30010cac: 3a00001b bcc 30010d20 30010cb0: e1a07000 mov r7, r0 30010cb4: ea000002 b 30010cc4 30010cb8: e2877001 add r7, r7, #1 30010cbc: e1550007 cmp r5, r7 30010cc0: 3a000016 bcc 30010d20 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 30010cc4: e1a01007 mov r1, r7 30010cc8: e1a00004 mov r0, r4 30010ccc: ebffff4e bl 30010a0c 30010cd0: e3500000 cmp r0, #0 30010cd4: 0afffff7 beq 30010cb8 30010cd8: ea000003 b 30010cec <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 30010cdc: e1a01007 mov r1, r7 <== NOT EXECUTED 30010ce0: e1a00004 mov r0, r4 <== 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-- ) { 30010ce4: e2477001 sub r7, r7, #1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 30010ce8: ebffffc2 bl 30010bf8 <== 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-- ) { 30010cec: e15a0007 cmp sl, r7 <== NOT EXECUTED 30010cf0: 9afffff9 bls 30010cdc <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 30010cf4: eb0004df bl 30012078 <__errno> <== NOT EXECUTED 30010cf8: e3a0301c mov r3, #28 <== NOT EXECUTED 30010cfc: e5803000 str r3, [r0] <== NOT EXECUTED 30010d00: e3e00000 mvn r0, #0 <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } 30010d04: e28dd004 add sp, sp, #4 30010d08: e8bd8df0 pop {r4, r5, r6, r7, r8, sl, fp, pc} rtems_set_errno_and_return_minus_one( EINVAL ); /* * Verify new file size is actually larger than current size */ if ( new_length <= the_jnode->info.file.size ) 30010d0c: 1a000001 bne 30010d18 30010d10: e158000a cmp r8, sl 30010d14: 8affffd4 bhi 30010c6c return 0; 30010d18: e3a00000 mov r0, #0 30010d1c: eafffff8 b 30010d04 } /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 30010d20: e5848050 str r8, [r4, #80] ; 0x50 30010d24: e5846054 str r6, [r4, #84] ; 0x54 return 0; 30010d28: e3a00000 mov r0, #0 30010d2c: eafffff4 b 30010d04 IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 30010d30: 1a000001 bne 30010d3c 30010d34: e1530001 cmp r3, r1 30010d38: 8affffc7 bhi 30010c5c rtems_set_errno_and_return_minus_one( EINVAL ); 30010d3c: eb0004cd bl 30012078 <__errno> <== NOT EXECUTED 30010d40: e3a03016 mov r3, #22 <== NOT EXECUTED 30010d44: e5803000 str r3, [r0] <== NOT EXECUTED 30010d48: e3e00000 mvn r0, #0 <== NOT EXECUTED 30010d4c: eaffffec b 30010d04 <== NOT EXECUTED =============================================================================== 300105c0 : my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 300105c0: e59f3200 ldr r3, [pc, #512] ; 300107c8 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 300105c4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 300105c8: e5934000 ldr r4, [r3] #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 300105cc: e24dd004 sub sp, sp, #4 my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 300105d0: e1a04124 lsr r4, r4, #2 300105d4: e2443001 sub r3, r4, #1 300105d8: e1510003 cmp r1, r3 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 300105dc: e1a05000 mov r5, r0 300105e0: e1a06002 mov r6, r2 my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 300105e4: 8a000007 bhi 30010608 p = info->indirect; if ( malloc_it ) { 300105e8: e3520000 cmp r2, #0 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { p = info->indirect; 300105ec: e5900058 ldr r0, [r0, #88] ; 0x58 if ( malloc_it ) { 300105f0: 0a00001c beq 30010668 if ( !p ) { 300105f4: e3500000 cmp r0, #0 300105f8: 0a000041 beq 30010704 } if ( !p ) return 0; return &info->indirect[ my_block ]; 300105fc: e0800101 add r0, r0, r1, lsl #2 /* * This means the requested block number is out of range. */ return 0; } 30010600: e28dd004 add sp, sp, #4 30010604: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 30010608: e0274494 mla r7, r4, r4, r4 3001060c: e2473001 sub r3, r7, #1 30010610: e1510003 cmp r1, r3 30010614: 8a000016 bhi 30010674 my_block -= FIRST_DOUBLY_INDIRECT; 30010618: e0647001 rsb r7, r4, r1 singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3001061c: e1a00007 mov r0, r7 30010620: e1a01004 mov r1, r4 30010624: eb00149c bl 3001589c <__umodsi3> doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010628: e1a01004 mov r1, r4 */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3001062c: e1a08000 mov r8, r0 doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010630: e1a00007 mov r0, r7 30010634: eb001452 bl 30015784 <__aeabi_uidiv> p = info->doubly_indirect; if ( malloc_it ) { 30010638: e3560000 cmp r6, #0 if ( my_block <= LAST_DOUBLY_INDIRECT ) { my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3001063c: e1a04000 mov r4, r0 p = info->doubly_indirect; 30010640: e595305c ldr r3, [r5, #92] ; 0x5c if ( malloc_it ) { 30010644: 0a00003f beq 30010748 if ( !p ) { 30010648: e3530000 cmp r3, #0 3001064c: 0a000045 beq 30010768 if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 30010650: e7930104 ldr r0, [r3, r4, lsl #2] 30010654: e0834104 add r4, r3, r4, lsl #2 if ( !p1 ) { 30010658: e3500000 cmp r0, #0 3001065c: 0a00002f beq 30010720 p = (block_p *)p[ doubly ]; if ( !p ) return 0; return (block_p *)&p[ singly ]; 30010660: e0800108 add r0, r0, r8, lsl #2 30010664: eaffffe5 b 30010600 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 30010668: e3500000 cmp r0, #0 3001066c: 1affffe2 bne 300105fc 30010670: eaffffe2 b 30010600 <== NOT EXECUTED } /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 30010674: e0234497 mla r3, r7, r4, r4 <== NOT EXECUTED 30010678: e2433001 sub r3, r3, #1 <== NOT EXECUTED 3001067c: e1510003 cmp r1, r3 <== NOT EXECUTED } /* * This means the requested block number is out of range. */ return 0; 30010680: 83a00000 movhi r0, #0 <== NOT EXECUTED } /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 30010684: 8affffdd bhi 30010600 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 30010688: e0677001 rsb r7, r7, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3001068c: e1a00007 mov r0, r7 <== NOT EXECUTED 30010690: e1a01004 mov r1, r4 <== NOT EXECUTED 30010694: eb001480 bl 3001589c <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010698: e1a01004 mov r1, r4 <== NOT EXECUTED * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3001069c: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 300106a0: e1a00007 mov r0, r7 <== NOT EXECUTED 300106a4: eb001436 bl 30015784 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 300106a8: e1a01004 mov r1, r4 <== 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; 300106ac: e1a08000 mov r8, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 300106b0: eb001433 bl 30015784 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 300106b4: e1a01004 mov r1, r4 <== 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; 300106b8: e1a07000 mov r7, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 300106bc: e1a00008 mov r0, r8 <== NOT EXECUTED 300106c0: eb001475 bl 3001589c <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 300106c4: e3560000 cmp r6, #0 <== 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; 300106c8: e1a04000 mov r4, r0 <== NOT EXECUTED p = info->triply_indirect; 300106cc: e5950060 ldr r0, [r5, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { 300106d0: 0a000029 beq 3001077c <== NOT EXECUTED if ( !p ) { 300106d4: e3500000 cmp r0, #0 <== NOT EXECUTED 300106d8: 0a000035 beq 300107b4 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 300106dc: e7903107 ldr r3, [r0, r7, lsl #2] <== NOT EXECUTED 300106e0: e0807107 add r7, r0, r7, lsl #2 <== NOT EXECUTED if ( !p1 ) { 300106e4: e3530000 cmp r3, #0 <== NOT EXECUTED 300106e8: 0a00002c beq 300107a0 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 300106ec: e7930104 ldr r0, [r3, r4, lsl #2] <== NOT EXECUTED 300106f0: e0834104 add r4, r3, r4, lsl #2 <== NOT EXECUTED if ( !p2 ) { 300106f4: e3500000 cmp r0, #0 <== NOT EXECUTED 300106f8: 0a00000d beq 30010734 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; 300106fc: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED 30010700: eaffffbe b 30010600 <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 30010704: e58d1000 str r1, [sp] 30010708: ebffff9f bl 3001058c if ( !p ) 3001070c: e3500000 cmp r0, #0 30010710: e59d1000 ldr r1, [sp] return 0; info->indirect = p; 30010714: 15850058 strne r0, [r5, #88] ; 0x58 if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); if ( !p ) 30010718: 1affffb7 bne 300105fc 3001071c: eaffffb7 b 30010600 <== NOT EXECUTED info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 30010720: ebffff99 bl 3001058c if ( !p1 ) 30010724: e3500000 cmp r0, #0 return 0; p[ doubly ] = (block_p) p1; 30010728: 15840000 strne r0, [r4] p = (block_p *)p[ doubly ]; if ( !p ) return 0; return (block_p *)&p[ singly ]; 3001072c: 10800108 addne r0, r0, r8, lsl #2 30010730: eaffffb2 b 30010600 p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); 30010734: ebffff94 bl 3001058c <== NOT EXECUTED if ( !p2 ) 30010738: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 3001073c: 15840000 strne r0, [r4] <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; 30010740: 1080010a addne r0, r0, sl, lsl #2 <== NOT EXECUTED 30010744: eaffffad b 30010600 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 30010748: e3530000 cmp r3, #0 3001074c: 1a000001 bne 30010758 p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); if ( !p1 ) return 0; 30010750: e1a00003 mov r0, r3 <== NOT EXECUTED 30010754: eaffffa9 b 30010600 <== NOT EXECUTED } if ( !p ) return 0; p = (block_p *)p[ doubly ]; 30010758: e7930100 ldr r0, [r3, r0, lsl #2] if ( !p ) 3001075c: e3500000 cmp r0, #0 return 0; return (block_p *)&p[ singly ]; 30010760: 10800108 addne r0, r0, r8, lsl #2 30010764: eaffffa5 b 30010600 p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 30010768: ebffff87 bl 3001058c if ( !p ) 3001076c: e2503000 subs r3, r0, #0 30010770: 0afffff6 beq 30010750 return 0; info->doubly_indirect = p; 30010774: e585305c str r3, [r5, #92] ; 0x5c 30010778: eaffffb4 b 30010650 p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 3001077c: e3500000 cmp r0, #0 <== NOT EXECUTED 30010780: 0affff9e beq 30010600 <== NOT EXECUTED return 0; p1 = (block_p *) p[ triply ]; 30010784: e7900107 ldr r0, [r0, r7, lsl #2] <== NOT EXECUTED if ( !p1 ) 30010788: e3500000 cmp r0, #0 <== NOT EXECUTED 3001078c: 0affff9b beq 30010600 <== NOT EXECUTED return 0; p2 = (block_p *)p1[ doubly ]; 30010790: e7900104 ldr r0, [r0, r4, lsl #2] <== NOT EXECUTED if ( !p2 ) 30010794: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; return (block_p *)&p2[ singly ]; 30010798: 1080010a addne r0, r0, sl, lsl #2 <== NOT EXECUTED 3001079c: eaffff97 b 30010600 <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 300107a0: ebffff79 bl 3001058c <== NOT EXECUTED if ( !p1 ) 300107a4: e2503000 subs r3, r0, #0 <== NOT EXECUTED 300107a8: 0affffe8 beq 30010750 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 300107ac: e5873000 str r3, [r7] <== NOT EXECUTED 300107b0: eaffffcd b 300106ec <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 300107b4: ebffff74 bl 3001058c <== NOT EXECUTED if ( !p ) 300107b8: e3500000 cmp r0, #0 <== NOT EXECUTED 300107bc: 0affff8f beq 30010600 <== NOT EXECUTED return 0; info->triply_indirect = p; 300107c0: e5850060 str r0, [r5, #96] ; 0x60 <== NOT EXECUTED 300107c4: eaffffc4 b 300106dc <== NOT EXECUTED =============================================================================== 300089dc : * using the IMFS memory file type. * */ int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; 300089dc: e59f3018 ldr r3, [pc, #24] ; 300089fc <== NOT EXECUTED 300089e0: e5932000 ldr r2, [r3] <== NOT EXECUTED 300089e4: e1a03122 lsr r3, r2, #2 <== NOT EXECUTED 300089e8: e0203393 mla r0, r3, r3, r3 <== NOT EXECUTED 300089ec: e0233390 mla r3, r0, r3, r3 <== NOT EXECUTED 300089f0: e2430001 sub r0, r3, #1 <== NOT EXECUTED } 300089f4: e0000092 mul r0, r2, r0 <== NOT EXECUTED 300089f8: e12fff1e bx lr <== NOT EXECUTED =============================================================================== 300107cc : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 300107cc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 300107d0: e1a09000 mov r9, r0 * Linear files (as created from a tar file are easier to handle * than block files). */ my_length = length; if (the_jnode->type == IMFS_LINEAR_FILE) { 300107d4: e590004c ldr r0, [r0, #76] ; 0x4c IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 300107d8: e24dd014 sub sp, sp, #20 * Linear files (as created from a tar file are easier to handle * than block files). */ my_length = length; if (the_jnode->type == IMFS_LINEAR_FILE) { 300107dc: e3500006 cmp r0, #6 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 300107e0: e1a07001 mov r7, r1 300107e4: e1a08002 mov r8, r2 300107e8: e1a0b003 mov fp, r3 300107ec: e59d5038 ldr r5, [sp, #56] ; 0x38 * Linear files (as created from a tar file are easier to handle * than block files). */ my_length = length; if (the_jnode->type == IMFS_LINEAR_FILE) { 300107f0: 0a00005c beq 30010968 /* * 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 ) 300107f4: e5992054 ldr r2, [r9, #84] ; 0x54 /* * 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; 300107f8: e1a03001 mov r3, r1 if ( last_byte > the_jnode->info.file.size ) 300107fc: e3a01000 mov r1, #0 30010800: e1510002 cmp r1, r2 30010804: e5992050 ldr r2, [r9, #80] ; 0x50 /* * 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; 30010808: e0851007 add r1, r5, r7 if ( last_byte > the_jnode->info.file.size ) 3001080c: da00003d ble 30010908 my_length = the_jnode->info.file.size - start; 30010810: e0635002 rsb r5, r3, r2 */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30010814: e59f61b8 ldr r6, [pc, #440] ; 300109d4 30010818: e1a00007 mov r0, r7 3001081c: e5964000 ldr r4, [r6] 30010820: e1a01008 mov r1, r8 30010824: e1a02004 mov r2, r4 30010828: e1a03fc2 asr r3, r2, #31 3001082c: e98d000c stmib sp, {r2, r3} 30010830: eb0017a6 bl 300166d0 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010834: e99d000c ldmib sp, {r2, r3} */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30010838: e1a0a000 mov sl, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 3001083c: e1a01008 mov r1, r8 30010840: e1a00007 mov r0, r7 30010844: eb001674 bl 3001621c <__divdi3> if ( start_offset ) { 30010848: e35a0000 cmp sl, #0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 3001084c: e1a07000 mov r7, r0 unsigned int last_byte; unsigned int copied; unsigned int start_offset; unsigned char *dest; dest = destination; 30010850: 01a0800b moveq r8, fp /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { 30010854: 0a000014 beq 300108ac 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 ); 30010858: e1a00009 mov r0, r9 3001085c: e1a01007 mov r1, r7 30010860: e3a02000 mov r2, #0 30010864: ebffff55 bl 300105c0 if ( !block_ptr ) 30010868: e3500000 cmp r0, #0 3001086c: 0a000023 beq 30010900 return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 30010870: e5901000 ldr r1, [r0] * Phase 1: possibly the last part of one block */ 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; 30010874: e06a3004 rsb r3, sl, r4 30010878: e1550003 cmp r5, r3 3001087c: 31a03005 movcc r3, r5 if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 30010880: e081100a add r1, r1, sl 30010884: e1a02003 mov r2, r3 30010888: e1a0000b mov r0, fp 3001088c: e58d3000 str r3, [sp] 30010890: eb000826 bl 30012930 dest += to_copy; 30010894: e59d3000 ldr r3, [sp] block++; my_length -= to_copy; 30010898: e5964000 ldr r4, [r6] to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); dest += to_copy; 3001089c: e08b8003 add r8, fp, r3 block++; 300108a0: e2877001 add r7, r7, #1 my_length -= to_copy; 300108a4: e0635005 rsb r5, r3, r5 copied += to_copy; 300108a8: e1a0a003 mov sl, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300108ac: e1550004 cmp r5, r4 300108b0: 2a000008 bcs 300108d8 300108b4: ea000017 b 30010918 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 300108b8: e5931000 ldr r1, [r3] 300108bc: eb00081b bl 30012930 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300108c0: e5963000 ldr r3, [r6] block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; 300108c4: e0888004 add r8, r8, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300108c8: e1530005 cmp r3, r5 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; 300108cc: e2877001 add r7, r7, #1 my_length -= to_copy; copied += to_copy; 300108d0: e08aa004 add sl, sl, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300108d4: 8a00000f bhi 30010918 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 300108d8: e3a02000 mov r2, #0 300108dc: e1a01007 mov r1, r7 300108e0: e1a00009 mov r0, r9 300108e4: ebffff35 bl 300105c0 if ( !block_ptr ) 300108e8: e2503000 subs r3, r0, #0 return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 300108ec: e1a02004 mov r2, r4 dest += to_copy; block++; my_length -= to_copy; 300108f0: e0645005 rsb r5, r4, r5 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 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 300108f4: e1a00008 mov r0, r8 * Phase 2: all of zero of more blocks */ 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 ); if ( !block_ptr ) 300108f8: 1affffee bne 300108b8 IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; 300108fc: e1a0000a mov r0, sl <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 30010900: e28dd014 add sp, sp, #20 30010904: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * 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 ) 30010908: 1affffc1 bne 30010814 3001090c: e1510002 cmp r1, r2 30010910: 9affffbf bls 30010814 30010914: eaffffbd b 30010810 /* * Phase 3: possibly the first part of one block */ IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 30010918: e3550000 cmp r5, #0 3001091c: 0a00000a beq 3001094c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010920: e1a00009 mov r0, r9 30010924: e1a01007 mov r1, r7 30010928: e3a02000 mov r2, #0 3001092c: ebffff23 bl 300105c0 if ( !block_ptr ) 30010930: e2503000 subs r3, r0, #0 30010934: 0afffff0 beq 300108fc return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 30010938: e1a00008 mov r0, r8 3001093c: e5931000 ldr r1, [r3] 30010940: e1a02005 mov r2, r5 30010944: eb0007f9 bl 30012930 copied += my_length; 30010948: e08aa005 add sl, sl, r5 } IMFS_update_atime( the_jnode ); 3001094c: e28d000c add r0, sp, #12 30010950: e3a01000 mov r1, #0 30010954: ebffd6f8 bl 3000653c 30010958: e59d300c ldr r3, [sp, #12] return copied; 3001095c: e1a0000a mov r0, sl return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 30010960: e5893040 str r3, [r9, #64] ; 0x40 return copied; 30010964: eaffffe5 b 30010900 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)) 30010968: e2894050 add r4, r9, #80 ; 0x50 3001096c: e8940018 ldm r4, {r3, r4} 30010970: e1a00003 mov r0, r3 30010974: e1a01004 mov r1, r4 30010978: e3a02000 mov r2, #0 3001097c: e0500007 subs r0, r0, r7 30010980: e0c11008 sbc r1, r1, r8 30010984: e1520001 cmp r2, r1 my_length = length; if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; 30010988: e5992058 ldr r2, [r9, #88] ; 0x58 if (my_length > (the_jnode->info.linearfile.size - start)) 3001098c: da00000b ble 300109c0 my_length = the_jnode->info.linearfile.size - start; 30010990: e067a003 rsb sl, r7, r3 memcpy(dest, &file_ptr[start], my_length); 30010994: e0821007 add r1, r2, r7 30010998: e1a0000b mov r0, fp 3001099c: e1a0200a mov r2, sl 300109a0: eb0007e2 bl 30012930 return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 300109a4: e28d000c add r0, sp, #12 300109a8: e3a01000 mov r1, #0 300109ac: ebffd6e2 bl 3000653c 300109b0: e59d300c ldr r3, [sp, #12] return copied; 300109b4: e1a0000a mov r0, sl return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 300109b8: e5893040 str r3, [r9, #64] ; 0x40 300109bc: eaffffcf b 30010900 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)) 300109c0: 1a000001 bne 300109cc 300109c4: e1550000 cmp r5, r0 300109c8: 8afffff0 bhi 30010990 /* * Linear files (as created from a tar file are easier to handle * than block files). */ my_length = length; 300109cc: e1a0a005 mov sl, r5 <== NOT EXECUTED 300109d0: eaffffef b 30010994 <== NOT EXECUTED =============================================================================== 30010ab8 : * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 30010ab8: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * 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; 30010abc: e59f6130 ldr r6, [pc, #304] ; 30010bf4 * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 30010ac0: e5903058 ldr r3, [r0, #88] ; 0x58 /* * 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; 30010ac4: e5967000 ldr r7, [r6] * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { 30010ac8: e3530000 cmp r3, #0 * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 30010acc: e1a0a000 mov sl, r0 /* * 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; 30010ad0: e1a07127 lsr r7, r7, #2 * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 30010ad4: 12800058 addne r0, r0, #88 ; 0x58 30010ad8: 11a01007 movne r1, r7 30010adc: 1bffffe0 blne 30010a64 } if ( info->doubly_indirect ) { 30010ae0: e59a305c ldr r3, [sl, #92] ; 0x5c 30010ae4: e3530000 cmp r3, #0 30010ae8: 0a000014 beq 30010b40 for ( i=0 ; i <== NOT EXECUTED 30010af8: e3a02000 mov r2, #0 <== NOT EXECUTED 30010afc: e1a04002 mov r4, r2 <== NOT EXECUTED 30010b00: ea000000 b 30010b08 <== NOT EXECUTED 30010b04: e59a305c ldr r3, [sl, #92] ; 0x5c <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 30010b08: e7931102 ldr r1, [r3, r2, lsl #2] <== NOT EXECUTED 30010b0c: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED 30010b10: e3510000 cmp r1, #0 <== NOT EXECUTED if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { memfile_free_blocks_in_table( 30010b18: e1a01007 mov r1, r7 <== NOT EXECUTED 30010b1c: e0830002 add r0, r3, r2 <== NOT EXECUTED 30010b20: 1bffffcf blne 30010a64 <== NOT EXECUTED if ( info->indirect ) { 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 ); 30010b34: e28a005c add r0, sl, #92 ; 0x5c <== NOT EXECUTED 30010b38: e1a01007 mov r1, r7 <== NOT EXECUTED 30010b3c: ebffffc8 bl 30010a64 <== NOT EXECUTED } if ( info->triply_indirect ) { 30010b40: e59a0060 ldr r0, [sl, #96] ; 0x60 30010b44: e3500000 cmp r0, #0 30010b48: 0a000027 beq 30010bec for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 30010b58: e5905000 ldr r5, [r0] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30010b5c: e3550000 cmp r5, #0 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 30010b60: 13a09000 movne r9, #0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30010b64: 11a08009 movne r8, r9 <== NOT EXECUTED 30010b68: 0a00001c beq 30010be0 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 30010b74: e3a00000 mov r0, #0 <== NOT EXECUTED 30010b78: e1a04000 mov r4, r0 <== NOT EXECUTED if ( p[j] ) { 30010b7c: e7953100 ldr r3, [r5, r0, lsl #2] <== NOT EXECUTED 30010b80: e1a00100 lsl r0, r0, #2 <== NOT EXECUTED 30010b84: e3530000 cmp r3, #0 <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED 30010ba8: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 30010bac: e0800009 add r0, r0, r9 <== NOT EXECUTED 30010bb0: e1a01007 mov r1, r7 <== NOT EXECUTED 30010bb4: ebffffaa bl 30010a64 <== 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]; 30010bcc: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30010bd0: e1a09108 lsl r9, r8, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 30010bd4: e7905108 ldr r5, [r0, r8, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30010bd8: e3550000 cmp r5, #0 <== NOT EXECUTED 30010bdc: 1affffe2 bne 30010b6c <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 30010be0: e28a0060 add r0, sl, #96 ; 0x60 <== NOT EXECUTED 30010be4: e1a01007 mov r1, r7 <== NOT EXECUTED 30010be8: ebffff9d bl 30010a64 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 30010bec: e3a00000 mov r0, #0 30010bf0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== 30010bf8 : */ MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 30010bf8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010bfc: e3a02000 mov r2, #0 <== NOT EXECUTED 30010c00: ebfffe6e bl 300105c0 <== NOT EXECUTED IMFS_assert( block_ptr ); ptr = *block_ptr; *block_ptr = 0; 30010c04: e3a02000 mov r2, #0 <== NOT EXECUTED ) { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010c08: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_assert( block_ptr ); ptr = *block_ptr; 30010c0c: e5900000 ldr r0, [r0] <== NOT EXECUTED *block_ptr = 0; 30010c10: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); 30010c14: ebffff8a bl 30010a44 <== NOT EXECUTED return 1; } 30010c18: e3a00001 mov r0, #1 <== NOT EXECUTED 30010c1c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== 30010d54 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30010d54: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30010d58: e1a09000 mov r9, r0 30010d5c: e24dd010 sub sp, sp, #16 * 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 + my_length; if ( last_byte > the_jnode->info.file.size ) { 30010d60: e5900054 ldr r0, [r0, #84] ; 0x54 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30010d64: e59db034 ldr fp, [sp, #52] ; 0x34 * 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 + my_length; if ( last_byte > the_jnode->info.file.size ) { 30010d68: e3500000 cmp r0, #0 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30010d6c: e1a06001 mov r6, r1 30010d70: e1a07002 mov r7, r2 30010d74: e1a08003 mov r8, r3 /* * 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 + my_length; 30010d78: e08b1001 add r1, fp, r1 if ( last_byte > the_jnode->info.file.size ) { 30010d7c: ba000054 blt 30010ed4 30010d80: 0a000050 beq 30010ec8 */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30010d84: e59f5170 ldr r5, [pc, #368] ; 30010efc 30010d88: e1a00006 mov r0, r6 30010d8c: e5954000 ldr r4, [r5] 30010d90: e1a01007 mov r1, r7 30010d94: e1a02004 mov r2, r4 30010d98: e1a03fc2 asr r3, r2, #31 30010d9c: e88d000c stm sp, {r2, r3} 30010da0: eb00164a bl 300166d0 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010da4: e89d000c ldm sp, {r2, r3} */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30010da8: e1a0a000 mov sl, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010dac: e1a01007 mov r1, r7 30010db0: e1a00006 mov r0, r6 30010db4: eb001518 bl 3001621c <__divdi3> if ( start_offset ) { 30010db8: e35a0000 cmp sl, #0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010dbc: e1a07000 mov r7, r0 if ( start_offset ) { 30010dc0: 01a0600b moveq r6, fp 30010dc4: 1a000016 bne 30010e24 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010dc8: e1560004 cmp r6, r4 30010dcc: 2a000008 bcs 30010df4 30010dd0: ea000027 b 30010e74 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 ); 30010dd4: e5900000 ldr r0, [r0] 30010dd8: eb0006d4 bl 30012930 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010ddc: e5953000 ldr r3, [r5] 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; 30010de0: e0888004 add r8, r8, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010de4: e1530006 cmp r3, r6 #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; block++; 30010de8: e2877001 add r7, r7, #1 * IMFS_memfile_write * * This routine writes the specified data buffer into the in memory * file pointed to by the_jnode. The file is extended as needed. */ MEMFILE_STATIC ssize_t IMFS_memfile_write( 30010dec: e08aa004 add sl, sl, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010df0: 8a00001f bhi 30010e74 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010df4: e1a01007 mov r1, r7 30010df8: e3a02000 mov r2, #0 30010dfc: e1a00009 mov r0, r9 30010e00: ebfffdee bl 300105c0 if ( !block_ptr ) 30010e04: e3500000 cmp r0, #0 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 ); 30010e08: e1a01008 mov r1, r8 30010e0c: e1a02004 mov r2, r4 src += to_copy; block++; my_length -= to_copy; 30010e10: e0646006 rsb r6, r4, r6 */ 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 ); if ( !block_ptr ) 30010e14: 1affffee bne 30010dd4 IMFS_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 ); if ( !block_ptr ) 30010e18: e1a0000a mov r0, sl <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); return copied; } 30010e1c: e28dd010 add sp, sp, #16 30010e20: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 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 ); 30010e24: e1a00009 mov r0, r9 <== NOT EXECUTED 30010e28: e1a01007 mov r1, r7 <== NOT EXECUTED 30010e2c: e3a02000 mov r2, #0 <== NOT EXECUTED 30010e30: ebfffde2 bl 300105c0 <== NOT EXECUTED if ( !block_ptr ) 30010e34: e3500000 cmp r0, #0 <== NOT EXECUTED 30010e38: 0afffff7 beq 30010e1c <== 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; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; 30010e3c: e06a4004 rsb r4, sl, r4 <== NOT EXECUTED block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 30010e40: e5900000 ldr r0, [r0] <== 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; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; 30010e44: e154000b cmp r4, fp <== NOT EXECUTED 30010e48: 21a0400b movcs r4, fp <== NOT EXECUTED block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 30010e4c: e080000a add r0, r0, sl <== NOT EXECUTED 30010e50: e1a01008 mov r1, r8 <== NOT EXECUTED 30010e54: e1a02004 mov r2, r4 <== NOT EXECUTED 30010e58: eb0006b4 bl 30012930 <== NOT EXECUTED src += to_copy; 30010e5c: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; my_length -= to_copy; 30010e60: e064600b rsb r6, r4, fp <== NOT EXECUTED copied += to_copy; 30010e64: e1a0a004 mov sl, r4 <== NOT EXECUTED src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; block++; 30010e68: e2877001 add r7, r7, #1 <== NOT EXECUTED my_length -= to_copy; copied += to_copy; 30010e6c: e5954000 ldr r4, [r5] <== NOT EXECUTED 30010e70: eaffffd4 b 30010dc8 <== NOT EXECUTED * Phase 3: possibly the first part of one block */ IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 30010e74: e3560000 cmp r6, #0 30010e78: 0a00000a beq 30010ea8 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010e7c: e1a00009 mov r0, r9 30010e80: e1a01007 mov r1, r7 30010e84: e3a02000 mov r2, #0 30010e88: ebfffdcc bl 300105c0 if ( !block_ptr ) 30010e8c: e3500000 cmp r0, #0 30010e90: 0affffe0 beq 30010e18 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 ); 30010e94: e5900000 ldr r0, [r0] 30010e98: e1a01008 mov r1, r8 30010e9c: e1a02006 mov r2, r6 30010ea0: eb0006a2 bl 30012930 my_length = 0; copied += to_copy; 30010ea4: e08aa006 add sl, sl, r6 } IMFS_mtime_ctime_update( the_jnode ); 30010ea8: e28d0008 add r0, sp, #8 30010eac: e3a01000 mov r1, #0 30010eb0: ebffd5a1 bl 3000653c 30010eb4: e59d3008 ldr r3, [sp, #8] return copied; 30010eb8: e1a0000a mov r0, sl memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); 30010ebc: e5893044 str r3, [r9, #68] ; 0x44 30010ec0: e5893048 str r3, [r9, #72] ; 0x48 return copied; 30010ec4: eaffffd4 b 30010e1c * 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 + my_length; if ( last_byte > the_jnode->info.file.size ) { 30010ec8: e5993050 ldr r3, [r9, #80] ; 0x50 30010ecc: e1530001 cmp r3, r1 30010ed0: 2affffab bcs 30010d84 status = IMFS_memfile_extend( the_jnode, last_byte ); 30010ed4: e1a00009 mov r0, r9 30010ed8: e3a02000 mov r2, #0 30010edc: ebffff4f bl 30010c20 if ( status ) 30010ee0: e3500000 cmp r0, #0 30010ee4: 0affffa6 beq 30010d84 rtems_set_errno_and_return_minus_one( ENOSPC ); 30010ee8: eb000462 bl 30012078 <__errno> <== NOT EXECUTED 30010eec: e3a0301c mov r3, #28 <== NOT EXECUTED 30010ef0: e5803000 str r3, [r0] <== NOT EXECUTED 30010ef4: e3e00000 mvn r0, #0 <== NOT EXECUTED 30010ef8: eaffffc7 b 30010e1c <== NOT EXECUTED =============================================================================== 30005e0c : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 30005e0c: e5903008 ldr r3, [r0, #8] #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 30005e10: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 30005e14: e593204c ldr r2, [r3, #76] ; 0x4c 30005e18: e3520001 cmp r2, #1 30005e1c: 1a000002 bne 30005e2c /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 30005e20: e583005c str r0, [r3, #92] ; 0x5c return 0; 30005e24: e3a00000 mov r0, #0 } 30005e28: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 30005e2c: eb003091 bl 30012078 <__errno> <== NOT EXECUTED 30005e30: e3a03014 mov r3, #20 <== NOT EXECUTED 30005e34: e5803000 str r3, [r0] <== NOT EXECUTED 30005e38: e3e00000 mvn r0, #0 <== NOT EXECUTED 30005e3c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== 300087b0 : * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 300087b0: e92d4030 push {r4, r5, lr} IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); 300087b4: e59f50f8 ldr r5, [pc, #248] ; 300088b4 * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 300087b8: e1a04000 mov r4, r0 IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); 300087bc: e5953000 ldr r3, [r5] 300087c0: e280000c add r0, r0, #12 300087c4: e5931008 ldr r1, [r3, #8] 300087c8: eb003867 bl 3001696c switch( the_jnode->type ) { 300087cc: e594204c ldr r2, [r4, #76] ; 0x4c 300087d0: e2423001 sub r3, r2, #1 300087d4: e3530006 cmp r3, #6 300087d8: 979ff103 ldrls pc, [pc, r3, lsl #2] 300087dc: ea000023 b 30008870 <== NOT EXECUTED 300087e0: 30008884 .word 0x30008884 <== NOT EXECUTED 300087e4: 30008898 .word 0x30008898 <== NOT EXECUTED 300087e8: 300087fc .word 0x300087fc <== NOT EXECUTED 300087ec: 300087fc .word 0x300087fc <== NOT EXECUTED 300087f0: 30008834 .word 0x30008834 <== NOT EXECUTED 300087f4: 30008854 .word 0x30008854 <== NOT EXECUTED 300087f8: 30008818 .word 0x30008818 <== NOT EXECUTED case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); return; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 300087fc: e5953000 ldr r3, [r5] <== NOT EXECUTED 30008800: e59f00b0 ldr r0, [pc, #176] ; 300088b8 <== NOT EXECUTED 30008804: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30008808: e3a01001 mov r1, #1 <== NOT EXECUTED 3000880c: e3a02013 mov r2, #19 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); } 30008810: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); return; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 30008814: ea003b84 b 3001762c <== NOT EXECUTED return; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 30008818: e5953000 ldr r3, [r5] <== NOT EXECUTED 3000881c: e59f0098 ldr r0, [pc, #152] ; 300088bc <== NOT EXECUTED 30008820: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30008824: e3a01001 mov r1, #1 <== NOT EXECUTED 30008828: e3a02012 mov r2, #18 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); } 3000882c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); return; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 30008830: ea003b7d b 3001762c <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 30008834: e5953000 ldr r3, [r5] <== NOT EXECUTED 30008838: e59f1080 ldr r1, [pc, #128] ; 300088c0 <== NOT EXECUTED 3000883c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30008840: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED 30008844: eb0037f3 bl 30016818 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); 30008848: e59f0074 ldr r0, [pc, #116] ; 300088c4 } 3000884c: e8bd4030 pop {r4, r5, lr} default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); 30008850: ea003f57 b 300185b4 fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 30008854: e5953000 ldr r3, [r5] 30008858: e59f1068 ldr r1, [pc, #104] ; 300088c8 3000885c: e5930008 ldr r0, [r3, #8] 30008860: e5942050 ldr r2, [r4, #80] ; 0x50 30008864: e5943058 ldr r3, [r4, #88] ; 0x58 30008868: eb0037ea bl 30016818 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 3000886c: eafffff5 b 30008848 case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); return; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 30008870: e5953000 ldr r3, [r5] <== NOT EXECUTED 30008874: e59f1050 ldr r1, [pc, #80] ; 300088cc <== NOT EXECUTED 30008878: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED return; } puts(""); } 3000887c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); return; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 30008880: ea0037e4 b 30016818 <== NOT EXECUTED IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 30008884: e5953000 ldr r3, [r5] 30008888: e3a0002f mov r0, #47 ; 0x2f 3000888c: e5931008 ldr r1, [r3, #8] 30008890: eb003800 bl 30016898 break; 30008894: eaffffeb b 30008848 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 30008898: e5953000 ldr r3, [r5] 3000889c: e59f102c ldr r1, [pc, #44] ; 300088d0 300088a0: e5930008 ldr r0, [r3, #8] 300088a4: e5942050 ldr r2, [r4, #80] ; 0x50 300088a8: e5943054 ldr r3, [r4, #84] ; 0x54 300088ac: eb0037d9 bl 30016818 the_jnode->info.device.major, the_jnode->info.device.minor ); break; 300088b0: eaffffe4 b 30008848 =============================================================================== 30005e4c : node = loc->node_access; IMFS_assert( node->type == IMFS_SYM_LINK ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 30005e4c: e3520000 cmp r2, #0 <== NOT EXECUTED ssize_t IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 30005e50: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED IMFS_jnode_t *node; ssize_t i; node = loc->node_access; 30005e54: e5904000 ldr r4, [r0] <== NOT EXECUTED IMFS_assert( node->type == IMFS_SYM_LINK ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 30005e58: 01a00002 moveq r0, r2 <== NOT EXECUTED 30005e5c: 0a000010 beq 30005ea4 <== NOT EXECUTED 30005e60: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED 30005e64: e5d33000 ldrb r3, [r3] <== NOT EXECUTED 30005e68: e3530000 cmp r3, #0 <== NOT EXECUTED 30005e6c: 01a00003 moveq r0, r3 <== NOT EXECUTED 30005e70: 0a00000b beq 30005ea4 <== NOT EXECUTED 30005e74: e3a0c000 mov ip, #0 <== NOT EXECUTED 30005e78: e1a0000c mov r0, ip <== NOT EXECUTED 30005e7c: ea000003 b 30005e90 <== NOT EXECUTED 30005e80: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED 30005e84: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED 30005e88: e3530000 cmp r3, #0 <== NOT EXECUTED 30005e8c: 0a000004 beq 30005ea4 <== NOT EXECUTED 30005e90: e2800001 add r0, r0, #1 <== NOT EXECUTED 30005e94: e1500002 cmp r0, r2 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; 30005e98: e7c1300c strb r3, [r1, ip] <== NOT EXECUTED node = loc->node_access; IMFS_assert( node->type == IMFS_SYM_LINK ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 30005e9c: e1a0c000 mov ip, r0 <== NOT EXECUTED 30005ea0: 3afffff6 bcc 30005e80 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 30005ea4: e8bd0010 pop {r4} <== NOT EXECUTED 30005ea8: e12fff1e bx lr <== NOT EXECUTED =============================================================================== 30005eac : rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) { 30005eac: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 30005eb0: e5914000 ldr r4, [r1] <== NOT EXECUTED rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) { 30005eb4: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 30005eb8: e1a01003 mov r1, r3 <== NOT EXECUTED rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) { 30005ebc: e1a05002 mov r5, r2 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 30005ec0: e284000c add r0, r4, #12 <== NOT EXECUTED 30005ec4: e3a02020 mov r2, #32 <== NOT EXECUTED 30005ec8: eb00346c bl 30013080 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 30005ecc: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 30005ed0: e3530000 cmp r3, #0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 30005ed4: 11a00004 movne r0, r4 <== NOT EXECUTED 30005ed8: 1b00119b blne 3000a54c <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 30005edc: e5953000 ldr r3, [r5] <== 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 ); 30005ee0: e1a01004 mov r1, r4 <== NOT EXECUTED 30005ee4: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED the_jnode->Parent = new_parent; 30005ee8: e5843008 str r3, [r4, #8] <== NOT EXECUTED 30005eec: eb00118b bl 3000a520 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 30005ef0: e1a0000d mov r0, sp <== NOT EXECUTED 30005ef4: e3a01000 mov r1, #0 <== NOT EXECUTED 30005ef8: eb00018f bl 3000653c <== NOT EXECUTED 30005efc: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 30005f00: e3a00000 mov r0, #0 <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 30005f04: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } 30005f08: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30005f0c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== 3000e4e4 : { IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 3000e4e4: e5903000 ldr r3, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 3000e4e8: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 3000e4ec: e593204c ldr r2, [r3, #76] ; 0x4c 3000e4f0: e2422002 sub r2, r2, #2 3000e4f4: e3520005 cmp r2, #5 3000e4f8: 979ff102 ldrls pc, [pc, r2, lsl #2] 3000e4fc: ea000026 b 3000e59c <== NOT EXECUTED 3000e500: 3000e588 .word 0x3000e588 <== NOT EXECUTED 3000e504: 3000e59c .word 0x3000e59c <== NOT EXECUTED 3000e508: 3000e518 .word 0x3000e518 <== NOT EXECUTED 3000e50c: 3000e5b0 .word 0x3000e5b0 <== NOT EXECUTED 3000e510: 3000e5b0 .word 0x3000e5b0 <== NOT EXECUTED 3000e514: 3000e518 .word 0x3000e518 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 3000e518: e3a04000 mov r4, #0 <== NOT EXECUTED 3000e51c: e3a05000 mov r5, #0 <== NOT EXECUTED 3000e520: e5814020 str r4, [r1, #32] <== NOT EXECUTED 3000e524: e5815024 str r5, [r1, #36] ; 0x24 <== NOT EXECUTED /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; 3000e528: e5902010 ldr r2, [r0, #16] buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 3000e52c: e1d373b4 ldrh r7, [r3, #52] ; 0x34 * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 3000e530: e5922034 ldr r2, [r2, #52] ; 0x34 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; 3000e534: e5930044 ldr r0, [r3, #68] ; 0x44 */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; 3000e538: e5935030 ldr r5, [r3, #48] ; 0x30 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 3000e53c: e5934038 ldr r4, [r3, #56] ; 0x38 * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 3000e540: e5926000 ldr r6, [r2] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 3000e544: e593c040 ldr ip, [r3, #64] ; 0x40 buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 3000e548: e5932048 ldr r2, [r3, #72] ; 0x48 fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 3000e54c: e1c171b0 strh r7, [r1, #16] /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = 3000e550: e59f706c ldr r7, [pc, #108] ; 3000e5c4 3000e554: e5817000 str r7, [r1] rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 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; 3000e558: e1d373bc ldrh r7, [r3, #60] ; 0x3c buf->st_gid = the_jnode->st_gid; 3000e55c: e1d333be ldrh r3, [r3, #62] ; 0x3e rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); 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; 3000e560: e1c171b2 strh r7, [r1, #18] buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 3000e564: e5810030 str r0, [r1, #48] ; 0x30 /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = 3000e568: e5816004 str r6, [r1, #4] 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; 3000e56c: e1c131b4 strh r3, [r1, #20] */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; 3000e570: e581500c str r5, [r1, #12] buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 3000e574: e5814008 str r4, [r1, #8] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 3000e578: e581c028 str ip, [r1, #40] ; 0x28 buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 3000e57c: e5812038 str r2, [r1, #56] ; 0x38 return 0; 3000e580: e3a00000 mov r0, #0 } 3000e584: e8bd80f0 pop {r4, r5, r6, r7, pc} switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 3000e588: e593c054 ldr ip, [r3, #84] ; 0x54 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 3000e58c: e5932050 ldr r2, [r3, #80] ; 0x50 3000e590: e581c01c str ip, [r1, #28] 3000e594: e5812018 str r2, [r1, #24] break; 3000e598: eaffffe2 b 3000e528 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000e59c: eb000eb5 bl 30012078 <__errno> <== NOT EXECUTED 3000e5a0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000e5a4: e5803000 str r3, [r0] <== NOT EXECUTED 3000e5a8: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000e5ac: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED buf->st_rdev = 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; 3000e5b0: e2835050 add r5, r3, #80 ; 0x50 3000e5b4: e8950030 ldm r5, {r4, r5} 3000e5b8: e5814020 str r4, [r1, #32] 3000e5bc: e5815024 str r5, [r1, #36] ; 0x24 break; 3000e5c0: eaffffd8 b 3000e528 =============================================================================== 30005f10 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 30005f10: e92d40f0 push {r4, r5, r6, r7, lr} 30005f14: e1a06000 mov r6, r0 30005f18: e24dd040 sub sp, sp, #64 ; 0x40 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 30005f1c: e1a00002 mov r0, r2 int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 30005f20: e1a07002 mov r7, r2 30005f24: e1a05001 mov r5, r1 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 30005f28: eb00343c bl 30013020 30005f2c: e28d4004 add r4, sp, #4 30005f30: e1a01000 mov r1, r0 30005f34: e1a02004 mov r2, r4 30005f38: e28d303c add r3, sp, #60 ; 0x3c 30005f3c: e1a00007 mov r0, r7 30005f40: eb0020fc bl 3000e338 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 30005f44: e1a00005 mov r0, r5 30005f48: eb003420 bl 30012fd0 if (info.sym_link.name == NULL) { 30005f4c: e3500000 cmp r0, #0 IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 30005f50: e58d0028 str r0, [sp, #40] ; 0x28 if (info.sym_link.name == NULL) { 30005f54: 0a00000d beq 30005f90 new_node = IMFS_create_node( parent_loc, IMFS_SYM_LINK, new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info 30005f58: e28d3028 add r3, sp, #40 ; 0x28 * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( 30005f5c: e58d3000 str r3, [sp] 30005f60: e3a01004 mov r1, #4 30005f64: e1a00006 mov r0, r6 30005f68: e1a02004 mov r2, r4 30005f6c: e59f3030 ldr r3, [pc, #48] ; 30005fa4 30005f70: eb001e4a bl 3000d8a0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 30005f74: e3500000 cmp r0, #0 free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; 30005f78: 13a00000 movne r0, #0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 30005f7c: 0a000001 beq 30005f88 free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 30005f80: e28dd040 add sp, sp, #64 ; 0x40 30005f84: e8bd80f0 pop {r4, r5, r6, r7, pc} ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); 30005f88: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED 30005f8c: eb000141 bl 30006498 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 30005f90: eb003038 bl 30012078 <__errno> <== NOT EXECUTED 30005f94: e3a0300c mov r3, #12 <== NOT EXECUTED 30005f98: e5803000 str r3, [r0] <== NOT EXECUTED 30005f9c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30005fa0: eafffff6 b 30005f80 <== NOT EXECUTED =============================================================================== 30005fa8 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30005fa8: e92d41f0 push {r4, r5, r6, r7, r8, lr} IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 30005fac: e5915000 ldr r5, [r1] int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30005fb0: e24dd01c sub sp, sp, #28 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 30005fb4: e595304c ldr r3, [r5, #76] ; 0x4c int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30005fb8: e1a04001 mov r4, r1 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 30005fbc: e3530003 cmp r3, #3 int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30005fc0: e1a06000 mov r6, r0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 30005fc4: 0a000006 beq 30005fe4 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 30005fc8: e5943008 ldr r3, [r4, #8] 30005fcc: e1a00006 mov r0, r6 30005fd0: e1a01004 mov r1, r4 30005fd4: e1a0e00f mov lr, pc 30005fd8: e593f034 ldr pc, [r3, #52] ; 0x34 return result; } 30005fdc: e28dd01c add sp, sp, #28 30005fe0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 30005fe4: e595e050 ldr lr, [r5, #80] ; 0x50 <== NOT EXECUTED 30005fe8: e35e0000 cmp lr, #0 <== NOT EXECUTED 30005fec: 0a00001f beq 30006070 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 30005ff0: e1a0c00d mov ip, sp <== NOT EXECUTED 30005ff4: e1a07001 mov r7, r1 <== NOT EXECUTED 30005ff8: e8b7000f ldm r7!, {r0, r1, r2, r3} <== NOT EXECUTED 30005ffc: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30006000: e5973000 ldr r3, [r7] <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; 30006004: e28d801c add r8, sp, #28 <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 30006008: e1a0000d mov r0, sp <== 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; 3000600c: e58c3000 str r3, [ip] <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; 30006010: e528e01c str lr, [r8, #-28]! <== NOT EXECUTED IMFS_Set_handlers( &the_link ); 30006014: eb001e85 bl 3000da30 <== 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) 30006018: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED 3000601c: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED 30006020: e3520001 cmp r2, #1 <== NOT EXECUTED 30006024: 0a000008 beq 3000604c <== NOT EXECUTED if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 30006028: e2422001 sub r2, r2, #1 <== NOT EXECUTED 3000602c: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); 30006030: e28d0014 add r0, sp, #20 <== NOT EXECUTED 30006034: e3a01000 mov r1, #0 <== NOT EXECUTED 30006038: eb00013f bl 3000653c <== NOT EXECUTED 3000603c: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED 30006040: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 30006044: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED 30006048: eaffffde b 30005fc8 <== 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)( parentloc, &the_link ); 3000604c: e1a00006 mov r0, r6 <== NOT EXECUTED 30006050: e1a0100d mov r1, sp <== NOT EXECUTED 30006054: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED 30006058: e1a0e00f mov lr, pc <== NOT EXECUTED 3000605c: e593f034 ldr pc, [r3, #52] ; 0x34 <== NOT EXECUTED if ( result != 0 ) 30006060: e3500000 cmp r0, #0 <== NOT EXECUTED 30006064: 0affffd7 beq 30005fc8 <== NOT EXECUTED return -1; 30006068: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000606c: eaffffda b 30005fdc <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 30006070: eb003000 bl 30012078 <__errno> <== NOT EXECUTED 30006074: e3a03016 mov r3, #22 <== NOT EXECUTED 30006078: e5803000 str r3, [r0] <== NOT EXECUTED 3000607c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30006080: eaffffd5 b 30005fdc <== NOT EXECUTED =============================================================================== 30006084 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 30006084: e5903008 ldr r3, [r0, #8] #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 30006088: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 3000608c: e593204c ldr r2, [r3, #76] ; 0x4c 30006090: e3520001 cmp r2, #1 30006094: 1a000005 bne 300060b0 /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 30006098: e593205c ldr r2, [r3, #92] ; 0x5c 3000609c: e3520000 cmp r2, #0 300060a0: 0a000007 beq 300060c4 /* * 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; 300060a4: e3a00000 mov r0, #0 300060a8: e583005c str r0, [r3, #92] ; 0x5c return 0; } 300060ac: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 300060b0: eb002ff0 bl 30012078 <__errno> <== NOT EXECUTED 300060b4: e3a03014 mov r3, #20 <== NOT EXECUTED 300060b8: e5803000 str r3, [r0] <== NOT EXECUTED 300060bc: e3e00000 mvn r0, #0 <== NOT EXECUTED 300060c0: 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 */ 300060c4: eb002feb bl 30012078 <__errno> <== NOT EXECUTED 300060c8: e3a03016 mov r3, #22 <== NOT EXECUTED 300060cc: e5803000 str r3, [r0] <== NOT EXECUTED 300060d0: e3e00000 mvn r0, #0 <== NOT EXECUTED 300060d4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== 300060d8 : int IMFS_utime( rtems_filesystem_location_info_t *pathloc, /* IN */ time_t actime, /* IN */ time_t modtime /* IN */ ) { 300060d8: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 300060dc: e5904000 ldr r4, [r0] <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; the_jnode->stat_ctime = time( NULL ); 300060e0: e3a00000 mov r0, #0 <== NOT EXECUTED { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; 300060e4: e5841040 str r1, [r4, #64] ; 0x40 <== NOT EXECUTED the_jnode->stat_mtime = modtime; 300060e8: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED the_jnode->stat_ctime = time( NULL ); 300060ec: eb00341e bl 3001316c