=============================================================================== a0006b5c : 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 ); a0006b5c: e3a03000 mov r3, #0 <== NOT EXECUTED a0006b60: e5803084 str r3, [r0, #132] ; 0x84 <== NOT EXECUTED a0006b64: e5803088 str r3, [r0, #136] ; 0x88 <== NOT EXECUTED #else the_thread->cpu_time_used = 0; #endif } a0006b68: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000d978 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { a000d978: e5903000 ldr r3, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; a000d97c: e5902010 ldr r2, [r0, #16] switch( node->type ) { a000d980: 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; a000d984: e5922034 ldr r2, [r2, #52] ; 0x34 switch( node->type ) { a000d988: e2433001 sub r3, r3, #1 a000d98c: e3530006 cmp r3, #6 a000d990: 979ff103 ldrls pc, [pc, r3, lsl #2] a000d994: ea000008 b a000d9bc <== NOT EXECUTED a000d998: a000d9e4 .word 0xa000d9e4 <== NOT EXECUTED a000d99c: a000d9f4 .word 0xa000d9f4 <== NOT EXECUTED a000d9a0: a000d9d4 .word 0xa000d9d4 <== NOT EXECUTED a000d9a4: a000d9d4 .word 0xa000d9d4 <== NOT EXECUTED a000d9a8: a000d9c4 .word 0xa000d9c4 <== NOT EXECUTED a000d9ac: a000d9c4 .word 0xa000d9c4 <== NOT EXECUTED a000d9b0: a000d9b4 .word 0xa000d9b4 <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = fs_info->fifo_handlers; a000d9b4: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED a000d9b8: e5803008 str r3, [r0, #8] <== NOT EXECUTED break; } return 0; } a000d9bc: e3a00000 mov r0, #0 <== NOT EXECUTED a000d9c0: e12fff1e bx lr <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; a000d9c4: e5923008 ldr r3, [r2, #8] <== NOT EXECUTED a000d9c8: e5803008 str r3, [r0, #8] <== NOT EXECUTED loc->handlers = fs_info->fifo_handlers; break; } return 0; } a000d9cc: e3a00000 mov r0, #0 <== NOT EXECUTED a000d9d0: e12fff1e bx lr <== NOT EXECUTED case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; a000d9d4: e59f3028 ldr r3, [pc, #40] ; a000da04 <== NOT EXECUTED a000d9d8: e5803008 str r3, [r0, #8] <== NOT EXECUTED loc->handlers = fs_info->fifo_handlers; break; } return 0; } a000d9dc: e3a00000 mov r0, #0 <== NOT EXECUTED a000d9e0: e12fff1e bx lr <== NOT EXECUTED IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; a000d9e4: e592300c ldr r3, [r2, #12] a000d9e8: e5803008 str r3, [r0, #8] loc->handlers = fs_info->fifo_handlers; break; } return 0; } a000d9ec: e3a00000 mov r0, #0 a000d9f0: e12fff1e bx lr switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; a000d9f4: e59f300c ldr r3, [pc, #12] ; a000da08 <== NOT EXECUTED a000d9f8: e5803008 str r3, [r0, #8] <== NOT EXECUTED loc->handlers = fs_info->fifo_handlers; break; } return 0; } a000d9fc: e3a00000 mov r0, #0 <== NOT EXECUTED a000da00: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000e39c : void IMFS_check_node_remove( IMFS_jnode_t *jnode ) { a000e39c: e92d4010 push {r4, lr} <== NOT EXECUTED a000e3a0: e1a04000 mov r4, r0 <== NOT EXECUTED if ( !rtems_libio_is_file_open( jnode ) && jnode->st_nlink < 1 ) { a000e3a4: eb00015b bl a000e918 <== NOT EXECUTED a000e3a8: e3500000 cmp r0, #0 <== NOT EXECUTED a000e3ac: 1a00000f bne a000e3f0 <== NOT EXECUTED a000e3b0: e1d433b4 ldrh r3, [r4, #52] ; 0x34 <== NOT EXECUTED a000e3b4: e3530000 cmp r3, #0 <== NOT EXECUTED a000e3b8: 1a00000c bne a000e3f0 <== NOT EXECUTED if ( rtems_filesystem_current.node_access == jnode ) a000e3bc: e59f2048 ldr r2, [pc, #72] ; a000e40c <== NOT EXECUTED a000e3c0: e5922000 ldr r2, [r2] <== NOT EXECUTED a000e3c4: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED a000e3c8: e1510004 cmp r1, r4 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; a000e3cc: 05823004 streq r3, [r2, #4] <== NOT EXECUTED switch ( jnode->type ) { a000e3d0: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000e3d4: e3530004 cmp r3, #4 <== NOT EXECUTED a000e3d8: 0a000008 beq a000e400 <== NOT EXECUTED a000e3dc: e3530005 cmp r3, #5 <== NOT EXECUTED a000e3e0: 0a000003 beq a000e3f4 <== NOT EXECUTED break; default: break; } free( jnode ); a000e3e4: e1a00004 mov r0, r4 <== NOT EXECUTED } } a000e3e8: e8bd4010 pop {r4, lr} <== NOT EXECUTED break; default: break; } free( jnode ); a000e3ec: eaffdfe0 b a0006374 <== NOT EXECUTED a000e3f0: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( rtems_filesystem_current.node_access == jnode ) rtems_filesystem_current.node_access = NULL; switch ( jnode->type ) { case IMFS_MEMORY_FILE: IMFS_memfile_remove( jnode ); a000e3f4: e1a00004 mov r0, r4 <== NOT EXECUTED a000e3f8: eb00098a bl a0010a28 <== NOT EXECUTED break; a000e3fc: eafffff8 b a000e3e4 <== NOT EXECUTED case IMFS_SYM_LINK: free( jnode->info.sym_link.name ); a000e400: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a000e404: ebffdfda bl a0006374 <== NOT EXECUTED break; a000e408: eafffff5 b a000e3e4 <== NOT EXECUTED =============================================================================== a000d6f4 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000d6f4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000d6f8: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000d6fc: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000d700: 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; a000d704: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000d708: e1a07821 lsr r7, r1, #16 <== NOT EXECUTED a000d70c: 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(); a000d710: eb0003db bl a000e684 <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a000d714: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED a000d718: e3500000 cmp r0, #0 <== NOT EXECUTED a000d71c: 11550000 cmpne r5, r0 <== NOT EXECUTED a000d720: 03a05000 moveq r5, #0 <== NOT EXECUTED a000d724: 13a05001 movne r5, #1 <== NOT EXECUTED a000d728: 1a000009 bne a000d754 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; a000d72c: e1c473bc strh r7, [r4, #60] ; 0x3c <== NOT EXECUTED jnode->st_gid = group; a000d730: e1c463be strh r6, [r4, #62] ; 0x3e <== NOT EXECUTED IMFS_update_ctime( jnode ); a000d734: e1a0000d mov r0, sp <== NOT EXECUTED a000d738: e1a01005 mov r1, r5 <== NOT EXECUTED a000d73c: ebffe341 bl a0006448 <== NOT EXECUTED a000d740: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; a000d744: e1a00005 mov r0, r5 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); a000d748: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a000d74c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000d750: 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 ); a000d754: eb001236 bl a0012034 <__errno> <== NOT EXECUTED a000d758: e3a03001 mov r3, #1 <== NOT EXECUTED a000d75c: e5803000 str r3, [r0] <== NOT EXECUTED a000d760: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d764: eafffff8 b a000d74c <== NOT EXECUTED =============================================================================== a000d7e8 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000d7e8: e92d41f0 push {r4, r5, r6, r7, r8, lr} IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) a000d7ec: e3500000 cmp r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000d7f0: e1a04001 mov r4, r1 a000d7f4: e59d7018 ldr r7, [sp, #24] /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) return NULL; a000d7f8: 01a08000 moveq r8, r0 IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) a000d7fc: 0a00002b beq a000d8b0 return NULL; parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; a000d800: e5901010 ldr r1, [r0, #16] /* * Reject creation of FIFOs if support is disabled. */ if ( type == IMFS_FIFO && a000d804: e3540007 cmp r4, #7 * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) return NULL; parent = parent_loc->node_access; a000d808: e5906000 ldr r6, [r0] fs_info = parent_loc->mt_entry->fs_info; a000d80c: e5915034 ldr r5, [r1, #52] ; 0x34 /* * Reject creation of FIFOs if support is disabled. */ if ( type == IMFS_FIFO && a000d810: 0a000028 beq a000d8b8 return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); a000d814: e1a01002 mov r1, r2 a000d818: e59f2110 ldr r2, [pc, #272] ; a000d930 a000d81c: e1a00004 mov r0, r4 a000d820: e5922000 ldr r2, [r2] a000d824: e592202c ldr r2, [r2, #44] ; 0x2c a000d828: e1c32002 bic r2, r3, r2 a000d82c: ebffffcd bl a000d768 if ( !node ) a000d830: e2508000 subs r8, r0, #0 a000d834: 0a00001d beq a000d8b0 return NULL; /* * Set the type specific information */ if ( type == IMFS_DIRECTORY ) { a000d838: e3540001 cmp r4, #1 a000d83c: 0a00000d beq a000d878 rtems_chain_initialize_empty(&node->info.directory.Entries); } else if ( type == IMFS_HARD_LINK ) { a000d840: e3540003 cmp r4, #3 a000d844: 0a000026 beq a000d8e4 node->info.hard_link.link_node = info->hard_link.link_node; } else if ( type == IMFS_SYM_LINK ) { a000d848: e3540004 cmp r4, #4 a000d84c: 0a000024 beq a000d8e4 node->info.sym_link.name = info->sym_link.name; } else if ( type == IMFS_DEVICE ) { a000d850: e3540002 cmp r4, #2 a000d854: 0a00001e beq a000d8d4 node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; } else if ( type == IMFS_LINEAR_FILE ) { a000d858: e3540006 cmp r4, #6 <== NOT EXECUTED a000d85c: 0a000023 beq a000d8f0 <== NOT EXECUTED node->info.linearfile.size = 0; node->info.linearfile.direct = 0; } else if ( type == IMFS_MEMORY_FILE ) { a000d860: e3540005 cmp r4, #5 <== NOT EXECUTED a000d864: 0a000028 beq a000d90c <== NOT EXECUTED node->info.file.size = 0; node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; } else if ( type == IMFS_FIFO ) { a000d868: e3540007 cmp r4, #7 <== NOT EXECUTED node->info.fifo.pipe = NULL; a000d86c: 03a03000 moveq r3, #0 <== NOT EXECUTED a000d870: 05883050 streq r3, [r8, #80] ; 0x50 <== NOT EXECUTED a000d874: ea000005 b a000d890 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000d878: e2882054 add r2, r8, #84 ; 0x54 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a000d87c: e2883050 add r3, r8, #80 ; 0x50 Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a000d880: e5882050 str r2, [r8, #80] ; 0x50 head->previous = NULL; a000d884: e3a02000 mov r2, #0 a000d888: e5882054 str r2, [r8, #84] ; 0x54 tail->previous = head; a000d88c: e5883058 str r3, [r8, #88] ; 0x58 /* * This node MUST have a parent, so put it in that directory list. */ node->Parent = parent; node->st_ino = ++fs_info->ino_count; a000d890: e5953004 ldr r3, [r5, #4] a000d894: e2860050 add r0, r6, #80 ; 0x50 } /* * This node MUST have a parent, so put it in that directory list. */ node->Parent = parent; a000d898: e5886008 str r6, [r8, #8] node->st_ino = ++fs_info->ino_count; a000d89c: e2833001 add r3, r3, #1 a000d8a0: e5853004 str r3, [r5, #4] a000d8a4: e1a01008 mov r1, r8 a000d8a8: e5883038 str r3, [r8, #56] ; 0x38 a000d8ac: ebfff2e1 bl a000a438 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } a000d8b0: e1a00008 mov r0, r8 a000d8b4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} fs_info = parent_loc->mt_entry->fs_info; /* * Reject creation of FIFOs if support is disabled. */ if ( type == IMFS_FIFO && a000d8b8: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED a000d8bc: e59f1070 ldr r1, [pc, #112] ; a000d934 <== NOT EXECUTED a000d8c0: e1500001 cmp r0, r1 <== NOT EXECUTED fs_info->fifo_handlers == &rtems_filesystem_handlers_default ) return NULL; a000d8c4: 03a08000 moveq r8, #0 <== NOT EXECUTED fs_info = parent_loc->mt_entry->fs_info; /* * Reject creation of FIFOs if support is disabled. */ if ( type == IMFS_FIFO && a000d8c8: 1affffd1 bne a000d814 <== NOT EXECUTED node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } a000d8cc: e1a00008 mov r0, r8 <== NOT EXECUTED a000d8d0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED } else if ( type == IMFS_HARD_LINK ) { node->info.hard_link.link_node = info->hard_link.link_node; } else if ( type == IMFS_SYM_LINK ) { node->info.sym_link.name = info->sym_link.name; } else if ( type == IMFS_DEVICE ) { node->info.device.major = info->device.major; a000d8d4: e897000c ldm r7, {r2, r3} a000d8d8: e5882050 str r2, [r8, #80] ; 0x50 node->info.device.minor = info->device.minor; a000d8dc: e5883054 str r3, [r8, #84] ; 0x54 a000d8e0: eaffffea b a000d890 if ( type == IMFS_DIRECTORY ) { rtems_chain_initialize_empty(&node->info.directory.Entries); } else if ( type == IMFS_HARD_LINK ) { node->info.hard_link.link_node = info->hard_link.link_node; } else if ( type == IMFS_SYM_LINK ) { node->info.sym_link.name = info->sym_link.name; a000d8e4: e5973000 ldr r3, [r7] <== NOT EXECUTED a000d8e8: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED a000d8ec: eaffffe7 b a000d890 <== NOT EXECUTED } else if ( type == IMFS_DEVICE ) { node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; } else if ( type == IMFS_LINEAR_FILE ) { node->info.linearfile.size = 0; a000d8f0: e3a03000 mov r3, #0 <== NOT EXECUTED a000d8f4: e3a04000 mov r4, #0 <== NOT EXECUTED a000d8f8: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED a000d8fc: e5884054 str r4, [r8, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; a000d900: e3a03000 mov r3, #0 <== NOT EXECUTED a000d904: e5883058 str r3, [r8, #88] ; 0x58 <== NOT EXECUTED a000d908: eaffffe0 b a000d890 <== NOT EXECUTED } else if ( type == IMFS_MEMORY_FILE ) { node->info.file.size = 0; node->info.file.indirect = 0; a000d90c: e3a03000 mov r3, #0 <== NOT EXECUTED node->info.device.minor = info->device.minor; } else if ( type == IMFS_LINEAR_FILE ) { node->info.linearfile.size = 0; node->info.linearfile.direct = 0; } else if ( type == IMFS_MEMORY_FILE ) { node->info.file.size = 0; a000d910: e3a01000 mov r1, #0 <== NOT EXECUTED a000d914: e3a02000 mov r2, #0 <== NOT EXECUTED a000d918: e5881050 str r1, [r8, #80] ; 0x50 <== NOT EXECUTED a000d91c: e5882054 str r2, [r8, #84] ; 0x54 <== NOT EXECUTED node->info.file.indirect = 0; a000d920: e5883058 str r3, [r8, #88] ; 0x58 <== NOT EXECUTED node->info.file.doubly_indirect = 0; a000d924: e588305c str r3, [r8, #92] ; 0x5c <== NOT EXECUTED node->info.file.triply_indirect = 0; a000d928: e5883060 str r3, [r8, #96] ; 0x60 <== NOT EXECUTED a000d92c: eaffffd7 b a000d890 <== NOT EXECUTED =============================================================================== a000e350 : #include #include "imfs.h" void IMFS_create_orphan( IMFS_jnode_t *jnode ) { a000e350: e92d4010 push {r4, lr} <== NOT EXECUTED if ( jnode->Parent != NULL ) { a000e354: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #include #include "imfs.h" void IMFS_create_orphan( IMFS_jnode_t *jnode ) { a000e358: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a000e35c: e1a04000 mov r4, r0 <== NOT EXECUTED if ( jnode->Parent != NULL ) { a000e360: e3530000 cmp r3, #0 <== NOT EXECUTED a000e364: 0a000002 beq a000e374 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a000e368: ebfff03d bl a000a464 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( &jnode->Node ); jnode->Parent = NULL; a000e36c: e3a03000 mov r3, #0 <== NOT EXECUTED a000e370: e5843008 str r3, [r4, #8] <== NOT EXECUTED } --jnode->st_nlink; a000e374: e1d433b4 ldrh r3, [r4, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( jnode ); a000e378: e1a0000d mov r0, sp <== NOT EXECUTED a000e37c: e3a01000 mov r1, #0 <== NOT EXECUTED if ( jnode->Parent != NULL ) { rtems_chain_extract( &jnode->Node ); jnode->Parent = NULL; } --jnode->st_nlink; a000e380: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000e384: e1c433b4 strh r3, [r4, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( jnode ); a000e388: ebffe02e bl a0006448 <== NOT EXECUTED a000e38c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000e390: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED } a000e394: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000e398: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0008894 : * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { a0008894: e92d4010 push {r4, lr} <== NOT EXECUTED fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); a0008898: e59f405c ldr r4, [pc, #92] ; a00088fc <== NOT EXECUTED a000889c: e3a01001 mov r1, #1 <== NOT EXECUTED a00088a0: e3a02034 mov r2, #52 ; 0x34 <== NOT EXECUTED a00088a4: e5943000 ldr r3, [r4] <== NOT EXECUTED a00088a8: e59f0050 ldr r0, [pc, #80] ; a0008900 <== NOT EXECUTED a00088ac: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a00088b0: eb003b71 bl a001767c <== NOT EXECUTED fprintf(stdout, "/\n" ); a00088b4: e5943000 ldr r3, [r4] <== NOT EXECUTED a00088b8: e3a02002 mov r2, #2 <== NOT EXECUTED a00088bc: e3a01001 mov r1, #1 <== NOT EXECUTED a00088c0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a00088c4: e59f0038 ldr r0, [pc, #56] ; a0008904 <== NOT EXECUTED a00088c8: eb003b6b bl a001767c <== NOT EXECUTED IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); a00088cc: e59f3034 ldr r3, [pc, #52] ; a0008908 <== NOT EXECUTED a00088d0: e3a01000 mov r1, #0 <== NOT EXECUTED a00088d4: e5933000 ldr r3, [r3] <== NOT EXECUTED a00088d8: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a00088dc: ebffffc9 bl a0008808 <== NOT EXECUTED fprintf(stdout, "*************** End of Dump ***************\n" ); a00088e0: e5943000 ldr r3, [r4] <== NOT EXECUTED a00088e4: e59f0020 ldr r0, [pc, #32] ; a000890c <== NOT EXECUTED a00088e8: e3a01001 mov r1, #1 <== NOT EXECUTED a00088ec: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a00088f0: e3a02037 mov r2, #55 ; 0x37 <== NOT EXECUTED } a00088f4: e8bd4010 pop {r4, lr} <== NOT EXECUTED void IMFS_dump( void ) { fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); fprintf(stdout, "/\n" ); IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); fprintf(stdout, "*************** End of Dump ***************\n" ); a00088f8: ea003b5f b a001767c <== NOT EXECUTED =============================================================================== a0008808 : */ void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { a0008808: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED * */ int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; } a000880c: e5907050 ldr r7, [r0, #80] ; 0x50 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( Chain_Control *the_chain, const Chain_Node *the_node ) { return (the_node == _Chain_Tail(the_chain)); a0008810: e2808054 add r8, r0, #84 ; 0x54 <== NOT EXECUTED */ void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { a0008814: e1a05001 mov r5, r1 <== NOT EXECUTED IMFS_assert( level >= 0 ); IMFS_assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = rtems_chain_first( the_chain ); a0008818: e1570008 cmp r7, r8 <== NOT EXECUTED a000881c: 0a000015 beq a0008878 <== NOT EXECUTED a0008820: e59f6064 ldr r6, [pc, #100] ; a000888c <== NOT EXECUTED for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); a0008824: e281a001 add sl, r1, #1 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) a0008828: e3550000 cmp r5, #0 <== NOT EXECUTED a000882c: ba000009 blt a0008858 <== NOT EXECUTED a0008830: e3a04000 mov r4, #0 <== NOT EXECUTED fprintf(stdout, "...." ); a0008834: e5963000 ldr r3, [r6] <== NOT EXECUTED a0008838: e3a01001 mov r1, #1 <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) a000883c: e0844001 add r4, r4, r1 <== NOT EXECUTED fprintf(stdout, "...." ); a0008840: e59f0048 ldr r0, [pc, #72] ; a0008890 <== NOT EXECUTED a0008844: e3a02004 mov r2, #4 <== NOT EXECUTED a0008848: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000884c: eb003b8a bl a001767c <== NOT EXECUTED !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) a0008850: e1550004 cmp r5, r4 <== NOT EXECUTED a0008854: aafffff6 bge a0008834 <== NOT EXECUTED fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); a0008858: e1a00007 mov r0, r7 <== NOT EXECUTED a000885c: ebffffa0 bl a00086e4 <== NOT EXECUTED if ( the_jnode->type == IMFS_DIRECTORY ) a0008860: e597304c ldr r3, [r7, #76] ; 0x4c <== NOT EXECUTED a0008864: e3530001 cmp r3, #1 <== NOT EXECUTED a0008868: 0a000003 beq a000887c <== NOT EXECUTED the_chain = &the_directory->info.directory.Entries; for ( the_node = rtems_chain_first( the_chain ); !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { a000886c: e5977000 ldr r7, [r7] <== NOT EXECUTED IMFS_assert( level >= 0 ); IMFS_assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = rtems_chain_first( the_chain ); a0008870: e1570008 cmp r7, r8 <== NOT EXECUTED a0008874: 1affffeb bne a0008828 <== NOT EXECUTED a0008878: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); a000887c: e1a00007 mov r0, r7 <== NOT EXECUTED a0008880: e1a0100a mov r1, sl <== NOT EXECUTED a0008884: ebffffdf bl a0008808 <== NOT EXECUTED a0008888: eafffff7 b a000886c <== NOT EXECUTED =============================================================================== a000dac0 : const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a000dac0: 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 ) ) { a000dac4: e3d25007 bics r5, r2, #7 const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a000dac8: e24dd040 sub sp, sp, #64 ; 0x40 a000dacc: e58d2000 str r2, [sp] a000dad0: e1a0a000 mov sl, r0 a000dad4: e1a04001 mov r4, r1 a000dad8: 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 ) ) { a000dadc: 1a000081 bne a000dce8 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a000dae0: e5936000 ldr r6, [r3] a000dae4: e28d8004 add r8, sp, #4 a000dae8: 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 ); a000daec: e1a02008 mov r2, r8 a000daf0: e1a03009 mov r3, r9 a000daf4: e08a0005 add r0, sl, r5 a000daf8: e1a01004 mov r1, r4 a000dafc: eb0001df bl a000e280 pathnamelen -= len; i += len; if ( !pathloc->node_access ) a000db00: 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 ); a000db04: e1a0b000 mov fp, r0 pathnamelen -= len; a000db08: e59d203c ldr r2, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) a000db0c: e3530000 cmp r3, #0 a000db10: 0a00004e beq a000dc50 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a000db14: 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; a000db18: e0624004 rsb r4, r2, r4 i += len; a000db1c: 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 ) a000db20: 1a00000f bne a000db64 * 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 ) { a000db24: e593204c ldr r2, [r3, #76] ; 0x4c a000db28: e3520001 cmp r2, #1 a000db2c: 0a000068 beq a000dcd4 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a000db30: e1a00007 mov r0, r7 a000db34: ebffff8f bl a000d978 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a000db38: e59d1000 ldr r1, [sp] flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a000db3c: e1a06000 mov r6, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a000db40: e1a00007 mov r0, r7 a000db44: ebffffb0 bl a000da0c a000db48: e3500000 cmp r0, #0 a000db4c: 1a000036 bne a000dc2c rtems_set_errno_and_return_minus_one( EACCES ); a000db50: eb001137 bl a0012034 <__errno> <== NOT EXECUTED a000db54: e3a0300d mov r3, #13 <== NOT EXECUTED a000db58: e5803000 str r3, [r0] <== NOT EXECUTED a000db5c: e3e06000 mvn r6, #0 <== NOT EXECUTED a000db60: ea000031 b a000dc2c <== NOT EXECUTED /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) a000db64: e596104c ldr r1, [r6, #76] ; 0x4c a000db68: e3510001 cmp r1, #1 a000db6c: 0a000031 beq a000dc38 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { a000db70: 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; a000db74: e1a06003 mov r6, r3 switch( type ) { a000db78: 0a000006 beq a000db98 a000db7c: e35b0004 cmp fp, #4 a000db80: 0a000025 beq a000dc1c a000db84: e35b0002 cmp fp, #2 a000db88: 0a000013 beq a000dbdc /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { a000db8c: e35b0004 cmp fp, #4 a000db90: 1affffd5 bne a000daec a000db94: eaffffe2 b a000db24 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { a000db98: e593304c ldr r3, [r3, #76] ; 0x4c a000db9c: e3530003 cmp r3, #3 a000dba0: 0a00002f beq a000dc64 * It would be a design error if we evaluated the link and * was broken. */ IMFS_assert( node ); } else if ( node->type == IMFS_SYM_LINK ) { a000dba4: e3530004 cmp r3, #4 a000dba8: 0a000058 beq a000dd10 } /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a000dbac: e3530001 cmp r3, #1 a000dbb0: 1a000051 bne a000dcfc /* * 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 ) { a000dbb4: e596e05c ldr lr, [r6, #92] ; 0x5c a000dbb8: e35e0000 cmp lr, #0 a000dbbc: 1a000047 bne a000dce0 } /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a000dbc0: e1a00006 mov r0, r6 a000dbc4: e1a01008 mov r1, r8 a000dbc8: eb00018b bl a000e1fc if ( !node ) a000dbcc: e2506000 subs r6, r0, #0 a000dbd0: 0a00001e beq a000dc50 /* * Set the node access to the point we have found. */ pathloc->node_access = node; a000dbd4: e5876000 str r6, [r7] a000dbd8: eaffffc3 b a000daec case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a000dbdc: e59f1154 ldr r1, [pc, #340] ; a000dd38 <== NOT EXECUTED a000dbe0: e5912000 ldr r2, [r1] <== NOT EXECUTED a000dbe4: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED a000dbe8: e1520003 cmp r2, r3 <== NOT EXECUTED a000dbec: 0affffbe beq a000daec <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { a000dbf0: e597e010 ldr lr, [r7, #16] <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == a000dbf4: e59e201c ldr r2, [lr, #28] <== NOT EXECUTED a000dbf8: e1520003 cmp r2, r3 <== NOT EXECUTED a000dbfc: 0a00001e beq a000dc7c <== NOT EXECUTED pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) a000dc00: e5936008 ldr r6, [r3, #8] <== NOT EXECUTED a000dc04: e3560000 cmp r6, #0 <== NOT EXECUTED a000dc08: 1afffff1 bne a000dbd4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); a000dc0c: eb001108 bl a0012034 <__errno> <== NOT EXECUTED a000dc10: e3e06000 mvn r6, #0 <== NOT EXECUTED a000dc14: e580b000 str fp, [r0] <== NOT EXECUTED a000dc18: ea000003 b a000dc2c <== NOT EXECUTED case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); a000dc1c: eb001104 bl a0012034 <__errno> <== NOT EXECUTED a000dc20: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED a000dc24: e5803000 str r3, [r0] <== NOT EXECUTED a000dc28: e3e06000 mvn r6, #0 <== NOT EXECUTED if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } a000dc2c: e1a00006 mov r0, r6 a000dc30: e28dd040 add sp, sp, #64 ; 0x40 a000dc34: 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 ) ) a000dc38: e1a00007 mov r0, r7 a000dc3c: ebffff72 bl a000da0c a000dc40: e3500000 cmp r0, #0 a000dc44: 0affffc1 beq a000db50 a000dc48: e5973000 ldr r3, [r7] a000dc4c: eaffffc7 b a000db70 /* * 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 ); a000dc50: eb0010f7 bl a0012034 <__errno> a000dc54: e3a03002 mov r3, #2 a000dc58: e5803000 str r3, [r0] a000dc5c: e3e06000 mvn r6, #0 a000dc60: eafffff1 b a000dc2c case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); a000dc64: e1a00007 mov r0, r7 <== NOT EXECUTED a000dc68: e3a01000 mov r1, #0 <== NOT EXECUTED a000dc6c: ebffff80 bl a000da74 <== NOT EXECUTED node = pathloc->node_access; a000dc70: e5976000 ldr r6, [r7] <== NOT EXECUTED a000dc74: e596304c ldr r3, [r6, #76] ; 0x4c <== NOT EXECUTED a000dc78: eaffffcb b a000dbac <== 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; a000dc7c: e28ee008 add lr, lr, #8 <== NOT EXECUTED * 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; a000dc80: e28d6028 add r6, sp, #40 ; 0x28 <== NOT EXECUTED a000dc84: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000dc88: e8a6000f stmia r6!, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; a000dc8c: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED a000dc90: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED * 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; a000dc94: e59ec000 ldr ip, [lr] <== NOT EXECUTED *pathloc = newloc; a000dc98: e1a0e007 mov lr, r7 <== NOT EXECUTED a000dc9c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], a000dca0: e59d103c ldr r1, [sp, #60] ; 0x3c <== NOT EXECUTED */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; a000dca4: e58ec000 str ip, [lr] <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], a000dca8: e597300c ldr r3, [r7, #12] <== NOT EXECUTED a000dcac: e0610005 rsb r0, r1, r5 <== NOT EXECUTED * 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; a000dcb0: e586c000 str ip, [r6] <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], a000dcb4: e08a0000 add r0, sl, r0 <== NOT EXECUTED a000dcb8: e593c000 ldr ip, [r3] <== NOT EXECUTED a000dcbc: e0841001 add r1, r4, r1 <== NOT EXECUTED a000dcc0: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000dcc4: e1a03007 mov r3, r7 <== NOT EXECUTED a000dcc8: e12fff3c blx ip <== NOT EXECUTED a000dccc: e1a06000 mov r6, r0 <== NOT EXECUTED a000dcd0: eaffffd5 b a000dc2c <== NOT EXECUTED * * 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 ) { a000dcd4: e593e05c ldr lr, [r3, #92] ; 0x5c a000dcd8: e35e0000 cmp lr, #0 a000dcdc: 0affff93 beq a000db30 newloc = node->info.directory.mt_fs->mt_fs_root; a000dce0: e28ee01c add lr, lr, #28 <== NOT EXECUTED a000dce4: eaffffe5 b a000dc80 <== NOT EXECUTED 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 ); a000dce8: eb0010d1 bl a0012034 <__errno> <== NOT EXECUTED a000dcec: e3a03005 mov r3, #5 <== NOT EXECUTED a000dcf0: e5803000 str r3, [r0] <== NOT EXECUTED a000dcf4: e3e06000 mvn r6, #0 <== NOT EXECUTED a000dcf8: eaffffcb b a000dc2c <== NOT EXECUTED /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); a000dcfc: eb0010cc bl a0012034 <__errno> <== NOT EXECUTED a000dd00: e3a03014 mov r3, #20 <== NOT EXECUTED a000dd04: e5803000 str r3, [r0] <== NOT EXECUTED a000dd08: e3e06000 mvn r6, #0 <== NOT EXECUTED a000dd0c: eaffffc6 b a000dc2c <== NOT EXECUTED * was broken. */ IMFS_assert( node ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); a000dd10: e1a00007 mov r0, r7 <== NOT EXECUTED a000dd14: e3a01000 mov r1, #0 <== NOT EXECUTED a000dd18: eb000007 bl a000dd3c <== NOT EXECUTED /* * In contrast to a hard link, it is possible to have a broken * symbolic link. */ node = pathloc->node_access; if ( result == -1 ) a000dd1c: 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 ); a000dd20: 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; a000dd24: e5973000 ldr r3, [r7] <== NOT EXECUTED if ( result == -1 ) a000dd28: 0affffbf beq a000dc2c <== NOT EXECUTED /* * In contrast to a hard link, it is possible to have a broken * symbolic link. */ node = pathloc->node_access; a000dd2c: e1a06003 mov r6, r3 <== NOT EXECUTED a000dd30: e593304c ldr r3, [r3, #76] ; 0x4c <== NOT EXECUTED a000dd34: eaffff9c b a000dbac <== NOT EXECUTED =============================================================================== a000dea4 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { a000dea4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000dea8: e24dd040 sub sp, sp, #64 ; 0x40 a000deac: e1a06001 mov r6, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a000deb0: 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 */ ) { a000deb4: e1a0a000 mov sl, r0 a000deb8: e58d2000 str r2, [sp] node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); a000debc: eb001446 bl a0012fdc const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { int i = 0; a000dec0: e3a07000 mov r7, #0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); a000dec4: e1a04000 mov r4, r0 a000dec8: 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 ); a000decc: e1a01004 mov r1, r4 a000ded0: e28d303c add r3, sp, #60 ; 0x3c a000ded4: e08a0007 add r0, sl, r7 a000ded8: e1a02008 mov r2, r8 a000dedc: eb0000e7 bl a000e280 pathlen -= len; i += len; if ( !pathloc->node_access ) a000dee0: e5963000 ldr r3, [r6] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a000dee4: e59db03c ldr fp, [sp, #60] ; 0x3c * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); a000dee8: e1a09000 mov r9, r0 pathlen -= len; i += len; if ( !pathloc->node_access ) a000deec: e3530000 cmp r3, #0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a000def0: e06b4004 rsb r4, fp, r4 i += len; if ( !pathloc->node_access ) a000def4: 0a000035 beq a000dfd0 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a000def8: e3500000 cmp r0, #0 a000defc: 1a000006 bne a000df1c pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); a000df00: eb00104b bl a0012034 <__errno> a000df04: e3a03011 mov r3, #17 a000df08: e5803000 str r3, [r0] a000df0c: e3e05000 mvn r5, #0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } a000df10: e1a00005 mov r0, r5 a000df14: e28dd040 add sp, sp, #64 ; 0x40 a000df18: 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 ) a000df1c: e595104c ldr r1, [r5, #76] ; 0x4c a000df20: e3510001 cmp r1, #1 a000df24: 0a000044 beq a000e03c while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; a000df28: 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; a000df2c: e1a05003 mov r5, r3 switch( type ) { a000df30: e3590004 cmp r9, #4 a000df34: 979ff109 ldrls pc, [pc, r9, lsl #2] a000df38: eaffffe3 b a000decc <== NOT EXECUTED a000df3c: a000df00 .word 0xa000df00 <== NOT EXECUTED a000df40: a000decc .word 0xa000decc <== NOT EXECUTED a000df44: a000dfa0 .word 0xa000dfa0 <== NOT EXECUTED a000df48: a000df50 .word 0xa000df50 <== NOT EXECUTED a000df4c: a000dfe4 .word 0xa000dfe4 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { a000df50: e593304c ldr r3, [r3, #76] ; 0x4c a000df54: e3530003 cmp r3, #3 a000df58: 0a00006a beq a000e108 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { a000df5c: e3530004 cmp r3, #4 a000df60: 0a000068 beq a000e108 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) a000df64: e3550000 cmp r5, #0 a000df68: 0a00005f beq a000e0ec /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a000df6c: e595304c ldr r3, [r5, #76] ; 0x4c a000df70: e3530001 cmp r3, #1 a000df74: 1a00005c bne a000e0ec /* * 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 ) { a000df78: e595c05c ldr ip, [r5, #92] ; 0x5c a000df7c: e35c0000 cmp ip, #0 a000df80: 1a00005e bne a000e100 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a000df84: e1a00005 mov r0, r5 a000df88: e1a01008 mov r1, r8 a000df8c: eb00009a bl a000e1fc /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) a000df90: e2505000 subs r5, r0, #0 a000df94: 0a000017 beq a000dff8 done = true; else pathloc->node_access = node; a000df98: e5865000 str r5, [r6] a000df9c: eaffffca b a000decc case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a000dfa0: e59f1180 ldr r1, [pc, #384] ; a000e128 <== NOT EXECUTED a000dfa4: e5912000 ldr r2, [r1] <== NOT EXECUTED a000dfa8: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED a000dfac: e1530002 cmp r3, r2 <== NOT EXECUTED a000dfb0: 0affffc5 beq a000decc <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ a000dfb4: e596c010 ldr ip, [r6, #16] <== NOT EXECUTED a000dfb8: e59c201c ldr r2, [ip, #28] <== NOT EXECUTED a000dfbc: e1530002 cmp r3, r2 <== NOT EXECUTED a000dfc0: 0a000023 beq a000e054 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) a000dfc4: e5935008 ldr r5, [r3, #8] <== NOT EXECUTED a000dfc8: e3550000 cmp r5, #0 <== NOT EXECUTED a000dfcc: 1afffff1 bne a000df98 <== NOT EXECUTED * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); a000dfd0: eb001017 bl a0012034 <__errno> <== NOT EXECUTED a000dfd4: e3a03002 mov r3, #2 <== NOT EXECUTED a000dfd8: e5803000 str r3, [r0] <== NOT EXECUTED a000dfdc: e3e05000 mvn r5, #0 <== NOT EXECUTED a000dfe0: eaffffca b a000df10 <== 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 ); a000dfe4: eb001012 bl a0012034 <__errno> <== NOT EXECUTED a000dfe8: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED a000dfec: e5803000 str r3, [r0] <== NOT EXECUTED a000dff0: e3e05000 mvn r5, #0 <== NOT EXECUTED a000dff4: eaffffc5 b a000df10 <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; a000dff8: e59d303c ldr r3, [sp, #60] ; 0x3c a000dffc: e59d1000 ldr r1, [sp] /* * 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++) { a000e000: e08a4007 add r4, sl, r7 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; a000e004: e0633007 rsb r3, r3, r7 a000e008: e08a3003 add r3, sl, r3 a000e00c: 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++) { a000e010: e7da0007 ldrb r0, [sl, r7] a000e014: e3500000 cmp r0, #0 a000e018: 1a000003 bne a000e02c a000e01c: ea000021 b a000e0a8 a000e020: e5f40001 ldrb r0, [r4, #1]! <== NOT EXECUTED a000e024: e3500000 cmp r0, #0 <== NOT EXECUTED a000e028: 0a00001e beq a000e0a8 <== NOT EXECUTED if ( !IMFS_is_separator( path[ i ] ) ) a000e02c: ebffe49e bl a00072ac <== NOT EXECUTED a000e030: e3500000 cmp r0, #0 <== NOT EXECUTED a000e034: 1afffff9 bne a000e020 <== NOT EXECUTED a000e038: eaffffe4 b a000dfd0 <== 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 ) ) a000e03c: e1a00006 mov r0, r6 a000e040: ebfffe71 bl a000da0c a000e044: e3500000 cmp r0, #0 a000e048: 0a000022 beq a000e0d8 a000e04c: e5963000 ldr r3, [r6] a000e050: eaffffb4 b a000df28 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; a000e054: e28cc008 add ip, ip, #8 <== 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; a000e058: e28d4028 add r4, sp, #40 ; 0x28 <== NOT EXECUTED a000e05c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000e060: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED *pathloc = newloc; a000e064: e28de028 add lr, sp, #40 ; 0x28 <== NOT EXECUTED a000e068: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000e06c: e1a0e006 mov lr, r6 <== 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; a000e070: e59cc000 ldr ip, [ip] <== NOT EXECUTED *pathloc = newloc; a000e074: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a000e078: e59d003c ldr r0, [sp, #60] ; 0x3c <== NOT EXECUTED * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; a000e07c: e58ec000 str ip, [lr] <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a000e080: e596300c ldr r3, [r6, #12] <== NOT EXECUTED a000e084: e0600007 rsb r0, r0, r7 <== 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; a000e088: e584c000 str ip, [r4] <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a000e08c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000e090: e08a0000 add r0, sl, r0 <== NOT EXECUTED a000e094: e1a01006 mov r1, r6 <== NOT EXECUTED a000e098: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000e09c: e12fff33 blx r3 <== NOT EXECUTED a000e0a0: e1a05000 mov r5, r0 <== NOT EXECUTED a000e0a4: eaffff99 b a000df10 <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a000e0a8: e1a00006 mov r0, r6 a000e0ac: ebfffe31 bl a000d978 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) a000e0b0: e5963000 ldr r3, [r6] /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a000e0b4: e1a05000 mov r5, r0 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) a000e0b8: e593304c ldr r3, [r3, #76] ; 0x4c a000e0bc: e3530001 cmp r3, #1 a000e0c0: 1a000009 bne a000e0ec /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) a000e0c4: e1a00006 mov r0, r6 a000e0c8: e3a01003 mov r1, #3 a000e0cc: ebfffe4e bl a000da0c a000e0d0: e3500000 cmp r0, #0 a000e0d4: 1affff8d bne a000df10 rtems_set_errno_and_return_minus_one( EACCES ); a000e0d8: eb000fd5 bl a0012034 <__errno> <== NOT EXECUTED a000e0dc: e3a0300d mov r3, #13 <== NOT EXECUTED a000e0e0: e5803000 str r3, [r0] <== NOT EXECUTED a000e0e4: e3e05000 mvn r5, #0 <== NOT EXECUTED a000e0e8: eaffff88 b a000df10 <== NOT EXECUTED /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); a000e0ec: eb000fd0 bl a0012034 <__errno> <== NOT EXECUTED a000e0f0: e3a03014 mov r3, #20 <== NOT EXECUTED a000e0f4: e5803000 str r3, [r0] <== NOT EXECUTED a000e0f8: e3e05000 mvn r5, #0 <== NOT EXECUTED a000e0fc: eaffff83 b a000df10 <== 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; a000e100: e28cc01c add ip, ip, #28 <== NOT EXECUTED a000e104: eaffffd3 b a000e058 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); a000e108: e1a00006 mov r0, r6 <== NOT EXECUTED a000e10c: e3a01000 mov r1, #0 <== NOT EXECUTED a000e110: ebffff2e bl a000ddd0 <== NOT EXECUTED if ( result == -1 ) a000e114: e3700001 cmn r0, #1 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); a000e118: e1a05000 mov r5, r0 <== NOT EXECUTED if ( result == -1 ) a000e11c: 0affff7b beq a000df10 <== NOT EXECUTED a000e120: e5965000 ldr r5, [r6] <== NOT EXECUTED a000e124: eaffff8e b a000df64 <== NOT EXECUTED =============================================================================== a000da74 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000da74: 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; a000da78: e5903000 ldr r3, [r0] <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000da7c: e1a04000 mov r4, r0 <== NOT EXECUTED a000da80: 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; a000da84: e5933050 ldr r3, [r3, #80] ; 0x50 <== NOT EXECUTED a000da88: e5803000 str r3, [r0] <== NOT EXECUTED IMFS_Set_handlers( node ); a000da8c: ebffffb9 bl a000d978 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a000da90: e1a00004 mov r0, r4 <== NOT EXECUTED a000da94: e1a01005 mov r1, r5 <== NOT EXECUTED a000da98: ebffffdb bl a000da0c <== NOT EXECUTED a000da9c: e3500000 cmp r0, #0 <== NOT EXECUTED a000daa0: 0a000001 beq a000daac <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); return result; a000daa4: e3a00000 mov r0, #0 <== NOT EXECUTED } a000daa8: 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 ); a000daac: eb001160 bl a0012034 <__errno> <== NOT EXECUTED a000dab0: e3a0300d mov r3, #13 <== NOT EXECUTED a000dab4: e5803000 str r3, [r0] <== NOT EXECUTED a000dab8: e3e00000 mvn r0, #0 <== NOT EXECUTED a000dabc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000ddd0 : */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000ddd0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); a000ddd4: e59f60c4 ldr r6, [pc, #196] ; a000dea0 <== NOT EXECUTED */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000ddd8: e1a05000 mov r5, r0 <== NOT EXECUTED a000dddc: e1a07001 mov r7, r1 <== NOT EXECUTED */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; rtems_set_errno_and_return_minus_one( ELOOP ); a000dde0: e5962000 ldr r2, [r6] <== NOT EXECUTED a000dde4: ea000004 b a000ddfc <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) a000dde8: e3530004 cmp r3, #4 <== NOT EXECUTED a000ddec: 0a00001b beq a000de60 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || a000ddf0: e2433003 sub r3, r3, #3 <== NOT EXECUTED a000ddf4: e3530001 cmp r3, #1 <== NOT EXECUTED a000ddf8: 8a000014 bhi a000de50 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; a000ddfc: e1d233b0 ldrh r3, [r2, #48] ; 0x30 <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; a000de00: e5954000 ldr r4, [r5] <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; a000de04: e2833001 add r3, r3, #1 <== NOT EXECUTED a000de08: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED a000de0c: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { a000de10: e3530005 cmp r3, #5 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; a000de14: e1c233b0 strh r3, [r2, #48] ; 0x30 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { a000de18: 8a000019 bhi a000de84 <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) a000de1c: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000de20: e3530003 cmp r3, #3 <== NOT EXECUTED a000de24: 1affffef bne a000dde8 <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); a000de28: e1a00005 mov r0, r5 <== NOT EXECUTED a000de2c: e1a01007 mov r1, r7 <== NOT EXECUTED a000de30: ebffff0f bl a000da74 <== 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 ) ) ); a000de34: e3500000 cmp r0, #0 <== NOT EXECUTED a000de38: 1a00000d bne a000de74 <== NOT EXECUTED a000de3c: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000de40: e5962000 ldr r2, [r6] <== NOT EXECUTED 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 ) || a000de44: e2433003 sub r3, r3, #3 <== NOT EXECUTED a000de48: e3530001 cmp r3, #1 <== NOT EXECUTED a000de4c: 9affffea bls a000ddfc <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; a000de50: e3a03000 mov r3, #0 <== NOT EXECUTED 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 ) || a000de54: e3a00000 mov r0, #0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; a000de58: e1c233b0 strh r3, [r2, #48] ; 0x30 <== NOT EXECUTED return result; } a000de5c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); a000de60: e1a00005 mov r0, r5 <== NOT EXECUTED a000de64: e1a01007 mov r1, r7 <== NOT EXECUTED a000de68: ebffffb3 bl a000dd3c <== NOT EXECUTED } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); a000de6c: e3500000 cmp r0, #0 <== NOT EXECUTED a000de70: 0afffff1 beq a000de3c <== NOT EXECUTED a000de74: e5962000 ldr r2, [r6] <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; a000de78: e3a03000 mov r3, #0 <== NOT EXECUTED a000de7c: e1c233b0 strh r3, [r2, #48] ; 0x30 <== NOT EXECUTED return result; } a000de80: 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; a000de84: e3a03000 mov r3, #0 <== NOT EXECUTED a000de88: e1c233b0 strh r3, [r2, #48] ; 0x30 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); a000de8c: eb001068 bl a0012034 <__errno> <== NOT EXECUTED a000de90: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED a000de94: e5803000 str r3, [r0] <== NOT EXECUTED a000de98: e3e00000 mvn r0, #0 <== NOT EXECUTED a000de9c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000da0c : uid_t st_uid; gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) a000da0c: e3d13007 bics r3, r1, #7 */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { a000da10: e92d4070 push {r4, r5, r6, lr} a000da14: 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 ) ) a000da18: 1a000010 bne a000da60 rtems_set_errno_and_return_minus_one( EPERM ); jnode = node->node_access; a000da1c: e5904000 ldr r4, [r0] #if defined(RTEMS_POSIX_API) st_uid = geteuid(); a000da20: eb000317 bl a000e684 a000da24: e1a06000 mov r6, r0 st_gid = getegid(); a000da28: eb000310 bl a000e670 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) a000da2c: e1d433bc ldrh r3, [r4, #60] ; 0x3c a000da30: e1530006 cmp r3, r6 flags_to_test <<= 6; a000da34: 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 ) a000da38: 0a000002 beq a000da48 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) a000da3c: e1d433be ldrh r3, [r4, #62] ; 0x3e <== NOT EXECUTED a000da40: e1530000 cmp r3, r0 <== NOT EXECUTED flags_to_test <<= 3; a000da44: 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 ) a000da48: e5940030 ldr r0, [r4, #48] ; 0x30 a000da4c: 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 ); a000da50: e1550000 cmp r5, r0 a000da54: 13a00000 movne r0, #0 a000da58: 03a00001 moveq r0, #1 */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } a000da5c: 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 ); a000da60: eb001173 bl a0012034 <__errno> <== NOT EXECUTED a000da64: e3a03001 mov r3, #1 <== NOT EXECUTED a000da68: e5803000 str r3, [r0] <== NOT EXECUTED a000da6c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000da70: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000dd3c : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000dd3c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; a000dd40: e5906000 ldr r6, [r0] <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000dd44: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000dd48: e1a04000 mov r4, r0 <== NOT EXECUTED /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; a000dd4c: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( a000dd50: e1a02000 mov r2, r0 <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000dd54: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; a000dd58: e5803000 str r3, [r0] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( a000dd5c: e1a0100d mov r1, sp <== NOT EXECUTED a000dd60: e5960050 ldr r0, [r6, #80] ; 0x50 <== NOT EXECUTED a000dd64: eb0003b6 bl a000ec44 <== NOT EXECUTED ); /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( a000dd68: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000dd6c: e5966050 ldr r6, [r6, #80] ; 0x50 <== NOT EXECUTED a000dd70: e0866003 add r6, r6, r3 <== NOT EXECUTED a000dd74: e1a00006 mov r0, r6 <== NOT EXECUTED a000dd78: eb001497 bl a0012fdc <== NOT EXECUTED a000dd7c: e1a02005 mov r2, r5 <== NOT EXECUTED a000dd80: e1a01000 mov r1, r0 <== NOT EXECUTED a000dd84: e1a03004 mov r3, r4 <== NOT EXECUTED a000dd88: e1a00006 mov r0, r6 <== NOT EXECUTED a000dd8c: ebffff4b bl a000dac0 <== NOT EXECUTED a000dd90: e1a06000 mov r6, r0 <== NOT EXECUTED strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); a000dd94: e1a00004 mov r0, r4 <== NOT EXECUTED a000dd98: ebfffef6 bl a000d978 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a000dd9c: e1a00004 mov r0, r4 <== NOT EXECUTED a000dda0: e1a01005 mov r1, r5 <== NOT EXECUTED a000dda4: ebffff18 bl a000da0c <== NOT EXECUTED a000dda8: e3500000 cmp r0, #0 <== NOT EXECUTED a000ddac: 0a000002 beq a000ddbc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); return result; } a000ddb0: e1a00006 mov r0, r6 <== NOT EXECUTED a000ddb4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000ddb8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); a000ddbc: eb00109c bl a0012034 <__errno> <== NOT EXECUTED a000ddc0: e3a0300d mov r3, #13 <== NOT EXECUTED a000ddc4: e5803000 str r3, [r0] <== NOT EXECUTED a000ddc8: e3e06000 mvn r6, #0 <== NOT EXECUTED a000ddcc: eafffff7 b a000ddb0 <== NOT EXECUTED =============================================================================== a00115e0 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a00115e0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a00115e4: 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; a00115e8: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a00115ec: 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(); a00115f0: ebfff423 bl a000e684 <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a00115f4: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED a00115f8: e3500000 cmp r0, #0 <== NOT EXECUTED a00115fc: 11550000 cmpne r5, r0 <== NOT EXECUTED a0011600: 03a05000 moveq r5, #0 <== NOT EXECUTED a0011604: 13a05001 movne r5, #1 <== NOT EXECUTED a0011608: 1a00000d bne a0011644 <== 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); a001160c: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); a0011610: e1a06a06 lsl r6, r6, #20 <== NOT EXECUTED IMFS_update_ctime( jnode ); a0011614: e1a0000d mov r0, sp <== 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); a0011618: e3c33eff bic r3, r3, #4080 ; 0xff0 <== NOT EXECUTED a001161c: e3c3300f bic r3, r3, #15 <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); a0011620: e1836a26 orr r6, r3, r6, lsr #20 <== NOT EXECUTED a0011624: e5846030 str r6, [r4, #48] ; 0x30 <== NOT EXECUTED IMFS_update_ctime( jnode ); a0011628: e1a01005 mov r1, r5 <== NOT EXECUTED a001162c: ebffd385 bl a0006448 <== NOT EXECUTED a0011630: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; a0011634: 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 ); a0011638: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a001163c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0011640: 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 ); a0011644: eb00027a bl a0012034 <__errno> <== NOT EXECUTED a0011648: e3a03001 mov r3, #1 <== NOT EXECUTED a001164c: e5803000 str r3, [r0] <== NOT EXECUTED a0011650: e3e00000 mvn r0, #0 <== NOT EXECUTED a0011654: eafffff8 b a001163c <== NOT EXECUTED =============================================================================== a0011658 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } a0011658: e3a00000 mov r0, #0 <== NOT EXECUTED a001165c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0007190 : } int IMFS_fifo_close( rtems_libio_t *iop ) { a0007190: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int err = 0; IMFS_jnode_t *jnode = iop->pathinfo.node_access; a0007194: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { a0007198: e1a04000 mov r4, r0 <== NOT EXECUTED int err = 0; IMFS_jnode_t *jnode = iop->pathinfo.node_access; pipe_release(&JNODE2PIPE(jnode), iop); a000719c: e1a01000 mov r1, r0 <== NOT EXECUTED a00071a0: e2850050 add r0, r5, #80 ; 0x50 <== NOT EXECUTED a00071a4: eb002573 bl a0010778 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; a00071a8: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED IMFS_check_node_remove(jnode); a00071ac: e1a00005 mov r0, r5 <== NOT EXECUTED int err = 0; IMFS_jnode_t *jnode = iop->pathinfo.node_access; pipe_release(&JNODE2PIPE(jnode), iop); iop->flags &= ~LIBIO_FLAGS_OPEN; a00071b0: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a00071b4: e5843014 str r3, [r4, #20] <== NOT EXECUTED IMFS_check_node_remove(jnode); a00071b8: eb00018c bl a00077f0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); } a00071bc: e3a00000 mov r0, #0 <== NOT EXECUTED a00071c0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0007054 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0007054: e1a03000 mov r3, r0 <== NOT EXECUTED int err; if (command == FIONBIO) { a0007058: e59f0070 ldr r0, [pc, #112] ; a00070d0 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a000705c: e92d4010 push {r4, lr} <== NOT EXECUTED int err; if (command == FIONBIO) { a0007060: e1510000 cmp r1, r0 <== NOT EXECUTED a0007064: 0a000007 beq a0007088 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); a0007068: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a000706c: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED a0007070: eb00280c bl a00110a8 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0007074: e2502000 subs r2, r0, #0 <== NOT EXECUTED a0007078: b2624000 rsblt r4, r2, #0 <== NOT EXECUTED a000707c: ba00000f blt a00070c0 <== NOT EXECUTED } a0007080: e1a00002 mov r0, r2 <== NOT EXECUTED a0007084: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) a0007088: e3520000 cmp r2, #0 <== NOT EXECUTED a000708c: 0a00000a beq a00070bc <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) a0007090: e5922000 ldr r2, [r2] <== NOT EXECUTED a0007094: e3520000 cmp r2, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; a0007098: 15931014 ldrne r1, [r3, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a000709c: 05931014 ldreq r1, [r3, #20] <== NOT EXECUTED return 0; a00070a0: 13a02000 movne r2, #0 <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; a00070a4: 13811001 orrne r1, r1, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a00070a8: 03c11001 biceq r1, r1, #1 <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; a00070ac: 15831014 strne r1, [r3, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a00070b0: 05831014 streq r1, [r3, #20] <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } a00070b4: e1a00002 mov r0, r2 <== NOT EXECUTED a00070b8: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) a00070bc: e3a0400e mov r4, #14 <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); a00070c0: eb00352f bl a0014584 <__errno> <== NOT EXECUTED a00070c4: e3e02000 mvn r2, #0 <== NOT EXECUTED a00070c8: e5804000 str r4, [r0] <== NOT EXECUTED a00070cc: eaffffeb b a0007080 <== NOT EXECUTED =============================================================================== a0006ff4 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a0006ff4: e92d4010 push {r4, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); a0006ff8: e590c018 ldr ip, [r0, #24] <== NOT EXECUTED rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a0006ffc: e24dd004 sub sp, sp, #4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); a0007000: e59cc050 ldr ip, [ip, #80] ; 0x50 <== NOT EXECUTED a0007004: e58d0000 str r0, [sp] <== NOT EXECUTED a0007008: e1a0000c mov r0, ip <== NOT EXECUTED a000700c: eb002840 bl a0011114 <== NOT EXECUTED a0007010: e1a02000 mov r2, r0 <== NOT EXECUTED a0007014: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0007018: 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); a000701c: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0007020: a1a04003 movge r4, r3 <== NOT EXECUTED a0007024: a1a03002 movge r3, r2 <== NOT EXECUTED a0007028: ba000003 blt a000703c <== NOT EXECUTED } a000702c: e1a00003 mov r0, r3 <== NOT EXECUTED a0007030: e1a01004 mov r1, r4 <== NOT EXECUTED a0007034: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0007038: 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); a000703c: eb003550 bl a0014584 <__errno> <== NOT EXECUTED a0007040: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a0007044: e5804000 str r4, [r0] <== NOT EXECUTED a0007048: e3e03000 mvn r3, #0 <== NOT EXECUTED a000704c: e3e04000 mvn r4, #0 <== NOT EXECUTED a0007050: eafffff5 b a000702c <== NOT EXECUTED =============================================================================== a00071c4 : uint32_t mode ) { IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); a00071c4: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a00071c8: e92d4010 push {r4, lr} <== NOT EXECUTED a00071cc: e1a01000 mov r1, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); a00071d0: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED a00071d4: eb00259d bl a0010850 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a00071d8: e2504000 subs r4, r0, #0 <== NOT EXECUTED a00071dc: ba000001 blt a00071e8 <== NOT EXECUTED } a00071e0: e1a00004 mov r0, r4 <== NOT EXECUTED a00071e4: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err); a00071e8: eb0034e5 bl a0014584 <__errno> <== NOT EXECUTED a00071ec: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a00071f0: e5804000 str r4, [r0] <== NOT EXECUTED a00071f4: e3e04000 mvn r4, #0 <== NOT EXECUTED a00071f8: eafffff8 b a00071e0 <== NOT EXECUTED =============================================================================== a0007134 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0007134: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; a0007138: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a000713c: e1a03000 mov r3, r0 <== NOT EXECUTED a0007140: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); a0007144: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0007148: eb0026e3 bl a0010cdc <== NOT EXECUTED if (err > 0) a000714c: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0007150: da000007 ble a0007174 <== NOT EXECUTED IMFS_update_atime(jnode); a0007154: e1a0000d mov r0, sp <== NOT EXECUTED a0007158: e3a01000 mov r1, #0 <== NOT EXECUTED a000715c: eb000414 bl a00081b4 <== NOT EXECUTED a0007160: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0007164: e1a00005 mov r0, r5 <== NOT EXECUTED a0007168: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED IMFS_FIFO_RETURN(err); } a000716c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0007170: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); a0007174: 01a00005 moveq r0, r5 <== NOT EXECUTED a0007178: 0afffffb beq a000716c <== NOT EXECUTED a000717c: eb003500 bl a0014584 <__errno> <== NOT EXECUTED a0007180: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0007184: e5805000 str r5, [r0] <== NOT EXECUTED a0007188: e3e00000 mvn r0, #0 <== NOT EXECUTED a000718c: eafffff6 b a000716c <== NOT EXECUTED =============================================================================== a00070d4 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a00070d4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; a00070d8: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a00070dc: e1a03000 mov r3, r0 <== NOT EXECUTED a00070e0: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); a00070e4: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a00070e8: eb002767 bl a0010e8c <== NOT EXECUTED if (err > 0) { a00070ec: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00070f0: da000008 ble a0007118 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); a00070f4: e1a0000d mov r0, sp <== NOT EXECUTED a00070f8: e3a01000 mov r1, #0 <== NOT EXECUTED a00070fc: eb00042c bl a00081b4 <== NOT EXECUTED a0007100: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0007104: e1a00005 mov r0, r5 <== NOT EXECUTED a0007108: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED a000710c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } a0007110: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0007114: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) { IMFS_mtime_ctime_update(jnode); } IMFS_FIFO_RETURN(err); a0007118: 01a00005 moveq r0, r5 <== NOT EXECUTED a000711c: 0afffffb beq a0007110 <== NOT EXECUTED a0007120: eb003517 bl a0014584 <__errno> <== NOT EXECUTED a0007124: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0007128: e5805000 str r5, [r0] <== NOT EXECUTED a000712c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0007130: eafffff6 b a0007110 <== NOT EXECUTED =============================================================================== a000e1fc : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { a000e1fc: e92d4070 push {r4, r5, r6, lr} a000e200: e1a05001 mov r5, r1 a000e204: e1a04000 mov r4, r0 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) a000e208: e59f1068 ldr r1, [pc, #104] ; a000e278 a000e20c: e1a00005 mov r0, r5 a000e210: eb001295 bl a0012c6c a000e214: e3500000 cmp r0, #0 a000e218: 0a000005 beq a000e234 return directory; if ( !strcmp( name, dotdotname ) ) a000e21c: e1a00005 mov r0, r5 a000e220: e59f1054 ldr r1, [pc, #84] ; a000e27c a000e224: eb001290 bl a0012c6c a000e228: e3500000 cmp r0, #0 return directory->Parent; a000e22c: 05944008 ldreq r4, [r4, #8] */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) a000e230: 1a000001 bne a000e23c if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } a000e234: e1a00004 mov r0, r4 a000e238: e8bd8070 pop {r4, r5, r6, pc} a000e23c: e5943050 ldr r3, [r4, #80] ; 0x50 RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( Chain_Control *the_chain, const Chain_Node *the_node ) { return (the_node == _Chain_Tail(the_chain)); a000e240: e2846054 add r6, r4, #84 ; 0x54 if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = rtems_chain_first( the_chain ); a000e244: e1530006 cmp r3, r6 a000e248: 0a000008 beq a000e270 a000e24c: e1a04003 mov r4, r3 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) a000e250: e284100c add r1, r4, #12 a000e254: e1a00005 mov r0, r5 a000e258: eb001283 bl a0012c6c a000e25c: e3500000 cmp r0, #0 a000e260: 0afffff3 beq a000e234 the_chain = &directory->info.directory.Entries; for ( the_node = rtems_chain_first( the_chain ); !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { a000e264: e5944000 ldr r4, [r4] <== NOT EXECUTED if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = rtems_chain_first( the_chain ); a000e268: e1540006 cmp r4, r6 <== NOT EXECUTED a000e26c: 1afffff7 bne a000e250 <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; a000e270: e3a04000 mov r4, #0 a000e274: eaffffee b a000e234 =============================================================================== a000e12c : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a000e12c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; a000e130: e1a0c000 mov ip, r0 <== NOT EXECUTED a000e134: e5bc401c ldr r4, [ip, #28]! <== NOT EXECUTED ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a000e138: e24dd014 sub sp, sp, #20 <== NOT EXECUTED * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; a000e13c: e1a0600d mov r6, sp <== NOT EXECUTED ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a000e140: e1a0e000 mov lr, r0 <== NOT EXECUTED * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; a000e144: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000e148: e8a6000f stmia r6!, {r0, r1, r2, r3} <== NOT EXECUTED a000e14c: e59c2000 ldr r2, [ip] <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; a000e150: e3a01000 mov r1, #0 <== NOT EXECUTED * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; a000e154: e1a0500d mov r5, sp <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; a000e158: e58e101c str r1, [lr, #28] <== NOT EXECUTED * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access; loc = temp_mt_entry->mt_fs_root; a000e15c: e5862000 str r2, [r6] <== NOT EXECUTED temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); a000e160: e1a0000d mov r0, sp <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; a000e164: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED loc.node_access = (void *)jnode; a000e168: e58d4000 str r4, [sp] <== NOT EXECUTED IMFS_Set_handlers( &loc ); a000e16c: ebfffe01 bl a000d978 <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { a000e170: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a000e174: e2842054 add r2, r4, #84 ; 0x54 <== NOT EXECUTED a000e178: e3530001 cmp r3, #1 <== NOT EXECUTED a000e17c: 1a000010 bne a000e1c4 <== NOT EXECUTED result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { a000e180: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000e184: e1530002 cmp r3, r2 <== NOT EXECUTED a000e188: 0a000014 beq a000e1e0 <== NOT EXECUTED result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { a000e18c: e3540000 cmp r4, #0 <== NOT EXECUTED a000e190: 0a000008 beq a000e1b8 <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { a000e194: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000e198: e3530001 cmp r3, #1 <== NOT EXECUTED a000e19c: 1affffef bne a000e160 <== NOT EXECUTED } } } while (jnode != NULL); return 0; } a000e1a0: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000e1a4: e2842054 add r2, r4, #84 ; 0x54 <== NOT EXECUTED return -1; jnode = next; } if ( jnode != NULL ) { if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) a000e1a8: e1530002 cmp r3, r2 <== NOT EXECUTED a000e1ac: 0affffeb beq a000e160 <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); a000e1b0: e2534000 subs r4, r3, #0 <== NOT EXECUTED a000e1b4: 1affffe9 bne a000e160 <== NOT EXECUTED return 0; a000e1b8: e1a00004 mov r0, r4 <== NOT EXECUTED } a000e1bc: e28dd014 add sp, sp, #20 <== NOT EXECUTED a000e1c0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( NULL, &loc ); a000e1c4: e1a0100d mov r1, sp <== NOT EXECUTED a000e1c8: e3a00000 mov r0, #0 <== NOT EXECUTED a000e1cc: ebffdf2b bl a0005e80 <== NOT EXECUTED if (result != 0) a000e1d0: e3500000 cmp r0, #0 <== NOT EXECUTED a000e1d4: 1a000006 bne a000e1f4 <== NOT EXECUTED jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; a000e1d8: e1a04006 mov r4, r6 <== NOT EXECUTED a000e1dc: eaffffea b a000e18c <== NOT EXECUTED result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); a000e1e0: e3a00000 mov r0, #0 <== NOT EXECUTED a000e1e4: e1a0100d mov r1, sp <== NOT EXECUTED a000e1e8: ebffdf24 bl a0005e80 <== NOT EXECUTED if (result != 0) a000e1ec: e3500000 cmp r0, #0 <== NOT EXECUTED a000e1f0: 0afffff8 beq a000e1d8 <== NOT EXECUTED return -1; a000e1f4: e3e00000 mvn r0, #0 <== NOT EXECUTED a000e1f8: eaffffef b a000e1bc <== NOT EXECUTED =============================================================================== a000e280 : const char *path, int pathlen, char *token, int *token_len ) { a000e280: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a000e284: e1a05001 mov r5, r1 a000e288: e1a04002 mov r4, r2 a000e28c: e1a0a003 mov sl, r3 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; a000e290: e5d07000 ldrb r7, [r0] a000e294: e1a08000 mov r8, r0 int pathlen, char *token, int *token_len ) { register int i = 0; a000e298: 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) ) { a000e29c: ea000006 b a000e2bc a000e2a0: e1560005 cmp r6, r5 a000e2a4: aa000008 bge a000e2cc token[i] = c; if ( i == IMFS_NAME_MAX ) a000e2a8: 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; a000e2ac: e7c47006 strb r7, [r4, r6] if ( i == IMFS_NAME_MAX ) a000e2b0: 0a00001b beq a000e324 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; a000e2b4: e5f87001 ldrb r7, [r8, #1]! a000e2b8: 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) ) { a000e2bc: e1a00007 mov r0, r7 a000e2c0: ebffe3f9 bl a00072ac a000e2c4: e3500000 cmp r0, #0 a000e2c8: 0afffff4 beq a000e2a0 /* * Copy a seperator into token. */ if ( i == 0 ) { a000e2cc: e3560000 cmp r6, #0 a000e2d0: 1a000006 bne a000e2f0 token[i] = c; if ( (token[i] != '\0') && pathlen ) { a000e2d4: e3570000 cmp r7, #0 a000e2d8: 13550000 cmpne r5, #0 i++; type = IMFS_CURRENT_DIR; a000e2dc: 13a06001 movne r6, #1 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; a000e2e0: e5c47000 strb r7, [r4] if ( (token[i] != '\0') && pathlen ) { i++; a000e2e4: e1a00006 mov r0, r6 /* * Set token_len to the number of characters copied. */ *token_len = i; a000e2e8: e58a6000 str r6, [sl] a000e2ec: 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') { a000e2f0: e0843006 add r3, r4, r6 a000e2f4: 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 ) a000e2f8: e1a00004 mov r0, r4 a000e2fc: e59f1044 ldr r1, [pc, #68] ; a000e348 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { a000e300: e3530000 cmp r3, #0 token[i] = '\0'; a000e304: 13a03000 movne r3, #0 a000e308: 17c43006 strbne r3, [r4, r6] /* * Set token_len to the number of characters copied. */ *token_len = i; a000e30c: 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 ) a000e310: eb001255 bl a0012c6c a000e314: e3500000 cmp r0, #0 a000e318: 1a000003 bne a000e32c type = IMFS_UP_DIR; a000e31c: e3a00002 mov r0, #2 <== NOT EXECUTED else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } a000e320: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) return IMFS_INVALID_TOKEN; a000e324: e3a00004 mov r0, #4 <== NOT EXECUTED a000e328: 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 ) a000e32c: e1a00004 mov r0, r4 a000e330: e59f1014 ldr r1, [pc, #20] ; a000e34c a000e334: eb00124c bl a0012c6c a000e338: e3500000 cmp r0, #0 a000e33c: 03a00001 moveq r0, #1 a000e340: 13a00003 movne r0, #3 a000e344: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} =============================================================================== a0005a64 : 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 ) { a0005a64: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0005a68: 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, a0005a6c: e59f10e0 ldr r1, [pc, #224] ; a0005b54 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 ) { a0005a70: e1a04000 mov r4, r0 a0005a74: e1a0a002 mov sl, r2 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, a0005a78: e5911000 ldr r1, [r1] 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 ) { a0005a7c: 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) { a0005a80: e3510010 cmp r1, #16 a0005a84: 0a00000a beq a0005ab4 is_valid = true; break; } if(bit_mask > requested_bytes_per_block) a0005a88: e351000f cmp r1, #15 a0005a8c: c3a02005 movgt r2, #5 a0005a90: c3a03020 movgt r3, #32 a0005a94: da000005 ble a0005ab0 /* * 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) { a0005a98: e1510003 cmp r1, r3 a0005a9c: 0a000004 beq a0005ab4 is_valid = true; break; } if(bit_mask > requested_bytes_per_block) a0005aa0: ba000002 blt a0005ab0 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { a0005aa4: e2522001 subs r2, r2, #1 a0005aa8: e1a03083 lsl r3, r3, #1 a0005aac: 1afffff9 bne a0005a98 if(bit_mask > requested_bytes_per_block) break; } *dest_bytes_per_block = ((is_valid) ? requested_bytes_per_block : default_bytes_per_block); a0005ab0: e3a01080 mov r1, #128 ; 0x80 break; } if(bit_mask > requested_bytes_per_block) break; } *dest_bytes_per_block = ((is_valid) a0005ab4: e59f509c ldr r5, [pc, #156] ; a0005b58 a0005ab8: e5851000 str r1, [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(); a0005abc: eb001f9d bl a000d938 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; a0005ac0: e59fe094 ldr lr, [pc, #148] ; a0005b5c a0005ac4: 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(); a0005ac8: e584001c str r0, [r4, #28] a0005acc: 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; a0005ad0: e8be000f ldm lr!, {r0, r1, r2, r3} a0005ad4: e8ac000f stmia ip!, {r0, r1, r2, r3} a0005ad8: e8be000f ldm lr!, {r0, r1, r2, r3} a0005adc: e8ac000f stmia ip!, {r0, r1, r2, r3} a0005ae0: 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(); temp_mt_entry->mt_fs_root.handlers = directory_handlers; a0005ae4: e5847024 str r7, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; a0005ae8: e88c000f stm ip, {r0, r1, r2, r3} * * 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; temp_mt_entry->mt_fs_root.ops = op_table; a0005aec: 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 ) ); a0005af0: e3a00001 mov r0, #1 a0005af4: e3a01014 mov r1, #20 a0005af8: eb0001af bl a00061bc if ( !fs_info ) { a0005afc: e3500000 cmp r0, #0 a0005b00: 0a00000c beq a0005b38 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; a0005b04: e5952004 ldr r2, [r5, #4] fs_info->ino_count = 1; a0005b08: 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; a0005b0c: e5840034 str r0, [r4, #52] ; 0x34 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; a0005b10: e0821003 add r1, r2, r3 a0005b14: 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; a0005b18: e59d201c ldr r2, [sp, #28] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; a0005b1c: e9800408 stmib r0, {r3, sl} fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; a0005b20: e580700c str r7, [r0, #12] fs_info->fifo_handlers = fifo_handlers; a0005b24: e5802010 str r2, [r0, #16] /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; a0005b28: e5851004 str r1, [r5, #4] 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; a0005b2c: e5863038 str r3, [r6, #56] ; 0x38 return 0; a0005b30: e3a00000 mov r0, #0 } a0005b34: 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); a0005b38: e1a00006 mov r0, r6 <== NOT EXECUTED a0005b3c: eb00020c bl a0006374 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a0005b40: eb00313b bl a0012034 <__errno> <== NOT EXECUTED a0005b44: e3a0300c mov r3, #12 <== NOT EXECUTED a0005b48: e5803000 str r3, [r0] <== NOT EXECUTED a0005b4c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005b50: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a0005b60 : int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a0005b60: 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 */ ) { a0005b64: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a0005b68: e1a06002 mov r6, r2 <== NOT EXECUTED /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) a0005b6c: e1d323b4 ldrh r2, [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 */ ) { a0005b70: e24dd048 sub sp, sp, #72 ; 0x48 <== NOT EXECUTED a0005b74: 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 ) a0005b78: e3520007 cmp r2, #7 <== NOT EXECUTED int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a0005b7c: e58d3028 str r3, [sp, #40] ; 0x28 <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) a0005b80: 8a00001e bhi a0005c00 <== 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 ); a0005b84: e1a00006 mov r0, r6 <== NOT EXECUTED a0005b88: eb003513 bl a0012fdc <== NOT EXECUTED a0005b8c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0005b90: e1a01000 mov r1, r0 <== NOT EXECUTED a0005b94: e1a02004 mov r2, r4 <== NOT EXECUTED a0005b98: e28d3044 add r3, sp, #68 ; 0x44 <== NOT EXECUTED a0005b9c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005ba0: eb0021b6 bl a000e280 <== 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( a0005ba4: e28d2028 add r2, sp, #40 ; 0x28 <== NOT EXECUTED a0005ba8: e3a03ca2 mov r3, #41472 ; 0xa200 <== NOT EXECUTED a0005bac: e58d2000 str r2, [sp] <== NOT EXECUTED a0005bb0: e3a01003 mov r1, #3 <== NOT EXECUTED a0005bb4: e1a00005 mov r0, r5 <== NOT EXECUTED a0005bb8: e1a02004 mov r2, r4 <== NOT EXECUTED a0005bbc: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0005bc0: eb001f08 bl a000d7e8 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) a0005bc4: e3500000 cmp r0, #0 <== NOT EXECUTED a0005bc8: 0a000011 beq a0005c14 <== 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++; a0005bcc: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); a0005bd0: e28d003c add r0, sp, #60 ; 0x3c <== NOT EXECUTED a0005bd4: 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++; a0005bd8: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0005bdc: e2822001 add r2, r2, #1 <== NOT EXECUTED a0005be0: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); a0005be4: eb000217 bl a0006448 <== NOT EXECUTED a0005be8: e59d203c ldr r2, [sp, #60] ; 0x3c <== NOT EXECUTED a0005bec: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED return 0; a0005bf0: 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 ); a0005bf4: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED return 0; } a0005bf8: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED a0005bfc: 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 ); a0005c00: eb00310b bl a0012034 <__errno> <== NOT EXECUTED a0005c04: e3a0301f mov r3, #31 <== NOT EXECUTED a0005c08: e5803000 str r3, [r0] <== NOT EXECUTED a0005c0c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005c10: eafffff8 b a0005bf8 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); a0005c14: eb003106 bl a0012034 <__errno> <== NOT EXECUTED a0005c18: e3a0300c mov r3, #12 <== NOT EXECUTED a0005c1c: e5803000 str r3, [r0] <== NOT EXECUTED a0005c20: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005c24: eafffff3 b a0005bf8 <== NOT EXECUTED =============================================================================== a0010970 : */ MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { a0010970: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Obtain the pointer for the specified block number */ block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); a0010974: e3a02001 mov r2, #1 <== NOT EXECUTED a0010978: ebfffee9 bl a0010524 <== NOT EXECUTED if ( *block_entry_ptr ) a001097c: e5904000 ldr r4, [r0] <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Obtain the pointer for the specified block number */ block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); a0010980: e1a05000 mov r5, r0 <== NOT EXECUTED if ( *block_entry_ptr ) a0010984: e3540000 cmp r4, #0 <== NOT EXECUTED a0010988: 0a000001 beq a0010994 <== NOT EXECUTED return 0; a001098c: e3a00000 mov r0, #0 <== NOT EXECUTED a0010990: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * There is no memory for this block number so allocate it. */ memory = memfile_alloc_block(); a0010994: ebfffed5 bl a00104f0 <== NOT EXECUTED if ( !memory ) a0010998: e3500000 cmp r0, #0 <== NOT EXECUTED a001099c: 0a000002 beq a00109ac <== NOT EXECUTED return 1; *block_entry_ptr = memory; a00109a0: e5850000 str r0, [r5] <== NOT EXECUTED return 0; a00109a4: e1a00004 mov r0, r4 <== NOT EXECUTED a00109a8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * There is no memory for this block number so allocate it. */ memory = memfile_alloc_block(); if ( !memory ) return 1; a00109ac: e3a00001 mov r0, #1 <== NOT EXECUTED *block_entry_ptr = memory; return 0; } a00109b0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0010b9c : IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010b9c: e59f3128 ldr r3, [pc, #296] ; a0010ccc <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a0010ba0: e92d4df0 push {r4, r5, r6, r7, r8, sl, fp, lr} <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010ba4: e593b000 ldr fp, [r3] <== NOT EXECUTED a0010ba8: e3a03000 mov r3, #0 <== NOT EXECUTED a0010bac: e1530002 cmp r3, r2 <== NOT EXECUTED a0010bb0: e1a0312b lsr r3, fp, #2 <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a0010bb4: e1a06002 mov r6, r2 <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010bb8: e0223393 mla r2, r3, r3, r3 <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a0010bbc: e24dd004 sub sp, sp, #4 <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010bc0: e0233392 mla r3, r2, r3, r3 <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a0010bc4: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010bc8: e2433001 sub r3, r3, #1 <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a0010bcc: e1a08001 mov r8, r1 <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010bd0: e003039b mul r3, fp, r3 <== NOT EXECUTED a0010bd4: da000034 ble a0010cac <== NOT EXECUTED 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 ) a0010bd8: e5947054 ldr r7, [r4, #84] ; 0x54 <== NOT EXECUTED a0010bdc: e594a050 ldr sl, [r4, #80] ; 0x50 <== NOT EXECUTED a0010be0: e1560007 cmp r6, r7 <== NOT EXECUTED a0010be4: da000027 ble a0010c88 <== NOT EXECUTED return 0; /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010be8: e1a0cfcb asr ip, fp, #31 <== NOT EXECUTED a0010bec: e1a0300c mov r3, ip <== NOT EXECUTED a0010bf0: e1a0200b mov r2, fp <== NOT EXECUTED a0010bf4: e1a00008 mov r0, r8 <== NOT EXECUTED a0010bf8: e1a01006 mov r1, r6 <== NOT EXECUTED a0010bfc: e58dc000 str ip, [sp] <== NOT EXECUTED a0010c00: eb001348 bl a0015928 <__divdi3> <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010c04: e59dc000 ldr ip, [sp] <== NOT EXECUTED return 0; /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010c08: e1a05000 mov r5, r0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010c0c: e1a01007 mov r1, r7 <== NOT EXECUTED a0010c10: e1a0000a mov r0, sl <== NOT EXECUTED a0010c14: e1a0200b mov r2, fp <== NOT EXECUTED a0010c18: e1a0300c mov r3, ip <== NOT EXECUTED a0010c1c: eb001341 bl a0015928 <__divdi3> <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a0010c20: e1550000 cmp r5, r0 <== NOT EXECUTED /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010c24: e1a0a000 mov sl, r0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a0010c28: 3a00001b bcc a0010c9c <== NOT EXECUTED a0010c2c: e1a07000 mov r7, r0 <== NOT EXECUTED a0010c30: ea000002 b a0010c40 <== NOT EXECUTED a0010c34: e2877001 add r7, r7, #1 <== NOT EXECUTED a0010c38: e1550007 cmp r5, r7 <== NOT EXECUTED a0010c3c: 3a000016 bcc a0010c9c <== NOT EXECUTED if ( IMFS_memfile_addblock( the_jnode, block ) ) { a0010c40: e1a01007 mov r1, r7 <== NOT EXECUTED a0010c44: e1a00004 mov r0, r4 <== NOT EXECUTED a0010c48: ebffff48 bl a0010970 <== NOT EXECUTED a0010c4c: e3500000 cmp r0, #0 <== NOT EXECUTED a0010c50: 0afffff7 beq a0010c34 <== NOT EXECUTED a0010c54: ea000003 b a0010c68 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); a0010c58: e1a01007 mov r1, r7 <== NOT EXECUTED a0010c5c: 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-- ) { a0010c60: e2477001 sub r7, r7, #1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); a0010c64: ebffffc2 bl a0010b74 <== 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-- ) { a0010c68: e15a0007 cmp sl, r7 <== NOT EXECUTED a0010c6c: 9afffff9 bls a0010c58 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); a0010c70: eb0004ef bl a0012034 <__errno> <== NOT EXECUTED a0010c74: e3a0301c mov r3, #28 <== NOT EXECUTED a0010c78: e5803000 str r3, [r0] <== NOT EXECUTED a0010c7c: e3e00000 mvn r0, #0 <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } a0010c80: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0010c84: e8bd8df0 pop {r4, r5, r6, r7, r8, sl, fp, pc} <== NOT EXECUTED 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 ) a0010c88: 1a000001 bne a0010c94 <== NOT EXECUTED a0010c8c: e158000a cmp r8, sl <== NOT EXECUTED a0010c90: 8affffd4 bhi a0010be8 <== NOT EXECUTED return 0; a0010c94: e3a00000 mov r0, #0 <== NOT EXECUTED a0010c98: eafffff8 b a0010c80 <== NOT EXECUTED } /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; a0010c9c: e5848050 str r8, [r4, #80] ; 0x50 <== NOT EXECUTED a0010ca0: e5846054 str r6, [r4, #84] ; 0x54 <== NOT EXECUTED return 0; a0010ca4: e3a00000 mov r0, #0 <== NOT EXECUTED a0010ca8: eafffff4 b a0010c80 <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a0010cac: 1a000001 bne a0010cb8 <== NOT EXECUTED a0010cb0: e1530001 cmp r3, r1 <== NOT EXECUTED a0010cb4: 8affffc7 bhi a0010bd8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); a0010cb8: eb0004dd bl a0012034 <__errno> <== NOT EXECUTED a0010cbc: e3a03016 mov r3, #22 <== NOT EXECUTED a0010cc0: e5803000 str r3, [r0] <== NOT EXECUTED a0010cc4: e3e00000 mvn r0, #0 <== NOT EXECUTED a0010cc8: eaffffec b a0010c80 <== NOT EXECUTED =============================================================================== a0010524 : my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a0010524: e59f3200 ldr r3, [pc, #512] ; a001072c <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a0010528: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a001052c: e5935000 ldr r5, [r3] <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a0010530: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0010534: e1a04000 mov r4, r0 <== NOT EXECUTED my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a0010538: e1a05125 lsr r5, r5, #2 <== NOT EXECUTED a001053c: e2453001 sub r3, r5, #1 <== NOT EXECUTED a0010540: e1510003 cmp r1, r3 <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a0010544: e1a06002 mov r6, r2 <== NOT EXECUTED my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a0010548: 8a000007 bhi a001056c <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { a001054c: e3520000 cmp r2, #0 <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { p = info->indirect; a0010550: e5900058 ldr r0, [r0, #88] ; 0x58 <== NOT EXECUTED if ( malloc_it ) { a0010554: 0a00001c beq a00105cc <== NOT EXECUTED if ( !p ) { a0010558: e3500000 cmp r0, #0 <== NOT EXECUTED a001055c: 0a000041 beq a0010668 <== NOT EXECUTED } if ( !p ) return 0; return &info->indirect[ my_block ]; a0010560: e0800101 add r0, r0, r1, lsl #2 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } a0010564: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0010568: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { a001056c: e0275595 mla r7, r5, r5, r5 <== NOT EXECUTED a0010570: e2473001 sub r3, r7, #1 <== NOT EXECUTED a0010574: e1510003 cmp r1, r3 <== NOT EXECUTED a0010578: 8a000016 bhi a00105d8 <== NOT EXECUTED my_block -= FIRST_DOUBLY_INDIRECT; a001057c: e0657001 rsb r7, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a0010580: e1a00007 mov r0, r7 <== NOT EXECUTED a0010584: e1a01005 mov r1, r5 <== NOT EXECUTED a0010588: eb0014b2 bl a0015858 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a001058c: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a0010590: e1a08000 mov r8, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010594: e1a00007 mov r0, r7 <== NOT EXECUTED a0010598: eb001468 bl a0015740 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { a001059c: e3560000 cmp r6, #0 <== NOT EXECUTED 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; a00105a0: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; a00105a4: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { a00105a8: 0a00003f beq a00106ac <== NOT EXECUTED if ( !p ) { a00105ac: e3530000 cmp r3, #0 <== NOT EXECUTED a00105b0: 0a000045 beq a00106cc <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; a00105b4: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED a00105b8: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED if ( !p1 ) { a00105bc: e3500000 cmp r0, #0 <== NOT EXECUTED a00105c0: 0a00002f beq a0010684 <== NOT EXECUTED p = (block_p *)p[ doubly ]; if ( !p ) return 0; return (block_p *)&p[ singly ]; a00105c4: e0800108 add r0, r0, r8, lsl #2 <== NOT EXECUTED a00105c8: eaffffe5 b a0010564 <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) a00105cc: e3500000 cmp r0, #0 <== NOT EXECUTED a00105d0: 1affffe2 bne a0010560 <== NOT EXECUTED a00105d4: eaffffe2 b a0010564 <== NOT EXECUTED } /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { a00105d8: e0235597 mla r3, r7, r5, r5 <== NOT EXECUTED a00105dc: e2433001 sub r3, r3, #1 <== NOT EXECUTED a00105e0: e1510003 cmp r1, r3 <== NOT EXECUTED } /* * This means the requested block number is out of range. */ return 0; a00105e4: 83a00000 movhi r0, #0 <== NOT EXECUTED } /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { a00105e8: 8affffdd bhi a0010564 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; a00105ec: e0677001 rsb r7, r7, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a00105f0: e1a00007 mov r0, r7 <== NOT EXECUTED a00105f4: e1a01005 mov r1, r5 <== NOT EXECUTED a00105f8: eb001496 bl a0015858 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a00105fc: e1a01005 mov r1, r5 <== 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; a0010600: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010604: e1a00007 mov r0, r7 <== NOT EXECUTED a0010608: eb00144c bl a0015740 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a001060c: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a0010610: e1a08000 mov r8, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a0010614: eb001449 bl a0015740 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a0010618: e1a01005 mov r1, r5 <== NOT EXECUTED if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a001061c: e1a07000 mov r7, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a0010620: e1a00008 mov r0, r8 <== NOT EXECUTED a0010624: eb00148b bl a0015858 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { a0010628: 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; a001062c: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; a0010630: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { a0010634: 0a000029 beq a00106e0 <== NOT EXECUTED if ( !p ) { a0010638: e3500000 cmp r0, #0 <== NOT EXECUTED a001063c: 0a000035 beq a0010718 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; a0010640: e7903107 ldr r3, [r0, r7, lsl #2] <== NOT EXECUTED a0010644: e0807107 add r7, r0, r7, lsl #2 <== NOT EXECUTED if ( !p1 ) { a0010648: e3530000 cmp r3, #0 <== NOT EXECUTED a001064c: 0a00002c beq a0010704 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; a0010650: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED a0010654: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { a0010658: e3500000 cmp r0, #0 <== NOT EXECUTED a001065c: 0a00000d beq a0010698 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; a0010660: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED a0010664: eaffffbe b a0010564 <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); a0010668: e58d1000 str r1, [sp] <== NOT EXECUTED a001066c: ebffff9f bl a00104f0 <== NOT EXECUTED if ( !p ) a0010670: e3500000 cmp r0, #0 <== NOT EXECUTED a0010674: e59d1000 ldr r1, [sp] <== NOT EXECUTED return 0; info->indirect = p; a0010678: 15840058 strne r0, [r4, #88] ; 0x58 <== NOT EXECUTED if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); if ( !p ) a001067c: 1affffb7 bne a0010560 <== NOT EXECUTED a0010680: eaffffb7 b a0010564 <== NOT EXECUTED info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); a0010684: ebffff99 bl a00104f0 <== NOT EXECUTED if ( !p1 ) a0010688: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; a001068c: 15850000 strne r0, [r5] <== NOT EXECUTED p = (block_p *)p[ doubly ]; if ( !p ) return 0; return (block_p *)&p[ singly ]; a0010690: 10800108 addne r0, r0, r8, lsl #2 <== NOT EXECUTED a0010694: eaffffb2 b a0010564 <== NOT EXECUTED p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); a0010698: ebffff94 bl a00104f0 <== NOT EXECUTED if ( !p2 ) a001069c: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; a00106a0: 15850000 strne r0, [r5] <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p2 ) return 0; return (block_p *)&p2[ singly ]; a00106a4: 1080010a addne r0, r0, sl, lsl #2 <== NOT EXECUTED a00106a8: eaffffad b a0010564 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) a00106ac: e3530000 cmp r3, #0 <== NOT EXECUTED a00106b0: 1a000001 bne a00106bc <== NOT EXECUTED p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); if ( !p1 ) return 0; a00106b4: e1a00003 mov r0, r3 <== NOT EXECUTED a00106b8: eaffffa9 b a0010564 <== NOT EXECUTED } if ( !p ) return 0; p = (block_p *)p[ doubly ]; a00106bc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED if ( !p ) a00106c0: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; return (block_p *)&p[ singly ]; a00106c4: 10800108 addne r0, r0, r8, lsl #2 <== NOT EXECUTED a00106c8: eaffffa5 b a0010564 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); a00106cc: ebffff87 bl a00104f0 <== NOT EXECUTED if ( !p ) a00106d0: e2503000 subs r3, r0, #0 <== NOT EXECUTED a00106d4: 0afffff6 beq a00106b4 <== NOT EXECUTED return 0; info->doubly_indirect = p; a00106d8: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED a00106dc: eaffffb4 b a00105b4 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) a00106e0: e3500000 cmp r0, #0 <== NOT EXECUTED a00106e4: 0affff9e beq a0010564 <== NOT EXECUTED return 0; p1 = (block_p *) p[ triply ]; a00106e8: e7900107 ldr r0, [r0, r7, lsl #2] <== NOT EXECUTED if ( !p1 ) a00106ec: e3500000 cmp r0, #0 <== NOT EXECUTED a00106f0: 0affff9b beq a0010564 <== NOT EXECUTED return 0; p2 = (block_p *)p1[ doubly ]; a00106f4: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED if ( !p2 ) a00106f8: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; return (block_p *)&p2[ singly ]; a00106fc: 1080010a addne r0, r0, sl, lsl #2 <== NOT EXECUTED a0010700: eaffff97 b a0010564 <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); a0010704: ebffff79 bl a00104f0 <== NOT EXECUTED if ( !p1 ) a0010708: e2503000 subs r3, r0, #0 <== NOT EXECUTED a001070c: 0affffe8 beq a00106b4 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; a0010710: e5873000 str r3, [r7] <== NOT EXECUTED a0010714: eaffffcd b a0010650 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); a0010718: ebffff74 bl a00104f0 <== NOT EXECUTED if ( !p ) a001071c: e3500000 cmp r0, #0 <== NOT EXECUTED a0010720: 0affff8f beq a0010564 <== NOT EXECUTED return 0; info->triply_indirect = p; a0010724: e5840060 str r0, [r4, #96] ; 0x60 <== NOT EXECUTED a0010728: eaffffc4 b a0010640 <== NOT EXECUTED =============================================================================== a0008910 : * using the IMFS memory file type. * */ int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; a0008910: e59f3018 ldr r3, [pc, #24] ; a0008930 <== NOT EXECUTED a0008914: e5932000 ldr r2, [r3] <== NOT EXECUTED a0008918: e1a03122 lsr r3, r2, #2 <== NOT EXECUTED a000891c: e0203393 mla r0, r3, r3, r3 <== NOT EXECUTED a0008920: e0233390 mla r3, r0, r3, r3 <== NOT EXECUTED a0008924: e2430001 sub r0, r3, #1 <== NOT EXECUTED } a0008928: e0000092 mul r0, r2, r0 <== NOT EXECUTED a000892c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0010730 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a0010730: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0010734: e1a09000 mov r9, r0 <== NOT EXECUTED * 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) { a0010738: e590004c ldr r0, [r0, #76] ; 0x4c <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a001073c: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0010740: e1a07001 mov r7, r1 <== NOT EXECUTED * 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) { a0010744: e3500006 cmp r0, #6 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a0010748: e1a08002 mov r8, r2 <== NOT EXECUTED a001074c: e1a0b003 mov fp, r3 <== NOT EXECUTED a0010750: e59d5038 ldr r5, [sp, #56] ; 0x38 <== NOT EXECUTED * 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) { a0010754: 0a00005c beq a00108cc <== NOT EXECUTED /* * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) a0010758: e5992054 ldr r2, [r9, #84] ; 0x54 <== NOT EXECUTED /* * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; a001075c: e1a03001 mov r3, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) a0010760: e3a01000 mov r1, #0 <== NOT EXECUTED a0010764: e1510002 cmp r1, r2 <== NOT EXECUTED a0010768: e5992050 ldr r2, [r9, #80] ; 0x50 <== NOT EXECUTED /* * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; a001076c: e0851007 add r1, r5, r7 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) a0010770: da00003d ble a001086c <== NOT EXECUTED my_length = the_jnode->info.file.size - start; a0010774: e0635002 rsb r5, r3, r2 <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a0010778: e59f61b8 ldr r6, [pc, #440] ; a0010938 <== NOT EXECUTED a001077c: e1a00007 mov r0, r7 <== NOT EXECUTED a0010780: e1a01008 mov r1, r8 <== NOT EXECUTED a0010784: e5964000 ldr r4, [r6] <== NOT EXECUTED a0010788: e1a02004 mov r2, r4 <== NOT EXECUTED a001078c: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED a0010790: e98d000c stmib sp, {r2, r3} <== NOT EXECUTED a0010794: eb001590 bl a0015ddc <__moddi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010798: e99d000c ldmib sp, {r2, r3} <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a001079c: e1a0a000 mov sl, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a00107a0: e1a01008 mov r1, r8 <== NOT EXECUTED a00107a4: e1a00007 mov r0, r7 <== NOT EXECUTED a00107a8: eb00145e bl a0015928 <__divdi3> <== NOT EXECUTED if ( start_offset ) { a00107ac: e35a0000 cmp sl, #0 <== 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; a00107b0: e1a07000 mov r7, r0 <== NOT EXECUTED unsigned int last_byte; unsigned int copied; unsigned int start_offset; unsigned char *dest; dest = destination; a00107b4: 01a0800b moveq r8, fp <== 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 ) { a00107b8: 0a000014 beq a0010810 <== NOT EXECUTED to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a00107bc: e1a00009 mov r0, r9 <== NOT EXECUTED a00107c0: e1a01007 mov r1, r7 <== NOT EXECUTED a00107c4: e3a02000 mov r2, #0 <== NOT EXECUTED a00107c8: ebffff55 bl a0010524 <== NOT EXECUTED if ( !block_ptr ) a00107cc: e3500000 cmp r0, #0 <== NOT EXECUTED a00107d0: 0a000023 beq a0010864 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); a00107d4: e5901000 ldr r1, [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; a00107d8: e06a3004 rsb r3, sl, r4 <== NOT EXECUTED a00107dc: e1550003 cmp r5, r3 <== NOT EXECUTED a00107e0: 31a03005 movcc r3, r5 <== NOT EXECUTED 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 ); a00107e4: e081100a add r1, r1, sl <== NOT EXECUTED a00107e8: e1a02003 mov r2, r3 <== NOT EXECUTED a00107ec: e1a0000b mov r0, fp <== NOT EXECUTED a00107f0: e58d3000 str r3, [sp] <== NOT EXECUTED a00107f4: eb00083c bl a00128ec <== NOT EXECUTED dest += to_copy; a00107f8: e59d3000 ldr r3, [sp] <== NOT EXECUTED block++; my_length -= to_copy; a00107fc: e5964000 ldr r4, [r6] <== NOT EXECUTED 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; block++; a0010800: e2877001 add r7, r7, #1 <== NOT EXECUTED 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; a0010804: e08b8003 add r8, fp, r3 <== NOT EXECUTED block++; my_length -= to_copy; a0010808: e0635005 rsb r5, r3, r5 <== NOT EXECUTED copied += to_copy; a001080c: e1a0a003 mov sl, r3 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010810: e1550004 cmp r5, r4 <== NOT EXECUTED a0010814: 2a000008 bcs a001083c <== NOT EXECUTED a0010818: ea000017 b a001087c <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); a001081c: e5931000 ldr r1, [r3] <== NOT EXECUTED a0010820: eb000831 bl a00128ec <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010824: e5963000 ldr r3, [r6] <== NOT EXECUTED 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; a0010828: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; a001082c: e2877001 add r7, r7, #1 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010830: e1530005 cmp r3, r5 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; copied += to_copy; a0010834: e08aa004 add sl, sl, r4 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010838: 8a00000f bhi a001087c <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a001083c: e3a02000 mov r2, #0 <== NOT EXECUTED a0010840: e1a01007 mov r1, r7 <== NOT EXECUTED a0010844: e1a00009 mov r0, r9 <== NOT EXECUTED a0010848: ebffff35 bl a0010524 <== NOT EXECUTED if ( !block_ptr ) a001084c: e2503000 subs r3, r0, #0 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); a0010850: e1a02004 mov r2, r4 <== NOT EXECUTED dest += to_copy; block++; my_length -= to_copy; a0010854: e0645005 rsb r5, r4, r5 <== NOT EXECUTED to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); a0010858: e1a00008 mov r0, r8 <== NOT EXECUTED * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) a001085c: 1affffee bne a001081c <== NOT EXECUTED 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; a0010860: e1a0000a mov r0, sl <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } a0010864: e28dd014 add sp, sp, #20 <== NOT EXECUTED a0010868: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED /* * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) a001086c: 1affffc1 bne a0010778 <== NOT EXECUTED a0010870: e1510002 cmp r1, r2 <== NOT EXECUTED a0010874: 9affffbf bls a0010778 <== NOT EXECUTED a0010878: eaffffbd b a0010774 <== NOT EXECUTED /* * Phase 3: possibly the first part of one block */ IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { a001087c: e3550000 cmp r5, #0 <== NOT EXECUTED a0010880: 0a00000a beq a00108b0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010884: e1a00009 mov r0, r9 <== NOT EXECUTED a0010888: e1a01007 mov r1, r7 <== NOT EXECUTED a001088c: e3a02000 mov r2, #0 <== NOT EXECUTED a0010890: ebffff23 bl a0010524 <== NOT EXECUTED if ( !block_ptr ) a0010894: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0010898: 0afffff0 beq a0010860 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); a001089c: e1a00008 mov r0, r8 <== NOT EXECUTED a00108a0: e5931000 ldr r1, [r3] <== NOT EXECUTED a00108a4: e1a02005 mov r2, r5 <== NOT EXECUTED a00108a8: eb00080f bl a00128ec <== NOT EXECUTED copied += my_length; a00108ac: e08aa005 add sl, sl, r5 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); a00108b0: e28d000c add r0, sp, #12 <== NOT EXECUTED a00108b4: e3a01000 mov r1, #0 <== NOT EXECUTED a00108b8: ebffd6e2 bl a0006448 <== NOT EXECUTED a00108bc: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED return copied; a00108c0: e1a0000a mov r0, sl <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); a00108c4: e5893040 str r3, [r9, #64] ; 0x40 <== NOT EXECUTED return copied; a00108c8: eaffffe5 b a0010864 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) a00108cc: e2894050 add r4, r9, #80 ; 0x50 <== NOT EXECUTED a00108d0: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED a00108d4: e1a00003 mov r0, r3 <== NOT EXECUTED a00108d8: e1a01004 mov r1, r4 <== NOT EXECUTED a00108dc: e3a02000 mov r2, #0 <== NOT EXECUTED a00108e0: e0500007 subs r0, r0, r7 <== NOT EXECUTED a00108e4: e0c11008 sbc r1, r1, r8 <== NOT EXECUTED a00108e8: e1520001 cmp r2, r1 <== NOT EXECUTED my_length = length; if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; a00108ec: e5992058 ldr r2, [r9, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) a00108f0: da00000b ble a0010924 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; a00108f4: e067a003 rsb sl, r7, r3 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); a00108f8: e0821007 add r1, r2, r7 <== NOT EXECUTED a00108fc: e1a0000b mov r0, fp <== NOT EXECUTED a0010900: e1a0200a mov r2, sl <== NOT EXECUTED a0010904: eb0007f8 bl a00128ec <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); a0010908: e28d000c add r0, sp, #12 <== NOT EXECUTED a001090c: e3a01000 mov r1, #0 <== NOT EXECUTED a0010910: ebffd6cc bl a0006448 <== NOT EXECUTED a0010914: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED return copied; a0010918: e1a0000a mov r0, sl <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); a001091c: e5893040 str r3, [r9, #64] ; 0x40 <== NOT EXECUTED a0010920: eaffffcf b a0010864 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) a0010924: 1a000001 bne a0010930 <== NOT EXECUTED a0010928: e1550000 cmp r5, r0 <== NOT EXECUTED a001092c: 8afffff0 bhi a00108f4 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ my_length = length; a0010930: e1a0a005 mov sl, r5 <== NOT EXECUTED a0010934: eaffffef b a00108f8 <== NOT EXECUTED =============================================================================== a0010a28 : * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { a0010a28: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; a0010a2c: e59f613c ldr r6, [pc, #316] ; a0010b70 <== NOT EXECUTED * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { a0010a30: e5903058 ldr r3, [r0, #88] ; 0x58 <== NOT EXECUTED * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { a0010a34: e1a0a000 mov sl, r0 <== NOT EXECUTED /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; a0010a38: e5967000 ldr r7, [r6] <== NOT EXECUTED * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { a0010a3c: e3530000 cmp r3, #0 <== NOT EXECUTED /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; a0010a40: e1a07127 lsr r7, r7, #2 <== NOT EXECUTED * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { a0010a44: 0a000002 beq a0010a54 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); a0010a48: e2800058 add r0, r0, #88 ; 0x58 <== NOT EXECUTED a0010a4c: e1a01007 mov r1, r7 <== NOT EXECUTED a0010a50: ebffffdf bl a00109d4 <== NOT EXECUTED } if ( info->doubly_indirect ) { a0010a54: e59a305c ldr r3, [sl, #92] ; 0x5c <== NOT EXECUTED a0010a58: e3530000 cmp r3, #0 <== NOT EXECUTED a0010a5c: 0a000015 beq a0010ab8 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED a0010a6c: e3a02000 mov r2, #0 <== NOT EXECUTED a0010a70: e1a04002 mov r4, r2 <== NOT EXECUTED a0010a74: ea000000 b a0010a7c <== NOT EXECUTED a0010a78: e59a305c ldr r3, [sl, #92] ; 0x5c <== NOT EXECUTED if ( info->doubly_indirect[i] ) { a0010a7c: e7930102 ldr r0, [r3, r2, lsl #2] <== NOT EXECUTED a0010a80: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { a0010a88: e3500000 cmp r0, #0 <== NOT EXECUTED memfile_free_blocks_in_table( a0010a8c: e1a01007 mov r1, r7 <== NOT EXECUTED a0010a90: e0830002 add r0, r3, r2 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { a0010a94: 0a000000 beq a0010a9c <== NOT EXECUTED memfile_free_blocks_in_table( a0010a98: ebffffcd bl a00109d4 <== 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 ); a0010aac: e28a005c add r0, sl, #92 ; 0x5c <== NOT EXECUTED a0010ab0: e1a01007 mov r1, r7 <== NOT EXECUTED a0010ab4: ebffffc6 bl a00109d4 <== NOT EXECUTED } if ( info->triply_indirect ) { a0010ab8: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED a0010abc: e3500000 cmp r0, #0 <== NOT EXECUTED a0010ac0: 0a000028 beq a0010b68 <== NOT EXECUTED for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; a0010ad0: e5905000 ldr r5, [r0] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a0010ad4: e3550000 cmp r5, #0 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; a0010ad8: 13a09000 movne r9, #0 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a0010adc: 11a08009 movne r8, r9 <== NOT EXECUTED a0010ae0: 0a00001d beq a0010b5c <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED a0010aec: e3a00000 mov r0, #0 <== NOT EXECUTED a0010af0: e1a04000 mov r4, r0 <== NOT EXECUTED if ( p[j] ) { a0010af4: e7953100 ldr r3, [r5, r0, lsl #2] <== NOT EXECUTED a0010af8: e1a00100 lsl r0, r0, #2 <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; jtriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); a0010b10: ebffffaf bl a00109d4 <== 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 a0010b24: 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( a0010b28: e0800009 add r0, r0, r9 <== NOT EXECUTED a0010b2c: e1a01007 mov r1, r7 <== NOT EXECUTED a0010b30: ebffffa7 bl a00109d4 <== 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]; a0010b48: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a0010b4c: e1a09108 lsl r9, r8, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; a0010b50: e7905108 ldr r5, [r0, r8, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a0010b54: e3550000 cmp r5, #0 <== NOT EXECUTED a0010b58: 1affffe1 bne a0010ae4 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( a0010b5c: e28a0060 add r0, sl, #96 ; 0x60 <== NOT EXECUTED a0010b60: e1a01007 mov r1, r7 <== NOT EXECUTED a0010b64: ebffff9a bl a00109d4 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } a0010b68: e3a00000 mov r0, #0 <== NOT EXECUTED a0010b6c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a0010b74 : */ MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { a0010b74: 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 ); a0010b78: e3a02000 mov r2, #0 <== NOT EXECUTED a0010b7c: ebfffe68 bl a0010524 <== NOT EXECUTED IMFS_assert( block_ptr ); ptr = *block_ptr; *block_ptr = 0; a0010b80: e3a02000 mov r2, #0 <== NOT EXECUTED ) { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010b84: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_assert( block_ptr ); ptr = *block_ptr; a0010b88: e5900000 ldr r0, [r0] <== NOT EXECUTED *block_ptr = 0; a0010b8c: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); a0010b90: ebffff87 bl a00109b4 <== NOT EXECUTED return 1; } a0010b94: e3a00001 mov r0, #1 <== NOT EXECUTED a0010b98: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0010cd0 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a0010cd0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0010cd4: e1a09000 mov r9, r0 <== NOT EXECUTED a0010cd8: e24dd010 sub sp, sp, #16 <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + my_length; if ( last_byte > the_jnode->info.file.size ) { a0010cdc: e5900054 ldr r0, [r0, #84] ; 0x54 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a0010ce0: e59db034 ldr fp, [sp, #52] ; 0x34 <== NOT EXECUTED a0010ce4: e1a06001 mov r6, r1 <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + my_length; if ( last_byte > the_jnode->info.file.size ) { a0010ce8: e3500000 cmp r0, #0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a0010cec: e1a07002 mov r7, r2 <== NOT EXECUTED a0010cf0: e1a08003 mov r8, r3 <== NOT EXECUTED /* * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + my_length; a0010cf4: e08b1001 add r1, fp, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { a0010cf8: ba000054 blt a0010e50 <== NOT EXECUTED a0010cfc: 0a000050 beq a0010e44 <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a0010d00: e59f5170 ldr r5, [pc, #368] ; a0010e78 <== NOT EXECUTED a0010d04: e1a00006 mov r0, r6 <== NOT EXECUTED a0010d08: e1a01007 mov r1, r7 <== NOT EXECUTED a0010d0c: e5954000 ldr r4, [r5] <== NOT EXECUTED a0010d10: e1a02004 mov r2, r4 <== NOT EXECUTED a0010d14: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED a0010d18: e88d000c stm sp, {r2, r3} <== NOT EXECUTED a0010d1c: eb00142e bl a0015ddc <__moddi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010d20: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a0010d24: e1a0a000 mov sl, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010d28: e1a01007 mov r1, r7 <== NOT EXECUTED a0010d2c: e1a00006 mov r0, r6 <== NOT EXECUTED a0010d30: eb0012fc bl a0015928 <__divdi3> <== NOT EXECUTED if ( start_offset ) { a0010d34: e35a0000 cmp sl, #0 <== 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; a0010d38: e1a07000 mov r7, r0 <== NOT EXECUTED if ( start_offset ) { a0010d3c: 01a0600b moveq r6, fp <== NOT EXECUTED a0010d40: 1a000016 bne a0010da0 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010d44: e1560004 cmp r6, r4 <== NOT EXECUTED a0010d48: 2a000008 bcs a0010d70 <== NOT EXECUTED a0010d4c: ea000027 b a0010df0 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); a0010d50: e5900000 ldr r0, [r0] <== NOT EXECUTED a0010d54: eb0006e4 bl a00128ec <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010d58: e5953000 ldr r3, [r5] <== NOT EXECUTED return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; a0010d5c: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; a0010d60: e2877001 add r7, r7, #1 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010d64: e1530006 cmp r3, r6 <== NOT EXECUTED * 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( a0010d68: e08aa004 add sl, sl, r4 <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010d6c: 8a00001f bhi a0010df0 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010d70: e1a01007 mov r1, r7 <== NOT EXECUTED a0010d74: e3a02000 mov r2, #0 <== NOT EXECUTED a0010d78: e1a00009 mov r0, r9 <== NOT EXECUTED a0010d7c: ebfffde8 bl a0010524 <== NOT EXECUTED if ( !block_ptr ) a0010d80: e3500000 cmp r0, #0 <== NOT EXECUTED return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); a0010d84: e1a01008 mov r1, r8 <== NOT EXECUTED a0010d88: e1a02004 mov r2, r4 <== NOT EXECUTED src += to_copy; block++; my_length -= to_copy; a0010d8c: e0646006 rsb r6, r4, r6 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) a0010d90: 1affffee bne a0010d50 <== NOT EXECUTED 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 ) a0010d94: e1a0000a mov r0, sl <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); return copied; } a0010d98: e28dd010 add sp, sp, #16 <== NOT EXECUTED a0010d9c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010da0: e1a00009 mov r0, r9 <== NOT EXECUTED a0010da4: e1a01007 mov r1, r7 <== NOT EXECUTED a0010da8: e3a02000 mov r2, #0 <== NOT EXECUTED a0010dac: ebfffddc bl a0010524 <== NOT EXECUTED if ( !block_ptr ) a0010db0: e3500000 cmp r0, #0 <== NOT EXECUTED a0010db4: 0afffff7 beq a0010d98 <== NOT EXECUTED block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); a0010db8: 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; a0010dbc: e06a4004 rsb r4, sl, r4 <== NOT EXECUTED a0010dc0: e154000b cmp r4, fp <== NOT EXECUTED a0010dc4: 21a0400b movcs r4, fp <== NOT EXECUTED block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); a0010dc8: e080000a add r0, r0, sl <== NOT EXECUTED a0010dcc: e1a01008 mov r1, r8 <== NOT EXECUTED a0010dd0: e1a02004 mov r2, r4 <== NOT EXECUTED a0010dd4: eb0006c4 bl a00128ec <== NOT EXECUTED src += to_copy; a0010dd8: e0888004 add r8, r8, r4 <== NOT EXECUTED block++; my_length -= to_copy; a0010ddc: e064600b rsb r6, r4, fp <== NOT EXECUTED copied += to_copy; a0010de0: e1a0a004 mov sl, r4 <== NOT EXECUTED src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; block++; a0010de4: e2877001 add r7, r7, #1 <== NOT EXECUTED my_length -= to_copy; copied += to_copy; a0010de8: e5954000 ldr r4, [r5] <== NOT EXECUTED a0010dec: eaffffd4 b a0010d44 <== 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 ) { a0010df0: e3560000 cmp r6, #0 <== NOT EXECUTED a0010df4: 0a00000a beq a0010e24 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010df8: e1a00009 mov r0, r9 <== NOT EXECUTED a0010dfc: e1a01007 mov r1, r7 <== NOT EXECUTED a0010e00: e3a02000 mov r2, #0 <== NOT EXECUTED a0010e04: ebfffdc6 bl a0010524 <== NOT EXECUTED if ( !block_ptr ) a0010e08: e3500000 cmp r0, #0 <== NOT EXECUTED a0010e0c: 0affffe0 beq a0010d94 <== NOT EXECUTED return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, my_length ); a0010e10: e5900000 ldr r0, [r0] <== NOT EXECUTED a0010e14: e1a01008 mov r1, r8 <== NOT EXECUTED a0010e18: e1a02006 mov r2, r6 <== NOT EXECUTED a0010e1c: eb0006b2 bl a00128ec <== NOT EXECUTED my_length = 0; copied += to_copy; a0010e20: e08aa006 add sl, sl, r6 <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); a0010e24: e28d0008 add r0, sp, #8 <== NOT EXECUTED a0010e28: e3a01000 mov r1, #0 <== NOT EXECUTED a0010e2c: ebffd585 bl a0006448 <== NOT EXECUTED a0010e30: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED return copied; a0010e34: e1a0000a mov r0, sl <== NOT EXECUTED memcpy( &(*block_ptr)[ 0 ], src, my_length ); my_length = 0; copied += to_copy; } IMFS_mtime_ctime_update( the_jnode ); a0010e38: e5893044 str r3, [r9, #68] ; 0x44 <== NOT EXECUTED a0010e3c: e5893048 str r3, [r9, #72] ; 0x48 <== NOT EXECUTED return copied; a0010e40: eaffffd4 b a0010d98 <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + my_length; if ( last_byte > the_jnode->info.file.size ) { a0010e44: e5993050 ldr r3, [r9, #80] ; 0x50 <== NOT EXECUTED a0010e48: e1530001 cmp r3, r1 <== NOT EXECUTED a0010e4c: 2affffab bcs a0010d00 <== NOT EXECUTED status = IMFS_memfile_extend( the_jnode, last_byte ); a0010e50: e1a00009 mov r0, r9 <== NOT EXECUTED a0010e54: e3a02000 mov r2, #0 <== NOT EXECUTED a0010e58: ebffff4f bl a0010b9c <== NOT EXECUTED if ( status ) a0010e5c: e3500000 cmp r0, #0 <== NOT EXECUTED a0010e60: 0affffa6 beq a0010d00 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); a0010e64: eb000472 bl a0012034 <__errno> <== NOT EXECUTED a0010e68: e3a0301c mov r3, #28 <== NOT EXECUTED a0010e6c: e5803000 str r3, [r0] <== NOT EXECUTED a0010e70: e3e00000 mvn r0, #0 <== NOT EXECUTED a0010e74: eaffffc7 b a0010d98 <== NOT EXECUTED =============================================================================== a0005c28 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a0005c28: e92d41f0 push {r4, r5, r6, r7, r8, lr} a0005c2c: e24dd040 sub sp, sp, #64 ; 0x40 a0005c30: e1a04001 mov r4, r1 a0005c34: e1a08000 mov r8, r0 a0005c38: e1a07002 mov r7, r2 a0005c3c: e1a06003 mov r6, r3 IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, strlen( token ), new_name, &result ); a0005c40: eb0034e5 bl a0012fdc a0005c44: e28d5004 add r5, sp, #4 a0005c48: e1a01000 mov r1, r0 a0005c4c: e1a02005 mov r2, r5 a0005c50: e1a00008 mov r0, r8 a0005c54: e28d303c add r3, sp, #60 ; 0x3c a0005c58: eb002188 bl a000e280 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) a0005c5c: e2041a0f and r1, r4, #61440 ; 0xf000 a0005c60: e3510901 cmp r1, #16384 ; 0x4000 type = IMFS_DIRECTORY; a0005c64: 03a01001 moveq r1, #1 IMFS_get_token( token, strlen( token ), new_name, &result ); /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) a0005c68: 0a000008 beq a0005c90 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) a0005c6c: e3510902 cmp r1, #32768 ; 0x8000 type = IMFS_MEMORY_FILE; a0005c70: 03a01005 moveq r1, #5 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) a0005c74: 0a000005 beq a0005c90 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { a0005c78: e3510a06 cmp r1, #24576 ; 0x6000 a0005c7c: 13510a02 cmpne r1, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); a0005c80: 058d7028 streq r7, [sp, #40] ; 0x28 a0005c84: 058d602c streq r6, [sp, #44] ; 0x2c if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; a0005c88: 03a01002 moveq r1, #2 */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { a0005c8c: 1a00000a bne a0005cbc * 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( pathloc, type, new_name, mode, &info ); a0005c90: e28d3028 add r3, sp, #40 ; 0x28 a0005c94: e58d3000 str r3, [sp] a0005c98: e59d0058 ldr r0, [sp, #88] ; 0x58 a0005c9c: e1a02005 mov r2, r5 a0005ca0: e1a03004 mov r3, r4 a0005ca4: eb001ecf bl a000d7e8 if ( !new_node ) a0005ca8: e3500000 cmp r0, #0 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; a0005cac: 13a00000 movne r0, #0 * 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( pathloc, type, new_name, mode, &info ); if ( !new_node ) a0005cb0: 0a000005 beq a0005ccc rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } a0005cb4: e28dd040 add sp, sp, #64 ; 0x40 a0005cb8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { IMFS_token_types type = 0; a0005cbc: e3510a01 cmp r1, #4096 ; 0x1000 <== NOT EXECUTED a0005cc0: 03a01007 moveq r1, #7 <== NOT EXECUTED a0005cc4: 13a01000 movne r1, #0 <== NOT EXECUTED a0005cc8: eafffff0 b a0005c90 <== NOT EXECUTED * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( pathloc, type, new_name, mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); a0005ccc: eb0030d8 bl a0012034 <__errno> <== NOT EXECUTED a0005cd0: e3a0300c mov r3, #12 <== NOT EXECUTED a0005cd4: e5803000 str r3, [r0] <== NOT EXECUTED a0005cd8: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005cdc: eafffff4 b a0005cb4 <== NOT EXECUTED =============================================================================== a0005ce0 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a0005ce0: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a0005ce4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) a0005ce8: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a0005cec: e3520001 cmp r2, #1 <== NOT EXECUTED a0005cf0: 1a000002 bne a0005d00 <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; a0005cf4: e583005c str r0, [r3, #92] ; 0x5c <== NOT EXECUTED return 0; a0005cf8: e3a00000 mov r0, #0 <== NOT EXECUTED } a0005cfc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); a0005d00: eb0030cb bl a0012034 <__errno> <== NOT EXECUTED a0005d04: e3a03014 mov r3, #20 <== NOT EXECUTED a0005d08: e5803000 str r3, [r0] <== NOT EXECUTED a0005d0c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005d10: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0005d14 : ) { IMFS_jnode_t *node; node = pathloc->node_access; return node->type; a0005d14: e5903000 ldr r3, [r0] <== NOT EXECUTED } a0005d18: e593004c ldr r0, [r3, #76] ; 0x4c <== NOT EXECUTED a0005d1c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00086e4 : * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { a00086e4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); a00086e8: e59f50f8 ldr r5, [pc, #248] ; a00087e8 <== NOT EXECUTED * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { a00086ec: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); a00086f0: e280000c add r0, r0, #12 <== NOT EXECUTED a00086f4: e5953000 ldr r3, [r5] <== NOT EXECUTED a00086f8: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a00086fc: eb0038ae bl a00169bc <== NOT EXECUTED switch( the_jnode->type ) { a0008700: e594204c ldr r2, [r4, #76] ; 0x4c <== NOT EXECUTED a0008704: e2423001 sub r3, r2, #1 <== NOT EXECUTED a0008708: e3530006 cmp r3, #6 <== NOT EXECUTED a000870c: 979ff103 ldrls pc, [pc, r3, lsl #2] <== NOT EXECUTED a0008710: ea000023 b a00087a4 <== NOT EXECUTED a0008714: a00087b8 .word 0xa00087b8 <== NOT EXECUTED a0008718: a00087cc .word 0xa00087cc <== NOT EXECUTED a000871c: a0008730 .word 0xa0008730 <== NOT EXECUTED a0008720: a0008730 .word 0xa0008730 <== NOT EXECUTED a0008724: a0008768 .word 0xa0008768 <== NOT EXECUTED a0008728: a0008788 .word 0xa0008788 <== NOT EXECUTED a000872c: a000874c .word 0xa000874c <== NOT EXECUTED case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); return; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); a0008730: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008734: e59f00b0 ldr r0, [pc, #176] ; a00087ec <== NOT EXECUTED a0008738: e3a01001 mov r1, #1 <== NOT EXECUTED a000873c: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0008740: e3a02013 mov r2, #19 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); } a0008744: 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" ); a0008748: ea003bcb b a001767c <== NOT EXECUTED return; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); a000874c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008750: e59f0098 ldr r0, [pc, #152] ; a00087f0 <== NOT EXECUTED a0008754: e3a01001 mov r1, #1 <== NOT EXECUTED a0008758: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000875c: e3a02012 mov r2, #18 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); } a0008760: 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" ); a0008764: ea003bc4 b a001767c <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", a0008768: e5953000 ldr r3, [r5] <== NOT EXECUTED a000876c: e59f1080 ldr r1, [pc, #128] ; a00087f4 <== NOT EXECUTED a0008770: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0008774: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008778: eb00383a bl a0016868 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); a000877c: e59f0074 ldr r0, [pc, #116] ; a00087f8 <== NOT EXECUTED } a0008780: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); a0008784: ea003f9e b a0018604 <== NOT EXECUTED 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)", a0008788: e5953000 ldr r3, [r5] <== NOT EXECUTED a000878c: e59f1068 ldr r1, [pc, #104] ; a00087fc <== NOT EXECUTED a0008790: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0008794: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008798: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a000879c: eb003831 bl a0016868 <== NOT EXECUTED (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; a00087a0: eafffff5 b a000877c <== NOT EXECUTED case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); return; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); a00087a4: e5953000 ldr r3, [r5] <== NOT EXECUTED a00087a8: e59f1050 ldr r1, [pc, #80] ; a0008800 <== NOT EXECUTED a00087ac: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED return; } puts(""); } a00087b0: 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 ); a00087b4: ea00382b b a0016868 <== NOT EXECUTED IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); a00087b8: e5953000 ldr r3, [r5] <== NOT EXECUTED a00087bc: e3a0002f mov r0, #47 ; 0x2f <== NOT EXECUTED a00087c0: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a00087c4: eb003847 bl a00168e8 <== NOT EXECUTED break; a00087c8: eaffffeb b a000877c <== NOT EXECUTED case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", a00087cc: e5953000 ldr r3, [r5] <== NOT EXECUTED a00087d0: e59f102c ldr r1, [pc, #44] ; a0008804 <== NOT EXECUTED a00087d4: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a00087d8: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a00087dc: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a00087e0: eb003820 bl a0016868 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor ); break; a00087e4: eaffffe4 b a000877c <== NOT EXECUTED =============================================================================== a0005d20 : node = loc->node_access; IMFS_assert( node->type == IMFS_SYM_LINK ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) a0005d20: e3520000 cmp r2, #0 <== NOT EXECUTED ssize_t IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { a0005d24: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED IMFS_jnode_t *node; ssize_t i; node = loc->node_access; a0005d28: e5904000 ldr r4, [r0] <== NOT EXECUTED IMFS_assert( node->type == IMFS_SYM_LINK ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) a0005d2c: 01a00002 moveq r0, r2 <== NOT EXECUTED a0005d30: 0a000010 beq a0005d78 <== NOT EXECUTED a0005d34: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a0005d38: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a0005d3c: e3530000 cmp r3, #0 <== NOT EXECUTED a0005d40: 01a00003 moveq r0, r3 <== NOT EXECUTED a0005d44: 0a00000b beq a0005d78 <== NOT EXECUTED a0005d48: e3a0c000 mov ip, #0 <== NOT EXECUTED a0005d4c: e1a0000c mov r0, ip <== NOT EXECUTED a0005d50: ea000003 b a0005d64 <== NOT EXECUTED a0005d54: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a0005d58: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED a0005d5c: e3530000 cmp r3, #0 <== NOT EXECUTED a0005d60: 0a000004 beq a0005d78 <== NOT EXECUTED a0005d64: e2800001 add r0, r0, #1 <== NOT EXECUTED a0005d68: e1500002 cmp r0, r2 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; a0005d6c: 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++ ) a0005d70: e1a0c000 mov ip, r0 <== NOT EXECUTED a0005d74: 3afffff6 bcc a0005d54 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } a0005d78: e8bd0010 pop {r4} <== NOT EXECUTED a0005d7c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0005d80 : 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 */ ) { a0005d80: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; a0005d84: 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 */ ) { a0005d88: 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 ); a0005d8c: 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 */ ) { a0005d90: 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 ); a0005d94: e284000c add r0, r4, #12 <== NOT EXECUTED a0005d98: e3a02020 mov r2, #32 <== NOT EXECUTED a0005d9c: eb0034a6 bl a001303c <== NOT EXECUTED if ( the_jnode->Parent != NULL ) a0005da0: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0005da4: e3530000 cmp r3, #0 <== NOT EXECUTED a0005da8: 0a000001 beq a0005db4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a0005dac: e1a00004 mov r0, r4 <== NOT EXECUTED a0005db0: eb0011ab bl a000a464 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; a0005db4: 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 ); a0005db8: e1a01004 mov r1, r4 <== NOT EXECUTED a0005dbc: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED the_jnode->Parent = new_parent; a0005dc0: e5843008 str r3, [r4, #8] <== NOT EXECUTED a0005dc4: eb00119b bl a000a438 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); a0005dc8: e1a0000d mov r0, sp <== NOT EXECUTED a0005dcc: e3a01000 mov r1, #0 <== NOT EXECUTED a0005dd0: eb00019c bl a0006448 <== NOT EXECUTED a0005dd4: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } a0005dd8: 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 ); a0005ddc: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a0005de0: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0005de4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000e410 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { a000e410: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = (IMFS_jnode_t *) pathloc->node_access; a000e414: e5914000 ldr r4, [r1] <== NOT EXECUTED IMFS_create_orphan( jnode ); a000e418: e1a00004 mov r0, r4 <== NOT EXECUTED a000e41c: ebffffcb bl a000e350 <== NOT EXECUTED IMFS_check_node_remove( jnode ); a000e420: e1a00004 mov r0, r4 <== NOT EXECUTED a000e424: ebffffdc bl a000e39c <== NOT EXECUTED return 0; } a000e428: e3a00000 mov r0, #0 <== NOT EXECUTED a000e42c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000e430 : { IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; a000e430: e5903000 ldr r3, [r0] <== NOT EXECUTED int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { a000e434: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { a000e438: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a000e43c: e2422002 sub r2, r2, #2 <== NOT EXECUTED a000e440: e3520005 cmp r2, #5 <== NOT EXECUTED a000e444: 979ff102 ldrls pc, [pc, r2, lsl #2] <== NOT EXECUTED a000e448: ea000027 b a000e4ec <== NOT EXECUTED a000e44c: a000e4d8 .word 0xa000e4d8 <== NOT EXECUTED a000e450: a000e4ec .word 0xa000e4ec <== NOT EXECUTED a000e454: a000e464 .word 0xa000e464 <== NOT EXECUTED a000e458: a000e500 .word 0xa000e500 <== NOT EXECUTED a000e45c: a000e500 .word 0xa000e500 <== NOT EXECUTED a000e460: a000e464 .word 0xa000e464 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; a000e464: e3a04000 mov r4, #0 <== NOT EXECUTED a000e468: e3a05000 mov r5, #0 <== NOT EXECUTED a000e46c: e5814020 str r4, [r1, #32] <== NOT EXECUTED a000e470: 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; a000e474: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; a000e478: e5936030 ldr r6, [r3, #48] ; 0x30 <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; a000e47c: e5930048 ldr r0, [r3, #72] ; 0x48 <== 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; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); a000e480: e5922034 ldr r2, [r2, #52] ; 0x34 <== NOT EXECUTED buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; a000e484: e5935038 ldr r5, [r3, #56] ; 0x38 <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; a000e488: e5934040 ldr r4, [r3, #64] ; 0x40 <== 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; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); a000e48c: e5927000 ldr r7, [r2] <== NOT EXECUTED rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; a000e490: e3a02cff mov r2, #65280 ; 0xff00 <== NOT EXECUTED a000e494: e28220fe add r2, r2, #254 ; 0xfe <== NOT EXECUTED 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; a000e498: e593c044 ldr ip, [r3, #68] ; 0x44 <== NOT EXECUTED 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; a000e49c: e1d383b4 ldrh r8, [r3, #52] ; 0x34 <== 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; buf->st_dev = a000e4a0: e5812000 str r2, [r1] <== NOT EXECUTED 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; a000e4a4: e1d323bc ldrh r2, [r3, #60] ; 0x3c <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; a000e4a8: e1d333be ldrh r3, [r3, #62] ; 0x3e <== NOT EXECUTED 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; a000e4ac: e1c181b0 strh r8, [r1, #16] <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; a000e4b0: e5810038 str r0, [r1, #56] ; 0x38 <== NOT EXECUTED 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; a000e4b4: e1c121b2 strh r2, [r1, #18] <== 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; buf->st_dev = a000e4b8: e5817004 str r7, [r1, #4] <== NOT EXECUTED 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; a000e4bc: e1c131b4 strh r3, [r1, #20] <== NOT EXECUTED */ 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; a000e4c0: e581600c str r6, [r1, #12] <== NOT EXECUTED buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; a000e4c4: e5815008 str r5, [r1, #8] <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; a000e4c8: e5814028 str r4, [r1, #40] ; 0x28 <== NOT EXECUTED buf->st_mtime = the_jnode->stat_mtime; a000e4cc: e581c030 str ip, [r1, #48] ; 0x30 <== NOT EXECUTED buf->st_ctime = the_jnode->stat_ctime; return 0; a000e4d0: e3a00000 mov r0, #0 <== NOT EXECUTED } a000e4d4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); a000e4d8: e593c054 ldr ip, [r3, #84] ; 0x54 <== NOT EXECUTED a000e4dc: e5932050 ldr r2, [r3, #80] ; 0x50 <== NOT EXECUTED a000e4e0: e581c01c str ip, [r1, #28] <== NOT EXECUTED a000e4e4: e5812018 str r2, [r1, #24] <== NOT EXECUTED break; a000e4e8: eaffffe1 b a000e474 <== NOT EXECUTED case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); a000e4ec: eb000ed0 bl a0012034 <__errno> <== NOT EXECUTED a000e4f0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000e4f4: e5803000 str r3, [r0] <== NOT EXECUTED a000e4f8: e3e00000 mvn r0, #0 <== NOT EXECUTED a000e4fc: e8bd81f0 pop {r4, r5, r6, r7, r8, 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; a000e500: e2835050 add r5, r3, #80 ; 0x50 <== NOT EXECUTED a000e504: e8950030 ldm r5, {r4, r5} <== NOT EXECUTED a000e508: e5814020 str r4, [r1, #32] <== NOT EXECUTED a000e50c: e5815024 str r5, [r1, #36] ; 0x24 <== NOT EXECUTED break; a000e510: eaffffd7 b a000e474 <== NOT EXECUTED =============================================================================== a0005de8 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a0005de8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a0005dec: e1a06000 mov r6, r0 <== NOT EXECUTED a0005df0: e24dd040 sub sp, sp, #64 ; 0x40 <== NOT EXECUTED int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); a0005df4: e1a00002 mov r0, r2 <== NOT EXECUTED int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a0005df8: e1a07002 mov r7, r2 <== NOT EXECUTED a0005dfc: e1a05001 mov r5, r1 <== NOT EXECUTED int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); a0005e00: eb003475 bl a0012fdc <== NOT EXECUTED a0005e04: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0005e08: e1a01000 mov r1, r0 <== NOT EXECUTED a0005e0c: e1a02004 mov r2, r4 <== NOT EXECUTED a0005e10: e28d303c add r3, sp, #60 ; 0x3c <== NOT EXECUTED a0005e14: e1a00007 mov r0, r7 <== NOT EXECUTED a0005e18: eb002118 bl a000e280 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup(link_name); a0005e1c: e1a00005 mov r0, r5 <== NOT EXECUTED a0005e20: eb003459 bl a0012f8c <== NOT EXECUTED if (info.sym_link.name == NULL) { a0005e24: e3500000 cmp r0, #0 <== NOT EXECUTED IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); /* * Duplicate link name */ info.sym_link.name = strdup(link_name); a0005e28: e58d0028 str r0, [sp, #40] ; 0x28 <== NOT EXECUTED if (info.sym_link.name == NULL) { a0005e2c: 0a00000e beq a0005e6c <== 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( a0005e30: e28d2028 add r2, sp, #40 ; 0x28 <== NOT EXECUTED a0005e34: e3a03ca2 mov r3, #41472 ; 0xa200 <== NOT EXECUTED a0005e38: e58d2000 str r2, [sp] <== NOT EXECUTED a0005e3c: e3a01004 mov r1, #4 <== NOT EXECUTED a0005e40: e1a00006 mov r0, r6 <== NOT EXECUTED a0005e44: e1a02004 mov r2, r4 <== NOT EXECUTED a0005e48: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0005e4c: eb001e65 bl a000d7e8 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { a0005e50: e3500000 cmp r0, #0 <== NOT EXECUTED free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; a0005e54: 13a00000 movne r0, #0 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { a0005e58: 0a000001 beq a0005e64 <== NOT EXECUTED free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } a0005e5c: e28dd040 add sp, sp, #64 ; 0x40 <== NOT EXECUTED a0005e60: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); a0005e64: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a0005e68: eb000141 bl a0006374 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a0005e6c: eb003070 bl a0012034 <__errno> <== NOT EXECUTED a0005e70: e3a0300c mov r3, #12 <== NOT EXECUTED a0005e74: e5803000 str r3, [r0] <== NOT EXECUTED a0005e78: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005e7c: eafffff6 b a0005e5c <== NOT EXECUTED =============================================================================== a0005e80 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a0005e80: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; a0005e84: e5915000 ldr r5, [r1] <== NOT EXECUTED int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a0005e88: e24dd01c sub sp, sp, #28 <== NOT EXECUTED a0005e8c: e1a04001 mov r4, r1 <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { a0005e90: e595304c ldr r3, [r5, #76] ; 0x4c <== NOT EXECUTED int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a0005e94: e1a06000 mov r6, r0 <== NOT EXECUTED /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { a0005e98: e3530003 cmp r3, #3 <== NOT EXECUTED a0005e9c: 0a000006 beq a0005ebc <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); a0005ea0: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0005ea4: e1a00006 mov r0, r6 <== NOT EXECUTED a0005ea8: e1a01004 mov r1, r4 <== NOT EXECUTED a0005eac: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a0005eb0: e12fff33 blx r3 <== NOT EXECUTED return result; } a0005eb4: e28dd01c add sp, sp, #28 <== NOT EXECUTED a0005eb8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) a0005ebc: e595e050 ldr lr, [r5, #80] ; 0x50 <== NOT EXECUTED a0005ec0: e35e0000 cmp lr, #0 <== NOT EXECUTED a0005ec4: 0a00001f beq a0005f48 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; a0005ec8: e1a0c00d mov ip, sp <== NOT EXECUTED a0005ecc: e1a07001 mov r7, r1 <== NOT EXECUTED a0005ed0: e8b7000f ldm r7!, {r0, r1, r2, r3} <== NOT EXECUTED a0005ed4: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a0005ed8: e5973000 ldr r3, [r7] <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; a0005edc: e28d801c add r8, sp, #28 <== NOT EXECUTED IMFS_Set_handlers( &the_link ); a0005ee0: 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; a0005ee4: e58c3000 str r3, [ip] <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; a0005ee8: e528e01c str lr, [r8, #-28]! <== NOT EXECUTED IMFS_Set_handlers( &the_link ); a0005eec: eb001ea1 bl a000d978 <== 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) a0005ef0: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a0005ef4: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0005ef8: e3520001 cmp r2, #1 <== NOT EXECUTED a0005efc: 0a000008 beq a0005f24 <== NOT EXECUTED if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; a0005f00: e2422001 sub r2, r2, #1 <== NOT EXECUTED a0005f04: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); a0005f08: e28d0014 add r0, sp, #20 <== NOT EXECUTED a0005f0c: e3a01000 mov r1, #0 <== NOT EXECUTED a0005f10: eb00014c bl a0006448 <== NOT EXECUTED a0005f14: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a0005f18: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a0005f1c: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED a0005f20: eaffffde b a0005ea0 <== 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 ); a0005f24: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0005f28: e1a00006 mov r0, r6 <== NOT EXECUTED a0005f2c: e1a0100d mov r1, sp <== NOT EXECUTED a0005f30: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a0005f34: e12fff33 blx r3 <== NOT EXECUTED if ( result != 0 ) a0005f38: e3500000 cmp r0, #0 <== NOT EXECUTED a0005f3c: 0affffd7 beq a0005ea0 <== NOT EXECUTED return -1; a0005f40: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005f44: eaffffda b a0005eb4 <== NOT EXECUTED */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); a0005f48: eb003039 bl a0012034 <__errno> <== NOT EXECUTED a0005f4c: e3a03016 mov r3, #22 <== NOT EXECUTED a0005f50: e5803000 str r3, [r0] <== NOT EXECUTED a0005f54: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005f58: eaffffd5 b a0005eb4 <== NOT EXECUTED =============================================================================== a0005f5c : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a0005f5c: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a0005f60: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) a0005f64: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a0005f68: e3520001 cmp r2, #1 <== NOT EXECUTED a0005f6c: 1a000005 bne a0005f88 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) a0005f70: e593205c ldr r2, [r3, #92] ; 0x5c <== NOT EXECUTED a0005f74: e3520000 cmp r2, #0 <== NOT EXECUTED a0005f78: 0a000007 beq a0005f9c <== NOT EXECUTED /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; a0005f7c: e3a00000 mov r0, #0 <== NOT EXECUTED a0005f80: e583005c str r0, [r3, #92] ; 0x5c <== NOT EXECUTED return 0; } a0005f84: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); a0005f88: eb003029 bl a0012034 <__errno> <== NOT EXECUTED a0005f8c: e3a03014 mov r3, #20 <== NOT EXECUTED a0005f90: e5803000 str r3, [r0] <== NOT EXECUTED a0005f94: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005f98: 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 */ a0005f9c: eb003024 bl a0012034 <__errno> <== NOT EXECUTED a0005fa0: e3a03016 mov r3, #22 <== NOT EXECUTED a0005fa4: e5803000 str r3, [r0] <== NOT EXECUTED a0005fa8: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005fac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0005fb0 : int IMFS_utime( rtems_filesystem_location_info_t *pathloc, /* IN */ time_t actime, /* IN */ time_t modtime /* IN */ ) { a0005fb0: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; a0005fb4: e5904000 ldr r4, [r0] <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; the_jnode->stat_ctime = time( NULL ); a0005fb8: e3a00000 mov r0, #0 <== NOT EXECUTED { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; a0005fbc: e5841040 str r1, [r4, #64] ; 0x40 <== NOT EXECUTED the_jnode->stat_mtime = modtime; a0005fc0: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED the_jnode->stat_ctime = time( NULL ); a0005fc4: eb003457 bl a0013128