=============================================================================== 40003a08 : int IMFS_fchmod( const rtems_filesystem_location_info_t *loc, mode_t mode ) { 40003a08: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *jnode; jnode = loc->node_access; 40003a0c: fa 06 20 08 ld [ %i0 + 8 ], %i5 <== NOT EXECUTED jnode->st_mode = mode; 40003a10: f2 27 60 14 st %i1, [ %i5 + 0x14 ] <== NOT EXECUTED _Timecounter_Getbintime( &now ); 40003a14: 40 00 14 14 call 40008a64 <_Timecounter_Getbintime> <== NOT EXECUTED 40003a18: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED return now.sec; 40003a1c: c4 1f bf f0 ldd [ %fp + -16 ], %g2 jnode->stat_ctime = _IMFS_get_time(); 40003a20: c4 3f 60 30 std %g2, [ %i5 + 0x30 ] IMFS_update_ctime( jnode ); return 0; } 40003a24: 81 c7 e0 08 ret 40003a28: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 4000c384 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) void IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 4000c384: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED /* * Traverse tree that starts at the mt_fs_root and deallocate memory * associated memory space */ loc = temp_mt_entry->mt_fs_root->location; 4000c388: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 4000c38c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED 4000c390: f6 00 40 00 ld [ %g1 ], %i3 <== NOT EXECUTED 4000c394: f8 00 60 04 ld [ %g1 + 4 ], %i4 <== NOT EXECUTED 4000c398: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED 4000c39c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 <== NOT EXECUTED 4000c3a0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED jnode = (IMFS_jnode_t *)loc.node_access; 4000c3a4: ba 10 00 02 mov %g2, %i5 loc = temp_mt_entry->mt_fs_root->location; 4000c3a8: c4 27 bf f0 st %g2, [ %fp + -16 ] return S_ISDIR( node->st_mode ); 4000c3ac: 35 00 00 3c sethi %hi(0xf000), %i2 4000c3b0: c2 27 bf fc st %g1, [ %fp + -4 ] 4000c3b4: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 loc->handlers = node->control->handlers; 4000c3b8: c4 07 60 38 ld [ %i5 + 0x38 ], %g2 4000c3bc: c4 00 80 00 ld [ %g2 ], %g2 4000c3c0: c6 27 bf f8 st %g3, [ %fp + -8 ] return S_ISDIR( node->st_mode ); 4000c3c4: 82 08 40 1a and %g1, %i2, %g1 4000c3c8: f6 27 bf e8 st %i3, [ %fp + -24 ] do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) { 4000c3cc: 37 00 00 10 sethi %hi(0x4000), %i3 loc = temp_mt_entry->mt_fs_root->location; 4000c3d0: f8 27 bf ec st %i4, [ %fp + -20 ] if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) { 4000c3d4: 80 a0 40 1b cmp %g1, %i3 next = jnode->Parent; 4000c3d8: f8 07 60 08 ld [ %i5 + 8 ], %i4 loc = temp_mt_entry->mt_fs_root->location; 4000c3dc: c8 27 bf f4 st %g4, [ %fp + -12 ] loc.node_access = (void *)jnode; 4000c3e0: fa 27 bf f0 st %i5, [ %fp + -16 ] if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) { 4000c3e4: 12 80 00 14 bne 4000c434 <== NEVER TAKEN 4000c3e8: c4 27 bf f8 st %g2, [ %fp + -8 ] return _Chain_Immutable_head( the_chain )->next; 4000c3ec: c4 07 60 40 ld [ %i5 + 0x40 ], %g2 return &the_chain->Tail.Node; 4000c3f0: 82 07 60 44 add %i5, 0x44, %g1 4000c3f4: 80 a0 80 01 cmp %g2, %g1 4000c3f8: 02 80 00 10 be 4000c438 4000c3fc: 92 07 bf e8 add %fp, -24, %o1 if ( IMFS_is_directory( jnode ) ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 4000c400: 80 a0 a0 00 cmp %g2, 0 4000c404: 02 80 00 23 be 4000c490 <== NEVER TAKEN 4000c408: b8 10 00 02 mov %g2, %i4 4000c40c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 4000c410: ba 10 00 1c mov %i4, %i5 loc->handlers = node->control->handlers; 4000c414: c4 07 60 38 ld [ %i5 + 0x38 ], %g2 4000c418: c4 00 80 00 ld [ %g2 ], %g2 next = jnode->Parent; 4000c41c: f8 07 60 08 ld [ %i5 + 8 ], %i4 loc.node_access = (void *)jnode; 4000c420: fa 27 bf f0 st %i5, [ %fp + -16 ] return S_ISDIR( node->st_mode ); 4000c424: 82 08 40 1a and %g1, %i2, %g1 if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) { 4000c428: 80 a0 40 1b cmp %g1, %i3 4000c42c: 02 bf ff f0 be 4000c3ec 4000c430: c4 27 bf f8 st %g2, [ %fp + -8 ] result = IMFS_rmnod( NULL, &loc ); 4000c434: 92 07 bf e8 add %fp, -24, %o1 4000c438: 7f ff df 23 call 400040c4 4000c43c: 90 10 20 00 clr %o0 if ( result != 0 ) 4000c440: 80 a2 20 00 cmp %o0, 0 4000c444: 12 80 00 15 bne 4000c498 <== NEVER TAKEN 4000c448: 11 37 ab 6f sethi %hi(0xdeadbc00), %o0 IMFS_node_destroy( jnode ); 4000c44c: 7f ff de bb call 40003f38 4000c450: 90 10 00 1d mov %i5, %o0 if ( jnode != NULL ) { 4000c454: 80 a7 20 00 cmp %i4, 0 4000c458: 02 80 00 0e be 4000c490 4000c45c: 01 00 00 00 nop 4000c460: c2 07 20 14 ld [ %i4 + 0x14 ], %g1 4000c464: 84 08 40 1a and %g1, %i2, %g2 if ( IMFS_is_directory( jnode ) ) { 4000c468: 80 a0 80 1b cmp %g2, %i3 4000c46c: 32 bf ff ea bne,a 4000c414 <== NEVER TAKEN 4000c470: ba 10 00 1c mov %i4, %i5 <== NOT EXECUTED 4000c474: c4 07 20 40 ld [ %i4 + 0x40 ], %g2 if ( jnode_has_children( jnode ) ) 4000c478: 86 07 20 44 add %i4, 0x44, %g3 4000c47c: 80 a0 80 03 cmp %g2, %g3 4000c480: 12 bf ff e1 bne 4000c404 4000c484: 80 a0 a0 00 cmp %g2, 0 } while (jnode != NULL); 4000c488: 10 bf ff e3 b 4000c414 4000c48c: ba 10 00 1c mov %i4, %i5 } 4000c490: 81 c7 e0 08 ret 4000c494: 81 e8 00 00 restore rtems_fatal_error_occurred( 0xdeadbeef ); 4000c498: 7f ff e9 59 call 400069fc <== NOT EXECUTED 4000c49c: 90 12 22 ef or %o0, 0x2ef, %o0 <== NOT EXECUTED 4000c4a0: 01 00 00 00 nop <== NOT EXECUTED =============================================================================== 40004880 : const char *name, size_t namelen, mode_t mode, void *arg ) { 40004880: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED struct timeval tv; if ( namelen > IMFS_NAME_MAX ) { 40004884: 80 a6 e0 ff cmp %i3, 0xff <== NOT EXECUTED 40004888: 18 80 00 19 bgu 400048ec <== NOT EXECUTED 4000488c: 92 10 20 00 clr %o1 errno = ENAMETOOLONG; return NULL; } gettimeofday( &tv, 0 ); 40004890: 40 00 01 aa call 40004f38 40004894: 90 07 bf f0 add %fp, -16, %o0 /* * Fill in the basic information */ node->name = name; node->namelen = namelen; node->reference_count = 1; 40004898: 03 00 00 40 sethi %hi(0x10000), %g1 node->name = name; 4000489c: f4 26 20 0c st %i2, [ %i0 + 0xc ] node->reference_count = 1; 400048a0: 82 10 60 01 or %g1, 1, %g1 node->namelen = namelen; 400048a4: f6 36 20 10 sth %i3, [ %i0 + 0x10 ] node->reference_count = 1; 400048a8: c2 26 20 18 st %g1, [ %i0 + 0x18 ] node->st_nlink = 1; node->control = node_control; 400048ac: f2 26 20 38 st %i1, [ %i0 + 0x38 ] /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; node->st_uid = geteuid(); 400048b0: 40 00 01 9c call 40004f20 400048b4: f8 26 20 14 st %i4, [ %i0 + 0x14 ] node->st_gid = getegid(); 400048b8: 40 00 01 94 call 40004f08 400048bc: d0 36 20 1c sth %o0, [ %i0 + 0x1c ] /* * Now set all the times. */ node->stat_atime = (time_t) tv.tv_sec; 400048c0: c4 1f bf f0 ldd [ %fp + -16 ], %g2 node->st_gid = getegid(); 400048c4: d0 36 20 1e sth %o0, [ %i0 + 0x1e ] node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; return (*node_control->node_initialize)( node, arg ); 400048c8: 92 10 00 1d mov %i5, %o1 node->stat_atime = (time_t) tv.tv_sec; 400048cc: c4 3e 20 20 std %g2, [ %i0 + 0x20 ] node->stat_mtime = (time_t) tv.tv_sec; 400048d0: c4 3e 20 28 std %g2, [ %i0 + 0x28 ] node->stat_ctime = (time_t) tv.tv_sec; 400048d4: c4 3e 20 30 std %g2, [ %i0 + 0x30 ] return (*node_control->node_initialize)( node, arg ); 400048d8: c2 06 60 04 ld [ %i1 + 4 ], %g1 400048dc: 9f c0 40 00 call %g1 400048e0: 90 10 00 18 mov %i0, %o0 } 400048e4: 81 c7 e0 08 ret 400048e8: 91 e8 00 08 restore %g0, %o0, %o0 errno = ENAMETOOLONG; 400048ec: 40 00 28 98 call 4000eb4c <__errno> 400048f0: b0 10 20 00 clr %i0 400048f4: 82 10 20 5b mov 0x5b, %g1 400048f8: c2 22 00 00 st %g1, [ %o0 ] return NULL; 400048fc: 81 c7 e0 08 ret 40004900: 81 e8 00 00 restore =============================================================================== 40003a7c : { 40003a7c: 9d e3 bf a0 save %sp, -96, %sp IMFS_fs_info_t *fs_info = mount_data->fs_info; 40003a80: fa 06 40 00 ld [ %i1 ], %i5 fs_info->mknod_controls = mount_data->mknod_controls; 40003a84: c2 06 60 08 ld [ %i1 + 8 ], %g1 40003a88: c2 27 60 50 st %g1, [ %i5 + 0x50 ] root_node = IMFS_initialize_node( 40003a8c: 9a 10 20 00 clr %o5 40003a90: d2 00 40 00 ld [ %g1 ], %o1 40003a94: 96 10 20 00 clr %o3 40003a98: 19 00 00 10 sethi %hi(0x4000), %o4 40003a9c: 90 10 00 1d mov %i5, %o0 40003aa0: 98 13 21 ed or %o4, 0x1ed, %o4 40003aa4: 15 10 00 64 sethi %hi(0x40019000), %o2 40003aa8: 40 00 03 76 call 40004880 40003aac: 94 12 a0 60 or %o2, 0x60, %o2 ! 40019060 mt_entry->ops = mount_data->ops; 40003ab0: c2 06 60 04 ld [ %i1 + 4 ], %g1 loc->handlers = node->control->handlers; 40003ab4: c4 02 20 38 ld [ %o0 + 0x38 ], %g2 40003ab8: c2 26 20 0c st %g1, [ %i0 + 0xc ] mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS; 40003abc: 03 10 00 66 sethi %hi(0x40019800), %g1 40003ac0: 82 10 63 14 or %g1, 0x314, %g1 ! 40019b14 mt_entry->fs_info = fs_info; 40003ac4: fa 26 20 08 st %i5, [ %i0 + 8 ] mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS; 40003ac8: c2 26 20 2c st %g1, [ %i0 + 0x2c ] 40003acc: c4 00 80 00 ld [ %g2 ], %g2 mt_entry->mt_fs_root->location.node_access = root_node; 40003ad0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 40003ad4: d0 20 60 08 st %o0, [ %g1 + 8 ] 40003ad8: c4 20 60 10 st %g2, [ %g1 + 0x10 ] IMFS_determine_bytes_per_block( 40003adc: 03 10 00 6c sethi %hi(0x4001b000), %g1 40003ae0: c6 00 63 a8 ld [ %g1 + 0x3a8 ], %g3 ! 4001b3a8 if (bit_mask == requested_bytes_per_block) { 40003ae4: 80 a0 e0 10 cmp %g3, 0x10 40003ae8: 02 80 00 0e be 40003b20 40003aec: 80 a0 e0 0f cmp %g3, 0xf if(bit_mask > requested_bytes_per_block) 40003af0: 04 80 00 0b ble 40003b1c <== NEVER TAKEN 40003af4: 82 10 20 20 mov 0x20, %g1 40003af8: 84 10 20 05 mov 5, %g2 if (bit_mask == requested_bytes_per_block) { 40003afc: 80 a0 c0 01 cmp %g3, %g1 40003b00: 22 80 00 09 be,a 40003b24 40003b04: 03 10 00 7d sethi %hi(0x4001f400), %g1 if(bit_mask > requested_bytes_per_block) 40003b08: 26 80 00 06 bl,a 40003b20 <== NEVER TAKEN 40003b0c: 86 10 20 80 mov 0x80, %g3 <== NOT EXECUTED for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 40003b10: 84 80 bf ff addcc %g2, -1, %g2 40003b14: 12 bf ff fa bne 40003afc <== ALWAYS TAKEN 40003b18: 83 28 60 01 sll %g1, 1, %g1 : default_bytes_per_block); 40003b1c: 86 10 20 80 mov 0x80, %g3 <== NOT EXECUTED *dest_bytes_per_block = ((is_valid) 40003b20: 03 10 00 7d sethi %hi(0x4001f400), %g1 40003b24: c6 20 60 d8 st %g3, [ %g1 + 0xd8 ] ! 4001f4d8 } 40003b28: 81 c7 e0 08 ret 40003b2c: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 4000d078 : const char *path, mode_t mode, const IMFS_node_control *node_control, void *context ) { 4000d078: 9d e3 bf 50 save %sp, -176, %sp int rv = 0; mode &= ~rtems_filesystem_umask; 4000d07c: 7f ff e2 bb call 40005b68 4000d080: 01 00 00 00 nop 4000d084: da 02 20 08 ld [ %o0 + 8 ], %o5 4000d088: b2 2e 40 0d andn %i1, %o5, %i1 switch (mode & S_IFMT) { 4000d08c: 03 00 00 3c sethi %hi(0xf000), %g1 4000d090: 05 00 00 18 sethi %hi(0x6000), %g2 4000d094: 82 0e 40 01 and %i1, %g1, %g1 4000d098: 80 a0 40 02 cmp %g1, %g2 4000d09c: 02 80 00 0c be 4000d0cc 4000d0a0: 94 10 20 78 mov 0x78, %o2 4000d0a4: 08 80 00 1d bleu 4000d118 <== ALWAYS TAKEN 4000d0a8: 05 00 00 04 sethi %hi(0x1000), %g2 4000d0ac: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED 4000d0b0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000d0b4: 02 80 00 06 be 4000d0cc <== NOT EXECUTED 4000d0b8: 05 00 00 30 sethi %hi(0xc000), %g2 <== NOT EXECUTED 4000d0bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000d0c0: 12 80 00 1c bne 4000d130 <== NOT EXECUTED 4000d0c4: 01 00 00 00 nop <== NOT EXECUTED if ( rv == 0 ) { rtems_filesystem_eval_path_context_t ctx; int eval_flags = RTEMS_FS_FOLLOW_LINK | RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE; const rtems_filesystem_location_info_t *currentloc = 4000d0c8: 94 10 20 78 mov 0x78, %o2 ! 78 <_TLS_Alignment+0x77> <== NOT EXECUTED 4000d0cc: 92 10 00 18 mov %i0, %o1 4000d0d0: 7f ff e4 54 call 40006220 4000d0d4: 90 07 bf c8 add %fp, -56, %o0 return loc->mt_entry->ops->clonenod_h == IMFS_node_clone; 4000d0d8: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 4000d0dc: c2 00 60 0c ld [ %g1 + 0xc ], %g1 rtems_filesystem_eval_path_start( &ctx, path, eval_flags ); if ( IMFS_is_imfs_instance( currentloc ) ) { 4000d0e0: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 4000d0e4: 03 10 00 12 sethi %hi(0x40004800), %g1 4000d0e8: 82 10 61 04 or %g1, 0x104, %g1 ! 40004904 4000d0ec: 80 a0 80 01 cmp %g2, %g1 4000d0f0: 02 80 00 16 be 4000d148 4000d0f4: ba 10 00 08 mov %o0, %i5 IMFS_mtime_ctime_update( parent ); } else { rv = -1; } } else { rtems_filesystem_eval_path_error( &ctx, ENOTSUP ); 4000d0f8: 92 10 20 86 mov 0x86, %o1 4000d0fc: 90 07 bf c8 add %fp, -56, %o0 4000d100: 7f ff e3 8d call 40005f34 4000d104: b0 10 3f ff mov -1, %i0 rv = -1; } rtems_filesystem_eval_path_cleanup( &ctx ); 4000d108: 7f ff e4 52 call 40006250 4000d10c: 90 07 bf c8 add %fp, -56, %o0 } return rv; } 4000d110: 81 c7 e0 08 ret 4000d114: 81 e8 00 00 restore switch (mode & S_IFMT) { 4000d118: 80 a0 40 02 cmp %g1, %g2 4000d11c: 02 bf ff eb be 4000d0c8 <== NEVER TAKEN 4000d120: 05 00 00 08 sethi %hi(0x2000), %g2 4000d124: 80 a0 40 02 cmp %g1, %g2 4000d128: 02 bf ff e9 be 4000d0cc 4000d12c: 94 10 20 78 mov 0x78, %o2 errno = EINVAL; 4000d130: 40 00 06 87 call 4000eb4c <__errno> 4000d134: b0 10 3f ff mov -1, %i0 4000d138: 82 10 20 16 mov 0x16, %g1 4000d13c: c2 22 00 00 st %g1, [ %o0 ] 4000d140: 81 c7 e0 08 ret 4000d144: 81 e8 00 00 restore IMFS_jnode_t *new_node = IMFS_create_node( 4000d148: f6 23 a0 5c st %i3, [ %sp + 0x5c ] 4000d14c: 9a 10 00 19 mov %i1, %o5 4000d150: d8 07 bf d4 ld [ %fp + -44 ], %o4 4000d154: d6 07 bf d0 ld [ %fp + -48 ], %o3 4000d158: 94 10 20 48 mov 0x48, %o2 4000d15c: 92 10 00 1a mov %i2, %o1 4000d160: 7f ff ff a0 call 4000cfe0 4000d164: b0 10 3f ff mov -1, %i0 if ( new_node != NULL ) { 4000d168: 80 a2 20 00 cmp %o0, 0 4000d16c: 02 bf ff e7 be 4000d108 4000d170: 01 00 00 00 nop IMFS_jnode_t *parent = currentloc->node_access; 4000d174: fa 07 60 08 ld [ %i5 + 8 ], %i5 _Timecounter_Getbintime( &now ); 4000d178: 7f ff ee 3b call 40008a64 <_Timecounter_Getbintime> 4000d17c: 90 07 bf b8 add %fp, -72, %o0 return now.sec; 4000d180: c4 1f bf b8 ldd [ %fp + -72 ], %g2 jnode->stat_mtime = now; 4000d184: c4 3f 60 28 std %g2, [ %i5 + 0x28 ] int rv = 0; 4000d188: b0 10 20 00 clr %i0 jnode->stat_ctime = now; 4000d18c: c4 3f 60 30 std %g2, [ %i5 + 0x30 ] rtems_filesystem_eval_path_cleanup( &ctx ); 4000d190: 7f ff e4 30 call 40006250 4000d194: 90 07 bf c8 add %fp, -56, %o0 } 4000d198: 81 c7 e0 08 ret 4000d19c: 81 e8 00 00 restore =============================================================================== 40004500 : { 40004500: 9d e3 bf 90 save %sp, -112, %sp if ( last_byte > memfile->File.size ) { 40004504: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 last_byte = start + my_length; 40004508: 96 07 00 1a add %i4, %i2, %o3 if ( last_byte > memfile->File.size ) { 4000450c: 80 a0 40 0b cmp %g1, %o3 40004510: 0a 80 00 54 bcs 40004660 40004514: a0 10 00 18 mov %i0, %l0 start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 40004518: 23 10 00 7d sethi %hi(0x4001f400), %l1 4000451c: e4 04 60 d8 ld [ %l1 + 0xd8 ], %l2 ! 4001f4d8 40004520: bb 3c a0 1f sra %l2, 0x1f, %i5 40004524: 96 10 00 12 mov %l2, %o3 40004528: 94 10 00 1d mov %i5, %o2 4000452c: 92 10 00 1a mov %i2, %o1 40004530: 40 00 4d e0 call 40017cb0 <__moddi3> 40004534: 90 10 00 19 mov %i1, %o0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 40004538: 94 10 00 1d mov %i5, %o2 start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 4000453c: a6 10 00 09 mov %o1, %l3 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 40004540: 96 10 00 12 mov %l2, %o3 40004544: 92 10 00 1a mov %i2, %o1 40004548: 40 00 4d 4f call 40017a84 <__divdi3> 4000454c: 90 10 00 19 mov %i1, %o0 40004550: ba 10 00 12 mov %l2, %i5 40004554: b4 10 00 09 mov %o1, %i2 if ( start_offset ) { 40004558: 80 a4 e0 00 cmp %l3, 0 4000455c: 12 80 00 1a bne 400045c4 40004560: b0 10 20 00 clr %i0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 40004564: 80 a7 00 1d cmp %i4, %i5 40004568: 1a 80 00 0e bcc 400045a0 4000456c: 92 10 00 1a mov %i2, %o1 if ( my_length ) { 40004570: 10 80 00 29 b 40004614 40004574: 80 a7 20 00 cmp %i4, 0 memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 40004578: 40 00 2a e6 call 4000f110 4000457c: d0 02 00 00 ld [ %o0 ], %o0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 40004580: c2 04 60 d8 ld [ %l1 + 0xd8 ], %g1 my_length -= to_copy; 40004584: b8 27 00 1d sub %i4, %i5, %i4 src += to_copy; 40004588: b6 06 c0 1d add %i3, %i5, %i3 block++; 4000458c: b4 06 a0 01 inc %i2 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 40004590: 80 a0 40 1c cmp %g1, %i4 40004594: 18 80 00 1f bgu 40004610 40004598: b0 06 00 1d add %i0, %i5, %i0 block_ptr = IMFS_memfile_get_block_pointer( memfile, block, 0 ); 4000459c: 92 10 00 1a mov %i2, %o1 400045a0: 94 10 20 00 clr %o2 400045a4: 7f ff fd d4 call 40003cf4 400045a8: 90 10 00 10 mov %l0, %o0 memcpy( &(*block_ptr)[ 0 ], src, to_copy ); 400045ac: 92 10 00 1b mov %i3, %o1 if ( !block_ptr ) 400045b0: 80 a2 20 00 cmp %o0, 0 400045b4: 12 bf ff f1 bne 40004578 <== ALWAYS TAKEN 400045b8: 94 10 00 1d mov %i5, %o2 } 400045bc: 81 c7 e0 08 ret <== NOT EXECUTED 400045c0: 81 e8 00 00 restore <== NOT EXECUTED block_ptr = IMFS_memfile_get_block_pointer( memfile, block, 0 ); 400045c4: 94 10 20 00 clr %o2 400045c8: 7f ff fd cb call 40003cf4 400045cc: 90 10 00 10 mov %l0, %o0 if ( !block_ptr ) 400045d0: 80 a2 20 00 cmp %o0, 0 400045d4: 02 bf ff fa be 400045bc <== NEVER TAKEN 400045d8: a4 24 80 13 sub %l2, %l3, %l2 400045dc: 80 a7 00 12 cmp %i4, %l2 400045e0: 18 80 00 37 bgu 400046bc 400045e4: b0 10 00 1c mov %i4, %i0 memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 400045e8: d0 02 00 00 ld [ %o0 ], %o0 400045ec: 92 10 00 1b mov %i3, %o1 400045f0: 94 10 00 18 mov %i0, %o2 400045f4: 90 02 00 13 add %o0, %l3, %o0 400045f8: 40 00 2a c6 call 4000f110 400045fc: b6 06 c0 18 add %i3, %i0, %i3 block++; 40004600: b4 06 a0 01 inc %i2 40004604: fa 04 60 d8 ld [ %l1 + 0xd8 ], %i5 my_length -= to_copy; 40004608: 10 bf ff d7 b 40004564 4000460c: b8 27 00 18 sub %i4, %i0, %i4 if ( my_length ) { 40004610: 80 a7 20 00 cmp %i4, 0 40004614: 02 80 00 0c be 40004644 40004618: 94 10 20 00 clr %o2 block_ptr = IMFS_memfile_get_block_pointer( memfile, block, 0 ); 4000461c: 92 10 00 1a mov %i2, %o1 40004620: 7f ff fd b5 call 40003cf4 40004624: 90 10 00 10 mov %l0, %o0 if ( !block_ptr ) 40004628: 80 a2 20 00 cmp %o0, 0 4000462c: 02 bf ff e4 be 400045bc <== NEVER TAKEN 40004630: 94 10 00 1c mov %i4, %o2 memcpy( &(*block_ptr)[ 0 ], src, my_length ); 40004634: d0 02 00 00 ld [ %o0 ], %o0 40004638: 92 10 00 1b mov %i3, %o1 4000463c: 40 00 2a b5 call 4000f110 40004640: b0 06 00 1c add %i0, %i4, %i0 _Timecounter_Getbintime( &now ); 40004644: 40 00 11 08 call 40008a64 <_Timecounter_Getbintime> 40004648: 90 07 bf f0 add %fp, -16, %o0 return now.sec; 4000464c: c4 1f bf f0 ldd [ %fp + -16 ], %g2 jnode->stat_mtime = now; 40004650: c4 3c 20 28 std %g2, [ %l0 + 0x28 ] jnode->stat_ctime = now; 40004654: c4 3c 20 30 std %g2, [ %l0 + 0x30 ] } 40004658: 81 c7 e0 08 ret 4000465c: 81 e8 00 00 restore bool zero_fill = start > memfile->File.size; 40004660: 80 a6 60 00 cmp %i1, 0 40004664: 04 80 00 0b ble 40004690 <== ALWAYS TAKEN 40004668: 92 10 20 01 mov 1, %o1 status = IMFS_memfile_extend( memfile, zero_fill, last_byte ); 4000466c: 94 10 20 00 clr %o2 <== NOT EXECUTED 40004670: 92 0a 60 01 and %o1, 1, %o1 40004674: 7f ff fe 49 call 40003f98 40004678: 90 10 00 10 mov %l0, %o0 if ( status ) 4000467c: b0 92 20 00 orcc %o0, 0, %i0 40004680: 02 bf ff a7 be 4000451c 40004684: 23 10 00 7d sethi %hi(0x4001f400), %l1 40004688: 81 c7 e0 08 ret 4000468c: 81 e8 00 00 restore bool zero_fill = start > memfile->File.size; 40004690: 02 80 00 16 be 400046e8 <== ALWAYS TAKEN 40004694: 80 a6 80 01 cmp %i2, %g1 40004698: 92 10 20 00 clr %o1 <== NOT EXECUTED status = IMFS_memfile_extend( memfile, zero_fill, last_byte ); 4000469c: 94 10 20 00 clr %o2 <== NOT EXECUTED 400046a0: 92 0a 60 01 and %o1, 1, %o1 400046a4: 7f ff fe 3d call 40003f98 400046a8: 90 10 00 10 mov %l0, %o0 if ( status ) 400046ac: b0 92 20 00 orcc %o0, 0, %i0 400046b0: 02 bf ff 9b be 4000451c 400046b4: 23 10 00 7d sethi %hi(0x4001f400), %l1 400046b8: 30 bf ff f4 b,a 40004688 memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 400046bc: d0 02 00 00 ld [ %o0 ], %o0 400046c0: b0 10 00 12 mov %l2, %i0 400046c4: 92 10 00 1b mov %i3, %o1 400046c8: 94 10 00 18 mov %i0, %o2 400046cc: 90 02 00 13 add %o0, %l3, %o0 400046d0: 40 00 2a 90 call 4000f110 400046d4: b6 06 c0 18 add %i3, %i0, %i3 block++; 400046d8: b4 06 a0 01 inc %i2 400046dc: fa 04 60 d8 ld [ %l1 + 0xd8 ], %i5 my_length -= to_copy; 400046e0: 10 bf ff a1 b 40004564 400046e4: b8 27 00 18 sub %i4, %i0, %i4 bool zero_fill = start > memfile->File.size; 400046e8: 18 bf ff e2 bgu 40004670 400046ec: 94 10 20 00 clr %o2 400046f0: 10 bf ff ec b 400046a0 400046f4: 92 10 20 00 clr %o1 =============================================================================== 4000480c : #endif #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 4000480c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rv = 0; IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 40004810: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 40004814: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED return S_ISDIR( node->st_mode ); 40004818: 07 00 00 3c sethi %hi(0xf000), %g3 4000481c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 40004820: 82 08 40 03 and %g1, %g3, %g1 if ( IMFS_is_directory( node ) ) { 40004824: 07 00 00 10 sethi %hi(0x4000), %g3 40004828: 80 a0 40 03 cmp %g1, %g3 4000482c: 12 80 00 0f bne 40004868 <== NEVER TAKEN 40004830: 01 00 00 00 nop IMFS_directory_t *dir = (IMFS_directory_t *) node; if ( dir->mt_fs == NULL ) { 40004834: c2 00 a0 4c ld [ %g2 + 0x4c ], %g1 40004838: 80 a0 60 00 cmp %g1, 0 4000483c: 12 80 00 05 bne 40004850 <== NEVER TAKEN 40004840: 01 00 00 00 nop dir->mt_fs = mt_entry; 40004844: f0 20 a0 4c st %i0, [ %g2 + 0x4c ] 40004848: 81 c7 e0 08 ret 4000484c: 91 e8 20 00 restore %g0, 0, %o0 } else { errno = EBUSY; 40004850: 40 00 28 bf call 4000eb4c <__errno> <== NOT EXECUTED 40004854: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40004858: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED 4000485c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40004860: 81 c7 e0 08 ret <== NOT EXECUTED 40004864: 81 e8 00 00 restore <== NOT EXECUTED rv = -1; } } else { errno = ENOTDIR; 40004868: 40 00 28 b9 call 4000eb4c <__errno> 4000486c: b0 10 3f ff mov -1, %i0 40004870: 82 10 20 14 mov 0x14, %g1 40004874: c2 22 00 00 st %g1, [ %o0 ] rv = -1; } return rv; } 40004878: 81 c7 e0 08 ret 4000487c: 81 e8 00 00 restore =============================================================================== 40004904 : int IMFS_node_clone( rtems_filesystem_location_info_t *loc ) { IMFS_jnode_t *node = loc->node_access; 40004904: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED ++node->reference_count; 40004908: c2 10 a0 18 lduh [ %g2 + 0x18 ], %g1 4000490c: 82 00 60 01 inc %g1 return 0; } 40004910: 90 10 20 00 clr %o0 40004914: 81 c3 e0 08 retl 40004918: c2 30 a0 18 sth %g1, [ %g2 + 0x18 ] =============================================================================== 4000491c : void IMFS_node_destroy( IMFS_jnode_t *node ) { 4000491c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_assert( node->reference_count == 0 ); (*node->control->node_destroy)( node ); 40004920: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 <== NOT EXECUTED 40004924: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED 40004928: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000492c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED } 40004930: 81 c7 e0 08 ret <== NOT EXECUTED 40004934: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 4000497c : void IMFS_node_destroy_default( IMFS_jnode_t *node ) { 4000497c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED if ( ( node->flags & IMFS_NODE_FLAG_NAME_ALLOCATED ) != 0 ) { 40004980: c2 16 20 12 lduh [ %i0 + 0x12 ], %g1 <== NOT EXECUTED 40004984: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 40004988: 12 80 00 04 bne 40004998 <== NOT EXECUTED 4000498c: 01 00 00 00 nop free( RTEMS_DECONST( char *, node->name ) ); } free( node ); 40004990: 40 00 01 3c call 40004e80 40004994: 81 e8 00 00 restore free( RTEMS_DECONST( char *, node->name ) ); 40004998: 40 00 01 3a call 40004e80 4000499c: d0 06 20 0c ld [ %i0 + 0xc ], %o0 free( node ); 400049a0: 40 00 01 38 call 40004e80 400049a4: 81 e8 00 00 restore =============================================================================== 40003b30 : IMFS_jnode_t *node, void *arg ) { return node; } 40003b30: 81 c3 e0 08 retl <== NOT EXECUTED 40003b34: 01 00 00 00 nop =============================================================================== 40004974 : IMFS_jnode_t *IMFS_node_remove_default( IMFS_jnode_t *node ) { return node; } 40004974: 81 c3 e0 08 retl <== NOT EXECUTED 40004978: 01 00 00 00 nop =============================================================================== 40003790 : { return dir->mt_fs != NULL; } IMFS_jnode_t *IMFS_node_remove_directory( IMFS_jnode_t *node ) { 40003790: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_directory_t *dir = (IMFS_directory_t *) node; if ( !rtems_chain_is_empty( &dir->Entries ) ) { 40003794: c4 06 20 40 ld [ %i0 + 0x40 ], %g2 <== NOT EXECUTED return &the_chain->Tail.Node; 40003798: 82 06 20 44 add %i0, 0x44, %g1 <== NOT EXECUTED 4000379c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED 400037a0: 12 80 00 0c bne 400037d0 <== NOT EXECUTED 400037a4: 01 00 00 00 nop errno = ENOTEMPTY; dir = NULL; } else if ( IMFS_is_mount_point( dir ) ) { 400037a8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 400037ac: 80 a0 60 00 cmp %g1, 0 400037b0: 02 80 00 0c be 400037e0 <== ALWAYS TAKEN 400037b4: 01 00 00 00 nop errno = EBUSY; 400037b8: 40 00 2c e5 call 4000eb4c <__errno> <== NOT EXECUTED 400037bc: b0 10 20 00 clr %i0 ! 0 <== NOT EXECUTED 400037c0: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED 400037c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED dir = NULL; } return &dir->Node; } 400037c8: 81 c7 e0 08 ret <== NOT EXECUTED 400037cc: 81 e8 00 00 restore <== NOT EXECUTED errno = ENOTEMPTY; 400037d0: 40 00 2c df call 4000eb4c <__errno> 400037d4: b0 10 20 00 clr %i0 400037d8: 82 10 20 5a mov 0x5a, %g1 400037dc: c2 22 00 00 st %g1, [ %o0 ] 400037e0: 81 c7 e0 08 ret 400037e4: 81 e8 00 00 restore =============================================================================== 40004c44 : for( i=0; ((iname[i] != '\0')); i++ ) 40004c44: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED 40004c48: 02 80 00 16 be 40004ca0 <== NOT EXECUTED 40004c4c: c6 02 20 08 ld [ %o0 + 8 ], %g3 40004c50: c2 00 e0 40 ld [ %g3 + 0x40 ], %g1 40004c54: c4 48 40 00 ldsb [ %g1 ], %g2 40004c58: 90 10 20 00 clr %o0 40004c5c: 80 a0 a0 00 cmp %g2, 0 40004c60: 12 80 00 07 bne 40004c7c <== ALWAYS TAKEN 40004c64: c2 08 40 00 ldub [ %g1 ], %g1 40004c68: 30 80 00 0c b,a 40004c98 <== NOT EXECUTED 40004c6c: c4 48 40 08 ldsb [ %g1 + %o0 ], %g2 40004c70: 80 a0 a0 00 cmp %g2, 0 40004c74: 02 80 00 07 be 40004c90 40004c78: c2 08 40 08 ldub [ %g1 + %o0 ], %g1 buf[i] = sym_link->name[i]; 40004c7c: c2 2a 40 08 stb %g1, [ %o1 + %o0 ] for( i=0; ((iname[i] != '\0')); i++ ) 40004c80: 90 02 20 01 inc %o0 40004c84: 80 a2 80 08 cmp %o2, %o0 40004c88: 32 bf ff f9 bne,a 40004c6c 40004c8c: c2 00 e0 40 ld [ %g3 + 0x40 ], %g1 } 40004c90: 81 c3 e0 08 retl 40004c94: 01 00 00 00 nop 40004c98: 81 c3 e0 08 retl <== NOT EXECUTED 40004c9c: 01 00 00 00 nop <== NOT EXECUTED for( i=0; ((iname[i] != '\0')); i++ ) 40004ca0: 81 c3 e0 08 retl <== NOT EXECUTED 40004ca4: 90 10 20 00 clr %o0 ! 0 <== NOT EXECUTED =============================================================================== 400049a8 : const rtems_filesystem_location_info_t *oldloc, const rtems_filesystem_location_info_t *newparentloc, const char *name, size_t namelen ) { 400049a8: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED IMFS_jnode_t *node = oldloc->node_access; 400049ac: fa 06 60 08 ld [ %i1 + 8 ], %i5 <== NOT EXECUTED /* * FIXME: Due to insufficient checks we can create inaccessible nodes with * this operation. */ if ( node->Parent == NULL ) { 400049b0: c2 07 60 08 ld [ %i5 + 8 ], %g1 <== NOT EXECUTED 400049b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400049b8: 02 80 00 36 be 40004a90 <== NOT EXECUTED 400049bc: f4 06 a0 08 ld [ %i2 + 8 ], %i2 rtems_set_errno_and_return_minus_one( EINVAL ); } if ( namelen >= IMFS_NAME_MAX ) { 400049c0: 80 a7 20 fe cmp %i4, 0xfe 400049c4: 18 80 00 27 bgu 40004a60 400049c8: 01 00 00 00 nop rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); } allocated_name = malloc( namelen ); 400049cc: 40 00 02 3c call 400052bc 400049d0: 90 10 00 1c mov %i4, %o0 if ( allocated_name == NULL ) { 400049d4: b2 92 20 00 orcc %o0, 0, %i1 400049d8: 02 80 00 28 be 40004a78 <== NEVER TAKEN 400049dc: 94 10 00 1c mov %i4, %o2 rtems_set_errno_and_return_minus_one( ENOMEM ); } memcpy( allocated_name, name, namelen ); 400049e0: 40 00 29 cc call 4000f110 400049e4: 92 10 00 1b mov %i3, %o1 if ( ( node->flags & IMFS_NODE_FLAG_NAME_ALLOCATED ) != 0 ) { 400049e8: c2 17 60 12 lduh [ %i5 + 0x12 ], %g1 400049ec: 80 88 60 01 btst 1, %g1 400049f0: 12 80 00 18 bne 40004a50 400049f4: 01 00 00 00 nop ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 400049f8: c6 07 40 00 ld [ %i5 ], %g3 previous = the_node->previous; 400049fc: c4 07 60 04 ld [ %i5 + 4 ], %g2 free( RTEMS_DECONST( char *, node->name ) ); } node->name = allocated_name; 40004a00: f2 27 60 0c st %i1, [ %i5 + 0xc ] node->namelen = namelen; node->flags |= IMFS_NODE_FLAG_NAME_ALLOCATED; 40004a04: 82 10 60 01 or %g1, 1, %g1 node->namelen = namelen; 40004a08: f8 37 60 10 sth %i4, [ %i5 + 0x10 ] return &the_chain->Tail.Node; 40004a0c: 88 06 a0 44 add %i2, 0x44, %g4 node->flags |= IMFS_NODE_FLAG_NAME_ALLOCATED; 40004a10: c2 37 60 12 sth %g1, [ %i5 + 0x12 ] _Timecounter_Getbintime( &now ); 40004a14: 90 07 bf f0 add %fp, -16, %o0 next->previous = previous; 40004a18: c4 20 e0 04 st %g2, [ %g3 + 4 ] IMFS_remove_from_directory( node ); IMFS_add_to_directory( new_parent, node ); IMFS_update_ctime( node ); return 0; 40004a1c: b0 10 20 00 clr %i0 previous->next = next; 40004a20: c6 20 80 00 st %g3, [ %g2 ] Chain_Node *old_last; _Assert( _Chain_Is_node_off_chain( the_node ) ); tail = _Chain_Tail( the_chain ); old_last = tail->previous; 40004a24: c2 06 a0 48 ld [ %i2 + 0x48 ], %g1 entry_node->Parent = dir_node; 40004a28: f4 27 60 08 st %i2, [ %i5 + 8 ] the_node->next = tail; 40004a2c: c8 27 40 00 st %g4, [ %i5 ] tail->previous = the_node; 40004a30: fa 26 a0 48 st %i5, [ %i2 + 0x48 ] old_last->next = the_node; 40004a34: fa 20 40 00 st %i5, [ %g1 ] _Timecounter_Getbintime( &now ); 40004a38: 40 00 10 0b call 40008a64 <_Timecounter_Getbintime> 40004a3c: c2 27 60 04 st %g1, [ %i5 + 4 ] return now.sec; 40004a40: c4 1f bf f0 ldd [ %fp + -16 ], %g2 jnode->stat_ctime = _IMFS_get_time(); 40004a44: c4 3f 60 30 std %g2, [ %i5 + 0x30 ] } 40004a48: 81 c7 e0 08 ret 40004a4c: 81 e8 00 00 restore free( RTEMS_DECONST( char *, node->name ) ); 40004a50: 40 00 01 0c call 40004e80 40004a54: d0 07 60 0c ld [ %i5 + 0xc ], %o0 40004a58: 10 bf ff e8 b 400049f8 40004a5c: c2 17 60 12 lduh [ %i5 + 0x12 ], %g1 rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 40004a60: 40 00 28 3b call 4000eb4c <__errno> 40004a64: b0 10 3f ff mov -1, %i0 40004a68: 82 10 20 5b mov 0x5b, %g1 40004a6c: c2 22 00 00 st %g1, [ %o0 ] 40004a70: 81 c7 e0 08 ret 40004a74: 81 e8 00 00 restore rtems_set_errno_and_return_minus_one( ENOMEM ); 40004a78: 40 00 28 35 call 4000eb4c <__errno> <== NOT EXECUTED 40004a7c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40004a80: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED 40004a84: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40004a88: 81 c7 e0 08 ret <== NOT EXECUTED 40004a8c: 81 e8 00 00 restore <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); 40004a90: 40 00 28 2f call 4000eb4c <__errno> <== NOT EXECUTED 40004a94: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40004a98: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40004a9c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40004aa0: 81 c7 e0 08 ret <== NOT EXECUTED 40004aa4: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 40004aa8 : int IMFS_rmnod( const rtems_filesystem_location_info_t *parentloc, const rtems_filesystem_location_info_t *loc ) { 40004aa8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rv = 0; IMFS_jnode_t *node = loc->node_access; 40004aac: d0 06 60 08 ld [ %i1 + 8 ], %o0 <== NOT EXECUTED node = (*node->control->node_remove)( node ); 40004ab0: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED 40004ab4: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED 40004ab8: 9f c0 40 00 call %g1 <== NOT EXECUTED 40004abc: 01 00 00 00 nop if ( node != NULL ) { 40004ac0: 80 a2 20 00 cmp %o0, 0 40004ac4: 22 80 00 11 be,a 40004b08 40004ac8: b0 10 3f ff mov -1, %i0 --node->reference_count; 40004acc: c4 12 20 18 lduh [ %o0 + 0x18 ], %g2 --node->st_nlink; 40004ad0: c2 12 20 1a lduh [ %o0 + 0x1a ], %g1 40004ad4: 82 00 7f ff add %g1, -1, %g1 --node->reference_count; 40004ad8: 84 00 bf ff add %g2, -1, %g2 --node->st_nlink; 40004adc: c2 32 20 1a sth %g1, [ %o0 + 0x1a ] --node->reference_count; 40004ae0: c4 32 20 18 sth %g2, [ %o0 + 0x18 ] if ( node->Parent != NULL ) { 40004ae4: c2 02 20 08 ld [ %o0 + 8 ], %g1 40004ae8: 80 a0 60 00 cmp %g1, 0 40004aec: 02 80 00 07 be 40004b08 40004af0: b0 10 20 00 clr %i0 node->Parent = NULL; 40004af4: c0 22 20 08 clr [ %o0 + 8 ] next = the_node->next; 40004af8: c4 02 00 00 ld [ %o0 ], %g2 previous = the_node->previous; 40004afc: c2 02 20 04 ld [ %o0 + 4 ], %g1 next->previous = previous; 40004b00: c2 20 a0 04 st %g1, [ %g2 + 4 ] previous->next = next; 40004b04: c4 20 40 00 st %g2, [ %g1 ] 40004b08: 81 c7 e0 08 ret 40004b0c: 81 e8 00 00 restore } else { rv = -1; } return rv; } 40004b10: 81 c7 e0 08 ret <== NOT EXECUTED 40004b14: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 40004b40 : int IMFS_stat( const rtems_filesystem_location_info_t *loc, struct stat *buf ) { 40004b40: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED const IMFS_fs_info_t *fs_info = loc->mt_entry->fs_info; 40004b44: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED IMFS_jnode_t *the_jnode = loc->node_access; 40004b48: c2 06 20 08 ld [ %i0 + 8 ], %g1 static inline dev_t rtems_filesystem_make_dev_t_from_pointer( const void *pointer ) { uint64_t temp = (((uint64_t) 1) << 63) | (((uintptr_t) pointer) >> 1); 40004b4c: c4 00 a0 08 ld [ %g2 + 8 ], %g2 buf->st_dev = rtems_filesystem_make_dev_t_from_pointer( fs_info ); buf->st_mode = the_jnode->st_mode; 40004b50: d6 00 60 14 ld [ %g1 + 0x14 ], %o3 buf->st_nlink = the_jnode->st_nlink; 40004b54: de 10 60 1a lduh [ %g1 + 0x1a ], %o7 buf->st_ino = IMFS_node_to_ino( the_jnode ); buf->st_uid = the_jnode->st_uid; 40004b58: c8 10 60 1c lduh [ %g1 + 0x1c ], %g4 buf->st_gid = the_jnode->st_gid; 40004b5c: c6 10 60 1e lduh [ %g1 + 0x1e ], %g3 buf->st_atime = the_jnode->stat_atime; 40004b60: d8 18 60 20 ldd [ %g1 + 0x20 ], %o4 buf->st_mtime = the_jnode->stat_mtime; 40004b64: f4 18 60 28 ldd [ %g1 + 0x28 ], %i2 buf->st_ctime = the_jnode->stat_ctime; 40004b68: f8 18 60 30 ldd [ %g1 + 0x30 ], %i4 40004b6c: 85 30 a0 01 srl %g2, 1, %g2 buf->st_dev = rtems_filesystem_make_dev_t_from_pointer( fs_info ); 40004b70: c4 26 60 04 st %g2, [ %i1 + 4 ] 40004b74: 05 20 00 00 sethi %hi(0x80000000), %g2 buf->st_mode = the_jnode->st_mode; 40004b78: d6 26 60 0c st %o3, [ %i1 + 0xc ] buf->st_dev = rtems_filesystem_make_dev_t_from_pointer( fs_info ); 40004b7c: c4 26 40 00 st %g2, [ %i1 ] buf->st_nlink = the_jnode->st_nlink; 40004b80: de 36 60 10 sth %o7, [ %i1 + 0x10 ] buf->st_ino = IMFS_node_to_ino( the_jnode ); 40004b84: c2 26 60 08 st %g1, [ %i1 + 8 ] buf->st_uid = the_jnode->st_uid; 40004b88: c8 36 60 12 sth %g4, [ %i1 + 0x12 ] buf->st_gid = the_jnode->st_gid; 40004b8c: c6 36 60 14 sth %g3, [ %i1 + 0x14 ] buf->st_atime = the_jnode->stat_atime; 40004b90: d8 3e 60 28 std %o4, [ %i1 + 0x28 ] buf->st_mtime = the_jnode->stat_mtime; 40004b94: f4 3e 60 38 std %i2, [ %i1 + 0x38 ] buf->st_ctime = the_jnode->stat_ctime; 40004b98: f8 3e 60 48 std %i4, [ %i1 + 0x48 ] return 0; } 40004b9c: 81 c7 e0 08 ret 40004ba0: 91 e8 20 00 restore %g0, 0, %o0 =============================================================================== 40004b18 : struct stat *buf ) { const IMFS_file_t *file = loc->node_access; buf->st_size = file->File.size; 40004b18: c2 02 20 08 ld [ %o0 + 8 ], %g1 <== NOT EXECUTED 40004b1c: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 <== NOT EXECUTED buf->st_blksize = imfs_memfile_bytes_per_block; 40004b20: 03 10 00 7d sethi %hi(0x4001f400), %g1 <== NOT EXECUTED 40004b24: c4 00 60 d8 ld [ %g1 + 0xd8 ], %g2 ! 4001f4d8 <== NOT EXECUTED buf->st_size = file->File.size; 40004b28: c0 22 60 20 clr [ %o1 + 0x20 ] <== NOT EXECUTED 40004b2c: c6 22 60 24 st %g3, [ %o1 + 0x24 ] <== NOT EXECUTED buf->st_blksize = imfs_memfile_bytes_per_block; 40004b30: c4 22 60 58 st %g2, [ %o1 + 0x58 ] <== NOT EXECUTED return IMFS_stat( loc, buf ); 40004b34: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 40004b38: 40 00 00 02 call 40004b40 <== NOT EXECUTED 40004b3c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED =============================================================================== 40004ca8 : #endif #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 40004ca8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED int rv = 0; IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 40004cac: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED 40004cb0: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED return S_ISDIR( node->st_mode ); 40004cb4: 07 00 00 3c sethi %hi(0xf000), %g3 <== NOT EXECUTED 40004cb8: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED 40004cbc: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED if ( IMFS_is_directory( node ) ) { 40004cc0: 07 00 00 10 sethi %hi(0x4000), %g3 <== NOT EXECUTED 40004cc4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40004cc8: 12 80 00 0f bne 40004d04 <== NOT EXECUTED 40004ccc: 01 00 00 00 nop IMFS_directory_t *dir = (IMFS_directory_t *) node; if ( dir->mt_fs == mt_entry ) { 40004cd0: c2 00 a0 4c ld [ %g2 + 0x4c ], %g1 40004cd4: 80 a0 40 18 cmp %g1, %i0 40004cd8: 12 80 00 05 bne 40004cec <== NEVER TAKEN 40004cdc: 01 00 00 00 nop dir->mt_fs = NULL; 40004ce0: c0 20 a0 4c clr [ %g2 + 0x4c ] 40004ce4: 81 c7 e0 08 ret 40004ce8: 91 e8 20 00 restore %g0, 0, %o0 } else { errno = EINVAL; 40004cec: 40 00 27 98 call 4000eb4c <__errno> <== NOT EXECUTED 40004cf0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40004cf4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED 40004cf8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED 40004cfc: 81 c7 e0 08 ret <== NOT EXECUTED 40004d00: 81 e8 00 00 restore <== NOT EXECUTED rv = -1; } } else { errno = ENOTDIR; 40004d04: 40 00 27 92 call 4000eb4c <__errno> <== NOT EXECUTED 40004d08: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED 40004d0c: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED 40004d10: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED rv = -1; } return rv; } 40004d14: 81 c7 e0 08 ret <== NOT EXECUTED 40004d18: 81 e8 00 00 restore <== NOT EXECUTED =============================================================================== 40004d1c : int IMFS_utime( const rtems_filesystem_location_info_t *loc, time_t actime, time_t modtime ) { 40004d1c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; 40004d20: fa 06 20 08 ld [ %i0 + 8 ], %i5 <== NOT EXECUTED { 40004d24: 84 10 00 1b mov %i3, %g2 <== NOT EXECUTED 40004d28: b0 10 00 19 mov %i1, %i0 <== NOT EXECUTED 40004d2c: 86 10 00 1c mov %i4, %g3 <== NOT EXECUTED 40004d30: b2 10 00 1a mov %i2, %i1 <== NOT EXECUTED the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; 40004d34: c4 3f 60 28 std %g2, [ %i5 + 0x28 ] <== NOT EXECUTED the_jnode->stat_ctime = time( NULL ); 40004d38: 90 10 20 00 clr %o0 <== NOT EXECUTED the_jnode->stat_atime = actime; 40004d3c: f0 3f 60 20 std %i0, [ %i5 + 0x20 ] <== NOT EXECUTED the_jnode->stat_ctime = time( NULL ); 40004d40: 40 00 2b 38 call 4000fa20