=============================================================================== a0006978 : 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 ); a0006978: e3a03000 mov r3, #0 <== NOT EXECUTED a000697c: e5803084 str r3, [r0, #132] ; 0x84 <== NOT EXECUTED a0006980: e5803088 str r3, [r0, #136] ; 0x88 <== NOT EXECUTED #else the_thread->cpu_time_used = 0; #endif } a0006984: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00058c8 : static inline void Dump_Line( const unsigned char *buffer, int length ) { a00058c8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a00058cc: e24dd078 sub sp, sp, #120 ; 0x78 <== NOT EXECUTED int i; char line_buffer[120]; line_buffer[0] = '\0'; a00058d0: e3a04000 mov r4, #0 <== NOT EXECUTED a00058d4: e28d7078 add r7, sp, #120 ; 0x78 <== NOT EXECUTED static inline void Dump_Line( const unsigned char *buffer, int length ) { a00058d8: e1a05000 mov r5, r0 <== NOT EXECUTED a00058dc: e1a06001 mov r6, r1 <== NOT EXECUTED int i; char line_buffer[120]; line_buffer[0] = '\0'; a00058e0: e5674078 strb r4, [r7, #-120]! ; 0x78 <== NOT EXECUTED for( i=0 ; i <== NOT EXECUTED sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] ); a00058e8: e7d53004 ldrb r3, [r5, r4] <== NOT EXECUTED a00058ec: e1a0000d mov r0, sp <== NOT EXECUTED a00058f0: e59f10bc ldr r1, [pc, #188] ; a00059b4 <== NOT EXECUTED a00058f4: e1a0200d mov r2, sp <== NOT EXECUTED a00058f8: eb0030b9 bl a0011be4 <== NOT EXECUTED int i; char line_buffer[120]; line_buffer[0] = '\0'; for( i=0 ; i <== NOT EXECUTED a0005908: ea000003 b a000591c <== NOT EXECUTED sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] ); for( ; i<16 ; i++ ) strcat( line_buffer, " " ); a000590c: e1a0000d mov r0, sp <== NOT EXECUTED a0005910: e59f10a0 ldr r1, [pc, #160] ; a00059b8 <== NOT EXECUTED a0005914: eb00310d bl a0011d50 <== NOT EXECUTED line_buffer[0] = '\0'; for( i=0 ; i <== NOT EXECUTED strcat( line_buffer, " " ); strcat( line_buffer, "|" ); a0005924: e1a0000d mov r0, sp <== NOT EXECUTED a0005928: e59f108c ldr r1, [pc, #140] ; a00059bc <== NOT EXECUTED a000592c: eb003107 bl a0011d50 <== NOT EXECUTED for( i=0 ; i <== NOT EXECUTED for( ; i<16 ; i++ ) strcat( line_buffer, " " ); strcat( line_buffer, "|" ); for( i=0 ; i <== NOT EXECUTED sprintf( line_buffer, "%s%c", line_buffer, isprint( buffer[ i ] ) ? buffer[ i ] : '.' ); a0005940: e7d53004 ldrb r3, [r5, r4] <== NOT EXECUTED a0005944: e5972000 ldr r2, [r7] <== NOT EXECUTED for( ; i<16 ; i++ ) strcat( line_buffer, " " ); strcat( line_buffer, "|" ); for( i=0 ; i <== NOT EXECUTED isprint( buffer[ i ] ) ? buffer[ i ] : '.' ); a0005950: e0822003 add r2, r2, r3 <== NOT EXECUTED a0005954: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED for( ; i<16 ; i++ ) strcat( line_buffer, " " ); strcat( line_buffer, "|" ); for( i=0 ; i <== NOT EXECUTED for( ; i<16 ; i++ ) strcat( line_buffer, " " ); strcat( line_buffer, "|" ); for( i=0 ; i <== NOT EXECUTED a0005974: ea000004 b a000598c <== NOT EXECUTED sprintf( line_buffer, "%s%c", line_buffer, isprint( buffer[ i ] ) ? buffer[ i ] : '.' ); for( ; i<16 ; i++ ) strcat( line_buffer, " " ); a0005978: e1a0000d mov r0, sp <== NOT EXECUTED a000597c: e59f1044 ldr r1, [pc, #68] ; a00059c8 <== NOT EXECUTED a0005980: eb0030f2 bl a0011d50 <== NOT EXECUTED strcat( line_buffer, "|" ); for( i=0 ; i <== NOT EXECUTED a000598c: e1a0500d mov r5, sp <== NOT EXECUTED a0005990: e354000f cmp r4, #15 <== NOT EXECUTED a0005994: dafffff7 ble a0005978 <== NOT EXECUTED strcat( line_buffer, " " ); strcat( line_buffer, "|\n" ); a0005998: e1a0000d mov r0, sp <== NOT EXECUTED a000599c: e59f1028 ldr r1, [pc, #40] ; a00059cc <== NOT EXECUTED a00059a0: eb0030ea bl a0011d50 <== NOT EXECUTED printk( line_buffer ); a00059a4: e1a0000d mov r0, sp <== NOT EXECUTED a00059a8: eb0005c1 bl a00070b4 <== NOT EXECUTED } a00059ac: e28dd078 add sp, sp, #120 ; 0x78 <== NOT EXECUTED a00059b0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a000cf7c : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { a000cf7c: e5902000 ldr r2, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; a000cf80: e5903010 ldr r3, [r0, #16] switch( node->type ) { a000cf84: e592204c ldr r2, [r2, #76] ; 0x4c ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; a000cf88: e5933034 ldr r3, [r3, #52] ; 0x34 switch( node->type ) { a000cf8c: e2422001 sub r2, r2, #1 a000cf90: e3520006 cmp r2, #6 a000cf94: 979ff102 ldrls pc, [pc, r2, lsl #2] a000cf98: ea000010 b a000cfe0 <== NOT EXECUTED a000cf9c: a000cfb8 .word 0xa000cfb8 <== NOT EXECUTED a000cfa0: a000cfc0 .word 0xa000cfc0 <== NOT EXECUTED a000cfa4: a000cfc8 .word 0xa000cfc8 <== NOT EXECUTED a000cfa8: a000cfc8 .word 0xa000cfc8 <== NOT EXECUTED a000cfac: a000cfd0 .word 0xa000cfd0 <== NOT EXECUTED a000cfb0: a000cfd0 .word 0xa000cfd0 <== NOT EXECUTED a000cfb4: a000cfd8 .word 0xa000cfd8 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; a000cfb8: e593300c ldr r3, [r3, #12] a000cfbc: ea000006 b a000cfdc break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; a000cfc0: e59f3020 ldr r3, [pc, #32] ; a000cfe8 <== NOT EXECUTED a000cfc4: ea000004 b a000cfdc <== NOT EXECUTED break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; a000cfc8: e59f301c ldr r3, [pc, #28] ; a000cfec <== NOT EXECUTED a000cfcc: ea000002 b a000cfdc <== NOT EXECUTED break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; a000cfd0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000cfd4: ea000000 b a000cfdc <== NOT EXECUTED break; case IMFS_FIFO: loc->handlers = fs_info->fifo_handlers; a000cfd8: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000cfdc: e5803008 str r3, [r0, #8] break; } return 0; } a000cfe0: e3a00000 mov r0, #0 a000cfe4: e12fff1e bx lr =============================================================================== a000d8cc : void IMFS_check_node_remove( IMFS_jnode_t *jnode ) { a000d8cc: e92d4010 push {r4, lr} <== NOT EXECUTED a000d8d0: e1a04000 mov r4, r0 <== NOT EXECUTED if ( !rtems_libio_is_file_open( jnode ) && jnode->st_nlink < 1 ) { a000d8d4: eb000132 bl a000dda4 <== NOT EXECUTED a000d8d8: e3500000 cmp r0, #0 <== NOT EXECUTED a000d8dc: 1a000014 bne a000d934 <== NOT EXECUTED a000d8e0: e1d423b4 ldrh r2, [r4, #52] ; 0x34 <== NOT EXECUTED a000d8e4: e3520000 cmp r2, #0 <== NOT EXECUTED a000d8e8: 1a000011 bne a000d934 <== NOT EXECUTED if ( rtems_filesystem_current.node_access == jnode ) a000d8ec: e59f3044 ldr r3, [pc, #68] ; a000d938 <== NOT EXECUTED a000d8f0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000d8f4: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED a000d8f8: e1510004 cmp r1, r4 <== NOT EXECUTED rtems_filesystem_current.node_access = NULL; a000d8fc: 05832004 streq r2, [r3, #4] <== NOT EXECUTED switch ( jnode->type ) { a000d900: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000d904: e3530004 cmp r3, #4 <== NOT EXECUTED a000d908: 0a000004 beq a000d920 <== NOT EXECUTED a000d90c: e3530005 cmp r3, #5 <== NOT EXECUTED a000d910: 1a000004 bne a000d928 <== NOT EXECUTED case IMFS_MEMORY_FILE: IMFS_memfile_remove( jnode ); a000d914: e1a00004 mov r0, r4 <== NOT EXECUTED a000d918: eb0008c7 bl a000fc3c <== NOT EXECUTED break; a000d91c: ea000001 b a000d928 <== NOT EXECUTED case IMFS_SYM_LINK: free( jnode->info.sym_link.name ); a000d920: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a000d924: ebffe211 bl a0006170 <== NOT EXECUTED break; default: break; } free( jnode ); a000d928: e1a00004 mov r0, r4 <== NOT EXECUTED } } a000d92c: e8bd4010 pop {r4, lr} <== NOT EXECUTED break; default: break; } free( jnode ); a000d930: eaffe20e b a0006170 <== NOT EXECUTED a000d934: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000cd18 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000cd18: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} <== NOT EXECUTED a000cd1c: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000cd20: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; a000cd24: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000cd28: e1a06821 lsr r6, r1, #16 <== NOT EXECUTED a000cd2c: e1a07822 lsr r7, r2, #16 <== NOT EXECUTED /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); a000cd30: eb000399 bl a000db9c <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a000cd34: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED a000cd38: e3500000 cmp r0, #0 <== NOT EXECUTED a000cd3c: 11550000 cmpne r5, r0 <== NOT EXECUTED a000cd40: 03a05000 moveq r5, #0 <== NOT EXECUTED a000cd44: 13a05001 movne r5, #1 <== NOT EXECUTED a000cd48: 0a000004 beq a000cd60 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); a000cd4c: eb0010c6 bl a001106c <__errno> <== NOT EXECUTED a000cd50: e3a03001 mov r3, #1 <== NOT EXECUTED a000cd54: e5803000 str r3, [r0] <== NOT EXECUTED a000cd58: e3e00000 mvn r0, #0 <== NOT EXECUTED a000cd5c: ea000007 b a000cd80 <== NOT EXECUTED #endif jnode->st_uid = owner; a000cd60: e1c463bc strh r6, [r4, #60] ; 0x3c <== NOT EXECUTED jnode->st_gid = group; a000cd64: e1c473be strh r7, [r4, #62] ; 0x3e <== NOT EXECUTED IMFS_update_ctime( jnode ); a000cd68: e1a0000d mov r0, sp <== NOT EXECUTED a000cd6c: e1a01005 mov r1, r5 <== NOT EXECUTED a000cd70: ebffe533 bl a0006244 <== NOT EXECUTED a000cd74: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; a000cd78: e1a00005 mov r0, r5 <== NOT EXECUTED #endif jnode->st_uid = owner; jnode->st_gid = group; IMFS_update_ctime( jnode ); a000cd7c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a000cd80: e8bd80fc pop {r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000cdfc : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000cdfc: 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 ) a000ce00: e2508000 subs r8, r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000ce04: e1a04001 mov r4, r1 a000ce08: e59d5018 ldr r5, [sp, #24] a000ce0c: e1a01002 mov r1, r2 IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) a000ce10: 0a000045 beq a000cf2c return NULL; parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; a000ce14: e5982010 ldr r2, [r8, #16] /* * Reject creation of FIFOs if support is disabled. */ if ( type == IMFS_FIFO && a000ce18: e3540007 cmp r4, #7 * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) return NULL; parent = parent_loc->node_access; a000ce1c: e5987000 ldr r7, [r8] fs_info = parent_loc->mt_entry->fs_info; a000ce20: e5926034 ldr r6, [r2, #52] ; 0x34 /* * Reject creation of FIFOs if support is disabled. */ if ( type == IMFS_FIFO && a000ce24: 1a000004 bne a000ce3c a000ce28: e5960010 ldr r0, [r6, #16] <== NOT EXECUTED a000ce2c: e59f2100 ldr r2, [pc, #256] ; a000cf34 <== NOT EXECUTED a000ce30: e1500002 cmp r0, r2 <== NOT EXECUTED fs_info->fifo_handlers == &rtems_filesystem_handlers_default ) return NULL; a000ce34: 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 && a000ce38: 0a00003b beq a000cf2c <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); a000ce3c: e59f20f4 ldr r2, [pc, #244] ; a000cf38 a000ce40: e1a00004 mov r0, r4 a000ce44: e5922000 ldr r2, [r2] a000ce48: e592202c ldr r2, [r2, #44] ; 0x2c a000ce4c: e1c32002 bic r2, r3, r2 a000ce50: ebffffcb bl a000cd84 if ( !node ) a000ce54: e2508000 subs r8, r0, #0 a000ce58: 0a000033 beq a000cf2c return NULL; /* * Set the type specific information */ if ( type == IMFS_DIRECTORY ) { a000ce5c: e3540001 cmp r4, #1 a000ce60: 1a000005 bne a000ce7c 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 ); a000ce64: e2883054 add r3, r8, #84 ; 0x54 head->next = tail; a000ce68: e5883050 str r3, [r8, #80] ; 0x50 head->previous = NULL; a000ce6c: e3a03000 mov r3, #0 a000ce70: e5883054 str r3, [r8, #84] ; 0x54 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a000ce74: e2883050 add r3, r8, #80 ; 0x50 a000ce78: ea000012 b a000cec8 rtems_chain_initialize_empty(&node->info.directory.Entries); } else if ( type == IMFS_HARD_LINK ) { a000ce7c: e3540003 cmp r4, #3 a000ce80: 0a000001 beq a000ce8c node->info.hard_link.link_node = info->hard_link.link_node; } else if ( type == IMFS_SYM_LINK ) { a000ce84: e3540004 cmp r4, #4 a000ce88: 1a000001 bne a000ce94 node->info.sym_link.name = info->sym_link.name; a000ce8c: e5953000 ldr r3, [r5] <== NOT EXECUTED a000ce90: ea00001c b a000cf08 <== NOT EXECUTED } else if ( type == IMFS_DEVICE ) { a000ce94: e3540002 cmp r4, #2 node->info.device.major = info->device.major; a000ce98: 05953000 ldreq r3, [r5] a000ce9c: 05883050 streq r3, [r8, #80] ; 0x50 node->info.device.minor = info->device.minor; a000cea0: 05953004 ldreq r3, [r5, #4] a000cea4: 05883054 streq r3, [r8, #84] ; 0x54 a000cea8: 0a000017 beq a000cf0c } else if ( type == IMFS_LINEAR_FILE ) { a000ceac: e3540006 cmp r4, #6 <== NOT EXECUTED a000ceb0: 1a000006 bne a000ced0 <== NOT EXECUTED node->info.linearfile.size = 0; a000ceb4: e3a03000 mov r3, #0 <== NOT EXECUTED a000ceb8: e3a04000 mov r4, #0 <== NOT EXECUTED a000cebc: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED a000cec0: e5884054 str r4, [r8, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; a000cec4: e3a03000 mov r3, #0 <== NOT EXECUTED a000cec8: e5883058 str r3, [r8, #88] ; 0x58 a000cecc: ea00000e b a000cf0c } else if ( type == IMFS_MEMORY_FILE ) { a000ced0: e3540005 cmp r4, #5 <== NOT EXECUTED a000ced4: 1a000008 bne a000cefc <== NOT EXECUTED node->info.file.size = 0; a000ced8: e3a03000 mov r3, #0 <== NOT EXECUTED a000cedc: e3a04000 mov r4, #0 <== NOT EXECUTED a000cee0: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED a000cee4: e5884054 str r4, [r8, #84] ; 0x54 <== NOT EXECUTED node->info.file.indirect = 0; a000cee8: e3a03000 mov r3, #0 <== NOT EXECUTED a000ceec: e5883058 str r3, [r8, #88] ; 0x58 <== NOT EXECUTED node->info.file.doubly_indirect = 0; a000cef0: e588305c str r3, [r8, #92] ; 0x5c <== NOT EXECUTED node->info.file.triply_indirect = 0; a000cef4: e5883060 str r3, [r8, #96] ; 0x60 <== NOT EXECUTED a000cef8: ea000003 b a000cf0c <== NOT EXECUTED } else if ( type == IMFS_FIFO ) { a000cefc: e3540007 cmp r4, #7 <== NOT EXECUTED a000cf00: 1a000001 bne a000cf0c <== NOT EXECUTED node->info.fifo.pipe = NULL; a000cf04: e3a03000 mov r3, #0 <== NOT EXECUTED a000cf08: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED /* * This node MUST have a parent, so put it in that directory list. */ node->Parent = parent; node->st_ino = ++fs_info->ino_count; a000cf0c: e5963004 ldr r3, [r6, #4] } /* * This node MUST have a parent, so put it in that directory list. */ node->Parent = parent; a000cf10: e5887008 str r7, [r8, #8] a000cf14: e2870050 add r0, r7, #80 ; 0x50 node->st_ino = ++fs_info->ino_count; a000cf18: e2833001 add r3, r3, #1 a000cf1c: e5863004 str r3, [r6, #4] a000cf20: e1a01008 mov r1, r8 a000cf24: e5883038 str r3, [r8, #56] ; 0x38 a000cf28: ebfff37a bl a0009d18 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } a000cf2c: e1a00008 mov r0, r8 a000cf30: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} =============================================================================== a000d888 : #include "imfs.h" void IMFS_create_orphan( IMFS_jnode_t *jnode ) { if ( jnode->Parent != NULL ) { a000d888: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #include #include "imfs.h" void IMFS_create_orphan( IMFS_jnode_t *jnode ) { a000d88c: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED if ( jnode->Parent != NULL ) { a000d890: e3530000 cmp r3, #0 <== NOT EXECUTED #include #include "imfs.h" void IMFS_create_orphan( IMFS_jnode_t *jnode ) { a000d894: e1a04000 mov r4, r0 <== NOT EXECUTED if ( jnode->Parent != NULL ) { a000d898: 0a000002 beq a000d8a8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a000d89c: ebfff128 bl a0009d44 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( &jnode->Node ); jnode->Parent = NULL; a000d8a0: e3a03000 mov r3, #0 <== NOT EXECUTED a000d8a4: e5843008 str r3, [r4, #8] <== NOT EXECUTED } --jnode->st_nlink; a000d8a8: e1d433b4 ldrh r3, [r4, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( jnode ); a000d8ac: e1a0000d mov r0, sp <== NOT EXECUTED a000d8b0: e3a01000 mov r1, #0 <== NOT EXECUTED if ( jnode->Parent != NULL ) { rtems_chain_extract( &jnode->Node ); jnode->Parent = NULL; } --jnode->st_nlink; a000d8b4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000d8b8: e1c433b4 strh r3, [r4, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( jnode ); a000d8bc: ebffe260 bl a0006244 <== NOT EXECUTED a000d8c0: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000d8c4: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED } a000d8c8: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED =============================================================================== a0008664 : * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { a0008664: e92d4010 push {r4, lr} <== NOT EXECUTED fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); a0008668: e59f4044 ldr r4, [pc, #68] ; a00086b4 <== NOT EXECUTED a000866c: e59f0044 ldr r0, [pc, #68] ; a00086b8 <== NOT EXECUTED a0008670: e5943000 ldr r3, [r4] <== NOT EXECUTED a0008674: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008678: eb00345d bl a00157f4 <== NOT EXECUTED fprintf(stdout, "/\n" ); a000867c: e5943000 ldr r3, [r4] <== NOT EXECUTED a0008680: e59f0034 ldr r0, [pc, #52] ; a00086bc <== NOT EXECUTED a0008684: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008688: eb003459 bl a00157f4 <== NOT EXECUTED IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); a000868c: e59f302c ldr r3, [pc, #44] ; a00086c0 <== NOT EXECUTED a0008690: e3a01000 mov r1, #0 <== NOT EXECUTED a0008694: e5933000 ldr r3, [r3] <== NOT EXECUTED a0008698: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a000869c: ebffffd2 bl a00085ec <== NOT EXECUTED fprintf(stdout, "*************** End of Dump ***************\n" ); a00086a0: e5943000 ldr r3, [r4] <== NOT EXECUTED a00086a4: e59f0018 ldr r0, [pc, #24] ; a00086c4 <== NOT EXECUTED a00086a8: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED } a00086ac: 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" ); a00086b0: ea00344f b a00157f4 <== NOT EXECUTED =============================================================================== a00085ec : */ void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { a00085ec: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a00085f0: e1a06001 mov r6, r1 <== NOT EXECUTED * */ int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; } a00085f4: e5904050 ldr r4, [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)); a00085f8: e280a054 add sl, r0, #84 ; 0x54 <== NOT EXECUTED the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); a00085fc: e59f8058 ldr r8, [pc, #88] ; a000865c <== NOT EXECUTED IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); a0008600: e2817001 add r7, r1, #1 <== 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 ); a0008604: ea000011 b a0008650 <== 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++ ) a0008608: e3a05000 mov r5, #0 <== NOT EXECUTED a000860c: ea000004 b a0008624 <== NOT EXECUTED fprintf(stdout, "...." ); a0008610: e5983000 ldr r3, [r8] <== NOT EXECUTED a0008614: e59f0044 ldr r0, [pc, #68] ; a0008660 <== 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++ ) a0008618: e2855001 add r5, r5, #1 <== NOT EXECUTED fprintf(stdout, "...." ); a000861c: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008620: eb003473 bl a00157f4 <== 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++ ) a0008624: e1550006 cmp r5, r6 <== NOT EXECUTED a0008628: dafffff8 ble a0008610 <== NOT EXECUTED fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); a000862c: e1a00004 mov r0, r4 <== NOT EXECUTED a0008630: ebffffaa bl a00084e0 <== NOT EXECUTED if ( the_jnode->type == IMFS_DIRECTORY ) a0008634: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a0008638: e3530001 cmp r3, #1 <== NOT EXECUTED a000863c: 1a000002 bne a000864c <== NOT EXECUTED IMFS_dump_directory( the_jnode, level + 1 ); a0008640: e1a00004 mov r0, r4 <== NOT EXECUTED a0008644: e1a01007 mov r1, r7 <== NOT EXECUTED a0008648: ebffffe7 bl a00085ec <== 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 ) { a000864c: e5944000 ldr r4, [r4] <== 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 ); a0008650: e154000a cmp r4, sl <== NOT EXECUTED a0008654: 1affffeb bne a0008608 <== NOT EXECUTED fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } a0008658: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000d0a4 : const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a000d0a4: 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 ) ) { a000d0a8: e3d27007 bics r7, r2, #7 const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a000d0ac: e24dd040 sub sp, sp, #64 ; 0x40 a000d0b0: e58d0000 str r0, [sp] a000d0b4: e1a06001 mov r6, r1 a000d0b8: e1a08002 mov r8, r2 a000d0bc: e1a04003 mov r4, r3 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a000d0c0: 05935000 ldreq r5, [r3] rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { int i = 0; int len; IMFS_token_types type = IMFS_CURRENT_DIR; a000d0c4: 03a09001 moveq r9, #1 * 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 ); a000d0c8: 028da004 addeq sl, sp, #4 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 ) ) { a000d0cc: 0a000057 beq a000d230 rtems_set_errno_and_return_minus_one( EIO ); a000d0d0: eb000fe5 bl a001106c <__errno> <== NOT EXECUTED a000d0d4: e3a03005 mov r3, #5 <== NOT EXECUTED a000d0d8: ea00007e b a000d2d8 <== NOT EXECUTED * 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 ); a000d0dc: e59d2000 ldr r2, [sp] a000d0e0: e28d303c add r3, sp, #60 ; 0x3c a000d0e4: e1a01006 mov r1, r6 a000d0e8: e0820007 add r0, r2, r7 a000d0ec: e1a0200a mov r2, sl a000d0f0: eb0001ae bl a000d7b0 pathnamelen -= len; i += len; if ( !pathloc->node_access ) a000d0f4: e5943000 ldr r3, [r4] * 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 ); a000d0f8: e1a09000 mov r9, r0 pathnamelen -= len; a000d0fc: e59db03c ldr fp, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) a000d100: e3530000 cmp r3, #0 a000d104: 0a000041 beq a000d210 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a000d108: e3500000 cmp r0, #0 a000d10c: 0a000006 beq a000d12c if ( node->type == IMFS_DIRECTORY ) a000d110: e595104c ldr r1, [r5, #76] ; 0x4c a000d114: e3510001 cmp r1, #1 a000d118: 1a000003 bne a000d12c if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) a000d11c: e1a00004 mov r0, r4 a000d120: ebffffb2 bl a000cff0 a000d124: e3500000 cmp r0, #0 a000d128: 0a000068 beq a000d2d0 rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { a000d12c: e3590003 cmp r9, #3 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; a000d130: e06b6006 rsb r6, fp, r6 i += len; a000d134: 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; a000d138: e5945000 ldr r5, [r4] switch( type ) { a000d13c: 0a000014 beq a000d194 a000d140: e3590004 cmp r9, #4 a000d144: 0a000036 beq a000d224 a000d148: e3590002 cmp r9, #2 a000d14c: 1a000037 bne a000d230 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a000d150: e59fc194 ldr ip, [pc, #404] ; a000d2ec <== NOT EXECUTED a000d154: e59c3000 ldr r3, [ip] <== NOT EXECUTED a000d158: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a000d15c: e1550003 cmp r5, r3 <== NOT EXECUTED a000d160: 0a000032 beq a000d230 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { a000d164: e594e010 ldr lr, [r4, #16] <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == a000d168: e59e301c ldr r3, [lr, #28] <== NOT EXECUTED a000d16c: e1550003 cmp r5, r3 <== 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; a000d170: 028dc028 addeq ip, sp, #40 ; 0x28 <== NOT EXECUTED a000d174: 028ee008 addeq lr, lr, #8 <== NOT EXECUTED a000d178: 0a000037 beq a000d25c <== NOT EXECUTED pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) a000d17c: e5955008 ldr r5, [r5, #8] <== NOT EXECUTED a000d180: e3550000 cmp r5, #0 <== NOT EXECUTED a000d184: 1a000024 bne a000d21c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); a000d188: eb000fb7 bl a001106c <__errno> <== NOT EXECUTED a000d18c: e5809000 str r9, [r0] <== NOT EXECUTED a000d190: ea000051 b a000d2dc <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { a000d194: e595304c ldr r3, [r5, #76] ; 0x4c a000d198: e3530003 cmp r3, #3 a000d19c: 1a000004 bne a000d1b4 IMFS_evaluate_hard_link( pathloc, 0 ); a000d1a0: e1a00004 mov r0, r4 <== NOT EXECUTED a000d1a4: e3a01000 mov r1, #0 <== NOT EXECUTED a000d1a8: ebffffaa bl a000d058 <== NOT EXECUTED node = pathloc->node_access; a000d1ac: e5945000 ldr r5, [r4] <== NOT EXECUTED a000d1b0: ea000008 b a000d1d8 <== NOT EXECUTED * It would be a design error if we evaluated the link and * was broken. */ IMFS_assert( node ); } else if ( node->type == IMFS_SYM_LINK ) { a000d1b4: e3530004 cmp r3, #4 a000d1b8: 1a000006 bne a000d1d8 result = IMFS_evaluate_sym_link( pathloc, 0 ); a000d1bc: e1a00004 mov r0, r4 <== NOT EXECUTED a000d1c0: e3a01000 mov r1, #0 <== NOT EXECUTED a000d1c4: eb000049 bl a000d2f0 <== NOT EXECUTED /* * In contrast to a hard link, it is possible to have a broken * symbolic link. */ node = pathloc->node_access; if ( result == -1 ) a000d1c8: 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 ); a000d1cc: e1a0b000 mov fp, r0 <== NOT EXECUTED /* * In contrast to a hard link, it is possible to have a broken * symbolic link. */ node = pathloc->node_access; a000d1d0: e5945000 ldr r5, [r4] <== NOT EXECUTED if ( result == -1 ) a000d1d4: 0a000041 beq a000d2e0 <== NOT EXECUTED } /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a000d1d8: e595304c ldr r3, [r5, #76] ; 0x4c a000d1dc: e3530001 cmp r3, #1 a000d1e0: 0a000002 beq a000d1f0 rtems_set_errno_and_return_minus_one( ENOTDIR ); a000d1e4: eb000fa0 bl a001106c <__errno> <== NOT EXECUTED a000d1e8: e3a03014 mov r3, #20 <== NOT EXECUTED a000d1ec: ea000039 b a000d2d8 <== 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 ) { a000d1f0: e595e05c ldr lr, [r5, #92] ; 0x5c a000d1f4: e35e0000 cmp lr, #0 a000d1f8: 1a000015 bne a000d254 } /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a000d1fc: e1a00005 mov r0, r5 a000d200: e1a0100a mov r1, sl a000d204: eb000149 bl a000d730 if ( !node ) a000d208: e2505000 subs r5, r0, #0 a000d20c: 1a000002 bne a000d21c rtems_set_errno_and_return_minus_one( ENOENT ); a000d210: eb000f95 bl a001106c <__errno> a000d214: e3a03002 mov r3, #2 a000d218: ea00002e b a000d2d8 /* * Set the node access to the point we have found. */ pathloc->node_access = node; a000d21c: e5845000 str r5, [r4] a000d220: ea000002 b a000d230 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); a000d224: eb000f90 bl a001106c <__errno> <== NOT EXECUTED a000d228: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED a000d22c: ea000029 b a000d2d8 <== NOT EXECUTED /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { a000d230: e3590004 cmp r9, #4 a000d234: 13590000 cmpne r9, #0 a000d238: 1affffa7 bne a000d0dc * 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 ) { a000d23c: e595304c ldr r3, [r5, #76] ; 0x4c a000d240: e3530001 cmp r3, #1 a000d244: 1a000019 bne a000d2b0 if ( node->info.directory.mt_fs != NULL ) { a000d248: e595e05c ldr lr, [r5, #92] ; 0x5c a000d24c: e35e0000 cmp lr, #0 a000d250: 0a000016 beq a000d2b0 newloc = node->info.directory.mt_fs->mt_fs_root; a000d254: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED a000d258: e28ee01c add lr, lr, #28 <== NOT EXECUTED a000d25c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000d260: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000d264: e59ee000 ldr lr, [lr] <== NOT EXECUTED a000d268: e58ce000 str lr, [ip] <== NOT EXECUTED *pathloc = newloc; a000d26c: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED a000d270: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000d274: e1a0c004 mov ip, r4 <== NOT EXECUTED a000d278: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], a000d27c: 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; a000d280: e58ce000 str lr, [ip] <== NOT EXECUTED return (*pathloc->ops->evalpath_h)( &pathname[i-len], a000d284: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000d288: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000d28c: e0610007 rsb r0, r1, r7 <== NOT EXECUTED a000d290: e593c000 ldr ip, [r3] <== NOT EXECUTED a000d294: e0820000 add r0, r2, r0 <== NOT EXECUTED a000d298: e0861001 add r1, r6, r1 <== NOT EXECUTED a000d29c: e1a02008 mov r2, r8 <== NOT EXECUTED a000d2a0: e1a03004 mov r3, r4 <== NOT EXECUTED a000d2a4: e12fff3c blx ip <== NOT EXECUTED a000d2a8: e1a0b000 mov fp, r0 <== NOT EXECUTED a000d2ac: ea00000b b a000d2e0 <== NOT EXECUTED flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a000d2b0: e1a00004 mov r0, r4 a000d2b4: ebffff30 bl a000cf7c /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a000d2b8: e1a01008 mov r1, r8 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a000d2bc: e1a0b000 mov fp, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a000d2c0: e1a00004 mov r0, r4 a000d2c4: ebffff49 bl a000cff0 a000d2c8: e3500000 cmp r0, #0 a000d2cc: 1a000003 bne a000d2e0 rtems_set_errno_and_return_minus_one( EACCES ); a000d2d0: eb000f65 bl a001106c <__errno> <== NOT EXECUTED a000d2d4: e3a0300d mov r3, #13 <== NOT EXECUTED a000d2d8: e5803000 str r3, [r0] a000d2dc: e3e0b000 mvn fp, #0 return result; } a000d2e0: e1a0000b mov r0, fp a000d2e4: e28dd040 add sp, sp, #64 ; 0x40 a000d2e8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000d42c : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { a000d42c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000d430: e24dd03c sub sp, sp, #60 ; 0x3c a000d434: e1a07000 mov r7, r0 a000d438: e1a04001 mov r4, r1 a000d43c: e1a0a002 mov sl, r2 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a000d440: e5916000 ldr r6, [r1] /* * Get the path length. */ pathlen = strlen( path ); a000d444: eb0012f2 bl a0012014 const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { int i = 0; a000d448: e3a05000 mov r5, #0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); a000d44c: e1a08000 mov r8, r0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); a000d450: e1a01008 mov r1, r8 a000d454: e28d3038 add r3, sp, #56 ; 0x38 a000d458: e0870005 add r0, r7, r5 a000d45c: e1a0200d mov r2, sp a000d460: eb0000d2 bl a000d7b0 pathlen -= len; i += len; if ( !pathloc->node_access ) a000d464: e5943000 ldr r3, [r4] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a000d468: e59db038 ldr fp, [sp, #56] ; 0x38 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); a000d46c: e1a09000 mov r9, r0 pathlen -= len; i += len; if ( !pathloc->node_access ) a000d470: e3530000 cmp r3, #0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a000d474: e06b8008 rsb r8, fp, r8 i += len; if ( !pathloc->node_access ) a000d478: 0a000060 beq a000d600 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a000d47c: e3500000 cmp r0, #0 a000d480: 0a000006 beq a000d4a0 if ( node->type == IMFS_DIRECTORY ) a000d484: e596104c ldr r1, [r6, #76] ; 0x4c a000d488: e3510001 cmp r1, #1 a000d48c: 1a000003 bne a000d4a0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) a000d490: e1a00004 mov r0, r4 a000d494: ebfffed5 bl a000cff0 a000d498: e3500000 cmp r0, #0 a000d49c: 0a00006c beq a000d654 rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; a000d4a0: e5943000 ldr r3, [r4] while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; a000d4a4: e085500b add r5, r5, 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; a000d4a8: e1a06003 mov r6, r3 switch( type ) { a000d4ac: e3590004 cmp r9, #4 a000d4b0: 979ff109 ldrls pc, [pc, r9, lsl #2] a000d4b4: eaffffe5 b a000d450 <== NOT EXECUTED a000d4b8: a000d5c4 .word 0xa000d5c4 <== NOT EXECUTED a000d4bc: a000d450 .word 0xa000d450 <== NOT EXECUTED a000d4c0: a000d4cc .word 0xa000d4cc <== NOT EXECUTED a000d4c4: a000d508 .word 0xa000d508 <== NOT EXECUTED a000d4c8: a000d5d0 .word 0xa000d5d0 <== NOT EXECUTED case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a000d4cc: e59f119c ldr r1, [pc, #412] ; a000d670 <== NOT EXECUTED a000d4d0: e5912000 ldr r2, [r1] <== NOT EXECUTED a000d4d4: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED a000d4d8: e1530002 cmp r3, r2 <== NOT EXECUTED a000d4dc: 0affffdb beq a000d450 <== NOT EXECUTED /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ a000d4e0: e594e010 ldr lr, [r4, #16] <== NOT EXECUTED a000d4e4: e59e201c ldr r2, [lr, #28] <== NOT EXECUTED a000d4e8: e1530002 cmp r3, r2 <== NOT EXECUTED if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; a000d4ec: 028dc024 addeq ip, sp, #36 ; 0x24 <== NOT EXECUTED a000d4f0: 028ee008 addeq lr, lr, #8 <== NOT EXECUTED a000d4f4: 0a000019 beq a000d560 <== NOT EXECUTED *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) a000d4f8: e5936008 ldr r6, [r3, #8] <== NOT EXECUTED a000d4fc: e3560000 cmp r6, #0 <== NOT EXECUTED a000d500: 1a00002d bne a000d5bc <== NOT EXECUTED a000d504: ea00003d b a000d600 <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { a000d508: e593304c ldr r3, [r3, #76] ; 0x4c a000d50c: e3530003 cmp r3, #3 a000d510: 0a000001 beq a000d51c result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { a000d514: e3530004 cmp r3, #4 a000d518: 1a000005 bne a000d534 result = IMFS_evaluate_link( pathloc, 0 ); a000d51c: e1a00004 mov r0, r4 <== NOT EXECUTED a000d520: e3a01000 mov r1, #0 <== NOT EXECUTED a000d524: ebffff93 bl a000d378 <== NOT EXECUTED if ( result == -1 ) a000d528: e3700001 cmn r0, #1 <== NOT EXECUTED if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); a000d52c: e1a06000 mov r6, r0 <== NOT EXECUTED if ( result == -1 ) a000d530: 0a00004b beq a000d664 <== NOT EXECUTED return -1; } node = pathloc->node_access; a000d534: e5940000 ldr r0, [r4] if ( !node ) a000d538: e3500000 cmp r0, #0 a000d53c: 0a00003c beq a000d634 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a000d540: e590304c ldr r3, [r0, #76] ; 0x4c a000d544: e3530001 cmp r3, #1 a000d548: 1a000039 bne a000d634 /* * 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 ) { a000d54c: e590e05c ldr lr, [r0, #92] ; 0x5c a000d550: e35e0000 cmp lr, #0 a000d554: 0a000014 beq a000d5ac newloc = node->info.directory.mt_fs->mt_fs_root; a000d558: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED a000d55c: e28ee01c add lr, lr, #28 <== NOT EXECUTED a000d560: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000d564: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000d568: e59ee000 ldr lr, [lr] <== NOT EXECUTED a000d56c: e58ce000 str lr, [ip] <== NOT EXECUTED *pathloc = newloc; a000d570: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED a000d574: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000d578: e1a0c004 mov ip, r4 <== NOT EXECUTED a000d57c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a000d580: e59d2038 ldr r2, [sp, #56] ; 0x38 <== 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; a000d584: e58ce000 str lr, [ip] <== NOT EXECUTED return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a000d588: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000d58c: e0625005 rsb r5, r2, r5 <== NOT EXECUTED a000d590: e0870005 add r0, r7, r5 <== NOT EXECUTED a000d594: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000d598: e1a01004 mov r1, r4 <== NOT EXECUTED a000d59c: e1a0200a mov r2, sl <== NOT EXECUTED a000d5a0: e12fff33 blx r3 <== NOT EXECUTED a000d5a4: e1a06000 mov r6, r0 <== NOT EXECUTED a000d5a8: ea00002d b a000d664 <== NOT EXECUTED /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a000d5ac: e1a0100d mov r1, sp a000d5b0: eb00005e bl a000d730 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) a000d5b4: e2506000 subs r6, r0, #0 a000d5b8: 0a000007 beq a000d5dc done = true; else pathloc->node_access = node; a000d5bc: e5846000 str r6, [r4] a000d5c0: eaffffa2 b a000d450 break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); a000d5c4: eb000ea8 bl a001106c <__errno> a000d5c8: e3a03011 mov r3, #17 a000d5cc: ea000022 b a000d65c break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); a000d5d0: eb000ea5 bl a001106c <__errno> <== NOT EXECUTED a000d5d4: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED a000d5d8: ea00001f b a000d65c <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; a000d5dc: e59d3038 ldr r3, [sp, #56] ; 0x38 a000d5e0: e0633005 rsb r3, r3, r5 a000d5e4: e0873003 add r3, r7, r3 a000d5e8: e58a3000 str r3, [sl] * pathloc is returned with a pointer to the parent of the new node. * name is returned with a pointer to the first character in the * new node name. The parent node is verified to be a directory. */ int IMFS_evaluate_for_make( a000d5ec: e0875005 add r5, r7, r5 /* * 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++) { a000d5f0: ea000005 b a000d60c if ( !IMFS_is_separator( path[ i ] ) ) a000d5f4: ebffe676 bl a0006fd4 <== NOT EXECUTED a000d5f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000d5fc: 1a000002 bne a000d60c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOENT ); a000d600: eb000e99 bl a001106c <__errno> <== NOT EXECUTED a000d604: e3a03002 mov r3, #2 <== NOT EXECUTED a000d608: ea000013 b a000d65c <== NOT EXECUTED /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { a000d60c: e4d50001 ldrb r0, [r5], #1 a000d610: e3500000 cmp r0, #0 a000d614: 1afffff6 bne a000d5f4 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a000d618: e1a00004 mov r0, r4 a000d61c: ebfffe56 bl a000cf7c /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) a000d620: e5943000 ldr r3, [r4] /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a000d624: e1a06000 mov r6, r0 /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) a000d628: e593304c ldr r3, [r3, #76] ; 0x4c a000d62c: e3530001 cmp r3, #1 a000d630: 0a000002 beq a000d640 rtems_set_errno_and_return_minus_one( ENOTDIR ); a000d634: eb000e8c bl a001106c <__errno> <== NOT EXECUTED a000d638: e3a03014 mov r3, #20 <== NOT EXECUTED a000d63c: ea000006 b a000d65c <== NOT EXECUTED /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) a000d640: e1a00004 mov r0, r4 a000d644: e3a01003 mov r1, #3 a000d648: ebfffe68 bl a000cff0 a000d64c: e3500000 cmp r0, #0 a000d650: 1a000003 bne a000d664 rtems_set_errno_and_return_minus_one( EACCES ); a000d654: eb000e84 bl a001106c <__errno> <== NOT EXECUTED a000d658: e3a0300d mov r3, #13 <== NOT EXECUTED a000d65c: e5803000 str r3, [r0] a000d660: e3e06000 mvn r6, #0 return result; } a000d664: e1a00006 mov r0, r6 a000d668: e28dd03c add sp, sp, #60 ; 0x3c a000d66c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000d058 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000d058: 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; a000d05c: e5903000 ldr r3, [r0] <== NOT EXECUTED int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000d060: e1a04000 mov r4, r0 <== NOT EXECUTED a000d064: 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; a000d068: e5933050 ldr r3, [r3, #80] ; 0x50 <== NOT EXECUTED a000d06c: e5803000 str r3, [r0] <== NOT EXECUTED IMFS_Set_handlers( node ); a000d070: ebffffc1 bl a000cf7c <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a000d074: e1a00004 mov r0, r4 <== NOT EXECUTED a000d078: e1a01005 mov r1, r5 <== NOT EXECUTED a000d07c: ebffffdb bl a000cff0 <== NOT EXECUTED a000d080: e3500000 cmp r0, #0 <== NOT EXECUTED a000d084: 1a000004 bne a000d09c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); a000d088: eb000ff7 bl a001106c <__errno> <== NOT EXECUTED a000d08c: e3a0300d mov r3, #13 <== NOT EXECUTED a000d090: e5803000 str r3, [r0] <== NOT EXECUTED a000d094: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d098: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED return result; a000d09c: e3a00000 mov r0, #0 <== NOT EXECUTED } a000d0a0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000d378 : */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000d378: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; a000d37c: e59f70a4 ldr r7, [pc, #164] ; a000d428 <== NOT EXECUTED */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000d380: e1a04000 mov r4, r0 <== NOT EXECUTED a000d384: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; a000d388: e5973000 ldr r3, [r7] <== NOT EXECUTED { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; a000d38c: e5946000 ldr r6, [r4] <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; a000d390: e1d323b0 ldrh r2, [r3, #48] ; 0x30 <== NOT EXECUTED a000d394: e2822001 add r2, r2, #1 <== NOT EXECUTED a000d398: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000d39c: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { a000d3a0: e3520005 cmp r2, #5 <== NOT EXECUTED /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; a000d3a4: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED if ( rtems_filesystem_link_counts > MAXSYMLINK ) { a000d3a8: 9a000006 bls a000d3c8 <== NOT EXECUTED rtems_filesystem_link_counts = 0; a000d3ac: e3a02000 mov r2, #0 <== NOT EXECUTED a000d3b0: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ELOOP ); a000d3b4: eb000f2c bl a001106c <__errno> <== NOT EXECUTED a000d3b8: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED a000d3bc: e5803000 str r3, [r0] <== NOT EXECUTED a000d3c0: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d3c4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) a000d3c8: e596304c ldr r3, [r6, #76] ; 0x4c <== NOT EXECUTED a000d3cc: e3530003 cmp r3, #3 <== NOT EXECUTED a000d3d0: 1a000003 bne a000d3e4 <== NOT EXECUTED result = IMFS_evaluate_hard_link( node, flags ); a000d3d4: e1a00004 mov r0, r4 <== NOT EXECUTED a000d3d8: e1a01005 mov r1, r5 <== NOT EXECUTED a000d3dc: ebffff1d bl a000d058 <== NOT EXECUTED a000d3e0: ea000004 b a000d3f8 <== NOT EXECUTED else if (jnode->type == IMFS_SYM_LINK ) a000d3e4: e3530004 cmp r3, #4 <== NOT EXECUTED a000d3e8: 1a000004 bne a000d400 <== NOT EXECUTED result = IMFS_evaluate_sym_link( node, flags ); a000d3ec: e1a00004 mov r0, r4 <== NOT EXECUTED a000d3f0: e1a01005 mov r1, r5 <== NOT EXECUTED a000d3f4: ebffffbd bl a000d2f0 <== NOT EXECUTED } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); a000d3f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000d3fc: 1a000004 bne a000d414 <== 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 ) || a000d400: e596304c ldr r3, [r6, #76] ; 0x4c <== NOT EXECUTED a000d404: e2433003 sub r3, r3, #3 <== NOT EXECUTED a000d408: e3530001 cmp r3, #1 <== NOT EXECUTED a000d40c: 9affffdd bls a000d388 <== NOT EXECUTED a000d410: e3a00000 mov r0, #0 <== NOT EXECUTED /* * Clear link counter. */ rtems_filesystem_link_counts = 0; a000d414: e59f300c ldr r3, [pc, #12] ; a000d428 <== NOT EXECUTED a000d418: e3a02000 mov r2, #0 <== NOT EXECUTED a000d41c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000d420: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED return result; } a000d424: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000cff0 : uid_t st_uid; gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) a000cff0: e3d13007 bics r3, r1, #7 */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { a000cff4: e92d4070 push {r4, r5, r6, lr} a000cff8: e1a04001 mov r4, r1 uid_t st_uid; gid_t st_gid; IMFS_jnode_t *jnode; int flags_to_test; if ( !rtems_libio_is_valid_perms( flags ) ) a000cffc: 0a000004 beq a000d014 rtems_set_errno_and_return_minus_one( EPERM ); a000d000: eb001019 bl a001106c <__errno> <== NOT EXECUTED a000d004: e3a03001 mov r3, #1 <== NOT EXECUTED a000d008: e5803000 str r3, [r0] <== NOT EXECUTED a000d00c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d010: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED jnode = node->node_access; a000d014: e5905000 ldr r5, [r0] #if defined(RTEMS_POSIX_API) st_uid = geteuid(); a000d018: eb0002df bl a000db9c a000d01c: e1a06000 mov r6, r0 st_gid = getegid(); a000d020: eb0002d8 bl a000db88 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) a000d024: e1d533bc ldrh r3, [r5, #60] ; 0x3c a000d028: e1530006 cmp r3, r6 flags_to_test <<= 6; a000d02c: 01a04304 lsleq r4, r4, #6 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) a000d030: 0a000002 beq a000d040 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) a000d034: e1d533be ldrh r3, [r5, #62] ; 0x3e <== NOT EXECUTED a000d038: e1530000 cmp r3, r0 <== NOT EXECUTED flags_to_test <<= 3; a000d03c: 01a04184 lsleq r4, r4, #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 ) a000d040: e5950030 ldr r0, [r5, #48] ; 0x30 a000d044: e0040000 and r0, r4, 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 ); a000d048: e1500004 cmp r0, r4 a000d04c: 13a00000 movne r0, #0 a000d050: 03a00001 moveq r0, #1 */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) return 1; return 0; } a000d054: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000d2f0 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000d2f0: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = node->node_access; a000d2f4: e5906000 ldr r6, [r0] <== NOT EXECUTED int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a000d2f8: e1a04000 mov r4, r0 <== NOT EXECUTED a000d2fc: 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; a000d300: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( a000d304: e1a0100d mov r1, sp <== NOT EXECUTED a000d308: e1a02004 mov r2, r4 <== 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; a000d30c: e5803000 str r3, [r0] <== NOT EXECUTED rtems_filesystem_get_sym_start_loc( a000d310: e5960050 ldr r0, [r6, #80] ; 0x50 <== NOT EXECUTED a000d314: eb00034d bl a000e050 <== NOT EXECUTED ); /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( a000d318: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000d31c: e5966050 ldr r6, [r6, #80] ; 0x50 <== NOT EXECUTED a000d320: e0866003 add r6, r6, r3 <== NOT EXECUTED a000d324: e1a00006 mov r0, r6 <== NOT EXECUTED a000d328: eb001339 bl a0012014 <== NOT EXECUTED a000d32c: e1a02005 mov r2, r5 <== NOT EXECUTED a000d330: e1a01000 mov r1, r0 <== NOT EXECUTED a000d334: e1a03004 mov r3, r4 <== NOT EXECUTED a000d338: e1a00006 mov r0, r6 <== NOT EXECUTED a000d33c: ebffff58 bl a000d0a4 <== NOT EXECUTED a000d340: e1a06000 mov r6, r0 <== NOT EXECUTED strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); a000d344: e1a00004 mov r0, r4 <== NOT EXECUTED a000d348: ebffff0b bl a000cf7c <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a000d34c: e1a00004 mov r0, r4 <== NOT EXECUTED a000d350: e1a01005 mov r1, r5 <== NOT EXECUTED a000d354: ebffff25 bl a000cff0 <== NOT EXECUTED a000d358: e3500000 cmp r0, #0 <== NOT EXECUTED a000d35c: 1a000003 bne a000d370 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EACCES ); a000d360: eb000f41 bl a001106c <__errno> <== NOT EXECUTED a000d364: e3a0300d mov r3, #13 <== NOT EXECUTED a000d368: e5803000 str r3, [r0] <== NOT EXECUTED a000d36c: e3e06000 mvn r6, #0 <== NOT EXECUTED return result; } a000d370: e1a00006 mov r0, r6 <== NOT EXECUTED a000d374: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a00106d4 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a00106d4: e92d4073 push {r0, r1, r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; a00106d8: e5904000 ldr r4, [r0] <== NOT EXECUTED int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a00106dc: 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(); a00106e0: ebfff52d bl a000db9c <== NOT EXECUTED if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a00106e4: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED a00106e8: e3500000 cmp r0, #0 <== NOT EXECUTED a00106ec: 11550000 cmpne r5, r0 <== NOT EXECUTED a00106f0: 03a05000 moveq r5, #0 <== NOT EXECUTED a00106f4: 13a05001 movne r5, #1 <== NOT EXECUTED a00106f8: 0a000004 beq a0010710 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); a00106fc: eb00025a bl a001106c <__errno> <== NOT EXECUTED a0010700: e3a03001 mov r3, #1 <== NOT EXECUTED a0010704: e5803000 str r3, [r0] <== NOT EXECUTED a0010708: e3e00000 mvn r0, #0 <== NOT EXECUTED a001070c: ea00000b b a0010740 <== 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); a0010710: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); a0010714: e1a06a06 lsl r6, r6, #20 <== NOT EXECUTED IMFS_update_ctime( jnode ); a0010718: 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); a001071c: e3c33eff bic r3, r3, #4080 ; 0xff0 <== NOT EXECUTED a0010720: e3c3300f bic r3, r3, #15 <== NOT EXECUTED jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); a0010724: e1833a26 orr r3, r3, r6, lsr #20 <== NOT EXECUTED a0010728: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED IMFS_update_ctime( jnode ); a001072c: e1a01005 mov r1, r5 <== NOT EXECUTED a0010730: ebffd6c3 bl a0006244 <== NOT EXECUTED a0010734: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; a0010738: 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 ); a001073c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a0010740: e8bd807c pop {r2, r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0010744 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } a0010744: e3a00000 mov r0, #0 <== NOT EXECUTED a0010748: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0006e28 : } int IMFS_fifo_close( rtems_libio_t *iop ) { a0006e28: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int err = 0; IMFS_jnode_t *jnode = iop->pathinfo.node_access; a0006e2c: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { a0006e30: e1a04000 mov r4, r0 <== NOT EXECUTED int err = 0; IMFS_jnode_t *jnode = iop->pathinfo.node_access; pipe_release(&JNODE2PIPE(jnode), iop); a0006e34: e1a01004 mov r1, r4 <== NOT EXECUTED a0006e38: e2850050 add r0, r5, #80 ; 0x50 <== NOT EXECUTED a0006e3c: eb0022d5 bl a000f998 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; a0006e40: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED IMFS_check_node_remove(jnode); a0006e44: 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; a0006e48: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a0006e4c: e5843014 str r3, [r4, #20] <== NOT EXECUTED IMFS_check_node_remove(jnode); a0006e50: eb00016e bl a0007410 <== NOT EXECUTED IMFS_FIFO_RETURN(err); } a0006e54: e3a00000 mov r0, #0 <== NOT EXECUTED a0006e58: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0006d04 : void *buffer ) { int err; if (command == FIONBIO) { a0006d04: e59fc06c ldr ip, [pc, #108] ; a0006d78 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0006d08: e92d4010 push {r4, lr} <== NOT EXECUTED int err; if (command == FIONBIO) { a0006d0c: e151000c cmp r1, ip <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0006d10: e1a03000 mov r3, r0 <== NOT EXECUTED int err; if (command == FIONBIO) { a0006d14: 1a00000a bne a0006d44 <== NOT EXECUTED if (buffer == NULL) a0006d18: e3520000 cmp r2, #0 <== NOT EXECUTED a0006d1c: 0a00000e beq a0006d5c <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) a0006d20: e5924000 ldr r4, [r2] <== NOT EXECUTED a0006d24: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a0006d28: e3540000 cmp r4, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; a0006d2c: 13822001 orrne r2, r2, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a0006d30: 03c22001 biceq r2, r2, #1 <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; a0006d34: 15832014 strne r2, [r3, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; a0006d38: 13a04000 movne r4, #0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a0006d3c: 05832014 streq r2, [r3, #20] <== NOT EXECUTED a0006d40: ea00000a b a0006d70 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); a0006d44: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a0006d48: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED a0006d4c: eb002509 bl a0010178 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0006d50: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006d54: aa000005 bge a0006d70 <== NOT EXECUTED a0006d58: ea000000 b a0006d60 <== NOT EXECUTED { int err; if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; a0006d5c: e3e0400d mvn r4, #13 <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); a0006d60: eb00313f bl a0013264 <__errno> <== NOT EXECUTED a0006d64: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a0006d68: e5804000 str r4, [r0] <== NOT EXECUTED a0006d6c: e3e04000 mvn r4, #0 <== NOT EXECUTED } a0006d70: e1a00004 mov r0, r4 <== NOT EXECUTED a0006d74: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0006cb4 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a0006cb4: e92d4011 push {r0, r4, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); a0006cb8: e590c018 ldr ip, [r0, #24] <== NOT EXECUTED a0006cbc: e58d0000 str r0, [sp] <== NOT EXECUTED a0006cc0: e59c0050 ldr r0, [ip, #80] ; 0x50 <== NOT EXECUTED a0006cc4: eb002546 bl a00101e4 <== NOT EXECUTED a0006cc8: e1a02000 mov r2, r0 <== NOT EXECUTED a0006ccc: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0006cd0: 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); a0006cd4: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0006cd8: a1a04003 movge r4, r3 <== NOT EXECUTED a0006cdc: a1a03002 movge r3, r2 <== NOT EXECUTED a0006ce0: aa000004 bge a0006cf8 <== NOT EXECUTED a0006ce4: eb00315e bl a0013264 <__errno> <== NOT EXECUTED a0006ce8: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a0006cec: e5804000 str r4, [r0] <== NOT EXECUTED a0006cf0: e3e03000 mvn r3, #0 <== NOT EXECUTED a0006cf4: e3e04000 mvn r4, #0 <== NOT EXECUTED } a0006cf8: e1a00003 mov r0, r3 <== NOT EXECUTED a0006cfc: e1a01004 mov r1, r4 <== NOT EXECUTED a0006d00: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a0006e5c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0006e5c: e1a01000 mov r1, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); a0006e60: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0006e64: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = fifo_open(&JNODE2PIPE(jnode), iop); a0006e68: e2800050 add r0, r0, #80 ; 0x50 <== NOT EXECUTED a0006e6c: eb0022f5 bl a000fa48 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0006e70: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006e74: aa000003 bge a0006e88 <== NOT EXECUTED a0006e78: eb0030f9 bl a0013264 <__errno> <== NOT EXECUTED a0006e7c: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a0006e80: e5804000 str r4, [r0] <== NOT EXECUTED a0006e84: e3e04000 mvn r4, #0 <== NOT EXECUTED } a0006e88: e1a00004 mov r0, r4 <== NOT EXECUTED a0006e8c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0006dd4 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0006dd4: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; a0006dd8: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0006ddc: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); a0006de0: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0006de4: eb002416 bl a000fe44 <== NOT EXECUTED if (err > 0) a0006de8: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006dec: da000005 ble a0006e08 <== NOT EXECUTED IMFS_update_atime(jnode); a0006df0: e1a0000d mov r0, sp <== NOT EXECUTED a0006df4: e3a01000 mov r1, #0 <== NOT EXECUTED a0006df8: eb0003e0 bl a0007d80 <== NOT EXECUTED a0006dfc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0006e00: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED a0006e04: ea000005 b a0006e20 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0006e08: 0a000004 beq a0006e20 <== NOT EXECUTED a0006e0c: eb003114 bl a0013264 <__errno> <== NOT EXECUTED a0006e10: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0006e14: e5805000 str r5, [r0] <== NOT EXECUTED a0006e18: e3e00000 mvn r0, #0 <== NOT EXECUTED a0006e1c: ea000000 b a0006e24 <== NOT EXECUTED a0006e20: e1a00005 mov r0, r5 <== NOT EXECUTED } a0006e24: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0006d7c : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0006d7c: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; a0006d80: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0006d84: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->pathinfo.node_access; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); a0006d88: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0006d8c: eb00248c bl a000ffc4 <== NOT EXECUTED if (err > 0) { a0006d90: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006d94: da000006 ble a0006db4 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); a0006d98: e1a0000d mov r0, sp <== NOT EXECUTED a0006d9c: e3a01000 mov r1, #0 <== NOT EXECUTED a0006da0: eb0003f6 bl a0007d80 <== NOT EXECUTED a0006da4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0006da8: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED a0006dac: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED a0006db0: ea000005 b a0006dcc <== NOT EXECUTED } IMFS_FIFO_RETURN(err); a0006db4: 0a000004 beq a0006dcc <== NOT EXECUTED a0006db8: eb003129 bl a0013264 <__errno> <== NOT EXECUTED a0006dbc: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0006dc0: e5805000 str r5, [r0] <== NOT EXECUTED a0006dc4: e3e00000 mvn r0, #0 <== NOT EXECUTED a0006dc8: ea000000 b a0006dd0 <== NOT EXECUTED a0006dcc: e1a00005 mov r0, r5 <== NOT EXECUTED } a0006dd0: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000d730 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { a000d730: e92d4070 push {r4, r5, r6, lr} a000d734: e1a04000 mov r4, r0 a000d738: e1a06001 mov r6, r1 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) a000d73c: e1a00001 mov r0, r1 a000d740: e59f1060 ldr r1, [pc, #96] ; a000d7a8 a000d744: eb001156 bl a0011ca4 a000d748: e3500000 cmp r0, #0 a000d74c: 0a000013 beq a000d7a0 return directory; if ( !strcmp( name, dotdotname ) ) a000d750: e1a00006 mov r0, r6 a000d754: e59f1050 ldr r1, [pc, #80] ; a000d7ac a000d758: eb001151 bl a0011ca4 a000d75c: e3500000 cmp r0, #0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } a000d760: 15945050 ldrne r5, [r4, #80] ; 0x50 if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) return directory->Parent; a000d764: 05944008 ldreq r4, [r4, #8] RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( Chain_Control *the_chain, const Chain_Node *the_node ) { return (the_node == _Chain_Tail(the_chain)); a000d768: 12844054 addne r4, r4, #84 ; 0x54 */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) a000d76c: 0a00000b beq a000d7a0 a000d770: ea000005 b a000d78c !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 ) ) a000d774: e1a00006 mov r0, r6 a000d778: e285100c add r1, r5, #12 a000d77c: eb001148 bl a0011ca4 a000d780: e3500000 cmp r0, #0 a000d784: 0a000004 beq a000d79c 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 ) { a000d788: e5955000 ldr r5, [r5] <== NOT EXECUTED if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = rtems_chain_first( the_chain ); a000d78c: e1550004 cmp r5, r4 a000d790: 1afffff7 bne a000d774 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; a000d794: e3a04000 mov r4, #0 a000d798: ea000000 b a000d7a0 for ( the_node = rtems_chain_first( the_chain ); !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; a000d79c: e1a04005 mov r4, r5 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } a000d7a0: e1a00004 mov r0, r4 a000d7a4: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000d674 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a000d674: 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; a000d678: e1a0c000 mov ip, r0 <== NOT EXECUTED a000d67c: 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 ) { a000d680: 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; a000d684: e1a0e00d mov lr, 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 ) { a000d688: e1a05000 mov r5, 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; a000d68c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000d690: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000d694: e59c3000 ldr r3, [ip] <== NOT EXECUTED a000d698: e58e3000 str r3, [lr] <== NOT EXECUTED /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; a000d69c: e3a03000 mov r3, #0 <== NOT EXECUTED a000d6a0: e585301c str r3, [r5, #28] <== NOT EXECUTED do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); a000d6a4: e1a0500d mov r5, sp <== NOT EXECUTED a000d6a8: e1a0000d mov r0, sp <== NOT EXECUTED */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; a000d6ac: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED loc.node_access = (void *)jnode; a000d6b0: e58d4000 str r4, [sp] <== NOT EXECUTED IMFS_Set_handlers( &loc ); a000d6b4: ebfffe30 bl a000cf7c <== NOT EXECUTED if ( jnode->type != IMFS_DIRECTORY ) { a000d6b8: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000d6bc: e3530001 cmp r3, #1 <== NOT EXECUTED a000d6c0: 1a000003 bne a000d6d4 <== NOT EXECUTED result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { a000d6c4: e5942050 ldr r2, [r4, #80] ; 0x50 <== 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 ); a000d6c8: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED a000d6cc: e1520003 cmp r2, r3 <== NOT EXECUTED a000d6d0: 1a000005 bne a000d6ec <== NOT EXECUTED result = IMFS_unlink( NULL, &loc ); a000d6d4: e3a00000 mov r0, #0 <== NOT EXECUTED a000d6d8: e1a0100d mov r1, sp <== NOT EXECUTED a000d6dc: ebffe174 bl a0005cb4 <== NOT EXECUTED if (result != 0) a000d6e0: e3500000 cmp r0, #0 <== NOT EXECUTED a000d6e4: 1a00000c bne a000d71c <== NOT EXECUTED return -1; jnode = next; a000d6e8: e1a04006 mov r4, r6 <== NOT EXECUTED } if ( jnode != NULL ) { a000d6ec: e3540000 cmp r4, #0 <== NOT EXECUTED a000d6f0: 0a00000b beq a000d724 <== NOT EXECUTED if ( jnode->type == IMFS_DIRECTORY ) { a000d6f4: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000d6f8: e3530001 cmp r3, #1 <== NOT EXECUTED a000d6fc: 1affffe9 bne a000d6a8 <== NOT EXECUTED } } } while (jnode != NULL); return 0; } a000d700: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000d704: 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 ) ) a000d708: e1530002 cmp r3, r2 <== NOT EXECUTED a000d70c: 0affffe5 beq a000d6a8 <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); a000d710: e2534000 subs r4, r3, #0 <== NOT EXECUTED a000d714: 1affffe3 bne a000d6a8 <== NOT EXECUTED a000d718: ea000001 b a000d724 <== NOT EXECUTED return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; a000d71c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d720: ea000000 b a000d728 <== NOT EXECUTED jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); return 0; a000d724: e1a00004 mov r0, r4 <== NOT EXECUTED } a000d728: e28dd014 add sp, sp, #20 <== NOT EXECUTED a000d72c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000d7b0 : const char *path, int pathlen, char *token, int *token_len ) { a000d7b0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a000d7b4: e1a05001 mov r5, r1 a000d7b8: e1a04002 mov r4, r2 a000d7bc: e1a0a003 mov sl, r3 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; a000d7c0: e5d07000 ldrb r7, [r0] a000d7c4: e1a08000 mov r8, r0 int pathlen, char *token, int *token_len ) { register int i = 0; a000d7c8: 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) ) { a000d7cc: ea000004 b a000d7e4 token[i] = c; if ( i == IMFS_NAME_MAX ) a000d7d0: 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; a000d7d4: e7c47006 strb r7, [r4, r6] if ( i == IMFS_NAME_MAX ) a000d7d8: 0a000025 beq a000d874 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; a000d7dc: e5f87001 ldrb r7, [r8, #1]! a000d7e0: 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) ) { a000d7e4: e1a00007 mov r0, r7 a000d7e8: ebffe5f9 bl a0006fd4 a000d7ec: e3500000 cmp r0, #0 a000d7f0: 1a000001 bne a000d7fc a000d7f4: e1560005 cmp r6, r5 a000d7f8: bafffff4 blt a000d7d0 /* * Copy a seperator into token. */ if ( i == 0 ) { a000d7fc: e3560000 cmp r6, #0 a000d800: 1a000005 bne a000d81c token[i] = c; if ( (token[i] != '\0') && pathlen ) { a000d804: e3570000 cmp r7, #0 a000d808: 13550000 cmpne r5, #0 i++; type = IMFS_CURRENT_DIR; a000d80c: 13a06001 movne r6, #1 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; a000d810: e5c47000 strb r7, [r4] if ( (token[i] != '\0') && pathlen ) { i++; a000d814: e1a00006 mov r0, r6 a000d818: ea000005 b a000d834 type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { a000d81c: e0843006 add r3, r4, r6 a000d820: e5533001 ldrb r3, [r3, #-1] char *token, int *token_len ) { register int i = 0; IMFS_token_types type = IMFS_NAME; a000d824: e3a00003 mov r0, #3 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { a000d828: e3530000 cmp r3, #0 token[i] = '\0'; a000d82c: 13a03000 movne r3, #0 a000d830: 17c43006 strbne r3, [r4, r6] /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { a000d834: e3500003 cmp r0, #3 /* * Set token_len to the number of characters copied. */ *token_len = i; a000d838: e58a6000 str r6, [sl] /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { a000d83c: 1a00000e bne a000d87c if ( strcmp( token, "..") == 0 ) a000d840: e1a00004 mov r0, r4 a000d844: e59f1034 ldr r1, [pc, #52] ; a000d880 a000d848: eb001115 bl a0011ca4 a000d84c: e3500000 cmp r0, #0 type = IMFS_UP_DIR; a000d850: 03a00002 moveq r0, #2 * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) a000d854: 0a000008 beq a000d87c type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) a000d858: e1a00004 mov r0, r4 a000d85c: e59f1020 ldr r1, [pc, #32] ; a000d884 a000d860: eb00110f bl a0011ca4 type = IMFS_CURRENT_DIR; a000d864: e3500000 cmp r0, #0 a000d868: 13a00003 movne r0, #3 a000d86c: 03a00001 moveq r0, #1 a000d870: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) return IMFS_INVALID_TOKEN; a000d874: e3a00004 mov r0, #4 <== NOT EXECUTED a000d878: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } a000d87c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} =============================================================================== a00058f8 : 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 ) { a00058f8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a00058fc: e1a07003 mov r7, r3 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, a0005900: e59f30d0 ldr r3, [pc, #208] ; a00059d8 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 ) { a0005904: e1a0a001 mov sl, r1 a0005908: e1a08002 mov r8, r2 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, a000590c: e5933000 ldr r3, [r3] 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 ) { a0005910: e1a04000 mov r4, r0 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, a0005914: e3a01006 mov r1, #6 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { a0005918: e3a02010 mov r2, #16 if (bit_mask == requested_bytes_per_block) { a000591c: e1520003 cmp r2, r3 a0005920: 0a000004 beq a0005938 is_valid = true; break; } if(bit_mask > requested_bytes_per_block) a0005924: ca000002 bgt a0005934 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { a0005928: e2511001 subs r1, r1, #1 a000592c: e1a02082 lsl r2, r2, #1 a0005930: 1afffff9 bne a000591c if(bit_mask > requested_bytes_per_block) break; } *dest_bytes_per_block = ((is_valid) ? requested_bytes_per_block : default_bytes_per_block); a0005934: e3a03080 mov r3, #128 ; 0x80 break; } if(bit_mask > requested_bytes_per_block) break; } *dest_bytes_per_block = ((is_valid) a0005938: e59f609c ldr r6, [pc, #156] ; a00059dc a000593c: e5863000 str r3, [r6] /* * 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(); a0005940: eb001d7d bl a000cf3c 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; a0005944: e59fe094 ldr lr, [pc, #148] ; a00059e0 a0005948: 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(); a000594c: e584001c str r0, [r4, #28] a0005950: e1a05000 mov r5, 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; a0005954: e8be000f ldm lr!, {r0, r1, r2, r3} a0005958: e8ac000f stmia ip!, {r0, r1, r2, r3} a000595c: e8be000f ldm lr!, {r0, r1, r2, r3} a0005960: e8ac000f stmia ip!, {r0, r1, r2, r3} a0005964: 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; a0005968: 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; a000596c: 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; a0005970: e584a028 str sl, [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 ) ); a0005974: e3a00001 mov r0, #1 a0005978: e3a01014 mov r1, #20 a000597c: eb000196 bl a0005fdc if ( !fs_info ) { a0005980: e3500000 cmp r0, #0 a0005984: 1a000006 bne a00059a4 free(temp_mt_entry->mt_fs_root.node_access); a0005988: e1a00005 mov r0, r5 <== NOT EXECUTED a000598c: eb0001f7 bl a0006170 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a0005990: eb002db5 bl a001106c <__errno> <== NOT EXECUTED a0005994: e3a0300c mov r3, #12 <== NOT EXECUTED a0005998: e5803000 str r3, [r0] <== NOT EXECUTED a000599c: e3e00000 mvn r0, #0 <== NOT EXECUTED a00059a0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; a00059a4: e5963004 ldr r3, [r6, #4] fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; fs_info->fifo_handlers = fifo_handlers; a00059a8: e59d201c ldr r2, [sp, #28] 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; a00059ac: e5840034 str r0, [r4, #52] ; 0x34 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; a00059b0: e5803000 str r3, [r0] a00059b4: e2833001 add r3, r3, #1 a00059b8: e5863004 str r3, [r6, #4] fs_info->ino_count = 1; a00059bc: e3a03001 mov r3, #1 a00059c0: e9800108 stmib r0, {r3, r8} fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; a00059c4: e580700c str r7, [r0, #12] fs_info->fifo_handlers = fifo_handlers; a00059c8: e5802010 str r2, [r0, #16] jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; a00059cc: e5853038 str r3, [r5, #56] ; 0x38 return 0; a00059d0: e3a00000 mov r0, #0 } a00059d4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} =============================================================================== a00059e4 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { a00059e4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a00059e8: 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 */ ) { a00059ec: e24dd048 sub sp, sp, #72 ; 0x48 <== NOT EXECUTED a00059f0: e1a05001 mov r5, r1 <== NOT EXECUTED int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a00059f4: e58d3028 str r3, [sp, #40] ; 0x28 <== NOT EXECUTED if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) a00059f8: e1d333b4 ldrh r3, [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 */ ) { a00059fc: 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 ) a0005a00: e3530007 cmp r3, #7 <== NOT EXECUTED a0005a04: 9a000002 bls a0005a14 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EMLINK ); a0005a08: eb002d97 bl a001106c <__errno> <== NOT EXECUTED a0005a0c: e3a0301f mov r3, #31 <== NOT EXECUTED a0005a10: ea000012 b a0005a60 <== NOT EXECUTED /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); a0005a14: e1a00002 mov r0, r2 <== NOT EXECUTED a0005a18: eb00317d bl a0012014 <== NOT EXECUTED a0005a1c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0005a20: e1a01000 mov r1, r0 <== NOT EXECUTED a0005a24: e1a02004 mov r2, r4 <== NOT EXECUTED a0005a28: e28d3044 add r3, sp, #68 ; 0x44 <== NOT EXECUTED a0005a2c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005a30: eb001f5e bl a000d7b0 <== NOT EXECUTED new_node = IMFS_create_node( parent_loc, IMFS_HARD_LINK, new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info a0005a34: e28d3028 add r3, sp, #40 ; 0x28 <== NOT EXECUTED * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( a0005a38: e58d3000 str r3, [sp] <== NOT EXECUTED a0005a3c: e1a00005 mov r0, r5 <== NOT EXECUTED a0005a40: e3a01003 mov r1, #3 <== NOT EXECUTED a0005a44: e1a02004 mov r2, r4 <== NOT EXECUTED a0005a48: e59f3050 ldr r3, [pc, #80] ; a0005aa0 <== NOT EXECUTED a0005a4c: eb001cea bl a000cdfc <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) a0005a50: e3500000 cmp r0, #0 <== NOT EXECUTED a0005a54: 1a000004 bne a0005a6c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOMEM ); a0005a58: eb002d83 bl a001106c <__errno> <== NOT EXECUTED a0005a5c: e3a0300c mov r3, #12 <== NOT EXECUTED a0005a60: e5803000 str r3, [r0] <== NOT EXECUTED a0005a64: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005a68: ea00000a b a0005a98 <== NOT EXECUTED /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; a0005a6c: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); a0005a70: e28d003c add r0, sp, #60 ; 0x3c <== NOT EXECUTED a0005a74: 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++; a0005a78: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0005a7c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0005a80: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( info.hard_link.link_node ); a0005a84: eb0001ee bl a0006244 <== NOT EXECUTED a0005a88: e59d203c ldr r2, [sp, #60] ; 0x3c <== NOT EXECUTED a0005a8c: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED return 0; a0005a90: 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 ); a0005a94: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED return 0; } a0005a98: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED a0005a9c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000fb88 : */ MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { a000fb88: 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 ); a000fb8c: e3a02001 mov r2, #1 <== NOT EXECUTED a000fb90: ebffff00 bl a000f798 <== NOT EXECUTED if ( *block_entry_ptr ) a000fb94: 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 ); a000fb98: e1a05000 mov r5, r0 <== NOT EXECUTED if ( *block_entry_ptr ) a000fb9c: e3540000 cmp r4, #0 <== NOT EXECUTED a000fba0: 1a000005 bne a000fbbc <== NOT EXECUTED return 0; /* * There is no memory for this block number so allocate it. */ memory = memfile_alloc_block(); a000fba4: ebfffeee bl a000f764 <== NOT EXECUTED if ( !memory ) a000fba8: e3500000 cmp r0, #0 <== NOT EXECUTED a000fbac: 0a000004 beq a000fbc4 <== NOT EXECUTED return 1; *block_entry_ptr = memory; a000fbb0: e5850000 str r0, [r5] <== NOT EXECUTED return 0; a000fbb4: e1a00004 mov r0, r4 <== NOT EXECUTED a000fbb8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Obtain the pointer for the specified block number */ block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); if ( *block_entry_ptr ) return 0; a000fbbc: e3a00000 mov r0, #0 <== NOT EXECUTED a000fbc0: 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; a000fbc4: e3a00001 mov r0, #1 <== NOT EXECUTED *block_entry_ptr = memory; return 0; } a000fbc8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000fd7c : IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a000fd7c: e59f3110 ldr r3, [pc, #272] ; a000fe94 <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a000fd80: e92d4df1 push {r0, 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 ) a000fd84: e593b000 ldr fp, [r3] <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a000fd88: e1a05002 mov r5, r2 <== NOT EXECUTED a000fd8c: 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 ) a000fd90: e1a0312b lsr r3, fp, #2 <== NOT EXECUTED a000fd94: e2832001 add r2, r3, #1 <== NOT EXECUTED a000fd98: e0020293 mul r2, r3, r2 <== NOT EXECUTED */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a000fd9c: e1a06001 mov r6, r1 <== NOT EXECUTED IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE ); /* * Verify new file size is supported */ if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) a000fda0: e2822001 add r2, r2, #1 <== NOT EXECUTED a000fda4: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000fda8: e3a02000 mov r2, #0 <== NOT EXECUTED a000fdac: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000fdb0: e1520005 cmp r2, r5 <== NOT EXECUTED a000fdb4: e003039b mul r3, fp, r3 <== NOT EXECUTED a000fdb8: ca000005 bgt a000fdd4 <== NOT EXECUTED a000fdbc: 1a000001 bne a000fdc8 <== NOT EXECUTED a000fdc0: e1530001 cmp r3, r1 <== NOT EXECUTED a000fdc4: 8a000002 bhi a000fdd4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); a000fdc8: eb0004a7 bl a001106c <__errno> <== NOT EXECUTED a000fdcc: e3a03016 mov r3, #22 <== NOT EXECUTED a000fdd0: ea000025 b a000fe6c <== NOT EXECUTED /* * Verify new file size is actually larger than current size */ if ( new_length <= the_jnode->info.file.size ) a000fdd4: e5948054 ldr r8, [r4, #84] ; 0x54 <== NOT EXECUTED a000fdd8: e5947050 ldr r7, [r4, #80] ; 0x50 <== NOT EXECUTED a000fddc: e1550008 cmp r5, r8 <== NOT EXECUTED a000fde0: ca000002 bgt a000fdf0 <== NOT EXECUTED a000fde4: 1a000028 bne a000fe8c <== NOT EXECUTED a000fde8: e1560007 cmp r6, r7 <== NOT EXECUTED a000fdec: 9a000026 bls a000fe8c <== NOT EXECUTED return 0; /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fdf0: e1a0cfcb asr ip, fp, #31 <== NOT EXECUTED a000fdf4: e1a0300c mov r3, ip <== NOT EXECUTED a000fdf8: e1a0200b mov r2, fp <== NOT EXECUTED a000fdfc: e1a00006 mov r0, r6 <== NOT EXECUTED a000fe00: e1a01005 mov r1, r5 <== NOT EXECUTED a000fe04: e58dc000 str ip, [sp] <== NOT EXECUTED a000fe08: eb001326 bl a0014aa8 <__divdi3> <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fe0c: e59dc000 ldr ip, [sp] <== NOT EXECUTED a000fe10: e1a01008 mov r1, r8 <== NOT EXECUTED return 0; /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fe14: e1a0a000 mov sl, r0 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fe18: e1a0200b mov r2, fp <== NOT EXECUTED a000fe1c: e1a00007 mov r0, r7 <== NOT EXECUTED a000fe20: e1a0300c mov r3, ip <== NOT EXECUTED a000fe24: eb00131f bl a0014aa8 <__divdi3> <== NOT EXECUTED a000fe28: e1a08000 mov r8, r0 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a000fe2c: e1a07000 mov r7, r0 <== NOT EXECUTED a000fe30: ea000011 b a000fe7c <== NOT EXECUTED if ( IMFS_memfile_addblock( the_jnode, block ) ) { a000fe34: e1a00004 mov r0, r4 <== NOT EXECUTED a000fe38: e1a01007 mov r1, r7 <== NOT EXECUTED a000fe3c: ebffff51 bl a000fb88 <== NOT EXECUTED a000fe40: e3500000 cmp r0, #0 <== NOT EXECUTED a000fe44: 0a00000b beq a000fe78 <== NOT EXECUTED a000fe48: ea000003 b a000fe5c <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); a000fe4c: e1a01007 mov r1, r7 <== NOT EXECUTED a000fe50: e1a00004 mov r0, r4 <== NOT EXECUTED a000fe54: ebffffbe bl a000fd54 <== 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-- ) { a000fe58: e2477001 sub r7, r7, #1 <== NOT EXECUTED a000fe5c: e1570008 cmp r7, r8 <== NOT EXECUTED a000fe60: 2afffff9 bcs a000fe4c <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); a000fe64: eb000480 bl a001106c <__errno> <== NOT EXECUTED a000fe68: e3a0301c mov r3, #28 <== NOT EXECUTED a000fe6c: e5803000 str r3, [r0] <== NOT EXECUTED a000fe70: e3e00000 mvn r0, #0 <== NOT EXECUTED a000fe74: ea000005 b a000fe90 <== NOT EXECUTED old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a000fe78: e2877001 add r7, r7, #1 <== NOT EXECUTED a000fe7c: e157000a cmp r7, sl <== NOT EXECUTED a000fe80: 9affffeb bls a000fe34 <== NOT EXECUTED } /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; a000fe84: e5846050 str r6, [r4, #80] ; 0x50 <== NOT EXECUTED a000fe88: e5845054 str r5, [r4, #84] ; 0x54 <== NOT EXECUTED /* * Verify new file size is actually larger than current size */ if ( new_length <= the_jnode->info.file.size ) return 0; a000fe8c: e3a00000 mov r0, #0 <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } a000fe90: e8bd8df8 pop {r3, r4, r5, r6, r7, r8, sl, fp, pc} <== NOT EXECUTED =============================================================================== a000f798 : my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a000f798: e59f31e4 ldr r3, [pc, #484] ; a000f984 <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a000f79c: 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 ) { a000f7a0: e5935000 ldr r5, [r3] <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a000f7a4: e1a04000 mov r4, r0 <== NOT EXECUTED a000f7a8: e1a06001 mov r6, r1 <== NOT EXECUTED my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a000f7ac: e1a05125 lsr r5, r5, #2 <== NOT EXECUTED a000f7b0: e2453001 sub r3, r5, #1 <== NOT EXECUTED a000f7b4: e1510003 cmp r1, r3 <== NOT EXECUTED #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a000f7b8: e1a08002 mov r8, r2 <== NOT EXECUTED my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a000f7bc: 8a00000e bhi a000f7fc <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { a000f7c0: e3520000 cmp r2, #0 <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { p = info->indirect; a000f7c4: e5900058 ldr r0, [r0, #88] ; 0x58 <== NOT EXECUTED if ( malloc_it ) { a000f7c8: 0a000007 beq a000f7ec <== NOT EXECUTED if ( !p ) { a000f7cc: e3500000 cmp r0, #0 <== NOT EXECUTED a000f7d0: 1a000003 bne a000f7e4 <== NOT EXECUTED p = memfile_alloc_block(); a000f7d4: ebffffe2 bl a000f764 <== NOT EXECUTED if ( !p ) a000f7d8: e3500000 cmp r0, #0 <== NOT EXECUTED a000f7dc: 0a000067 beq a000f980 <== NOT EXECUTED return 0; info->indirect = p; a000f7e0: e5840058 str r0, [r4, #88] ; 0x58 <== NOT EXECUTED } return &info->indirect[ my_block ]; a000f7e4: e5940058 ldr r0, [r4, #88] ; 0x58 <== NOT EXECUTED a000f7e8: ea000001 b a000f7f4 <== NOT EXECUTED } if ( !p ) a000f7ec: e3500000 cmp r0, #0 <== NOT EXECUTED a000f7f0: 0a000062 beq a000f980 <== NOT EXECUTED return 0; return &info->indirect[ my_block ]; a000f7f4: e0800106 add r0, r0, r6, lsl #2 <== NOT EXECUTED a000f7f8: 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 ) { a000f7fc: e2853001 add r3, r5, #1 <== NOT EXECUTED a000f800: e0030395 mul r3, r5, r3 <== NOT EXECUTED a000f804: e2432001 sub r2, r3, #1 <== NOT EXECUTED a000f808: e1510002 cmp r1, r2 <== NOT EXECUTED a000f80c: 8a000021 bhi a000f898 <== NOT EXECUTED my_block -= FIRST_DOUBLY_INDIRECT; a000f810: e0656001 rsb r6, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a000f814: e1a00006 mov r0, r6 <== NOT EXECUTED a000f818: e1a01005 mov r1, r5 <== NOT EXECUTED a000f81c: eb00146d bl a00149d8 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f820: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a000f824: e1a07000 mov r7, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f828: e1a00006 mov r0, r6 <== NOT EXECUTED a000f82c: eb0013d1 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { a000f830: e3580000 cmp r8, #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; a000f834: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; a000f838: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { a000f83c: 0a00000e beq a000f87c <== NOT EXECUTED if ( !p ) { a000f840: e3500000 cmp r0, #0 <== NOT EXECUTED a000f844: 1a000003 bne a000f858 <== NOT EXECUTED p = memfile_alloc_block(); a000f848: ebffffc5 bl a000f764 <== NOT EXECUTED if ( !p ) a000f84c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f850: 0a00004a beq a000f980 <== NOT EXECUTED return 0; info->doubly_indirect = p; a000f854: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; a000f858: e0804105 add r4, r0, r5, lsl #2 <== NOT EXECUTED a000f85c: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED if ( !p1 ) { a000f860: e3500000 cmp r0, #0 <== NOT EXECUTED a000f864: 1a000009 bne a000f890 <== NOT EXECUTED p1 = memfile_alloc_block(); a000f868: ebffffbd bl a000f764 <== NOT EXECUTED if ( !p1 ) a000f86c: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; a000f870: 15840000 strne r0, [r4] <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); if ( !p1 ) a000f874: 1a000005 bne a000f890 <== NOT EXECUTED a000f878: ea000040 b a000f980 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) a000f87c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f880: 0a00003e beq a000f980 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; a000f884: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED if ( !p ) a000f888: e3500000 cmp r0, #0 <== NOT EXECUTED a000f88c: 0a00003b beq a000f980 <== NOT EXECUTED return 0; return (block_p *)&p[ singly ]; a000f890: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED a000f894: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { a000f898: e2832001 add r2, r3, #1 <== NOT EXECUTED a000f89c: e0020295 mul r2, r5, r2 <== NOT EXECUTED a000f8a0: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000f8a4: e1510002 cmp r1, r2 <== NOT EXECUTED a000f8a8: 8a000033 bhi a000f97c <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; a000f8ac: e0636001 rsb r6, r3, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a000f8b0: e1a00006 mov r0, r6 <== NOT EXECUTED a000f8b4: e1a01005 mov r1, r5 <== NOT EXECUTED a000f8b8: eb001446 bl a00149d8 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f8bc: 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; a000f8c0: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f8c4: e1a00006 mov r0, r6 <== NOT EXECUTED a000f8c8: eb0013aa bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a000f8cc: 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; a000f8d0: e1a06000 mov r6, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a000f8d4: eb0013a7 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a000f8d8: 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; a000f8dc: e1a07000 mov r7, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a000f8e0: e1a00006 mov r0, r6 <== NOT EXECUTED a000f8e4: eb00143b bl a00149d8 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { a000f8e8: e3580000 cmp r8, #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; a000f8ec: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; a000f8f0: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { a000f8f4: 0a000016 beq a000f954 <== NOT EXECUTED if ( !p ) { a000f8f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000f8fc: 1a000003 bne a000f910 <== NOT EXECUTED p = memfile_alloc_block(); a000f900: ebffff97 bl a000f764 <== NOT EXECUTED if ( !p ) a000f904: e3500000 cmp r0, #0 <== NOT EXECUTED a000f908: 0a00001c beq a000f980 <== NOT EXECUTED return 0; info->triply_indirect = p; a000f90c: e5840060 str r0, [r4, #96] ; 0x60 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; a000f910: e0804107 add r4, r0, r7, lsl #2 <== NOT EXECUTED a000f914: e7900107 ldr r0, [r0, r7, lsl #2] <== NOT EXECUTED if ( !p1 ) { a000f918: e3500000 cmp r0, #0 <== NOT EXECUTED a000f91c: 1a000003 bne a000f930 <== NOT EXECUTED p1 = memfile_alloc_block(); a000f920: ebffff8f bl a000f764 <== NOT EXECUTED if ( !p1 ) a000f924: e3500000 cmp r0, #0 <== NOT EXECUTED a000f928: 0a000014 beq a000f980 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; a000f92c: e5840000 str r0, [r4] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; a000f930: e0804105 add r4, r0, r5, lsl #2 <== NOT EXECUTED a000f934: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED if ( !p2 ) { a000f938: e3500000 cmp r0, #0 <== NOT EXECUTED a000f93c: 1a00000c bne a000f974 <== NOT EXECUTED p2 = memfile_alloc_block(); a000f940: ebffff87 bl a000f764 <== NOT EXECUTED if ( !p2 ) a000f944: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; a000f948: 15840000 strne r0, [r4] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); if ( !p2 ) a000f94c: 1a000008 bne a000f974 <== NOT EXECUTED a000f950: ea00000a b a000f980 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) a000f954: e3500000 cmp r0, #0 <== NOT EXECUTED a000f958: 0a000008 beq a000f980 <== NOT EXECUTED return 0; p1 = (block_p *) p[ triply ]; a000f95c: e7900107 ldr r0, [r0, r7, lsl #2] <== NOT EXECUTED if ( !p1 ) a000f960: e3500000 cmp r0, #0 <== NOT EXECUTED a000f964: 0a000005 beq a000f980 <== NOT EXECUTED return 0; p2 = (block_p *)p1[ doubly ]; a000f968: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED if ( !p2 ) a000f96c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f970: 0a000002 beq a000f980 <== NOT EXECUTED return 0; return (block_p *)&p2[ singly ]; a000f974: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED a000f978: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } /* * This means the requested block number is out of range. */ return 0; a000f97c: e3a00000 mov r0, #0 <== NOT EXECUTED } a000f980: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a00086c8 : * using the IMFS memory file type. * */ int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; a00086c8: e59f3020 ldr r3, [pc, #32] ; a00086f0 <== NOT EXECUTED a00086cc: e5932000 ldr r2, [r3] <== NOT EXECUTED a00086d0: e1a03122 lsr r3, r2, #2 <== NOT EXECUTED a00086d4: e2830001 add r0, r3, #1 <== NOT EXECUTED a00086d8: e0000093 mul r0, r3, r0 <== NOT EXECUTED a00086dc: e2800001 add r0, r0, #1 <== NOT EXECUTED a00086e0: e0030390 mul r3, r0, r3 <== NOT EXECUTED a00086e4: e2430001 sub r0, r3, #1 <== NOT EXECUTED } a00086e8: e0000092 mul r0, r2, r0 <== NOT EXECUTED a00086ec: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f988 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a000f988: e92d4fff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}<== NOT EXECUTED a000f98c: e1a07003 mov r7, r3 <== 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) { a000f990: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a000f994: e1a04000 mov r4, r0 <== NOT EXECUTED a000f998: e1a08001 mov r8, 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) { a000f99c: e3530006 cmp r3, #6 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a000f9a0: e1a09002 mov r9, r2 <== NOT EXECUTED a000f9a4: e59d6034 ldr r6, [sp, #52] ; 0x34 <== 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) { a000f9a8: 1a000012 bne a000f9f8 <== NOT EXECUTED unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) a000f9ac: e280b050 add fp, r0, #80 ; 0x50 <== NOT EXECUTED a000f9b0: e89b0c00 ldm fp, {sl, fp} <== NOT EXECUTED a000f9b4: e1a0200a mov r2, sl <== NOT EXECUTED a000f9b8: e1a0300b mov r3, fp <== 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; a000f9bc: e5901058 ldr r1, [r0, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) a000f9c0: e0522008 subs r2, r2, r8 <== NOT EXECUTED a000f9c4: e0c33009 sbc r3, r3, r9 <== NOT EXECUTED a000f9c8: e3a00000 mov r0, #0 <== NOT EXECUTED a000f9cc: e1500003 cmp r0, r3 <== NOT EXECUTED a000f9d0: ca000002 bgt a000f9e0 <== NOT EXECUTED a000f9d4: 1a000002 bne a000f9e4 <== NOT EXECUTED a000f9d8: e1560002 cmp r6, r2 <== NOT EXECUTED a000f9dc: 9a000000 bls a000f9e4 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; a000f9e0: e068600a rsb r6, r8, sl <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); a000f9e4: e1a00007 mov r0, r7 <== NOT EXECUTED a000f9e8: e0811008 add r1, r1, r8 <== NOT EXECUTED a000f9ec: e1a02006 mov r2, r6 <== NOT EXECUTED a000f9f0: eb0007cb bl a0011924 <== NOT EXECUTED a000f9f4: ea000050 b a000fb3c <== 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; a000f9f8: e1a03001 mov r3, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) a000f9fc: e5901054 ldr r1, [r0, #84] ; 0x54 <== NOT EXECUTED a000fa00: e5905050 ldr r5, [r0, #80] ; 0x50 <== NOT EXECUTED a000fa04: e3a00000 mov r0, #0 <== NOT EXECUTED a000fa08: e1500001 cmp r0, r1 <== 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; a000fa0c: e0862008 add r2, r6, r8 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) a000fa10: ca000002 bgt a000fa20 <== NOT EXECUTED a000fa14: 1a000003 bne a000fa28 <== NOT EXECUTED a000fa18: e1520005 cmp r2, r5 <== NOT EXECUTED a000fa1c: 9a000001 bls a000fa28 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; a000fa20: e0635005 rsb r5, r3, r5 <== NOT EXECUTED a000fa24: ea000000 b a000fa2c <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ my_length = length; a000fa28: e1a05006 mov r5, r6 <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a000fa2c: e59f3128 ldr r3, [pc, #296] ; a000fb5c <== NOT EXECUTED a000fa30: e1a00008 mov r0, r8 <== NOT EXECUTED a000fa34: e1a01009 mov r1, r9 <== NOT EXECUTED a000fa38: e593b000 ldr fp, [r3] <== NOT EXECUTED a000fa3c: e1a0200b mov r2, fp <== NOT EXECUTED a000fa40: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED a000fa44: e88d000c stm sp, {r2, r3} <== NOT EXECUTED a000fa48: eb001543 bl a0014f5c <__moddi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fa4c: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a000fa50: e1a06000 mov r6, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fa54: e1a01009 mov r1, r9 <== NOT EXECUTED a000fa58: e1a00008 mov r0, r8 <== NOT EXECUTED a000fa5c: eb001411 bl a0014aa8 <__divdi3> <== NOT EXECUTED if ( start_offset ) { a000fa60: e3560000 cmp r6, #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; a000fa64: e1a08000 mov r8, r0 <== NOT EXECUTED if ( start_offset ) { a000fa68: 0a000012 beq a000fab8 <== 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 ); a000fa6c: e1a00004 mov r0, r4 <== NOT EXECUTED a000fa70: e1a01008 mov r1, r8 <== NOT EXECUTED a000fa74: e3a02000 mov r2, #0 <== NOT EXECUTED a000fa78: ebffff46 bl a000f798 <== NOT EXECUTED if ( !block_ptr ) a000fa7c: e3500000 cmp r0, #0 <== NOT EXECUTED return copied; a000fa80: 01a06000 moveq r6, r0 <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) a000fa84: 0a000031 beq a000fb50 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); a000fa88: 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; a000fa8c: e066a00b rsb sl, r6, fp <== NOT EXECUTED a000fa90: e155000a cmp r5, sl <== NOT EXECUTED a000fa94: 31a0a005 movcc sl, 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 ); a000fa98: e1a00007 mov r0, r7 <== NOT EXECUTED a000fa9c: e0811006 add r1, r1, r6 <== NOT EXECUTED a000faa0: e1a0200a mov r2, sl <== NOT EXECUTED a000faa4: eb00079e bl a0011924 <== NOT EXECUTED dest += to_copy; a000faa8: e087700a add r7, r7, sl <== NOT EXECUTED block++; a000faac: e2888001 add r8, r8, #1 <== NOT EXECUTED my_length -= to_copy; a000fab0: e06a5005 rsb r5, sl, r5 <== NOT EXECUTED copied += to_copy; a000fab4: e1a0600a mov r6, sl <== NOT EXECUTED } /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; a000fab8: e59f909c ldr r9, [pc, #156] ; a000fb5c <== NOT EXECUTED a000fabc: e599a000 ldr sl, [r9] <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a000fac0: ea00000d b a000fafc <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a000fac4: e1a00004 mov r0, r4 <== NOT EXECUTED a000fac8: e1a01008 mov r1, r8 <== NOT EXECUTED a000facc: e3a02000 mov r2, #0 <== NOT EXECUTED a000fad0: ebffff30 bl a000f798 <== NOT EXECUTED if ( !block_ptr ) a000fad4: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000fad8: 0a00001c beq a000fb50 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); a000fadc: e1a00007 mov r0, r7 <== NOT EXECUTED a000fae0: e5931000 ldr r1, [r3] <== NOT EXECUTED a000fae4: e1a0200a mov r2, sl <== NOT EXECUTED a000fae8: eb00078d bl a0011924 <== NOT EXECUTED dest += to_copy; a000faec: e087700a add r7, r7, sl <== NOT EXECUTED block++; a000faf0: e2888001 add r8, r8, #1 <== NOT EXECUTED my_length -= to_copy; a000faf4: e06a5005 rsb r5, sl, r5 <== NOT EXECUTED copied += to_copy; a000faf8: e086600a add r6, r6, sl <== 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 ) { a000fafc: e5993000 ldr r3, [r9] <== NOT EXECUTED a000fb00: e1550003 cmp r5, r3 <== NOT EXECUTED a000fb04: 2affffee bcs a000fac4 <== NOT EXECUTED /* * Phase 3: possibly the first part of one block */ IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { a000fb08: e3550000 cmp r5, #0 <== NOT EXECUTED a000fb0c: 0a00000a beq a000fb3c <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a000fb10: e1a00004 mov r0, r4 <== NOT EXECUTED a000fb14: e1a01008 mov r1, r8 <== NOT EXECUTED a000fb18: e3a02000 mov r2, #0 <== NOT EXECUTED a000fb1c: ebffff1d bl a000f798 <== NOT EXECUTED if ( !block_ptr ) a000fb20: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000fb24: 0a000009 beq a000fb50 <== NOT EXECUTED return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); a000fb28: e1a00007 mov r0, r7 <== NOT EXECUTED a000fb2c: e5931000 ldr r1, [r3] <== NOT EXECUTED a000fb30: e1a02005 mov r2, r5 <== NOT EXECUTED a000fb34: eb00077a bl a0011924 <== NOT EXECUTED copied += my_length; a000fb38: e0856006 add r6, r5, r6 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); a000fb3c: e28d0008 add r0, sp, #8 <== NOT EXECUTED a000fb40: e3a01000 mov r1, #0 <== NOT EXECUTED a000fb44: ebffd9be bl a0006244 <== NOT EXECUTED a000fb48: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000fb4c: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED return copied; } a000fb50: e1a00006 mov r0, r6 <== NOT EXECUTED a000fb54: e28dd010 add sp, sp, #16 <== NOT EXECUTED a000fb58: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a000fc3c : * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { a000fc3c: 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; a000fc40: e59f3108 ldr r3, [pc, #264] ; a000fd50 <== NOT EXECUTED * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { a000fc44: e1a04000 mov r4, 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; a000fc48: e5935000 ldr r5, [r3] <== NOT EXECUTED * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { a000fc4c: e5903058 ldr r3, [r0, #88] ; 0x58 <== 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; a000fc50: e1a05125 lsr r5, r5, #2 <== NOT EXECUTED * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; if ( info->indirect ) { a000fc54: e3530000 cmp r3, #0 <== NOT EXECUTED a000fc58: 0a000002 beq a000fc68 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); a000fc5c: e2800058 add r0, r0, #88 ; 0x58 <== NOT EXECUTED a000fc60: e1a01005 mov r1, r5 <== NOT EXECUTED a000fc64: ebffffe0 bl a000fbec <== NOT EXECUTED } if ( info->doubly_indirect ) { a000fc68: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000fc6c: e3530000 cmp r3, #0 <== NOT EXECUTED a000fc70: 13a06000 movne r6, #0 <== NOT EXECUTED for ( i=0 ; i<== NOT EXECUTED if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { a000fc78: 1a000009 bne a000fca4 <== NOT EXECUTED a000fc7c: ea00000e b a000fcbc <== NOT EXECUTED for ( i=0 ; idoubly_indirect[i] ) { a000fc80: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000fc84: e1a00106 lsl r0, r6, #2 <== NOT EXECUTED a000fc88: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED a000fc8c: e3520000 cmp r2, #0 <== NOT EXECUTED a000fc90: 0a000002 beq a000fca0 <== NOT EXECUTED memfile_free_blocks_in_table( a000fc94: e0830000 add r0, r3, r0 <== NOT EXECUTED a000fc98: e1a01005 mov r1, r5 <== NOT EXECUTED a000fc9c: ebffffd2 bl a000fbec <== 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 ); a000fcb0: e284005c add r0, r4, #92 ; 0x5c <== NOT EXECUTED a000fcb4: e1a01005 mov r1, r5 <== NOT EXECUTED a000fcb8: ebffffcb bl a000fbec <== NOT EXECUTED } if ( info->triply_indirect ) { a000fcbc: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a000fcc0: e3530000 cmp r3, #0 <== NOT EXECUTED a000fcc4: 13a06000 movne r6, #0 <== NOT EXECUTED for ( i=0 ; i<== NOT EXECUTED } memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { a000fccc: 1a000017 bne a000fd30 <== NOT EXECUTED a000fcd0: ea00001c b a000fd48 <== NOT EXECUTED for ( i=0 ; itriply_indirect[i]; a000fcd4: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED } memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { a000fcd8: e1a09106 lsl r9, r6, #2 <== NOT EXECUTED for ( i=0 ; itriply_indirect[i]; a000fcdc: e7938106 ldr r8, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a000fce0: e3580000 cmp r8, #0 <== NOT EXECUTED a000fce4: 0a000014 beq a000fd3c <== NOT EXECUTED * a significant difference in the performance of this routine. * * Regardless until the IMFS implementation is proven, it * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( a000fce8: e2488004 sub r8, r8, #4 <== NOT EXECUTED a000fcec: e3a07000 mov r7, #0 <== NOT EXECUTED a000fcf0: ea000006 b a000fd10 <== NOT EXECUTED for ( i=0 ; itriply_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); a000fd00: e1a00008 mov r0, r8 <== NOT EXECUTED a000fd04: e1a01005 mov r1, r5 <== NOT EXECUTED a000fd08: ebffffb7 bl a000fbec <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( a000fd1c: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED a000fd20: e1a01005 mov r1, r5 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( a000fd3c: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a000fd40: e1a01005 mov r1, r5 <== NOT EXECUTED a000fd44: ebffffa8 bl a000fbec <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } a000fd48: e3a00000 mov r0, #0 <== NOT EXECUTED a000fd4c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a000fd54 : */ MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { a000fd54: 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 ); a000fd58: e3a02000 mov r2, #0 <== NOT EXECUTED a000fd5c: ebfffe8d bl a000f798 <== NOT EXECUTED IMFS_assert( block_ptr ); ptr = *block_ptr; *block_ptr = 0; a000fd60: e3a02000 mov r2, #0 <== NOT EXECUTED ) { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a000fd64: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_assert( block_ptr ); ptr = *block_ptr; a000fd68: e5900000 ldr r0, [r0] <== NOT EXECUTED *block_ptr = 0; a000fd6c: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); a000fd70: ebffff95 bl a000fbcc <== NOT EXECUTED return 1; } a000fd74: e3a00001 mov r0, #1 <== NOT EXECUTED a000fd78: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000fe98 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a000fe98: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}<== NOT EXECUTED a000fe9c: e1a06003 mov r6, 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; if ( last_byte > the_jnode->info.file.size ) { a000fea0: e5903054 ldr r3, [r0, #84] ; 0x54 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a000fea4: e59d8030 ldr r8, [sp, #48] ; 0x30 <== NOT EXECUTED a000fea8: e1a07001 mov r7, 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 ) { a000feac: e3530000 cmp r3, #0 <== NOT EXECUTED IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a000feb0: e1a04000 mov r4, r0 <== NOT EXECUTED a000feb4: e1a0a002 mov sl, r2 <== 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; a000feb8: e0881001 add r1, r8, r1 <== NOT EXECUTED if ( last_byte > the_jnode->info.file.size ) { a000febc: ba000003 blt a000fed0 <== NOT EXECUTED a000fec0: 1a00000c bne a000fef8 <== NOT EXECUTED a000fec4: e5903050 ldr r3, [r0, #80] ; 0x50 <== NOT EXECUTED a000fec8: e1530001 cmp r3, r1 <== NOT EXECUTED a000fecc: 2a000009 bcs a000fef8 <== NOT EXECUTED status = IMFS_memfile_extend( the_jnode, last_byte ); a000fed0: e1a00004 mov r0, r4 <== NOT EXECUTED a000fed4: e3a02000 mov r2, #0 <== NOT EXECUTED a000fed8: ebffffa7 bl a000fd7c <== NOT EXECUTED if ( status ) a000fedc: e3500000 cmp r0, #0 <== NOT EXECUTED a000fee0: 0a000004 beq a000fef8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); a000fee4: eb000460 bl a001106c <__errno> <== NOT EXECUTED a000fee8: e3a0301c mov r3, #28 <== NOT EXECUTED a000feec: e5803000 str r3, [r0] <== NOT EXECUTED a000fef0: e3e05000 mvn r5, #0 <== NOT EXECUTED a000fef4: ea00004d b a0010030 <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a000fef8: e59f3138 ldr r3, [pc, #312] ; a0010038 <== NOT EXECUTED a000fefc: e1a00007 mov r0, r7 <== NOT EXECUTED a000ff00: e1a0100a mov r1, sl <== NOT EXECUTED a000ff04: e5939000 ldr r9, [r3] <== NOT EXECUTED a000ff08: e1a0b009 mov fp, r9 <== NOT EXECUTED a000ff0c: e1a0cfcb asr ip, fp, #31 <== NOT EXECUTED a000ff10: e1a0300c mov r3, ip <== NOT EXECUTED a000ff14: e1a0200b mov r2, fp <== NOT EXECUTED a000ff18: e58dc000 str ip, [sp] <== NOT EXECUTED a000ff1c: eb00140e bl a0014f5c <__moddi3> <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a000ff20: e59dc000 ldr ip, [sp] <== NOT EXECUTED */ /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a000ff24: e1a05000 mov r5, r0 <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a000ff28: e1a0100a mov r1, sl <== NOT EXECUTED a000ff2c: e1a00007 mov r0, r7 <== NOT EXECUTED a000ff30: e1a0200b mov r2, fp <== NOT EXECUTED a000ff34: e1a0300c mov r3, ip <== NOT EXECUTED a000ff38: eb0012da bl a0014aa8 <__divdi3> <== NOT EXECUTED if ( start_offset ) { a000ff3c: e3550000 cmp r5, #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; a000ff40: e1a07000 mov r7, r0 <== NOT EXECUTED if ( start_offset ) { a000ff44: 0a000012 beq a000ff94 <== 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 ); a000ff48: e1a00004 mov r0, r4 <== NOT EXECUTED a000ff4c: e1a01007 mov r1, r7 <== NOT EXECUTED a000ff50: e3a02000 mov r2, #0 <== NOT EXECUTED a000ff54: ebfffe0f bl a000f798 <== NOT EXECUTED if ( !block_ptr ) a000ff58: e3500000 cmp r0, #0 <== NOT EXECUTED return copied; a000ff5c: 01a05000 moveq r5, r0 <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); if ( !block_ptr ) a000ff60: 0a000032 beq a0010030 <== NOT EXECUTED block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); a000ff64: 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; a000ff68: e065a009 rsb sl, r5, r9 <== NOT EXECUTED a000ff6c: e15a0008 cmp sl, r8 <== NOT EXECUTED a000ff70: 21a0a008 movcs sl, r8 <== NOT EXECUTED block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); a000ff74: e0800005 add r0, r0, r5 <== NOT EXECUTED a000ff78: e1a01006 mov r1, r6 <== NOT EXECUTED a000ff7c: e1a0200a mov r2, sl <== NOT EXECUTED a000ff80: eb000667 bl a0011924 <== NOT EXECUTED src += to_copy; a000ff84: e086600a add r6, r6, sl <== NOT EXECUTED block++; a000ff88: e2877001 add r7, r7, #1 <== NOT EXECUTED my_length -= to_copy; a000ff8c: e06a8008 rsb r8, sl, r8 <== NOT EXECUTED copied += to_copy; a000ff90: e1a0500a mov r5, sl <== NOT EXECUTED /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; a000ff94: e59f909c ldr r9, [pc, #156] ; a0010038 <== NOT EXECUTED a000ff98: e599a000 ldr sl, [r9] <== NOT EXECUTED while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a000ff9c: ea00000d b a000ffd8 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a000ffa0: e1a00004 mov r0, r4 <== NOT EXECUTED a000ffa4: e1a01007 mov r1, r7 <== NOT EXECUTED a000ffa8: e3a02000 mov r2, #0 <== NOT EXECUTED a000ffac: ebfffdf9 bl a000f798 <== NOT EXECUTED if ( !block_ptr ) a000ffb0: e3500000 cmp r0, #0 <== NOT EXECUTED a000ffb4: 0a00001d beq a0010030 <== 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 ); a000ffb8: e1a01006 mov r1, r6 <== NOT EXECUTED a000ffbc: e5900000 ldr r0, [r0] <== NOT EXECUTED a000ffc0: e1a0200a mov r2, sl <== NOT EXECUTED a000ffc4: eb000656 bl a0011924 <== NOT EXECUTED src += to_copy; a000ffc8: e086600a add r6, r6, sl <== NOT EXECUTED block++; a000ffcc: e2877001 add r7, r7, #1 <== NOT EXECUTED my_length -= to_copy; a000ffd0: e06a8008 rsb r8, sl, r8 <== 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( a000ffd4: e085500a add r5, r5, sl <== 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 ) { a000ffd8: e5993000 ldr r3, [r9] <== NOT EXECUTED a000ffdc: e1580003 cmp r8, r3 <== NOT EXECUTED a000ffe0: 2affffee bcs a000ffa0 <== 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 ) { a000ffe4: e3580000 cmp r8, #0 <== NOT EXECUTED a000ffe8: 0a00000a beq a0010018 <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a000ffec: e1a00004 mov r0, r4 <== NOT EXECUTED a000fff0: e1a01007 mov r1, r7 <== NOT EXECUTED a000fff4: e3a02000 mov r2, #0 <== NOT EXECUTED a000fff8: ebfffde6 bl a000f798 <== NOT EXECUTED if ( !block_ptr ) a000fffc: e3500000 cmp r0, #0 <== NOT EXECUTED a0010000: 0a00000a beq a0010030 <== 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 ); a0010004: e5900000 ldr r0, [r0] <== NOT EXECUTED a0010008: e1a01006 mov r1, r6 <== NOT EXECUTED a001000c: e1a02008 mov r2, r8 <== NOT EXECUTED a0010010: eb000643 bl a0011924 <== NOT EXECUTED my_length = 0; copied += to_copy; a0010014: e0855008 add r5, r5, r8 <== NOT EXECUTED } IMFS_mtime_ctime_update( the_jnode ); a0010018: e28d0004 add r0, sp, #4 <== NOT EXECUTED a001001c: e3a01000 mov r1, #0 <== NOT EXECUTED a0010020: ebffd887 bl a0006244 <== NOT EXECUTED a0010024: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0010028: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED a001002c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return copied; } a0010030: e1a00005 mov r0, r5 <== NOT EXECUTED a0010034: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}<== NOT EXECUTED =============================================================================== a0005aa4 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a0005aa4: e92d40f0 push {r4, r5, r6, r7, lr} a0005aa8: e24dd040 sub sp, sp, #64 ; 0x40 a0005aac: e1a04001 mov r4, r1 a0005ab0: e1a07000 mov r7, r0 a0005ab4: e1a06002 mov r6, r2 a0005ab8: e1a05003 mov r5, 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 ); a0005abc: eb003154 bl a0012014 a0005ac0: e28d2004 add r2, sp, #4 a0005ac4: e1a01000 mov r1, r0 a0005ac8: e28d303c add r3, sp, #60 ; 0x3c a0005acc: e1a00007 mov r0, r7 a0005ad0: eb001f36 bl a000d7b0 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) a0005ad4: e2041a0f and r1, r4, #61440 ; 0xf000 a0005ad8: e3510901 cmp r1, #16384 ; 0x4000 type = IMFS_DIRECTORY; a0005adc: 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) ) a0005ae0: 0a00000b beq a0005b14 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) a0005ae4: e3510902 cmp r1, #32768 ; 0x8000 type = IMFS_MEMORY_FILE; a0005ae8: 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) ) a0005aec: 0a000008 beq a0005b14 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { a0005af0: e3510a06 cmp r1, #24576 ; 0x6000 a0005af4: 13510a02 cmpne r1, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); a0005af8: 058d6028 streq r6, [sp, #40] ; 0x28 a0005afc: 058d502c streq r5, [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; a0005b00: 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) ) { a0005b04: 0a000002 beq a0005b14 mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { IMFS_token_types type = 0; a0005b08: e3510a01 cmp r1, #4096 ; 0x1000 <== NOT EXECUTED a0005b0c: 03a01007 moveq r1, #7 <== NOT EXECUTED a0005b10: 13a01000 movne r1, #0 <== 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( pathloc, type, new_name, mode, &info ); a0005b14: e28d3028 add r3, sp, #40 ; 0x28 a0005b18: e58d3000 str r3, [sp] a0005b1c: e59d0054 ldr r0, [sp, #84] ; 0x54 a0005b20: e28d2004 add r2, sp, #4 a0005b24: e1a03004 mov r3, r4 a0005b28: eb001cb3 bl a000cdfc if ( !new_node ) a0005b2c: e3500000 cmp r0, #0 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; a0005b30: 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 ) a0005b34: 1a000003 bne a0005b48 rtems_set_errno_and_return_minus_one( ENOMEM ); a0005b38: eb002d4b bl a001106c <__errno> <== NOT EXECUTED a0005b3c: e3a0300c mov r3, #12 <== NOT EXECUTED a0005b40: e5803000 str r3, [r0] <== NOT EXECUTED a0005b44: e3e00000 mvn r0, #0 <== NOT EXECUTED return 0; } a0005b48: e28dd040 add sp, sp, #64 ; 0x40 a0005b4c: e8bd80f0 pop {r4, r5, r6, r7, pc} =============================================================================== a0005b50 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a0005b50: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a0005b54: 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 ) a0005b58: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a0005b5c: e3520001 cmp r2, #1 <== NOT EXECUTED a0005b60: 0a000004 beq a0005b78 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); a0005b64: eb002d40 bl a001106c <__errno> <== NOT EXECUTED a0005b68: e3a03014 mov r3, #20 <== NOT EXECUTED a0005b6c: e5803000 str r3, [r0] <== NOT EXECUTED a0005b70: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005b74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; a0005b78: e583005c str r0, [r3, #92] ; 0x5c <== NOT EXECUTED return 0; a0005b7c: e3a00000 mov r0, #0 <== NOT EXECUTED } a0005b80: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0005b84 : ) { IMFS_jnode_t *node; node = pathloc->node_access; return node->type; a0005b84: e5903000 ldr r3, [r0] <== NOT EXECUTED } a0005b88: e593004c ldr r0, [r3, #76] ; 0x4c <== NOT EXECUTED a0005b8c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00084e0 : * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { a00084e0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); a00084e4: e59f50e0 ldr r5, [pc, #224] ; a00085cc <== NOT EXECUTED * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { a00084e8: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); a00084ec: e280000c add r0, r0, #12 <== NOT EXECUTED a00084f0: e5953000 ldr r3, [r5] <== NOT EXECUTED a00084f4: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a00084f8: eb0034bd bl a00157f4 <== NOT EXECUTED switch( the_jnode->type ) { a00084fc: e594204c ldr r2, [r4, #76] ; 0x4c <== NOT EXECUTED a0008500: e2423001 sub r3, r2, #1 <== NOT EXECUTED a0008504: e3530006 cmp r3, #6 <== NOT EXECUTED a0008508: 979ff103 ldrls pc, [pc, r3, lsl #2] <== NOT EXECUTED a000850c: ea000026 b a00085ac <== NOT EXECUTED a0008510: a000852c .word 0xa000852c <== NOT EXECUTED a0008514: a0008540 .word 0xa0008540 <== NOT EXECUTED a0008518: a000858c .word 0xa000858c <== NOT EXECUTED a000851c: a000858c .word 0xa000858c <== NOT EXECUTED a0008520: a0008574 .word 0xa0008574 <== NOT EXECUTED a0008524: a0008558 .word 0xa0008558 <== NOT EXECUTED a0008528: a0008598 .word 0xa0008598 <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); a000852c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008530: e3a0002f mov r0, #47 ; 0x2f <== NOT EXECUTED a0008534: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008538: eb003478 bl a0015720 <== NOT EXECUTED break; a000853c: ea00001f b a00085c0 <== NOT EXECUTED case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", a0008540: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008544: e59f1084 ldr r1, [pc, #132] ; a00085d0 <== NOT EXECUTED a0008548: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a000854c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008550: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a0008554: ea000004 b a000856c <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", a0008558: e5953000 ldr r3, [r5] <== NOT EXECUTED a000855c: e59f1070 ldr r1, [pc, #112] ; a00085d4 <== NOT EXECUTED a0008560: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0008564: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008568: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a000856c: eb00344b bl a00156a0 <== NOT EXECUTED (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; a0008570: ea000012 b a00085c0 <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", a0008574: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008578: e59f1058 ldr r1, [pc, #88] ; a00085d8 <== NOT EXECUTED a000857c: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0008580: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008584: eb003445 bl a00156a0 <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; a0008588: ea00000c b a00085c0 <== NOT EXECUTED case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); return; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); a000858c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008590: e59f0044 ldr r0, [pc, #68] ; a00085dc <== NOT EXECUTED a0008594: ea000001 b a00085a0 <== NOT EXECUTED return; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); a0008598: e5953000 ldr r3, [r5] <== NOT EXECUTED a000859c: e59f003c ldr r0, [pc, #60] ; a00085e0 <== NOT EXECUTED a00085a0: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); } a00085a4: 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" ); a00085a8: ea003491 b a00157f4 <== NOT EXECUTED return; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); a00085ac: e5953000 ldr r3, [r5] <== NOT EXECUTED a00085b0: e59f102c ldr r1, [pc, #44] ; a00085e4 <== NOT EXECUTED a00085b4: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED return; } puts(""); } a00085b8: 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 ); a00085bc: ea003437 b a00156a0 <== NOT EXECUTED return; } puts(""); a00085c0: e59f0020 ldr r0, [pc, #32] ; a00085e8 <== NOT EXECUTED } a00085c4: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); return; } puts(""); a00085c8: ea003b63 b a001735c <== NOT EXECUTED =============================================================================== a0005b90 : ) { IMFS_jnode_t *node; ssize_t i; node = loc->node_access; a0005b90: e590c000 ldr ip, [r0] <== NOT EXECUTED IMFS_assert( node->type == IMFS_SYM_LINK ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) a0005b94: e3a00000 mov r0, #0 <== NOT EXECUTED a0005b98: ea000001 b a0005ba4 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; a0005b9c: e7c13000 strb r3, [r1, r0] <== NOT EXECUTED node = loc->node_access; IMFS_assert( node->type == IMFS_SYM_LINK ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) a0005ba0: e2800001 add r0, r0, #1 <== NOT EXECUTED a0005ba4: e1500002 cmp r0, r2 <== NOT EXECUTED a0005ba8: 212fff1e bxcs lr <== NOT EXECUTED a0005bac: e59c3050 ldr r3, [ip, #80] ; 0x50 <== NOT EXECUTED a0005bb0: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED a0005bb4: e3530000 cmp r3, #0 <== NOT EXECUTED a0005bb8: 1afffff7 bne a0005b9c <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } a0005bbc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0005bc0 : 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 */ ) { a0005bc0: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; a0005bc4: 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 */ ) { a0005bc8: 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 ); a0005bcc: e1a01003 mov r1, r3 <== NOT EXECUTED a0005bd0: e284000c add r0, r4, #12 <== NOT EXECUTED a0005bd4: e3a02020 mov r2, #32 <== NOT EXECUTED a0005bd8: eb003125 bl a0012074 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) a0005bdc: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0005be0: e3530000 cmp r3, #0 <== NOT EXECUTED a0005be4: 0a000001 beq a0005bf0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a0005be8: e1a00004 mov r0, r4 <== NOT EXECUTED a0005bec: eb001054 bl a0009d44 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; a0005bf0: e5950000 ldr r0, [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 ); a0005bf4: e1a01004 mov r1, r4 <== NOT EXECUTED the_jnode->Parent = new_parent; a0005bf8: e5840008 str r0, [r4, #8] <== NOT EXECUTED a0005bfc: e2800050 add r0, r0, #80 ; 0x50 <== NOT EXECUTED a0005c00: eb001044 bl a0009d18 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); a0005c04: e1a0000d mov r0, sp <== NOT EXECUTED a0005c08: e3a01000 mov r1, #0 <== NOT EXECUTED a0005c0c: eb00018c bl a0006244 <== NOT EXECUTED a0005c10: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } a0005c14: 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 ); a0005c18: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a0005c1c: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000d93c : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { a000d93c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = (IMFS_jnode_t *) pathloc->node_access; a000d940: e5914000 ldr r4, [r1] <== NOT EXECUTED IMFS_create_orphan( jnode ); a000d944: e1a00004 mov r0, r4 <== NOT EXECUTED a000d948: ebffffce bl a000d888 <== NOT EXECUTED IMFS_check_node_remove( jnode ); a000d94c: e1a00004 mov r0, r4 <== NOT EXECUTED a000d950: ebffffdd bl a000d8cc <== NOT EXECUTED return 0; } a000d954: e3a00000 mov r0, #0 <== NOT EXECUTED a000d958: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000d95c : { IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; a000d95c: e5903000 ldr r3, [r0] <== NOT EXECUTED int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { a000d960: e92d4800 push {fp, lr} <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { a000d964: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a000d968: e2422002 sub r2, r2, #2 <== NOT EXECUTED a000d96c: e3520005 cmp r2, #5 <== NOT EXECUTED a000d970: 979ff102 ldrls pc, [pc, r2, lsl #2] <== NOT EXECUTED a000d974: ea000012 b a000d9c4 <== NOT EXECUTED a000d978: a000d990 .word 0xa000d990 <== NOT EXECUTED a000d97c: a000d9c4 .word 0xa000d9c4 <== NOT EXECUTED a000d980: a000d9b0 .word 0xa000d9b0 <== NOT EXECUTED a000d984: a000d9a4 .word 0xa000d9a4 <== NOT EXECUTED a000d988: a000d9a4 .word 0xa000d9a4 <== NOT EXECUTED a000d98c: a000d9b0 .word 0xa000d9b0 <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); a000d990: e5932054 ldr r2, [r3, #84] ; 0x54 <== NOT EXECUTED rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; a000d994: e593c050 ldr ip, [r3, #80] ; 0x50 <== NOT EXECUTED a000d998: e581201c str r2, [r1, #28] <== NOT EXECUTED a000d99c: e581c018 str ip, [r1, #24] <== NOT EXECUTED break; a000d9a0: ea00000c b a000d9d8 <== NOT EXECUTED case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; a000d9a4: e283c050 add ip, r3, #80 ; 0x50 <== NOT EXECUTED a000d9a8: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED a000d9ac: ea000001 b a000d9b8 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; a000d9b0: e3a0b000 mov fp, #0 <== NOT EXECUTED a000d9b4: e3a0c000 mov ip, #0 <== NOT EXECUTED a000d9b8: e581b020 str fp, [r1, #32] <== NOT EXECUTED a000d9bc: e581c024 str ip, [r1, #36] ; 0x24 <== NOT EXECUTED break; a000d9c0: ea000004 b a000d9d8 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); a000d9c4: eb000da8 bl a001106c <__errno> <== NOT EXECUTED a000d9c8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000d9cc: e5803000 str r3, [r0] <== NOT EXECUTED a000d9d0: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d9d4: e8bd8800 pop {fp, pc} <== 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; a000d9d8: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED a000d9dc: e59f0054 ldr r0, [pc, #84] ; a000da38 <== NOT EXECUTED buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); a000d9e0: e5922034 ldr r2, [r2, #52] ; 0x34 <== NOT EXECUTED a000d9e4: e5922000 ldr r2, [r2] <== 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 = a000d9e8: e5810000 str r0, [r1] <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; a000d9ec: e3a00000 mov r0, #0 <== 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 = a000d9f0: e5812004 str r2, [r1, #4] <== NOT EXECUTED rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; a000d9f4: e5932030 ldr r2, [r3, #48] ; 0x30 <== NOT EXECUTED a000d9f8: e581200c str r2, [r1, #12] <== NOT EXECUTED buf->st_nlink = the_jnode->st_nlink; a000d9fc: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a000da00: e1c121b0 strh r2, [r1, #16] <== NOT EXECUTED buf->st_ino = the_jnode->st_ino; a000da04: e5932038 ldr r2, [r3, #56] ; 0x38 <== NOT EXECUTED a000da08: e5812008 str r2, [r1, #8] <== NOT EXECUTED buf->st_uid = the_jnode->st_uid; a000da0c: e1d323bc ldrh r2, [r3, #60] ; 0x3c <== NOT EXECUTED a000da10: e1c121b2 strh r2, [r1, #18] <== NOT EXECUTED buf->st_gid = the_jnode->st_gid; a000da14: e1d323be ldrh r2, [r3, #62] ; 0x3e <== NOT EXECUTED a000da18: e1c121b4 strh r2, [r1, #20] <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; a000da1c: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED a000da20: e5812028 str r2, [r1, #40] ; 0x28 <== NOT EXECUTED buf->st_mtime = the_jnode->stat_mtime; a000da24: e5932044 ldr r2, [r3, #68] ; 0x44 <== NOT EXECUTED buf->st_ctime = the_jnode->stat_ctime; a000da28: e5933048 ldr r3, [r3, #72] ; 0x48 <== 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; a000da2c: e5812030 str r2, [r1, #48] ; 0x30 <== NOT EXECUTED buf->st_ctime = the_jnode->stat_ctime; a000da30: e5813038 str r3, [r1, #56] ; 0x38 <== NOT EXECUTED return 0; } a000da34: e8bd8800 pop {fp, pc} <== NOT EXECUTED =============================================================================== a0005c20 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a0005c20: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a0005c24: e1a05000 mov r5, r0 <== NOT EXECUTED a0005c28: 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 ); a0005c2c: e1a00002 mov r0, r2 <== NOT EXECUTED int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a0005c30: e1a06001 mov r6, r1 <== NOT EXECUTED a0005c34: e1a07002 mov r7, r2 <== NOT EXECUTED int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); a0005c38: eb0030f5 bl a0012014 <== NOT EXECUTED a0005c3c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0005c40: e1a01000 mov r1, r0 <== NOT EXECUTED a0005c44: e1a02004 mov r2, r4 <== NOT EXECUTED a0005c48: e28d303c add r3, sp, #60 ; 0x3c <== NOT EXECUTED a0005c4c: e1a00007 mov r0, r7 <== NOT EXECUTED a0005c50: eb001ed6 bl a000d7b0 <== NOT EXECUTED /* * Duplicate link name */ info.sym_link.name = strdup(link_name); a0005c54: e1a00006 mov r0, r6 <== NOT EXECUTED a0005c58: eb0030d9 bl a0011fc4 <== NOT EXECUTED if (info.sym_link.name == NULL) { a0005c5c: 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); a0005c60: e58d0028 str r0, [sp, #40] ; 0x28 <== NOT EXECUTED if (info.sym_link.name == NULL) { a0005c64: 0a00000b beq a0005c98 <== NOT EXECUTED new_node = IMFS_create_node( parent_loc, IMFS_SYM_LINK, new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info a0005c68: e28d3028 add r3, sp, #40 ; 0x28 <== NOT EXECUTED * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( a0005c6c: e58d3000 str r3, [sp] <== NOT EXECUTED a0005c70: e1a00005 mov r0, r5 <== NOT EXECUTED a0005c74: e3a01004 mov r1, #4 <== NOT EXECUTED a0005c78: e1a02004 mov r2, r4 <== NOT EXECUTED a0005c7c: e59f302c ldr r3, [pc, #44] ; a0005cb0 <== NOT EXECUTED a0005c80: eb001c5d bl a000cdfc <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { a0005c84: e3500000 cmp r0, #0 <== NOT EXECUTED free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; a0005c88: 13a00000 movne r0, #0 <== NOT EXECUTED new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { a0005c8c: 1a000005 bne a0005ca8 <== NOT EXECUTED free(info.sym_link.name); a0005c90: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a0005c94: eb000135 bl a0006170 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a0005c98: eb002cf3 bl a001106c <__errno> <== NOT EXECUTED a0005c9c: e3a0300c mov r3, #12 <== NOT EXECUTED a0005ca0: e5803000 str r3, [r0] <== NOT EXECUTED a0005ca4: e3e00000 mvn r0, #0 <== NOT EXECUTED } return 0; } a0005ca8: e28dd040 add sp, sp, #64 ; 0x40 <== NOT EXECUTED a0005cac: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0005cb4 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a0005cb4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; a0005cb8: e5915000 ldr r5, [r1] <== NOT EXECUTED int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a0005cbc: e24dd01c sub sp, sp, #28 <== NOT EXECUTED a0005cc0: 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 ) { a0005cc4: 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 */ ) { a0005cc8: 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 ) { a0005ccc: e3530003 cmp r3, #3 <== NOT EXECUTED a0005cd0: 1a000024 bne a0005d68 <== NOT EXECUTED if ( !node->info.hard_link.link_node ) a0005cd4: e595e050 ldr lr, [r5, #80] ; 0x50 <== NOT EXECUTED a0005cd8: e35e0000 cmp lr, #0 <== NOT EXECUTED a0005cdc: 1a000003 bne a0005cf0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); a0005ce0: eb002ce1 bl a001106c <__errno> <== NOT EXECUTED a0005ce4: e3a03016 mov r3, #22 <== NOT EXECUTED a0005ce8: e5803000 str r3, [r0] <== NOT EXECUTED a0005cec: ea000023 b a0005d80 <== NOT EXECUTED the_link = *loc; a0005cf0: e1a0c00d mov ip, sp <== NOT EXECUTED a0005cf4: e1a07001 mov r7, r1 <== NOT EXECUTED a0005cf8: e8b7000f ldm r7!, {r0, r1, r2, r3} <== NOT EXECUTED a0005cfc: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a0005d00: e5973000 ldr r3, [r7] <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; a0005d04: e28d701c add r7, sp, #28 <== NOT EXECUTED a0005d08: e527e01c str lr, [r7, #-28]! <== NOT EXECUTED IMFS_Set_handlers( &the_link ); a0005d0c: 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; a0005d10: e58c3000 str r3, [ip] <== NOT EXECUTED the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); a0005d14: eb001c98 bl a000cf7c <== 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) a0005d18: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a0005d1c: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0005d20: e3520001 cmp r2, #1 <== NOT EXECUTED a0005d24: 1a000007 bne a0005d48 <== NOT EXECUTED { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); a0005d28: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0005d2c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005d30: e1a0100d mov r1, sp <== NOT EXECUTED a0005d34: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a0005d38: e12fff33 blx r3 <== NOT EXECUTED if ( result != 0 ) a0005d3c: e3500000 cmp r0, #0 <== NOT EXECUTED a0005d40: 0a000008 beq a0005d68 <== NOT EXECUTED a0005d44: ea00000d b a0005d80 <== NOT EXECUTED return -1; } else { node->info.hard_link.link_node->st_nlink --; a0005d48: e2422001 sub r2, r2, #1 <== NOT EXECUTED a0005d4c: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED IMFS_update_ctime( node->info.hard_link.link_node ); a0005d50: e28d0014 add r0, sp, #20 <== NOT EXECUTED a0005d54: e3a01000 mov r1, #0 <== NOT EXECUTED a0005d58: eb000139 bl a0006244 <== NOT EXECUTED a0005d5c: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a0005d60: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a0005d64: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); a0005d68: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0005d6c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005d70: e1a01004 mov r1, r4 <== NOT EXECUTED a0005d74: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a0005d78: e12fff33 blx r3 <== NOT EXECUTED return result; a0005d7c: ea000000 b a0005d84 <== NOT EXECUTED if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); if ( result != 0 ) return -1; a0005d80: e3e00000 mvn r0, #0 <== NOT EXECUTED */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } a0005d84: e28dd01c add sp, sp, #28 <== NOT EXECUTED a0005d88: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0005d8c : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a0005d8c: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a0005d90: 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 ) a0005d94: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a0005d98: e3520001 cmp r2, #1 <== NOT EXECUTED a0005d9c: 0a000002 beq a0005dac <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); a0005da0: eb002cb1 bl a001106c <__errno> <== NOT EXECUTED a0005da4: e3a03014 mov r3, #20 <== NOT EXECUTED a0005da8: ea000004 b a0005dc0 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) a0005dac: e593205c ldr r2, [r3, #92] ; 0x5c <== NOT EXECUTED a0005db0: e3520000 cmp r2, #0 <== NOT EXECUTED a0005db4: 1a000004 bne a0005dcc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ a0005db8: eb002cab bl a001106c <__errno> <== NOT EXECUTED a0005dbc: e3a03016 mov r3, #22 <== NOT EXECUTED a0005dc0: e5803000 str r3, [r0] <== NOT EXECUTED a0005dc4: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005dc8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; a0005dcc: e3a00000 mov r0, #0 <== NOT EXECUTED a0005dd0: e583005c str r0, [r3, #92] ; 0x5c <== NOT EXECUTED return 0; } a0005dd4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0005dd8 : int IMFS_utime( rtems_filesystem_location_info_t *pathloc, /* IN */ time_t actime, /* IN */ time_t modtime /* IN */ ) { a0005dd8: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; a0005ddc: e5904000 ldr r4, [r0] <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; the_jnode->stat_ctime = time( NULL ); a0005de0: e3a00000 mov r0, #0 <== NOT EXECUTED { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; a0005de4: e5841040 str r1, [r4, #64] ; 0x40 <== NOT EXECUTED the_jnode->stat_mtime = modtime; a0005de8: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED the_jnode->stat_ctime = time( NULL ); a0005dec: eb0030db bl a0012160